From b388c0d613ec4173cf4ad0fdb34ba9c7386c029f Mon Sep 17 00:00:00 2001
From: Damien Burel <damien.burel@maarch.org>
Date: Thu, 13 Jul 2017 16:44:04 +0200
Subject: [PATCH] FEAT #5732 Administration priorities

---
 .../priorities-administration.component.html  |  54 ++++
 .../Views/priorities.component.html           |  51 ----
 .../priority-administration.component.html    |  65 +++++
 .../Views/priority.component.html             |  42 ---
 .../Views/users-administration.component.html |   2 +-
 .../js/angular/app/app.module.js              |  19 +-
 .../js/angular/app/app.module.ts              |  19 +-
 .../priorities-administration.component.js    |  80 ++++++
 .../priorities-administration.component.ts    | 104 ++++++++
 .../js/angular/app/priorities.component.js    |  84 ------
 .../js/angular/app/priorities.component.ts    |  75 ------
 .../app/priority-administration.component.js  |  93 +++++++
 .../app/priority-administration.component.ts  |  96 +++++++
 .../js/angular/app/priority.component.js      | 125 ---------
 .../js/angular/app/priority.component.ts      | 116 ---------
 .../js/angular/main.bundle.min.js             |   2 +-
 apps/maarch_entreprise/js/angularFunctions.js |   4 +-
 core/Controllers/PrioritiesController.php     | 136 ----------
 core/Controllers/PriorityController.php       | 149 +++++++++++
 core/Models/DatabaseModel.php                 |  22 ++
 core/Models/PrioritiesModel.php               |  28 --
 core/Models/PrioritiesModelAbstract.php       | 243 ------------------
 core/Models/PriorityModel.php                 |  21 ++
 core/Models/PriorityModelAbstract.php         | 101 ++++++++
 rest/index.php                                |  24 +-
 sql/17_xx.sql                                 |  16 +-
 26 files changed, 823 insertions(+), 948 deletions(-)
 create mode 100644 apps/maarch_entreprise/Views/priorities-administration.component.html
 delete mode 100644 apps/maarch_entreprise/Views/priorities.component.html
 create mode 100644 apps/maarch_entreprise/Views/priority-administration.component.html
 delete mode 100644 apps/maarch_entreprise/Views/priority.component.html
 create mode 100644 apps/maarch_entreprise/js/angular/app/priorities-administration.component.js
 create mode 100644 apps/maarch_entreprise/js/angular/app/priorities-administration.component.ts
 delete mode 100644 apps/maarch_entreprise/js/angular/app/priorities.component.js
 delete mode 100644 apps/maarch_entreprise/js/angular/app/priorities.component.ts
 create mode 100644 apps/maarch_entreprise/js/angular/app/priority-administration.component.js
 create mode 100644 apps/maarch_entreprise/js/angular/app/priority-administration.component.ts
 delete mode 100644 apps/maarch_entreprise/js/angular/app/priority.component.js
 delete mode 100644 apps/maarch_entreprise/js/angular/app/priority.component.ts
 delete mode 100644 core/Controllers/PrioritiesController.php
 create mode 100644 core/Controllers/PriorityController.php
 delete mode 100644 core/Models/PrioritiesModel.php
 delete mode 100644 core/Models/PrioritiesModelAbstract.php
 create mode 100644 core/Models/PriorityModel.php
 create mode 100644 core/Models/PriorityModelAbstract.php

diff --git a/apps/maarch_entreprise/Views/priorities-administration.component.html b/apps/maarch_entreprise/Views/priorities-administration.component.html
new file mode 100644
index 00000000000..9cc63116002
--- /dev/null
+++ b/apps/maarch_entreprise/Views/priorities-administration.component.html
@@ -0,0 +1,54 @@
+<div *ngIf="loading">
+    <i class="fa fa-spinner fa-spin fa-5x" style="margin-left: 50%;margin-top: 16%;font-size: 8em"></i>
+</div>
+<div *ngIf="!loading" class="container-fluid">
+    <h1 style="margin-top: 0"><i class="fa fa-user fa-2x"></i> Administration des priorités</h1>
+    <nav class="navbar navbar-default" style="font-size:17px !important;" id="toolBox">
+        <div class="container-fluid">
+            <div class="navbar-header">
+                <a class="navbar-brand" routerLink="/administration" style="cursor: pointer">
+                    <i class="fa fa-arrow-circle-left" title="{{lang.back}}"></i>
+                </a>
+            </div>
+            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
+                <ul class="nav navbar-nav navbar-right">
+                    <li style="cursor: pointer" routerLink="/administration/priorities/new">
+                        <a title="Créer une priorité"><i class="fa fa-user-plus"></i></a>
+                    </li>
+                </ul>
+            </div>
+        </div>
+    </nav>
+    <div class="col-md-12" style="margin-top: 1%">
+        <table id="prioritiesTable" class="display" style="width: 100%" cellspacing="0" border="0">
+            <thead>
+            <tr>
+                <th style="width:20%;" valign="bottom" align="left"><span>Label</span></th>
+                <th style="width:20%;" valign="bottom" align="left"><span>Couleur</span></th>
+                <th style="width:20%;" valign="bottom" align="left"><span>Délai de traitement</span></th>
+                <th style="width:20%;" valign="bottom" align="left"><span>Méthode de calcul</span></th>
+                <th style="width:20%;"><span>&nbsp;</span></th>
+            </tr>
+            </thead>
+            <tbody>
+            <tr *ngFor="let priority of priorities" id="{{priority.id}}">
+                <td>{{priority.label_priority}}</td>
+                <td><input type="color" value="{{priority.color_priority}}" style="background:none;border:none;width:45px;" disabled></td>
+                <td>{{priority.delays}}</td>
+                <td *ngIf="priority.working_days =='Y'">Jours ouvrés</td>
+                <td *ngIf="priority.working_days =='N'">Jours calendaires</td>
+                <td style="text-align:right;">
+                    <div class="btn-group" role="group" aria-label="...">
+                        <button routerLink="/administration/priorities/{{priority.id}}" type="button" class="btn btn-default" title="{{lang.edit}}">
+                            <a><i style="cursor:pointer" class="fa fa-edit"></i></a>
+                        </button>
+                        <button type="button" class="btn btn-default" title="{{lang.delete}}" (click)="deletePriority(priority)">
+                            <a><i style="cursor:pointer;color: #D9534F" class="fa fa-trash"></i></a>
+                        </button>
+                    </div>
+                </td>
+            </tr>
+            </tbody>
+        </table>
+    </div>
+</div>
diff --git a/apps/maarch_entreprise/Views/priorities.component.html b/apps/maarch_entreprise/Views/priorities.component.html
deleted file mode 100644
index 371487355ed..00000000000
--- a/apps/maarch_entreprise/Views/priorities.component.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<div id="resultInfo" class="fade" style="display:none;">
-    {{resultInfo}}
-</div>
-<h1>Priorités</h1>
-<div><!--
-    <table id="prioritiesTable">
-        <thead>
-            <tr>
-                <th style="width:20%;" valign="bottom" align="left"><span>Label</span></th>
-                <th style="width:20%;" valign="bottom" align="left"><span>Couleur</span></th>
-                <th style="width:20%;" valign="bottom" align="left"><span>Délai de traitement</span></th>
-                <th style="width:20%;" valign="bottom" align="left"><span>Méthode de calcul</span></th>
-                <th><span></span></th>
-                <th><span></span></th>
-            </tr>
-        </thead>
-            <tbody>
-                <tr *ngFor="let priority of prioritiesList">
-                        <td>{{priority.label_priority}}</td>
-                        <td> {{priority.color_priority}} </td>
-                        <td> {{priority.working_days}} </td>
-                        <td> {{priority.delays}} </td>
-                </tr>
-            </tbody>
-    </table>
-    -->
-    <table id ="prioritiesTable" class="display" summary="" style="width: 100%; min-width: 900px;" width="100%" cellspacing="0" border="0">
-            <thead>
-                <tr>
-                    <th style="width:20%;" valign="bottom" align="left"><span>Label</span></th>
-                    <th style="width:20%;" valign="bottom" align="left"><span>Couleur</span></th>
-                    <th style="width:20%;" valign="bottom" align="left"><span>Délai de traitement</span></th>
-                    <th style="width:20%;" valign="bottom" align="left"><span>Méthode de calcul</span></th>
-                    <th><span></span></th>
-                    <th><span></span></th>
-                </tr>
-            </thead>
-            <tbody>
-                <tr *ngFor="let priority of prioritiesList" id="{{priority.id}}">
-                        <td>{{priority.label_priority}}</td>
-                        <td><input type="color" value="{{priority.color_priority}}" style="background:none;border:none;width:45px;" disabled></td>
-                        <td>{{priority.delays}}</td>
-                        <td *ngIf="priority.working_days =='Y'">Jours ouvrés</td>
-                        <td *ngIf="priority.working_days =='N'">Jours calendaires</td>
-                        <td><a routerLink="/administration/priority/update/{{priority.id}}"><i style ="cursor:pointer"  class="fa fa-edit fa-2x" title=""></i></a></td>
-                        <td><i (click)="deletePriority(priority.id)"  style ="cursor:pointer; color: #D9534F" class="fa fa-trash fa-2x" title="{{priority.id}}"></i></td>
-                </tr>
-            </tbody>
-    </table>
-    <i routerLink="/administration/priority/create" class="fa fa-plus-square fa-3x" style="cursor:pointer; position: absolute; right: 25px; color : #337AB7" title="Nouvelle priorité"></i>
-</div>
\ No newline at end of file
diff --git a/apps/maarch_entreprise/Views/priority-administration.component.html b/apps/maarch_entreprise/Views/priority-administration.component.html
new file mode 100644
index 00000000000..38c82a439bd
--- /dev/null
+++ b/apps/maarch_entreprise/Views/priority-administration.component.html
@@ -0,0 +1,65 @@
+<div *ngIf="loading">
+    <i class="fa fa-spinner fa-spin fa-5x" style="margin-left: 50%;margin-top: 16%;font-size: 8em"></i>
+</div>
+<div *ngIf="!loading" class="container-fluid">
+    <h1 *ngIf="creationMode" style="margin-top: 0">
+        <i class="fa fa-user fa-2x"></i> Création d'une priorité {{priority.label}}
+    </h1>
+    <h1 *ngIf="!creationMode" style="margin-top: 0">
+        <i class="fa fa-user fa-2x"></i> Modif: {{priority.label}}
+    </h1>
+    <nav class="navbar navbar-default" id="toolBox">
+        <div class="container-fluid">
+            <div class="navbar-header">
+                <a routerLink="/administration/priorities" class="navbar-brand" style="cursor: pointer">
+                    <i class="fa fa-arrow-circle-left" title="Retour"></i>
+                </a>
+            </div>
+        </div>
+    </nav>
+    <div class="row row-eq-height">
+        <div class="col-md-offset-4 col-md-4" style="border-left:solid 1px white;border-right:solid 1px white;background-color: #CEE9F1;border-top: solid 2px #FDD16C;border-bottom: solid 2px #FDD16C;padding:10px;">
+            <h2>Informations</h2>
+            <form class="form-horizontal" (ngSubmit)="onSubmit()" #priorityForm="ngForm">
+                <div class="form-group">
+                    <div class="col-sm-12">
+                        <div class="input-group">
+                            <span class="input-group-addon"><i class="fa fa-envelope-o" aria-hidden="true"></i></span>
+                            <input type="text" class="form-control" name="label" title="Label" placeholder="Label" [(ngModel)]="priority.label" required>
+                        </div>
+                    </div>
+                </div>
+                <div class="form-group">
+                    <div class="col-sm-12">
+                        <div class="input-group">
+                            <span class="input-group-addon"><i class="fa fa-envelope-o" aria-hidden="true"></i></span>
+                            <input type="color" class="form-control" name="color" title="Couleur" placeholder="Couleur" [(ngModel)]="priority.color" required>
+                        </div>
+                    </div>
+                </div>
+                {{priority.working_days}}
+                <div class="form-group">
+                    <div class="col-sm-12">
+                        <div class="input-group">
+                            <span class="input-group-addon"><i class="fa fa-envelope-o" aria-hidden="true"></i></span>
+                            <input type="checkbox" class="form-control" name="working_days" title="Jours travaillés" [(ngModel)]="priority.working_days">
+                        </div>
+                    </div>
+                </div>
+                <div class="form-group">
+                    <div class="col-sm-12">
+                        <div class="input-group">
+                            <span class="input-group-addon"><i class="fa fa-paw" aria-hidden="true"></i></span>
+                            <input type="number" class="form-control" name="delays" title="Délai de traitement" placeholder="Délai de traitement" [(ngModel)]="priority.delays" required>
+                        </div>
+                    </div>
+                </div>
+                <div class="form-group">
+                    <div style="text-align:center;">
+                        <button type="submit" class="btn btn-default" [disabled]="!priorityForm.form.valid">Enregistrer la priorité</button>
+                    </div>
+                </div>
+            </form>
+        </div>
+    </div>
+</div>
diff --git a/apps/maarch_entreprise/Views/priority.component.html b/apps/maarch_entreprise/Views/priority.component.html
deleted file mode 100644
index 4112eb5bed6..00000000000
--- a/apps/maarch_entreprise/Views/priority.component.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<div id="resultInfo" class="fade" style="display:none;">
-    {{resultInfo}}
-</div>
-<h1>Priorité {{priority.label_priority}}</h1>
-<div>
-    <div class="block">
-        <div class="forms" style="width:400px;margin:auto;">    
-            <form (ngSubmit)="submitPriority()" #signatureForm="ngForm">
-                <p>      
-                    <label for="label" >Label</label>
-                    <input name="label_priority" id="label_priority" type="text" [(ngModel)]="priority.label_priority" required><span class="red_asterisk"><i class="fa fa-star"></i></span>
-                </p>
-                <p>
-                    <label for="color_priority">Couleur</label>
-                    <input name="color_priority" style="background:none;border:none;width:45px;" id="color_priority" type="color" value="{{priority.color_priority}}" [(ngModel)]="priority.color_priority" >
-                    <span class="red_asterisk"><i class="fa fa-star"></i></span>
-                </p>
-
-                <p>
-                    <label for="working_days">Jours</label>
-                    <select name="working_days" id="working_days" [(ngModel)]="priority.working_days">
-                        <option value="Y" [(ngValue)]='Y' >Jours ouvrés</option>
-                        <option value="N" [(ngValue)]='N' >Jours calendaires</option>
-                    </select>
-                    <span class="red_asterisk"><i class="fa fa-star"></i></span>
-                </p>
-
-                <p>
-                    <label for="delays">Délai de traitement</label>
-                    <input name="delays" id="delays" type="text" [(ngModel)]="priority.delays" >
-                    <span class="red_asterisk"><i class="fa fa-star"></i></span>
-                </p>
-                
-                <p class="button" style="text-align:center">
-                    <button class="btn btn-success" type="submit">Valider</button>
-                    <button class="btn btn-warning" routerLink='/administration/priorities'>Annuler</button>
-                </p>
-            
-            </form>     
-        </div>
-    </div>
-</div>
\ No newline at end of file
diff --git a/apps/maarch_entreprise/Views/users-administration.component.html b/apps/maarch_entreprise/Views/users-administration.component.html
index 0d91628acad..3fe20b3a770 100644
--- a/apps/maarch_entreprise/Views/users-administration.component.html
+++ b/apps/maarch_entreprise/Views/users-administration.component.html
@@ -20,7 +20,7 @@
         </div>
     </nav>
     <div class="col-md-12" style="margin-top: 1%">
-        <table id="usersTable" class="display toto" style="width: 100%" cellspacing="0" border="0">
+        <table id="usersTable" class="display" style="width: 100%" cellspacing="0" border="0">
             <thead>
                 <tr>
                     <th style="width:15%;" valign="bottom" align="left"><span>{{lang.identifier}}</span></th>
diff --git a/apps/maarch_entreprise/js/angular/app/app.module.js b/apps/maarch_entreprise/js/angular/app/app.module.js
index 461901f9802..28f69a8dbac 100644
--- a/apps/maarch_entreprise/js/angular/app/app.module.js
+++ b/apps/maarch_entreprise/js/angular/app/app.module.js
@@ -12,7 +12,6 @@ var router_1 = require("@angular/router");
 var http_1 = require("@angular/http");
 var forms_1 = require("@angular/forms");
 var app_component_1 = require("./app.component");
-//import { HeaderComponent }                      from './header.component';
 var administration_component_1 = require("./administration.component");
 var users_administration_component_1 = require("./users-administration.component");
 var user_administration_component_1 = require("./user-administration.component");
@@ -20,11 +19,11 @@ var status_list_administration_component_1 = require("./status-list-administrati
 var status_administration_component_1 = require("./status-administration.component");
 var actions_administration_component_1 = require("./actions-administration.component");
 var action_administration_component_1 = require("./action-administration.component");
-var profile_component_1 = require("./profile.component");
 var parameter_administration_component_1 = require("./parameter-administration.component");
 var parameters_administration_component_1 = require("./parameters-administration.component");
-var priorities_component_1 = require("./priorities.component");
-var priority_component_1 = require("./priority.component");
+var priorities_administration_component_1 = require("./priorities-administration.component");
+var priority_administration_component_1 = require("./priority-administration.component");
+var profile_component_1 = require("./profile.component");
 var signature_book_component_1 = require("./signature-book.component");
 var reports_component_1 = require("./reports.component");
 var AppModule = (function () {
@@ -47,13 +46,13 @@ AppModule = __decorate([
                 { path: 'administration/status/new', component: status_administration_component_1.StatusAdministrationComponent },
                 { path: 'administration/status/:identifier', component: status_administration_component_1.StatusAdministrationComponent },
                 { path: 'profile', component: profile_component_1.ProfileComponent },
+                { path: 'administration/parameters', component: parameters_administration_component_1.ParametersAdministrationComponent },
                 { path: 'administration/parameters/new', component: parameter_administration_component_1.ParameterAdministrationComponent },
                 { path: 'administration/parameters/:id', component: parameter_administration_component_1.ParameterAdministrationComponent },
-                { path: 'administration/parameters', component: parameters_administration_component_1.ParametersAdministrationComponent },
                 { path: 'administration/reports', component: reports_component_1.ReportsComponent },
-                { path: 'administration/priorities', component: priorities_component_1.PrioritiesComponent },
-                { path: 'administration/priority/update/:id', component: priority_component_1.PriorityComponent },
-                { path: 'administration/priority/create', component: priority_component_1.PriorityComponent },
+                { path: 'administration/priorities', component: priorities_administration_component_1.PrioritiesAdministrationComponent },
+                { path: 'administration/priorities/new', component: priority_administration_component_1.PriorityAdministrationComponent },
+                { path: 'administration/priorities/:id', component: priority_administration_component_1.PriorityAdministrationComponent },
                 { path: ':basketId/signatureBook/:resId', component: signature_book_component_1.SignatureBookComponent },
                 { path: 'administration/actions', component: actions_administration_component_1.ActionsAdministrationComponent },
                 { path: 'administration/actions/new', component: action_administration_component_1.ActionAdministrationComponent },
@@ -72,8 +71,8 @@ AppModule = __decorate([
             user_administration_component_1.UserAdministrationComponent,
             status_administration_component_1.StatusAdministrationComponent,
             status_list_administration_component_1.StatusListAdministrationComponent,
-            priorities_component_1.PrioritiesComponent,
-            priority_component_1.PriorityComponent,
+            priorities_administration_component_1.PrioritiesAdministrationComponent,
+            priority_administration_component_1.PriorityAdministrationComponent,
             parameters_administration_component_1.ParametersAdministrationComponent,
             parameter_administration_component_1.ParameterAdministrationComponent,
             profile_component_1.ProfileComponent,
diff --git a/apps/maarch_entreprise/js/angular/app/app.module.ts b/apps/maarch_entreprise/js/angular/app/app.module.ts
index a25c16c1148..9f23e4d983b 100644
--- a/apps/maarch_entreprise/js/angular/app/app.module.ts
+++ b/apps/maarch_entreprise/js/angular/app/app.module.ts
@@ -5,7 +5,6 @@ import { HttpModule }       from '@angular/http';
 import { FormsModule }      from '@angular/forms';
 
 import { AppComponent }                         from './app.component';
-//import { HeaderComponent }                      from './header.component';
 import { AdministrationComponent }              from './administration.component';
 import { UsersAdministrationComponent }         from './users-administration.component';
 import { UserAdministrationComponent }          from './user-administration.component';
@@ -13,11 +12,11 @@ import { StatusListAdministrationComponent }    from './status-list-administrati
 import { StatusAdministrationComponent }        from './status-administration.component';
 import { ActionsAdministrationComponent }       from './actions-administration.component';
 import { ActionAdministrationComponent }        from './action-administration.component';
-import { ProfileComponent }                     from './profile.component';
 import { ParameterAdministrationComponent }     from './parameter-administration.component';
 import { ParametersAdministrationComponent }    from './parameters-administration.component';
-import { PrioritiesComponent }                  from './priorities.component';
-import { PriorityComponent }                    from './priority.component';
+import { PrioritiesAdministrationComponent }    from './priorities-administration.component';
+import { PriorityAdministrationComponent }      from './priority-administration.component';
+import { ProfileComponent }                     from './profile.component';
 
 import { SignatureBookComponent, SafeUrlPipe }  from './signature-book.component';
 import { ReportsComponent } from './reports.component';
@@ -36,13 +35,13 @@ import { ReportsComponent } from './reports.component';
           { path: 'administration/status/new', component: StatusAdministrationComponent },
           { path: 'administration/status/:identifier', component: StatusAdministrationComponent },
           { path: 'profile', component: ProfileComponent },
+          { path: 'administration/parameters', component: ParametersAdministrationComponent },
           { path: 'administration/parameters/new', component: ParameterAdministrationComponent },
           { path: 'administration/parameters/:id', component: ParameterAdministrationComponent },
-          { path: 'administration/parameters', component: ParametersAdministrationComponent },
           { path: 'administration/reports', component : ReportsComponent},
-          { path: 'administration/priorities', component : PrioritiesComponent },
-          { path: 'administration/priority/update/:id', component : PriorityComponent },
-          { path: 'administration/priority/create', component : PriorityComponent },
+          { path: 'administration/priorities', component : PrioritiesAdministrationComponent },
+          { path: 'administration/priorities/new', component : PriorityAdministrationComponent },
+          { path: 'administration/priorities/:id', component : PriorityAdministrationComponent },
           { path: ':basketId/signatureBook/:resId', component: SignatureBookComponent },
           { path: 'administration/actions', component: ActionsAdministrationComponent },
           { path: 'administration/actions/new', component: ActionAdministrationComponent },
@@ -61,8 +60,8 @@ import { ReportsComponent } from './reports.component';
       UserAdministrationComponent,
       StatusAdministrationComponent,
       StatusListAdministrationComponent,
-      PrioritiesComponent,
-      PriorityComponent,
+      PrioritiesAdministrationComponent,
+      PriorityAdministrationComponent,
       ParametersAdministrationComponent,
       ParameterAdministrationComponent,
       ProfileComponent,
diff --git a/apps/maarch_entreprise/js/angular/app/priorities-administration.component.js b/apps/maarch_entreprise/js/angular/app/priorities-administration.component.js
new file mode 100644
index 00000000000..42ca84a85aa
--- /dev/null
+++ b/apps/maarch_entreprise/js/angular/app/priorities-administration.component.js
@@ -0,0 +1,80 @@
+"use strict";
+var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
+    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
+    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
+    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
+    return c > 3 && r && Object.defineProperty(target, key, r), r;
+};
+var __metadata = (this && this.__metadata) || function (k, v) {
+    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var core_1 = require("@angular/core");
+var http_1 = require("@angular/http");
+require("rxjs/add/operator/map");
+var PrioritiesAdministrationComponent = (function () {
+    function PrioritiesAdministrationComponent(http) {
+        this.http = http;
+        this.priorities = [];
+        this.lang = {};
+        this.loading = false;
+    }
+    PrioritiesAdministrationComponent.prototype.updateBreadcrumb = function (applicationName) {
+        if ($j('#ariane')[0]) {
+            $j('#ariane')[0].innerHTML = "<a href='index.php?reinit=true'>" + applicationName + "</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > Priorités";
+        }
+    };
+    PrioritiesAdministrationComponent.prototype.ngOnInit = function () {
+        var _this = this;
+        this.coreUrl = angularGlobals.coreUrl;
+        this.updateBreadcrumb(angularGlobals.applicationName);
+        this.loading = true;
+        this.http.get(this.coreUrl + 'rest/administration/priorities')
+            .map(function (res) { return res.json(); })
+            .subscribe(function (data) {
+            _this.priorities = data.priorities;
+            _this.lang = data.lang;
+            //setTimeout(() => {
+            //    this.datatable = $j('#prioritiesTable').DataTable({
+            //        "dom": '<"datatablesLeft"p><"datatablesRight"f><"datatablesCenter"l>rt<"datatablesCenter"i><"clear">',
+            //        "lengthMenu": [ 10, 25, 50, 75, 100 ],
+            //        "oLanguage": {
+            //            "sLengthMenu": "<i class='fa fa-bars'></i> _MENU_",
+            //            "sZeroRecords": this.lang.noResult,
+            //            "sInfo": "_START_ - _END_ / _TOTAL_ "+this.lang.record,
+            //            "sSearch": "",
+            //            "oPaginate": {
+            //                "sFirst":    "<<",
+            //                "sLast":    ">>",
+            //                "sNext":    this.lang.next+" <i class='fa fa-caret-right'></i>",
+            //                "sPrevious": "<i class='fa fa-caret-left'></i> "+this.lang.previous
+            //            },
+            //            "sInfoEmpty": this.lang.noRecord,
+            //            "sInfoFiltered": "(filtré de _MAX_ "+this.lang.record+")"
+            //        },
+            //        "order": [[ 1, "asc" ]],
+            //        "columnDefs": [
+            //            { "orderable": false, "targets": [3,5] }
+            //        ]
+            //    });
+            //    $j('.dataTables_filter input').attr("placeholder", this.lang.search);
+            //    $j('dataTables_filter input').addClass('form-control');
+            //    $j(".datatablesLeft").css({"float":"left"});
+            //    $j(".datatablesCenter").css({"text-align":"center"});
+            //    $j(".datatablesRight").css({"float":"right"});
+            //} ,0);
+            _this.loading = false;
+        }, function () {
+            location.href = "index.php";
+        });
+    };
+    return PrioritiesAdministrationComponent;
+}());
+PrioritiesAdministrationComponent = __decorate([
+    core_1.Component({
+        templateUrl: angularGlobals["priorities-administrationView"],
+        styleUrls: ['../../node_modules/bootstrap/dist/css/bootstrap.min.css']
+    }),
+    __metadata("design:paramtypes", [http_1.Http])
+], PrioritiesAdministrationComponent);
+exports.PrioritiesAdministrationComponent = PrioritiesAdministrationComponent;
diff --git a/apps/maarch_entreprise/js/angular/app/priorities-administration.component.ts b/apps/maarch_entreprise/js/angular/app/priorities-administration.component.ts
new file mode 100644
index 00000000000..13ee9b7c55b
--- /dev/null
+++ b/apps/maarch_entreprise/js/angular/app/priorities-administration.component.ts
@@ -0,0 +1,104 @@
+import { Component, OnInit} from '@angular/core';
+import { Http } from '@angular/http';
+import 'rxjs/add/operator/map';
+
+declare function $j(selector: any) : any;
+
+declare var angularGlobals : any;
+
+@Component({
+    templateUrl : angularGlobals["priorities-administrationView"],
+    styleUrls   : ['../../node_modules/bootstrap/dist/css/bootstrap.min.css']
+})
+export class PrioritiesAdministrationComponent implements OnInit {
+
+    coreUrl         : string;
+
+    priorities      : any[]     = [];
+    lang            : any       = {};
+
+    datatable       : any;
+    loading         : boolean   = false;
+
+
+    constructor(public http: Http) {
+    }
+
+    updateBreadcrumb(applicationName: string) {
+        if ($j('#ariane')[0]) {
+            $j('#ariane')[0].innerHTML = "<a href='index.php?reinit=true'>" + applicationName + "</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > Priorités";
+        }
+    }
+    ngOnInit(): void {
+        this.coreUrl = angularGlobals.coreUrl;
+        this.updateBreadcrumb(angularGlobals.applicationName);
+
+        this.loading = true;
+
+        this.http.get(this.coreUrl + 'rest/administration/priorities')
+            .map(res => res.json())
+            .subscribe((data) => {
+                this.priorities = data.priorities;
+                this.lang = data.lang;
+                //setTimeout(() => {
+                //    this.datatable = $j('#prioritiesTable').DataTable({
+                //        "dom": '<"datatablesLeft"p><"datatablesRight"f><"datatablesCenter"l>rt<"datatablesCenter"i><"clear">',
+                //        "lengthMenu": [ 10, 25, 50, 75, 100 ],
+                //        "oLanguage": {
+                //            "sLengthMenu": "<i class='fa fa-bars'></i> _MENU_",
+                //            "sZeroRecords": this.lang.noResult,
+                //            "sInfo": "_START_ - _END_ / _TOTAL_ "+this.lang.record,
+                //            "sSearch": "",
+                //            "oPaginate": {
+                //                "sFirst":    "<<",
+                //                "sLast":    ">>",
+                //                "sNext":    this.lang.next+" <i class='fa fa-caret-right'></i>",
+                //                "sPrevious": "<i class='fa fa-caret-left'></i> "+this.lang.previous
+                //            },
+                //            "sInfoEmpty": this.lang.noRecord,
+                //            "sInfoFiltered": "(filtré de _MAX_ "+this.lang.record+")"
+                //        },
+                //        "order": [[ 1, "asc" ]],
+                //        "columnDefs": [
+                //            { "orderable": false, "targets": [3,5] }
+                //        ]
+                //    });
+                //    $j('.dataTables_filter input').attr("placeholder", this.lang.search);
+                //    $j('dataTables_filter input').addClass('form-control');
+                //    $j(".datatablesLeft").css({"float":"left"});
+                //    $j(".datatablesCenter").css({"text-align":"center"});
+                //    $j(".datatablesRight").css({"float":"right"});
+                //} ,0);
+
+                this.loading = false;
+            }, () => {
+                location.href = "index.php";
+            })
+    }
+
+    //deletePriority(priorityId: string){
+    //    var resp = confirm('Confirmer?');
+    //    if(resp){
+    //        var intId = parseInt(priorityId);
+    //        this.http.delete(this.coreUrl + 'rest/priorities/'+intId)
+    //        .map(res => res.json())
+    //        .subscribe((data) => {
+    //            if(data.errors){
+    //                this.resultInfo = data.errors;
+    //                $j('#resultInfo').removeClass().addClass('alert alert-danger alert-dismissible');
+    //                            $j("#resultInfo").fadeTo(3000, 500).slideUp(500, function(){
+    //                                $j("#resultInfo").slideUp(500);
+    //                });
+    //            } else {
+    //                var list = this.prioritiesList;
+    //                for(var i=0;i<list.length;i++){
+    //                    if(list[i].id==priorityId){
+    //                        list.splice(i,1)
+    //                    }
+    //                }
+    //                prioritiesDataTable.row($j('#'+priorityId)).remove().draw();
+    //            }
+    //        })
+    //    }
+    //}
+}
\ No newline at end of file
diff --git a/apps/maarch_entreprise/js/angular/app/priorities.component.js b/apps/maarch_entreprise/js/angular/app/priorities.component.js
deleted file mode 100644
index 80f1238170c..00000000000
--- a/apps/maarch_entreprise/js/angular/app/priorities.component.js
+++ /dev/null
@@ -1,84 +0,0 @@
-"use strict";
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
-    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
-    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
-    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
-    return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
-var __metadata = (this && this.__metadata) || function (k, v) {
-    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var core_1 = require("@angular/core");
-var http_1 = require("@angular/http");
-require("rxjs/add/operator/map");
-var router_1 = require("@angular/router");
-var prioritiesDataTable;
-var PrioritiesComponent = (function () {
-    function PrioritiesComponent(http, route, router) {
-        this.http = http;
-        this.route = route;
-        this.router = router;
-        this.resultInfo = "";
-    }
-    PrioritiesComponent.prototype.ngOnInit = function () {
-        var _this = this;
-        this.coreUrl = angularGlobals.coreUrl;
-        this.preparePriorities();
-        this.http.get(this.coreUrl + 'rest/priorities')
-            .map(function (res) { return res.json(); })
-            .subscribe(function (data) {
-            if (data.errors) {
-                $j('#resultInfo').removeClass().addClass('alert alert-danger alert-dismissible');
-                $j("#resultInfo").fadeTo(3000, 500).slideUp(500, function () {
-                    $j("#resultInfo").slideUp(500);
-                });
-            }
-            else {
-                _this.prioritiesList = data.prioritiesList;
-                setTimeout(function () {
-                    prioritiesDataTable = $j('#prioritiesTable').DataTable();
-                }, 0);
-            }
-        });
-    };
-    PrioritiesComponent.prototype.deletePriority = function (priorityId) {
-        var _this = this;
-        var resp = confirm('Confirmer?');
-        if (resp) {
-            var intId = parseInt(priorityId);
-            this.http.delete(this.coreUrl + 'rest/priorities/' + intId)
-                .map(function (res) { return res.json(); })
-                .subscribe(function (data) {
-                if (data.errors) {
-                    _this.resultInfo = data.errors;
-                    $j('#resultInfo').removeClass().addClass('alert alert-danger alert-dismissible');
-                    $j("#resultInfo").fadeTo(3000, 500).slideUp(500, function () {
-                        $j("#resultInfo").slideUp(500);
-                    });
-                }
-                else {
-                    var list = _this.prioritiesList;
-                    for (var i = 0; i < list.length; i++) {
-                        if (list[i].id == priorityId) {
-                            list.splice(i, 1);
-                        }
-                    }
-                    prioritiesDataTable.row($j('#' + priorityId)).remove().draw();
-                }
-            });
-        }
-    };
-    PrioritiesComponent.prototype.preparePriorities = function () {
-        $j('#inner_content').remove();
-    };
-    return PrioritiesComponent;
-}());
-PrioritiesComponent = __decorate([
-    core_1.Component({
-        templateUrl: angularGlobals.prioritiesView,
-        styleUrls: ['../../node_modules/bootstrap/dist/css/bootstrap.min.css']
-    }),
-    __metadata("design:paramtypes", [http_1.Http, router_1.ActivatedRoute, router_1.Router])
-], PrioritiesComponent);
-exports.PrioritiesComponent = PrioritiesComponent;
diff --git a/apps/maarch_entreprise/js/angular/app/priorities.component.ts b/apps/maarch_entreprise/js/angular/app/priorities.component.ts
deleted file mode 100644
index 3047245fb8d..00000000000
--- a/apps/maarch_entreprise/js/angular/app/priorities.component.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-import { Component, OnInit} from '@angular/core';
-import { Http } from '@angular/http';
-import 'rxjs/add/operator/map';
-import { Router, ActivatedRoute } from '@angular/router';
-
-declare function $j(selector: any) : any;
-
-declare var angularGlobals : any;
-var prioritiesDataTable : any;
-
-@Component({
-    templateUrl : angularGlobals.prioritiesView,
-    styleUrls   : ['../../node_modules/bootstrap/dist/css/bootstrap.min.css']
-})
-
-export class PrioritiesComponent implements OnInit {
-    coreUrl         :string;
-    prioritiesList  :any;
-    resultInfo      :string = "";
-    prioritiesDataTable :any;
-
-    constructor(public http: Http, private route: ActivatedRoute, private router: Router) {
-
-    }
-
-    ngOnInit(): void{
-        this.coreUrl = angularGlobals.coreUrl;
-        this.preparePriorities();
-        this.http.get(this.coreUrl + 'rest/priorities')
-            .map(res => res.json())
-            .subscribe((data) => {
-                if(data.errors){
-                    $j('#resultInfo').removeClass().addClass('alert alert-danger alert-dismissible');
-                    $j("#resultInfo").fadeTo(3000, 500).slideUp(500, function(){
-                        $j("#resultInfo").slideUp(500);
-                    });
-                } else {
-                    this.prioritiesList = data.prioritiesList;
-                    setTimeout(function(){
-                        prioritiesDataTable = $j('#prioritiesTable').DataTable();
-                    } ,0);
-                }
-            })
-    }
-
-    deletePriority(priorityId: string){
-        var resp = confirm('Confirmer?');
-        if(resp){
-            var intId = parseInt(priorityId);
-            this.http.delete(this.coreUrl + 'rest/priorities/'+intId)
-            .map(res => res.json())
-            .subscribe((data) => {
-                if(data.errors){
-                    this.resultInfo = data.errors;
-                    $j('#resultInfo').removeClass().addClass('alert alert-danger alert-dismissible');
-                                $j("#resultInfo").fadeTo(3000, 500).slideUp(500, function(){
-                                    $j("#resultInfo").slideUp(500);
-                    });
-                } else {
-                    var list = this.prioritiesList;
-                    for(var i=0;i<list.length;i++){
-                        if(list[i].id==priorityId){
-                            list.splice(i,1)
-                        }                        
-                    }
-                    prioritiesDataTable.row($j('#'+priorityId)).remove().draw();
-                }
-            })
-        }
-    }
-
-    preparePriorities() {
-        $j('#inner_content').remove();
-    }
-}
\ No newline at end of file
diff --git a/apps/maarch_entreprise/js/angular/app/priority-administration.component.js b/apps/maarch_entreprise/js/angular/app/priority-administration.component.js
new file mode 100644
index 00000000000..f05881ca1d5
--- /dev/null
+++ b/apps/maarch_entreprise/js/angular/app/priority-administration.component.js
@@ -0,0 +1,93 @@
+"use strict";
+var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
+    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
+    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
+    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
+    return c > 3 && r && Object.defineProperty(target, key, r), r;
+};
+var __metadata = (this && this.__metadata) || function (k, v) {
+    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var core_1 = require("@angular/core");
+var http_1 = require("@angular/http");
+var router_1 = require("@angular/router");
+require("rxjs/add/operator/map");
+var PriorityAdministrationComponent = (function () {
+    function PriorityAdministrationComponent(http, route, router) {
+        this.http = http;
+        this.route = route;
+        this.router = router;
+        this.priority = {
+            working_days: false
+        };
+        this.lang = {};
+        this.loading = false;
+    }
+    PriorityAdministrationComponent.prototype.updateBreadcrumb = function (applicationName) {
+        if ($j('#ariane')[0]) {
+            $j('#ariane')[0].innerHTML = "<a href='index.php?reinit=true'>" + applicationName + "</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > <a onclick='location.hash = \"/administration/priorities\"' style='cursor: pointer'>Priorités</a>";
+        }
+    };
+    PriorityAdministrationComponent.prototype.ngOnInit = function () {
+        var _this = this;
+        this.updateBreadcrumb(angularGlobals.applicationName);
+        this.coreUrl = angularGlobals.coreUrl;
+        this.loading = true;
+        this.route.params.subscribe(function (params) {
+            if (typeof params['id'] == "undefined") {
+                _this.creationMode = true;
+                _this.http.get(_this.coreUrl + "rest/administration/priorities/new")
+                    .map(function (res) { return res.json(); })
+                    .subscribe(function (data) {
+                    _this.lang = data.lang;
+                    _this.loading = false;
+                }, function () {
+                    location.href = "index.php";
+                });
+            }
+            else {
+                _this.creationMode = false;
+                _this.id = params['id'];
+                _this.http.get(_this.coreUrl + "rest/administration/priorities/" + _this.id)
+                    .map(function (res) { return res.json(); })
+                    .subscribe(function (data) {
+                    _this.priority = data.priority;
+                    _this.lang = data.lang;
+                    _this.loading = false;
+                }, function () {
+                    location.href = "index.php";
+                });
+            }
+        });
+    };
+    PriorityAdministrationComponent.prototype.onSubmit = function () {
+        if (this.creationMode) {
+            this.http.post(this.coreUrl + "rest/priorities", this.priority)
+                .map(function (res) { return res.json(); })
+                .subscribe(function (data) {
+                successNotification(data.success);
+            }, function (err) {
+                errorNotification(JSON.parse(err._body).errors);
+            });
+        }
+        else {
+            this.http.put(this.coreUrl + "rest/priorities/" + this.id, this.priority)
+                .map(function (res) { return res.json(); })
+                .subscribe(function (data) {
+                successNotification(data.success);
+            }, function (err) {
+                errorNotification(JSON.parse(err._body).errors);
+            });
+        }
+    };
+    return PriorityAdministrationComponent;
+}());
+PriorityAdministrationComponent = __decorate([
+    core_1.Component({
+        templateUrl: angularGlobals["priority-administrationView"],
+        styleUrls: ['../../node_modules/bootstrap/dist/css/bootstrap.min.css']
+    }),
+    __metadata("design:paramtypes", [http_1.Http, router_1.ActivatedRoute, router_1.Router])
+], PriorityAdministrationComponent);
+exports.PriorityAdministrationComponent = PriorityAdministrationComponent;
diff --git a/apps/maarch_entreprise/js/angular/app/priority-administration.component.ts b/apps/maarch_entreprise/js/angular/app/priority-administration.component.ts
new file mode 100644
index 00000000000..6138f9c8f8f
--- /dev/null
+++ b/apps/maarch_entreprise/js/angular/app/priority-administration.component.ts
@@ -0,0 +1,96 @@
+import { Component, OnInit} from '@angular/core';
+import { Http } from '@angular/http';
+import { Router, ActivatedRoute } from '@angular/router';
+import 'rxjs/add/operator/map';
+
+declare function $j(selector: any) : any;
+declare function successNotification(message: string) : void;
+declare function errorNotification(message: string) : void;
+
+declare var angularGlobals : any;
+
+
+@Component({
+    templateUrl : angularGlobals["priority-administrationView"],
+    styleUrls   : ['../../node_modules/bootstrap/dist/css/bootstrap.min.css']
+})
+export class PriorityAdministrationComponent implements OnInit {
+
+    coreUrl         : string;
+    id              : string;
+    creationMode    : boolean;
+
+    priority        : any       = {
+        working_days    : false
+    };
+    lang            : any       = {};
+
+    loading         : boolean   = false;
+
+    constructor(public http: Http, private route: ActivatedRoute, private router: Router) {
+    }
+
+    updateBreadcrumb(applicationName: string) {
+        if ($j('#ariane')[0]) {
+            $j('#ariane')[0].innerHTML = "<a href='index.php?reinit=true'>" + applicationName + "</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > <a onclick='location.hash = \"/administration/priorities\"' style='cursor: pointer'>Priorités</a>";
+        }
+    }
+
+    ngOnInit(): void {
+        this.updateBreadcrumb(angularGlobals.applicationName);
+        this.coreUrl = angularGlobals.coreUrl;
+
+        this.loading = true;
+
+        this.route.params.subscribe((params) => {
+            if (typeof params['id'] == "undefined") {
+                this.creationMode = true;
+                this.http.get(this.coreUrl + "rest/administration/priorities/new")
+                    .map(res => res.json())
+                    .subscribe((data) => {
+                        this.lang = data.lang;
+
+                        this.loading = false;
+                    }, () => {
+                        location.href = "index.php";
+                    });
+            } else {
+                this.creationMode = false;
+                this.id = params['id'];
+                this.http.get(this.coreUrl + "rest/administration/priorities/" + this.id)
+                    .map(res => res.json())
+                    .subscribe((data) => {
+                        this.priority = data.priority;
+                        this.lang = data.lang;
+
+                        this.loading = false;
+                    }, () => {
+                        location.href = "index.php";
+                    });
+            }
+        });
+    }
+
+    onSubmit(){
+        if (this.creationMode) {
+            this.http.post(this.coreUrl + "rest/priorities", this.priority)
+                .map(res => res.json())
+                .subscribe((data) => {
+                    successNotification(data.success);
+                }, (err) => {
+                    errorNotification(JSON.parse(err._body).errors);
+                });
+        } else {
+            this.http.put(this.coreUrl + "rest/priorities/" + this.id, this.priority)
+                .map(res => res.json())
+                .subscribe((data) => {
+                    successNotification(data.success);
+                }, (err) => {
+                    errorNotification(JSON.parse(err._body).errors);
+                });
+        }
+
+    }
+
+
+}
\ No newline at end of file
diff --git a/apps/maarch_entreprise/js/angular/app/priority.component.js b/apps/maarch_entreprise/js/angular/app/priority.component.js
deleted file mode 100644
index 9daed9f9e2f..00000000000
--- a/apps/maarch_entreprise/js/angular/app/priority.component.js
+++ /dev/null
@@ -1,125 +0,0 @@
-"use strict";
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
-    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
-    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
-    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
-    return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
-var __metadata = (this && this.__metadata) || function (k, v) {
-    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var core_1 = require("@angular/core");
-var http_1 = require("@angular/http");
-require("rxjs/add/operator/map");
-var router_1 = require("@angular/router");
-var PriorityComponent = (function () {
-    function PriorityComponent(http, route, router) {
-        this.http = http;
-        this.route = route;
-        this.router = router;
-        this.mode = null;
-        this.priority = {
-            id: null,
-            label_priority: null,
-            color_priority: '#ffffff',
-            working_days: 'Y',
-            delays: '*'
-        };
-    }
-    PriorityComponent.prototype.ngOnInit = function () {
-        var _this = this;
-        this.coreUrl = angularGlobals.coreUrl;
-        this.preparePriority();
-        this.route.params.subscribe(function (params) {
-            if (_this.route.toString().includes('update')) {
-                _this.mode = 'update';
-                _this.priorityId = params['id'];
-                _this.getPriorityInfos(_this.priorityId);
-            }
-            else if (_this.route.toString().includes('create')) {
-                _this.mode = 'create';
-            }
-        });
-    };
-    PriorityComponent.prototype.preparePriority = function () {
-        $j('#inner_content').remove();
-    };
-    PriorityComponent.prototype.getPriorityInfos = function (priorityId) {
-        var _this = this;
-        var intId = parseInt(priorityId);
-        this.http.get(this.coreUrl + 'rest/priorities/' + intId)
-            .map(function (res) { return res.json(); })
-            .subscribe(function (data) {
-            if (data.errors) {
-                _this.resultInfo = data.errors;
-                $j('#resultInfo').removeClass().addClass('alert alert-danger alert-dismissible');
-                $j("#resultInfo").fadeTo(3000, 500).slideUp(500, function () {
-                    $j("#resultInfo").slideUp(500);
-                });
-            }
-            else {
-                var infoPriority = data;
-                _this.priority.id = infoPriority[0].id;
-                _this.priority.label_priority = infoPriority[0].label_priority;
-                _this.priority.color_priority = infoPriority[0].color_priority;
-                _this.priority.working_days = infoPriority[0].working_days;
-                _this.priority.delays = infoPriority[0].delays;
-            }
-        });
-    };
-    PriorityComponent.prototype.submitPriority = function () {
-        var _this = this;
-        if (this.mode == 'create') {
-            this.http.post(this.coreUrl + 'rest/priorities', this.priority)
-                .map(function (res) { return res.json(); })
-                .subscribe(function (data) {
-                if (data.errors) {
-                    _this.resultInfo = data.errors;
-                    $j('#resultInfo').removeClass().addClass('alert alert-danger alert-dismissible');
-                    $j("#resultInfo").fadeTo(3000, 500).slideUp(500, function () {
-                        $j("#resultInfo").slideUp(500);
-                    });
-                }
-                else {
-                    _this.resultInfo = 'Priorité créée avec succès';
-                    $j('#resultInfo').removeClass().addClass('alert alert-danger alert-dismissible');
-                    $j("#resultInfo").fadeTo(3000, 500).slideUp(500, function () {
-                        $j("#resultInfo").slideUp(500);
-                    });
-                    _this.router.navigate(['administration/priorities']);
-                }
-            });
-        }
-        else if (this.mode == 'update') {
-            this.http.put(this.coreUrl + 'rest/priorities/' + this.priorityId, this.priority)
-                .map(function (res) { return res.json(); })
-                .subscribe(function (data) {
-                if (data.errors) {
-                    _this.resultInfo = data.errors;
-                    $j('#resultInfo').removeClass().addClass('alert alert-danger alert-dismissible');
-                    $j("#resultInfo").fadeTo(3000, 500).slideUp(500, function () {
-                        $j("#resultInfo").slideUp(500);
-                    });
-                }
-                else {
-                    _this.resultInfo = 'Priorité mise à jour avec succès';
-                    $j('#resultInfo').removeClass().addClass('alert alert-success alert-dismissible');
-                    $j("#resultInfo").fadeTo(3000, 500).slideUp(500, function () {
-                        $j("#resultInfo").slideUp(500);
-                    });
-                    _this.router.navigate(['administration/priorities']);
-                }
-            });
-        }
-    };
-    return PriorityComponent;
-}());
-PriorityComponent = __decorate([
-    core_1.Component({
-        templateUrl: angularGlobals.priorityView,
-        styleUrls: ['../../node_modules/bootstrap/dist/css/bootstrap.min.css']
-    }),
-    __metadata("design:paramtypes", [http_1.Http, router_1.ActivatedRoute, router_1.Router])
-], PriorityComponent);
-exports.PriorityComponent = PriorityComponent;
diff --git a/apps/maarch_entreprise/js/angular/app/priority.component.ts b/apps/maarch_entreprise/js/angular/app/priority.component.ts
deleted file mode 100644
index 15b27bbee27..00000000000
--- a/apps/maarch_entreprise/js/angular/app/priority.component.ts
+++ /dev/null
@@ -1,116 +0,0 @@
-import { Component, OnInit} from '@angular/core';
-import { Http } from '@angular/http';
-import 'rxjs/add/operator/map';
-import { Router, ActivatedRoute } from '@angular/router';
-
-declare function $j(selector: any) : any;
-
-declare var angularGlobals : any;
-@Component({
-    templateUrl : angularGlobals.priorityView,
-    styleUrls   : ['../../node_modules/bootstrap/dist/css/bootstrap.min.css']
-})
-
-export class PriorityComponent implements OnInit {
-    coreUrl     :string;
-    
-    mode        :string = null;
-    priority    :any = {
-        id              :null,
-        label_priority  :null,
-        color_priority  :'#ffffff',
-        working_days    :'Y',
-        delays          :'*'
-    };
-    priorityId  :any;
-    resultInfo  :string;
-
-    constructor(public http: Http, private route: ActivatedRoute, private router: Router) {
-    }
-
-    ngOnInit(): void{
-        this.coreUrl = angularGlobals.coreUrl;
-        this.preparePriority();
-        this.route.params.subscribe((params) => {
-            if(this.route.toString().includes('update')){
-                this.mode='update';
-                
-                this.priorityId = params['id'];
-                this.getPriorityInfos(this.priorityId);                
-            } else if (this.route.toString().includes('create')){
-                this.mode = 'create';
-            }
-        });
-    }
-
-    preparePriority() {
-        $j('#inner_content').remove();
-    }
-
-    getPriorityInfos(priorityId : string){
-        var intId = parseInt(priorityId);
-        this.http.get(this.coreUrl + 'rest/priorities/'+intId)
-                .map(res => res.json())
-                .subscribe((data) => {
-                    if(data.errors){
-                        this.resultInfo = data.errors;
-                        $j('#resultInfo').removeClass().addClass('alert alert-danger alert-dismissible');
-                        $j("#resultInfo").fadeTo(3000, 500).slideUp(500, function(){
-                            $j("#resultInfo").slideUp(500);
-                        });
-                    } else{
-
-                            var infoPriority=data; 
-                            this.priority.id = infoPriority[0].id;
-                            this.priority.label_priority = infoPriority[0].label_priority;
-                            this.priority.color_priority = infoPriority[0].color_priority;
-                            this.priority.working_days = infoPriority[0].working_days;
-                            this.priority.delays = infoPriority[0].delays;
-                        }
-                    });
-    }
-
-    submitPriority(){
-        if(this.mode=='create'){
-            this.http.post(this.coreUrl + 'rest/priorities', this.priority)
-            .map(res => res.json())
-            .subscribe((data) => {
-                if(data.errors){
-                    this.resultInfo = data.errors;
-                    $j('#resultInfo').removeClass().addClass('alert alert-danger alert-dismissible');
-                    $j("#resultInfo").fadeTo(3000, 500).slideUp(500, function(){
-                        $j("#resultInfo").slideUp(500);
-                    });
-                } else{
-                    this.resultInfo = 'Priorité créée avec succès';
-                    $j('#resultInfo').removeClass().addClass('alert alert-danger alert-dismissible');
-                        $j("#resultInfo").fadeTo(3000, 500).slideUp(500, function(){
-                            $j("#resultInfo").slideUp(500);
-                        });
-                        this.router.navigate(['administration/priorities'])
-                }
-            });
-        } else if(this.mode=='update'){
-            this.http.put(this.coreUrl + 'rest/priorities/'+this.priorityId, this.priority)
-            .map( res => res.json())
-            .subscribe((data) => {
-                if(data.errors){
-                    this.resultInfo = data.errors;
-                    $j('#resultInfo').removeClass().addClass('alert alert-danger alert-dismissible');
-                    $j("#resultInfo").fadeTo(3000, 500).slideUp(500, function(){
-                        $j("#resultInfo").slideUp(500);
-                    });
-                } else {
-                    this.resultInfo = 'Priorité mise à jour avec succès';
-                    $j('#resultInfo').removeClass().addClass('alert alert-success alert-dismissible');
-                        $j("#resultInfo").fadeTo(3000, 500).slideUp(500, function(){
-                            $j("#resultInfo").slideUp(500);
-                        });
-                        this.router.navigate(['administration/priorities'])
-                }
-            });
-        }
-    }
-
-
-}
\ No newline at end of file
diff --git a/apps/maarch_entreprise/js/angular/main.bundle.min.js b/apps/maarch_entreprise/js/angular/main.bundle.min.js
index 0fd6efef7cb..c2a05ecfc62 100644
--- a/apps/maarch_entreprise/js/angular/main.bundle.min.js
+++ b/apps/maarch_entreprise/js/angular/main.bundle.min.js
@@ -1 +1 @@
-!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).main=t()}}(function(){return function t(e,n,r){function o(s,a){if(!n[s]){if(!e[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(i)return i(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[s]={exports:{}};e[s][0].call(l.exports,function(t){var n=e[s][1][t];return o(n||t)},l,l.exports,t,e,n,r)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http"),a=t("@angular/router");t("rxjs/add/operator/map");var u=function(){function t(t,e){this.http=t,this.router=e,this.applicationServices=[],this.modulesServices=[],this.loading=!1}return t.prototype.prepareAdministration=function(){$j("#inner_content").remove(),$j("#menunav").hide(),$j("#divList").remove(),$j("#magicContactsTable").remove(),$j("#manageBasketsOrderTable").remove(),$j("#controlParamTechnicTable").remove(),$j("#container").width("99%"),$j("#content h1")[0]&&$j("#content h1")[0]!=$j("my-app h1")[0]&&$j("#content h1")[0].remove()},t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > Administration")},t.prototype.ngOnInit=function(){var t=this;this.prepareAdministration(),this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/administration").map(function(t){return t.json()}).subscribe(function(e){t.applicationServices=e.application,t.modulesServices=e.modules,t.loading=!1})},t.prototype.goToSpecifiedAdministration=function(t){"true"==t.angular?this.router.navigate([t.servicepage]):window.location.assign(t.servicepage)},t}();u=r([i.Component({templateUrl:angularGlobals.administrationView,styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"]}),o("design:paramtypes",[s.Http,a.Router])],u),n.AdministrationComponent=u},{"@angular/core":13,"@angular/http":15,"@angular/router":18,"rxjs/add/operator/map":29}],2:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),i=function(){function t(){}return t}();i=r([o.Component({selector:"my-app",template:'<div id="resultInfo" class="fade" style="display:none;"></div><router-outlet></router-outlet>',styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"]})],i),n.AppComponent=i},{"@angular/core":13}],3:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),i=t("@angular/platform-browser"),s=t("@angular/router"),a=t("@angular/http"),u=t("@angular/forms"),c=t("./app.component"),l=t("./administration.component"),p=t("./users-administration.component"),h=t("./user-administration.component"),f=t("./status-list-administration.component"),d=t("./status-administration.component"),m=t("./profile.component"),y=t("./signature-book.component"),v=function(){function t(){}return t}();v=r([o.NgModule({imports:[i.BrowserModule,u.FormsModule,s.RouterModule.forRoot([{path:"administration",component:l.AdministrationComponent},{path:"administration/users",component:p.UsersAdministrationComponent},{path:"administration/users/new",component:h.UserAdministrationComponent},{path:"administration/users/:id",component:h.UserAdministrationComponent},{path:"administration/status",component:f.StatusListAdministrationComponent},{path:"administration/status/new",component:d.StatusAdministrationComponent},{path:"administration/status/:identifier",component:d.StatusAdministrationComponent},{path:"profile",component:m.ProfileComponent},{path:":basketId/signatureBook/:resId",component:y.SignatureBookComponent},{path:"**",redirectTo:"",pathMatch:"full"}],{useHash:!0}),a.HttpModule],declarations:[c.AppComponent,l.AdministrationComponent,p.UsersAdministrationComponent,h.UserAdministrationComponent,d.StatusAdministrationComponent,f.StatusListAdministrationComponent,m.ProfileComponent,y.SignatureBookComponent,y.SafeUrlPipe],bootstrap:[c.AppComponent]})],v),n.AppModule=v},{"./administration.component":1,"./app.component":2,"./profile.component":4,"./signature-book.component":5,"./status-administration.component":6,"./status-list-administration.component":7,"./user-administration.component":8,"./users-administration.component":9,"@angular/core":13,"@angular/forms":14,"@angular/http":15,"@angular/platform-browser":17,"@angular/router":18}],4:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http");t("rxjs/add/operator/map");var a=function(){function t(t,e){var n=this;this.http=t,this.zone=e,this.user={lang:{},baskets:[]},this.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},this.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},this.mailSignatureModel={selected:0,htmlBody:"",title:""},this.userAbsenceModel=[],this.showPassword=!1,this.selectedSignature=-1,this.selectedSignatureLabel="",this.loading=!1,window.angularProfileComponent={componentAfterUpload:function(t){return n.processAfterUpload(t)}}}return t.prototype.prepareProfile=function(){$j("#inner_content").remove(),$j("#menunav").hide(),$j("#divList").remove(),$j("#magicContactsTable").remove(),$j("#manageBasketsOrderTable").remove(),$j("#controlParamTechnicTable").remove(),$j("#container").width("99%"),$j("#content h1")[0]&&$j("#content h1")[0]!=$j("my-app h1")[0]&&$j("#content h1")[0].remove(),tinymce.baseURL="../../node_modules/tinymce",tinymce.suffix=".min",tinymce.init({selector:"textarea#emailSignature",statusbar:!1,language:"fr_FR",language_url:"tools/tinymce/langs/fr_FR.js",height:"200",plugins:["textcolor"],external_plugins:{bdesk_photo:"../../apps/maarch_entreprise/tools/tinymce/bdesk_photo/plugin.min.js"},menubar:!1,toolbar:"undo | bold italic underline | alignleft aligncenter alignright | bdesk_photo | forecolor",theme_buttons1_add:"fontselect,fontsizeselect",theme_buttons2_add_before:"cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",theme_buttons2_add:"separator,insertdate,inserttime,preview,separator,forecolor,backcolor",theme_buttons3_add_before:"tablecontrols,separator",theme_buttons3_add:"separator,print,separator,ltr,rtl,separator,fullscreen,separator,insertlayer,moveforward,movebackward,absolut",theme_toolbar_align:"left",theme_advanced_toolbar_location:"top",theme_styles:"Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1"})},t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > Profil")},t.prototype.ngOnInit=function(){var t=this;this.prepareProfile(),this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/users/profile").map(function(t){return t.json()}).subscribe(function(e){t.user=e,setTimeout(function(){$j("#absenceUser").typeahead({order:"asc",display:"formattedUser",templateValue:"{{user_id}}",source:{ajax:{type:"GET",dataType:"json",url:t.coreUrl+"rest/users/autocompleter"}}})},0),t.loading=!1})},t.prototype.processAfterUpload=function(t){var e=this;this.zone.run(function(){return e.resfreshUpload(t)})},t.prototype.resfreshUpload=function(t){this.signatureModel.size<=2e6?(this.signatureModel.base64=t.replace(/^data:.*?;base64,/,""),this.signatureModel.base64ForJs=t):(this.signatureModel.name="",this.signatureModel.size=0,this.signatureModel.type="",this.signatureModel.base64="",this.signatureModel.base64ForJs="",errorNotification("Taille maximum de fichier dépassée (2 MB)"))},t.prototype.displayPassword=function(){this.showPassword=!this.showPassword},t.prototype.clickOnUploader=function(t){$j("#"+t).click()},t.prototype.uploadSignatureTrigger=function(t){if(t.target.files&&t.target.files[0]){var e=new FileReader;this.signatureModel.name=t.target.files[0].name,this.signatureModel.size=t.target.files[0].size,this.signatureModel.type=t.target.files[0].type,""==this.signatureModel.label&&(this.signatureModel.label=this.signatureModel.name),e.readAsDataURL(t.target.files[0]),e.onload=function(t){window.angularProfileComponent.componentAfterUpload(t.target.result)}}},t.prototype.displaySignatureEditionForm=function(t){this.selectedSignature=t,this.selectedSignatureLabel=this.user.signatures[t].signature_label},t.prototype.changeEmailSignature=function(){var t=$j("#emailSignaturesSelect").prop("selectedIndex");this.mailSignatureModel.selected=t,t>0?(tinymce.get("emailSignature").setContent(this.user.emailSignatures[t-1].html_body),this.mailSignatureModel.title=this.user.emailSignatures[t-1].title):(tinymce.get("emailSignature").setContent(""),this.mailSignatureModel.title="")},t.prototype.addBasketRedirection=function(){var t=$j("#selectBasketAbsenceUser option:selected").index();t>0&&(this.userAbsenceModel.push({basketId:this.user.baskets[t-1].basket_id,basketName:this.user.baskets[t-1].basket_name,virtual:this.user.baskets[t-1].is_virtual,basketOwner:this.user.baskets[t-1].basket_owner,newUser:$j("#absenceUser")[0].value,index:t-1}),this.user.baskets[t-1].disabled=!0,$j("#selectBasketAbsenceUser option:eq(0)").prop("selected",!0),$j("#absenceUser")[0].value="")},t.prototype.delBasketRedirection=function(t){this.user.baskets[this.userAbsenceModel[t].index].disabled=!1,this.userAbsenceModel.splice(t,1)},t.prototype.activateAbsence=function(){var t=this;this.http.post(this.coreUrl+"rest/users/"+this.user.user_id+"/baskets/absence",this.userAbsenceModel).map(function(t){return t.json()}).subscribe(function(){t.userAbsenceModel=[],location.search="?display=true&page=logout&abs_mode"},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.updatePassword=function(){var t=this;this.http.put(this.coreUrl+"rest/currentUser/password",this.passwordModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?errorNotification(e.errors):(t.showPassword=!1,t.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},successNotification(e.success))},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.submitEmailSignature=function(){var t=this;this.mailSignatureModel.htmlBody=tinymce.get("emailSignature").getContent(),this.http.post(this.coreUrl+"rest/currentUser/emailSignature",this.mailSignatureModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?errorNotification(e.errors):(t.user.emailSignatures=e.emailSignatures,t.mailSignatureModel={selected:0,htmlBody:"",title:""},tinymce.get("emailSignature").setContent(""),successNotification(e.success))})},t.prototype.updateEmailSignature=function(){var t=this;this.mailSignatureModel.htmlBody=tinymce.get("emailSignature").getContent();var e=this.user.emailSignatures[this.mailSignatureModel.selected-1].id;this.http.put(this.coreUrl+"rest/currentUser/emailSignature/"+e,this.mailSignatureModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?errorNotification(e.errors):(t.user.emailSignatures[t.mailSignatureModel.selected-1].title=e.emailSignature.title,t.user.emailSignatures[t.mailSignatureModel.selected-1].html_body=e.emailSignature.html_body,successNotification(e.success))})},t.prototype.deleteEmailSignature=function(){var t=this;if(confirm("Voulez-vous vraiment supprimer la signature de mail ?")){var e=this.user.emailSignatures[this.mailSignatureModel.selected-1].id;this.http.delete(this.coreUrl+"rest/currentUser/emailSignature/"+e).map(function(t){return t.json()}).subscribe(function(e){e.errors?errorNotification(e.errors):(t.user.emailSignatures=e.emailSignatures,t.mailSignatureModel={selected:0,htmlBody:"",title:""},tinymce.get("emailSignature").setContent(""),successNotification(e.success))})}},t.prototype.submitSignature=function(){var t=this;this.http.post(this.coreUrl+"rest/users/"+this.user.id+"/signatures",this.signatureModel).map(function(t){return t.json()}).subscribe(function(e){t.user.signatures=e.signatures,t.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.updateSignature=function(){var t=this,e=this.user.signatures[this.selectedSignature].id;this.http.put(this.coreUrl+"rest/users/"+this.user.id+"/signatures/"+e,{label:this.selectedSignatureLabel}).map(function(t){return t.json()}).subscribe(function(e){t.user.signatures[t.selectedSignature].signature_label=e.signature.signature_label,t.selectedSignature=-1,t.selectedSignatureLabel="",successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.deleteSignature=function(t){var e=this;confirm("Voulez-vous vraiment supprimer la signature ?")&&this.http.delete(this.coreUrl+"rest/users/"+this.user.id+"/signatures/"+t).map(function(t){return t.json()}).subscribe(function(t){e.user.signatures=t.signatures,successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.onSubmit=function(){this.http.put(this.coreUrl+"rest/users/profile",this.user).map(function(t){return t.json()}).subscribe(function(t){successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t}();a=r([i.Component({templateUrl:angularGlobals.profileView,styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","css/profile.component.css"]}),o("design:paramtypes",[s.Http,i.NgZone])],a),n.ProfileComponent=a},{"@angular/core":13,"@angular/http":15,"rxjs/add/operator/map":29}],5:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http"),a=t("@angular/platform-browser"),u=t("@angular/router");t("rxjs/add/operator/map");var c=function(){function t(t){this.sanitizer=t}return t.prototype.transform=function(t){return this.sanitizer.bypassSecurityTrustResourceUrl(t)},t}();c=r([i.Pipe({name:"safeUrl"}),o("design:paramtypes",[a.DomSanitizer])],c),n.SafeUrlPipe=c;var l=function(){function t(t,e,n,r){var o=this;this.http=t,this.route=e,this.router=n,this.zone=r,this.signatureBook={currentAction:{},consigne:"",documents:[],attachments:[],resList:[],resListIndex:0,lang:{}},this.rightSelectedThumbnail=0,this.leftSelectedThumbnail=0,this.rightViewerLink="",this.leftViewerLink="",this.headerTab=1,this.showTopRightPanel=!1,this.showTopLeftPanel=!1,this.showResLeftPanel=!0,this.showLeftPanel=!0,this.showRightPanel=!0,this.showAttachmentPanel=!1,this.showSignaturesPanel=!1,this.loading=!1,this.loadingSign=!1,this.leftContentWidth="44%",this.rightContentWidth="44%",this.notesViewerLink="",this.visaViewerLink="",this.histViewerLink="",this.linksViewerLink="",this.attachmentsViewerLink="",window.angularSignatureBookComponent={componentAfterAttach:function(t){return o.processAfterAttach(t)},componentAfterAction:function(){return o.processAfterAction()},componentAfterNotes:function(){return o.processAfterNotes()}}}return t.prototype.prepareSignatureBook=function(){$j("#inner_content").remove(),$j("#header").remove(),$j("#viewBasketsTitle").remove(),$j("#homePageWelcomeTitle").remove(),$j("#footer").remove(),$j("#container").width("99%")},t.prototype.ngOnInit=function(){var t=this;this.prepareSignatureBook(),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.route.params.subscribe(function(e){t.resId=+e.resId,t.basketId=e.basketId,t.signatureBook.resList=[],lockDocument(t.resId),setInterval(function(){lockDocument(t.resId)},5e4),t.http.get(t.coreUrl+"rest/"+t.basketId+"/signatureBook/"+t.resId).map(function(t){return t.json()}).subscribe(function(e){if(e.error)return location.hash="",void(location.search="");t.signatureBook=e,t.headerTab=1,t.leftSelectedThumbnail=0,t.rightSelectedThumbnail=0,t.leftViewerLink="",t.rightViewerLink="",t.showLeftPanel=!0,t.showRightPanel=!0,t.showResLeftPanel=!0,t.showTopLeftPanel=!1,t.showTopRightPanel=!1,t.showAttachmentPanel=!1,t.notesViewerLink="index.php?display=true&module=notes&page=notes&identifier="+t.resId+"&origin=document&coll_id=letterbox_coll&load&size=full",t.visaViewerLink="index.php?display=true&page=show_visa_tab&module=visa&resId="+t.resId+"&collId=letterbox_coll&visaStep=true",t.histViewerLink="index.php?display=true&page=show_history_tab&resId="+t.resId+"&collId=letterbox_coll",t.linksViewerLink="index.php?display=true&page=show_links_tab&id="+t.resId,t.attachmentsViewerLink="index.php?display=true&module=attachments&page=frame_list_attachments&resId="+t.resId+"&noModification=true&template_selected=documents_list_attachments_simple&load&attach_type_exclude=converted_pdf,print_folder",t.leftContentWidth="44%",t.rightContentWidth="44%",t.signatureBook.documents[0]&&(t.leftViewerLink=t.signatureBook.documents[0].viewerLink,"outgoing"==t.signatureBook.documents[0].category_id&&(t.headerTab=3)),t.signatureBook.attachments[0]&&(t.rightViewerLink=t.signatureBook.attachments[0].viewerLink),t.displayPanel("RESLEFT"),t.loading=!1,setTimeout(function(){$j("#rightPanelContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),0==$j(".tooltipstered").length&&$j("#obsVersion").tooltipster({interactive:!0})},0)},function(e){errorNotification(JSON.parse(e._body).errors),setTimeout(function(){t.backToBasket()},2e3)})})},t.prototype.ngOnDestroy=function(){delete window.angularSignatureBookComponent},t.prototype.processAfterAttach=function(t){var e=this;this.zone.run(function(){return e.refreshAttachments(t)})},t.prototype.processAfterNotes=function(){var t=this;this.zone.run(function(){return t.refreshNotes()})},t.prototype.processAfterAction=function(){for(var t=this,e=-1,n=this.signatureBook.resList.length,r=0;r<n;r++)this.signatureBook.resList[r].res_id==this.resId&&(this.signatureBook.resList[r+1]?e=this.signatureBook.resList[r+1].res_id:r>0&&(e=this.signatureBook.resList[r-1].res_id));n>0&&(unlockDocument(this.resId),e>=0?($j("#send").removeAttr("disabled"),$j("#send").css("opacity","1"),this.zone.run(function(){return t.changeLocation(e,"action")})):this.zone.run(function(){return t.backToBasket()}))},t.prototype.changeSignatureBookLeftContent=function(t){this.headerTab=t,this.showTopLeftPanel=!1},t.prototype.changeRightViewer=function(t){this.showAttachmentPanel=!1,this.signatureBook.attachments[t]?this.rightViewerLink=this.signatureBook.attachments[t].viewerLink:this.rightViewerLink="",this.rightSelectedThumbnail=t},t.prototype.changeLeftViewer=function(t){this.leftViewerLink=this.signatureBook.documents[t].viewerLink,this.leftSelectedThumbnail=t},t.prototype.displayPanel=function(t){var e=this;"TOPRIGHT"==t?this.showTopRightPanel=!this.showTopRightPanel:"TOPLEFT"==t?this.showTopLeftPanel=!this.showTopLeftPanel:"LEFT"==t?(this.showLeftPanel=!this.showLeftPanel,this.showResLeftPanel=!1,this.showLeftPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#hideLeftContent").css("background","#CEE9F1")):(this.rightContentWidth="96%",$j("#hideLeftContent").css("background","none"))):"RESLEFT"==t?(this.showResLeftPanel=!this.showResLeftPanel,this.showResLeftPanel?(this.rightContentWidth="44%",this.leftContentWidth="44%",0!=this.signatureBook.resList.length&&null!=this.signatureBook.resList[0].allSigned||this.http.get(this.coreUrl+"rest/"+this.basketId+"/signatureBook/resList/details").map(function(t){return t.json()}).subscribe(function(t){e.signatureBook.resList=t.resList,e.signatureBook.resList.forEach(function(t,n){t.res_id==e.resId&&(e.signatureBook.resListIndex=n)}),setTimeout(function(){$j("#resListContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j("#resListContent").scrollTop(0),$j("#resListContent").scrollTop($j(".resListContentFrameSelected").offset().top-42)},0)})):(this.rightContentWidth="48%",this.leftContentWidth="48%")):"MIDDLE"==t&&(this.showRightPanel=!this.showRightPanel,this.showResLeftPanel=!1,this.showRightPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#contentLeft").css("border-right","solid 1px")):(this.leftContentWidth="96%",$j("#contentLeft").css("border-right","none")))},t.prototype.displayAttachmentPanel=function(){this.showAttachmentPanel=!this.showAttachmentPanel,this.rightSelectedThumbnail=0,this.signatureBook.attachments[0]&&(this.rightViewerLink=this.signatureBook.attachments[0].viewerLink)},t.prototype.refreshAttachments=function(t){var e=this;"rightContent"==t?this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/incomingMailAttachments").map(function(t){return t.json()}).subscribe(function(t){e.signatureBook.documents=t}):this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/attachments").map(function(t){return t.json()}).subscribe(function(n){var r=0;if("add"==t){var o=!1;n.forEach(function(t,n){o||e.signatureBook.attachments[n]&&t.res_id==e.signatureBook.attachments[n].res_id||(r=n,o=!0)})}else if("edit"==t){var i=e.signatureBook.attachments[e.rightSelectedThumbnail].res_id;n.forEach(function(t,e){t.res_id==i&&(r=e)})}e.signatureBook.attachments=n,"add"==t||"edit"==t?e.changeRightViewer(r):"del"==t&&e.changeRightViewer(0)})},t.prototype.addAttachmentIframe=function(){showAttachmentsForm("index.php?display=true&module=attachments&page=attachments_content&docId="+this.resId)},t.prototype.editAttachmentIframe=function(t){if(t.canModify&&"SIGN"!=t.status){var e;0==t.res_id?e=t.res_id_version:0==t.res_id_version&&(e=t.res_id),modifyAttachmentsForm("index.php?display=true&module=attachments&page=attachments_content&id="+e+"&relation="+t.relation+"&docId="+this.resId,"98%","auto")}},t.prototype.delAttachment=function(t){var e=this;if(t.canDelete){if(this.signatureBook.attachments.length<=1)n=confirm("Attention, ceci est votre dernière pièce jointe pour ce courrier, voulez-vous vraiment la supprimer ?");else var n=confirm("Voulez-vous vraiment supprimer la pièce jointe ?");if(n){var r;0==t.res_id?r=t.res_id_version:0==t.res_id_version&&(r=t.res_id),this.http.get("index.php?display=true&module=attachments&page=del_attachment&id="+r+"&relation="+t.relation+"&rest=true").subscribe(function(){e.refreshAttachments("del")})}}},t.prototype.refreshNotes=function(){var t=this;this.http.get(this.coreUrl+"rest/res/"+this.resId+"/notes/count").map(function(t){return t.json()}).subscribe(function(e){t.signatureBook.nbNotes=e})},t.prototype.signFile=function(t,e){var n=this;if(!this.loadingSign&&this.signatureBook.canSign){this.loadingSign=!0;var r="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&resIdMaster="+this.resId+"&signatureId="+e.id;0==t.res_id?"outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?r+="&isVersion&isOutgoing&id="+t.res_id_version:r+="&isVersion&id="+t.res_id_version:0==t.res_id_version&&("outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?r+="&isOutgoing&id="+t.res_id:r+="&id="+t.res_id),this.http.get(r,e).map(function(t){return t.json()}).subscribe(function(t){if(0==t.status){n.rightViewerLink="index.php?display=true&module=attachments&page=view_attachment&res_id_master="+n.resId+"&id="+t.new_id+"&isVersion=false",n.signatureBook.attachments[n.rightSelectedThumbnail].viewerLink=n.rightViewerLink,n.signatureBook.attachments[n.rightSelectedThumbnail].status="SIGN",n.signatureBook.attachments[n.rightSelectedThumbnail].idToDl=t.new_id;var e=!0;n.signatureBook.attachments.forEach(function(t){t.sign&&"SIGN"!=t.status&&(e=!1)}),n.signatureBook.resList.length>0&&(n.signatureBook.resList[n.signatureBook.resListIndex].allSigned=e)}else alert(t.error);n.showSignaturesPanel=!1,n.loadingSign=!1})}},t.prototype.unsignFile=function(t){var e,n,r,o=this;0==t.res_id?(n=t.res_id_version,e="res_version_attachments",r="true"):0==t.res_id_version&&(n=t.res_id,e="res_attachments",r="false"),this.http.put(this.coreUrl+"rest/"+e+"/"+n+"/unsign",{}).map(function(t){return t.json()}).subscribe(function(){o.rightViewerLink="index.php?display=true&module=attachments&page=view_attachment&res_id_master="+o.resId+"&id="+t.viewerNoSignId+"&isVersion="+r,o.signatureBook.attachments[o.rightSelectedThumbnail].viewerLink=o.rightViewerLink,o.signatureBook.attachments[o.rightSelectedThumbnail].status="A_TRA",o.signatureBook.attachments[o.rightSelectedThumbnail].idToDl=n,o.signatureBook.resList.length>0&&(o.signatureBook.resList[o.signatureBook.resListIndex].allSigned=!1)})},t.prototype.backToBasket=function(){unlockDocument(this.resId),location.hash="",location.reload()},t.prototype.backToDetails=function(){unlockDocument(this.resId),location.hash="",location.search="?page=details&dir=indexing_searching&id="+this.resId},t.prototype.changeLocation=function(t,e){var n=this;this.http.get(this.coreUrl+"rest/res/"+t+"/lock").map(function(t){return t.json()}).subscribe(function(r){if(r.lock)"view"==e?alert("Courrier verouillé par "+r.lockBy):"action"==e&&(alert("Courrier suivant verouillé par "+r.lockBy),n.backToBasket());else{var o="/"+n.basketId+"/signatureBook/"+t;n.router.navigate([o])}})},t.prototype.validForm=function(){var t=this;""!=$j("#signatureBookActions option:selected")[0].value?(unlockDocument(this.resId),0==this.signatureBook.resList.length?this.http.get(this.coreUrl+"rest/"+this.basketId+"/signatureBook/resList").map(function(t){return t.json()}).subscribe(function(e){t.signatureBook.resList=e.resList,valid_action_form("empty","index.php?display=true&page=manage_action&module=core",t.signatureBook.currentAction.id,t.resId,"res_letterbox","null","letterbox_coll","page",!1,[$j("#signatureBookActions option:selected")[0].value])}):valid_action_form("empty","index.php?display=true&page=manage_action&module=core",this.signatureBook.currentAction.id,this.resId,"res_letterbox","null","letterbox_coll","page",!1,[$j("#signatureBookActions option:selected")[0].value])):alert("Aucune action choisie")},t}();l=r([i.Component({templateUrl:angularGlobals["signature-bookView"]}),o("design:paramtypes",[s.Http,u.ActivatedRoute,u.Router,i.NgZone])],l),n.SignatureBookComponent=l},{"@angular/core":13,"@angular/http":15,"@angular/platform-browser":17,"@angular/router":18,"rxjs/add/operator/map":29}],6:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http");t("rxjs/add/operator/map");var a=t("@angular/router"),u=function(){function t(t,e,n){this.http=t,this.route=e,this.router=n,this.pageTitle="",this.mode=null,this.status={id:null,label_status:null,can_be_searched:null,can_be_modified:null,is_folder_status:null,img_filename:null},this.lang="",this.statusImages="",this.loading=!1}return t.prototype.ngOnInit=function(){var t=this;this.loading=!0,this.coreUrl=angularGlobals.coreUrl,this.prepareStatus(),this.route.params.subscribe(function(e){void 0===e.identifier?t.http.get(t.coreUrl+"rest/administration/status/new").map(function(t){return t.json()}).subscribe(function(e){t.lang=e.lang,t.statusImages=e.statusImages,t.mode="create",t.pageTitle=t.lang.newStatus,t.updateBreadcrumb(angularGlobals.applicationName)}):(t.mode="update",t.statusIdentifier=e.identifier,t.getStatusInfos(t.statusIdentifier)),setTimeout(function(){$j(".help").tooltipster({theme:"tooltipster-maarch",interactive:!0})},0)}),this.loading=!1},t.prototype.prepareStatus=function(){$j("#inner_content").remove()},t.prototype.updateBreadcrumb=function(t){var e="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>"+this.lang.admin+"</a> > <a onclick='location.hash = \"/administration/status\"' style='cursor: pointer'>"+this.lang.admin_status+"</a> > ";"create"==this.mode?e+=this.lang.newItem:e+=this.lang.modification,$j("#ariane")[0].innerHTML=e},t.prototype.getStatusInfos=function(t){var e=this;this.http.get(this.coreUrl+"rest/administration/status/"+t).map(function(t){return t.json()}).subscribe(function(t){e.status=t.status[0],"Y"==e.status.can_be_searched?e.status.can_be_searched=!0:e.status.can_be_searched=!1,"Y"==e.status.can_be_modified?e.status.can_be_modified=!0:e.status.can_be_modified=!1,"Y"==e.status.is_folder_status?e.status.is_folder_status=!0:e.status.is_folder_status=!1,e.lang=t.lang,e.statusImages=t.statusImages,e.pageTitle=e.lang.modify_status+" : "+e.status.id,e.updateBreadcrumb(angularGlobals.applicationName)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.selectImage=function(t){this.status.img_filename=t},t.prototype.submitStatus=function(){var t=this;"create"==this.mode?this.http.post(this.coreUrl+"rest/status",this.status).map(function(t){return t.json()}).subscribe(function(e){successNotification(t.lang.newStatusAdded+" : "+t.status.id),t.router.navigate(["administration/status"])},function(t){errorNotification(JSON.parse(t._body).errors.join("<br>"))}):"update"==this.mode&&this.http.put(this.coreUrl+"rest/status/"+this.statusIdentifier,this.status).map(function(t){return t.json()}).subscribe(function(e){successNotification(t.lang.statusUpdated+" : "+t.status.id),t.router.navigate(["administration/status"])},function(t){errorNotification(JSON.parse(t._body).errors.join("<br>"))})},t}();u=r([i.Component({templateUrl:angularGlobals["status-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","css/status-administration.component.css"]}),o("design:paramtypes",[s.Http,a.ActivatedRoute,a.Router])],u),n.StatusAdministrationComponent=u},{"@angular/core":13,"@angular/http":15,"@angular/router":18,"rxjs/add/operator/map":29}],7:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http");t("rxjs/add/operator/map");var a=t("@angular/router"),u=function(){function t(t,e,n){this.http=t,this.route=e,this.router=n,this.lang="",this.resultInfo="",this.loading=!1}return t.prototype.ngOnInit=function(){var t=this;this.coreUrl=angularGlobals.coreUrl,this.prepareStatus(),this.loading=!0,this.http.get(this.coreUrl+"rest/administration/status").map(function(t){return t.json()}).subscribe(function(e){t.statusList=e.statusList,t.lang=e.lang,t.nbStatus=Object.keys(t.statusList).length,setTimeout(function(){t.table=$j("#statusTable").DataTable({dom:'<"datatablesLeft"p><"datatablesRight"f><"datatablesCenter"l>rt<"datatablesCenter"i><"clear">',lengthMenu:[10,25,50,75,100],oLanguage:{sLengthMenu:"<i class='fa fa-bars'></i> _MENU_",sZeroRecords:t.lang.noResult,sInfo:"_START_ - _END_ / _TOTAL_ "+t.lang.record,sSearch:"",oPaginate:{sFirst:"<<",sLast:">>",sNext:t.lang.next+" <i class='fa fa-caret-right'></i>",sPrevious:"<i class='fa fa-caret-left'></i> "+t.lang.previous},sInfoEmpty:t.lang.noRecord,sInfoFiltered:"(filtré de _MAX_ "+t.lang.record+")"},order:[[2,"asc"]],columnDefs:[{orderable:!1,targets:[0,3]}],stateSave:!0}),$j(".dataTables_filter input").attr("placeholder",t.lang.search),$j("dataTables_filter input").addClass("form-control"),$j(".datatablesLeft").css({float:"left"}),$j(".datatablesCenter").css({"text-align":"center"}),$j(".datatablesRight").css({float:"right"})},0),t.updateBreadcrumb(angularGlobals.applicationName),t.loading=!1},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.prepareStatus=function(){$j("#inner_content").remove()},t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>"+this.lang.admin+"</a> > "+this.lang.admin_status},t.prototype.deleteStatus=function(t,e){var n=this;confirm(this.lang.deleteConfirm+" "+t+"?")&&this.http.delete(this.coreUrl+"rest/status/"+e).map(function(t){return t.json()}).subscribe(function(e){for(var r=n.statusList,o=0;o<r.length;o++)r[o].id==t&&r.splice(o,1);n.table.row($j("#"+t)).remove().draw(),successNotification(n.lang.delStatus+" : "+t),n.nbStatus=Object.keys(n.statusList).length},function(t){errorNotification(JSON.parse(t._body).errors)})},t}();u=r([i.Component({templateUrl:angularGlobals["statuses-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"]}),o("design:paramtypes",[s.Http,a.ActivatedRoute,a.Router])],u),n.StatusListAdministrationComponent=u},{"@angular/core":13,"@angular/http":15,"@angular/router":18,"rxjs/add/operator/map":29}],8:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http"),a=t("@angular/router");t("rxjs/add/operator/map");var u=function(){function t(t,e,n,r){var o=this;this.http=t,this.route=e,this.router=n,this.zone=r,this.user={lang:{}},this.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},this.userAbsenceModel=[],this.selectedSignature=-1,this.selectedSignatureLabel="",this.loading=!1,window.angularUserAdministrationComponent={componentAfterUpload:function(t){return o.processAfterUpload(t)}}}return t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > <a onclick='location.hash = \"/administration/users\"' style='cursor: pointer'>Utilisateurs</a>")},t.prototype.ngOnInit=function(){var t=this;this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.route.params.subscribe(function(e){void 0===e.id?(t.userCreation=!0,t.http.get(t.coreUrl+"rest/administration/users/new").map(function(t){return t.json()}).subscribe(function(e){t.user=e,t.loading=!1},function(){location.href="index.php"})):(t.userCreation=!1,t.serialId=e.id,t.http.get(t.coreUrl+"rest/administration/users/"+t.serialId).map(function(t){return t.json()}).subscribe(function(e){t.user=e,t.userId=e.user_id,t.loading=!1,setTimeout(function(){$j("#absenceUser").typeahead({order:"asc",display:"formattedUser",templateValue:"{{user_id}}",source:{ajax:{type:"GET",dataType:"json",url:t.coreUrl+"rest/users/autocompleter"}}})},0)},function(){location.href="index.php"}))})},t.prototype.processAfterUpload=function(t){var e=this;this.zone.run(function(){return e.resfreshUpload(t)})},t.prototype.resfreshUpload=function(t){this.signatureModel.size<=2e6?(this.signatureModel.base64=t.replace(/^data:.*?;base64,/,""),this.signatureModel.base64ForJs=t):(this.signatureModel.name="",this.signatureModel.size=0,this.signatureModel.type="",this.signatureModel.base64="",this.signatureModel.base64ForJs="",errorNotification("Taille maximum de fichier dépassée (2 MB)"))},t.prototype.clickOnUploader=function(t){$j("#"+t).click()},t.prototype.uploadSignatureTrigger=function(t){if(t.target.files&&t.target.files[0]){var e=new FileReader;this.signatureModel.name=t.target.files[0].name,this.signatureModel.size=t.target.files[0].size,this.signatureModel.type=t.target.files[0].type,""==this.signatureModel.label&&(this.signatureModel.label=this.signatureModel.name),e.readAsDataURL(t.target.files[0]),e.onload=function(t){window.angularUserAdministrationComponent.componentAfterUpload(t.target.result)}}},t.prototype.displaySignatureEditionForm=function(t){this.selectedSignature=t,this.selectedSignatureLabel=this.user.signatures[t].signature_label},t.prototype.resetPassword=function(){confirm("Voulez-vous vraiment réinitialiser le mot de passe de l'utilisateur ?")&&this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/password",{}).map(function(t){return t.json()}).subscribe(function(t){successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.addGroup=function(){var t=this,e=$j("#groupsSelect option:selected").index();if(e>0){var n={groupId:this.user.allGroups[e-1].group_id,role:$j("#groupRole")[0].value};this.http.post(this.coreUrl+"rest/users/"+this.serialId+"/groups",n).map(function(t){return t.json()}).subscribe(function(e){t.user.groups=e.groups,t.user.allGroups=e.allGroups,$j("#groupRole")[0].value="",$j("#addGroupModal").modal("hide"),successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})}},t.prototype.updateGroup=function(t){this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/groups/"+t.group_id,t).map(function(t){return t.json()}).subscribe(function(t){successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.deleteGroup=function(t){var e=this;confirm("Voulez-vous vraiment retirer l'utilisateur de ce groupe ?")&&this.http.delete(this.coreUrl+"rest/users/"+this.serialId+"/groups/"+t.group_id).map(function(t){return t.json()}).subscribe(function(t){e.user.groups=t.groups,e.user.allGroups=t.allGroups,successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.addEntity=function(){var t=this,e=$j("#entitiesSelect option:selected").index();if(e>0){var n={entityId:this.user.allEntities[e-1].entity_id,role:$j("#entityRole")[0].value};this.http.post(this.coreUrl+"rest/users/"+this.serialId+"/entities",n).map(function(t){return t.json()}).subscribe(function(e){t.user.entities=e.entities,t.user.allEntities=e.allEntities,$j("#entityRole")[0].value="",$j("#addEntityModal").modal("hide"),successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})}},t.prototype.updateEntity=function(t){this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/entities/"+t.entity_id,t).map(function(t){return t.json()}).subscribe(function(t){successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.updatePrimaryEntity=function(t){var e=this;this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/entities/"+t.entity_id+"/primaryEntity",{}).map(function(t){return t.json()}).subscribe(function(t){e.user.entities=t.entities,successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.deleteEntity=function(t){var e=this;confirm("Voulez-vous vraiment retirer l'utilisateur de cette entité ?")&&this.http.delete(this.coreUrl+"rest/users/"+this.serialId+"/entities/"+t.entity_id).map(function(t){return t.json()}).subscribe(function(t){e.user.entities=t.entities,e.user.allEntities=t.allEntities,successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.submitSignature=function(){var t=this;this.http.post(this.coreUrl+"rest/users/"+this.serialId+"/signatures",this.signatureModel).map(function(t){return t.json()}).subscribe(function(e){t.user.signatures=e.signatures,t.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.updateSignature=function(){var t=this,e=this.user.signatures[this.selectedSignature].id;this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/signatures/"+e,{label:this.selectedSignatureLabel}).map(function(t){return t.json()}).subscribe(function(e){t.user.signatures[t.selectedSignature].signature_label=e.signature.signature_label,t.selectedSignature=-1,t.selectedSignatureLabel="",successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.deleteSignature=function(t){var e=this;confirm("Voulez-vous vraiment supprimer la signature ?")&&this.http.delete(this.coreUrl+"rest/users/"+this.serialId+"/signatures/"+t).map(function(t){return t.json()}).subscribe(function(t){e.user.signatures=t.signatures,successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.addBasketRedirection=function(){var t=$j("#selectBasketAbsenceUser option:selected").index();t>0&&""!=$j("#absenceUser")[0].value&&(this.userAbsenceModel.push({basketId:this.user.baskets[t-1].basket_id,basketName:this.user.baskets[t-1].basket_name,virtual:this.user.baskets[t-1].is_virtual,basketOwner:this.user.baskets[t-1].basket_owner,newUser:$j("#absenceUser")[0].value,index:t-1}),this.user.baskets[t-1].disabled=!0,$j("#selectBasketAbsenceUser option:eq(0)").prop("selected",!0),$j("#absenceUser")[0].value="")},t.prototype.delBasketRedirection=function(t){this.user.baskets[this.userAbsenceModel[t].index].disabled=!1,this.userAbsenceModel.splice(t,1)},t.prototype.activateAbsence=function(){var t=this;this.http.post(this.coreUrl+"rest/users/"+this.serialId+"/baskets/absence",this.userAbsenceModel).map(function(t){return t.json()}).subscribe(function(e){t.user.status=e.user.status,t.userAbsenceModel=[],$j("#manageAbs").modal("hide"),successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.deactivateAbsence=function(){var t=this;this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/status",{status:"OK"}).map(function(t){return t.json()}).subscribe(function(e){t.user.status=e.user.status,successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.onSubmit=function(){var t=this;this.userCreation?this.http.post(this.coreUrl+"rest/users",this.user).map(function(t){return t.json()}).subscribe(function(e){successNotification(e.success),t.router.navigate(["/administration/users/"+e.user.id])},function(t){errorNotification(JSON.parse(t._body).errors)}):this.http.put(this.coreUrl+"rest/users/"+this.serialId,this.user).map(function(t){return t.json()}).subscribe(function(t){successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t}();u=r([i.Component({templateUrl:angularGlobals["user-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","css/user-administration.component.css"]}),o("design:paramtypes",[s.Http,a.ActivatedRoute,a.Router,i.NgZone])],u),n.UserAdministrationComponent=u},{"@angular/core":13,"@angular/http":15,"@angular/router":18,"rxjs/add/operator/map":29}],9:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http");t("rxjs/add/operator/map");var a=function(){function t(t){this.http=t,this.users=[],this.userDestRedirect={},this.userDestRedirectModels=[],this.lang={},this.resultInfo="",this.loading=!1}return t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > Utilisateurs")},t.prototype.ngOnInit=function(){var t=this;this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/administration/users").map(function(t){return t.json()}).subscribe(function(e){t.users=e.users,t.lang=e.lang,setTimeout(function(){t.table=$j("#usersTable").DataTable({dom:'<"datatablesLeft"p><"datatablesRight"f><"datatablesCenter"l>rt<"datatablesCenter"i><"clear">',lengthMenu:[10,25,50,75,100],oLanguage:{sLengthMenu:"<i class='fa fa-bars'></i> _MENU_",sZeroRecords:t.lang.noResult,sInfo:"_START_ - _END_ / _TOTAL_ "+t.lang.record,sSearch:"",oPaginate:{sFirst:"<<",sLast:">>",sNext:t.lang.next+" <i class='fa fa-caret-right'></i>",sPrevious:"<i class='fa fa-caret-left'></i> "+t.lang.previous},sInfoEmpty:t.lang.noRecord,sInfoFiltered:"(filtré de _MAX_ "+t.lang.record+")"},order:[[1,"asc"]],columnDefs:[{orderable:!1,targets:[3,5]}]}),$j(".dataTables_filter input").attr("placeholder",t.lang.search),$j("dataTables_filter input").addClass("form-control"),$j(".datatablesLeft").css({float:"left"}),$j(".datatablesCenter").css({"text-align":"center"}),$j(".datatablesRight").css({float:"right"})},0),t.loading=!1},function(){location.href="index.php"})},t.prototype.suspendUser=function(t){var e=this;"Y"==t.inDiffListDest?(t.mode="up",this.userDestRedirect=t,this.http.get(this.coreUrl+"rest/listModels/itemId/"+t.user_id+"/itemMode/dest/objectType/entity_id").map(function(t){return t.json()}).subscribe(function(n){e.userDestRedirectModels=n.listModels,setTimeout(function(){$j(".redirectDest").typeahead({order:"asc",display:"formattedUser",templateValue:"{{user_id}}",source:{ajax:{type:"GET",dataType:"json",url:e.coreUrl+"rest/users/autocompleter/exclude/"+t.user_id}}})},0)},function(t){console.log(t),location.href="index.php"})):confirm(this.lang.suspendMsg+" ?")&&(t.enabled="N",this.http.put(this.coreUrl+"rest/users/"+t.user_id,t).map(function(t){return t.json()}).subscribe(function(t){successNotification(t.success)},function(e){t.enabled="Y",errorNotification(JSON.parse(e._body).errors)}))},t.prototype.suspendUserModal=function(t){var e=this;confirm(this.lang.suspendMsg+" ?")&&(t.enabled="N",t.redirectListModels=this.userDestRedirectModels,this.http.put(this.coreUrl+"rest/listModels/itemId/"+t.user_id+"/itemMode/dest/objectType/entity_id",t).map(function(t){return t.json()}).subscribe(function(n){n.errors?(t.enabled="Y",errorNotification(n.errors)):e.http.put(e.coreUrl+"rest/users/"+t.user_id,t).map(function(t){return t.json()}).subscribe(function(e){t.inDiffListDest="N",$j("#changeDiffListDest").modal("hide"),successNotification(e.success)},function(e){t.enabled="Y",errorNotification(JSON.parse(e._body).errors)})},function(t){errorNotification(JSON.parse(t._body).errors)}))},t.prototype.activateUser=function(t){confirm(this.lang.authorizeMsg+" ?")&&(t.enabled="Y",this.http.put(this.coreUrl+"rest/users/"+t.user_id,t).map(function(t){return t.json()}).subscribe(function(t){successNotification(t.success)},function(e){t.enabled="N",errorNotification(JSON.parse(e._body).errors)}))},t.prototype.deleteUser=function(t){var e=this;"Y"==t.inDiffListDest?(t.mode="del",this.userDestRedirect=t,this.http.get(this.coreUrl+"rest/listModels/itemId/"+t.user_id+"/itemMode/dest/objectType/entity_id").map(function(t){return t.json()}).subscribe(function(n){e.userDestRedirectModels=n.listModels,setTimeout(function(){$j(".redirectDest").typeahead({order:"asc",source:{ajax:{type:"GET",dataType:"json",url:e.coreUrl+"rest/users/autocompleter/exclude/"+t.user_id}}})})},function(t){errorNotification(JSON.parse(t._body).errors)})):confirm(this.lang.deleteMsg+" ?")&&this.http.delete(this.coreUrl+"rest/users/"+t.user_id,t).map(function(t){return t.json()}).subscribe(function(n){for(var r=0;r<e.users.length;r++)e.users[r].user_id==t.user_id&&e.users.splice(r,1);e.table.row($j("#"+t.user_id)).remove().draw(),successNotification(n.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.deleteUserModal=function(t){var e=this;confirm(this.lang.deleteMsg+" ?")&&(t.redirectListModels=this.userDestRedirectModels,this.http.put(this.coreUrl+"rest/listModels/itemId/"+t.user_id+"/itemMode/dest/objectType/entity_id",t).map(function(t){return t.json()}).subscribe(function(n){n.errors?errorNotification(n.errors):e.http.delete(e.coreUrl+"rest/users/"+t.user_id).map(function(t){return t.json()}).subscribe(function(n){t.inDiffListDest="N",$j("#changeDiffListDest").modal("hide");for(var r=0;r<e.users.length;r++)e.users[r].user_id==t.user_id&&e.users.splice(r,1);e.table.row($j("#"+t.user_id)).remove().draw(),successNotification(n.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},function(t){errorNotification(JSON.parse(t._body).errors)}))},t}();a=r([i.Component({templateUrl:angularGlobals["users-administrationView"],styleUrls:["css/users-administration.component.css","../../node_modules/bootstrap/dist/css/bootstrap.min.css"]}),o("design:paramtypes",[s.Http])],a),n.UsersAdministrationComponent=a},{"@angular/core":13,"@angular/http":15,"rxjs/add/operator/map":29}],10:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("@angular/platform-browser-dynamic"),o=t("@angular/core"),i=t("./app/app.module");o.enableProdMode(),r.platformBrowserDynamic().bootstrapModule(i.AppModule)},{"./app/app.module":3,"@angular/core":13,"@angular/platform-browser-dynamic":16}],11:[function(t,e,n){!function(r,o){"object"==typeof n&&void 0!==e?o(n,t("@angular/core")):o((r.ng=r.ng||{},r.ng.common=r.ng.common||{}),r.ng.core)}(this,function(t,e){"use strict";function n(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}function r(t){return t.replace(/\/index.html$/,"")}function o(t,e,n){var r="="+t;if(e.indexOf(r)>-1)return r;if(r=n.getPluralCategory(t),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}function i(t,e){"string"==typeof e&&(e=parseInt(e,10));var n=e,r=n.toString().replace(/^[^.]*\.?/,""),o=Math.floor(Math.abs(n)),i=r.length,s=parseInt(r,10),a=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(t.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?B.One:B.Other;case"agq":case"bas":case"cu":case"dav":case"dje":case"dua":case"dyo":case"ebu":case"ewo":case"guz":case"kam":case"khq":case"ki":case"kln":case"kok":case"ksf":case"lrc":case"lu":case"luo":case"luy":case"mer":case"mfe":case"mgh":case"mua":case"mzn":case"nmg":case"nus":case"qu":case"rn":case"rw":case"sbp":case"twq":case"vai":case"yav":case"yue":case"zgh":case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?B.One:B.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===o||1===n?B.One:B.Other;case"ar":return 0===n?B.Zero:1===n?B.One:2===n?B.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?B.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?B.Many:B.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===o&&0===i?B.One:B.Other;case"be":return n%10==1&&n%100!=11?B.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?B.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?B.Many:B.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?B.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?B.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?B.Few:0!==n&&n%1e6==0?B.Many:B.Other;case"bs":case"hr":case"sr":return 0===i&&o%10==1&&o%100!=11||s%10==1&&s%100!=11?B.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)||s%10===Math.floor(s%10)&&s%10>=2&&s%10<=4&&!(s%100>=12&&s%100<=14)?B.Few:B.Other;case"cs":case"sk":return 1===o&&0===i?B.One:o===Math.floor(o)&&o>=2&&o<=4&&0===i?B.Few:0!==i?B.Many:B.Other;case"cy":return 0===n?B.Zero:1===n?B.One:2===n?B.Two:3===n?B.Few:6===n?B.Many:B.Other;case"da":return 1===n||0!==a&&(0===o||1===o)?B.One:B.Other;case"dsb":case"hsb":return 0===i&&o%100==1||s%100==1?B.One:0===i&&o%100==2||s%100==2?B.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&o%100<=4||s%100===Math.floor(s%100)&&s%100>=3&&s%100<=4?B.Few:B.Other;case"ff":case"fr":case"hy":case"kab":return 0===o||1===o?B.One:B.Other;case"fil":return 0===i&&(1===o||2===o||3===o)||0===i&&o%10!=4&&o%10!=6&&o%10!=9||0!==i&&s%10!=4&&s%10!=6&&s%10!=9?B.One:B.Other;case"ga":return 1===n?B.One:2===n?B.Two:n===Math.floor(n)&&n>=3&&n<=6?B.Few:n===Math.floor(n)&&n>=7&&n<=10?B.Many:B.Other;case"gd":return 1===n||11===n?B.One:2===n||12===n?B.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?B.Few:B.Other;case"gv":return 0===i&&o%10==1?B.One:0===i&&o%10==2?B.Two:0!==i||o%100!=0&&o%100!=20&&o%100!=40&&o%100!=60&&o%100!=80?0!==i?B.Many:B.Other:B.Few;case"he":return 1===o&&0===i?B.One:2===o&&0===i?B.Two:0!==i||n>=0&&n<=10||n%10!=0?B.Other:B.Many;case"is":return 0===a&&o%10==1&&o%100!=11||0!==a?B.One:B.Other;case"ksh":return 0===n?B.Zero:1===n?B.One:B.Other;case"kw":case"naq":case"se":case"smn":return 1===n?B.One:2===n?B.Two:B.Other;case"lag":return 0===n?B.Zero:0!==o&&1!==o||0===n?B.Other:B.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?B.Few:0!==s?B.Many:B.Other:B.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===i&&s%100===Math.floor(s%100)&&s%100>=11&&s%100<=19?B.Zero:n%10==1&&n%100!=11||2===i&&s%10==1&&s%100!=11||2!==i&&s%10==1?B.One:B.Other;case"mk":return 0===i&&o%10==1||s%10==1?B.One:B.Other;case"mt":return 1===n?B.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?B.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?B.Many:B.Other;case"pl":return 1===o&&0===i?B.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)?B.Few:0===i&&1!==o&&o%10===Math.floor(o%10)&&o%10>=0&&o%10<=1||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&o%10<=9||0===i&&o%100===Math.floor(o%100)&&o%100>=12&&o%100<=14?B.Many:B.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?B.One:B.Other;case"ro":return 1===o&&0===i?B.One:0!==i||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?B.Few:B.Other;case"ru":case"uk":return 0===i&&o%10==1&&o%100!=11?B.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)?B.Few:0===i&&o%10==0||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&o%10<=9||0===i&&o%100===Math.floor(o%100)&&o%100>=11&&o%100<=14?B.Many:B.Other;case"shi":return 0===o||1===n?B.One:n===Math.floor(n)&&n>=2&&n<=10?B.Few:B.Other;case"si":return 0===n||1===n||0===o&&1===s?B.One:B.Other;case"sl":return 0===i&&o%100==1?B.One:0===i&&o%100==2?B.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&o%100<=4||0!==i?B.Few:B.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?B.One:B.Other;default:return B.Other}}function s(t){return t.name||typeof t}function a(t,n){return Error("InvalidPipeArgument: '"+n+"' for pipe '"+e.ɵstringify(t)+"'")}function u(t){return t?t[0].toUpperCase()+t.substr(1).toLowerCase():t}function c(t){return function(e,n){var r=t(e,n);return 1==r.length?"0"+r:r}}function l(t){return function(e,n){return t(e,n).split(" ")[0]}}function p(t,e,n){return new Intl.DateTimeFormat(e,n).format(t).replace(/[\u200e\u200f]/g,"")}function h(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,n){var r=p(t,n,e);return r?r.substring(3):""}}function f(t,e){return t.hour12=e,t}function d(t,e){var n={};return n[t]=2===e?"2-digit":"numeric",n}function m(t,e){var n={};return n[t]=e<4?e>1?"short":"narrow":"long",n}function y(t){return Object.assign.apply(Object,[{}].concat(t))}function v(t){return function(e,n){return p(e,n,t)}}function g(t,e,n){var r=mt[t];if(r)return r(e,n);var o=t,i=vt.get(o);if(!i){i=[];var s=void 0;dt.exec(t);for(var a=t;a;)(s=dt.exec(a))?a=(i=i.concat(s.slice(1))).pop():(i.push(a),a=null);vt.set(o,i)}return i.reduce(function(t,r){var o=yt[r];return t+(o?o(e,n):_(r))},"")}function _(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function b(t,e,n,r,o,i,s){if(void 0===i&&(i=null),void 0===s&&(s=!1),null==n)return null;if("number"!=typeof(n="string"==typeof n&&C(n)?+n:n))throw a(t,n);var u=void 0,c=void 0,l=void 0;if(r!==ht.Currency&&(u=1,c=0,l=3),o){var p=o.match(_t);if(null===p)throw new Error(o+" is not a valid digit info for number pipes");null!=p[1]&&(u=w(p[1])),null!=p[3]&&(c=w(p[3])),null!=p[5]&&(l=w(p[5]))}return ft.format(n,e,r,{minimumIntegerDigits:u,minimumFractionDigits:c,maximumFractionDigits:l,currency:i,currencyAsSymbol:s})}function w(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function C(t){return!isNaN(t-parseFloat(t))}function E(t){return null==t||""===t}function S(t){return t instanceof Date&&!isNaN(t.valueOf())}function x(t){var e=new Date(0),n=0,r=0,o=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=T(t[9]+t[10]),r=T(t[9]+t[11])),o.call(e,T(t[1]),T(t[2])-1,T(t[3]));var s=T(t[4]||"0")-n,a=T(t[5]||"0")-r,u=T(t[6]||"0"),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return i.call(e,s,a,u,c),e}function T(t){return parseInt(t,10)}function P(t){return t===kt}function A(t){return t===Nt}function O(t){return t===It}function M(t){return t===jt}var R=function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},k=function(){function t(){}return t.prototype.getBaseHrefFromDOM=function(){},t.prototype.onPopState=function(t){},t.prototype.onHashChange=function(t){},t.prototype.pathname=function(){},t.prototype.search=function(){},t.prototype.hash=function(){},t.prototype.replaceState=function(t,e,n){},t.prototype.pushState=function(t,e,n){},t.prototype.forward=function(){},t.prototype.back=function(){},t}(),N=new e.InjectionToken("Location Initialized"),I=function(){function t(){}return t.prototype.path=function(t){},t.prototype.prepareExternalUrl=function(t){},t.prototype.pushState=function(t,e,n,r){},t.prototype.replaceState=function(t,e,n,r){},t.prototype.forward=function(){},t.prototype.back=function(){},t.prototype.onPopState=function(t){},t.prototype.getBaseHref=function(){},t}(),j=new e.InjectionToken("appBaseHref"),D=function(){function t(n){var o=this;this._subject=new e.EventEmitter,this._platformStrategy=n;var i=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(r(i)),this._platformStrategy.onPopState(function(t){o._subject.emit({url:o.path(!0),pop:!0,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},t.prototype.normalize=function(e){return t.stripTrailingSlash(n(this._baseHref,r(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e){void 0===e&&(e=""),this._platformStrategy.pushState(null,"",t,e)},t.prototype.replaceState=function(t,e){void 0===e&&(e=""),this._platformStrategy.replaceState(null,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){return t.replace(/\/$/,"")},t}();D.decorators=[{type:e.Injectable}],D.ctorParameters=function(){return[{type:I}]};var L=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return R(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=D.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+D.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+D.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}(I);L.decorators=[{type:e.Injectable}],L.ctorParameters=function(){return[{type:k},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[j]}]}]};var V=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 R(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 D.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+D.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+D.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+D.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(I);V.decorators=[{type:e.Injectable}],V.ctorParameters=function(){return[{type:k},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[j]}]}]};var F=function(){function t(){}return t.prototype.getPluralCategory=function(t){},t}(),U=function(t){function e(e){var n=t.call(this)||this;return n.locale=e,n}return R(e,t),e.prototype.getPluralCategory=function(t){switch(i(this.locale,t)){case B.Zero:return"zero";case B.One:return"one";case B.Two:return"two";case B.Few:return"few";case B.Many:return"many";default:return"other"}},e}(F);U.decorators=[{type:e.Injectable}],U.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var B={};B.Zero=0,B.One=1,B.Two=2,B.Few=3,B.Many=4,B.Other=5,B[B.Zero]="Zero",B[B.One]="One",B[B.Two]="Two",B[B.Few]="Few",B[B.Many]="Many",B[B.Other]="Other";var H=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._applyInitialClasses(!0),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(e.ɵisListLikeIterable(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._cleanupClasses=function(t){this._applyClasses(t,!0),this._applyInitialClasses(!1)},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var n=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+e.ɵstringify(t.item));n._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return n._toggleClass(t.item,!1)})},t.prototype._applyInitialClasses=function(t){var e=this;this._initialClasses.forEach(function(n){return e._toggleClass(n,!t)})},t.prototype._applyClasses=function(t,e){var n=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return n._toggleClass(t,!e)}):Object.keys(t).forEach(function(r){null!=t[r]&&n._toggleClass(r,!e)}))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){n._renderer.setElementClass(n._ngEl.nativeElement,t,!!e)})},t}();H.decorators=[{type:e.Directive,args:[{selector:"[ngClass]"}]}],H.ctorParameters=function(){return[{type:e.IterableDiffers},{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},H.propDecorators={klass:[{type:e.Input,args:["class"]}],ngClass:[{type:e.Input}]};var q=function(){function t(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return t.prototype.ngOnChanges=function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var n=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var r=n.get(e.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(r.injector)}else this._moduleRef=null;var o=(this._moduleRef?this._moduleRef.componentFactoryResolver:n.get(e.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(o,this._viewContainerRef.length,n,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},t}();q.decorators=[{type:e.Directive,args:[{selector:"[ngComponentOutlet]"}]}],q.ctorParameters=function(){return[{type:e.ViewContainerRef}]},q.propDecorators={ngComponentOutlet:[{type:e.Input}],ngComponentOutletInjector:[{type:e.Input}],ngComponentOutletContent:[{type:e.Input}],ngComponentOutletNgModuleFactory:[{type:e.Input}]};var z=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),G=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){e.isDevMode()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+s(e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new z(null,e.ngForOf,-1,-1),o),s=new W(t,i);n.push(s)}else if(null==o)e._viewContainer.remove(r);else{i=e._viewContainer.get(r);e._viewContainer.move(i,o);s=new W(t,i);n.push(s)}});for(r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);for(var r=0,o=this._viewContainer.length;r<o;r++){var i=this._viewContainer.get(r);i.context.index=r,i.context.count=o}t.forEachIdentityChange(function(t){e._viewContainer.get(t.currentIndex).context.$implicit=t.item})},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t}();G.decorators=[{type:e.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],G.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:e.IterableDiffers}]},G.propDecorators={ngForOf:[{type:e.Input}],ngForTrackBy:[{type:e.Input}],ngForTemplate:[{type:e.Input}]};var W=function(){function t(t,e){this.record=t,this.view=e}return t}(),$=G,K=function(){function t(t,e){this._viewContainer=t,this._context=new Q,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfThen",{set:function(t){this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),t.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},t}();K.decorators=[{type:e.Directive,args:[{selector:"[ngIf]"}]}],K.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef}]},K.propDecorators={ngIf:[{type:e.Input}],ngIfThen:[{type:e.Input}],ngIfElse:[{type:e.Input}]};var Q=function(){function t(){this.$implicit=null,this.ngIf=null}return t}(),J=function(){function t(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}return t.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},t.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},t.prototype.enforceState=function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()},t}(),X=function(){function t(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(t.prototype,"ngSwitch",{set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),t.prototype._addCase=function(){return this._caseCount++},t.prototype._addDefault=function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)},t.prototype._matchCase=function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,++this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e},t.prototype._updateDefaultCases=function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}},t}();X.decorators=[{type:e.Directive,args:[{selector:"[ngSwitch]"}]}],X.ctorParameters=function(){return[]},X.propDecorators={ngSwitch:[{type:e.Input}]};var Y=function(){function t(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new J(t,e)}return t.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},t}();Y.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchCase]"}]}],Y.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:X,decorators:[{type:e.Host}]}]},Y.propDecorators={ngSwitchCase:[{type:e.Input}]};var Z=function(){function t(t,e,n){n._addDefault(new J(t,e))}return t}();Z.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchDefault]"}]}],Z.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:X,decorators:[{type:e.Host}]}]};var tt=function(){function t(t){this._localization=t,this._caseViews={}}return Object.defineProperty(t.prototype,"ngPlural",{set:function(t){this._switchValue=t,this._updateView()},enumerable:!0,configurable:!0}),t.prototype.addCase=function(t,e){this._caseViews[t]=e},t.prototype._updateView=function(){this._clearViews();var t=Object.keys(this._caseViews),e=o(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])},t.prototype._clearViews=function(){this._activeView&&this._activeView.destroy()},t.prototype._activateView=function(t){t&&(this._activeView=t,this._activeView.create())},t}();tt.decorators=[{type:e.Directive,args:[{selector:"[ngPlural]"}]}],tt.ctorParameters=function(){return[{type:F}]},tt.propDecorators={ngPlural:[{type:e.Input}]};var et=function(){function t(t,e,n,r){this.value=t;var o=!isNaN(Number(t));r.addCase(o?"="+t:t,new J(n,e))}return t}();et.decorators=[{type:e.Directive,args:[{selector:"[ngPluralCase]"}]}],et.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Attribute,args:["ngPluralCase"]}]},{type:e.TemplateRef},{type:e.ViewContainerRef},{type:tt,decorators:[{type:e.Host}]}]};var nt=function(){function t(t,e,n){this._differs=t,this._ngEl=e,this._renderer=n}return Object.defineProperty(t.prototype,"ngStyle",{set:function(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this;t.forEachRemovedItem(function(t){return e._setStyle(t.key,null)}),t.forEachAddedItem(function(t){return e._setStyle(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._setStyle(t.key,t.currentValue)})},t.prototype._setStyle=function(t,e){var n=t.split("."),r=n[0],o=n[1];e=null!=e&&o?""+e+o:e,this._renderer.setElementStyle(this._ngEl.nativeElement,r,e)},t}();nt.decorators=[{type:e.Directive,args:[{selector:"[ngStyle]"}]}],nt.ctorParameters=function(){return[{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},nt.propDecorators={ngStyle:[{type:e.Input}]};var rt=function(){function t(t){this._viewContainerRef=t}return Object.defineProperty(t.prototype,"ngOutletContext",{set:function(t){this.ngTemplateOutletContext=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))},t}();rt.decorators=[{type:e.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],rt.ctorParameters=function(){return[{type:e.ViewContainerRef}]},rt.propDecorators={ngTemplateOutletContext:[{type:e.Input}],ngTemplateOutlet:[{type:e.Input}],ngOutletContext:[{type:e.Input}]};var ot=[H,q,G,K,rt,nt,X,Y,Z,tt,et],it=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.subscribe({next:e,error:function(t){throw t}})},t.prototype.dispose=function(t){t.unsubscribe()},t.prototype.onDestroy=function(t){t.unsubscribe()},t}(),st=new(function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.then(e,function(t){throw t})},t.prototype.dispose=function(t){},t.prototype.onDestroy=function(t){},t}()),at=new it,ut=function(){function t(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return t.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},t.prototype.transform=function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,e.WrappedValue.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)},t.prototype._subscribe=function(t){var e=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,function(n){return e._updateLatestValue(t,n)})},t.prototype._selectStrategy=function(n){if(e.ɵisPromise(n))return st;if(e.ɵisObservable(n))return at;throw a(t,n)},t.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},t.prototype._updateLatestValue=function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())},t}();ut.decorators=[{type:e.Pipe,args:[{name:"async",pure:!1}]}],ut.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]};var ct=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.toLowerCase()},t}();ct.decorators=[{type:e.Pipe,args:[{name:"lowercase"}]}],ct.ctorParameters=function(){return[]};var lt=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.split(/\b/g).map(function(t){return u(t)}).join("")},t}();lt.decorators=[{type:e.Pipe,args:[{name:"titlecase"}]}],lt.ctorParameters=function(){return[]};var pt=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.toUpperCase()},t}();pt.decorators=[{type:e.Pipe,args:[{name:"uppercase"}]}],pt.ctorParameters=function(){return[]};var ht={};ht.Decimal=0,ht.Percent=1,ht.Currency=2,ht[ht.Decimal]="Decimal",ht[ht.Percent]="Percent",ht[ht.Currency]="Currency";var ft=function(){function t(){}return t.format=function(t,e,n,r){var o=void 0===r?{}:r,i=o.minimumIntegerDigits,s=o.minimumFractionDigits,a=o.maximumFractionDigits,u=o.currency,c=o.currencyAsSymbol,l=void 0!==c&&c,p={minimumIntegerDigits:i,minimumFractionDigits:s,maximumFractionDigits:a,style:ht[n].toLowerCase()};return n==ht.Currency&&(p.currency="string"==typeof u?u:void 0,p.currencyDisplay=l?"symbol":"code"),new Intl.NumberFormat(e,p).format(t)},t}(),dt=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,mt={yMMMdjms:v(y([d("year",1),m("month",3),d("day",1),d("hour",1),d("minute",1),d("second",1)])),yMdjm:v(y([d("year",1),d("month",1),d("day",1),d("hour",1),d("minute",1)])),yMMMMEEEEd:v(y([d("year",1),m("month",4),m("weekday",4),d("day",1)])),yMMMMd:v(y([d("year",1),m("month",4),d("day",1)])),yMMMd:v(y([d("year",1),m("month",3),d("day",1)])),yMd:v(y([d("year",1),d("month",1),d("day",1)])),jms:v(y([d("hour",1),d("second",1),d("minute",1)])),jm:v(y([d("hour",1),d("minute",1)]))},yt={yyyy:v(d("year",4)),yy:v(d("year",2)),y:v(d("year",1)),MMMM:v(m("month",4)),MMM:v(m("month",3)),MM:v(d("month",2)),M:v(d("month",1)),LLLL:v(m("month",4)),L:v(m("month",1)),dd:v(d("day",2)),d:v(d("day",1)),HH:c(l(v(f(d("hour",2),!1)))),H:l(v(f(d("hour",1),!1))),hh:c(l(v(f(d("hour",2),!0)))),h:l(v(f(d("hour",1),!0))),jj:v(d("hour",2)),j:v(d("hour",1)),mm:c(v(d("minute",2))),m:v(d("minute",1)),ss:c(v(d("second",2))),s:v(d("second",1)),sss:v(d("second",3)),EEEE:v(m("weekday",4)),EEE:v(m("weekday",3)),EE:v(m("weekday",2)),E:v(m("weekday",1)),a:function(t){return function(e,n){return t(e,n).split(" ")[1]}}(v(f(d("hour",1),!0))),Z:h("short"),z:h("long"),ww:v({}),w:v({}),G:v(m("era",1)),GG:v(m("era",2)),GGG:v(m("era",3)),GGGG:v(m("era",4))},vt=new Map,gt=function(){function t(){}return t.format=function(t,e,n){return g(n,t,e)},t}(),_t=/^(\d+)?\.((\d+)(-(\d+))?)?$/,bt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return b(t,this._locale,e,ht.Decimal,n)},t}();bt.decorators=[{type:e.Pipe,args:[{name:"number"}]}],bt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var wt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return b(t,this._locale,e,ht.Percent,n)},t}();wt.decorators=[{type:e.Pipe,args:[{name:"percent"}]}],wt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var Ct=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n,r,o){return void 0===n&&(n="USD"),void 0===r&&(r=!1),b(t,this._locale,e,ht.Currency,o,n,r)},t}();Ct.decorators=[{type:e.Pipe,args:[{name:"currency"}]}],Ct.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var Et=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,St=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){void 0===n&&(n="mediumDate");var r;if(E(e)||e!==e)return null;if("string"==typeof e&&(e=e.trim()),S(e))r=e;else if(C(e))r=new Date(parseFloat(e));else if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var o=e.split("-").map(function(t){return parseInt(t,10)}),i=o[0],s=o[1],u=o[2];r=new Date(i,s-1,u)}else r=new Date(e);if(!S(r)){var c=void 0;if("string"!=typeof e||!(c=e.match(Et)))throw a(t,e);r=x(c)}return gt.format(r,this._locale,t._ALIASES[n]||n)},t}();St._ALIASES={medium:"yMMMdjms",short:"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},St.decorators=[{type:e.Pipe,args:[{name:"date",pure:!0}]}],St.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var xt=/#/g,Tt=function(){function t(t){this._localization=t}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||null===n)throw a(t,n);return n[o(e,Object.keys(n),this._localization)].replace(xt,e.toString())},t}();Tt.decorators=[{type:e.Pipe,args:[{name:"i18nPlural",pure:!0}]}],Tt.ctorParameters=function(){return[{type:F}]};var Pt=function(){function t(){}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw a(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""},t}();Pt.decorators=[{type:e.Pipe,args:[{name:"i18nSelect",pure:!0}]}],Pt.ctorParameters=function(){return[]};var At=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t}();At.decorators=[{type:e.Pipe,args:[{name:"json",pure:!1}]}],At.ctorParameters=function(){return[]};var Ot=function(){function t(){}return t.prototype.transform=function(e,n,r){if(null==e)return e;if(!this.supports(e))throw a(t,e);return e.slice(n,r)},t.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},t}();Ot.decorators=[{type:e.Pipe,args:[{name:"slice",pure:!1}]}],Ot.ctorParameters=function(){return[]};var Mt=[ut,pt,ct,At,Ot,bt,wt,lt,Ct,St,Tt,Pt],Rt=function(){function t(){}return t}();Rt.decorators=[{type:e.NgModule,args:[{declarations:[ot,Mt],exports:[ot,Mt],providers:[{provide:F,useClass:U}]}]}],Rt.ctorParameters=function(){return[]};var kt="browser",Nt="server",It="browserWorkerApp",jt="browserWorkerUi",Dt=new e.Version("4.1.3");t.NgLocaleLocalization=U,t.NgLocalization=F,t.CommonModule=Rt,t.NgClass=H,t.NgFor=$,t.NgForOf=G,t.NgForOfContext=z,t.NgIf=K,t.NgIfContext=Q,t.NgPlural=tt,t.NgPluralCase=et,t.NgStyle=nt,t.NgSwitch=X,t.NgSwitchCase=Y,t.NgSwitchDefault=Z,t.NgTemplateOutlet=rt,t.NgComponentOutlet=q,t.AsyncPipe=ut,t.DatePipe=St,t.I18nPluralPipe=Tt,t.I18nSelectPipe=Pt,t.JsonPipe=At,t.LowerCasePipe=ct,t.CurrencyPipe=Ct,t.DecimalPipe=bt,t.PercentPipe=wt,t.SlicePipe=Ot,t.UpperCasePipe=pt,t.TitleCasePipe=lt,t.ɵPLATFORM_BROWSER_ID=kt,t.ɵPLATFORM_SERVER_ID=Nt,t.ɵPLATFORM_WORKER_APP_ID=It,t.ɵPLATFORM_WORKER_UI_ID=jt,t.isPlatformBrowser=P,t.isPlatformServer=A,t.isPlatformWorkerApp=O,t.isPlatformWorkerUi=M,t.VERSION=Dt,t.PlatformLocation=k,t.LOCATION_INITIALIZED=N,t.LocationStrategy=I,t.APP_BASE_HREF=j,t.HashLocationStrategy=L,t.PathLocationStrategy=V,t.Location=D,t.ɵa=ot,t.ɵb=Mt,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":13}],12:[function(t,e,n){!function(r,o){"object"==typeof n&&void 0!==e?o(n,t("@angular/core")):o((r.ng=r.ng||{},r.ng.compiler=r.ng.compiler||{}),r.ng.core)}(this,function(t,e){"use strict";function n(t,e,n){void 0===n&&(n=null);var r=[],o=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=o(t);e&&r.push(e)}),r}function r(t){if(":"!=t[0])return[null,t];var e=t.indexOf(":",1);if(-1==e)throw new Error('Unsupported format "'+t+'" expecting ":namespace:name"');return[t.slice(1,e),t.slice(e+1)]}function o(t){return"ng-container"===r(t)[1]}function i(t){return"ng-content"===r(t)[1]}function s(t){return"ng-template"===r(t)[1]}function a(t){return null===t?null:r(t)[0]}function u(t,e){return t?":"+t+":"+e:e}function c(t){return _o[t.toLowerCase()]||bo}function l(t){return t.replace(Po,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function p(t,e){return f(t,":",e)}function h(t,e){return f(t,".",e)}function f(t,e,n){var r=t.indexOf(e);return-1==r?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function d(t,e,n){return Array.isArray(t)?e.visitArray(t,n):b(t)?e.visitStringMap(t,n):null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t?e.visitPrimitive(t,n):e.visitOther(t,n)}function m(t){return null!==t&&void 0!==t}function y(t){return void 0===t?null:t}function v(t){var e=Error(t);return e[Mo]=!0,e}function g(t){return t[Mo]}function _(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function b(t){return"object"==typeof t&&null!==t&&Object.getPrototypeOf(t)===Ro}function w(t){for(var e="",n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r>=55296&&r<=56319&&t.length>n+1){var o=t.charCodeAt(n+1);o>=56320&&o<=57343&&(n++,r=(r-55296<<10)+o-56320+65536)}r<=127?e+=String.fromCharCode(r):r<=2047?e+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?e+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(e+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return e}function C(t){return t.replace(/\W/g,"_")}function E(t){if(!t||!t.reference)return null;var n=t.reference;if(n instanceof fo)return n.name;if(n.__anonymousType)return n.__anonymousType;var r=e.ɵstringify(n);return r.indexOf("(")>=0?(r="anonymous_"+zo++,n.__anonymousType=r):r=C(r),r}function S(t){var n=t.reference;return n instanceof fo?n.filePath:e.ɵreflector.importUri(n)}function x(t,e){return"View_"+E({reference:t})+"_"+e}function T(t){return"RenderType_"+E({reference:t})}function P(t){return"HostView_"+E({reference:t})}function A(t){return"Wrapper_"+E({reference:t})}function O(t){return E({reference:t})+"NgFactory"}function M(t){return null!=t.value?C(t.value):E(t.identifier)}function R(t){return null!=t.identifier?t.identifier.reference:t.value}function k(t,n,r){var o=Co.parse(n.selector)[0].getMatchingElementTemplate();return Ko.create({isHost:!0,type:{reference:t,diDeps:[],lifecycleHooks:[]},template:new $o({encapsulation:e.ViewEncapsulation.None,template:o,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null}),exportAs:null,changeDetection:e.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[],componentViewType:r,rendererType:{id:"__Host__",encapsulation:e.ViewEncapsulation.None,styles:[],data:{}},entryComponents:[],componentFactory:null})}function N(t){return t||[]}function I(t){return t.reduce(function(t,e){var n=Array.isArray(e)?I(e):e;return t.concat(n)},[])}function j(t){return t.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function D(t,e,n){var r;return r=n.isInline?e.type.reference instanceof fo?e.type.reference.filePath+"."+e.type.reference.name+".html":E(t)+"/"+E(e.type)+".html":n.templateUrl,j(r)}function L(t,e){var n=t.moduleUrl.split(/\/\\/g);return j("css/"+e+n[n.length-1]+".ngstyle.js")}function V(t){return j(E(t.type)+"/module.ngfactory.js")}function F(t,e){return j(E(t)+"/"+E(e.type)+".ngfactory.js")}function U(t){return t>=Ai&&t<=Ni||t==is}function B(t){return qi<=t&&t<=zi}function H(t){return t>=Ji&&t<=rs||t>=Gi&&t<=Ki}function q(t){return t>=Ji&&t<=Yi||t>=Gi&&t<=$i||B(t)}function z(){return function(t){return t}}function G(t,n){if(e.isDevMode()&&null!=n){if(!Array.isArray(n))throw new Error("Expected '"+t+"' to be an array of strings.");for(var r=0;r<n.length;r+=1)if("string"!=typeof n[r])throw new Error("Expected '"+t+"' to be an array of strings.")}}function W(t,n){if(!(null==n||Array.isArray(n)&&2==n.length))throw new Error("Expected '"+t+"' to be an array, [start, end].");if(e.isDevMode()&&null!=n){var r=n[0],o=n[1];as.forEach(function(t){if(t.test(r)||t.test(o))throw new Error("['"+r+"', '"+o+"'] contains unusable interpolation symbol.")})}}function $(t,e){return new fs(t,ls.Character,e,String.fromCharCode(e))}function K(t,e){return new fs(t,ls.Identifier,0,e)}function Q(t,e){return new fs(t,ls.Keyword,0,e)}function J(t,e){return new fs(t,ls.Operator,0,e)}function X(t,e){return new fs(t,ls.String,0,e)}function Y(t,e){return new fs(t,ls.Number,e,"")}function Z(t,e){return new fs(t,ls.Error,0,e)}function tt(t){return Ji<=t&&t<=rs||Gi<=t&&t<=Ki||t==Qi||t==ji}function et(t){if(0==t.length)return!1;var e=new ms(t);if(!tt(e.peek))return!1;for(e.advance();e.peek!==Pi;){if(!nt(e.peek))return!1;e.advance()}return!0}function nt(t){return H(t)||B(t)||t==Qi||t==ji}function rt(t){return t==Xi||t==Wi}function ot(t){return t==Vi||t==Li}function it(t){return t===Di||t===Ii||t===ss}function st(t){switch(t){case Zi:return Oi;case Yi:return Ri;case ts:return ki;case es:return Ai;case ns:return Mi;default:return t}}function at(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function ut(t){var e=_(t.start)+"([\\s\\S]*?)"+_(t.end);return new RegExp(e,"g")}function ct(t,e){var n=S(e),r=null!=n?"in "+t+" "+E(e)+" in "+n:"in "+t+" "+E(e),o=new Cs("",r);return new Es(new ws(o,-1,-1,-1),new ws(o,-1,-1,-1))}function lt(t,e,n){void 0===n&&(n=null);var r=[],o=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=o(t);e&&r.push(e)}),r}function pt(t,e,n,r,o){return void 0===r&&(r=!1),void 0===o&&(o=cs),new Vs(new Cs(t,e),n,r,o).tokenize()}function ht(t){return'Unexpected character "'+(t===Pi?"EOF":String.fromCharCode(t))+'"'}function ft(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or  "&#x<hex>;" syntax'}function dt(t){return!U(t)||t===Pi}function mt(t){return U(t)||t===Hi||t===Fi||t===Di||t===Ii||t===Bi}function yt(t){return(t<Ji||rs<t)&&(t<Gi||Ki<t)&&(t<qi||t>zi)}function vt(t){return t==Ui||t==Pi||!q(t)}function gt(t){return t==Ui||t==Pi||!H(t)}function _t(t,e,n){var r=!!n&&t.indexOf(n.start,e)==e;return t.charCodeAt(e)==os&&!r}function bt(t){return t===Bi||H(t)}function wt(t,e){return Ct(t)==Ct(e)}function Ct(t){return t>=Ji&&t<=rs?t-Ji+Gi:t}function Et(t){for(var e=[],n=void 0,r=0;r<t.length;r++){var o=t[r];n&&n.type==ks.TEXT&&o.type==ks.TEXT?(n.parts[0]+=o.parts[0],n.sourceSpan.end=o.sourceSpan.end):(n=o,e.push(n))}return e}function St(t,e){return t.length>0&&t[t.length-1]===e}function xt(t){var e=new ea(ta,t);return function(t,n,r,o){return e.toI18nMessage(t,n,r,o)}}function Tt(t){return t.split(na)[2]}function Pt(t,e,n,r){return new la(n,r).extract(t,e)}function At(t,e,n,r,o){return new la(r,o).merge(t,e,n)}function Ot(t){return!!(t instanceof Rs&&t.value&&t.value.startsWith("i18n"))}function Mt(t){return!!(t instanceof Rs&&t.value&&"/i18n"===t.value)}function Rt(t){return t.attrs.find(function(t){return t.name===oa})||null}function kt(t){if(!t)return{meaning:"",description:"",id:""};var e=t.indexOf(aa),n=t.indexOf(sa),r=e>-1?[t.slice(0,e),t.slice(e+2)]:[t,""],o=r[0],i=r[1],s=n>-1?[o.slice(0,n),o.slice(n+1)]:["",o];return{meaning:s[0],description:s[1],id:i}}function Nt(t){return pa}function It(t){return t.id||Lt(Dt(t.nodes).join("")+"["+t.meaning+"]")}function jt(t){if(t.id)return t.id;var e=new ma;return Ut(t.nodes.map(function(t){return t.visit(e,null)}).join(""),t.meaning)}function Dt(t){return t.map(function(t){return t.visit(da,null)})}function Lt(t){var e=w(t),n=Qt(e,ya.Big),r=8*e.length,o=new Array(80),i=[1732584193,4023233417,2562383102,271733878,3285377520],s=i[0],a=i[1],u=i[2],c=i[3],l=i[4];n[r>>5]|=128<<24-r%32,n[15+(r+64>>9<<4)]=r;for(var p=0;p<n.length;p+=16){for(var h=[s,a,u,c,l],f=h[0],d=h[1],m=h[2],y=h[3],v=h[4],g=0;g<80;g++){o[g]=g<16?n[p+g]:$t(o[g-3]^o[g-8]^o[g-14]^o[g-16],1);var _=Vt(g,a,u,c),b=_[0],C=_[1],E=[$t(s,5),b,l,C,o[g]].reduce(qt);l=(S=[c,u,$t(a,30),s,E])[0],c=S[1],u=S[2],a=S[3],s=S[4]}s=(x=[qt(s,f),qt(a,d),qt(u,m),qt(c,y),qt(l,v)])[0],a=x[1],u=x[2],c=x[3],l=x[4]}return te(Yt([s,a,u,c,l]));var S,x}function Vt(t,e,n,r){return t<20?[e&n|~e&r,1518500249]:t<40?[e^n^r,1859775393]:t<60?[e&n|e&r|n&r,2400959708]:[e^n^r,3395469782]}function Ft(t){var e=w(t),n=[Bt(e,0),Bt(e,102072)],r=n[0],o=n[1];return 0!=r||0!=o&&1!=o||(r^=319790063,o^=-1801410264),[r,o]}function Ut(t,e){var n=Ft(t),r=n[0],o=n[1];if(e){var i=Ft(e),s=i[0],a=i[1];r=(u=Gt(Kt([r,o],1),[s,a]))[0],o=u[1]}return ee(Yt([2147483647&r,o]));var u}function Bt(t,e){var n,r=[2654435769,2654435769],o=r[0],i=r[1],s=t.length;for(n=0;n+12<=s;n+=12)o=(a=Ht([o=qt(o,Xt(t,n,ya.Little)),i=qt(i,Xt(t,n+4,ya.Little)),e=qt(e,Xt(t,n+8,ya.Little))]))[0],i=a[1],e=a[2];return o=qt(o,Xt(t,n,ya.Little)),i=qt(i,Xt(t,n+4,ya.Little)),e=qt(e,s),e=qt(e,Xt(t,n+8,ya.Little)<<8),Ht([o,i,e])[2];var a}function Ht(t){var e=t[0],n=t[1],r=t[2];return e=Wt(e,n),e=Wt(e,r),e^=r>>>13,n=Wt(n,r),n=Wt(n,e),n^=e<<8,r=Wt(r,e),r=Wt(r,n),r^=n>>>13,e=Wt(e,n),e=Wt(e,r),e^=r>>>12,n=Wt(n,r),n=Wt(n,e),n^=e<<16,r=Wt(r,e),r=Wt(r,n),r^=n>>>5,e=Wt(e,n),e=Wt(e,r),e^=r>>>3,n=Wt(n,r),n=Wt(n,e),n^=e<<10,r=Wt(r,e),r=Wt(r,n),r^=n>>>15,[e,n,r]}function qt(t,e){return zt(t,e)[1]}function zt(t,e){var n=(65535&t)+(65535&e),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function Gt(t,e){var n=t[0],r=t[1],o=e[0],i=zt(r,e[1]),s=i[0],a=i[1];return[qt(qt(n,o),s),a]}function Wt(t,e){var n=(65535&t)-(65535&e);return(t>>16)-(e>>16)+(n>>16)<<16|65535&n}function $t(t,e){return t<<e|t>>>32-e}function Kt(t,e){var n=t[0],r=t[1];return[n<<e|r>>>32-e,r<<e|n>>>32-e]}function Qt(t,e){for(var n=Array(t.length+3>>>2),r=0;r<n.length;r++)n[r]=Xt(t,4*r,e);return n}function Jt(t,e){return e>=t.length?0:255&t.charCodeAt(e)}function Xt(t,e,n){var r=0;if(n===ya.Big)for(o=0;o<4;o++)r+=Jt(t,e+o)<<24-8*o;else for(var o=0;o<4;o++)r+=Jt(t,e+o)<<8*o;return r}function Yt(t){return t.reduce(function(t,e){return t+Zt(e)},"")}function Zt(t){for(var e="",n=0;n<4;n++)e+=String.fromCharCode(t>>>8*(3-n)&255);return e}function te(t){for(var e="",n=0;n<t.length;n++){var r=Jt(t,n);e+=(r>>>4).toString(16)+(15&r).toString(16)}return e.toLowerCase()}function ee(t){for(var e="",n="1",r=t.length-1;r>=0;r--)e=ne(e,re(Jt(t,r),n)),n=re(256,n);return e.split("").reverse().join("")}function ne(t,e){for(var n="",r=Math.max(t.length,e.length),o=0,i=0;o<r||i;o++){var s=i+ +(t[o]||0)+ +(e[o]||0);s>=10?(i=1,n+=s-10):(i=0,n+=s)}return n}function re(t,e){for(var n="",r=e;0!==t;t>>>=1)1&t&&(n=ne(n,r)),r=ne(r,r);return n}function oe(t){return t.map(function(t){return t.visit(_a)}).join("")}function ie(t){return xa.reduce(function(t,e){return t.replace(e[0],e[1])},t)}function se(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}function ae(t){switch(t.toLowerCase()){case"br":case"b":case"i":case"u":return"fmt";case"img":return"image";case"a":return"link";default:return"other"}}function ue(t){return jt(t)}function ce(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}function le(t,e,n){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var r=n();return Object.defineProperty(t,e,{enumerable:!0,value:r}),r},set:function(t){throw new Error("Could not overwrite an XTB translation")}})}function pe(t){switch(t=(t||"xlf").toLowerCase()){case"xmb":return new Ia;case"xtb":return new La;case"xliff2":case"xlf2":return new Ma;case"xliff":case"xlf":default:return new Ta}}function he(t){var n=t.name;return e.ɵreflector.resolveIdentifier(n,t.moduleUrl,null,t.runtime)}function fe(t){return{reference:he(t)}}function de(t){return{identifier:t}}function me(t){return de(fe(t))}function ye(t){var e=new Qa;return new $a(lt(e,t),e.isExpanded,e.errors)}function ve(t,e){var n=t.cases.map(function(t){-1!=Wa.indexOf(t.value)||t.value.match(/^=\d+$/)||e.push(new Ka(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+Wa.join(", ")));var n=ye(t.expression);return e.push.apply(e,n.errors),new Ms("ng-template",[new Os("ngPluralCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new Os("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new Ms("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function ge(t,e){var n=t.cases.map(function(t){var n=ye(t.expression);return e.push.apply(e,n.errors),"other"===t.value?new Ms("ng-template",[new Os("ngSwitchDefault","",t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new Ms("ng-template",[new Os("ngSwitchCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new Os("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new Ms("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function _e(t,e){var n=e.useExisting,r=e.useValue,o=e.deps;return{token:t.token,useClass:t.useClass,useExisting:n,useFactory:t.useFactory,useValue:r,deps:o,multi:t.multi}}function be(t,e){var n=e.eager,r=e.providers;return new co(t.token,t.multiProvider,t.eager||n,r,t.providerType,t.lifecycleHooks,t.sourceSpan)}function we(t,e,n){var r=new Map;return t.forEach(function(t){Ce([{token:{identifier:t.type},useClass:t.type}],t.isComponent?lo.Component:lo.Directive,!0,e,n,r)}),t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent})).forEach(function(t){Ce(t.providers,lo.PublicService,!1,e,n,r),Ce(t.viewProviders,lo.PrivateService,!1,e,n,r)}),r}function Ce(t,e,n,r,o,i){t.forEach(function(t){var s=i.get(R(t.token));if(null!=s&&!!s.multiProvider!=!!t.multi&&o.push(new Ja("Mixing multi and non multi provider is not possible for token "+M(s.token),r)),s)t.multi||(s.providers.length=0),s.providers.push(t);else{var a=t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[],u=!(t.useClass||t.useExisting||t.useFactory);s=new co(t.token,!!t.multi,n||u,[t],e,a,r),i.set(R(t.token),s)}})}function Ee(t){var e=1,n=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return xe(n,{meta:t,queryId:e++})}),n}function Se(t,e){var n=t,r=new Map;return e.forEach(function(t,e){t.queries&&t.queries.forEach(function(t){return xe(r,{meta:t,queryId:n++})})}),r}function xe(t,e){e.meta.selectors.forEach(function(n){var r=t.get(R(n));r||(r=[],t.set(R(n),r)),r.push(e)})}function Te(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(ou);return null===e||"package"==e[1]||"asset"==e[1]}function Pe(t,e,n){var r=[],o=n.replace(ru,"").replace(nu,function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=n[1]||n[2];return Te(i)?(r.push(t.resolve(e,i)),""):n[0]});return new eu(o,r)}function Ae(t){return"@"==t[0]}function Oe(t,n,r,o){var i=[];return Co.parse(n).forEach(function(e){var n=e.element?[e.element]:t.allKnownElementNames(),s=new Set(e.notSelectors.filter(function(t){return t.isElementSelector()}).map(function(t){return t.element})),a=n.filter(function(t){return!s.has(t)});i.push.apply(i,a.map(function(e){return t.securityContext(e,r,o)}))}),0===i.length?[e.SecurityContext.NONE]:Array.from(new Set(i)).sort()}function Me(t){var e=null,n=null,r=null,o=!1,s=null;t.attrs.forEach(function(t){var i=t.name.toLowerCase();i==cu?e=t.value:i==hu?n=t.value:i==pu?r=t.value:t.name==yu?o=!0:t.name==vu&&t.value.length>0&&(s=t.value)}),e=Re(e);var a=t.name.toLowerCase(),u=gu.OTHER;return i(a)?u=gu.NG_CONTENT:a==du?u=gu.STYLE:a==mu?u=gu.SCRIPT:a==lu&&r==fu&&(u=gu.STYLESHEET),new _u(u,e,n,o,s)}function Re(t){return null===t||0===t.length?"*":t}function ke(t){return function(e){return-1===t.indexOf(e.msg)||(xu[e.msg]=(xu[e.msg]||0)+1,xu[e.msg]<=1)}}function Ne(t){return t.trim().split(/\s+/g)}function Ie(t,e){var n=new Co,o=r(t)[1];n.setElement(o);for(var i=0;i<e.length;i++){var s=e[i][0],a=r(s)[1],u=e[i][1];n.addAttribute(a,u),s.toLowerCase()==Cu&&Ne(u).forEach(function(t){return n.addClassName(t)})}return n}function je(t){return t instanceof Ts&&0==t.value.trim().length}function De(t){var e=new Map;return t.forEach(function(t){e.get(t.type.reference)||e.set(t.type.reference,t)}),Array.from(e.values())}function Le(t){return t instanceof Ei&&(t=t.ast),t instanceof oi}function Ve(t,e,n){if(s(t.name))return!0;var o=r(t.name)[1];return!(o.toLowerCase()!==wu||!e||o.toLowerCase()!==wu)&&(n(Su,t.sourceSpan),!0)}function Fe(){return new Vu}function Ue(){return new Vu(".")}function Be(t){var e=qe(t);return e&&e[Uu.Scheme]||""}function He(t,e,n,r,o,i,s){var a=[];return null!=t&&a.push(t+":"),null!=n&&(a.push("//"),null!=e&&a.push(e+"@"),a.push(n),null!=r&&a.push(":"+r)),null!=o&&a.push(o),null!=i&&a.push("?"+i),null!=s&&a.push("#"+s),a.join("")}function qe(t){return t.match(Fu)}function ze(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",n="/"===t[t.length-1]?"/":"",r=t.split("/"),o=[],i=0,s=0;s<r.length;s++){var a=r[s];switch(a){case"":case".":break;case"..":o.length>0?o.pop():i++;break;default:o.push(a)}}if(""==e){for(;i-- >0;)o.unshift("..");0===o.length&&o.push(".")}return e+o.join("/")+n}function Ge(t){var e=t[Uu.Path];return e=null==e?"":ze(e),t[Uu.Path]=e,He(t[Uu.Scheme],t[Uu.UserInfo],t[Uu.Domain],t[Uu.Port],e,t[Uu.QueryData],t[Uu.Fragment])}function We(t,e){var n=qe(encodeURI(e)),r=qe(t);if(null!=n[Uu.Scheme])return Ge(n);n[Uu.Scheme]=r[Uu.Scheme];for(var o=Uu.Scheme;o<=Uu.Port;o++)null==n[o]&&(n[o]=r[o]);if("/"==n[Uu.Path][0])return Ge(n);var i=r[Uu.Path];null==i&&(i="/");var s=i.lastIndexOf("/");return i=i.substring(0,s+1)+n[Uu.Path],n[Uu.Path]=i,Ge(n)}function $e(t){return t instanceof e.Directive}function Ke(t,e){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return t[n];return null}function Qe(t){var e=Ye(t);return e[0]+".ngfactory"+e[1]}function Je(t){return t.replace(Wu,".")}function Xe(t){return Wu.test(t)}function Ye(t){if(t.endsWith(".d.ts"))return[t.slice(0,-5),".ts"];var e=t.lastIndexOf(".");return-1!==e?[t.substring(0,e),t.substring(e)]:[t,""]}function Ze(t){return t.replace(Gu,"")+".ngsummary.json"}function tn(t,n){return e.ɵreflector.hasLifecycleHook(n,en(t))}function en(t){switch(t){case e.ɵLifecycleHooks.OnInit:return"ngOnInit";case e.ɵLifecycleHooks.OnDestroy:return"ngOnDestroy";case e.ɵLifecycleHooks.DoCheck:return"ngDoCheck";case e.ɵLifecycleHooks.OnChanges:return"ngOnChanges";case e.ɵLifecycleHooks.AfterContentInit:return"ngAfterContentInit";case e.ɵLifecycleHooks.AfterContentChecked:return"ngAfterContentChecked";case e.ɵLifecycleHooks.AfterViewInit:return"ngAfterViewInit";case e.ɵLifecycleHooks.AfterViewChecked:return"ngAfterViewChecked"}}function nn(t){return t instanceof e.NgModule}function rn(t){return t instanceof e.Pipe}function on(t,n){if(void 0===n&&(n=[]),t)for(var r=0;r<t.length;r++){var o=e.resolveForwardRef(t[r]);Array.isArray(o)?on(o,n):n.push(o)}return n}function sn(t){return t?Array.from(new Set(t)):[]}function an(t){return sn(on(t))}function un(t){return t instanceof fo||t instanceof e.Type}function cn(t,e,n){if(e instanceof fo)return t.resourceUri(e);var r=n.moduleId;if("string"==typeof r)return Be(r)?r:"package:"+r+To;if(null!==r&&void 0!==r)throw v('moduleId should be a string in "'+pn(e)+"\". See https://goo.gl/wIDDiL for more information.\nIf you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.");return t.importUri(e)}function ln(t,e){d(t,new Yu,e)}function pn(t){return t instanceof fo?t.name+" in "+t.filePath:e.ɵstringify(t)}function hn(t){var n=Error("Can't compile synchronously as "+e.ɵstringify(t)+" is still being loaded!");return n[e.ɵERROR_COMPONENT_TYPE]=t,n}function fn(t){var e=new Zc;return e.visitAllStatements(t,null),e.varNames}function dn(t,e){if(!e)return t;var n=new tl(e);return t.visitStatement(n,null)}function mn(t,e){if(!e)return t;var n=new tl(e);return t.visitExpression(n,null)}function yn(t,e,n){return new hc(t,e,n)}function vn(t,e,n){return void 0===e&&(e=null),new wc(t,null,e,n)}function gn(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),null!=t?_n(vn(t,e,null),n):null}function _n(t,e){return void 0===e&&(e=null),null!=t?new rc(t,e):null}function bn(t,e,n){return new Mc(t,e,n)}function wn(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=!1),new kc(t.map(function(t){return new Rc(t[0],t[1],n)}),e,null)}function Cn(t,e){return new Ec(t,e)}function En(t,e,n,r){return new Tc(t,e,n,r)}function Sn(t,e,n){return new bc(t,e,n)}function xn(t){var e=t.parentArgs||[],n=t.parent?[jc.callFn(e).toStmt()]:[],r=Tn(Array.isArray(t.builders)?t.builders:[t.builders]),o=new Wc(null,t.ctorParams||[],n.concat(r.ctorStmts));return new Kc(t.name,t.parent||null,r.fields,r.getters,o,r.methods,t.modifiers||[],t.sourceSpan)}function Tn(t){return{fields:[].concat.apply([],t.map(function(t){return t.fields||[]})),methods:[].concat.apply([],t.map(function(t){return t.methods||[]})),getters:[].concat.apply([],t.map(function(t){return t.getters||[]})),ctorStmts:[].concat.apply([],t.map(function(t){return t.ctorStmts||[]}))}}function Pn(t,e){return void 0===e&&(e=null),d(t,new el,e)}function An(t){return null!=t.value?Sn(t.value):vn(t.identifier)}function On(t){var e="";t=w(t);for(var n=0;n<t.length;){var r=t.charCodeAt(n++),o=t.charCodeAt(n++),i=t.charCodeAt(n++);e+=Rn(r>>2),e+=Rn((3&r)<<4|(isNaN(o)?0:o>>4)),e+=isNaN(o)?"=":Rn((15&o)<<2|i>>6),e+=isNaN(o)||isNaN(i)?"=":Rn(63&i)}return e}function Mn(t){t=t<0?1+(-t<<1):t<<1;var e="";do{var n=31&t;(t>>=5)>0&&(n|=32),e+=Rn(n)}while(t>0);return e}function Rn(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return cl[t]}function kn(t,e,n){if(void 0===n&&(n=!0),null==t)return null;var r=t.replace(ll,function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return"$"==t[0]?e?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":"\\"+t[0]});return n||!pl.test(r)?"'"+r+"'":r}function Nn(t){for(var e="",n=0;n<t;n++)e+=hl;return e}function In(t){var e=new bl(gl,{fileNameToModuleName:function(t,e){return t},getImportAs:function(t){return null},getTypeArity:function(t){return null}}),n=yl.createRoot([]);return(Array.isArray(t)?t:[t]).forEach(function(t){if(t instanceof Fc)t.visitStatement(e,n);else if(t instanceof lc)t.visitExpression(e,n);else{if(!(t instanceof tc))throw new Error("Don't know how to print debug info for "+t);t.visitType(e,n)}}),n.toSource()}function jn(t,e){for(var n=0,r=e;n<r.length;n++){var o=r[n];wl[o.toLowerCase()]=t}}function Dn(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}function Ln(t){return t.replace($l,"")}function Vn(t){var e=t.match(Kl);return e?e[0]:""}function Fn(t,e){var n=Un(t),r=0;return n.escapedString.replace(Ql,function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var i=t[2],s="",a=t[4],u="";a&&a.startsWith("{"+Zl)&&(s=n.blocks[r++],a=a.substring(Zl.length+1),u="{");var c=e(new tp(i,s));return""+t[1]+c.selector+t[3]+u+c.content+a})}function Un(t){for(var e=t.split(Jl),n=[],r=[],o=0,i=[],s=0;s<e.length;s++){var a=e[s];a==Yl&&o--,o>0?i.push(a):(i.length>0&&(r.push(i.join("")),n.push(Zl),i=[]),n.push(a)),a==Xl&&o++}return i.length>0&&(r.push(i.join("")),n.push(Zl)),new ep(n.join(""),r)}function Bn(t){var e="styles";return t&&(e+="_"+E(t.type)),e}function Hn(t,e,n,r){t||(t=new hp);var o=qn({createLiteralArrayConverter:function(t){return function(t){return bn(t)}},createLiteralMapConverter:function(t){return function(e){return wn(t.map(function(t,n){return[t,e[n]]}))}},createPipeConverter:function(t){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: "+t)}},n),i=new pp(t,e,r),s=[];Yn(o.visit(i,cp.Statement),s),Kn(i.temporaryCount,r,s);var a=s.length-1,u=null;if(a>=0){var c=er(s[a]);c&&(u=tr(r),s[a]=u.set(c.cast(sc).notIdentical(Sn(!1))).toDeclStmt(null,[Vc.Final]))}return new ap(s,u)}function qn(t,e){return Gn(t,e)}function zn(t,e,n,r){t||(t=new hp);var o=Zn(r),i=[],s=new pp(t,e,r),a=n.visit(s,cp.Expression);if(s.temporaryCount)for(var u=0;u<s.temporaryCount;u++)i.push($n(r,u));return i.push(o.set(a).toDeclStmt(null,[Vc.Final])),new up(i,o)}function Gn(t,e){var n=new lp(t);return e.visit(n)}function Wn(t,e){return"tmp_"+t+"_"+e}function $n(t,e){return new Uc(Wn(t,e),Dc)}function Kn(t,e,n){for(var r=t-1;r>=0;r--)n.unshift($n(e,r))}function Qn(t,e){if(t!==cp.Statement)throw new Error("Expected a statement, but saw "+e)}function Jn(t,e){if(t!==cp.Expression)throw new Error("Expected an expression, but saw "+e)}function Xn(t,e){return t===cp.Statement?e.toStmt():e}function Yn(t,e){Array.isArray(t)?t.forEach(function(t){return Yn(t,e)}):e.push(t)}function Zn(t){return yn("currVal_"+t)}function tr(t){return yn("pd_"+t)}function er(t){return t instanceof Hc?t.expr:t instanceof qc?t.value:null}function nr(t){return t.multiProvider?rr(t.providers):or(t.providerType,t.providers[0])}function rr(t){function e(t,e){return e.map(function(e,o){var i="p"+t+"_"+o;return r.push(new xc(i,sc)),n.push(sr(e)),yn(i)})}var n=[],r=[],o=t.map(function(t,n){var r;if(t.useClass){o=e(n,t.deps||t.useClass.diDeps);r=vn(t.useClass).instantiate(o)}else if(t.useFactory){var o=e(n,t.deps||t.useFactory.diDeps);r=vn(t.useFactory).callFn(o)}else r=t.useExisting?(o=e(n,[{token:t.useExisting}]))[0]:Pn(t.useValue);return r});return{providerExpr:En(r,[new qc(bn(o))],ac),flags:1024,depsExpr:bn(n)}}function or(t,e){var n,r,o;return t===lo.Directive||t===lo.Component?(n=vn(e.useClass),r=16384,o=e.deps||e.useClass.diDeps):e.useClass?(n=vn(e.useClass),r=512,o=e.deps||e.useClass.diDeps):e.useFactory?(n=vn(e.useFactory),r=1024,o=e.deps||e.useFactory.diDeps):e.useExisting?(n=Dc,r=2048,o=[{token:e.useExisting}]):(n=Pn(e.useValue),r=256,o=[]),{providerExpr:n,flags:r,depsExpr:bn(o.map(function(t){return sr(t)}))}}function ir(t){return t.identifier?vn(t.identifier):Sn(t.value)}function sr(t){var e=t.isValue?Pn(t.value):ir(t.token),n=0;return t.isSkipSelf&&(n|=1),t.isOptional&&(n|=2),t.isValue&&(n|=8),0===n?e:bn([Sn(n),e])}function ar(t){var e=t[t.length-1];return e instanceof so?e.hasViewContainer:e instanceof io?o(e.name)&&e.children.length?ar(e.children):e.hasViewContainer:e instanceof po}function ur(t){var n=0;switch(t){case e.ɵLifecycleHooks.AfterContentChecked:n=2097152;break;case e.ɵLifecycleHooks.AfterContentInit:n=1048576;break;case e.ɵLifecycleHooks.AfterViewChecked:n=8388608;break;case e.ɵLifecycleHooks.AfterViewInit:n=4194304;break;case e.ɵLifecycleHooks.DoCheck:n=262144;break;case e.ɵLifecycleHooks.OnChanges:n=524288;break;case e.ɵLifecycleHooks.OnDestroy:n=131072;break;case e.ɵLifecycleHooks.OnInit:n=65536}return n}function cr(t,e){switch(t.type){case ho.Attribute:return bn([Sn(1),Sn(t.name),Sn(t.securityContext)]);case ho.Property:return bn([Sn(8),Sn(t.name),Sn(t.securityContext)]);case ho.Animation:return bn([Sn(8|(e&&e.directive.isComponent?32:16)),Sn("@"+t.name),Sn(t.securityContext)]);case ho.Class:return bn([Sn(2),Sn(t.name),Dc]);case ho.Style:return bn([Sn(4),Sn(t.name),Sn(t.unit)])}}function lr(t){var e=Object.create(null);return t.attrs.forEach(function(t){e[t.name]=t.value}),t.directives.forEach(function(t){Object.keys(t.directive.hostAttributes).forEach(function(n){var r=t.directive.hostAttributes[n],o=e[n];e[n]=null!=o?pr(n,o,r):r})}),bn(Object.keys(e).sort().map(function(t){return bn([Sn(t),Sn(e[t])])}))}function pr(t,e,n){return t==dp||t==mp?e+" "+n:n}function hr(t,e){return e.length>10?bp.callFn([_p,Sn(t),Sn(1),bn(e)]):bp.callFn([_p,Sn(t),Sn(0)].concat(e))}function fr(t,e,n){return vn(fe(Ga.unwrapValue)).callFn([_p,Sn(t),Sn(e),n])}function dr(t,e){return void 0===e&&(e=new Map),t.forEach(function(t){var n=new Set,r=new Set,o=void 0;t instanceof io?(dr(t.children,e),t.children.forEach(function(t){var o=e.get(t);o.staticQueryIds.forEach(function(t){return n.add(t)}),o.dynamicQueryIds.forEach(function(t){return r.add(t)})}),o=t.queryMatches):t instanceof so&&(dr(t.children,e),t.children.forEach(function(t){var n=e.get(t);n.staticQueryIds.forEach(function(t){return r.add(t)}),n.dynamicQueryIds.forEach(function(t){return r.add(t)})}),o=t.queryMatches),o&&o.forEach(function(t){return n.add(t.queryId)}),r.forEach(function(t){return n.delete(t)}),e.set(t,{staticQueryIds:n,dynamicQueryIds:r})}),e}function mr(t){var e=new Set,n=new Set;return Array.from(t.values()).forEach(function(t){t.staticQueryIds.forEach(function(t){return e.add(t)}),t.dynamicQueryIds.forEach(function(t){return n.add(t)})}),n.forEach(function(t){return e.delete(t)}),{staticQueryIds:e,dynamicQueryIds:n}}function yr(t){var e=t.find(function(t){return t.directive.isComponent});if(e&&e.directive.entryComponents.length){var n=e.directive.entryComponents.map(function(t){return vn({reference:t.componentFactory})}),r=me(Ga.ComponentFactoryResolver),o={diDeps:[{isValue:!0,value:bn(n)},{token:r,isSkipSelf:!0,isOptional:!0},{token:me(Ga.NgModuleRef)}],lifecycleHooks:[],reference:he(Ga.CodegenComponentFactoryResolver)};return new co(r,!1,!0,[{token:r,multi:!1,useClass:o}],lo.PrivateService,[],e.sourceSpan)}return null}function vr(t,e){return t.isAnimation?{name:"@"+t.name+"."+t.phase,target:e&&e.directive.isComponent?"component":null}:t}function gr(t,e,n){var r=0;return!n||!t.staticQueryIds.has(e)&&t.dynamicQueryIds.has(e)?r|=536870912:r|=268435456,r}function _r(t,e,n,r){var o=new Tp(e,t);n.forEach(function(t){return o.addOrMergeSummary({symbol:t.symbol,metadata:t.metadata})});for(var i=0;i<o.symbols.length;i++){var s=o.symbols[i];if(t.isLibraryFile(s.filePath)){var a=t.resolveSummary(s);if(!a){var u=e.resolveSymbol(s);u&&(a={symbol:u.symbol,metadata:u.metadata})}a&&o.addOrMergeSummary(a)}}return r.forEach(function(e){if(o.addOrMergeSummary({symbol:e.type.reference,metadata:null,type:e}),e.summaryKind===Go.NgModule){var n=e;n.exportedDirectives.concat(n.exportedPipes).forEach(function(e){var n=e.reference;if(t.isLibraryFile(n.filePath)){var r=t.resolveSummary(n);r&&o.addOrMergeSummary(r)}})}}),o.serialize()}function br(t,e){return new Pp(t).deserialize(e)}function wr(t,e,n){return e.dependencies.forEach(function(e){e.valuePlaceholder.reference=t.getStaticSymbol(Cr(e.moduleUrl,e.isShimmed,n),e.name)}),e.statements}function Cr(t,e,n){return t+(e?".shim":"")+".ngstyle"+n}function Er(t){if(!t.isComponent)throw new Error("Could not compile '"+E(t.type)+"' because it is not a component.")}function Sr(t,e,n){var r=Ar(t,e,n);return Tr(t,r.ngModules,r.symbolsMissingModule,n)}function xr(t,e,n){var r=Sr(t,e,n);if(r.symbolsMissingModule&&r.symbolsMissingModule.length)throw v(r.symbolsMissingModule.map(function(t){return"Cannot determine the module for class "+t.name+" in "+t.filePath+"! Add "+t.name+" to the NgModule to fix it."}).join("\n"));return r}function Tr(t,e,n,r){var o=new Map;e.forEach(function(t){return o.set(t.type.reference,t)});var i=new Map,s=new Map,a=new Map,u=new Map,c=new Map,l=new Set;t.forEach(function(t){var e=t.filePath;l.add(e),r.isInjectable(t)&&c.set(e,(c.get(e)||[]).concat(t))}),e.forEach(function(t){var e=t.type.reference.filePath;l.add(e),s.set(e,(s.get(e)||[]).concat(t.type.reference)),t.declaredDirectives.forEach(function(e){var n=e.reference.filePath;l.add(n),a.set(n,(a.get(n)||[]).concat(e.reference)),i.set(e.reference,t)}),t.declaredPipes.forEach(function(e){var n=e.reference.filePath;l.add(n),u.set(n,(u.get(n)||[]).concat(e.reference)),i.set(e.reference,t)})});var p=[];return l.forEach(function(t){var e=a.get(t)||[],n=u.get(t)||[],r=s.get(t)||[],o=c.get(t)||[];p.push({srcUrl:t,directives:e,pipes:n,ngModules:r,injectables:o})}),{ngModuleByPipeOrDirective:i,files:p,ngModules:e,symbolsMissingModule:n}}function Pr(t,e,n){var r=[];return e.filter(function(t){return n.isSourceFile(t)}).forEach(function(e){t.getSymbolsOf(e).forEach(function(e){var n=t.resolveSymbol(e),o=n.metadata;o&&"error"!=o.__symbolic&&r.push(n.symbol)})}),r}function Ar(t,e,n){var r=new Map,o=[],i=new Set,s=function(t){if(r.has(t)||!e.isSourceFile(t.filePath))return!1;var o=n.getNgModuleMetadata(t,!1);return o&&(r.set(o.type.reference,o),o.declaredDirectives.forEach(function(t){return i.add(t.reference)}),o.declaredPipes.forEach(function(t){return i.add(t.reference)}),o.transitiveModule.modules.forEach(function(t){return s(t.reference)})),!!o};t.forEach(function(t){s(t)||!n.isDirective(t)&&!n.isPipe(t)||o.push(t)});var a=o.filter(function(t){return!i.has(t)});return{ngModules:Array.from(r.values()),symbolsMissingModule:a}}function Or(t){return"object"==typeof t&&t.name&&t.filePath}function Mr(t){return t&&"ignore"==t.__symbolic}function Rr(t){switch(t.message){case"Reference to non-exported class":if(t.context&&t.context.className)return"Reference to a non-exported class "+t.context.className+". Consider exporting the class";break;case"Variable not initialized":return"Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler";case"Destructuring not supported":return"Referencing an exported destructured variable or constant is not supported by the template compiler. Consider simplifying this to avoid destructuring";case"Could not resolve type":if(t.context&&t.context.typeName)return"Could not resolve type "+t.context.typeName;break;case"Function call not supported":return(t.context&&t.context.name?"Calling function '"+t.context.name+"', f":"F")+"unction calls are not supported. Consider replacing the function or lambda with a reference to an exported function";case"Reference to a local symbol":if(t.context&&t.context.name)return"Reference to a local (non-exported) symbol '"+t.context.name+"'. Consider exporting the symbol"}return t.message}function kr(t){return"Error encountered resolving symbol values statically. "+Rr(t)}function Nr(t,e){if(!t)return{};var n={};return Object.keys(t).forEach(function(r){var o=e(t[r],r);Mr(o)||(Rp.test(r)?Object.defineProperty(n,r,{enumerable:!1,configurable:!0,value:o}):n[r]=o)}),n}function Ir(t){return null===t||"function"!=typeof t&&"object"!=typeof t}function jr(t,e,n,r){var o=new Error(t);return o.fileName=e,o.line=n,o.column=r,o}function Dr(t){return t.startsWith("___")?t.substr(1):t}function Lr(t,n){var r=n.translations||"",o=Ue(),i=new mo,s=new Vp(t,i),a=new Lp(t,i,s),u=new Np(s,a);Op.install(u);var c=new e.ɵConsole,l=new qa(new Ua,r,n.i18nFormat,e.MissingTranslationStrategy.Warning,c),p=new Zo({defaultEncapsulation:e.ViewEncapsulation.Emulated,useJit:!1,enableLegacyTemplate:!1!==n.enableLegacyTemplate}),h=new Bu({get:function(e){return t.loadResource(e)}},o,l,p),f=new gs(new hs),d=new Al,m=new Ou(p,f,d,l,c,[]),y=new Xu(p,new $u(u),new zu(u),new Ku(u),s,d,h,c,i,u),v={getImportAs:function(t){return a.getImportAs(t)},fileNameToModuleName:function(e,n){return t.fileNameToModuleName(e,n)},getTypeArity:function(t){return a.getTypeArity(t)}},g=new vp(p,d);return{compiler:new Ap(p,t,y,m,new ip(o),g,new ol,new _l(v),s,n.locale||null,n.i18nFormat||null,n.genFilePreamble||null,a),reflector:u}}function Vr(t,e){var n=t.concat([new qc(bn(e.map(function(t){return yn(t)})))]),r=new Fp(null,null,null,new Map),o=(new Bp).visitAllStatements(n,r);return null!=o?o.value:null}function Fr(t,e,n,r,o){for(var i=r.createChildWihtLocalVars(),s=0;s<t.length;s++)i.vars.set(t[s],e[s]);var a=o.visitAllStatements(n,i);return a?a.value:null}function Ur(t,e,n){var r={};t.getters.forEach(function(o){r[o.name]={configurable:!1,get:function(){var r=new Fp(e,this,t.name,e.vars);return Fr([],[],o.body,r,n)}}}),t.methods.forEach(function(o){var i=o.params.map(function(t){return t.name});r[o.name]={writable:!1,configurable:!1,value:function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var a=new Fp(e,this,t.name,e.vars);return Fr(i,r,o.body,a,n)}}});var o=t.constructorMethod.params.map(function(t){return t.name}),i=function(){for(var r=this,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var a=new Fp(e,this,t.name,e.vars);t.fields.forEach(function(t){r[t.name]=void 0}),Fr(o,i,t.constructorMethod.body,a,n)},s=t.parent?t.parent.visitExpression(n,e):Object;return i.prototype=Object.create(s.prototype,r),i}function Br(t,e,n,r){return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return Fr(t,o,e,n,r)}}function Hr(t,n,r){var o=n.toSource()+"\n//# sourceURL="+t,i=[],s=[];for(var a in r)i.push(a),s.push(r[a]);if(e.isDevMode()){var u=(new(Function.bind.apply(Function,[void 0].concat(i.concat("return null;"))))).toString(),c=u.slice(0,u.indexOf("return null;")).split("\n").length-1;o+="\n"+n.toSourceMapGenerator(t,t,c).toJsComment()}return(new(Function.bind.apply(Function,[void 0].concat(i.concat(o))))).apply(void 0,s)}function qr(t,e,n){var r=new zp,o=yl.createRoot(n),i=new qc(bn(n.map(function(t){return yn(t)})));return r.visitAllStatements(e.concat([i]),o),Hr(t,o,r.getArgs())}function zr(t){if(!t.isComponent)throw new Error("Could not compile '"+E(t.type)+"' because it is not a component.")}function Gr(t,e,n,r,o){return new qa(t,e,n,r.missingTranslation,o)}function Wr(){e.ɵreflector.reflectionCapabilities=new e.ɵReflectionCapabilities}function $r(t){return{useJit:Kr(t.map(function(t){return t.useJit})),defaultEncapsulation:Kr(t.map(function(t){return t.defaultEncapsulation})),providers:Qr(t.map(function(t){return t.providers})),missingTranslation:Kr(t.map(function(t){return t.missingTranslation}))}}function Kr(t){for(var e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e]}function Qr(t){var e=[];return t.forEach(function(t){return t&&e.push.apply(e,t)}),e}var Jr=function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Xr=new e.Version("4.1.3"),Yr=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Zr=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitBoundText(this,e)},t}(),to=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitAttr(this,e)},t}(),eo=function(){function t(t,e,n,r,o,i){this.name=t,this.type=e,this.securityContext=n,this.value=r,this.unit=o,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===ho.Animation},enumerable:!0,configurable:!0}),t}(),no=function(){function t(t,e,n,r,o){this.name=t,this.target=e,this.phase=n,this.handler=r,this.sourceSpan=o}return t.calcFullName=function(t,e,n){return e?e+":"+t:n?"@"+t+"."+n:t},t.prototype.visit=function(t,e){return t.visitEvent(this,e)},Object.defineProperty(t.prototype,"fullName",{get:function(){return t.calcFullName(this.name,this.target,this.phase)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return!!this.phase},enumerable:!0,configurable:!0}),t}(),ro=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitReference(this,e)},t}(),oo=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitVariable(this,e)},t}(),io=function(){function t(t,e,n,r,o,i,s,a,u,c,l,p,h){this.name=t,this.attrs=e,this.inputs=n,this.outputs=r,this.references=o,this.directives=i,this.providers=s,this.hasViewContainer=a,this.queryMatches=u,this.children=c,this.ngContentIndex=l,this.sourceSpan=p,this.endSourceSpan=h}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),so=function(){function t(t,e,n,r,o,i,s,a,u,c,l){this.attrs=t,this.outputs=e,this.references=n,this.variables=r,this.directives=o,this.providers=i,this.hasViewContainer=s,this.queryMatches=a,this.children=u,this.ngContentIndex=c,this.sourceSpan=l}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}(),ao=function(){function t(t,e,n,r){this.directiveName=t,this.templateName=e,this.value=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitDirectiveProperty(this,e)},t}(),uo=function(){function t(t,e,n,r,o,i){this.directive=t,this.inputs=e,this.hostProperties=n,this.hostEvents=r,this.contentQueryStartId=o,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),co=function(){function t(t,e,n,r,o,i,s){this.token=t,this.multiProvider=e,this.eager=n,this.providers=r,this.providerType=o,this.lifecycleHooks=i,this.sourceSpan=s}return t.prototype.visit=function(t,e){return null},t}(),lo={};lo.PublicService=0,lo.PrivateService=1,lo.Component=2,lo.Directive=3,lo.Builtin=4,lo[lo.PublicService]="PublicService",lo[lo.PrivateService]="PrivateService",lo[lo.Component]="Component",lo[lo.Directive]="Directive",lo[lo.Builtin]="Builtin";var po=function(){function t(t,e,n){this.index=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitNgContent(this,e)},t}(),ho={};ho.Property=0,ho.Attribute=1,ho.Class=2,ho.Style=3,ho.Animation=4,ho[ho.Property]="Property",ho[ho.Attribute]="Attribute",ho[ho.Class]="Class",ho[ho.Style]="Style",ho[ho.Animation]="Animation";var fo=function(){function t(t,e,n){this.filePath=t,this.name=e,this.members=n}return t.prototype.assertNoMembers=function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got "+JSON.stringify(this)+".")},t}(),mo=function(){function t(){this.cache=new Map}return t.prototype.get=function(t,e,n){var r='"'+t+'".'+e+((n=n||[]).length?"."+n.join("."):""),o=this.cache.get(r);return o||(o=new fo(t,e,n),this.cache.set(r,o)),o},t}(),yo={};yo.RAW_TEXT=0,yo.ESCAPABLE_RAW_TEXT=1,yo.PARSABLE_DATA=2,yo[yo.RAW_TEXT]="RAW_TEXT",yo[yo.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",yo[yo.PARSABLE_DATA]="PARSABLE_DATA";var vo={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",alefsym:"ℵ",Alpha:"Α",alpha:"α",amp:"&",and:"∧",ang:"∠",apos:"'",Aring:"Å",aring:"å",asymp:"≈",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",bdquo:"„",Beta:"Β",beta:"β",brvbar:"¦",bull:"•",cap:"∩",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",Chi:"Χ",chi:"χ",circ:"ˆ",clubs:"♣",cong:"≅",copy:"©",crarr:"↵",cup:"∪",curren:"¤",dagger:"†",Dagger:"‡",darr:"↓",dArr:"⇓",deg:"°",Delta:"Δ",delta:"δ",diams:"♦",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",empty:"∅",emsp:" ",ensp:" ",Epsilon:"Ε",epsilon:"ε",equiv:"≡",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",exist:"∃",fnof:"ƒ",forall:"∀",frac12:"½",frac14:"¼",frac34:"¾",frasl:"⁄",Gamma:"Γ",gamma:"γ",ge:"≥",gt:">",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",image:"ℑ",infin:"∞",int:"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ï",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"←",lArr:"⇐",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"◊",lrm:"‎",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Μ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Ν",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Œ",oelig:"œ",Ograve:"Ò",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Π",pi:"π",piv:"ϖ",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"∏",prop:"∝",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"”",real:"ℜ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"ρ",rlm:"‏",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Š",scaron:"š",sdot:"⋅",sect:"§",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sim:"∼",spades:"♠",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"τ",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"˜",times:"×",trade:"™",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",Uuml:"Ü",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"‍",zwnj:"‌"},go=function(){function t(t){var e=void 0===t?{}:t,n=e.closedByChildren,r=e.requiredParents,o=e.implicitNamespacePrefix,i=e.contentType,s=void 0===i?yo.PARSABLE_DATA:i,a=e.closedByParent,u=void 0!==a&&a,c=e.isVoid,l=void 0!==c&&c,p=e.ignoreFirstLf,h=void 0!==p&&p,f=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,n&&n.length>0&&n.forEach(function(t){return f.closedByChildren[t]=!0}),this.isVoid=l,this.closedByParent=u||l,r&&r.length>0&&(this.requiredParents={},this.parentToAdd=r[0],r.forEach(function(t){return f.requiredParents[t]=!0})),this.implicitNamespacePrefix=o||null,this.contentType=s,this.ignoreFirstLf=h}return t.prototype.requireExtraParent=function(t){if(!this.requiredParents)return!1;if(!t)return!0;var e=t.toLowerCase();return!("template"===e||"ng-template"===t)&&1!=this.requiredParents[e]},t.prototype.isClosedByChild=function(t){return this.isVoid||t.toLowerCase()in this.closedByChildren},t}(),_o={base:new go({isVoid:!0}),meta:new go({isVoid:!0}),area:new go({isVoid:!0}),embed:new go({isVoid:!0}),link:new go({isVoid:!0}),img:new go({isVoid:!0}),input:new go({isVoid:!0}),param:new go({isVoid:!0}),hr:new go({isVoid:!0}),br:new go({isVoid:!0}),source:new go({isVoid:!0}),track:new go({isVoid:!0}),wbr:new go({isVoid:!0}),p:new go({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new go({closedByChildren:["tbody","tfoot"]}),tbody:new go({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new go({closedByChildren:["tbody"],closedByParent:!0}),tr:new go({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new go({closedByChildren:["td","th"],closedByParent:!0}),th:new go({closedByChildren:["td","th"],closedByParent:!0}),col:new go({requiredParents:["colgroup"],isVoid:!0}),svg:new go({implicitNamespacePrefix:"svg"}),math:new go({implicitNamespacePrefix:"math"}),li:new go({closedByChildren:["li"],closedByParent:!0}),dt:new go({closedByChildren:["dt","dd"]}),dd:new go({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new go({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new go({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new go({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new go({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new go({closedByChildren:["optgroup"],closedByParent:!0}),option:new go({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new go({ignoreFirstLf:!0}),listing:new go({ignoreFirstLf:!0}),style:new go({contentType:yo.RAW_TEXT}),script:new go({contentType:yo.RAW_TEXT}),title:new go({contentType:yo.ESCAPABLE_RAW_TEXT}),textarea:new go({contentType:yo.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},bo=new go,wo=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),Co=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var n,r=[],o=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},i=new t,s=i,a=!1;for(wo.lastIndex=0;n=wo.exec(e);){if(n[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new t,i.notSelectors.push(s)}if(n[2]&&s.setElement(n[2]),n[3]&&s.addClassName(n[3]),n[4]&&s.addAttribute(n[4],n[6]),n[7]&&(a=!1,s=i),n[8]){if(a)throw new Error("Multiple selectors in :not are not supported");o(r,i),i=s=new t}}return o(r,i),r},t.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},t.prototype.hasElementSelector=function(){return!!this.element},t.prototype.setElement=function(t){void 0===t&&(t=null),this.element=t},t.prototype.getMatchingElementTemplate=function(){for(var t=this.element||"div",e=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",n="",r=0;r<this.attrs.length;r+=2)n+=" "+this.attrs[r]+(""!==this.attrs[r+1]?'="'+this.attrs[r+1]+'"':"");return c(t).isVoid?"<"+t+e+n+"/>":"<"+t+e+n+"></"+t+">"},t.prototype.addAttribute=function(t,e){void 0===e&&(e=""),this.attrs.push(t,e&&e.toLowerCase()||"")},t.prototype.addClassName=function(t){this.classNames.push(t.toLowerCase())},t.prototype.toString=function(){var t=this.element||"";if(this.classNames&&this.classNames.forEach(function(e){return t+="."+e}),this.attrs)for(var e=0;e<this.attrs.length;e+=2){var n=this.attrs[e],r=this.attrs[e+1];t+="["+n+(r?"="+r:"")+"]"}return this.notSelectors.forEach(function(e){return t+=":not("+e+")"}),t},t}(),Eo=function(){function t(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}return t.createNotMatcher=function(e){var n=new t;return n.addSelectables(e,null),n},t.prototype.addSelectables=function(t,e){var n=null;t.length>1&&(n=new So(t),this._listContexts.push(n));for(var r=0;r<t.length;r++)this._addSelectable(t[r],e,n)},t.prototype._addSelectable=function(t,e,n){var r=this,o=t.element,i=t.classNames,s=t.attrs,a=new xo(t,e,n);if(o&&((u=0===s.length&&0===i.length)?this._addTerminal(r._elementMap,o,a):r=this._addPartial(r._elementPartialMap,o)),i)for(l=0;l<i.length;l++){var u=0===s.length&&l===i.length-1,c=i[l];u?this._addTerminal(r._classMap,c,a):r=this._addPartial(r._classPartialMap,c)}if(s)for(var l=0;l<s.length;l+=2){var u=l===s.length-2,p=s[l],h=s[l+1];if(u){var f=r._attrValueMap,d=f.get(p);d||(d=new Map,f.set(p,d)),this._addTerminal(d,h,a)}else{var m=r._attrValuePartialMap,y=m.get(p);y||(y=new Map,m.set(p,y)),r=this._addPartial(y,h)}}},t.prototype._addTerminal=function(t,e,n){var r=t.get(e);r||(r=[],t.set(e,r)),r.push(n)},t.prototype._addPartial=function(e,n){var r=e.get(n);return r||(r=new t,e.set(n,r)),r},t.prototype.match=function(t,e){for(var n=!1,r=t.element,o=t.classNames,i=t.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,r,t,e)||n,n=this._matchPartial(this._elementPartialMap,r,t,e)||n,o)for(s=0;s<o.length;s++){var a=o[s];n=this._matchTerminal(this._classMap,a,t,e)||n,n=this._matchPartial(this._classPartialMap,a,t,e)||n}if(i)for(s=0;s<i.length;s+=2){var u=i[s],c=i[s+1],l=this._attrValueMap.get(u);c&&(n=this._matchTerminal(l,"",t,e)||n),n=this._matchTerminal(l,c,t,e)||n;var p=this._attrValuePartialMap.get(u);c&&(n=this._matchPartial(p,"",t,e)||n),n=this._matchPartial(p,c,t,e)||n}return n},t.prototype._matchTerminal=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var o=t.get(e)||[],i=t.get("*");if(i&&(o=o.concat(i)),0===o.length)return!1;for(var s=!1,a=0;a<o.length;a++)s=o[a].finalize(n,r)||s;return s},t.prototype._matchPartial=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var o=t.get(e);return!!o&&o.match(n,r)},t}(),So=function(){function t(t){this.selectors=t,this.alreadyMatched=!1}return t}(),xo=function(){function t(t,e,n){this.selector=t,this.cbContext=e,this.listContext=n,this.notSelectors=t.notSelectors}return t.prototype.finalize=function(t,e){var n=!0;return!(this.notSelectors.length>0)||this.listContext&&this.listContext.alreadyMatched||(n=!Eo.createNotMatcher(this.notSelectors).match(t,null)),!n||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),n},t}(),To="",Po=/-+([a-z0-9])/g,Ao=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return t.map(function(t){return d(t,n,e)})},t.prototype.visitStringMap=function(t,e){var n=this,r={};return Object.keys(t).forEach(function(o){r[o]=d(t[o],n,e)}),r},t.prototype.visitPrimitive=function(t,e){return t},t.prototype.visitOther=function(t,e){return t},t}(),Oo=function(){function t(t,e){void 0===e&&(e=null),this.syncResult=t,this.asyncResult=e,e||(this.asyncResult=Promise.resolve(t))}return t}(),Mo="ngSyntaxError",Ro=Object.getPrototypeOf({}),ko=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/,No=function(){function t(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.name=t,this.definitions=e}return t}(),Io=function(){function t(){}return t}(),jo=function(t){function e(e,n){var r=t.call(this)||this;return r.stateNameExpr=e,r.styles=n,r}return Jr(e,t),e}(Io),Do=function(t){function e(e,n){var r=t.call(this)||this;return r.stateChangeExpr=e,r.steps=n,r}return Jr(e,t),e}(Io),Lo=function(){function t(){}return t}(),Vo=function(t){function e(e){void 0===e&&(e=[]);var n=t.call(this)||this;return n.steps=e,n}return Jr(e,t),e}(Lo),Fo=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this)||this;return r.offset=e,r.styles=n,r}return Jr(e,t),e}(Lo),Uo=function(t){function e(e,n){void 0===e&&(e=0),void 0===n&&(n=null);var r=t.call(this)||this;return r.timings=e,r.styles=n,r}return Jr(e,t),e}(Lo),Bo=function(t){function e(e){void 0===e&&(e=null);var n=t.call(this)||this;return n.steps=e,n}return Jr(e,t),e}(Lo),Ho=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return Jr(e,t),e}(Bo),qo=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return Jr(e,t),e}(Bo),zo=0,Go={};Go.Pipe=0,Go.Directive=1,Go.NgModule=2,Go.Injectable=3,Go[Go.Pipe]="Pipe",Go[Go.Directive]="Directive",Go[Go.NgModule]="NgModule",Go[Go.Injectable]="Injectable";var Wo=function(){function t(t){var e=void 0===t?{}:t,n=e.moduleUrl,r=e.styles,o=e.styleUrls;this.moduleUrl=n||null,this.styles=N(r),this.styleUrls=N(o)}return t}(),$o=function(){function t(t){var e=t.encapsulation,n=t.template,r=t.templateUrl,o=t.styles,i=t.styleUrls,s=t.externalStylesheets,a=t.animations,u=t.ngContentSelectors,c=t.interpolation,l=t.isInline;if(this.encapsulation=e,this.template=n,this.templateUrl=r,this.styles=N(o),this.styleUrls=N(i),this.externalStylesheets=N(s),this.animations=a?I(a):[],this.ngContentSelectors=u||[],c&&2!=c.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=c,this.isInline=l}return t.prototype.toSummary=function(){return{animations:this.animations.map(function(t){return t.name}),ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},t}(),Ko=function(){function t(t){var e=t.isHost,n=t.type,r=t.isComponent,o=t.selector,i=t.exportAs,s=t.changeDetection,a=t.inputs,u=t.outputs,c=t.hostListeners,l=t.hostProperties,p=t.hostAttributes,h=t.providers,f=t.viewProviders,d=t.queries,m=t.viewQueries,y=t.entryComponents,v=t.template,g=t.componentViewType,_=t.rendererType,b=t.componentFactory;this.isHost=!!e,this.type=n,this.isComponent=r,this.selector=o,this.exportAs=i,this.changeDetection=s,this.inputs=a,this.outputs=u,this.hostListeners=c,this.hostProperties=l,this.hostAttributes=p,this.providers=N(h),this.viewProviders=N(f),this.queries=N(d),this.viewQueries=N(m),this.entryComponents=N(y),this.template=v,this.componentViewType=g,this.rendererType=_,this.componentFactory=b}return t.create=function(e){var n=e.isHost,r=e.type,o=e.isComponent,i=e.selector,s=e.exportAs,a=e.changeDetection,u=e.inputs,c=e.outputs,l=e.host,h=e.providers,f=e.viewProviders,d=e.queries,m=e.viewQueries,y=e.entryComponents,v=e.template,g=e.componentViewType,_=e.rendererType,b=e.componentFactory,w={},C={},E={};null!=l&&Object.keys(l).forEach(function(t){var e=l[t],n=t.match(ko);null===n?E[t]=e:null!=n[1]?C[n[1]]=e:null!=n[2]&&(w[n[2]]=e)});var S={};null!=u&&u.forEach(function(t){var e=p(t,[t,t]);S[e[0]]=e[1]});var x={};return null!=c&&c.forEach(function(t){var e=p(t,[t,t]);x[e[0]]=e[1]}),new t({isHost:n,type:r,isComponent:!!o,selector:i,exportAs:s,changeDetection:a,inputs:S,outputs:x,hostListeners:w,hostProperties:C,hostAttributes:E,providers:h,viewProviders:f,queries:d,viewQueries:m,entryComponents:y,template:v,componentViewType:g,rendererType:_,componentFactory:b})},t.prototype.toSummary=function(){return{summaryKind:Go.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}},t}(),Qo=function(){function t(t){var e=t.type,n=t.name,r=t.pure;this.type=e,this.name=n,this.pure=!!r}return t.prototype.toSummary=function(){return{summaryKind:Go.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),Jo=function(){function t(t){var e=t.type,n=t.providers,r=t.declaredDirectives,o=t.exportedDirectives,i=t.declaredPipes,s=t.exportedPipes,a=t.entryComponents,u=t.bootstrapComponents,c=t.importedModules,l=t.exportedModules,p=t.schemas,h=t.transitiveModule,f=t.id;this.type=e||null,this.declaredDirectives=N(r),this.exportedDirectives=N(o),this.declaredPipes=N(i),this.exportedPipes=N(s),this.providers=N(n),this.entryComponents=N(a),this.bootstrapComponents=N(u),this.importedModules=N(c),this.exportedModules=N(l),this.schemas=N(p),this.id=f||null,this.transitiveModule=h||null}return t.prototype.toSummary=function(){var t=this.transitiveModule;return{summaryKind:Go.NgModule,type:this.type,entryComponents:t.entryComponents,providers:t.providers,modules:t.modules,exportedDirectives:t.exportedDirectives,exportedPipes:t.exportedPipes}},t}(),Xo=function(){function t(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return t.prototype.addProvider=function(t,e){this.providers.push({provider:t,module:e})},t.prototype.addDirective=function(t){this.directivesSet.has(t.reference)||(this.directivesSet.add(t.reference),this.directives.push(t))},t.prototype.addExportedDirective=function(t){this.exportedDirectivesSet.has(t.reference)||(this.exportedDirectivesSet.add(t.reference),this.exportedDirectives.push(t))},t.prototype.addPipe=function(t){this.pipesSet.has(t.reference)||(this.pipesSet.add(t.reference),this.pipes.push(t))},t.prototype.addExportedPipe=function(t){this.exportedPipesSet.has(t.reference)||(this.exportedPipesSet.add(t.reference),this.exportedPipes.push(t))},t.prototype.addModule=function(t){this.modulesSet.has(t.reference)||(this.modulesSet.add(t.reference),this.modules.push(t))},t.prototype.addEntryComponent=function(t){this.entryComponentsSet.has(t.componentType)||(this.entryComponentsSet.add(t.componentType),this.entryComponents.push(t))},t}(),Yo=function(){function t(t,e){var n=e.useClass,r=e.useValue,o=e.useExisting,i=e.useFactory,s=e.deps,a=e.multi;this.token=t,this.useClass=n||null,this.useValue=r,this.useExisting=o,this.useFactory=i||null,this.dependencies=s||null,this.multi=!!a}return t}(),Zo=function(){function t(t){var n=void 0===t?{}:t,r=n.defaultEncapsulation,o=void 0===r?e.ViewEncapsulation.Emulated:r,i=n.useJit,s=void 0===i||i,a=n.missingTranslation,u=n.enableLegacyTemplate;this.defaultEncapsulation=o,this.useJit=!!s,this.missingTranslation=a||null,this.enableLegacyTemplate=!1!==u}return t}(),ti=function(){function t(t,e,n,r){this.input=e,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+t+" "+n+" ["+e+"] in "+r}return t}(),ei=function(){function t(t,e){this.start=t,this.end=e}return t}(),ni=function(){function t(t){this.span=t}return t.prototype.visit=function(t,e){return void 0===e&&(e=null),null},t.prototype.toString=function(){return"AST"},t}(),ri=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.prefix=n,i.uninterpretedExpression=r,i.location=o,i}return Jr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitQuote(this,e)},e.prototype.toString=function(){return"Quote"},e}(ni),oi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Jr(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(ni),ii=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Jr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(ni),si=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return Jr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(ni),ai=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.condition=n,i.trueExp=r,i.falseExp=o,i}return Jr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(ni),ui=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o}return Jr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(ni),ci=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i.value=o,i}return Jr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(ni),li=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o}return Jr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(ni),pi=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.obj=n,o.key=r,o}return Jr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(ni),hi=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.obj=n,i.key=r,i.value=o,i}return Jr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(ni),fi=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.exp=n,i.name=r,i.args=o,i}return Jr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(ni),di=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return Jr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(ni),mi=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return Jr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(ni),yi=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keys=n,o.values=r,o}return Jr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(ni),vi=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.strings=n,o.expressions=r,o}return Jr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(ni),gi=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.operation=n,i.left=r,i.right=o,i}return Jr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(ni),_i=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return Jr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(ni),bi=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i.args=o,i}return Jr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(ni),wi=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i.args=o,i}return Jr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(ni),Ci=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.target=n,o.args=r,o}return Jr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(ni),Ei=function(t){function e(e,n,r,o){var i=t.call(this,new ei(0,null==n?0:n.length))||this;return i.ast=e,i.source=n,i.location=r,i.errors=o,i}return Jr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),this.ast.visit(t,e)},e.prototype.toString=function(){return this.source+" in "+this.location},e}(ni),Si=function(){function t(t,e,n,r,o){this.span=t,this.key=e,this.keyIsVar=n,this.name=r,this.expression=o}return t}(),xi=function(){function t(){}return t.prototype.visitBinary=function(t,e){return t.left.visit(this),t.right.visit(this),null},t.prototype.visitChain=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this),null},t.prototype.visitPipe=function(t,e){return t.exp.visit(this),this.visitAll(t.args,e),null},t.prototype.visitFunctionCall=function(t,e){return t.target.visit(this),this.visitAll(t.args,e),null},t.prototype.visitImplicitReceiver=function(t,e){return null},t.prototype.visitInterpolation=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitKeyedRead=function(t,e){return t.obj.visit(this),t.key.visit(this),null},t.prototype.visitKeyedWrite=function(t,e){return t.obj.visit(this),t.key.visit(this),t.value.visit(this),null},t.prototype.visitLiteralArray=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitLiteralMap=function(t,e){return this.visitAll(t.values,e)},t.prototype.visitLiteralPrimitive=function(t,e){return null},t.prototype.visitMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitPrefixNot=function(t,e){return t.expression.visit(this),null},t.prototype.visitPropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitPropertyWrite=function(t,e){return t.receiver.visit(this),t.value.visit(this),null},t.prototype.visitSafePropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitSafeMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitAll=function(t,e){var n=this;return t.forEach(function(t){return t.visit(n,e)}),null},t.prototype.visitQuote=function(t,e){return null},t}(),Ti=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t,e){return t},t.prototype.visitInterpolation=function(t,e){return new vi(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t,e){return new di(t.span,t.value)},t.prototype.visitPropertyRead=function(t,e){return new ui(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t,e){return new ci(t.span,t.receiver.visit(this),t.name,t.value.visit(this))},t.prototype.visitSafePropertyRead=function(t,e){return new li(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t,e){return new bi(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t,e){return new wi(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t,e){return new Ci(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t,e){return new mi(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t,e){return new yi(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t,e){return new gi(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t,e){return new _i(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t,e){return new ai(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t,e){return new fi(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t,e){return new pi(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t,e){return new hi(t.span,t.obj.visit(this),t.key.visit(this),t.value.visit(this))},t.prototype.visitAll=function(t){for(var e=new Array(t.length),n=0;n<t.length;++n)e[n]=t[n].visit(this);return e},t.prototype.visitChain=function(t,e){return new si(t.span,this.visitAll(t.expressions))},t.prototype.visitQuote=function(t,e){return new ri(t.span,t.prefix,t.uninterpretedExpression,t.location)},t}(),Pi=0,Ai=9,Oi=10,Mi=11,Ri=12,ki=13,Ni=32,Ii=34,ji=36,Di=39,Li=43,Vi=45,Fi=47,Ui=59,Bi=61,Hi=62,qi=48,zi=57,Gi=65,Wi=69,$i=70,Ki=90,Qi=95,Ji=97,Xi=101,Yi=102,Zi=110,ts=114,es=116,ns=118,rs=122,os=123,is=160,ss=96,as=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],us=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(W("interpolation",e),new t(e[0],e[1])):cs},t}(),cs=new us("{{","}}"),ls={};ls.Character=0,ls.Identifier=1,ls.Keyword=2,ls.String=3,ls.Operator=4,ls.Number=5,ls.Error=6,ls[ls.Character]="Character",ls[ls.Identifier]="Identifier",ls[ls.Keyword]="Keyword",ls[ls.String]="String",ls[ls.Operator]="Operator",ls[ls.Number]="Number",ls[ls.Error]="Error";var ps=["var","let","as","null","undefined","true","false","if","else","this"],hs=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new ms(t),n=[],r=e.scanToken();null!=r;)n.push(r),r=e.scanToken();return n},t}();hs.decorators=[{type:z}],hs.ctorParameters=function(){return[]};var fs=function(){function t(t,e,n,r){this.index=t,this.type=e,this.numValue=n,this.strValue=r}return t.prototype.isCharacter=function(t){return this.type==ls.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==ls.Number},t.prototype.isString=function(){return this.type==ls.String},t.prototype.isOperator=function(t){return this.type==ls.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==ls.Identifier},t.prototype.isKeyword=function(){return this.type==ls.Keyword},t.prototype.isKeywordLet=function(){return this.type==ls.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==ls.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==ls.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==ls.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==ls.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==ls.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==ls.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==ls.Error},t.prototype.toNumber=function(){return this.type==ls.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case ls.Character:case ls.Identifier:case ls.Keyword:case ls.Operator:case ls.String:case ls.Error:return this.strValue;case ls.Number:return this.numValue.toString();default:return null}},t}(),ds=new fs(-1,ls.Character,0,""),ms=function(){function t(t){this.input=t,this.peek=0,this.index=-1,this.length=t.length,this.advance()}return t.prototype.advance=function(){this.peek=++this.index>=this.length?Pi:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,n=this.peek,r=this.index;n<=Ni;){if(++r>=e){n=Pi;break}n=t.charCodeAt(r)}if(this.peek=n,this.index=r,r>=e)return null;if(tt(n))return this.scanIdentifier();if(B(n))return this.scanNumber(r);var o=r;switch(n){case 46:return this.advance(),B(this.peek)?this.scanNumber(o):$(o,46);case 40:case 41:case os:case 125:case 91:case 93:case 44:case 58:case Ui:return this.scanCharacter(o,n);case Di:case Ii:return this.scanString();case 35:case Li:case Vi:case 42:case Fi:case 37:case 94:return this.scanOperator(o,String.fromCharCode(n));case 63:return this.scanComplexOperator(o,"?",46,".");case 60:case Hi:return this.scanComplexOperator(o,String.fromCharCode(n),Bi,"=");case 33:case Bi:return this.scanComplexOperator(o,String.fromCharCode(n),Bi,"=",Bi,"=");case 38:return this.scanComplexOperator(o,"&",38,"&");case 124:return this.scanComplexOperator(o,"|",124,"|");case is:for(;U(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(n)+"]",0)},t.prototype.scanCharacter=function(t,e){return this.advance(),$(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),J(t,e)},t.prototype.scanComplexOperator=function(t,e,n,r,o,i){this.advance();var s=e;return this.peek==n&&(this.advance(),s+=r),null!=o&&this.peek==o&&(this.advance(),s+=i),J(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();nt(this.peek);)this.advance();var e=this.input.substring(t,this.index);return ps.indexOf(e)>-1?Q(t,e):K(t,e)},t.prototype.scanNumber=function(t){var e=this.index===t;for(this.advance();;){if(B(this.peek));else if(46==this.peek)e=!1;else{if(!rt(this.peek))break;if(this.advance(),ot(this.peek)&&this.advance(),!B(this.peek))return this.error("Invalid exponent",-1);e=!1}this.advance()}var n=this.input.substring(t,this.index);return Y(t,e?at(n):parseFloat(n))},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var n="",r=this.index,o=this.input;this.peek!=e;)if(92==this.peek){n+=o.substring(r,this.index),this.advance();var i=void 0;if(this.peek=this.peek,117==this.peek){var s=o.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);i=parseInt(s,16);for(var a=0;a<5;a++)this.advance()}else i=st(this.peek),this.advance();n+=String.fromCharCode(i),r=this.index}else{if(this.peek==Pi)return this.error("Unterminated quote",0);this.advance()}var u=o.substring(r,this.index);return this.advance(),X(t,n+u)},t.prototype.error=function(t,e){var n=this.index+e;return Z(n,"Lexer Error: "+t+" at column "+n+" in expression ["+this.input+"]")},t}(),ys=function(){function t(t,e,n){this.strings=t,this.expressions=e,this.offsets=n}return t}(),vs=function(){function t(t,e,n){this.templateBindings=t,this.warnings=e,this.errors=n}return t}(),gs=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,n){void 0===n&&(n=cs),this._checkNoInterpolation(t,e,n);var r=this._stripComments(t),o=this._lexer.tokenize(this._stripComments(t)),i=new _s(t,e,o,r.length,!0,this.errors,t.length-r.length).parseChain();return new Ei(i,t,e,this.errors)},t.prototype.parseBinding=function(t,e,n){void 0===n&&(n=cs);var r=this._parseBindingAst(t,e,n);return new Ei(r,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,n){void 0===n&&(n=cs);var r=this._parseBindingAst(t,e,n),o=bs.check(r);return o.length>0&&this._reportError("Host binding expression cannot contain "+o.join(" "),t,e),new Ei(r,t,e,this.errors)},t.prototype._reportError=function(t,e,n,r){this.errors.push(new ti(t,e,n,r))},t.prototype._parseBindingAst=function(t,e,n){var r=this._parseQuote(t,e);if(null!=r)return r;this._checkNoInterpolation(t,e,n);var o=this._stripComments(t),i=this._lexer.tokenize(o);return new _s(t,e,i,o.length,!1,this.errors,t.length-o.length).parseChain()},t.prototype._parseQuote=function(t,e){if(null==t)return null;var n=t.indexOf(":");if(-1==n)return null;var r=t.substring(0,n).trim();if(!et(r))return null;var o=t.substring(n+1);return new ri(new ei(0,t.length),r,o,e)},t.prototype.parseTemplateBindings=function(t,e,n){var r=this._lexer.tokenize(e);if(t){var o=this._lexer.tokenize(t).map(function(t){return t.index=0,t});r.unshift.apply(r,o)}return new _s(e,n,r,e.length,!1,this.errors,0).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,n){void 0===n&&(n=cs);var r=this.splitInterpolation(t,e,n);if(null==r)return null;for(var o=[],i=0;i<r.expressions.length;++i){var s=r.expressions[i],a=this._stripComments(s),u=this._lexer.tokenize(this._stripComments(r.expressions[i])),c=new _s(t,e,u,a.length,!1,this.errors,r.offsets[i]+(s.length-a.length)).parseChain();o.push(c)}return new Ei(new vi(new ei(0,null==t?0:t.length),r.strings,o),t,e,this.errors)},t.prototype.splitInterpolation=function(t,e,n){void 0===n&&(n=cs);var r=ut(n),o=t.split(r);if(o.length<=1)return null;for(var i=[],s=[],a=[],u=0,c=0;c<o.length;c++){var l=o[c];c%2==0?(i.push(l),u+=l.length):l.trim().length>0?(u+=n.start.length,s.push(l),a.push(u),u+=l.length+n.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",t,"at column "+this._findInterpolationErrorColumn(o,c,n)+" in",e),s.push("$implict"),a.push(u))}return new ys(i,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new Ei(new di(new ei(0,null==t?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return null!=e?t.substring(0,e).trim():t},t.prototype._commentStart=function(t){for(var e=null,n=0;n<t.length-1;n++){var r=t.charCodeAt(n),o=t.charCodeAt(n+1);if(r===Fi&&o==Fi&&null==e)return n;e===r?e=null:null==e&&it(r)&&(e=r)}return null},t.prototype._checkNoInterpolation=function(t,e,n){var r=ut(n),o=t.split(r);o.length>1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(o,1,n)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,n){for(var r="",o=0;o<e;o++)r+=o%2==0?t[o]:""+n.start+t[o]+n.end;return r.length},t}();gs.decorators=[{type:z}],gs.ctorParameters=function(){return[{type:hs}]};var _s=function(){function t(t,e,n,r,o,i,s){this.input=t,this.location=e,this.tokens=n,this.inputLength=r,this.parseAction=o,this.errors=i,this.offset=s,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.index=0}return t.prototype.peek=function(t){var e=this.index+t;return e<this.tokens.length?this.tokens[e]:ds},Object.defineProperty(t.prototype,"next",{get:function(){return this.peek(0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputIndex",{get:function(){return this.index<this.tokens.length?this.next.index+this.offset:this.inputLength+this.offset},enumerable:!0,configurable:!0}),t.prototype.span=function(t){return new ei(t,this.inputIndex)},t.prototype.advance=function(){this.index++},t.prototype.optionalCharacter=function(t){return!!this.next.isCharacter(t)&&(this.advance(),!0)},t.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},t.prototype.peekKeywordAs=function(){return this.next.isKeywordAs()},t.prototype.expectCharacter=function(t){this.optionalCharacter(t)||this.error("Missing expected "+String.fromCharCode(t))},t.prototype.optionalOperator=function(t){return!!this.next.isOperator(t)&&(this.advance(),!0)},t.prototype.expectOperator=function(t){this.optionalOperator(t)||this.error("Missing expected operator "+t)},t.prototype.expectIdentifierOrKeyword=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier or keyword"),"")},t.prototype.expectIdentifierOrKeywordOrString=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()||t.isString()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier, keyword, or string"),"")},t.prototype.parseChain=function(){for(var t=[],e=this.inputIndex;this.index<this.tokens.length;){var n=this.parsePipe();if(t.push(n),this.optionalCharacter(Ui))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(Ui););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==t.length?new oi(this.span(e)):1==t.length?t[0]:new si(this.span(e),t)},t.prototype.parsePipe=function(){var t=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var e=this.expectIdentifierOrKeyword(),n=[];this.optionalCharacter(58);)n.push(this.parseExpression());t=new fi(this.span(t.span.start),t,e,n)}while(this.optionalOperator("|"))}return t},t.prototype.parseExpression=function(){return this.parseConditional()},t.prototype.parseConditional=function(){var t=this.inputIndex,e=this.parseLogicalOr();if(this.optionalOperator("?")){var n=this.parsePipe(),r=void 0;if(this.optionalCharacter(58))r=this.parsePipe();else{var o=this.inputIndex,i=this.input.substring(t,o);this.error("Conditional expression "+i+" requires all 3 expressions"),r=new oi(this.span(t))}return new ai(this.span(t),e,n,r)}return e},t.prototype.parseLogicalOr=function(){for(var t=this.parseLogicalAnd();this.optionalOperator("||");){var e=this.parseLogicalAnd();t=new gi(this.span(t.span.start),"||",t,e)}return t},t.prototype.parseLogicalAnd=function(){for(var t=this.parseEquality();this.optionalOperator("&&");){var e=this.parseEquality();t=new gi(this.span(t.span.start),"&&",t,e)}return t},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==ls.Operator;){var e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();var n=this.parseRelational();t=new gi(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==ls.Operator;){var e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();var n=this.parseAdditive();t=new gi(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==ls.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var n=this.parseMultiplicative();t=new gi(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==ls.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();t=new gi(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==ls.Operator){var t=this.inputIndex,e=this.next.strValue,n=void 0;switch(e){case"+":return this.advance(),this.parsePrefix();case"-":return this.advance(),n=this.parsePrefix(),new gi(this.span(t),e,new di(new ei(t,t),0),n);case"!":return this.advance(),n=this.parsePrefix(),new _i(this.span(t),n)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(46))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(91)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(93),this.optionalOperator("=")){var n=this.parseConditional();t=new hi(this.span(t.span.start),t,e,n)}else t=new pi(this.span(t.span.start),t,e)}else{if(!this.optionalCharacter(40))return t;this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(41),t=new Ci(this.span(t.span.start),t,r)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(40)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),e}if(this.next.isKeywordNull())return this.advance(),new di(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new di(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new di(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new di(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new ii(this.span(t));if(this.optionalCharacter(91)){this.rbracketsExpected++;var n=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new mi(this.span(t),n)}if(this.next.isCharacter(os))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new ii(this.span(t)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new di(this.span(t),r)}if(this.next.isString()){var o=this.next.toString();return this.advance(),new di(this.span(t),o)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new oi(this.span(t))):(this.error("Unexpected token "+this.next),new oi(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do{e.push(this.parsePipe())}while(this.optionalCharacter(44));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],n=this.inputIndex;if(this.expectCharacter(os),!this.optionalCharacter(125)){this.rbracesExpected++;do{var r=this.expectIdentifierOrKeywordOrString();t.push(r),this.expectCharacter(58),e.push(this.parsePipe())}while(this.optionalCharacter(44));this.rbracesExpected--,this.expectCharacter(125)}return new yi(this.span(n),t,e)},t.prototype.parseAccessMemberOrMethodCall=function(t,e){void 0===e&&(e=!1);var n=t.span.start,r=this.expectIdentifierOrKeyword();if(this.optionalCharacter(40)){this.rparensExpected++;var o=this.parseCallArguments();this.expectCharacter(41),this.rparensExpected--;var i=this.span(n);return e?new wi(i,t,r,o):new bi(i,t,r,o)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new oi(this.span(n))):new li(this.span(n),t,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new oi(this.span(n));var s=this.parseConditional();return new ci(this.span(n),t,r,s)}return new ui(this.span(n),t,r)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(41))return[];var t=[];do{t.push(this.parsePipe())}while(this.optionalCharacter(44));return t},t.prototype.expectTemplateBindingKey=function(){var t="",e=!1;do{t+=this.expectIdentifierOrKeywordOrString(),(e=this.optionalOperator("-"))&&(t+="-")}while(e);return t.toString()},t.prototype.parseTemplateBindings=function(){for(var t=[],e=null,n=[];this.index<this.tokens.length;){var r=this.inputIndex,o=this.peekKeywordLet();o&&this.advance();var i=this.expectTemplateBindingKey(),s=i;o||(null==e?e=s:s=e+s[0].toUpperCase()+s.substring(1)),this.optionalCharacter(58);var a=null,u=null;if(o)a=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.peekKeywordAs()){h=this.inputIndex;this.advance(),a=i,s=this.expectTemplateBindingKey(),o=!0}else if(this.next!==ds&&!this.peekKeywordLet()){var c=this.inputIndex,l=this.parsePipe(),p=this.input.substring(c-this.offset,this.inputIndex-this.offset);u=new Ei(l,p,this.location,this.errors)}if(t.push(new Si(this.span(r),s,o,a,u)),this.peekKeywordAs()&&!o){var h=this.inputIndex;this.advance();var f=this.expectTemplateBindingKey();t.push(new Si(this.span(h),f,!0,s,null))}this.optionalCharacter(Ui)||this.optionalCharacter(44)}return new vs(t,n,this.errors)},t.prototype.error=function(t,e){void 0===e&&(e=null),this.errors.push(new ti(t,this.input,this.locationText(e),this.location)),this.skip()},t.prototype.locationText=function(t){return void 0===t&&(t=null),null==t&&(t=this.index),t<this.tokens.length?"at column "+(this.tokens[t].index+1)+" in":"at the end of the expression"},t.prototype.skip=function(){for(var t=this.next;this.index<this.tokens.length&&!t.isCharacter(Ui)&&(this.rparensExpected<=0||!t.isCharacter(41))&&(this.rbracesExpected<=0||!t.isCharacter(125))&&(this.rbracketsExpected<=0||!t.isCharacter(93));)this.next.isError()&&this.errors.push(new ti(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next},t}(),bs=function(){function t(){this.errors=[]}return t.check=function(e){var n=new t;return e.visit(n),n.errors},t.prototype.visitImplicitReceiver=function(t,e){},t.prototype.visitInterpolation=function(t,e){},t.prototype.visitLiteralPrimitive=function(t,e){},t.prototype.visitPropertyRead=function(t,e){},t.prototype.visitPropertyWrite=function(t,e){},t.prototype.visitSafePropertyRead=function(t,e){},t.prototype.visitMethodCall=function(t,e){},t.prototype.visitSafeMethodCall=function(t,e){},t.prototype.visitFunctionCall=function(t,e){},t.prototype.visitLiteralArray=function(t,e){this.visitAll(t.expressions)},t.prototype.visitLiteralMap=function(t,e){this.visitAll(t.values)},t.prototype.visitBinary=function(t,e){},t.prototype.visitPrefixNot=function(t,e){},t.prototype.visitConditional=function(t,e){},t.prototype.visitPipe=function(t,e){this.errors.push("pipes")},t.prototype.visitKeyedRead=function(t,e){},t.prototype.visitKeyedWrite=function(t,e){},t.prototype.visitAll=function(t){var e=this;return t.map(function(t){return t.visit(e)})},t.prototype.visitChain=function(t,e){},t.prototype.visitQuote=function(t,e){},t}(),ws=function(){function t(t,e,n,r){this.file=t,this.offset=e,this.line=n,this.col=r}return t.prototype.toString=function(){return null!=this.offset?this.file.url+"@"+this.line+":"+this.col:this.file.url},t.prototype.moveBy=function(e){for(var n=this.file.content,r=n.length,o=this.offset,i=this.line,s=this.col;o>0&&e<0;)if(o--,e++,(u=n.charCodeAt(o))==Oi){i--;var a=n.substr(0,o-1).lastIndexOf(String.fromCharCode(Oi));s=a>0?o-a:o}else s--;for(;o<r&&e>0;){var u=n.charCodeAt(o);o++,e--,u==Oi?(i++,s=0):s++}return new t(this.file,o,i,s)},t.prototype.getContext=function(t,e){var n=this.file.content,r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);for(var o=r,i=0,s=0;i<t&&r>0&&(r--,i++,"\n"!=n[r]||++s!=e););for(i=0,s=0;i<t&&o<n.length-1&&(o++,i++,"\n"!=n[o]||++s!=e););return{before:n.substring(r,this.offset),after:n.substring(this.offset,o+1)}}return null},t}(),Cs=function(){function t(t,e){this.content=t,this.url=e}return t}(),Es=function(){function t(t,e,n){void 0===n&&(n=null),this.start=t,this.end=e,this.details=n}return t.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},t}(),Ss={};Ss.WARNING=0,Ss.ERROR=1,Ss[Ss.WARNING]="WARNING",Ss[Ss.ERROR]="ERROR";var xs=function(){function t(t,e,n){void 0===n&&(n=Ss.ERROR),this.span=t,this.msg=e,this.level=n}return t.prototype.toString=function(){var t=this.span.start.getContext(100,3),e=t?' ("'+t.before+"["+Ss[this.level]+" ->]"+t.after+'")':"",n=this.span.details?", "+this.span.details:"";return""+this.msg+e+": "+this.span.start+n},t}(),Ts=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Ps=function(){function t(t,e,n,r,o){this.switchValue=t,this.type=e,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitExpansion(this,e)},t}(),As=function(){function t(t,e,n,r,o){this.value=t,this.expression=e,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitExpansionCase(this,e)},t}(),Os=function(){function t(t,e,n,r){this.name=t,this.value=e,this.sourceSpan=n,this.valueSpan=r}return t.prototype.visit=function(t,e){return t.visitAttribute(this,e)},t}(),Ms=function(){function t(t,e,n,r,o,i){void 0===o&&(o=null),void 0===i&&(i=null),this.name=t,this.attrs=e,this.children=n,this.sourceSpan=r,this.startSourceSpan=o,this.endSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),Rs=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}(),ks={};ks.TAG_OPEN_START=0,ks.TAG_OPEN_END=1,ks.TAG_OPEN_END_VOID=2,ks.TAG_CLOSE=3,ks.TEXT=4,ks.ESCAPABLE_RAW_TEXT=5,ks.RAW_TEXT=6,ks.COMMENT_START=7,ks.COMMENT_END=8,ks.CDATA_START=9,ks.CDATA_END=10,ks.ATTR_NAME=11,ks.ATTR_VALUE=12,ks.DOC_TYPE=13,ks.EXPANSION_FORM_START=14,ks.EXPANSION_CASE_VALUE=15,ks.EXPANSION_CASE_EXP_START=16,ks.EXPANSION_CASE_EXP_END=17,ks.EXPANSION_FORM_END=18,ks.EOF=19,ks[ks.TAG_OPEN_START]="TAG_OPEN_START",ks[ks.TAG_OPEN_END]="TAG_OPEN_END",ks[ks.TAG_OPEN_END_VOID]="TAG_OPEN_END_VOID",ks[ks.TAG_CLOSE]="TAG_CLOSE",ks[ks.TEXT]="TEXT",ks[ks.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",ks[ks.RAW_TEXT]="RAW_TEXT",ks[ks.COMMENT_START]="COMMENT_START",ks[ks.COMMENT_END]="COMMENT_END",ks[ks.CDATA_START]="CDATA_START",ks[ks.CDATA_END]="CDATA_END",ks[ks.ATTR_NAME]="ATTR_NAME",ks[ks.ATTR_VALUE]="ATTR_VALUE",ks[ks.DOC_TYPE]="DOC_TYPE",ks[ks.EXPANSION_FORM_START]="EXPANSION_FORM_START",ks[ks.EXPANSION_CASE_VALUE]="EXPANSION_CASE_VALUE",ks[ks.EXPANSION_CASE_EXP_START]="EXPANSION_CASE_EXP_START",ks[ks.EXPANSION_CASE_EXP_END]="EXPANSION_CASE_EXP_END",ks[ks.EXPANSION_FORM_END]="EXPANSION_FORM_END",ks[ks.EOF]="EOF";var Ns=function(){function t(t,e,n){this.type=t,this.parts=e,this.sourceSpan=n}return t}(),Is=function(t){function e(e,n,r){var o=t.call(this,r,e)||this;return o.tokenType=n,o}return Jr(e,t),e}(xs),js=function(){function t(t,e){this.tokens=t,this.errors=e}return t}(),Ds=/\r\n?/g,Ls=function(){function t(t){this.error=t}return t}(),Vs=function(){function t(t,e,n,r){void 0===r&&(r=cs),this._file=t,this._getTagDefinition=e,this._tokenizeIcu=n,this._interpolationConfig=r,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=t.content,this._length=t.content.length,this._advance()}return t.prototype._processCarriageReturns=function(t){return t.replace(Ds,"\n")},t.prototype.tokenize=function(){for(;this._peek!==Pi;){var t=this._getLocation();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(t):this._attemptCharCode(Vi)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(Fi)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(t){if(!(t instanceof Ls))throw t;this.errors.push(t.error)}}return this._beginToken(ks.EOF),this._endToken([]),new js(Et(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(_t(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(bt(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(125===this._peek){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},t.prototype._getLocation=function(){return new ws(this._file,this._index,this._line,this._column)},t.prototype._getSpan=function(t,e){return void 0===t&&(t=this._getLocation()),void 0===e&&(e=this._getLocation()),new Es(t,e)},t.prototype._beginToken=function(t,e){void 0===e&&(e=this._getLocation()),this._currentTokenStart=e,this._currentTokenType=t},t.prototype._endToken=function(t,e){void 0===e&&(e=this._getLocation());var n=new Ns(this._currentTokenType,t,new Es(this._currentTokenStart,e));return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n},t.prototype._createError=function(t,e){this._isInExpansionForm()&&(t+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var n=new Is(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new Ls(n)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(ht(Pi),this._getSpan());this._peek===Oi?(this._line++,this._column=0):this._peek!==Oi&&this._peek!==ki&&this._column++,this._index++,this._peek=this._index>=this._length?Pi:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?Pi:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t&&(this._advance(),!0)},t.prototype._attemptCharCodeCaseInsensitive=function(t){return!!wt(this._peek,t)&&(this._advance(),!0)},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(ht(this._peek),this._getSpan(e,e))},t.prototype._attemptStr=function(t){var e=t.length;if(this._index+e>this._length)return!1;for(var n=this._savePosition(),r=0;r<e;r++)if(!this._attemptCharCode(t.charCodeAt(r)))return this._restorePosition(n),!1;return!0},t.prototype._attemptStrCaseInsensitive=function(t){for(var e=0;e<t.length;e++)if(!this._attemptCharCodeCaseInsensitive(t.charCodeAt(e)))return!1;return!0},t.prototype._requireStr=function(t){var e=this._getLocation();if(!this._attemptStr(t))throw this._createError(ht(this._peek),this._getSpan(e))},t.prototype._attemptCharCodeUntilFn=function(t){for(;!t(this._peek);)this._advance()},t.prototype._requireCharCodeUntilFn=function(t,e){var n=this._getLocation();if(this._attemptCharCodeUntilFn(t),this._index-n.offset<e)throw this._createError(ht(this._peek),this._getSpan(n,n))},t.prototype._attemptUntilChar=function(t){for(;this._peek!==t;)this._advance()},t.prototype._readChar=function(t){if(t&&38===this._peek)return this._decodeEntity();var e=this._index;return this._advance(),this._input[e]},t.prototype._decodeEntity=function(){var t=this._getLocation();if(this._advance(),!this._attemptCharCode(35)){var e=this._savePosition();if(this._attemptCharCodeUntilFn(gt),this._peek!=Ui)return this._restorePosition(e),"&";this._advance();var n=this._input.substring(t.offset+1,this._index-1),r=vo[n];if(!r)throw this._createError(ft(n),this._getSpan(t));return r}var o=this._attemptCharCode(120)||this._attemptCharCode(88),i=this._getLocation().offset;if(this._attemptCharCodeUntilFn(vt),this._peek!=Ui)throw this._createError(ht(this._peek),this._getSpan());this._advance();var s=this._input.substring(i,this._index-1);try{var a=parseInt(s,o?16:10);return String.fromCharCode(a)}catch(e){var u=this._input.substring(t.offset+1,this._index-1);throw this._createError(ft(u),this._getSpan(t))}},t.prototype._consumeRawText=function(t,e,n){var r,o=this._getLocation();this._beginToken(t?ks.ESCAPABLE_RAW_TEXT:ks.RAW_TEXT,o);for(var i=[];;){if(r=this._getLocation(),this._attemptCharCode(e)&&n())break;for(this._index>r.offset&&i.push(this._input.substring(r.offset,this._index));this._peek!==e;)i.push(this._readChar(t))}return this._endToken([this._processCarriageReturns(i.join(""))],r)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(ks.COMMENT_START,t),this._requireCharCode(Vi),this._endToken([]);var n=this._consumeRawText(!1,Vi,function(){return e._attemptStr("->")});this._beginToken(ks.COMMENT_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(ks.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,93,function(){return e._attemptStr("]>")});this._beginToken(ks.CDATA_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(ks.DOC_TYPE,t),this._attemptUntilChar(Hi),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t=this._index,e=null;58!==this._peek&&!yt(this._peek);)this._advance();var n;return 58===this._peek?(this._advance(),e=this._input.substring(t,this._index-1),n=this._index):n=t,this._requireCharCodeUntilFn(mt,this._index===n?1:0),[e,this._input.substring(n,this._index)]},t.prototype._consumeTagOpen=function(t){var e,n,r=this._savePosition();try{if(!H(this._peek))throw this._createError(ht(this._peek),this._getSpan());var o=this._index;for(this._consumeTagOpenStart(t),n=(e=this._input.substring(o,this._index)).toLowerCase(),this._attemptCharCodeUntilFn(dt);this._peek!==Fi&&this._peek!==Hi;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(dt),this._attemptCharCode(Bi)&&(this._attemptCharCodeUntilFn(dt),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(dt);this._consumeTagOpenEnd()}catch(e){if(e instanceof Ls)return this._restorePosition(r),this._beginToken(ks.TEXT,t),void this._endToken(["<"]);throw e}var i=this._getTagDefinition(e).contentType;i===yo.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):i===yo.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var n=this,r=this._consumeRawText(e,60,function(){return!!n._attemptCharCode(Fi)&&(n._attemptCharCodeUntilFn(dt),!!n._attemptStrCaseInsensitive(t)&&(n._attemptCharCodeUntilFn(dt),n._attemptCharCode(Hi)))});this._beginToken(ks.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(ks.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(ks.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){this._beginToken(ks.ATTR_VALUE);var t;if(this._peek===Di||this._peek===Ii){var e=this._peek;this._advance();for(var n=[];this._peek!==e;)n.push(this._readChar(!0));t=n.join(""),this._advance()}else{var r=this._index;this._requireCharCodeUntilFn(mt,1),t=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(Fi)?ks.TAG_OPEN_END_VOID:ks.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(Hi),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(ks.TAG_CLOSE,t),this._attemptCharCodeUntilFn(dt);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(dt),this._requireCharCode(Hi),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(ks.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(os),this._endToken([]),this._expansionCaseStack.push(ks.EXPANSION_FORM_START),this._beginToken(ks.RAW_TEXT,this._getLocation());var t=this._readUntil(44);this._endToken([t],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(dt),this._beginToken(ks.RAW_TEXT,this._getLocation());var e=this._readUntil(44);this._endToken([e],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(dt)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(ks.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(os).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(dt),this._beginToken(ks.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(os),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(dt),this._expansionCaseStack.push(ks.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(ks.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(125),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(dt),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(ks.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(ks.TEXT,t);var e=[];do{this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(e.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(e.push(this._interpolationConfig.end),this._inInterpolation=!1):e.push(this._readChar(!0))}while(!this._isTextEnd());this._endToken([this._processCarriageReturns(e.join(""))])},t.prototype._isTextEnd=function(){if(60===this._peek||this._peek===Pi)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(_t(this._input,this._index,this._interpolationConfig))return!0;if(125===this._peek&&this._isInExpansionCase())return!0}return!1},t.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},t.prototype._readUntil=function(t){var e=this._index;return this._attemptUntilChar(t),this._input.substring(e,this._index)},t.prototype._restorePosition=function(t){this._peek=t[0],this._index=t[1],this._column=t[2],this._line=t[3];var e=t[4];e<this.tokens.length&&(this.tokens=this.tokens.slice(0,e))},t.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===ks.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===ks.EXPANSION_FORM_START},t}(),Fs=function(t){function e(e,n,r){var o=t.call(this,n,r)||this;return o.elementName=e,o}return Jr(e,t),e.create=function(t,n,r){return new e(t,n,r)},e}(xs),Us=function(){function t(t,e){this.rootNodes=t,this.errors=e}return t}(),Bs=function(){function t(t){this.getTagDefinition=t}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=cs);var o=pt(t,e,this.getTagDefinition,n,r),i=new Hs(o.tokens,this.getTagDefinition).build();return new Us(i.rootNodes,o.errors.concat(i.errors))},t}(),Hs=function(){function t(t,e){this.tokens=t,this.getTagDefinition=e,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return t.prototype.build=function(){for(;this._peek.type!==ks.EOF;)this._peek.type===ks.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===ks.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===ks.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===ks.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===ks.TEXT||this._peek.type===ks.RAW_TEXT||this._peek.type===ks.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===ks.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new Us(this._rootNodes,this._errors)},t.prototype._advance=function(){var t=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],t},t.prototype._advanceIf=function(t){return this._peek.type===t?this._advance():null},t.prototype._consumeCdata=function(t){this._consumeText(this._advance()),this._advanceIf(ks.CDATA_END)},t.prototype._consumeComment=function(t){var e=this._advanceIf(ks.RAW_TEXT);this._advanceIf(ks.COMMENT_END);var n=null!=e?e.parts[0].trim():null;this._addToParent(new Rs(n,t.sourceSpan))},t.prototype._consumeExpansion=function(t){for(var e=this._advance(),n=this._advance(),r=[];this._peek.type===ks.EXPANSION_CASE_VALUE;){var o=this._parseExpansionCase();if(!o)return;r.push(o)}if(this._peek.type===ks.EXPANSION_FORM_END){var i=new Es(t.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new Ps(e.parts[0],n.parts[0],r,i,e.sourceSpan)),this._advance()}else this._errors.push(Fs.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."))},t.prototype._parseExpansionCase=function(){var e=this._advance();if(this._peek.type!==ks.EXPANSION_CASE_EXP_START)return this._errors.push(Fs.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var n=this._advance(),r=this._collectExpansionExpTokens(n);if(!r)return null;var o=this._advance();r.push(new Ns(ks.EOF,[],o.sourceSpan));var i=new t(r,this.getTagDefinition).build();if(i.errors.length>0)return this._errors=this._errors.concat(i.errors),null;var s=new Es(e.sourceSpan.start,o.sourceSpan.end),a=new Es(n.sourceSpan.start,o.sourceSpan.end);return new As(e.parts[0],i.rootNodes,s,e.sourceSpan,a)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],n=[ks.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==ks.EXPANSION_FORM_START&&this._peek.type!==ks.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===ks.EXPANSION_CASE_EXP_END){if(!St(n,ks.EXPANSION_CASE_EXP_START))return this._errors.push(Fs.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return e}if(this._peek.type===ks.EXPANSION_FORM_END){if(!St(n,ks.EXPANSION_FORM_START))return this._errors.push(Fs.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===ks.EOF)return this._errors.push(Fs.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;e.push(this._advance())}},t.prototype._consumeText=function(t){var e=t.parts[0];if(e.length>0&&"\n"==e[0]){var n=this._getParentElement();null!=n&&0==n.children.length&&this.getTagDefinition(n.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new Ts(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){if(this._elementStack.length>0){var t=this._elementStack[this._elementStack.length-1];this.getTagDefinition(t.name).isVoid&&this._elementStack.pop()}},t.prototype._consumeStartTag=function(t){for(var e=t.parts[0],n=t.parts[1],r=[];this._peek.type===ks.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var o=this._getElementFullName(e,n,this._getParentElement()),i=!1;if(this._peek.type===ks.TAG_OPEN_END_VOID){this._advance(),i=!0;var s=this.getTagDefinition(o);s.canSelfClose||null!==a(o)||s.isVoid||this._errors.push(Fs.create(o,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===ks.TAG_OPEN_END&&(this._advance(),i=!1);var u=this._peek.sourceSpan.start,c=new Es(t.sourceSpan.start,u),l=new Ms(o,r,[],c,c,void 0);this._pushElement(l),i&&(this._popElement(o),l.endSourceSpan=c)},t.prototype._pushElement=function(t){if(this._elementStack.length>0){var e=this._elementStack[this._elementStack.length-1];this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop()}var n=this.getTagDefinition(t.name),r=this._getParentElementSkippingContainers(),o=r.parent,i=r.container;if(o&&n.requireExtraParent(o.name)){var s=new Ms(n.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(o,i,s)}this._addToParent(t),this._elementStack.push(t)},t.prototype._consumeEndTag=function(t){var e=this._getElementFullName(t.parts[0],t.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=t.sourceSpan),this.getTagDefinition(e).isVoid)this._errors.push(Fs.create(e,t.sourceSpan,'Void elements do not have end tags "'+t.parts[1]+'"'));else if(!this._popElement(e)){var n='Unexpected closing tag "'+e+'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags';this._errors.push(Fs.create(e,t.sourceSpan,n))}},t.prototype._popElement=function(t){for(var e=this._elementStack.length-1;e>=0;e--){var n=this._elementStack[e];if(n.name==t)return this._elementStack.splice(e,this._elementStack.length-e),!0;if(!this.getTagDefinition(n.name).closedByParent)return!1}return!1},t.prototype._consumeAttr=function(t){var e=u(t.parts[0],t.parts[1]),n=t.sourceSpan.end,r="",o=void 0;if(this._peek.type===ks.ATTR_VALUE){var i=this._advance();r=i.parts[0],n=i.sourceSpan.end,o=i.sourceSpan}return new Os(e,r,new Es(t.sourceSpan.start,n),o)},t.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},t.prototype._getParentElementSkippingContainers=function(){for(var t=null,e=this._elementStack.length-1;e>=0;e--){if(!o(this._elementStack[e].name))return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:this._elementStack[this._elementStack.length-1],container:t}},t.prototype._addToParent=function(t){var e=this._getParentElement();null!=e?e.children.push(t):this._rootNodes.push(t)},t.prototype._insertBeforeContainer=function(t,e,n){if(e){if(t){var r=t.children.indexOf(e);t.children[r]=n}else this._rootNodes.push(n);n.children.push(e),this._elementStack.splice(this._elementStack.indexOf(e),0,n)}else this._addToParent(n),this._elementStack.push(n)},t.prototype._getElementFullName=function(t,e,n){return null==t&&null==(t=this.getTagDefinition(e).implicitNamespacePrefix)&&null!=n&&(t=a(n.name)),u(t,e)},t}(),qs=function(){function t(t,e,n,r,o,i){this.nodes=t,this.placeholders=e,this.placeholderToMessage=n,this.meaning=r,this.description=o,this.id=i,t.length?this.sources=[{filePath:t[0].sourceSpan.start.file.url,startLine:t[0].sourceSpan.start.line+1,startCol:t[0].sourceSpan.start.col+1,endLine:t[t.length-1].sourceSpan.end.line+1,endCol:t[0].sourceSpan.start.col+1}]:this.sources=[]}return t}(),zs=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Gs=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),Ws=function(){function t(t,e,n,r){this.expression=t,this.type=e,this.cases=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitIcu(this,e)},t}(),$s=function(){function t(t,e,n,r,o,i,s){this.tag=t,this.attrs=e,this.startName=n,this.closeName=r,this.children=o,this.isVoid=i,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),Ks=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitPlaceholder(this,e)},t}(),Qs=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitIcuPlaceholder(this,e)},t}(),Js=function(){function t(){}return t.prototype.visitText=function(t,e){return new zs(t.value,t.sourceSpan)},t.prototype.visitContainer=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new Gs(r,t.sourceSpan)},t.prototype.visitIcu=function(t,e){var n=this,r={};Object.keys(t.cases).forEach(function(o){return r[o]=t.cases[o].visit(n,e)});var o=new Ws(t.expression,t.type,r,t.sourceSpan);return o.expressionPlaceholder=t.expressionPlaceholder,o},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new $s(t.tag,t.attrs,t.startName,t.closeName,r,t.isVoid,t.sourceSpan)},t.prototype.visitPlaceholder=function(t,e){return new Ks(t.value,t.name,t.sourceSpan)},t.prototype.visitIcuPlaceholder=function(t,e){return new Qs(t.value,t.name,t.sourceSpan)},t}(),Xs=function(){function t(){}return t.prototype.visitText=function(t,e){},t.prototype.visitContainer=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitIcu=function(t,e){var n=this;Object.keys(t.cases).forEach(function(e){t.cases[e].visit(n)})},t.prototype.visitTagPlaceholder=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitPlaceholder=function(t,e){},t.prototype.visitIcuPlaceholder=function(t,e){},t}(),Ys={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},Zs=function(){function t(){this._placeHolderNameCounts={},this._signatureToName={}}return t.prototype.getStartTagPlaceholderName=function(t,e,n){var r=this._hashTag(t,e,n);if(this._signatureToName[r])return this._signatureToName[r];var o=t.toUpperCase(),i=Ys[o]||"TAG_"+o,s=this._generateUniqueName(n?i:"START_"+i);return this._signatureToName[r]=s,s},t.prototype.getCloseTagPlaceholderName=function(t){var e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];var n=t.toUpperCase(),r=Ys[n]||"TAG_"+n,o=this._generateUniqueName("CLOSE_"+r);return this._signatureToName[e]=o,o},t.prototype.getPlaceholderName=function(t,e){var n=t.toUpperCase(),r="PH: "+n+"="+e;if(this._signatureToName[r])return this._signatureToName[r];var o=this._generateUniqueName(n);return this._signatureToName[r]=o,o},t.prototype.getUniquePlaceholder=function(t){return this._generateUniqueName(t.toUpperCase())},t.prototype._hashTag=function(t,e,n){return"<"+t+Object.keys(e).sort().map(function(t){return" "+t+"="+e[t]}).join("")+(n?"/>":"></"+t+">")},t.prototype._hashClosingTag=function(t){return this._hashTag("/"+t,{},!1)},t.prototype._generateUniqueName=function(t){if(!this._placeHolderNameCounts.hasOwnProperty(t))return this._placeHolderNameCounts[t]=1,t;var e=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=e+1,t+"_"+e},t}(),ta=new gs(new hs),ea=function(){function t(t,e){this._expressionParser=t,this._interpolationConfig=e}return t.prototype.toI18nMessage=function(t,e,n,r){this._isIcu=1==t.length&&t[0]instanceof Ps,this._icuDepth=0,this._placeholderRegistry=new Zs,this._placeholderToContent={},this._placeholderToMessage={};var o=lt(this,t,{});return new qs(o,this._placeholderToContent,this._placeholderToMessage,e,n,r)},t.prototype.visitElement=function(t,e){var n=lt(this,t.children),r={};t.attrs.forEach(function(t){r[t.name]=t.value});var o=c(t.name).isVoid,i=this._placeholderRegistry.getStartTagPlaceholderName(t.name,r,o);this._placeholderToContent[i]=t.sourceSpan.toString();var s="";return o||(s=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[s]="</"+t.name+">"),new $s(t.name,r,i,s,n,o,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitExpansion=function(e,n){var r=this;this._icuDepth++;var o={},i=new Ws(e.switchValue,e.type,o,e.sourceSpan);if(e.cases.forEach(function(t){o[t.value]=new Gs(t.expression.map(function(t){return t.visit(r,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var s=this._placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return i.expressionPlaceholder=s,this._placeholderToContent[s]=e.switchValue,i}var a=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),u=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[a]=u.toI18nMessage([e],"","",""),new Qs(i,a,e.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Unreachable code")},t.prototype._visitTextWithInterpolation=function(t,e){var n=this._expressionParser.splitInterpolation(t,e.start.toString(),this._interpolationConfig);if(!n)return new zs(t,e);for(var r=[],o=new Gs(r,e),i=this._interpolationConfig,s=i.start,a=i.end,u=0;u<n.strings.length-1;u++){var c=n.expressions[u],l=Tt(c)||"INTERPOLATION",p=this._placeholderRegistry.getPlaceholderName(l,c);n.strings[u].length&&r.push(new zs(n.strings[u],e)),r.push(new Ks(c,p,e)),this._placeholderToContent[p]=s+c+a}var h=n.strings.length-1;return n.strings[h].length&&r.push(new zs(n.strings[h],e)),o},t}(),na=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g,ra=function(t){function e(e,n){return t.call(this,e,n)||this}return Jr(e,t),e}(xs),oa="i18n",ia=/^i18n:?/,sa="|",aa="@@",ua=function(){function t(t,e){this.messages=t,this.errors=e}return t}(),ca={};ca.Extract=0,ca.Merge=1,ca[ca.Extract]="Extract",ca[ca.Merge]="Merge";var la=function(){function t(t,e){this._implicitTags=t,this._implicitAttrs=e}return t.prototype.extract=function(t,e){var n=this;return this._init(ca.Extract,e),t.forEach(function(t){return t.visit(n,null)}),this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new ua(this._messages,this._errors)},t.prototype.merge=function(t,e,n){this._init(ca.Merge,n),this._translations=e;var r=new Ms("wrapper",[],t,void 0,void 0,void 0).visit(this,null);return this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Us(r.children,this._errors)},t.prototype.visitExpansionCase=function(t,e){var n=lt(this,t.expression,e);if(this._mode===ca.Merge)return new As(t.value,n,t.sourceSpan,t.valueSourceSpan,t.expSourceSpan)},t.prototype.visitExpansion=function(t,e){this._mayBeAddBlockChildren(t);var n=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([t]),this._inIcu=!0);var r=lt(this,t.cases,e);return this._mode===ca.Merge&&(t=new Ps(t.switchValue,t.type,r,t.sourceSpan,t.switchValueSourceSpan)),this._inIcu=n,t},t.prototype.visitComment=function(t,e){var n=Ot(t);if(n&&this._isInTranslatableSection)this._reportError(t,"Could not start a block inside a translatable section");else{var r=Mt(t);if(!r||this._inI18nBlock){if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(r){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(t,this._blockChildren),this._inI18nBlock=!1;var o=this._addMessage(this._blockChildren,this._blockMeaningAndDesc);return lt(this,this._translateMessage(t,o))}return void this._reportError(t,"I18N blocks should not cross element boundaries")}}else n&&(this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(ia,"").trim(),this._openTranslatableSection(t))}else this._reportError(t,"Trying to close an unopened block")}},t.prototype.visitText=function(t,e){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(t),t},t.prototype.visitElement=function(t,e){var n=this;this._mayBeAddBlockChildren(t),this._depth++;var r=this._inI18nNode,o=this._inImplicitNode,i=[],s=void 0,a=Rt(t),u=a?a.value:"",c=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,l=!o&&c;if(this._inImplicitNode=o||c,this._isInTranslatableSection||this._inIcu)(a||l)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==ca.Extract&&lt(this,t.children);else{if(a||l){this._inI18nNode=!0;var p=this._addMessage(t.children,u);s=this._translateMessage(t,p)}if(this._mode==ca.Extract){var h=a||l;h&&this._openTranslatableSection(t),lt(this,t.children),h&&this._closeTranslatableSection(t,t.children)}}if(this._mode===ca.Merge&&(s||t.children).forEach(function(t){var r=t.visit(n,e);r&&!n._isInTranslatableSection&&(i=i.concat(r))}),this._visitAttributesOf(t),this._depth--,this._inI18nNode=r,this._inImplicitNode=o,this._mode===ca.Merge){var f=this._translateAttributes(t);return new Ms(t.name,f,i,t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}return null},t.prototype.visitAttribute=function(t,e){throw new Error("unreachable code")},t.prototype._init=function(t,e){this._mode=t,this._inI18nBlock=!1,this._inI18nNode=!1,this._depth=0,this._inIcu=!1,this._msgCountAtSectionStart=void 0,this._errors=[],this._messages=[],this._inImplicitNode=!1,this._createI18nMessage=xt(e)},t.prototype._visitAttributesOf=function(t){var e=this,n={},r=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith("i18n-")}).forEach(function(t){return n[t.name.slice("i18n-".length)]=t.value}),t.attrs.forEach(function(t){t.name in n?e._addMessage([t],n[t.name]):r.some(function(e){return t.name===e})&&e._addMessage([t])})},t.prototype._addMessage=function(t,e){if(0==t.length||1==t.length&&t[0]instanceof Os&&!t[0].value)return null;var n=kt(e),r=n.meaning,o=n.description,i=n.id,s=this._createI18nMessage(t,r,o,i);return this._messages.push(s),s},t.prototype._translateMessage=function(t,e){if(e&&this._mode===ca.Merge){var n=this._translations.get(e);if(n)return n;this._reportError(t,'Translation unavailable for message id="'+this._translations.digest(e)+'"')}return[]},t.prototype._translateAttributes=function(t){var e=this,n=t.attrs,r={};n.forEach(function(t){t.name.startsWith("i18n-")&&(r[t.name.slice("i18n-".length)]=kt(t.value))});var o=[];return n.forEach(function(n){if(n.name!==oa&&!n.name.startsWith("i18n-"))if(n.value&&""!=n.value&&r.hasOwnProperty(n.name)){var i=r[n.name],s=i.meaning,a=i.description,u=i.id,c=e._createI18nMessage([n],s,a,u),l=e._translations.get(c);if(l)if(0==l.length)o.push(new Os(n.name,"",n.sourceSpan));else if(l[0]instanceof Ts){var p=l[0].value;o.push(new Os(n.name,p,n.sourceSpan))}else e._reportError(t,'Unexpected translation for attribute "'+n.name+'" (id="'+(u||e._translations.digest(c))+'")');else e._reportError(t,'Translation unavailable for attribute "'+n.name+'" (id="'+(u||e._translations.digest(c))+'")')}else o.push(n)}),o},t.prototype._mayBeAddBlockChildren=function(t){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(t)},t.prototype._openTranslatableSection=function(t){this._isInTranslatableSection?this._reportError(t,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(t.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),t.prototype._closeTranslatableSection=function(t,e){if(this._isInTranslatableSection){var n=this._msgCountAtSectionStart;if(1==e.reduce(function(t,e){return t+(e instanceof Rs?0:1)},0))for(var r=this._messages.length-1;r>=n;r--){var o=this._messages[r].nodes;if(!(1==o.length&&o[0]instanceof zs)){this._messages.splice(r,1);break}}this._msgCountAtSectionStart=void 0}else this._reportError(t,"Unexpected section end")},t.prototype._reportError=function(t,e){this._errors.push(new ra(t.sourceSpan,e))},t}(),pa=new(function(){function t(){this.closedByParent=!1,this.contentType=yo.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return t.prototype.requireExtraParent=function(t){return!1},t.prototype.isClosedByChild=function(t){return!1},t}()),ha=function(t){function e(){return t.call(this,Nt)||this}return Jr(e,t),e.prototype.parse=function(e,n,r){return void 0===r&&(r=!1),t.prototype.parse.call(this,e,n,r)},e}(Bs),fa=function(){function t(){}return t.prototype.visitText=function(t,e){return t.value},t.prototype.visitContainer=function(t,e){var n=this;return"["+t.children.map(function(t){return t.visit(n)}).join(", ")+"]"},t.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+t.expression+", "+t.type+", "+r.join(", ")+"}"},t.prototype.visitTagPlaceholder=function(t,e){var n=this;return t.isVoid?'<ph tag name="'+t.startName+'"/>':'<ph tag name="'+t.startName+'">'+t.children.map(function(t){return t.visit(n)}).join(", ")+'</ph name="'+t.closeName+'">'},t.prototype.visitPlaceholder=function(t,e){return t.value?'<ph name="'+t.name+'">'+t.value+"</ph>":'<ph name="'+t.name+'"/>'},t.prototype.visitIcuPlaceholder=function(t,e){return'<ph icu name="'+t.name+'">'+t.value.visit(this)+"</ph>"},t}(),da=new fa,ma=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Jr(e,t),e.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+t.type+", "+r.join(", ")+"}"},e}(fa),ya={};ya.Little=0,ya.Big=1,ya[ya.Little]="Little",ya[ya.Big]="Big";var va=function(){function t(){}return t.prototype.write=function(t,e){},t.prototype.load=function(t,e){},t.prototype.digest=function(t){},t.prototype.createNameMapper=function(t){return null},t}(),ga=function(t){function e(e,n){var r=t.call(this)||this;return r.mapName=n,r.internalToPublic={},r.publicToNextId={},r.publicToInternal={},e.nodes.forEach(function(t){return t.visit(r)}),r}return Jr(e,t),e.prototype.toPublicName=function(t){return this.internalToPublic.hasOwnProperty(t)?this.internalToPublic[t]:null},e.prototype.toInternalName=function(t){return this.publicToInternal.hasOwnProperty(t)?this.publicToInternal[t]:null},e.prototype.visitText=function(t,e){return null},e.prototype.visitTagPlaceholder=function(e,n){this.visitPlaceholderName(e.startName),t.prototype.visitTagPlaceholder.call(this,e,n),this.visitPlaceholderName(e.closeName)},e.prototype.visitPlaceholder=function(t,e){this.visitPlaceholderName(t.name)},e.prototype.visitIcuPlaceholder=function(t,e){this.visitPlaceholderName(t.name)},e.prototype.visitPlaceholderName=function(t){if(t&&!this.internalToPublic.hasOwnProperty(t)){var e=this.mapName(t);if(this.publicToInternal.hasOwnProperty(e)){var n=this.publicToNextId[e];this.publicToNextId[e]=n+1,e=e+"_"+n}else this.publicToNextId[e]=1;this.internalToPublic[t]=e,this.publicToInternal[e]=t}},e}(Xs),_a=new(function(){function t(){}return t.prototype.visitTag=function(t){var e=this,n=this._serializeAttributes(t.attrs);if(0==t.children.length)return"<"+t.name+n+"/>";var r=t.children.map(function(t){return t.visit(e)});return"<"+t.name+n+">"+r.join("")+"</"+t.name+">"},t.prototype.visitText=function(t){return t.value},t.prototype.visitDeclaration=function(t){return"<?xml"+this._serializeAttributes(t.attrs)+" ?>"},t.prototype._serializeAttributes=function(t){var e=Object.keys(t).map(function(e){return e+'="'+t[e]+'"'}).join(" ");return e.length>0?" "+e:""},t.prototype.visitDoctype=function(t){return"<!DOCTYPE "+t.rootTag+" [\n"+t.dtd+"\n]>"},t}()),ba=function(){function t(t){var e=this;this.attrs={},Object.keys(t).forEach(function(n){e.attrs[n]=ie(t[n])})}return t.prototype.visit=function(t){return t.visitDeclaration(this)},t}(),wa=function(){function t(t,e){this.rootTag=t,this.dtd=e}return t.prototype.visit=function(t){return t.visitDoctype(this)},t}(),Ca=function(){function t(t,e,n){void 0===e&&(e={}),void 0===n&&(n=[]);var r=this;this.name=t,this.children=n,this.attrs={},Object.keys(e).forEach(function(t){r.attrs[t]=ie(e[t])})}return t.prototype.visit=function(t){return t.visitTag(this)},t}(),Ea=function(){function t(t){this.value=ie(t)}return t.prototype.visit=function(t){return t.visitText(this)},t}(),Sa=function(t){function e(e){return void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))||this}return Jr(e,t),e}(Ea),xa=[[/&/g,"&amp;"],[/"/g,"&quot;"],[/'/g,"&apos;"],[/</g,"&lt;"],[/>/g,"&gt;"]],Ta=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Jr(e,t),e.prototype.write=function(t,e){var n=new Pa,r=[];t.forEach(function(t){var e=[];t.sources.forEach(function(t){var n=new Ca("context-group",{purpose:"location"});n.children.push(new Sa(10),new Ca("context",{"context-type":"sourcefile"},[new Ea(t.filePath)]),new Sa(10),new Ca("context",{"context-type":"linenumber"},[new Ea(""+t.startLine)]),new Sa(8)),e.push(new Sa(8),n)});var o=new Ca("trans-unit",{id:t.id,datatype:"html"});(i=o.children).push.apply(i,[new Sa(8),new Ca("source",{},n.serialize(t.nodes)),new Sa(8),new Ca("target")].concat(e)),t.description&&o.children.push(new Sa(8),new Ca("note",{priority:"1",from:"description"},[new Ea(t.description)])),t.meaning&&o.children.push(new Sa(8),new Ca("note",{priority:"1",from:"meaning"},[new Ea(t.meaning)])),o.children.push(new Sa(6)),r.push(new Sa(6),o);var i});var o=new Ca("body",{},r.concat([new Sa(4)])),i=new Ca("file",{"source-language":e||"en",datatype:"plaintext",original:"ng2.template"},[new Sa(4),o,new Sa(2)]),s=new Ca("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new Sa(2),i,new Sa]);return oe([new ba({version:"1.0",encoding:"UTF-8"}),new Sa,s,new Sa])},e.prototype.load=function(t,e){var n=(new Aa).parse(t,e),r=n.locale,o=n.msgIdToHtml,i=n.errors,s={},a=new Oa;if(Object.keys(o).forEach(function(t){var n=a.convert(o[t],e),r=n.i18nNodes,u=n.errors;i.push.apply(i,u),s[t]=r}),i.length)throw new Error("xliff parse errors:\n"+i.join("\n"));return{locale:r,i18nNodesByMsgId:s}},e.prototype.digest=function(t){return It(t)},e}(va),Pa=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Ea(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new Ea("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new Ea(e+" {")].concat(t.cases[e].visit(n),[new Ea("} ")]))}),r.push(new Ea("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=se(t.tag),r=new Ca("x",{id:t.startName,ctype:n});if(t.isVoid)return[r];var o=new Ca("x",{id:t.closeName,ctype:n});return[r].concat(this.serialize(t.children),[o])},t.prototype.visitPlaceholder=function(t,e){return[new Ca("x",{id:t.name})]},t.prototype.visitIcuPlaceholder=function(t,e){return[new Ca("x",{id:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Aa=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new ha).parse(t,e,!1);return this._errors=n.errors,lt(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"trans-unit":this._unitMlString=null;var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(lt(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,'<trans-unit> misses the "id" attribute');break;case"source":break;case"target":var o=t.startSourceSpan.end.offset,i=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content.slice(o,i);this._unitMlString=s;break;case"file":var a=t.attrs.find(function(t){return"target-language"===t.name});a&&(this._locale=a.value),lt(this,t.children,null);break;default:lt(this,t.children,null)}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new ra(t.sourceSpan,e))},t}(),Oa=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new ha).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:lt(this,n.rootNodes),errors:this._errors}},t.prototype.visitText=function(t,e){return new zs(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){if("x"===t.name){var n=t.attrs.find(function(t){return"id"===t.name});if(n)return new Ks("",n.value,t.sourceSpan);this._addError(t,'<x> misses the "id" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitExpansion=function(t,e){var n={};return lt(this,t.cases).forEach(function(e){n[e.value]=new Gs(e.nodes,t.sourceSpan)}),new Ws(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:lt(this,t.expression)}},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new ra(t.sourceSpan,e))},t}(),Ma=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Jr(e,t),e.prototype.write=function(t,e){var n=new Ra,r=[];t.forEach(function(t){var e=new Ca("unit",{id:t.id});if(t.description||t.meaning){var o=new Ca("notes");t.description&&o.children.push(new Sa(8),new Ca("note",{category:"description"},[new Ea(t.description)])),t.meaning&&o.children.push(new Sa(8),new Ca("note",{category:"meaning"},[new Ea(t.meaning)])),o.children.push(new Sa(6)),e.children.push(new Sa(6),o)}var i=new Ca("segment");i.children.push(new Sa(8),new Ca("source",{},n.serialize(t.nodes)),new Sa(6)),e.children.push(new Sa(6),i,new Sa(4)),r.push(new Sa(4),e)});var o=new Ca("file",{original:"ng.template",id:"ngi18n"},r.concat([new Sa(2)])),i=new Ca("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:e||"en"},[new Sa(2),o,new Sa]);return oe([new ba({version:"1.0",encoding:"UTF-8"}),new Sa,i,new Sa])},e.prototype.load=function(t,e){var n=(new ka).parse(t,e),r=n.locale,o=n.msgIdToHtml,i=n.errors,s={},a=new Na;if(Object.keys(o).forEach(function(t){var n=a.convert(o[t],e),r=n.i18nNodes,u=n.errors;i.push.apply(i,u),s[t]=r}),i.length)throw new Error("xliff2 parse errors:\n"+i.join("\n"));return{locale:r,i18nNodesByMsgId:s}},e.prototype.digest=function(t){return jt(t)},e}(va),Ra=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Ea(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new Ea("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new Ea(e+" {")].concat(t.cases[e].visit(n),[new Ea("} ")]))}),r.push(new Ea("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=ae(t.tag);if(t.isVoid)return[new Ca("ph",{id:(this._nextPlaceholderId++).toString(),equiv:t.startName,type:r,disp:"<"+t.tag+"/>"})];var o=new Ca("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:t.startName,equivEnd:t.closeName,type:r,dispStart:"<"+t.tag+">",dispEnd:"</"+t.tag+">"}),i=[].concat.apply([],t.children.map(function(t){return t.visit(n)}));return i.length?i.forEach(function(t){return o.children.push(t)}):o.children.push(new Ea("")),[o]},t.prototype.visitPlaceholder=function(t,e){return[new Ca("ph",{id:(this._nextPlaceholderId++).toString(),equiv:t.name,disp:"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(t,e){return[new Ca("ph",{id:(this._nextPlaceholderId++).toString()})]},t.prototype.serialize=function(t){var e=this;return this._nextPlaceholderId=0,[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),ka=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new ha).parse(t,e,!1);return this._errors=n.errors,lt(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"unit":this._unitMlString=null;var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(lt(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,'<unit> misses the "id" attribute');break;case"source":break;case"target":var o=t.startSourceSpan.end.offset,i=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content.slice(o,i);this._unitMlString=s;break;case"xliff":var a=t.attrs.find(function(t){return"trgLang"===t.name});a&&(this._locale=a.value);var u=t.attrs.find(function(t){return"version"===t.name});if(u){var c=u.value;"2.0"!==c?this._addError(t,"The XLIFF file version "+c+" is not compatible with XLIFF 2.0 serializer"):lt(this,t.children,null)}break;default:lt(this,t.children,null)}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new ra(t.sourceSpan,e))},t}(),Na=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new ha).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],lt(this,n.rootNodes)),errors:this._errors}},t.prototype.visitText=function(t,e){return new zs(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){var n=this;switch(t.name){case"ph":var r=t.attrs.find(function(t){return"equiv"===t.name});if(r)return[new Ks("",r.value,t.sourceSpan)];this._addError(t,'<ph> misses the "equiv" attribute');break;case"pc":var o=t.attrs.find(function(t){return"equivStart"===t.name}),i=t.attrs.find(function(t){return"equivEnd"===t.name});if(o){if(i){var s=o.value,a=i.value,u=[];return u.concat.apply(u,[new Ks("",s,t.sourceSpan)].concat(t.children.map(function(t){return t.visit(n,null)}),[new Ks("",a,t.sourceSpan)]))}this._addError(t,'<ph> misses the "equivEnd" attribute')}else this._addError(t,'<ph> misses the "equivStart" attribute');break;default:this._addError(t,"Unexpected tag")}return null},t.prototype.visitExpansion=function(t,e){var n={};return lt(this,t.cases).forEach(function(e){n[e.value]=new Gs(e.nodes,t.sourceSpan)}),new Ws(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:[].concat.apply([],lt(this,t.expression))}},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new ra(t.sourceSpan,e))},t}(),Ia=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Jr(e,t),e.prototype.write=function(t,e){var n=new Da,r=new ja,o=new Ca("messagebundle");return t.forEach(function(t){var e={id:t.id};t.description&&(e.desc=t.description),t.meaning&&(e.meaning=t.meaning);var n=[];t.sources.forEach(function(t){n.push(new Ca("source",{},[new Ea(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),o.children.push(new Sa(2),new Ca("msg",e,n.concat(r.serialize(t.nodes))))}),o.children.push(new Sa),oe([new ba({version:"1.0",encoding:"UTF-8"}),new Sa,new wa("messagebundle",'<!ELEMENT messagebundle (msg)*>\n<!ATTLIST messagebundle class CDATA #IMPLIED>\n\n<!ELEMENT msg (#PCDATA|ph|source)*>\n<!ATTLIST msg id CDATA #IMPLIED>\n<!ATTLIST msg seq CDATA #IMPLIED>\n<!ATTLIST msg name CDATA #IMPLIED>\n<!ATTLIST msg desc CDATA #IMPLIED>\n<!ATTLIST msg meaning CDATA #IMPLIED>\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\n<!ATTLIST msg xml:space (default|preserve) "default">\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\n\n<!ELEMENT source (#PCDATA)>\n\n<!ELEMENT ph (#PCDATA|ex)*>\n<!ATTLIST ph name CDATA #REQUIRED>\n\n<!ELEMENT ex (#PCDATA)>'),new Sa,n.addDefaultExamples(o),new Sa])},e.prototype.load=function(t,e){throw new Error("Unsupported")},e.prototype.digest=function(t){return ue(t)},e.prototype.createNameMapper=function(t){return new ga(t,ce)},e}(va),ja=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Ea(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new Ea("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new Ea(e+" {")].concat(t.cases[e].visit(n),[new Ea("} ")]))}),r.push(new Ea("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=new Ca("ex",{},[new Ea("<"+t.tag+">")]),r=new Ca("ph",{name:t.startName},[n]);if(t.isVoid)return[r];var o=new Ca("ex",{},[new Ea("</"+t.tag+">")]),i=new Ca("ph",{name:t.closeName},[o]);return[r].concat(this.serialize(t.children),[i])},t.prototype.visitPlaceholder=function(t,e){return[new Ca("ph",{name:t.name})]},t.prototype.visitIcuPlaceholder=function(t,e){return[new Ca("ph",{name:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Da=function(){function t(){}return t.prototype.addDefaultExamples=function(t){return t.visit(this),t},t.prototype.visitTag=function(t){var e=this;if("ph"===t.name){if(!t.children||0==t.children.length){var n=new Ea(t.attrs.name||"...");t.children=[new Ca("ex",{},[n])]}}else t.children&&t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitText=function(t){},t.prototype.visitDeclaration=function(t){},t.prototype.visitDoctype=function(t){},t}(),La=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Jr(e,t),e.prototype.write=function(t,e){throw new Error("Unsupported")},e.prototype.load=function(t,e){var n=(new Va).parse(t,e),r=n.locale,o=n.msgIdToHtml,i=n.errors,s={},a=new Fa;if(Object.keys(o).forEach(function(t){le(s,t,function(){var n=a.convert(o[t],e),r=n.i18nNodes,i=n.errors;if(i.length)throw new Error("xtb parse errors:\n"+i.join("\n"));return r})}),i.length)throw new Error("xtb parse errors:\n"+i.join("\n"));return{locale:r,i18nNodesByMsgId:s}},e.prototype.digest=function(t){return ue(t)},e.prototype.createNameMapper=function(t){return new ga(t,ce)},e}(va),Va=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._bundleDepth=0,this._msgIdToHtml={};var n=(new ha).parse(t,e,!1);return this._errors=n.errors,lt(this,n.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"translationbundle":++this._bundleDepth>1&&this._addError(t,"<translationbundle> elements can not be nested");var n=t.attrs.find(function(t){return"lang"===t.name});n&&(this._locale=n.value),lt(this,t.children,null),this._bundleDepth--;break;case"translation":var r=t.attrs.find(function(t){return"id"===t.name});if(r){var o=r.value;if(this._msgIdToHtml.hasOwnProperty(o))this._addError(t,"Duplicated translations for msg "+o);else{var i=t.startSourceSpan.end.offset,s=t.endSourceSpan.start.offset,a=t.startSourceSpan.start.file.content.slice(i,s);this._msgIdToHtml[o]=a}}else this._addError(t,'<translation> misses the "id" attribute');break;default:this._addError(t,"Unexpected tag")}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new ra(t.sourceSpan,e))},t}(),Fa=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new ha).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:lt(this,n.rootNodes),errors:this._errors}},t.prototype.visitText=function(t,e){return new zs(t.value,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){var n={};return lt(this,t.cases).forEach(function(e){n[e.value]=new Gs(e.nodes,t.sourceSpan)}),new Ws(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:lt(this,t.expression)}},t.prototype.visitElement=function(t,e){if("ph"===t.name){var n=t.attrs.find(function(t){return"name"===t.name});if(n)return new Ks("",n.value,t.sourceSpan);this._addError(t,'<ph> misses the "name" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new ra(t.sourceSpan,e))},t}(),Ua=function(t){function e(){return t.call(this,c)||this}return Jr(e,t),e.prototype.parse=function(e,n,r,o){return void 0===r&&(r=!1),void 0===o&&(o=cs),t.prototype.parse.call(this,e,n,r,o)},e}(Bs);Ua.decorators=[{type:z}],Ua.ctorParameters=function(){return[]};var Ba=function(){function t(t,n,r,o,i,s){void 0===t&&(t={}),void 0===i&&(i=e.MissingTranslationStrategy.Warning),this._i18nNodesByMsgId=t,this.digest=r,this.mapperFactory=o,this._i18nToHtml=new Ha(t,n,r,o,i,s)}return t.load=function(e,n,r,o,i){var s=r.load(e,n),a=s.locale;return new t(s.i18nNodesByMsgId,a,function(t){return r.digest(t)},function(t){return r.createNameMapper(t)},o,i)},t.prototype.get=function(t){var e=this._i18nToHtml.convert(t);if(e.errors.length)throw new Error(e.errors.join("\n"));return e.nodes},t.prototype.has=function(t){return this.digest(t)in this._i18nNodesByMsgId},t}(),Ha=function(){function t(t,e,n,r,o,i){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this._locale=e,this._digest=n,this._mapperFactory=r,this._missingTranslationStrategy=o,this._console=i,this._contextStack=[],this._errors=[]}return t.prototype.convert=function(t){this._contextStack.length=0,this._errors.length=0;var e=this._convertToText(t),n=t.nodes[0].sourceSpan.start.file.url,r=(new Ua).parse(e,n,!0);return{nodes:r.rootNodes,errors:this._errors.concat(r.errors)}},t.prototype.visitText=function(t,e){return t.value},t.prototype.visitContainer=function(t,e){var n=this;return t.children.map(function(t){return t.visit(n)}).join("")},t.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+(this._srcMsg.placeholders.hasOwnProperty(t.expression)?this._srcMsg.placeholders[t.expression]:t.expression)+", "+t.type+", "+r.join(" ")+"}"},t.prototype.visitPlaceholder=function(t,e){var n=this._mapper(t.name);return this._srcMsg.placeholders.hasOwnProperty(n)?this._srcMsg.placeholders[n]:this._srcMsg.placeholderToMessage.hasOwnProperty(n)?this._convertToText(this._srcMsg.placeholderToMessage[n]):(this._addError(t,'Unknown placeholder "'+t.name+'"'),"")},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=""+t.tag,o=Object.keys(t.attrs).map(function(e){return e+'="'+t.attrs[e]+'"'}).join(" ");return t.isVoid?"<"+r+" "+o+"/>":"<"+r+" "+o+">"+t.children.map(function(t){return t.visit(n)}).join("")+"</"+r+">"},t.prototype.visitIcuPlaceholder=function(t,e){return this._convertToText(this._srcMsg.placeholderToMessage[t.name])},t.prototype._convertToText=function(t){var n,r=this,o=this._digest(t),i=this._mapperFactory?this._mapperFactory(t):null;if(this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=t,this._i18nNodesByMsgId.hasOwnProperty(o))n=this._i18nNodesByMsgId[o],this._mapper=function(t){return i?i.toInternalName(t):t};else{if(this._missingTranslationStrategy===e.MissingTranslationStrategy.Error){s=this._locale?' for locale "'+this._locale+'"':"";this._addError(t.nodes[0],'Missing translation for message "'+o+'"'+s)}else if(this._console&&this._missingTranslationStrategy===e.MissingTranslationStrategy.Warning){var s=this._locale?' for locale "'+this._locale+'"':"";this._console.warn('Missing translation for message "'+o+'"'+s)}n=t.nodes,this._mapper=function(t){return t}}var a=n.map(function(t){return t.visit(r)}).join(""),u=this._contextStack.pop();return this._srcMsg=u.msg,this._mapper=u.mapper,a},t.prototype._addError=function(t,e){this._errors.push(new ra(t.sourceSpan,e))},t}(),qa=function(){function t(t,n,r,o,i){if(void 0===o&&(o=e.MissingTranslationStrategy.Warning),this._htmlParser=t,n){var s=pe(r);this._translationBundle=Ba.load(n,"i18n",s,o,i)}}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=cs);var o=this._htmlParser.parse(t,e,n,r);return this._translationBundle?o.errors.length?new Us(o.rootNodes,o.errors):At(o.rootNodes,this._translationBundle,r,[],{}):o},t}(),za=function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n="src"),null==e?"@angular/"+t:"@angular/"+t+"/"+n+"/"+e}("core"),Ga=function(){function t(){}return t}();Ga.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleUrl:za,runtime:e.ANALYZE_FOR_ENTRY_COMPONENTS},Ga.ElementRef={name:"ElementRef",moduleUrl:za,runtime:e.ElementRef},Ga.NgModuleRef={name:"NgModuleRef",moduleUrl:za,runtime:e.NgModuleRef},Ga.ViewContainerRef={name:"ViewContainerRef",moduleUrl:za,runtime:e.ViewContainerRef},Ga.ChangeDetectorRef={name:"ChangeDetectorRef",moduleUrl:za,runtime:e.ChangeDetectorRef},Ga.QueryList={name:"QueryList",moduleUrl:za,runtime:e.QueryList},Ga.TemplateRef={name:"TemplateRef",moduleUrl:za,runtime:e.TemplateRef},Ga.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleUrl:za,runtime:e.ɵCodegenComponentFactoryResolver},Ga.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleUrl:za,runtime:e.ComponentFactoryResolver},Ga.ComponentFactory={name:"ComponentFactory",moduleUrl:za,runtime:e.ComponentFactory},Ga.ComponentRef={name:"ComponentRef",moduleUrl:za,runtime:e.ComponentRef},Ga.NgModuleFactory={name:"NgModuleFactory",moduleUrl:za,runtime:e.NgModuleFactory},Ga.NgModuleInjector={name:"ɵNgModuleInjector",moduleUrl:za,runtime:e.ɵNgModuleInjector},Ga.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleUrl:za,runtime:e.ɵregisterModuleFactory},Ga.Injector={name:"Injector",moduleUrl:za,runtime:e.Injector},Ga.ViewEncapsulation={name:"ViewEncapsulation",moduleUrl:za,runtime:e.ViewEncapsulation},Ga.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleUrl:za,runtime:e.ChangeDetectionStrategy},Ga.SecurityContext={name:"SecurityContext",moduleUrl:za,runtime:e.SecurityContext},Ga.LOCALE_ID={name:"LOCALE_ID",moduleUrl:za,runtime:e.LOCALE_ID},Ga.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleUrl:za,runtime:e.TRANSLATIONS_FORMAT},Ga.inlineInterpolate={name:"ɵinlineInterpolate",moduleUrl:za,runtime:e.ɵinlineInterpolate},Ga.interpolate={name:"ɵinterpolate",moduleUrl:za,runtime:e.ɵinterpolate},Ga.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleUrl:za,runtime:e.ɵEMPTY_ARRAY},Ga.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleUrl:za,runtime:e.ɵEMPTY_MAP},Ga.Renderer={name:"Renderer",moduleUrl:za,runtime:e.Renderer},Ga.viewDef={name:"ɵvid",moduleUrl:za,runtime:e.ɵvid},Ga.elementDef={name:"ɵeld",moduleUrl:za,runtime:e.ɵeld},Ga.anchorDef={name:"ɵand",moduleUrl:za,runtime:e.ɵand},Ga.textDef={name:"ɵted",moduleUrl:za,runtime:e.ɵted},Ga.directiveDef={name:"ɵdid",moduleUrl:za,runtime:e.ɵdid},Ga.providerDef={name:"ɵprd",moduleUrl:za,runtime:e.ɵprd},Ga.queryDef={name:"ɵqud",moduleUrl:za,runtime:e.ɵqud},Ga.pureArrayDef={name:"ɵpad",moduleUrl:za,runtime:e.ɵpad},Ga.pureObjectDef={name:"ɵpod",moduleUrl:za,runtime:e.ɵpod},Ga.purePipeDef={name:"ɵppd",moduleUrl:za,runtime:e.ɵppd},Ga.pipeDef={name:"ɵpid",moduleUrl:za,runtime:e.ɵpid},Ga.nodeValue={name:"ɵnov",moduleUrl:za,runtime:e.ɵnov},Ga.ngContentDef={name:"ɵncd",moduleUrl:za,runtime:e.ɵncd},Ga.unwrapValue={name:"ɵunv",moduleUrl:za,runtime:e.ɵunv},Ga.createRendererType2={name:"ɵcrt",moduleUrl:za,runtime:e.ɵcrt},Ga.RendererType2={name:"RendererType2",moduleUrl:za,runtime:null},Ga.ViewDefinition={name:"ɵViewDefinition",moduleUrl:za,runtime:null},Ga.createComponentFactory={name:"ɵccf",moduleUrl:za,runtime:e.ɵccf};var Wa=["zero","one","two","few","many","other"],$a=function(){function t(t,e,n){this.nodes=t,this.expanded=e,this.errors=n}return t}(),Ka=function(t){function e(e,n){return t.call(this,e,n)||this}return Jr(e,t),e}(xs),Qa=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t,e){return new Ms(t.name,t.attrs,lt(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t,e){return t},t.prototype.visitText=function(t,e){return t},t.prototype.visitComment=function(t,e){return t},t.prototype.visitExpansion=function(t,e){return this.isExpanded=!0,"plural"==t.type?ve(t,this.errors):ge(t,this.errors)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Should not be reached")},t}(),Ja=function(t){function e(e,n){return t.call(this,n,e)||this}return Jr(e,t),e}(xs),Xa=function(){function t(t){var e=this;this.component=t,this.errors=[],this.viewQueries=Ee(t),this.viewProviders=new Map,t.viewProviders.forEach(function(t){null==e.viewProviders.get(R(t.token))&&e.viewProviders.set(R(t.token),!0)})}return t}(),Ya=function(){function t(t,e,n,r,o,i,s,a,u){var c=this;this.viewContext=t,this._parent=e,this._isViewRoot=n,this._directiveAsts=r,this._sourceSpan=u,this._transformedProviders=new Map,this._seenProviders=new Map,this._hasViewContainer=!1,this._queriedTokens=new Map,this._attrs={},o.forEach(function(t){return c._attrs[t.name]=t.value});var l=r.map(function(t){return t.directive});if(this._allProviders=we(l,u,t.errors),this._contentQueries=Se(a,l),Array.from(this._allProviders.values()).forEach(function(t){c._addQueryReadsTo(t.token,t.token,c._queriedTokens)}),s){var p=me(Ga.TemplateRef);this._addQueryReadsTo(p,p,this._queriedTokens)}i.forEach(function(t){var e=t.value||me(Ga.ElementRef);c._addQueryReadsTo({value:t.name},e,c._queriedTokens)}),this._queriedTokens.get(he(Ga.ViewContainerRef))&&(this._hasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){(t.eager||c._queriedTokens.get(R(t.token)))&&c._getOrCreateLocalProvider(t.providerType,t.token,!0)})}return t.prototype.afterElement=function(){var t=this;Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.providerType,e.token,!1)})},Object.defineProperty(t.prototype,"transformProviders",{get:function(){return Array.from(this._transformedProviders.values())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedDirectiveAsts",{get:function(){var t=this.transformProviders.map(function(t){return t.token.identifier}),e=this._directiveAsts.slice();return e.sort(function(e,n){return t.indexOf(e.directive.type)-t.indexOf(n.directive.type)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryMatches",{get:function(){var t=[];return this._queriedTokens.forEach(function(e){t.push.apply(t,e)}),t},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(t,e,n){this._getQueriesFor(t).forEach(function(t){var r=t.meta.read||e,o=R(r),i=n.get(o);i||(i=[],n.set(o,i)),i.push({queryId:t.queryId,value:r})})},t.prototype._getQueriesFor=function(t){for(var e,n=[],r=this,o=0;null!==r;)(e=r._contentQueries.get(R(t)))&&n.push.apply(n,e.filter(function(t){return t.meta.descendants||o<=1})),r._directiveAsts.length>0&&o++,r=r._parent;return(e=this.viewContext.viewQueries.get(R(t)))&&n.push.apply(n,e),n},t.prototype._getOrCreateLocalProvider=function(t,e,n){var r=this,o=this._allProviders.get(R(e));if(!o||(t===lo.Directive||t===lo.PublicService)&&o.providerType===lo.PrivateService||(t===lo.PrivateService||t===lo.PublicService)&&o.providerType===lo.Builtin)return null;var i=this._transformedProviders.get(R(e));if(i)return i;if(null!=this._seenProviders.get(R(e)))return this.viewContext.errors.push(new Ja("Cannot instantiate cyclic dependency! "+M(e),this._sourceSpan)),null;this._seenProviders.set(R(e),!0);var s=o.providers.map(function(t){var e=t.useValue,i=t.useExisting,s=void 0;if(null!=t.useExisting){var a=r._getDependency(o.providerType,{token:t.useExisting},n);null!=a.token?i=a.token:(i=null,e=a.value)}else if(t.useFactory)s=(u=t.deps||t.useFactory.diDeps).map(function(t){return r._getDependency(o.providerType,t,n)});else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return r._getDependency(o.providerType,t,n)})}return _e(t,{useExisting:i,useValue:e,deps:s})});return i=be(o,{eager:n,providers:s}),this._transformedProviders.set(R(e),i),i},t.prototype._getLocalDependency=function(t,e,n){if(void 0===n&&(n=!1),e.isAttribute){var r=this._attrs[e.token.value];return{isValue:!0,value:null==r?null:r}}if(null!=e.token){if(t===lo.Directive||t===lo.Component){if(R(e.token)===he(Ga.Renderer)||R(e.token)===he(Ga.ElementRef)||R(e.token)===he(Ga.ChangeDetectorRef)||R(e.token)===he(Ga.TemplateRef))return e;R(e.token)===he(Ga.ViewContainerRef)&&(this._hasViewContainer=!0)}if(R(e.token)===he(Ga.Injector))return e;if(null!=this._getOrCreateLocalProvider(t,e.token,n))return e}return null},t.prototype._getDependency=function(t,e,n){void 0===n&&(n=!1);var r=this,o=n,i=null;if(e.isSkipSelf||(i=this._getLocalDependency(t,e,n)),e.isSelf)!i&&e.isOptional&&(i={isValue:!0,value:null});else{for(;!i&&r._parent;){var s=r;r=r._parent,s._isViewRoot&&(o=!1),i=r._getLocalDependency(lo.PublicService,e,o)}i||(i=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===R(e.token)||null!=this.viewContext.viewProviders.get(R(e.token))?e:e.isOptional?i={isValue:!0,value:null}:null)}return i||this.viewContext.errors.push(new Ja("No provider for "+M(e.token),this._sourceSpan)),i},t}(),Za=function(){function t(t,e,n){var r=this;this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,t.transitiveModule.modules.forEach(function(t){Ce([{token:{identifier:t},useClass:t}],lo.PublicService,!0,n,r._errors,r._allProviders)}),Ce(t.transitiveModule.providers.map(function(t){return t.provider}).concat(e),lo.PublicService,!1,n,this._errors,this._allProviders)}return t.prototype.parse=function(){var t=this;if(Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.token,e.eager)}),this._errors.length>0){var e=this._errors.join("\n");throw new Error("Provider parse errors:\n"+e)}return Array.from(this._transformedProviders.values())},t.prototype._getOrCreateLocalProvider=function(t,e){var n=this,r=this._allProviders.get(R(t));if(!r)return null;var o=this._transformedProviders.get(R(t));if(o)return o;if(null!=this._seenProviders.get(R(t)))return this._errors.push(new Ja("Cannot instantiate cyclic dependency! "+M(t),r.sourceSpan)),null;this._seenProviders.set(R(t),!0);var i=r.providers.map(function(t){var o=t.useValue,i=t.useExisting,s=void 0;if(null!=t.useExisting){var a=n._getDependency({token:t.useExisting},e,r.sourceSpan);null!=a.token?i=a.token:(i=null,o=a.value)}else if(t.useFactory)s=(u=t.deps||t.useFactory.diDeps).map(function(t){return n._getDependency(t,e,r.sourceSpan)});else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return n._getDependency(t,e,r.sourceSpan)})}return _e(t,{useExisting:i,useValue:o,deps:s})});return o=be(r,{eager:e,providers:i}),this._transformedProviders.set(R(t),o),o},t.prototype._getDependency=function(t,e,n){void 0===e&&(e=!1);var r=!1;t.isSkipSelf||null==t.token||(R(t.token)===he(Ga.Injector)||R(t.token)===he(Ga.ComponentFactoryResolver)?r=!0:null!=this._getOrCreateLocalProvider(t.token,e)&&(r=!0));var o=t;return t.isSelf&&!r&&(t.isOptional?o={isValue:!0,value:null}:this._errors.push(new Ja("No provider for "+M(t.token),n))),o},t}(),tu=function(){function t(){}return t.prototype.hasProperty=function(t,e,n){},t.prototype.hasElement=function(t,e){},t.prototype.securityContext=function(t,e,n){},t.prototype.allKnownElementNames=function(){},t.prototype.getMappedPropName=function(t){},t.prototype.getDefaultComponentElementName=function(){},t.prototype.validateProperty=function(t){},t.prototype.validateAttribute=function(t){},t.prototype.normalizeAnimationStyleProperty=function(t){},t.prototype.normalizeAnimationStyleValue=function(t,e,n){},t}(),eu=function(){function t(t,e){this.style=t,this.styleUrls=e}return t}(),nu=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,ru=/\/\*.+?\*\//g,ou=/^([^:/?#]+):/,iu={};iu.DEFAULT=0,iu.LITERAL_ATTR=1,iu.ANIMATION=2,iu[iu.DEFAULT]="DEFAULT",iu[iu.LITERAL_ATTR]="LITERAL_ATTR",iu[iu.ANIMATION]="ANIMATION";var su=function(){function t(t,e,n,r){this.name=t,this.expression=e,this.type=n,this.sourceSpan=r}return Object.defineProperty(t.prototype,"isLiteral",{get:function(){return this.type===iu.LITERAL_ATTR},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===iu.ANIMATION},enumerable:!0,configurable:!0}),t}(),au=function(){function t(t,e,n,r,o){var i=this;this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=n,this._targetErrors=o,this.pipesByName=new Map,this._usedPipes=new Map,r.forEach(function(t){return i.pipesByName.set(t.name,t)})}return t.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},t.prototype.createDirectiveHostPropertyAsts=function(t,e,n){var r=this;if(t.hostProperties){var o=[];return Object.keys(t.hostProperties).forEach(function(e){var i=t.hostProperties[e];"string"==typeof i?r.parsePropertyBinding(e,i,!0,n,[],o):r._reportError('Value of the host property binding "'+e+'" needs to be a string representing an expression but got "'+i+'" ('+typeof i+")",n)}),o.map(function(t){return r.createElementPropertyAst(e,t)})}return null},t.prototype.createDirectiveHostEventAsts=function(t,e){var n=this;if(t.hostListeners){var r=[];return Object.keys(t.hostListeners).forEach(function(o){var i=t.hostListeners[o];"string"==typeof i?n.parseEvent(o,i,e,[],r):n._reportError('Value of the host listener "'+o+'" needs to be a string representing an expression but got "'+i+'" ('+typeof i+")",e)}),r}return null},t.prototype.parseInterpolation=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseInterpolation(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),this._checkPipes(r,e),r}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype.parseInlineTemplateBinding=function(t,e,n,r,o,i){for(var s=this._parseTemplateBindings(t,e,n),a=0;a<s.length;a++){var u=s[a];u.keyIsVar?i.push(new oo(u.key,u.name,n)):u.expression?this._parsePropertyAst(u.key,u.expression,n,r,o):(r.push([u.key,""]),this.parseLiteralAttr(u.key,null,n,r,o))}},t.prototype._parseTemplateBindings=function(t,e,n){var r=this,o=n.start.toString();try{var i=this._exprParser.parseTemplateBindings(t,e,o);return this._reportExpressionParserErrors(i.errors,n),i.templateBindings.forEach(function(t){t.expression&&r._checkPipes(t.expression,n)}),i.warnings.forEach(function(t){r._reportError(t,n,Ss.WARNING)}),i.templateBindings}catch(t){return this._reportError(""+t,n),[]}},t.prototype.parseLiteralAttr=function(t,e,n,r,o){Ae(t)?(t=t.substring(1),e&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',n,Ss.ERROR),this._parseAnimation(t,e,n,r,o)):o.push(new su(t,this._exprParser.wrapLiteralPrimitive(e,""),iu.LITERAL_ATTR,n))},t.prototype.parsePropertyBinding=function(t,e,n,r,o,i){var s=!1;t.startsWith("animate-")?(s=!0,t=t.substring("animate-".length)):Ae(t)&&(s=!0,t=t.substring(1)),s?this._parseAnimation(t,e,r,o,i):this._parsePropertyAst(t,this._parseBinding(e,n,r),r,o,i)},t.prototype.parsePropertyInterpolation=function(t,e,n,r,o){var i=this.parseInterpolation(e,n);return!!i&&(this._parsePropertyAst(t,i,n,r,o),!0)},t.prototype._parsePropertyAst=function(t,e,n,r,o){r.push([t,e.source]),o.push(new su(t,e,iu.DEFAULT,n))},t.prototype._parseAnimation=function(t,e,n,r,o){var i=this._parseBinding(e||"null",!1,n);r.push([t,i.source]),o.push(new su(t,i,iu.ANIMATION,n))},t.prototype._parseBinding=function(t,e,n){var r=n.start.toString();try{var o=e?this._exprParser.parseSimpleBinding(t,r,this._interpolationConfig):this._exprParser.parseBinding(t,r,this._interpolationConfig);return o&&this._reportExpressionParserErrors(o.errors,n),this._checkPipes(o,n),o}catch(t){return this._reportError(""+t,n),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype.createElementPropertyAst=function(t,n){if(n.isAnimation)return new eo(n.name,ho.Animation,e.SecurityContext.NONE,n.expression,null,n.sourceSpan);var r=null,o=void 0,i=null,s=n.name.split("."),a=void 0;if(s.length>1)if("attr"==s[0]){i=s[1],this._validatePropertyOrAttributeName(i,n.sourceSpan,!0),a=Oe(this._schemaRegistry,t,i,!0);var c=i.indexOf(":");c>-1&&(i=u(i.substring(0,c),i.substring(c+1))),o=ho.Attribute}else"class"==s[0]?(i=s[1],o=ho.Class,a=[e.SecurityContext.NONE]):"style"==s[0]&&(r=s.length>2?s[2]:null,i=s[1],o=ho.Style,a=[e.SecurityContext.STYLE]);return null===i&&(i=this._schemaRegistry.getMappedPropName(n.name),a=Oe(this._schemaRegistry,t,i,!1),o=ho.Property,this._validatePropertyOrAttributeName(i,n.sourceSpan,!1)),new eo(i,o,a[0],n.expression,r,n.sourceSpan)},t.prototype.parseEvent=function(t,e,n,r,o){Ae(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,n,o)):this._parseEvent(t,e,n,r,o)},t.prototype._parseAnimationEvent=function(t,e,n,r){var o=h(t,[t,""]),i=o[0],s=o[1].toLowerCase();if(s)switch(s){case"start":case"done":var a=this._parseAction(e,n);r.push(new no(i,null,s,a,n));break;default:this._reportError('The provided animation output phase value "'+s+'" for "@'+i+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+i+") is missing its phase value name (start or done are currently supported)",n)},t.prototype._parseEvent=function(t,e,n,r,o){var i=p(t,[null,t]),s=i[0],a=i[1],u=this._parseAction(e,n);r.push([t,u.source]),o.push(new no(a,s,null,u,n))},t.prototype._parseAction=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseAction(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),!r||r.ast instanceof oi?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",n)):(this._checkPipes(r,e),r)}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._reportError=function(t,e,n){void 0===n&&(n=Ss.ERROR),this._targetErrors.push(new xs(e,t,n))},t.prototype._reportExpressionParserErrors=function(t,e){for(var n=0,r=t;n<r.length;n++){var o=r[n];this._reportError(o.message,e)}},t.prototype._checkPipes=function(t,e){var n=this;if(t){var r=new uu;t.visit(r),r.pipes.forEach(function(t,r){var o=n.pipesByName.get(r);o?n._usedPipes.set(r,o):n._reportError("The pipe '"+r+"' could not be found",new Es(e.start.moveBy(t.span.start),e.start.moveBy(t.span.end)))})}},t.prototype._validatePropertyOrAttributeName=function(t,e,n){var r=n?this._schemaRegistry.validateAttribute(t):this._schemaRegistry.validateProperty(t);r.error&&this._reportError(r.msg,e,Ss.ERROR)},t}(),uu=function(t){function e(){var e=t.apply(this,arguments)||this;return e.pipes=new Map,e}return Jr(e,t),e.prototype.visitPipe=function(t,e){return this.pipes.set(t.name,t),t.exp.visit(this),this.visitAll(t.args,e),null},e}(xi),cu="select",lu="link",pu="rel",hu="href",fu="stylesheet",du="style",mu="script",yu="ngNonBindable",vu="ngProjectAs",gu={};gu.NG_CONTENT=0,gu.STYLE=1,gu.STYLESHEET=2,gu.SCRIPT=3,gu.OTHER=4,gu[gu.NG_CONTENT]="NG_CONTENT",gu[gu.STYLE]="STYLE",gu[gu.STYLESHEET]="STYLESHEET",gu[gu.SCRIPT]="SCRIPT",gu[gu.OTHER]="OTHER";var _u=function(){function t(t,e,n,r,o){this.type=t,this.selectAttr=e,this.hrefAttr=n,this.nonBindable=r,this.projectAs=o}return t}(),bu=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,wu="template",Cu="class",Eu=Co.parse("*")[0],Su="The <template> element is deprecated. Use <ng-template> instead",xu={},Tu=new e.InjectionToken("TemplateTransforms"),Pu=function(t){function e(e,n,r){return t.call(this,n,e,r)||this}return Jr(e,t),e}(xs),Au=function(){function t(t,e,n){this.templateAst=t,this.usedPipes=e,this.errors=n}return t}(),Ou=function(){function t(t,e,n,r,o,i){this._config=t,this._exprParser=e,this._schemaRegistry=n,this._htmlParser=r,this._console=o,this.transforms=i}return t.prototype.parse=function(t,e,n,r,o,i){var s=this.tryParse(t,e,n,r,o,i),a=s.errors.filter(function(t){return t.level===Ss.WARNING}).filter(ke(["The template attribute is deprecated. Use an ng-template element instead.",Su])),u=s.errors.filter(function(t){return t.level===Ss.ERROR});if(a.length>0&&this._console.warn("Template parse warnings:\n"+a.join("\n")),u.length>0)throw v("Template parse errors:\n"+u.join("\n"));return{template:s.templateAst,pipes:s.usedPipes}},t.prototype.tryParse=function(t,e,n,r,o,i){return this.tryParseHtml(this.expandHtml(this._htmlParser.parse(e,i,!0,this.getInterpolationConfig(t))),t,n,r,o)},t.prototype.tryParseHtml=function(t,e,r,o,i){var s,a=t.errors,u=[];if(t.rootNodes.length>0){var c=De(r),l=De(o),p=new Xa(e),h=void 0;e.template&&e.template.interpolation&&(h={start:e.template.interpolation[0],end:e.template.interpolation[1]});var f=new au(this._exprParser,h,this._schemaRegistry,l,a),d=new Mu(this._config,p,c,f,this._schemaRegistry,i,a);s=lt(d,t.rootNodes,Iu),a.push.apply(a,p.errors),u.push.apply(u,f.getUsedPipes())}else s=[];return this._assertNoReferenceDuplicationOnTemplate(s,a),a.length>0?new Au(s,u,a):(this.transforms&&this.transforms.forEach(function(t){s=n(t,s)}),new Au(s,u,a))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var n=t.errors;if(0==n.length||e){var r=ye(t.rootNodes);n.push.apply(n,r.errors),t=new Us(r.nodes,n)}return t},t.prototype.getInterpolationConfig=function(t){if(t.template)return us.fromArray(t.template.interpolation)},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,e){var n=[];t.filter(function(t){return!!t.references}).forEach(function(t){return t.references.forEach(function(t){var r=t.name;if(n.indexOf(r)<0)n.push(r);else{var o=new Pu('Reference "#'+r+'" is defined several times',t.sourceSpan,Ss.ERROR);e.push(o)}})})},t}();Ou.decorators=[{type:z}],Ou.ctorParameters=function(){return[{type:Zo},{type:gs},{type:tu},{type:qa},{type:e.ɵConsole},{type:Array,decorators:[{type:e.Optional},{type:e.Inject,args:[Tu]}]}]};var Mu=function(){function t(t,e,n,r,o,i,s){var a=this;this.config=t,this.providerViewContext=e,this._bindingParser=r,this._schemaRegistry=o,this._schemas=i,this._targetErrors=s,this.selectorMatcher=new Eo,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=e.component.viewQueries.length+1,n.forEach(function(t,e){var n=Co.parse(t.selector);a.selectorMatcher.addSelectables(n,t),a.directivesIndex.set(t,e)})}return t.prototype.visitExpansion=function(t,e){return null},t.prototype.visitExpansionCase=function(t,e){return null},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(Eu),r=this._bindingParser.parseInterpolation(t.value,t.sourceSpan);return r?new Zr(r,n,t.sourceSpan):new Yr(t.value,n,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return new to(t.name,t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitElement=function(t,e){var n=this,r=this.contentQueryStartId,o=t.name,i=Me(t);if(i.type===gu.SCRIPT||i.type===gu.STYLE)return null;if(i.type===gu.STYLESHEET&&Te(i.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=!1,m=[],y=Ve(t,this.config.enableLegacyTemplate,function(t,e){return n._reportError(t,e,Ss.WARNING)});t.attrs.forEach(function(t){var e,r,o=n._parseAttr(y,t,s,a,l,u,c),i=n._normalizeAttributeName(t.name);n.config.enableLegacyTemplate&&"template"==i?(n._reportError("The template attribute is deprecated. Use an ng-template element instead.",t.sourceSpan,Ss.WARNING),e=t.value):i.startsWith("*")&&(e=t.value,r=i.substring("*".length)+":");var v=null!=e;v&&(d&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),d=!0,n._bindingParser.parseInlineTemplateBinding(r,e,t.sourceSpan,h,p,f)),o||v||(m.push(n.visitAttribute(t,null)),s.push([t.name,t.value]))});var v=Ie(o,s),g=this._parseDirectives(this.selectorMatcher,v),_=g.directives,b=g.matchElement,w=[],C=new Set,E=this._createDirectiveAsts(y,t.name,_,a,u,t.sourceSpan,w,C),S=this._createElementPropertyAsts(t.name,a,C),x=e.isTemplateElement||d,T=new Ya(this.providerViewContext,e.providerContext,x,E,m,w,y,r,t.sourceSpan),P=lt(i.nonBindable?ju:this,t.children,Nu.create(y,E,y?e.providerContext:T));T.afterElement();var A,O=null!=i.projectAs?Co.parse(i.projectAs)[0]:v,M=e.findNgContentIndex(O);if(i.type===gu.NG_CONTENT)t.children&&!t.children.every(je)&&this._reportError("<ng-content> element cannot have content.",t.sourceSpan),A=new po(this.ngContentCount++,d?null:M,t.sourceSpan);else if(y)this._assertAllEventsPublishedByDirectives(E,l),this._assertNoComponentsNorElementBindingsOnTemplate(E,S,t.sourceSpan),A=new so(m,l,w,c,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:M,t.sourceSpan);else{this._assertElementExists(b,t),this._assertOnlyOneComponent(E,t.sourceSpan);var R=d?null:e.findNgContentIndex(O);A=new io(o,m,S,l,w,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:R,t.sourceSpan,t.endSourceSpan||null)}if(d){var k=this.contentQueryStartId,N=Ie(wu,h),I=this._parseDirectives(this.selectorMatcher,N).directives,j=new Set,D=this._createDirectiveAsts(!0,t.name,I,p,[],t.sourceSpan,[],j),L=this._createElementPropertyAsts(t.name,p,j);this._assertNoComponentsNorElementBindingsOnTemplate(D,L,t.sourceSpan);var V=new Ya(this.providerViewContext,e.providerContext,e.isTemplateElement,D,[],[],!0,k,t.sourceSpan);V.afterElement(),A=new so([],[],[],f,V.transformedDirectiveAsts,V.transformProviders,V.transformedHasViewContainer,V.queryMatches,[A],M,t.sourceSpan)}return A},t.prototype._parseAttr=function(t,e,n,r,o,i,s){var a=this._normalizeAttributeName(e.name),u=e.value,c=e.sourceSpan,l=a.match(bu),p=!1;if(null!==l)if(p=!0,null!=l[1])this._bindingParser.parsePropertyBinding(l[7],u,!1,c,n,r);else if(l[2])if(t){h=l[7];this._parseVariable(h,u,c,s)}else this._reportError('"let-" is only supported on template elements.',c);else if(l[3]){var h=l[7];this._parseReference(h,u,c,i)}else l[4]?this._bindingParser.parseEvent(l[7],u,c,n,o):l[5]?(this._bindingParser.parsePropertyBinding(l[7],u,!1,c,n,r),this._parseAssignmentEvent(l[7],u,c,n,o)):l[6]?this._bindingParser.parseLiteralAttr(a,u,c,n,r):l[8]?(this._bindingParser.parsePropertyBinding(l[8],u,!1,c,n,r),this._parseAssignmentEvent(l[8],u,c,n,o)):l[9]?this._bindingParser.parsePropertyBinding(l[9],u,!1,c,n,r):l[10]&&this._bindingParser.parseEvent(l[10],u,c,n,o);else p=this._bindingParser.parsePropertyInterpolation(a,u,c,n,r);return p||this._bindingParser.parseLiteralAttr(a,u,c,n,r),p},t.prototype._normalizeAttributeName=function(t){return/^data-/i.test(t)?t.substring(5):t},t.prototype._parseVariable=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',n),r.push(new oo(t,e,n))},t.prototype._parseReference=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',n),r.push(new ku(t,e,n))},t.prototype._parseAssignmentEvent=function(t,e,n,r,o){this._bindingParser.parseEvent(t+"Change",e+"=$event",n,r,o)},t.prototype._parseDirectives=function(t,e){var n=this,r=new Array(this.directivesIndex.size),o=!1;return t.match(e,function(t,e){r[n.directivesIndex.get(e)]=e,o=o||t.hasElementSelector()}),{directives:r.filter(function(t){return!!t}),matchElement:o}},t.prototype._createDirectiveAsts=function(t,e,n,r,o,i,s,a){var u=this,c=new Set,l=null,p=n.map(function(t){var n=new Es(i.start,i.end,"Directive "+E(t.type));t.isComponent&&(l=t);var p=[],h=u._bindingParser.createDirectiveHostPropertyAsts(t,e,n);h=u._checkPropertiesInSchema(e,h);var f=u._bindingParser.createDirectiveHostEventAsts(t,n);u._createDirectivePropertyAsts(t.inputs,r,p,a),o.forEach(function(e){(0===e.value.length&&t.isComponent||t.exportAs==e.value)&&(s.push(new ro(e.name,de(t.type),e.sourceSpan)),c.add(e.name))});var d=u.contentQueryStartId;return u.contentQueryStartId+=t.queries.length,new uo(t,p,h,f,d,n)});return o.forEach(function(e){if(e.value.length>0)c.has(e.name)||u._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!l){var n=null;t&&(n=me(Ga.TemplateRef)),s.push(new ro(e.name,n,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,n,r){if(t){var o=new Map;e.forEach(function(t){var e=o.get(t.name);e&&!e.isLiteral||o.set(t.name,t)}),Object.keys(t).forEach(function(e){var i=t[e],s=o.get(i);s&&(r.add(s.name),Le(s.expression)||n.push(new ao(e,s.name,s.expression,s.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(t,e,n){var r=this,o=[];return e.forEach(function(e){e.isLiteral||n.has(e.name)||o.push(r._bindingParser.createElementPropertyAst(t,e))}),this._checkPropertiesInSchema(t,o)},t.prototype._findComponentDirectives=function(t){return t.filter(function(t){return t.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(t){return this._findComponentDirectives(t).map(function(t){return E(t.directive.type)})},t.prototype._assertOnlyOneComponent=function(t,e){var n=this._findComponentDirectiveNames(t);n.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: "+n.join(","),e)},t.prototype._assertElementExists=function(t,e){var n=e.name.replace(/^:xhtml:/,"");if(!t&&!this._schemaRegistry.hasElement(n,this._schemas)){var r="'"+n+"' is not a known element:\n";r+="1. If '"+n+"' is an Angular component, then verify that it is part of this module.\n",n.indexOf("-")>-1?r+="2. If '"+n+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.":r+="2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",this._reportError(r,e.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,n){var r=this,o=this._findComponentDirectiveNames(t);o.length>0&&this._reportError("Components on an embedded template: "+o.join(","),n),e.forEach(function(t){r._reportError("Property binding "+t.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".',n)})},t.prototype._assertAllEventsPublishedByDirectives=function(t,e){var n=this,r=new Set;t.forEach(function(t){Object.keys(t.directive.outputs).forEach(function(e){var n=t.directive.outputs[e];r.add(n)})}),e.forEach(function(t){null==t.target&&r.has(t.name)||n._reportError("Event binding "+t.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".',t.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(t,e){var n=this;return e.filter(function(e){if(e.type===ho.Property&&!n._schemaRegistry.hasProperty(t,e.name,n._schemas)){var r="Can't bind to '"+e.name+"' since it isn't a known property of '"+t+"'.";t.startsWith("ng-")?r+="\n1. If '"+e.name+"' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.":t.indexOf("-")>-1&&(r+="\n1. If '"+t+"' is an Angular component and it has '"+e.name+"' input, then verify that it is part of this module.\n2. If '"+t+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component."),n._reportError(r,e.sourceSpan)}return!Le(e.value)})},t.prototype._reportError=function(t,e,n){void 0===n&&(n=Ss.ERROR),this._targetErrors.push(new xs(e,t,n))},t}(),Ru=function(){function t(){}return t.prototype.visitElement=function(t,e){var n=Me(t);if(n.type===gu.SCRIPT||n.type===gu.STYLE||n.type===gu.STYLESHEET)return null;var r=t.attrs.map(function(t){return[t.name,t.value]}),o=Ie(t.name,r),i=e.findNgContentIndex(o),s=lt(this,t.children,Iu);return new io(t.name,lt(this,t.attrs),[],[],[],[],[],!1,[],s,i,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return new to(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(Eu);return new Yr(t.value,n,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),ku=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t}(),Nu=function(){function t(t,e,n,r){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=n,this.providerContext=r}return t.create=function(e,n,r){var o=new Eo,i=null,s=n.find(function(t){return t.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u<a.length;u++)"*"===a[u]?i=u:o.addSelectables(Co.parse(a[u]),u);return new t(e,o,i,r)},t.prototype.findNgContentIndex=function(t){var e=[];return this._ngContentIndexMatcher.match(t,function(t,n){e.push(n)}),e.sort(),null!=this._wildcardNgContentIndex&&e.push(this._wildcardNgContentIndex),e.length>0?e[0]:null},t}(),Iu=new Nu(!0,new Eo,null,null),ju=new Ru,Du=function(){function t(){}return t.prototype.get=function(t){return null},t}(),Lu={provide:e.PACKAGE_ROOT_URL,useValue:"/"},Vu=function(){function t(t){void 0===t&&(t=null),this._packagePrefix=t}return t.prototype.resolve=function(t,e){var n=e;null!=t&&t.length>0&&(n=We(t,n));var r=qe(n),o=this._packagePrefix;if(null!=o&&null!=r&&"package"==r[Uu.Scheme]){var i=r[Uu.Path];return o=o.replace(/\/+$/,""),i=i.replace(/^\/+/,""),o+"/"+i}return n},t}();Vu.decorators=[{type:z}],Vu.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.PACKAGE_ROOT_URL]}]}]};var Fu=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),Uu={};Uu.Scheme=1,Uu.UserInfo=2,Uu.Domain=3,Uu.Port=4,Uu.Path=5,Uu.QueryData=6,Uu.Fragment=7,Uu[Uu.Scheme]="Scheme",Uu[Uu.UserInfo]="UserInfo",Uu[Uu.Domain]="Domain",Uu[Uu.Port]="Port",Uu[Uu.Path]="Path",Uu[Uu.QueryData]="QueryData",Uu[Uu.Fragment]="Fragment";var Bu=function(){function t(t,e,n,r){this._resourceLoader=t,this._urlResolver=e,this._htmlParser=n,this._config=r,this._resourceLoaderCache=new Map}return t.prototype.clearCache=function(){this._resourceLoaderCache.clear()},t.prototype.clearCacheFor=function(t){var e=this;if(t.isComponent){var n=t.template;this._resourceLoaderCache.delete(n.templateUrl),n.externalStylesheets.forEach(function(t){e._resourceLoaderCache.delete(t.moduleUrl)})}},t.prototype._fetch=function(t){var e=this._resourceLoaderCache.get(t);return e||(e=this._resourceLoader.get(t),this._resourceLoaderCache.set(t,e)),e},t.prototype.normalizeTemplate=function(t){var n=this,r=null,o=void 0;if(m(t.template)){if(m(t.templateUrl))throw v("'"+e.ɵstringify(t.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof t.template)throw v("The template specified for component "+e.ɵstringify(t.componentType)+" is not a string");r=this.normalizeTemplateSync(t),o=Promise.resolve(r)}else{if(!m(t.templateUrl))throw v("No template specified for component "+e.ɵstringify(t.componentType));if("string"!=typeof t.templateUrl)throw v("The templateUrl specified for component "+e.ɵstringify(t.componentType)+" is not a string");o=this.normalizeTemplateAsync(t)}return r&&0===r.styleUrls.length?new Oo(r):new Oo(null,o.then(function(t){return n.normalizeExternalStylesheets(t)}))},t.prototype.normalizeTemplateSync=function(t){return this.normalizeLoadedTemplate(t,t.template,t.moduleUrl)},t.prototype.normalizeTemplateAsync=function(t){var e=this,n=this._urlResolver.resolve(t.moduleUrl,t.templateUrl);return this._fetch(n).then(function(r){return e.normalizeLoadedTemplate(t,r,n)})},t.prototype.normalizeLoadedTemplate=function(t,n,r){var o=!!t.template,i=us.fromArray(t.interpolation),s=this._htmlParser.parse(n,D({reference:t.ngModuleType},{type:{reference:t.componentType}},{isInline:o,templateUrl:r}),!0,i);if(s.errors.length>0)throw v("Template parse errors:\n"+s.errors.join("\n"));var a=this.normalizeStylesheet(new Wo({styles:t.styles,styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})),u=new Hu;lt(u,s.rootNodes);var c=this.normalizeStylesheet(new Wo({styles:u.styles,styleUrls:u.styleUrls,moduleUrl:r})),l=t.encapsulation;null==l&&(l=this._config.defaultEncapsulation);var p=a.styles.concat(c.styles),h=a.styleUrls.concat(c.styleUrls);return l===e.ViewEncapsulation.Emulated&&0===p.length&&0===h.length&&(l=e.ViewEncapsulation.None),new $o({encapsulation:l,template:n,templateUrl:r,styles:p,styleUrls:h,ngContentSelectors:u.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:o,externalStylesheets:[]})},t.prototype.normalizeExternalStylesheets=function(t){return this._loadMissingExternalStylesheets(t.styleUrls).then(function(e){return new $o({encapsulation:t.encapsulation,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,externalStylesheets:e,ngContentSelectors:t.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:t.isInline})})},t.prototype._loadMissingExternalStylesheets=function(t,e){var n=this;return void 0===e&&(e=new Map),Promise.all(t.filter(function(t){return!e.has(t)}).map(function(t){return n._fetch(t).then(function(r){var o=n.normalizeStylesheet(new Wo({styles:[r],moduleUrl:t}));return e.set(t,o),n._loadMissingExternalStylesheets(o.styleUrls,e)})})).then(function(t){return Array.from(e.values())})},t.prototype.normalizeStylesheet=function(t){var e=this,n=t.moduleUrl,r=t.styleUrls.filter(Te).map(function(t){return e._urlResolver.resolve(n,t)}),o=t.styles.map(function(t){var o=Pe(e._urlResolver,n,t);return r.push.apply(r,o.styleUrls),o.style});return new Wo({styles:o,styleUrls:r,moduleUrl:n})},t}();Bu.decorators=[{type:z}],Bu.ctorParameters=function(){return[{type:Du},{type:Vu},{type:Ua},{type:Zo}]};var Hu=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t,e){var n=Me(t);switch(n.type){case gu.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case gu.STYLE:var r="";t.children.forEach(function(t){t instanceof Ts&&(r+=t.value)}),this.styles.push(r);break;case gu.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,lt(this,t.children),n.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t,e){lt(this,t.cases)},t.prototype.visitExpansionCase=function(t,e){lt(this,t.expression)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return null},t.prototype.visitText=function(t,e){return null},t}(),qu=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},zu=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isDirective=function(t){var n=this._reflector.annotations(e.resolveForwardRef(t));return n&&n.some($e)},t.prototype.resolve=function(t,n){void 0===n&&(n=!0);var r=this._reflector.annotations(e.resolveForwardRef(t));if(r){var o=Ke(r,$e);if(o){var i=this._reflector.propMetadata(t);return this._mergeWithPropertyMetadata(o,i,t)}}if(n)throw new Error("No Directive annotation found on "+e.ɵstringify(t));return null},t.prototype._mergeWithPropertyMetadata=function(t,n,r){var o=[],i=[],s={},a={};return Object.keys(n).forEach(function(t){var r=Ke(n[t],function(t){return t instanceof e.Input});r&&(r.bindingPropertyName?o.push(t+": "+r.bindingPropertyName):o.push(t));var u=Ke(n[t],function(t){return t instanceof e.Output});u&&(u.bindingPropertyName?i.push(t+": "+u.bindingPropertyName):i.push(t)),n[t].filter(function(t){return t&&t instanceof e.HostBinding}).forEach(function(e){if(e.hostPropertyName){var n=e.hostPropertyName[0];if("("===n)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===n)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");s["["+e.hostPropertyName+"]"]=t}else s["["+t+"]"]=t}),n[t].filter(function(t){return t&&t instanceof e.HostListener}).forEach(function(e){var n=e.args||[];s["("+e.eventName+")"]=t+"("+n.join(",")+")"});var c=Ke(n[t],function(t){return t instanceof e.Query});c&&(a[t]=c)}),this._merge(t,o,i,s,a,r)},t.prototype._extractPublicName=function(t){return p(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,n=[],r=t.length-1;r>=0;r--){var o=t[r],i=this._extractPublicName(o);e.has(i)||(e.add(i),n.push(o))}return n.reverse()},t.prototype._merge=function(t,n,r,o,i,s){var a=this._dedupeBindings(t.inputs?t.inputs.concat(n):n),u=this._dedupeBindings(t.outputs?t.outputs.concat(r):r),c=t.host?qu({},t.host,o):o,l=t.queries?qu({},t.queries,i):i;return t instanceof e.Component?new e.Component({selector:t.selector,inputs:a,outputs:u,host:c,exportAs:t.exportAs,moduleId:t.moduleId,queries:l,changeDetection:t.changeDetection,providers:t.providers,viewProviders:t.viewProviders,entryComponents:t.entryComponents,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,encapsulation:t.encapsulation,animations:t.animations,interpolation:t.interpolation}):new e.Directive({selector:t.selector,inputs:a,outputs:u,host:c,exportAs:t.exportAs,queries:l,providers:t.providers})},t}();zu.decorators=[{type:z}],zu.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var Gu=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,Wu=/\.ngfactory\./,$u=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(nn)},t.prototype.resolve=function(t,n){void 0===n&&(n=!0);var r=Ke(this._reflector.annotations(t),nn);if(r)return r;if(n)throw new Error("No NgModule metadata found for '"+e.ɵstringify(t)+"'.");return null},t}();$u.decorators=[{type:z}],$u.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var Ku=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isPipe=function(t){var n=this._reflector.annotations(e.resolveForwardRef(t));return n&&n.some(rn)},t.prototype.resolve=function(t,n){void 0===n&&(n=!0);var r=this._reflector.annotations(e.resolveForwardRef(t));if(r){var o=Ke(r,rn);if(o)return o}if(n)throw new Error("No Pipe decorator found on "+e.ɵstringify(t));return null},t}();Ku.decorators=[{type:z}],Ku.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var Qu=function(){function t(){}return t.prototype.isLibraryFile=function(t){return!1},t.prototype.getLibraryFileName=function(t){return null},t.prototype.resolveSummary=function(t){return null},t.prototype.getSymbolsOf=function(t){return[]},t.prototype.getImportAs=function(t){return t},t}();Qu.decorators=[{type:z}],Qu.ctorParameters=function(){return[]};var Ju=new e.InjectionToken("ErrorCollector"),Xu=function(){function t(t,n,r,o,i,s,a,u,c,l,p){void 0===l&&(l=e.ɵreflector),this._config=t,this._ngModuleResolver=n,this._directiveResolver=r,this._pipeResolver=o,this._summaryResolver=i,this._schemaRegistry=s,this._directiveNormalizer=a,this._console=u,this._staticSymbolCache=c,this._reflector=l,this._errorCollector=p,this._nonNormalizedDirectiveCache=new Map,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map}return t.prototype.clearCacheFor=function(t){var e=this._directiveCache.get(t);this._directiveCache.delete(t),this._nonNormalizedDirectiveCache.delete(t),this._summaryCache.delete(t),this._pipeCache.delete(t),this._ngModuleOfTypes.delete(t),this._ngModuleCache.clear(),e&&this._directiveNormalizer.clearCacheFor(e)},t.prototype.clearCache=function(){this._directiveCache.clear(),this._nonNormalizedDirectiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},t.prototype._createProxyClass=function(t,n){var r=null,o=function(){if(!r)throw new Error("Illegal state: Class "+n+" for type "+e.ɵstringify(t)+" is not compiled yet!");return r.apply(this,arguments)};return o.setDelegate=function(t){r=t,o.prototype=t.prototype},o.overriddenName=n,o},t.prototype.getGeneratedClass=function(t,e){return t instanceof fo?this._staticSymbolCache.get(Qe(t.filePath),e):this._createProxyClass(t,e)},t.prototype.getComponentViewClass=function(t){return this.getGeneratedClass(t,x(t,0))},t.prototype.getHostComponentViewClass=function(t){return this.getGeneratedClass(t,P(t))},t.prototype.getHostComponentType=function(t){var e=E({reference:t})+"_Host";if(t instanceof fo)return this._staticSymbolCache.get(t.filePath,e);var n=function(){};return n.overriddenName=e,n},t.prototype.getRendererType=function(t){return t instanceof fo?this._staticSymbolCache.get(Qe(t.filePath),T(t)):{}},t.prototype.getComponentFactory=function(t,n,r,o){if(n instanceof fo)return this._staticSymbolCache.get(Qe(n.filePath),O(n));var i=this.getHostComponentViewClass(n);return e.ɵccf(t,n,i,r,o,[])},t.prototype.initComponentFactory=function(t,e){t instanceof fo||(n=t.ngContentSelectors).push.apply(n,e);var n},t.prototype._loadSummary=function(t,e){var n=this._summaryCache.get(t);if(!n){var r=this._summaryResolver.resolveSummary(t);n=r?r.type:null,this._summaryCache.set(t,n||null)}return n&&n.summaryKind===e?n:null},t.prototype._loadDirectiveMetadata=function(t,n,r){var o=this;if(this._directiveCache.has(n))return null;n=e.resolveForwardRef(n);var i=this.getNonNormalizedDirectiveMetadata(n),s=i.annotation,a=i.metadata,u=function(t){var e=new Ko({isHost:!1,type:a.type,isComponent:a.isComponent,selector:a.selector,exportAs:a.exportAs,changeDetection:a.changeDetection,inputs:a.inputs,outputs:a.outputs,hostListeners:a.hostListeners,hostProperties:a.hostProperties,hostAttributes:a.hostAttributes,providers:a.providers,viewProviders:a.viewProviders,queries:a.queries,viewQueries:a.viewQueries,entryComponents:a.entryComponents,componentViewType:a.componentViewType,rendererType:a.rendererType,componentFactory:a.componentFactory,template:t});return t&&o.initComponentFactory(a.componentFactory,t.ngContentSelectors),o._directiveCache.set(n,e),o._summaryCache.set(n,e.toSummary()),e};if(a.isComponent){var c=a.template,l=this._directiveNormalizer.normalizeTemplate({ngModuleType:t,componentType:n,moduleUrl:cn(this._reflector,n,s),encapsulation:c.encapsulation,template:c.template,templateUrl:c.templateUrl,styles:c.styles,styleUrls:c.styleUrls,animations:c.animations,interpolation:c.interpolation});return l.syncResult?(u(l.syncResult),null):r?(this._reportError(hn(n),n),null):l.asyncResult.then(u)}return u(null),null},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var n=this;if(!(t=e.resolveForwardRef(t)))return null;var r=this._nonNormalizedDirectiveCache.get(t);if(r)return r;var o=this._directiveResolver.resolve(t,!1);if(!o)return null;var i=void 0;if(o instanceof e.Component){G("styles",o.styles),G("styleUrls",o.styleUrls),W("interpolation",o.interpolation);var s=o.animations;i=new $o({encapsulation:y(o.encapsulation),template:y(o.template),templateUrl:y(o.templateUrl),styles:o.styles||[],styleUrls:o.styleUrls||[],animations:s||[],interpolation:y(o.interpolation),isInline:!!o.template,externalStylesheets:[],ngContentSelectors:[]})}var a=null,u=[],c=[],l=o.selector;o instanceof e.Component?(a=o.changeDetection,o.viewProviders&&(u=this._getProvidersMetadata(o.viewProviders,c,'viewProviders for "'+pn(t)+'"',[],t)),o.entryComponents&&(c=an(o.entryComponents).map(function(t){return n._getEntryComponentMetadata(t)}).concat(c)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(this._reportError(v("Directive "+pn(t)+" has no selector, please add it!"),t),l="error");var p=[];null!=o.providers&&(p=this._getProvidersMetadata(o.providers,c,'providers for "'+pn(t)+'"',[],t));var h=[],f=[];null!=o.queries&&(h=this._getQueriesMetadata(o.queries,!1,t),f=this._getQueriesMetadata(o.queries,!0,t));var d=Ko.create({isHost:!1,selector:l,exportAs:y(o.exportAs),isComponent:!!i,type:this._getTypeMetadata(t),template:i,changeDetection:a,inputs:o.inputs||[],outputs:o.outputs||[],host:o.host||{},providers:p||[],viewProviders:u||[],queries:h||[],viewQueries:f||[],entryComponents:c,componentViewType:i?this.getComponentViewClass(t):null,rendererType:i?this.getRendererType(t):null,componentFactory:null});return i&&(d.componentFactory=this.getComponentFactory(l,t,d.inputs,d.outputs)),r={metadata:d,annotation:o},this._nonNormalizedDirectiveCache.set(t,r),r},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(v("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+pn(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,Go.Directive);return e||this._reportError(v("Illegal state: Could not load the summary for directive "+pn(t)+"."),t),e},t.prototype.isDirective=function(t){return this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return this._pipeResolver.isPipe(t)},t.prototype.getNgModuleSummary=function(t){var e=this._loadSummary(t,Go.NgModule);if(!e){var n=this.getNgModuleMetadata(t,!1);(e=n?n.toSummary():null)&&this._summaryCache.set(t,e)}return e},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var o=this.getNgModuleMetadata(t,n),i=[];return o&&(o.declaredDirectives.forEach(function(n){var o=r._loadDirectiveMetadata(t,n.reference,e);o&&i.push(o)}),o.declaredPipes.forEach(function(t){return r._loadPipeMetadata(t.reference)})),Promise.all(i)},t.prototype.getNgModuleMetadata=function(t,n){var r=this;void 0===n&&(n=!0),t=e.resolveForwardRef(t);var o=this._ngModuleCache.get(t);if(o)return o;var i=this._ngModuleResolver.resolve(t,n);if(!i)return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=[];i.imports&&an(i.imports).forEach(function(e){var n=void 0;if(un(e))n=e;else if(e&&e.ngModule){var o=e;n=o.ngModule,o.providers&&p.push.apply(p,r._getProvidersMetadata(o.providers,h,"provider for the NgModule '"+pn(n)+"'",[],e))}if(n){if(!r._checkSelfImport(t,n)){var i=r.getNgModuleSummary(n);i?c.push(i):r._reportError(v("Unexpected "+r._getTypeDescriptor(e)+" '"+pn(e)+"' imported by the module '"+pn(t)+"'. Please add a @NgModule annotation."),t)}}else r._reportError(v("Unexpected value '"+pn(e)+"' imported by the module '"+pn(t)+"'"),t)}),i.exports&&an(i.exports).forEach(function(e){if(un(e)){var n=r.getNgModuleSummary(e);n?l.push(n):a.push(r._getIdentifierMetadata(e))}else r._reportError(v("Unexpected value '"+pn(e)+"' exported by the module '"+pn(t)+"'"),t)});var m=this._getTransitiveNgModuleMetadata(c,l);i.declarations&&an(i.declarations).forEach(function(e){if(un(e)){var n=r._getIdentifierMetadata(e);if(r._directiveResolver.isDirective(e))m.addDirective(n),s.push(n),r._addTypeToModule(e,t);else{if(!r._pipeResolver.isPipe(e))return void r._reportError(v("Unexpected "+r._getTypeDescriptor(e)+" '"+pn(e)+"' declared by the module '"+pn(t)+"'. Please add a @Pipe/@Directive/@Component annotation."),t);m.addPipe(n),m.pipes.push(n),u.push(n),r._addTypeToModule(e,t)}}else r._reportError(v("Unexpected value '"+pn(e)+"' declared by the module '"+pn(t)+"'"),t)});var y=[],g=[];return a.forEach(function(e){if(m.directivesSet.has(e.reference))y.push(e),m.addExportedDirective(e);else{if(!m.pipesSet.has(e.reference))return void r._reportError(v("Can't export "+r._getTypeDescriptor(e.reference)+" "+pn(e.reference)+" from "+pn(t)+" as it was neither declared nor imported!"),t);g.push(e),m.addExportedPipe(e)}}),i.providers&&p.push.apply(p,this._getProvidersMetadata(i.providers,h,"provider for the NgModule '"+pn(t)+"'",[],t)),i.entryComponents&&h.push.apply(h,an(i.entryComponents).map(function(t){return r._getEntryComponentMetadata(t)})),i.bootstrap&&an(i.bootstrap).forEach(function(e){un(e)?f.push(r._getIdentifierMetadata(e)):r._reportError(v("Unexpected value '"+pn(e)+"' used in the bootstrap property of module '"+pn(t)+"'"),t)}),h.push.apply(h,f.map(function(t){return r._getEntryComponentMetadata(t.reference)})),i.schemas&&d.push.apply(d,an(i.schemas)),o=new Jo({type:this._getTypeMetadata(t),providers:p,entryComponents:h,bootstrapComponents:f,schemas:d,declaredDirectives:s,exportedDirectives:y,declaredPipes:u,exportedPipes:g,importedModules:c,exportedModules:l,transitiveModule:m,id:i.id||null}),h.forEach(function(t){return m.addEntryComponent(t)}),p.forEach(function(t){return m.addProvider(t,o.type)}),m.addModule(o.type),this._ngModuleCache.set(t,o),o},t.prototype._checkSelfImport=function(t,e){return t===e&&(this._reportError(v("'"+pn(t)+"' module can't import itself"),t),!0)},t.prototype._getTypeDescriptor=function(t){return this._directiveResolver.isDirective(t)?"directive":this._pipeResolver.isPipe(t)?"pipe":this._ngModuleResolver.isNgModule(t)?"module":t.provide?"provider":"value"},t.prototype._addTypeToModule=function(t,e){var n=this._ngModuleOfTypes.get(t);n&&n!==e?this._reportError(v("Type "+pn(t)+" is part of the declarations of 2 modules: "+pn(n)+" and "+pn(e)+"! Please consider moving "+pn(t)+" to a higher module that imports "+pn(n)+" and "+pn(e)+". You can also create a new NgModule that exports and includes "+pn(t)+" then import that NgModule in "+pn(n)+" and "+pn(e)+"."),e):this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var n=new Xo,r=new Map;return t.concat(e).forEach(function(t){t.modules.forEach(function(t){return n.addModule(t)}),t.entryComponents.forEach(function(t){return n.addEntryComponent(t)});var e=new Set;t.providers.forEach(function(t){var o=R(t.provider.token),i=r.get(o);i||(i=new Set,r.set(o,i));var s=t.module.reference;!e.has(o)&&i.has(s)||(i.add(s),e.add(o),n.addProvider(t.provider,t.module))})}),e.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addExportedDirective(t)}),t.exportedPipes.forEach(function(t){return n.addExportedPipe(t)})}),t.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addDirective(t)}),t.exportedPipes.forEach(function(t){return n.addPipe(t)})}),n},t.prototype._getIdentifierMetadata=function(t){return t=e.resolveForwardRef(t),{reference:t}},t.prototype.isInjectable=function(t){return this._reflector.annotations(t).some(function(t){return t.constructor===e.Injectable})},t.prototype.getInjectableSummary=function(t){return{summaryKind:Go.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype._getInjectableMetadata=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,Go.Injectable);return n?n.type:this._getTypeMetadata(t,e)},t.prototype._getTypeMetadata=function(t,n,r){void 0===n&&(n=null),void 0===r&&(r=!0);var o=this._getIdentifierMetadata(t);return{reference:o.reference,diDeps:this._getDependenciesMetadata(o.reference,n,r),lifecycleHooks:e.ɵLIFECYCLE_HOOKS_VALUES.filter(function(t){return tn(t,o.reference)})}},t.prototype._getFactoryMetadata=function(t,n){return void 0===n&&(n=null),t=e.resolveForwardRef(t),{reference:t,diDeps:this._getDependenciesMetadata(t,n)}},t.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(v("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+pn(t)+"."),t),e||null},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,Go.Pipe);return e||this._reportError(v("Illegal state: Could not load the summary for pipe "+pn(t)+"."),t),e},t.prototype.getOrLoadPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||(e=this._loadPipeMetadata(t)),e},t.prototype._loadPipeMetadata=function(t){t=e.resolveForwardRef(t);var n=this._pipeResolver.resolve(t),r=new Qo({type:this._getTypeMetadata(t),name:n.name,pure:!!n.pure});return this._pipeCache.set(t,r),this._summaryCache.set(t,r.toSummary()),r},t.prototype._getDependenciesMetadata=function(t,n,r){var o=this;void 0===r&&(r=!0);var i=!1,s=(n||this._reflector.parameters(t)||[]).map(function(t){var n=!1,r=!1,s=!1,a=!1,u=!1,c=null;return Array.isArray(t)?t.forEach(function(t){t instanceof e.Host?r=!0:t instanceof e.Self?s=!0:t instanceof e.SkipSelf?a=!0:t instanceof e.Optional?u=!0:t instanceof e.Attribute?(n=!0,c=t.attributeName):t instanceof e.Inject?c=t.token:t instanceof e.InjectionToken?c=t:un(t)&&null==c&&(c=t)}):c=t,null==c?(i=!0,null):{isAttribute:n,isHost:r,isSelf:s,isSkipSelf:a,isOptional:u,token:o._getTokenMetadata(c)}});if(i){var a=s.map(function(t){return t?pn(t.token):"?"}).join(", "),u="Can't resolve all parameters for "+pn(t)+": ("+a+").";r?this._reportError(v(u),t):this._console.warn("Warning: "+u+" This will become an error in Angular v5.x")}return s},t.prototype._getTokenMetadata=function(t){return"string"==typeof(t=e.resolveForwardRef(t))?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,n,r,o,i){var s=this;return void 0===o&&(o=[]),t.forEach(function(a,u){if(Array.isArray(a))s._getProvidersMetadata(a,n,r,o);else{var c=void 0;if((a=e.resolveForwardRef(a))&&"object"==typeof a&&a.hasOwnProperty("provide"))s._validateProvider(a),c=new Yo(a.provide,a);else{if(!un(a)){if(void 0===a)return void s._reportError(v("Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files."));var l=t.reduce(function(t,e,n){return n<u?t.push(""+pn(e)):n==u?t.push("?"+pn(e)+"?"):n==u+1&&t.push("..."),t},[]).join(", ");return void s._reportError(v("Invalid "+(r||"provider")+" - only instances of Provider and Type are allowed, got: ["+l+"]"),i)}c=new Yo(a,{useClass:a})}c.token===he(Ga.ANALYZE_FOR_ENTRY_COMPONENTS)?n.push.apply(n,s._getEntryComponentsFromProvider(c,i)):o.push(s.getProviderMetadata(c))}}),o},t.prototype._validateProvider=function(t){t.hasOwnProperty("useClass")&&null==t.useClass&&this._reportError(v("Invalid provider for "+pn(t.provide)+". useClass cannot be "+t.useClass+".\n           Usually it happens when:\n           1. There's a circular dependency (might be caused by using index.ts (barrel) files).\n           2. Class was used before it was declared. Use forwardRef in this case."))},t.prototype._getEntryComponentsFromProvider=function(t,e){var n=this,r=[],o=[];return t.useFactory||t.useExisting||t.useClass?(this._reportError(v("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),e),[]):t.multi?(ln(t.useValue,o),o.forEach(function(t){var e=n._getEntryComponentMetadata(t.reference,!1);e&&r.push(e)}),r):(this._reportError(v("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),e),[])},t.prototype._getEntryComponentMetadata=function(t,e){void 0===e&&(e=!0);var n=this.getNonNormalizedDirectiveMetadata(t);if(n&&n.metadata.isComponent)return{componentType:t,componentFactory:n.metadata.componentFactory};var r=this._loadSummary(t,Go.Directive);if(r&&r.isComponent)return{componentType:t,componentFactory:r.componentFactory};if(e)throw v(t.name+" cannot be used as an entry component.");return null},t.prototype.getProviderMetadata=function(t){var e=void 0,n=null,r=null,o=this._getTokenMetadata(t.token);return t.useClass?(e=(n=this._getInjectableMetadata(t.useClass,t.dependencies)).diDeps,t.token===t.useClass&&(o={identifier:n})):t.useFactory&&(e=(r=this._getFactoryMetadata(t.useFactory,t.dependencies)).diDeps),{token:o,useClass:n,useValue:t.useValue,useFactory:r,useExisting:t.useExisting?this._getTokenMetadata(t.useExisting):void 0,deps:e,multi:t.multi}},t.prototype._getQueriesMetadata=function(t,e,n){var r=this,o=[];return Object.keys(t).forEach(function(i){var s=t[i];s.isViewQuery===e&&o.push(r._getQueryMetadata(s,i,n))}),o},t.prototype._queryVarBindings=function(t){return t.split(/\s*,\s*/)},t.prototype._getQueryMetadata=function(t,e,n){var r,o=this;return"string"==typeof t.selector?r=this._queryVarBindings(t.selector).map(function(t){return o._getTokenMetadata(t)}):t.selector?r=[this._getTokenMetadata(t.selector)]:(this._reportError(v("Can't construct a query for the property \""+e+'" of "'+pn(n)+"\" since the query selector wasn't defined."),n),r=[]),{selectors:r,first:t.first,descendants:t.descendants,propertyName:e,read:t.read?this._getTokenMetadata(t.read):null}},t.prototype._reportError=function(t,e,n){if(!this._errorCollector)throw t;this._errorCollector(t,e),n&&this._errorCollector(t,n)},t}();Xu.decorators=[{type:z}],Xu.ctorParameters=function(){return[{type:Zo},{type:$u},{type:zu},{type:Ku},{type:Qu},{type:tu},{type:Bu},{type:e.ɵConsole},{type:mo,decorators:[{type:e.Optional}]},{type:e.ɵReflectorReader},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Ju]}]}]};var Yu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Jr(e,t),e.prototype.visitOther=function(t,e){e.push({reference:t})},e}(Ao),Zu={};Zu.Const=0,Zu[Zu.Const]="Const";var tc=function(){function t(t){void 0===t&&(t=null),this.modifiers=t,t||(this.modifiers=[])}return t.prototype.visitType=function(t,e){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),ec={};ec.Dynamic=0,ec.Bool=1,ec.String=2,ec.Int=3,ec.Number=4,ec.Function=5,ec.Inferred=6,ec[ec.Dynamic]="Dynamic",ec[ec.Bool]="Bool",ec[ec.String]="String",ec[ec.Int]="Int",ec[ec.Number]="Number",ec[ec.Function]="Function",ec[ec.Inferred]="Inferred";var nc=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.name=e,r}return Jr(e,t),e.prototype.visitType=function(t,e){return t.visitBuiltintType(this,e)},e}(tc),rc=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.value=e,r}return Jr(e,t),e.prototype.visitType=function(t,e){return t.visitExpressionType(this,e)},e}(tc),oc=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.of=e,r}return Jr(e,t),e.prototype.visitType=function(t,e){return t.visitArrayType(this,e)},e}(tc),ic=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.valueType=e||null,r}return Jr(e,t),e.prototype.visitType=function(t,e){return t.visitMapType(this,e)},e}(tc),sc=new nc(ec.Dynamic),ac=new nc(ec.Inferred),uc=new nc(ec.Bool),cc=(new nc(ec.Int),new nc(ec.Number),new nc(ec.String),new nc(ec.Function),{});cc.Equals=0,cc.NotEquals=1,cc.Identical=2,cc.NotIdentical=3,cc.Minus=4,cc.Plus=5,cc.Divide=6,cc.Multiply=7,cc.Modulo=8,cc.And=9,cc.Or=10,cc.Lower=11,cc.LowerEquals=12,cc.Bigger=13,cc.BiggerEquals=14,cc[cc.Equals]="Equals",cc[cc.NotEquals]="NotEquals",cc[cc.Identical]="Identical",cc[cc.NotIdentical]="NotIdentical",cc[cc.Minus]="Minus",cc[cc.Plus]="Plus",cc[cc.Divide]="Divide",cc[cc.Multiply]="Multiply",cc[cc.Modulo]="Modulo",cc[cc.And]="And",cc[cc.Or]="Or",cc[cc.Lower]="Lower",cc[cc.LowerEquals]="LowerEquals",cc[cc.Bigger]="Bigger",cc[cc.BiggerEquals]="BiggerEquals";var lc=function(){function t(t,e){this.type=t||null,this.sourceSpan=e||null}return t.prototype.visitExpression=function(t,e){},t.prototype.prop=function(t,e){return new Ac(this,t,null,e)},t.prototype.key=function(t,e,n){return new Oc(this,t,e,n)},t.prototype.callMethod=function(t,e,n){return new vc(this,t,e,null,n)},t.prototype.callFn=function(t,e){return new gc(this,t,null,e)},t.prototype.instantiate=function(t,e,n){return new _c(this,t,e,n)},t.prototype.conditional=function(t,e,n){return void 0===e&&(e=null),new Cc(this,t,e,null,n)},t.prototype.equals=function(t,e){return new Pc(cc.Equals,this,t,null,e)},t.prototype.notEquals=function(t,e){return new Pc(cc.NotEquals,this,t,null,e)},t.prototype.identical=function(t,e){return new Pc(cc.Identical,this,t,null,e)},t.prototype.notIdentical=function(t,e){return new Pc(cc.NotIdentical,this,t,null,e)},t.prototype.minus=function(t,e){return new Pc(cc.Minus,this,t,null,e)},t.prototype.plus=function(t,e){return new Pc(cc.Plus,this,t,null,e)},t.prototype.divide=function(t,e){return new Pc(cc.Divide,this,t,null,e)},t.prototype.multiply=function(t,e){return new Pc(cc.Multiply,this,t,null,e)},t.prototype.modulo=function(t,e){return new Pc(cc.Modulo,this,t,null,e)},t.prototype.and=function(t,e){return new Pc(cc.And,this,t,null,e)},t.prototype.or=function(t,e){return new Pc(cc.Or,this,t,null,e)},t.prototype.lower=function(t,e){return new Pc(cc.Lower,this,t,null,e)},t.prototype.lowerEquals=function(t,e){return new Pc(cc.LowerEquals,this,t,null,e)},t.prototype.bigger=function(t,e){return new Pc(cc.Bigger,this,t,null,e)},t.prototype.biggerEquals=function(t,e){return new Pc(cc.BiggerEquals,this,t,null,e)},t.prototype.isBlank=function(t){return this.equals(Lc,t)},t.prototype.cast=function(t,e){return new Sc(this,t,e)},t.prototype.toStmt=function(){return new Hc(this,null)},t}(),pc={};pc.This=0,pc.Super=1,pc.CatchError=2,pc.CatchStack=3,pc[pc.This]="This",pc[pc.Super]="Super",pc[pc.CatchError]="CatchError",pc[pc.CatchStack]="CatchStack";var hc=function(t){function e(e,n,r){var o=t.call(this,n,r)||this;return"string"==typeof e?(o.name=e,o.builtin=null):(o.name=null,o.builtin=e),o}return Jr(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadVarExpr(this,e)},e.prototype.set=function(t){if(!this.name)throw new Error("Built in variable "+this.builtin+" can not be assigned to.");return new fc(this.name,t,null,this.sourceSpan)},e}(lc),fc=function(t){function e(e,n,r,o){var i=t.call(this,r||n.type,o)||this;return i.name=e,i.value=n,i}return Jr(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteVarExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return new Uc(this.name,this.value,t,e,this.sourceSpan)},e}(lc),dc=function(t){function e(e,n,r,o,i){var s=t.call(this,o||r.type,i)||this;return s.receiver=e,s.index=n,s.value=r,s}return Jr(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteKeyExpr(this,e)},e}(lc),mc=function(t){function e(e,n,r,o,i){var s=t.call(this,o||r.type,i)||this;return s.receiver=e,s.name=n,s.value=r,s}return Jr(e,t),e.prototype.visitExpression=function(t,e){return t.visitWritePropExpr(this,e)},e}(lc),yc={};yc.ConcatArray=0,yc.SubscribeObservable=1,yc.Bind=2,yc[yc.ConcatArray]="ConcatArray",yc[yc.SubscribeObservable]="SubscribeObservable",yc[yc.Bind]="Bind";var vc=function(t){function e(e,n,r,o,i){var s=t.call(this,o,i)||this;return s.receiver=e,s.args=r,"string"==typeof n?(s.name=n,s.builtin=null):(s.name=null,s.builtin=n),s}return Jr(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeMethodExpr(this,e)},e}(lc),gc=function(t){function e(e,n,r,o){var i=t.call(this,r,o)||this;return i.fn=e,i.args=n,i}return Jr(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeFunctionExpr(this,e)},e}(lc),_c=function(t){function e(e,n,r,o){var i=t.call(this,r,o)||this;return i.classExpr=e,i.args=n,i}return Jr(e,t),e.prototype.visitExpression=function(t,e){return t.visitInstantiateExpr(this,e)},e}(lc),bc=function(t){function e(e,n,r){var o=t.call(this,n,r)||this;return o.value=e,o}return Jr(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralExpr(this,e)},e}(lc),wc=function(t){function e(e,n,r,o){void 0===r&&(r=null);var i=t.call(this,n,o)||this;return i.value=e,i.typeParams=r,i}return Jr(e,t),e.prototype.visitExpression=function(t,e){return t.visitExternalExpr(this,e)},e}(lc),Cc=function(t){function e(e,n,r,o,i){void 0===r&&(r=null);var s=t.call(this,o||n.type,i)||this;return s.condition=e,s.falseCase=r,s.trueCase=n,s}return Jr(e,t),e.prototype.visitExpression=function(t,e){return t.visitConditionalExpr(this,e)},e}(lc),Ec=function(t){function e(e,n){var r=t.call(this,uc,n)||this;return r.condition=e,r}return Jr(e,t),e.prototype.visitExpression=function(t,e){return t.visitNotExpr(this,e)},e}(lc),Sc=function(t){function e(e,n,r){var o=t.call(this,n,r)||this;return o.value=e,o}return Jr(e,t),e.prototype.visitExpression=function(t,e){return t.visitCastExpr(this,e)},e}(lc),xc=function(){function t(t,e){void 0===e&&(e=null),this.name=t,this.type=e}return t}(),Tc=function(t){function e(e,n,r,o){var i=t.call(this,r,o)||this;return i.params=e,i.statements=n,i}return Jr(e,t),e.prototype.visitExpression=function(t,e){return t.visitFunctionExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===e&&(e=null),new Bc(t,this.params,this.statements,this.type,e,this.sourceSpan)},e}(lc),Pc=function(t){function e(e,n,r,o,i){var s=t.call(this,o||n.type,i)||this;return s.operator=e,s.rhs=r,s.lhs=n,s}return Jr(e,t),e.prototype.visitExpression=function(t,e){return t.visitBinaryOperatorExpr(this,e)},e}(lc),Ac=function(t){function e(e,n,r,o){var i=t.call(this,r,o)||this;return i.receiver=e,i.name=n,i}return Jr(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadPropExpr(this,e)},e.prototype.set=function(t){return new mc(this.receiver,this.name,t,null,this.sourceSpan)},e}(lc),Oc=function(t){function e(e,n,r,o){var i=t.call(this,r,o)||this;return i.receiver=e,i.index=n,i}return Jr(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadKeyExpr(this,e)},e.prototype.set=function(t){return new dc(this.receiver,this.index,t,null,this.sourceSpan)},e}(lc),Mc=function(t){function e(e,n,r){var o=t.call(this,n,r)||this;return o.entries=e,o}return Jr(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralArrayExpr(this,e)},e}(lc),Rc=function(){function t(t,e,n){void 0===n&&(n=!1),this.key=t,this.value=e,this.quoted=n}return t}(),kc=function(t){function e(e,n,r){var o=t.call(this,n,r)||this;return o.entries=e,o.valueType=null,n&&(o.valueType=n.valueType),o}return Jr(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralMapExpr(this,e)},e}(lc),Nc=function(t){function e(e,n){var r=t.call(this,e[e.length-1].type,n)||this;return r.parts=e,r}return Jr(e,t),e.prototype.visitExpression=function(t,e){return t.visitCommaExpr(this,e)},e}(lc),Ic=new hc(pc.This,null,null),jc=new hc(pc.Super,null,null),Dc=(new hc(pc.CatchError,null,null),new hc(pc.CatchStack,null,null),new bc(null,null,null)),Lc=new bc(null,ac,null),Vc={};Vc.Final=0,Vc.Private=1,Vc[Vc.Final]="Final",Vc[Vc.Private]="Private";var Fc=function(){function t(t,e){this.modifiers=t||[],this.sourceSpan=e||null}return t.prototype.visitStatement=function(t,e){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),Uc=function(t){function e(e,n,r,o,i){void 0===o&&(o=null);var s=t.call(this,o,i)||this;return s.name=e,s.value=n,s.type=r||n.type,s}return Jr(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareVarStmt(this,e)},e}(Fc),Bc=function(t){function e(e,n,r,o,i,s){void 0===i&&(i=null);var a=t.call(this,i,s)||this;return a.name=e,a.params=n,a.statements=r,a.type=o||null,a}return Jr(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareFunctionStmt(this,e)},e}(Fc),Hc=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.expr=e,r}return Jr(e,t),e.prototype.visitStatement=function(t,e){return t.visitExpressionStmt(this,e)},e}(Fc),qc=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.value=e,r}return Jr(e,t),e.prototype.visitStatement=function(t,e){return t.visitReturnStmt(this,e)},e}(Fc),zc=function(){function t(t,e){this.modifiers=e,e||(this.modifiers=[]),this.type=t||null}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),Gc=function(t){function e(e,n,r){void 0===r&&(r=null);var o=t.call(this,n,r)||this;return o.name=e,o}return Jr(e,t),e}(zc),Wc=function(t){function e(e,n,r,o,i){void 0===i&&(i=null);var s=t.call(this,o,i)||this;return s.name=e,s.params=n,s.body=r,s}return Jr(e,t),e}(zc),$c=function(t){function e(e,n,r,o){void 0===o&&(o=null);var i=t.call(this,r,o)||this;return i.name=e,i.body=n,i}return Jr(e,t),e}(zc),Kc=function(t){function e(e,n,r,o,i,s,a,u){void 0===a&&(a=null);var c=t.call(this,a,u)||this;return c.name=e,c.parent=n,c.fields=r,c.getters=o,c.constructorMethod=i,c.methods=s,c}return Jr(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareClassStmt(this,e)},e}(Fc),Qc=function(t){function e(e,n,r,o){void 0===r&&(r=[]);var i=t.call(this,null,o)||this;return i.condition=e,i.trueCase=n,i.falseCase=r,i}return Jr(e,t),e.prototype.visitStatement=function(t,e){return t.visitIfStmt(this,e)},e}(Fc),Jc=function(t){function e(e,n,r){var o=t.call(this,null,r)||this;return o.bodyStmts=e,o.catchStmts=n,o}return Jr(e,t),e.prototype.visitStatement=function(t,e){return t.visitTryCatchStmt(this,e)},e}(Fc),Xc=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.error=e,r}return Jr(e,t),e.prototype.visitStatement=function(t,e){return t.visitThrowStmt(this,e)},e}(Fc),Yc=function(){function t(){}return t.prototype.transformExpr=function(t,e){return t},t.prototype.transformStmt=function(t,e){return t},t.prototype.visitReadVarExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitWriteVarExpr=function(t,e){return this.transformExpr(new fc(t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWriteKeyExpr=function(t,e){return this.transformExpr(new dc(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWritePropExpr=function(t,e){return this.transformExpr(new mc(t.receiver.visitExpression(this,e),t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeMethodExpr=function(t,e){var n=t.builtin||t.name;return this.transformExpr(new vc(t.receiver.visitExpression(this,e),n,this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeFunctionExpr=function(t,e){return this.transformExpr(new gc(t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInstantiateExpr=function(t,e){return this.transformExpr(new _c(t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitExternalExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitConditionalExpr=function(t,e){return this.transformExpr(new Cc(t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitNotExpr=function(t,e){return this.transformExpr(new Ec(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCastExpr=function(t,e){return this.transformExpr(new Sc(t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitFunctionExpr=function(t,e){return this.transformExpr(new Tc(t.params,this.visitAllStatements(t.statements,e),t.type,t.sourceSpan),e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return this.transformExpr(new Pc(t.operator,t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitReadPropExpr=function(t,e){return this.transformExpr(new Ac(t.receiver.visitExpression(this,e),t.name,t.type,t.sourceSpan),e)},t.prototype.visitReadKeyExpr=function(t,e){return this.transformExpr(new Oc(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralArrayExpr=function(t,e){return this.transformExpr(new Mc(this.visitAllExpressions(t.entries,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r=t.entries.map(function(t){return new Rc(t.key,t.value.visitExpression(n,e),t.quoted)}),o=new ic(t.valueType,null);return this.transformExpr(new kc(r,o,t.sourceSpan),e)},t.prototype.visitCommaExpr=function(t,e){return this.transformExpr(new Nc(this.visitAllExpressions(t.parts,e),t.sourceSpan),e)},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return this.transformStmt(new Uc(t.name,t.value.visitExpression(this,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.transformStmt(new Bc(t.name,t.params,this.visitAllStatements(t.statements,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitExpressionStmt=function(t,e){return this.transformStmt(new Hc(t.expr.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitReturnStmt=function(t,e){return this.transformStmt(new qc(t.value.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitDeclareClassStmt=function(t,e){var n=this,r=t.parent.visitExpression(this,e),o=t.getters.map(function(t){return new $c(t.name,n.visitAllStatements(t.body,e),t.type,t.modifiers)}),i=t.constructorMethod&&new Wc(t.constructorMethod.name,t.constructorMethod.params,this.visitAllStatements(t.constructorMethod.body,e),t.constructorMethod.type,t.constructorMethod.modifiers),s=t.methods.map(function(t){return new Wc(t.name,t.params,n.visitAllStatements(t.body,e),t.type,t.modifiers)});return this.transformStmt(new Kc(t.name,r,t.fields,o,i,s,t.modifiers,t.sourceSpan),e)},t.prototype.visitIfStmt=function(t,e){return this.transformStmt(new Qc(t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t.sourceSpan),e)},t.prototype.visitTryCatchStmt=function(t,e){return this.transformStmt(new Jc(this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t.sourceSpan),e)},t.prototype.visitThrowStmt=function(t,e){return this.transformStmt(new Xc(t.error.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCommentStmt=function(t,e){return this.transformStmt(t,e)},t.prototype.visitAllStatements=function(t,e){var n=this;return t.map(function(t){return t.visitStatement(n,e)})},t}(),Zc=function(t){function e(){var e=t.apply(this,arguments)||this;return e.varNames=new Set,e}return Jr(e,t),e.prototype.visitDeclareFunctionStmt=function(t,e){return t},e.prototype.visitDeclareClassStmt=function(t,e){return t},e.prototype.visitReadVarExpr=function(t,e){return t.name&&this.varNames.add(t.name),null},e}(function(){function t(){}return t.prototype.visitReadVarExpr=function(t,e){return t},t.prototype.visitWriteVarExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitWriteKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitWritePropExpr=function(t,e){return t.receiver.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitInvokeMethodExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInstantiateExpr=function(t,e){return t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitLiteralExpr=function(t,e){return t},t.prototype.visitExternalExpr=function(t,e){return t},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t},t.prototype.visitNotExpr=function(t,e){return t.condition.visitExpression(this,e),t},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitFunctionExpr=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitBinaryOperatorExpr=function(t,e){return t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),t},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e),t},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return t.entries.forEach(function(t){return t.value.visitExpression(n,e)}),t},t.prototype.visitCommaExpr=function(t,e){this.visitAllExpressions(t.parts,e)},t.prototype.visitAllExpressions=function(t,e){var n=this;t.forEach(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),t},t.prototype.visitReturnStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareClassStmt=function(t,e){var n=this;return t.parent.visitExpression(this,e),t.getters.forEach(function(t){return n.visitAllStatements(t.body,e)}),t.constructorMethod&&this.visitAllStatements(t.constructorMethod.body,e),t.methods.forEach(function(t){return n.visitAllStatements(t.body,e)}),t},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t},t.prototype.visitTryCatchStmt=function(t,e){return this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t},t.prototype.visitThrowStmt=function(t,e){return t.error.visitExpression(this,e),t},t.prototype.visitCommentStmt=function(t,e){return t},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}()),tl=function(t){function e(e){var n=t.call(this)||this;return n.sourceSpan=e,n}return Jr(e,t),e.prototype._clone=function(t){var e=Object.create(t.constructor.prototype);for(var n in t)e[n]=t[n];return e},e.prototype.transformExpr=function(t,e){return t.sourceSpan||((t=this._clone(t)).sourceSpan=this.sourceSpan),t},e.prototype.transformStmt=function(t,e){return t.sourceSpan||((t=this._clone(t)).sourceSpan=this.sourceSpan),t},e}(Yc),el=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return bn(t.map(function(t){return d(t,n,null)}),e)},t.prototype.visitStringMap=function(t,e){var n=this,r=[],o=new Set(t&&t.$quoted$);return Object.keys(t).forEach(function(e){r.push(new Rc(e,d(t[e],n,null),o.has(e)))}),new kc(r,e)},t.prototype.visitPrimitive=function(t,e){return Sn(t,e)},t.prototype.visitOther=function(t,e){return t instanceof lc?t:vn({reference:t})},t}(),nl=function(){function t(t){this.compType=t}return t}(),rl=function(){function t(t,e,n){this.statements=t,this.ngModuleFactoryVar=e,this.dependencies=n}return t}(),ol=function(){function t(){}return t.prototype.compile=function(t,e){var n=ct("NgModule",t.type),r=[],o=[],i=t.transitiveModule.entryComponents.map(function(e){return t.bootstrapComponents.some(function(t){return t.reference===e.componentType})&&o.push({reference:e.componentFactory}),r.push(new nl(e.componentType)),{reference:e.componentFactory}}),s=new il(t,i,o,n);new Za(t,e,n).parse().forEach(function(t){return s.addProvider(t)});var a=s.build(),u=E(t.type)+"NgFactory",c=[a,yn(u).set(vn(fe(Ga.NgModuleFactory)).instantiate([yn(a.name),vn(t.type)],gn(fe(Ga.NgModuleFactory),[gn(t.type)],[Zu.Const]))).toDeclStmt(null,[Vc.Final])];if(t.id){var l=vn(fe(Ga.RegisterModuleFactoryFn)).callFn([Sn(t.id),yn(u)]).toStmt();c.push(l)}return new rl(c,u,r)},t}();ol.decorators=[{type:z}],ol.ctorParameters=function(){return[]};var il=function(){function t(t,e,n,r){this._ngModuleMeta=t,this._entryComponentFactories=e,this._bootstrapComponentFactories=n,this._sourceSpan=r,this.fields=[],this.getters=[],this.methods=[],this.ctorStmts=[],this._lazyProps=new Map,this._tokens=[],this._instances=new Map,this._createStmts=[],this._destroyStmts=[]}return t.prototype.addProvider=function(t){var n=this,r=t.providers.map(function(t){return n._getProviderValue(t)}),o="_"+M(t.token)+"_"+this._instances.size,i=this._createProviderProperty(o,t,r,t.multiProvider,t.eager);if(-1!==t.lifecycleHooks.indexOf(e.ɵLifecycleHooks.OnDestroy)){var s=i.callMethod("ngOnDestroy",[]);t.eager||(s=this._lazyProps.get(i.name).and(s)),this._destroyStmts.push(s.toStmt())}this._tokens.push(t.token),this._instances.set(R(t.token),i)},t.prototype.build=function(){var t=this,e=this._tokens.map(function(e){var n=t._instances.get(R(e));return new Qc(al.token.identical(An(e)),[new qc(n)])}),n=[new Wc("createInternal",[],this._createStmts.concat(new qc(this._instances.get(this._ngModuleMeta.type.reference))),gn(this._ngModuleMeta.type)),new Wc("getInternal",[new xc(al.token.name,sc),new xc(al.notFoundResult.name,sc)],e.concat([new qc(al.notFoundResult)]),sc),new Wc("destroyInternal",[],this._destroyStmts)],r=[yn(sl.parent.name),bn(this._entryComponentFactories.map(function(t){return vn(t)})),bn(this._bootstrapComponentFactories.map(function(t){return vn(t)}))];return xn({name:E(this._ngModuleMeta.type)+"Injector",ctorParams:[new xc(sl.parent.name,gn(fe(Ga.Injector)))],parent:vn(fe(Ga.NgModuleInjector),[gn(this._ngModuleMeta.type)]),parentArgs:r,builders:[{methods:n},this]})},t.prototype._getProviderValue=function(t){var e,n=this;if(null!=t.useExisting)e=this._getDependency({token:t.useExisting});else if(null!=t.useFactory){o=(r=t.deps||t.useFactory.diDeps).map(function(t){return n._getDependency(t)});e=vn(t.useFactory).callFn(o)}else if(null!=t.useClass){var r=t.deps||t.useClass.diDeps,o=r.map(function(t){return n._getDependency(t)});e=vn(t.useClass).instantiate(o,gn(t.useClass))}else e=Pn(t.useValue);return e},t.prototype._createProviderProperty=function(t,e,n,r,o){var i,s;if(r?(i=bn(n),s=new oc(sc)):(i=n[0],s=n[0].type),s||(s=sc),o)this.fields.push(new Gc(t,s)),this._createStmts.push(Ic.prop(t).set(i).toStmt());else{var a=Ic.prop("_"+t);this.fields.push(new Gc(a.name,s));var u=[new Qc(a.isBlank(),[a.set(i).toStmt()]),new qc(a)];this.getters.push(new $c(t,u,s)),this._lazyProps.set(t,a)}return Ic.prop(t)},t.prototype._getDependency=function(t){var e=null;if(t.isValue&&(e=Sn(t.value)),t.isSkipSelf||(t.token&&(R(t.token)===he(Ga.Injector)?e=Ic:R(t.token)===he(Ga.ComponentFactoryResolver)&&(e=Ic.prop("componentFactoryResolver"))),e||(e=this._instances.get(R(t.token)))),!e){var n=[An(t.token)];t.isOptional&&n.push(Dc),e=sl.parent.callMethod("get",n)}return e},t}(),sl=function(){function t(){}return t}();sl.parent=Ic.prop("parent");var al=function(){function t(){}return t}();al.token=yn("token"),al.notFoundResult=yn("notFoundResult");var ul=function(){function t(t){void 0===t&&(t=null),this.file=t,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return t.prototype.addSource=function(t,e){return void 0===e&&(e=null),this.sourcesContent.has(t)||this.sourcesContent.set(t,e),this},t.prototype.addLine=function(){return this.lines.push([]),this.lastCol0=0,this},t.prototype.addMapping=function(t,e,n,r){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=e&&!this.sourcesContent.has(e))throw new Error('Unknown source file "'+e+'"');if(null==t)throw new Error("The column in the generated code must be provided");if(t<this.lastCol0)throw new Error("Mapping should be added in output order");if(e&&(null==n||null==r))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=t,this.currentLine.push({col0:t,sourceUrl:e,sourceLine0:n,sourceCol0:r}),this},Object.defineProperty(t.prototype,"currentLine",{get:function(){return this.lines.slice(-1)[0]},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){var t=this;if(!this.hasMappings)return null;var e=new Map,n=[],r=[];Array.from(this.sourcesContent.keys()).forEach(function(o,i){e.set(o,i),n.push(o),r.push(t.sourcesContent.get(o)||null)});var o="",i=0,s=0,a=0,u=0;return this.lines.forEach(function(t){i=0,o+=t.map(function(t){var n=Mn(t.col0-i);return i=t.col0,null!=t.sourceUrl&&(n+=Mn(e.get(t.sourceUrl)-s),s=e.get(t.sourceUrl),n+=Mn(t.sourceLine0-a),a=t.sourceLine0,n+=Mn(t.sourceCol0-u),u=t.sourceCol0),n}).join(","),o+=";"}),o=o.slice(0,-1),{file:this.file||"",version:3,sourceRoot:"",sources:n,sourcesContent:r,mappings:o}},t.prototype.toJsComment=function(){return this.hasMappings?"//# sourceMappingURL=data:application/json;base64,"+On(JSON.stringify(this,null,0)):""},t}(),cl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ll=/'|\\|\n|\r|\$/g,pl=/^[$A-Z_][0-9A-Z_$]*$/i,hl="  ",fl=yn("error",null,null),dl=yn("stack",null,null),ml=function(){function t(t){this.indent=t,this.parts=[],this.srcSpans=[]}return t}(),yl=function(){function t(t,e){this._exportedVars=t,this._indent=e,this._classes=[],this._lines=[new ml(e)]}return t.createRoot=function(e){return new t(e,0)},Object.defineProperty(t.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),t.prototype.isExportedVar=function(t){return-1!==this._exportedVars.indexOf(t)},t.prototype.println=function(t,e){void 0===e&&(e=""),this.print(t||null,e,!0)},t.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},t.prototype.print=function(t,e,n){void 0===n&&(n=!1),e.length>0&&(this._currentLine.parts.push(e),this._currentLine.srcSpans.push(t&&t.sourceSpan||null)),n&&this._lines.push(new ml(this._indent))},t.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},t.prototype.incIndent=function(){this._indent++,this._currentLine.indent=this._indent},t.prototype.decIndent=function(){this._indent--,this._currentLine.indent=this._indent},t.prototype.pushClass=function(t){this._classes.push(t)},t.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(t.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.toSource=function(){return this.sourceLines.map(function(t){return t.parts.length>0?Nn(t.indent)+t.parts.join(""):""}).join("\n")},t.prototype.toSourceMapGenerator=function(t,e,n){void 0===n&&(n=0);for(var r=new ul(e),o=!1,i=function(){o||(r.addSource(t," ").addMapping(0,t,0,0),o=!0)},s=0;s<n;s++)r.addLine(),i();return this.sourceLines.forEach(function(t,e){r.addLine();for(var n=t.srcSpans,s=t.parts,a=t.indent*hl.length,u=0;u<n.length&&!n[u];)a+=s[u].length,u++;for(u<n.length&&0===e&&0===a?o=!0:i();u<n.length;){var c=n[u],l=c.start.file,p=c.start.line,h=c.start.col;for(r.addSource(l.url,l.content).addMapping(a,l.url,p,h),a+=s[u].length,u++;u<n.length&&(c===n[u]||!n[u]);)a+=s[u].length,u++}}),r},Object.defineProperty(t.prototype,"sourceLines",{get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines},enumerable:!0,configurable:!0}),t}(),vl=function(){function t(t){this._escapeDollarInStrings=t}return t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitReturnStmt=function(t,e){return e.print(t,"return "),t.value.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCastExpr=function(t,e){},t.prototype.visitDeclareClassStmt=function(t,e){},t.prototype.visitIfStmt=function(t,e){e.print(t,"if ("),t.condition.visitExpression(this,e),e.print(t,") {");var n=null!=t.falseCase&&t.falseCase.length>0;return t.trueCase.length<=1&&!n?(e.print(t," "),this.visitAllStatements(t.trueCase,e),e.removeEmptyLastLine(),e.print(t," ")):(e.println(),e.incIndent(),this.visitAllStatements(t.trueCase,e),e.decIndent(),n&&(e.println(t,"} else {"),e.incIndent(),this.visitAllStatements(t.falseCase,e),e.decIndent())),e.println(t,"}"),null},t.prototype.visitTryCatchStmt=function(t,e){},t.prototype.visitThrowStmt=function(t,e){return e.print(t,"throw "),t.error.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCommentStmt=function(t,e){return t.comment.split("\n").forEach(function(n){e.println(t,"// "+n)}),null},t.prototype.visitDeclareVarStmt=function(t,e){},t.prototype.visitWriteVarExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),e.print(t,t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWriteKeyExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"] = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWritePropExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"."+t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitInvokeMethodExpr=function(t,e){t.receiver.visitExpression(this,e);var n=t.name;return null!=t.builtin&&null==(n=this.getBuiltinMethodName(t.builtin))?null:(e.print(t,"."+n+"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null)},t.prototype.getBuiltinMethodName=function(t){},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(null!=t.builtin)switch(t.builtin){case pc.Super:n="super";break;case pc.This:n="this";break;case pc.CatchError:n=fl.name;break;case pc.CatchStack:n=dl.name;break;default:throw new Error("Unknown builtin variable "+t.builtin)}return e.print(t,n),null},t.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),t.classExpr.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitLiteralExpr=function(t,e){var n=t.value;return"string"==typeof n?e.print(t,kn(n,this._escapeDollarInStrings)):e.print(t,""+n),null},t.prototype.visitExternalExpr=function(t,e){},t.prototype.visitConditionalExpr=function(t,e){return e.print(t,"("),t.condition.visitExpression(this,e),e.print(t,"? "),t.trueCase.visitExpression(this,e),e.print(t,": "),t.falseCase.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitNotExpr=function(t,e){return e.print(t,"!"),t.condition.visitExpression(this,e),null},t.prototype.visitFunctionExpr=function(t,e){},t.prototype.visitDeclareFunctionStmt=function(t,e){},t.prototype.visitBinaryOperatorExpr=function(t,e){var n;switch(t.operator){case cc.Equals:n="==";break;case cc.Identical:n="===";break;case cc.NotEquals:n="!=";break;case cc.NotIdentical:n="!==";break;case cc.And:n="&&";break;case cc.Or:n="||";break;case cc.Plus:n="+";break;case cc.Minus:n="-";break;case cc.Divide:n="/";break;case cc.Multiply:n="*";break;case cc.Modulo:n="%";break;case cc.Lower:n="<";break;case cc.LowerEquals:n="<=";break;case cc.Bigger:n=">";break;case cc.BiggerEquals:n=">=";break;default:throw new Error("Unknown operator "+t.operator)}return e.print(t,"("),t.lhs.visitExpression(this,e),e.print(t," "+n+" "),t.rhs.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"."),e.print(t,t.name),null},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"]"),null},t.prototype.visitLiteralArrayExpr=function(t,e){var n=t.entries.length>1;return e.print(t,"[",n),e.incIndent(),this.visitAllExpressions(t.entries,e,",",n),e.decIndent(),e.print(t,"]",n),null},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r=t.entries.length>1;return e.print(t,"{",r),e.incIndent(),this.visitAllObjects(function(r){e.print(t,kn(r.key,n._escapeDollarInStrings,r.quoted)+": "),r.value.visitExpression(n,e)},t.entries,e,",",r),e.decIndent(),e.print(t,"}",r),null},t.prototype.visitCommaExpr=function(t,e){return e.print(t,"("),this.visitAllExpressions(t.parts,e,","),e.print(t,")"),null},t.prototype.visitAllExpressions=function(t,e,n,r){var o=this;void 0===r&&(r=!1),this.visitAllObjects(function(t){return t.visitExpression(o,e)},t,e,n,r)},t.prototype.visitAllObjects=function(t,e,n,r,o){void 0===o&&(o=!1);for(var i=0;i<e.length;i++)i>0&&n.print(null,r,o),t(e[i]);o&&n.println()},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}(),gl="/debug/lib",_l=function(){function t(t){this._importResolver=t}return t.prototype.emitStatements=function(t,e,n,r,o){var i=this;void 0===o&&(o="");var s=new bl(e,this._importResolver),a=yl.createRoot(r);s.visitAllStatements(n,a);var u=o?o.split("\n"):[];s.reexports.forEach(function(t,n){var r=t.map(function(t){return t.name+" as "+t.as}).join(",");u.push("export {"+r+"} from '"+i._importResolver.fileNameToModuleName(n,e)+"';")}),s.importsWithPrefixes.forEach(function(t,n){u.push("import * as "+t+" from '"+i._importResolver.fileNameToModuleName(n,e)+"';")});var c=a.toSourceMapGenerator(t,e,u.length).toJsComment(),l=u.concat([a.toSource(),c]);return c&&l.push(""),l.join("\n")},t}(),bl=function(t){function e(e,n){var r=t.call(this,!1)||this;return r._genFilePath=e,r._importResolver=n,r.typeExpression=0,r.importsWithPrefixes=new Map,r.reexports=new Map,r}return Jr(e,t),e.prototype.visitType=function(t,e,n){void 0===n&&(n="any"),t?(this.typeExpression++,t.visitType(this,e),this.typeExpression--):e.print(null,n)},e.prototype.visitLiteralExpr=function(e,n){var r=e.value;return null==r&&e.type!=ac?(n.print(e,"("+r+" as any)"),null):t.prototype.visitLiteralExpr.call(this,e,n)},e.prototype.visitLiteralArrayExpr=function(e,n){0===e.entries.length&&n.print(e,"(");var r=t.prototype.visitLiteralArrayExpr.call(this,e,n);return 0===e.entries.length&&n.print(e," as any[])"),r},e.prototype.visitExternalExpr=function(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null},e.prototype.visitDeclareVarStmt=function(t,e){if(e.isExportedVar(t.name)&&t.value instanceof wc&&!t.type){var n=this._resolveStaticSymbol(t.value.value),r=n.name,o=n.filePath;if(0===n.members.length&&o!==this._genFilePath){var i=this.reexports.get(o);return i||(i=[],this.reexports.set(o,i)),i.push({name:r,as:t.name}),null}}return e.isExportedVar(t.name)&&e.print(t,"export "),t.hasModifier(Vc.Final)?e.print(t,"const"):e.print(t,"var"),e.print(t," "+t.name),this._printColonType(t.type,e),e.print(t," = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return e.print(t,"(<"),t.type.visitType(this,e),e.print(t,">"),t.value.visitExpression(this,e),e.print(t,")"),null},e.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),this.typeExpression++,t.classExpr.visitExpression(this,e),this.typeExpression--,e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),e.isExportedVar(t.name)&&e.print(t,"export "),e.print(t,"class "+t.name),null!=t.parent&&(e.print(t," extends "),this.typeExpression++,t.parent.visitExpression(this,e),this.typeExpression--),e.println(t," {"),e.incIndent(),t.fields.forEach(function(t){return n._visitClassField(t,e)}),null!=t.constructorMethod&&this._visitClassConstructor(t,e),t.getters.forEach(function(t){return n._visitClassGetter(t,e)}),t.methods.forEach(function(t){return n._visitClassMethod(t,e)}),e.decIndent(),e.println(t,"}"),e.popClass(),null},e.prototype._visitClassField=function(t,e){t.hasModifier(Vc.Private)&&e.print(null,"/*private*/ "),e.print(null,t.name),this._printColonType(t.type,e),e.println(null,";")},e.prototype._visitClassGetter=function(t,e){t.hasModifier(Vc.Private)&&e.print(null,"private "),e.print(null,"get "+t.name+"()"),this._printColonType(t.type,e),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype._visitClassConstructor=function(t,e){e.print(t,"constructor("),this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.constructorMethod.body,e),e.decIndent(),e.println(t,"}")},e.prototype._visitClassMethod=function(t,e){t.hasModifier(Vc.Private)&&e.print(null,"private "),e.print(null,t.name+"("),this._visitParams(t.params,e),e.print(null,")"),this._printColonType(t.type,e,"void"),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," => {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.isExportedVar(t.name)&&e.print(t,"export "),e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+fl.name+") {"),e.incIndent();var n=[dl.set(fl.prop("stack",null)).toDeclStmt(null,[Vc.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitBuiltintType=function(t,e){var n;switch(t.name){case ec.Bool:n="boolean";break;case ec.Dynamic:n="any";break;case ec.Function:n="Function";break;case ec.Number:case ec.Int:n="number";break;case ec.String:n="string";break;default:throw new Error("Unsupported builtin type "+t.name)}return e.print(null,n),null},e.prototype.visitExpressionType=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitArrayType=function(t,e){return this.visitType(t.of,e),e.print(null,"[]"),null},e.prototype.visitMapType=function(t,e){return e.print(null,"{[key: string]:"),this.visitType(t.valueType,e),e.print(null,"}"),null},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case yc.ConcatArray:e="concat";break;case yc.SubscribeObservable:e="subscribe";break;case yc.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e.prototype._visitParams=function(t,e){var n=this;this.visitAllObjects(function(t){e.print(null,t.name),n._printColonType(t.type,e)},t,e,",")},e.prototype._resolveStaticSymbol=function(t){var e=t.reference;if(!(e instanceof fo))throw new Error("Internal error: unknown identifier "+JSON.stringify(t));var n=this._importResolver.getTypeArity(e)||void 0,r=this._importResolver.getImportAs(e)||e;return{name:r.name,filePath:r.filePath,members:r.members,arity:n}},e.prototype._visitIdentifier=function(t,e,n){var r=this,o=this._resolveStaticSymbol(t),i=o.name,s=o.filePath,a=o.members,u=o.arity;if(s!=this._genFilePath){var c=this.importsWithPrefixes.get(s);null==c&&(c="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(s,c)),n.print(null,c+".")}if(a.length?(n.print(null,i),n.print(null,"."),n.print(null,a.join("."))):n.print(null,i),this.typeExpression>0){var l=e&&e.length||0,p=(u||0)-l;if(l>0||p>0){if(n.print(null,"<"),l>0&&this.visitAllObjects(function(t){return t.visitType(r,n)},e,n,","),p>0)for(var h=0;h<p;h++)(h>0||l>0)&&n.print(null,","),n.print(null,"any");n.print(null,">")}}},e.prototype._printColonType=function(t,e,n){t!==ac&&(e.print(null,":"),this.visitType(t,e,n))},e}(vl),wl={};jn(e.SecurityContext.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),jn(e.SecurityContext.STYLE,["*|style"]),jn(e.SecurityContext.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","img|srcset","input|src","ins|cite","q|cite","source|src","source|srcset","track|src","video|poster","video|src"]),jn(e.SecurityContext.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"]);var Cl="boolean",El="number",Sl="string",xl="object",Tl=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","keygen^[HTMLElement]|!autofocus,challenge,!disabled,keytype,name","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:cursor^:svg:|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime"],Pl={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Al=function(t){function n(){var e=t.call(this)||this;return e._schema={},Tl.forEach(function(t){var n={},r=t.split("|"),o=r[0],i=r[1].split(","),s=o.split("^"),a=s[0],u=s[1];a.split(",").forEach(function(t){return e._schema[t.toLowerCase()]=n});var c=u&&e._schema[u.toLowerCase()];c&&Object.keys(c).forEach(function(t){n[t]=c[t]}),i.forEach(function(t){if(t.length>0)switch(t[0]){case"*":break;case"!":n[t.substring(1)]=Cl;break;case"#":n[t.substring(1)]=El;break;case"%":n[t.substring(1)]=xl;break;default:n[t]=Sl}})}),e}return Jr(n,t),n.prototype.hasProperty=function(t,n,r){if(r.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if(o(t)||i(t))return!1;if(r.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!(this._schema[t.toLowerCase()]||this._schema.unknown)[n]},n.prototype.hasElement=function(t,n){if(n.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if(o(t)||i(t))return!0;if(n.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!this._schema[t.toLowerCase()]},n.prototype.securityContext=function(t,n,r){r&&(n=this.getMappedPropName(n)),t=t.toLowerCase(),n=n.toLowerCase();var o=wl[t+"|"+n];return o||((o=wl["*|"+n])||e.SecurityContext.NONE)},n.prototype.getMappedPropName=function(t){return Pl[t]||t},n.prototype.getDefaultComponentElementName=function(){return"ng-component"},n.prototype.validateProperty=function(t){return t.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event property '"+t+"' is disallowed for security reasons, please use ("+t.slice(2)+")=...\nIf '"+t+"' is a directive input, make sure the directive is imported by the current module."}:{error:!1}},n.prototype.validateAttribute=function(t){return t.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event attribute '"+t+"' is disallowed for security reasons, please use ("+t.slice(2)+")=..."}:{error:!1}},n.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},n.prototype.normalizeAnimationStyleProperty=function(t){return l(t)},n.prototype.normalizeAnimationStyleValue=function(t,e,n){var r="",o=n.toString().trim(),i=null;if(Dn(t)&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&(i="Please provide a CSS unit value for "+e+":"+n)}return{error:i,value:o+r}},n}(tu);Al.decorators=[{type:z}],Al.ctorParameters=function(){return[]};var Ol=function(){function t(){this.strictStyling=!0}return t.prototype.shimCssText=function(t,e,n){void 0===n&&(n="");var r=Vn(t);return t=Ln(t),t=this._insertDirectives(t),this._scopeCssText(t,e,n)+r},t.prototype._insertDirectives=function(t){return t=this._insertPolyfillDirectivesInCssText(t),this._insertPolyfillRulesInCssText(t)},t.prototype._insertPolyfillDirectivesInCssText=function(t){return t.replace(Rl,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[2]+"{"})},t.prototype._insertPolyfillRulesInCssText=function(t){return t.replace(kl,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0].replace(t[1],"").replace(t[2],"");return t[4]+n})},t.prototype._scopeCssText=function(t,e,n){var r=this._extractUnscopedRulesFromCssText(t);return t=this._insertPolyfillHostInCssText(t),t=this._convertColonHost(t),t=this._convertColonHostContext(t),t=this._convertShadowDOMSelectors(t),e&&(t=this._scopeSelectors(t,e,n)),(t=t+"\n"+r).trim()},t.prototype._extractUnscopedRulesFromCssText=function(t){var e,n="";for(Nl.lastIndex=0;null!==(e=Nl.exec(t));)n+=e[0].replace(e[2],"").replace(e[1],e[4])+"\n\n";return n},t.prototype._convertColonHost=function(t){return this._convertColonRule(t,Ll,this._colonHostPartReplacer)},t.prototype._convertColonHostContext=function(t){return this._convertColonRule(t,Vl,this._colonHostContextPartReplacer)},t.prototype._convertColonRule=function(t,e,n){return t.replace(e,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t[2]){for(var r=t[2].split(","),o=[],i=0;i<r.length;i++){var s=r[i].trim();if(!s)break;o.push(n(Fl,s,t[3]))}return o.join(",")}return Fl+t[3]})},t.prototype._colonHostContextPartReplacer=function(t,e,n){return e.indexOf(Il)>-1?this._colonHostPartReplacer(t,e,n):t+e+n+", "+e+" "+t+n},t.prototype._colonHostPartReplacer=function(t,e,n){return t+e.replace(Il,"")+n},t.prototype._convertShadowDOMSelectors=function(t){return Bl.reduce(function(t,e){return t.replace(e," ")},t)},t.prototype._scopeSelectors=function(t,e,n){var r=this;return Fn(t,function(t){var o=t.selector,i=t.content;return"@"!=t.selector[0]?o=r._scopeSelector(t.selector,e,n,r.strictStyling):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(i=r._scopeSelectors(t.content,e,n)),new tp(o,i)})},t.prototype._scopeSelector=function(t,e,n,r){var o=this;return t.split(",").map(function(t){return t.trim().split(Hl)}).map(function(t){var i=t[0],s=t.slice(1);return[function(t){return o._selectorNeedsScoping(t,e)?r?o._applyStrictSelectorScope(t,e,n):o._applySelectorScope(t,e,n):t}(i)].concat(s).join(" ")}).join(", ")},t.prototype._selectorNeedsScoping=function(t,e){return!this._makeScopeMatcher(e).test(t)},t.prototype._makeScopeMatcher=function(t){var e=/\[/g,n=/\]/g;return t=t.replace(e,"\\[").replace(n,"\\]"),new RegExp("^("+t+")"+ql,"m")},t.prototype._applySelectorScope=function(t,e,n){return this._applySimpleSelectorScope(t,e,n)},t.prototype._applySimpleSelectorScope=function(t,e,n){if(zl.lastIndex=0,zl.test(t)){var r=this.strictStyling?"["+n+"]":e;return t.replace(Ul,function(t,e){return e.replace(/([^:]*)(:*)(.*)/,function(t,e,n,o){return e+r+n+o})}).replace(zl,r+" ")}return e+" "+t},t.prototype._applyStrictSelectorScope=function(t,e,n){for(var r,o=this,i=/\[is=([^\]]*)\]/g,s="["+(e=e.replace(i,function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e[0]}))+"]",a=function(t){var r=t.trim();if(!r)return"";if(t.indexOf(Fl)>-1)r=o._applySimpleSelectorScope(t,e,n);else{var i=t.replace(zl,"");if(i.length>0){var a=i.match(/([^:]*)(:*)(.*)/);a&&(r=a[1]+s+a[2]+a[3])}}return r},u=new Ml(t),c="",l=0,p=/( |>|\+|~(?!=))\s*/g,h=(t=u.content()).indexOf(Fl);null!==(r=p.exec(t));){var f=r[1],d=t.slice(l,r.index).trim();c+=(l>=h?a(d):d)+" "+f+" ",l=p.lastIndex}return c+=a(t.substring(l)),u.restore(c)},t.prototype._insertPolyfillHostInCssText=function(t){return t.replace(Wl,jl).replace(Gl,Il)},t}(),Ml=function(){function t(t){var e=this;this.placeholders=[],this.index=0,t=t.replace(/(\[[^\]]*\])/g,function(t,n){var r="__ph-"+e.index+"__";return e.placeholders.push(n),e.index++,r}),this._content=t.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(t,n,r){var o="__ph-"+e.index+"__";return e.placeholders.push(r),e.index++,n+o})}return t.prototype.restore=function(t){var e=this;return t.replace(/__ph-(\d+)__/g,function(t,n){return e.placeholders[+n]})},t.prototype.content=function(){return this._content},t}(),Rl=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,kl=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Nl=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Il="-shadowcsshost",jl="-shadowcsscontext",Dl=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Ll=new RegExp("("+Il+Dl,"gim"),Vl=new RegExp("("+jl+Dl,"gim"),Fl=Il+"-no-combinator",Ul=/-shadowcsshost-no-combinator([^\s]*)/,Bl=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Hl=/(?:>>>)|(?:\/deep\/)/g,ql="([>\\s~+[.,{:][\\s\\S]*)?$",zl=/-shadowcsshost/gim,Gl=/:host/gim,Wl=/:host-context/gim,$l=/\/\*\s*[\s\S]*?\*\//g,Kl=/\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//,Ql=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,Jl=/([{}])/g,Xl="{",Yl="}",Zl="%BLOCK%",tp=function(){function t(t,e){this.selector=t,this.content=e}return t}(),ep=function(){function t(t,e){this.escapedString=t,this.blocks=e}return t}(),np=function(){function t(t,e,n,r){this.name=t,this.moduleUrl=e,this.isShimmed=n,this.valuePlaceholder=r}return t}(),rp=function(){function t(t,e){this.componentStylesheet=t,this.externalStylesheets=e}return t}(),op=function(){function t(t,e,n,r,o){this.statements=t,this.stylesVar=e,this.dependencies=n,this.isShimmed=r,this.meta=o}return t}(),ip=function(){function t(t){this._urlResolver=t,this._shadowCss=new Ol}return t.prototype.compileComponent=function(t){var e=this,n=t.template,r=[],o=this._compileStyles(t,new Wo({styles:n.styles,styleUrls:n.styleUrls,moduleUrl:S(t.type)}),!0);return n.externalStylesheets.forEach(function(n){var o=e._compileStyles(t,n,!1);r.push(o)}),new rp(o,r)},t.prototype._compileStyles=function(t,n,r){for(var o=this,i=t.template.encapsulation===e.ViewEncapsulation.Emulated,s=n.styles.map(function(t){return Sn(o._shimIfNeeded(t,i))}),a=[],u=0;u<n.styleUrls.length;u++){var c={reference:null};a.push(new np(Bn(null),n.styleUrls[u],i,c)),s.push(new wc(c))}var l=Bn(r?t:null),p=yn(l).set(bn(s,new oc(sc,[Zu.Const]))).toDeclStmt(null,[Vc.Final]);return new op([p],l,a,i,n)},t.prototype._shimIfNeeded=function(t,e){return e?this._shadowCss.shimCssText(t,"_ngcontent-%COMP%","_nghost-%COMP%"):t},t}();ip.decorators=[{type:z}],ip.ctorParameters=function(){return[{type:Vu}]};var sp=function(){function t(){}return t}();sp.event=yn("$event");var ap=function(){function t(t,e){this.stmts=t,this.allowDefault=e}return t}(),up=function(){function t(t,e){this.stmts=t,this.currValExpr=e}return t}(),cp={};cp.Statement=0,cp.Expression=1,cp[cp.Statement]="Statement",cp[cp.Expression]="Expression";var lp=function(t){function e(e){var n=t.call(this)||this;return n._converterFactory=e,n}return Jr(e,t),e.prototype.visitPipe=function(t,e){var n=this,r=[t.exp].concat(t.args).map(function(t){return t.visit(n,e)});return new fp(t.span,r,this._converterFactory.createPipeConverter(t.name,r.length))},e.prototype.visitLiteralArray=function(t,e){var n=this,r=t.expressions.map(function(t){return t.visit(n,e)});return new fp(t.span,r,this._converterFactory.createLiteralArrayConverter(t.expressions.length))},e.prototype.visitLiteralMap=function(t,e){var n=this,r=t.values.map(function(t){return t.visit(n,e)});return new fp(t.span,r,this._converterFactory.createLiteralMapConverter(t.keys))},e}(Ti),pp=function(){function t(t,e,n){this._localResolver=t,this._implicitReceiver=e,this.bindingId=n,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0}return t.prototype.visitBinary=function(t,e){var n;switch(t.operation){case"+":n=cc.Plus;break;case"-":n=cc.Minus;break;case"*":n=cc.Multiply;break;case"/":n=cc.Divide;break;case"%":n=cc.Modulo;break;case"&&":n=cc.And;break;case"||":n=cc.Or;break;case"==":n=cc.Equals;break;case"!=":n=cc.NotEquals;break;case"===":n=cc.Identical;break;case"!==":n=cc.NotIdentical;break;case"<":n=cc.Lower;break;case">":n=cc.Bigger;break;case"<=":n=cc.LowerEquals;break;case">=":n=cc.BiggerEquals;break;default:throw new Error("Unsupported operation "+t.operation)}return Xn(e,new Pc(n,this.visit(t.left,cp.Expression),this.visit(t.right,cp.Expression)))},t.prototype.visitChain=function(t,e){return Qn(e,t),this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return Xn(e,this.visit(t.condition,cp.Expression).conditional(this.visit(t.trueExp,cp.Expression),this.visit(t.falseExp,cp.Expression)))},t.prototype.visitPipe=function(t,e){throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: "+t.name)},t.prototype.visitFunctionCall=function(t,e){var n,r=this.visitAll(t.args,cp.Expression);return n=t instanceof fp?t.converter(r):this.visit(t.target,cp.Expression).callFn(r),Xn(e,n)},t.prototype.visitImplicitReceiver=function(t,e){return Jn(e,t),this._implicitReceiver},t.prototype.visitInterpolation=function(t,e){Jn(e,t);for(var n=[Sn(t.expressions.length)],r=0;r<t.strings.length-1;r++)n.push(Sn(t.strings[r])),n.push(this.visit(t.expressions[r],cp.Expression));return n.push(Sn(t.strings[t.strings.length-1])),t.expressions.length<=9?vn(fe(Ga.inlineInterpolate)).callFn(n):vn(fe(Ga.interpolate)).callFn([n[0],bn(n.slice(1))])},t.prototype.visitKeyedRead=function(t,e){var n=this.leftMostSafeNode(t);return n?this.convertSafeAccess(t,n,e):Xn(e,this.visit(t.obj,cp.Expression).key(this.visit(t.key,cp.Expression)))},t.prototype.visitKeyedWrite=function(t,e){var n=this.visit(t.obj,cp.Expression),r=this.visit(t.key,cp.Expression),o=this.visit(t.value,cp.Expression);return Xn(e,n.key(r).set(o))},t.prototype.visitLiteralArray=function(t,e){throw new Error("Illegal State: literal arrays should have been converted into functions")},t.prototype.visitLiteralMap=function(t,e){throw new Error("Illegal State: literal maps should have been converted into functions")},t.prototype.visitLiteralPrimitive=function(t,e){return Xn(e,Sn(t.value))},t.prototype._getLocal=function(t){return this._localResolver.getLocal(t)},t.prototype.visitMethodCall=function(t,e){var n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);var r=this.visitAll(t.args,cp.Expression),o=null,i=this.visit(t.receiver,cp.Expression);if(i===this._implicitReceiver){var s=this._getLocal(t.name);s&&(o=s.callFn(r))}return null==o&&(o=i.callMethod(t.name,r)),Xn(e,o)},t.prototype.visitPrefixNot=function(t,e){return Xn(e,Cn(this.visit(t.expression,cp.Expression)))},t.prototype.visitPropertyRead=function(t,e){var n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);var r=null,o=this.visit(t.receiver,cp.Expression);return o===this._implicitReceiver&&(r=this._getLocal(t.name)),null==r&&(r=o.prop(t.name)),Xn(e,r)},t.prototype.visitPropertyWrite=function(t,e){var n=this.visit(t.receiver,cp.Expression);if(n===this._implicitReceiver&&this._getLocal(t.name))throw new Error("Cannot assign to a reference or variable!");return Xn(e,n.prop(t.name).set(this.visit(t.value,cp.Expression)))},t.prototype.visitSafePropertyRead=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitSafeMethodCall=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitAll=function(t,e){var n=this;return t.map(function(t){return n.visit(t,e)})},t.prototype.visitQuote=function(t,e){throw new Error("Quotes are not supported for evaluation!\n        Statement: "+t.uninterpretedExpression+" located at "+t.location)},t.prototype.visit=function(t,e){var n=this._resultMap.get(t);return n||(this._nodeMap.get(t)||t).visit(this,e)},t.prototype.convertSafeAccess=function(t,e,n){var r=this.visit(e.receiver,cp.Expression),o=void 0;this.needsTemporary(e.receiver)&&(r=(o=this.allocateTemporary()).set(r),this._resultMap.set(e.receiver,o));var i=r.isBlank();e instanceof wi?this._nodeMap.set(e,new bi(e.span,e.receiver,e.name,e.args)):this._nodeMap.set(e,new ui(e.span,e.receiver,e.name));var s=this.visit(t,cp.Expression);return this._nodeMap.delete(e),o&&this.releaseTemporary(o),Xn(n,i.conditional(Sn(null),s))},t.prototype.leftMostSafeNode=function(t){var e=this,n=function(t,n){return(e._nodeMap.get(n)||n).visit(t)};return t.visit({visitBinary:function(t){return null},visitChain:function(t){return null},visitConditional:function(t){return null},visitFunctionCall:function(t){return null},visitImplicitReceiver:function(t){return null},visitInterpolation:function(t){return null},visitKeyedRead:function(t){return n(this,t.obj)},visitKeyedWrite:function(t){return null},visitLiteralArray:function(t){return null},visitLiteralMap:function(t){return null},visitLiteralPrimitive:function(t){return null},visitMethodCall:function(t){return n(this,t.receiver)},visitPipe:function(t){return null},visitPrefixNot:function(t){return null},visitPropertyRead:function(t){return n(this,t.receiver)},visitPropertyWrite:function(t){return null},visitQuote:function(t){return null},visitSafeMethodCall:function(t){return n(this,t.receiver)||t},visitSafePropertyRead:function(t){return n(this,t.receiver)||t}})},t.prototype.needsTemporary=function(t){var e=this,n=function(t,n){return n&&(e._nodeMap.get(n)||n).visit(t)},r=function(t,e){return e.some(function(e){return n(t,e)})};return t.visit({visitBinary:function(t){return n(this,t.left)||n(this,t.right)},visitChain:function(t){return!1},visitConditional:function(t){return n(this,t.condition)||n(this,t.trueExp)||n(this,t.falseExp)},visitFunctionCall:function(t){return!0},visitImplicitReceiver:function(t){return!1},visitInterpolation:function(t){return r(this,t.expressions)},visitKeyedRead:function(t){return!1},visitKeyedWrite:function(t){return!1},visitLiteralArray:function(t){return!0},visitLiteralMap:function(t){return!0},visitLiteralPrimitive:function(t){return!1},visitMethodCall:function(t){return!0},visitPipe:function(t){return!0},visitPrefixNot:function(t){return n(this,t.expression)},visitPropertyRead:function(t){return!1},visitPropertyWrite:function(t){return!1},visitQuote:function(t){return!1},visitSafeMethodCall:function(t){return!0},visitSafePropertyRead:function(t){return!1}})},t.prototype.allocateTemporary=function(){var t=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new hc(Wn(this.bindingId,t))},t.prototype.releaseTemporary=function(t){if(this._currentTemporary--,t.name!=Wn(this.bindingId,this._currentTemporary))throw new Error("Temporary "+t.name+" released out of order")},t}(),hp=function(){function t(){}return t.prototype.getLocal=function(t){return t===sp.event.name?sp.event:null},t}(),fp=function(t){function e(e,n,r){var o=t.call(this,e,null,n)||this;return o.args=n,o.converter=r,o}return Jr(e,t),e}(Ci),dp="class",mp="style",yp=function(){function t(t,e,n){this.statements=t,this.viewClassVar=e,this.rendererTypeVar=n}return t}(),vp=function(){function t(t,e){this._genConfigNext=t,this._schemaRegistry=e}return t.prototype.compileComponent=function(t,e,n,r){var o=0,i=dr(e),s=[],a=void 0;if(!t.isHost){var u=t.template,c=[];u.animations&&u.animations.length&&c.push(new Rc("animation",Pn(u.animations),!0));var l=yn(T(t.type.reference));a=l.name,s.push(l.set(vn(fe(Ga.createRendererType2)).callFn([new kc([new Rc("encapsulation",Sn(u.encapsulation)),new Rc("styles",n),new Rc("data",new kc(c))])])).toDeclStmt(gn(fe(Ga.RendererType2)),[Vc.Final]))}var p=function(e){var n=o++;return new Sp(e,t,n,r,i,p)},h=p(null);return h.visitAll([],e),s.push.apply(s,h.build()),new yp(s,h.viewName,a)},t}();vp.decorators=[{type:z}],vp.ctorParameters=function(){return[{type:Zo},{type:tu}]};var gp=yn("l"),_p=yn("v"),bp=yn("ck"),wp=yn("co"),Cp=yn("en"),Ep=yn("ad"),Sp=function(){function t(t,e,n,r,o,i){this.parent=t,this.component=e,this.embeddedViewIndex=n,this.usedPipes=r,this.staticQueryIds=o,this.viewBuilderFactory=i,this.nodes=[],this.purePipeNodeIndices=Object.create(null),this.refNodeIndices=Object.create(null),this.variables=[],this.children=[],this.compType=this.embeddedViewIndex>0?sc:gn(this.component.type)}return Object.defineProperty(t.prototype,"viewName",{get:function(){return x(this.component.type.reference,this.embeddedViewIndex)},enumerable:!0,configurable:!0}),t.prototype.visitAll=function(t,e){var r=this;if(this.variables=t,this.parent||this.usedPipes.forEach(function(t){t.pure&&(r.purePipeNodeIndices[t.name]=r._createPipe(null,t))}),!this.parent){var o=mr(this.staticQueryIds);this.component.viewQueries.forEach(function(t,e){var n=e+1,i=t.first?0:1,s=134217728|gr(o,n,t.first);r.nodes.push(function(){return{sourceSpan:null,nodeFlags:s,nodeDef:vn(fe(Ga.queryDef)).callFn([Sn(s),Sn(n),new kc([new Rc(t.propertyName,Sn(i))])])}})})}n(this,e),this.parent&&(0===e.length||ar(e))&&this.nodes.push(function(){return{sourceSpan:null,nodeFlags:1,nodeDef:vn(fe(Ga.anchorDef)).callFn([Sn(0),Dc,Dc,Sn(0)])}})},t.prototype.build=function(t){void 0===t&&(t=[]),this.children.forEach(function(e){return e.build(t)});var n=this._createNodeExpressions(),r=n.updateRendererStmts,o=n.updateDirectivesStmts,i=n.nodeDefExprs,s=this._createUpdateFn(r),a=this._createUpdateFn(o),u=0;this.parent||this.component.changeDetection!==e.ChangeDetectionStrategy.OnPush||(u|=2);var c=new Bc(this.viewName,[new xc(gp.name)],[new qc(vn(fe(Ga.viewDef)).callFn([Sn(u),bn(i),a,s]))],gn(fe(Ga.ViewDefinition)));return t.push(c),t},t.prototype._createUpdateFn=function(t){var e;if(t.length>0){var n=[];!this.component.isHost&&fn(t).has(wp.name)&&n.push(wp.set(_p.prop("component")).toDeclStmt(this.compType)),e=En([new xc(bp.name,ac),new xc(_p.name,ac)],n.concat(t),ac)}else e=Dc;return e},t.prototype.visitNgContent=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:8,nodeDef:vn(fe(Ga.ngContentDef)).callFn([Sn(t.ngContentIndex),Sn(t.index)])}})},t.prototype.visitText=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:vn(fe(Ga.textDef)).callFn([Sn(t.ngContentIndex),bn([Sn(t.value)])])}})},t.prototype.visitBoundText=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var o=t.value.ast,i=o.expressions.map(function(e,o){return n._preprocessUpdateExpression({nodeIndex:r,bindingIndex:o,sourceSpan:t.sourceSpan,context:wp,value:e})});this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:vn(fe(Ga.textDef)).callFn([Sn(t.ngContentIndex),bn(o.strings.map(function(t){return Sn(t)}))]),updateRenderer:i}}},t.prototype.visitEmbeddedTemplate=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var o=this._visitElementOrTemplate(r,t),i=o.flags,s=o.queryMatchesExpr,a=o.hostEvents,u=this.viewBuilderFactory(this);this.children.push(u),u.visitAll(t.variables,t.children);var c=this.nodes.length-r-1;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|i,nodeDef:vn(fe(Ga.anchorDef)).callFn([Sn(i),s,Sn(t.ngContentIndex),Sn(c),n._createElementHandleEventFn(r,a),yn(u.viewName)])}}},t.prototype.visitElement=function(t,e){var r=this,i=this.nodes.length;this.nodes.push(null);var s=o(t.name)?null:t.name,a=this._visitElementOrTemplate(i,t),u=a.flags,c=a.usedEvents,l=a.queryMatchesExpr,p=a.hostBindings,h=a.hostEvents,f=[],d=[],m=[];if(s){var y=t.inputs.map(function(t){return{context:wp,inputAst:t,dirAst:null}}).concat(p);y.length&&(d=y.map(function(t,e){return r._preprocessUpdateExpression({context:t.context,nodeIndex:i,bindingIndex:e,sourceSpan:t.inputAst.sourceSpan,value:t.inputAst.value})}),f=y.map(function(t){return cr(t.inputAst,t.dirAst)})),m=c.map(function(t){var e=t[0],n=t[1];return bn([Sn(e),Sn(n)])})}n(this,t.children);var v=this.nodes.length-i-1,g=t.directives.find(function(t){return t.directive.isComponent}),_=Dc,b=Dc;g&&(b=vn({reference:g.directive.componentViewType}),_=vn({reference:g.directive.rendererType})),this.nodes[i]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|u,nodeDef:vn(fe(Ga.elementDef)).callFn([Sn(u),l,Sn(t.ngContentIndex),Sn(v),Sn(s),s?lr(t):Dc,f.length?bn(f):Dc,m.length?bn(m):Dc,r._createElementHandleEventFn(i,h),b,_]),updateRenderer:d}}},t.prototype._visitElementOrTemplate=function(t,n){var r=this,o=0;n.hasViewContainer&&(o|=16777216);var i=new Map;n.outputs.forEach(function(t){var n=vr(t,null),r=n.name,o=n.target;i.set(e.ɵelementEventFullName(o,r),[o,r])}),n.directives.forEach(function(t){t.hostEvents.forEach(function(n){var r=vr(n,t),o=r.name,s=r.target;i.set(e.ɵelementEventFullName(s,o),[s,o])})});var s=[],a=[],u=yr(n.directives);u&&this._visitProvider(u,n.queryMatches),n.providers.forEach(function(e,o){var u=void 0,c=void 0;if(n.directives.forEach(function(t,n){t.directive.type.reference===R(e.token)&&(u=t,c=n)}),u){var l=r._visitDirective(e,u,c,t,n.references,n.queryMatches,i,r.staticQueryIds.get(n)),p=l.hostBindings,h=l.hostEvents;s.push.apply(s,p),a.push.apply(a,h)}else r._visitProvider(e,n.queryMatches)});var c=[];return n.queryMatches.forEach(function(t){var e=void 0;R(t.value)===he(Ga.ElementRef)?e=0:R(t.value)===he(Ga.ViewContainerRef)?e=3:R(t.value)===he(Ga.TemplateRef)&&(e=2),null!=e&&c.push(bn([Sn(t.queryId),Sn(e)]))}),n.references.forEach(function(e){var n=void 0;e.value?R(e.value)===he(Ga.TemplateRef)&&(n=2):n=1,null!=n&&(r.refNodeIndices[e.name]=t,c.push(bn([Sn(e.name),Sn(n)])))}),n.outputs.forEach(function(t){a.push({context:wp,eventAst:t,dirAst:null})}),{flags:o,usedEvents:Array.from(i.values()),queryMatchesExpr:c.length?bn(c):Dc,hostBindings:s,hostEvents:a}},t.prototype._visitDirective=function(t,e,n,r,o,i,s,a){var u=this,c=this.nodes.length;this.nodes.push(null),e.directive.queries.forEach(function(t,n){var r=e.contentQueryStartId+n,o=67108864|gr(a,r,t.first),i=t.first?0:1;u.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:o,nodeDef:vn(fe(Ga.queryDef)).callFn([Sn(o),Sn(r),new kc([new Rc(t.propertyName,Sn(i))])])}})});var l=this.nodes.length-c-1,p=this._visitProviderOrDirective(t,i),h=p.flags,f=p.queryMatchExprs,d=p.providerExpr,m=p.depsExpr;o.forEach(function(e){e.value&&R(e.value)===R(t.token)&&(u.refNodeIndices[e.name]=c,f.push(bn([Sn(e.name),Sn(4)])))}),e.directive.isComponent&&(h|=32768);var y=e.inputs.map(function(t,e){var n=bn([Sn(e),Sn(t.directiveName)]);return new Rc(t.directiveName,n,!1)}),v=[],g=e.directive;Object.keys(g.outputs).forEach(function(t){var e=g.outputs[t];s.has(e)&&v.push(new Rc(t,Sn(e),!1))});var _=[];(e.inputs.length||(327680&h)>0)&&(_=e.inputs.map(function(t,e){return u._preprocessUpdateExpression({nodeIndex:c,bindingIndex:e,sourceSpan:t.sourceSpan,context:wp,value:t.value})}));var b=vn(fe(Ga.nodeValue)).callFn([_p,Sn(c)]),w=e.hostProperties.map(function(t){return{context:b,dirAst:e,inputAst:t}}),C=e.hostEvents.map(function(t){return{context:b,eventAst:t,dirAst:e}});return this.nodes[c]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:16384|h,nodeDef:vn(fe(Ga.directiveDef)).callFn([Sn(h),f.length?bn(f):Dc,Sn(l),d,m,y.length?new kc(y):Dc,v.length?new kc(v):Dc]),updateDirectives:_,directive:e.directive.type}},{hostBindings:w,hostEvents:C}},t.prototype._visitProvider=function(t,e){var n=this.nodes.length;this.nodes.push(null);var r=this._visitProviderOrDirective(t,e),o=r.flags,i=r.queryMatchExprs,s=r.providerExpr,a=r.depsExpr;this.nodes[n]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:o,nodeDef:vn(fe(Ga.providerDef)).callFn([Sn(o),i.length?bn(i):Dc,ir(t.token),s,a])}}},t.prototype._visitProviderOrDirective=function(t,n){var r=0;t.eager||(r|=4096),t.providerType===lo.PrivateService&&(r|=8192),t.lifecycleHooks.forEach(function(n){n!==e.ɵLifecycleHooks.OnDestroy&&t.providerType!==lo.Directive&&t.providerType!==lo.Component||(r|=ur(n))});var o=[];n.forEach(function(e){R(e.value)===R(t.token)&&o.push(bn([Sn(e.queryId),Sn(4)]))});var i=nr(t),s=i.providerExpr,a=i.depsExpr,u=i.flags;return{flags:r|u,queryMatchExprs:o,providerExpr:s,depsExpr:a}},t.prototype.getLocal=function(t){if(t==sp.event.name)return sp.event;for(var e=_p,n=this;n;n=n.parent,e=e.prop("parent").cast(sc)){var r=n.refNodeIndices[t];if(null!=r)return vn(fe(Ga.nodeValue)).callFn([e,Sn(r)]);var o=n.variables.find(function(e){return e.name===t});if(o){var i=o.value||"$implicit";return e.prop("context").prop(i)}}return null},t.prototype.createLiteralArrayConverter=function(t,e){if(0===e){var n=vn(fe(Ga.EMPTY_ARRAY));return function(){return n}}var r=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:32,nodeDef:vn(fe(Ga.pureArrayDef)).callFn([Sn(e)])}}),function(t){return hr(r,t)}},t.prototype.createLiteralMapConverter=function(t,e){if(0===e.length){var n=vn(fe(Ga.EMPTY_MAP));return function(){return n}}var r=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:64,nodeDef:vn(fe(Ga.pureObjectDef)).callFn([bn(e.map(function(t){return Sn(t)}))])}}),function(t){return hr(r,t)}},t.prototype.createPipeConverter=function(t,e,n){var r=this.usedPipes.find(function(t){return t.name===e});if(r.pure){var o=this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:128,nodeDef:vn(fe(Ga.purePipeDef)).callFn([Sn(n)])}});for(var i=_p,s=this;s.parent;)s=s.parent,i=i.prop("parent").cast(sc);var a=s.purePipeNodeIndices[e],u=vn(fe(Ga.nodeValue)).callFn([i,Sn(a)]);return function(e){return fr(t.nodeIndex,t.bindingIndex,hr(o,[u].concat(e)))}}var c=this._createPipe(t.sourceSpan,r),l=vn(fe(Ga.nodeValue)).callFn([_p,Sn(c)]);return function(e){return fr(t.nodeIndex,t.bindingIndex,l.callMethod("transform",e))}},t.prototype._createPipe=function(t,n){var r=this.nodes.length,o=0;n.type.lifecycleHooks.forEach(function(t){t===e.ɵLifecycleHooks.OnDestroy&&(o|=ur(t))});var i=n.type.diDeps.map(sr);return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:16,nodeDef:vn(fe(Ga.pipeDef)).callFn([Sn(o),vn(n.type),bn(i)])}}),r},t.prototype._preprocessUpdateExpression=function(t){var e=this;return{nodeIndex:t.nodeIndex,bindingIndex:t.bindingIndex,sourceSpan:t.sourceSpan,context:t.context,value:qn({createLiteralArrayConverter:function(n){return e.createLiteralArrayConverter(t.sourceSpan,n)},createLiteralMapConverter:function(n){return e.createLiteralMapConverter(t.sourceSpan,n)},createPipeConverter:function(n,r){return e.createPipeConverter(t,n,r)}},t.value)}},t.prototype._createNodeExpressions=function(){function t(t,r,o,i){var s=[],a=o.map(function(t){var r=t.sourceSpan,o=t.context,i=t.value,a=""+n++,u=zn(o===wp?e:null,o,i,a),c=u.stmts,l=u.currValExpr;return s.push.apply(s,c.map(function(t){return dn(t,r)})),mn(l,r)});return(o.length||i)&&s.push(dn(hr(t,a).toStmt(),r)),s}var e=this,n=0,r=[],o=[],i=this.nodes.map(function(e,n){var i=e(),s=i.nodeDef,a=i.nodeFlags,u=i.updateDirectives,c=i.updateRenderer,l=i.sourceSpan;return c&&r.push.apply(r,t(n,l,c,!1)),u&&o.push.apply(o,t(n,l,u,(327680&a)>0)),mn(3&a?new Nc([gp.callFn([]).callFn([]),s]):s,l)});return{updateRendererStmts:r,updateDirectivesStmts:o,nodeDefExprs:i}},t.prototype._createElementHandleEventFn=function(t,n){var r=this,o=[],i=0;n.forEach(function(t){var n=t.context,s=t.eventAst,a=t.dirAst,u=""+i++,c=Hn(n===wp?r:null,n,s.handler,u),l=c.stmts,p=c.allowDefault,h=l;p&&h.push(Ep.set(p.and(Ep)).toStmt());var f=vr(s,a),d=f.target,m=f.name,y=e.ɵelementEventFullName(d,m);o.push(dn(new Qc(Sn(y).identical(Cp),h),s.sourceSpan))});var s;if(o.length>0){var a=[Ep.set(Sn(!0)).toDeclStmt(uc)];!this.component.isHost&&fn(o).has(wp.name)&&a.push(wp.set(_p.prop("component")).toDeclStmt(this.compType)),s=En([new xc(_p.name,ac),new xc(Cp.name,ac),new xc(sp.event.name,ac)],a.concat(o,[new qc(Ep)]),ac)}else s=Dc;return s},t.prototype.visitDirective=function(t,e){},t.prototype.visitDirectiveProperty=function(t,e){},t.prototype.visitReference=function(t,e){},t.prototype.visitVariable=function(t,e){},t.prototype.visitEvent=function(t,e){},t.prototype.visitElementProperty=function(t,e){},t.prototype.visitAttr=function(t,e){},t}(),xp=function(){function t(t,e,n){this.srcFileUrl=t,this.genFileUrl=e,this.source=n}return t}(),Tp=function(t){function e(e,n){var r=t.call(this)||this;return r.symbolResolver=e,r.summaryResolver=n,r.symbols=[],r.indexBySymbol=new Map,r.processedSummaryBySymbol=new Map,r.processedSummaries=[],r}return Jr(e,t),e.prototype.addOrMergeSummary=function(t){var e=t.metadata;if(e&&"class"===e.__symbolic){var n={};Object.keys(e).forEach(function(t){"decorators"!==t&&(n[t]=e[t])}),e=n}var r=this.processedSummaryBySymbol.get(t.symbol);r||(r=this.processValue({symbol:t.symbol}),this.processedSummaries.push(r),this.processedSummaryBySymbol.set(t.symbol,r)),null==r.metadata&&null!=e&&(r.metadata=this.processValue(e)),null==r.type&&null!=t.type&&(r.type=this.processValue(t.type))},e.prototype.serialize=function(){var t=this,e=[];return{json:JSON.stringify({summaries:this.processedSummaries,symbols:this.symbols.map(function(n,r){n.assertNoMembers();var o=void 0;return t.summaryResolver.isLibraryFile(n.filePath)&&(o=n.name+"_"+r,e.push({symbol:n,exportAs:o})),{__symbol:r,name:n.name,filePath:t.summaryResolver.getLibraryFileName(n.filePath),importAs:o}})}),exportAs:e}},e.prototype.processValue=function(t){return d(t,this,null)},e.prototype.visitOther=function(t,e){if(t instanceof fo){var n=this.symbolResolver.getStaticSymbol(t.filePath,t.name),r=this.indexBySymbol.get(n);return null==r&&(r=this.indexBySymbol.size,this.indexBySymbol.set(n,r),this.symbols.push(n)),{__symbol:r,members:t.members}}},e}(Ao),Pp=function(t){function e(e){var n=t.call(this)||this;return n.symbolCache=e,n}return Jr(e,t),e.prototype.deserialize=function(t){var e=this,n=JSON.parse(t),r=[];return this.symbols=[],n.symbols.forEach(function(t){var n=e.symbolCache.get(t.filePath,t.name);e.symbols.push(n),t.importAs&&r.push({symbol:n,importAs:t.importAs})}),{summaries:d(n.summaries,this,null),importAs:r}},e.prototype.visitStringMap=function(e,n){if("__symbol"in e){var r=this.symbols[e.__symbol],o=e.members;return o.length?this.symbolCache.get(r.filePath,r.name,o):r}return t.prototype.visitStringMap.call(this,e,n)},e}(Ao),Ap=function(){function t(t,e,n,r,o,i,s,a,u,c,l,p,h){this._config=t,this._host=e,this._metadataResolver=n,this._templateParser=r,this._styleCompiler=o,this._viewCompiler=i,this._ngModuleCompiler=s,this._outputEmitter=a,this._summaryResolver=u,this._localeId=c,this._translationFormat=l,this._genFilePreamble=p,this._symbolResolver=h}return t.prototype.clearCache=function(){this._metadataResolver.clearCache()},t.prototype.compileAll=function(t){var e=this,n=xr(Pr(this._symbolResolver,t,this._host),this._host,this._metadataResolver),r=n.ngModuleByPipeOrDirective,o=n.files,i=n.ngModules;return Promise.all(i.map(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){return I(o.map(function(t){return e._compileSrcFile(t.srcUrl,r,t.directives,t.pipes,t.ngModules,t.injectables)}))})},t.prototype._compileSrcFile=function(t,e,n,r,o,i){var s=this,a=Ye(t)[1],u=[],c=[],l=[];if(l.push(this._createSummary(t,n,r,o,i,u,c)),c.push.apply(c,o.map(function(t){return s._compileModule(t,u)})),n.forEach(function(n){var r=s._metadataResolver.getDirectiveMetadata(n);if(!r.isComponent)return Promise.resolve(null);var o=e.get(n);if(!o)throw new Error("Internal Error: cannot determine the module for component "+E(r.type)+"!");Er(r);var i=s._styleCompiler.compileComponent(r);i.externalStylesheets.forEach(function(e){l.push(s._codgenStyles(t,e,a))});var p=s._compileComponent(r,o,o.transitiveModule.directives,i.componentStylesheet,a,u);c.push(s._compileComponentFactory(r,o,a,u),p.viewClassVar,p.compRenderTypeVar)}),u.length>0){var p=this._codegenSourceModule(t,Qe(t),u,c);l.unshift(p)}return l},t.prototype._createSummary=function(t,e,n,r,o,i,s){var a=this,u=this._symbolResolver.getSymbolsOf(t).map(function(t){return a._symbolResolver.resolveSymbol(t)}),c=r.map(function(t){return a._metadataResolver.getNgModuleSummary(t)}).concat(e.map(function(t){return a._metadataResolver.getDirectiveSummary(t)}),n.map(function(t){return a._metadataResolver.getPipeSummary(t)}),o.map(function(t){return a._metadataResolver.getInjectableSummary(t)})),l=_r(this._summaryResolver,this._symbolResolver,u,c),p=l.json;return l.exportAs.forEach(function(t){i.push(yn(t.exportAs).set(vn({reference:t.symbol})).toDeclStmt()),s.push(t.exportAs)}),new xp(t,Ze(t),p)},t.prototype._compileModule=function(t,e){var n=this._metadataResolver.getNgModuleMetadata(t),r=[];this._localeId&&r.push({token:me(Ga.LOCALE_ID),useValue:this._localeId}),this._translationFormat&&r.push({token:me(Ga.TRANSLATIONS_FORMAT),useValue:this._translationFormat});var o=this._ngModuleCompiler.compile(n,r);return e.push.apply(e,o.statements),o.ngModuleFactoryVar},t.prototype._compileComponentFactory=function(t,e,n,r){var o=this._metadataResolver.getHostComponentType(t.type.reference),i=k(o,t,this._metadataResolver.getHostComponentViewClass(o)),s=this._compileComponent(i,e,[t.type],null,n,r).viewClassVar,a=O(t.type.reference),u=[];for(var c in t.inputs){p=t.inputs[c];u.push(new Rc(c,Sn(p),!1))}var l=[];for(var c in t.outputs){var p=t.outputs[c];l.push(new Rc(c,Sn(p),!1))}return r.push(yn(a).set(vn(fe(Ga.createComponentFactory)).callFn([Sn(t.selector),vn(t.type),yn(s),new kc(u),new kc(l),bn(t.template.ngContentSelectors.map(function(t){return Sn(t)}))])).toDeclStmt(gn(fe(Ga.ComponentFactory),[gn(t.type)],[Zu.Const]),[Vc.Final])),a},t.prototype._compileComponent=function(t,e,n,r,o,i){var s=this,a=n.map(function(t){return s._metadataResolver.getDirectiveSummary(t.reference)}),u=e.transitiveModule.pipes.map(function(t){return s._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(t,t.template.template,a,u,e.schemas,D(e.type,t,t.template)),l=c.template,p=c.pipes,h=r?yn(r.stylesVar):bn([]),f=this._viewCompiler.compileComponent(t,l,h,p);return r&&i.push.apply(i,wr(this._symbolResolver,r,o)),i.push.apply(i,f.statements),{viewClassVar:f.viewClassVar,compRenderTypeVar:f.rendererTypeVar}},t.prototype._codgenStyles=function(t,e,n){return wr(this._symbolResolver,e,n),this._codegenSourceModule(t,Cr(e.meta.moduleUrl,e.isShimmed,n),e.statements,[e.stylesVar])},t.prototype._codegenSourceModule=function(t,e,n,r){return new xp(t,e,this._outputEmitter.emitStatements(j(t),e,n,r,this._genFilePreamble))},t}(),Op=function(){function t(t){this.staticDelegate=t,this.dynamicDelegate=new e.ɵReflectionCapabilities}return t.install=function(n){e.ɵreflector.updateCapabilities(new t(n))},t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return this.dynamicDelegate.factory(t)},t.prototype.hasLifecycleHook=function(t,e){return Or(t)?this.staticDelegate.hasLifecycleHook(t,e):this.dynamicDelegate.hasLifecycleHook(t,e)},t.prototype.parameters=function(t){return Or(t)?this.staticDelegate.parameters(t):this.dynamicDelegate.parameters(t)},t.prototype.annotations=function(t){return Or(t)?this.staticDelegate.annotations(t):this.dynamicDelegate.annotations(t)},t.prototype.propMetadata=function(t){return Or(t)?this.staticDelegate.propMetadata(t):this.dynamicDelegate.propMetadata(t)},t.prototype.getter=function(t){return this.dynamicDelegate.getter(t)},t.prototype.setter=function(t){return this.dynamicDelegate.setter(t)},t.prototype.method=function(t){return this.dynamicDelegate.method(t)},t.prototype.importUri=function(t){return this.staticDelegate.importUri(t)},t.prototype.resourceUri=function(t){return this.staticDelegate.resourceUri(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return this.staticDelegate.resolveIdentifier(t,e,n)},t.prototype.resolveEnum=function(t,e){return Or(t)?this.staticDelegate.resolveEnum(t,e):null},t}(),Mp="@angular/core",Rp=/^\$.*\$$/,kp={__symbolic:"ignore"},Np=function(){function t(t,n,r,o,i){void 0===r&&(r=[]),void 0===o&&(o=[]);var s=this;this.summaryResolver=t,this.symbolResolver=n,this.errorRecorder=i,this.annotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.conversionMap=new Map,this.annotationForParentClassWithSummaryKind=new Map,this.annotationNames=new Map,this.initializeConversionMap(),r.forEach(function(t){return s._registerDecoratorOrConstructor(s.getStaticSymbol(t.filePath,t.name),t.ctor)}),o.forEach(function(t){return s._registerFunction(s.getStaticSymbol(t.filePath,t.name),t.fn)}),this.annotationForParentClassWithSummaryKind.set(Go.Directive,[e.Directive,e.Component]),this.annotationForParentClassWithSummaryKind.set(Go.Pipe,[e.Pipe]),this.annotationForParentClassWithSummaryKind.set(Go.NgModule,[e.NgModule]),this.annotationForParentClassWithSummaryKind.set(Go.Injectable,[e.Injectable,e.Pipe,e.Directive,e.Component,e.NgModule]),this.annotationNames.set(e.Directive,"Directive"),this.annotationNames.set(e.Component,"Component"),this.annotationNames.set(e.Pipe,"Pipe"),this.annotationNames.set(e.NgModule,"NgModule"),this.annotationNames.set(e.Injectable,"Injectable")}return t.prototype.importUri=function(t){var e=this.findSymbolDeclaration(t);return e?e.filePath:null},t.prototype.resourceUri=function(t){var e=this.findSymbolDeclaration(t);return this.symbolResolver.getResourcePath(e)},t.prototype.resolveIdentifier=function(t,e,n){var r=this.getStaticSymbol(e,t),o=this.findDeclaration(e,t);return r!=o&&this.symbolResolver.recordImportAs(o,r),n&&n.length?this.getStaticSymbol(o.filePath,o.name,n):o},t.prototype.findDeclaration=function(t,e,n){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(t,e,n))},t.prototype.findSymbolDeclaration=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata instanceof fo?this.findSymbolDeclaration(e.metadata):t},t.prototype.resolveEnum=function(t,e){var n=t,r=(n.members||[]).concat(e);return this.getStaticSymbol(n.filePath,n.name,r)},t.prototype.annotations=function(t){var e=this,n=this.annotationCache.get(t);if(!n){n=[];var r=this.getTypeMetadata(t),o=this.findParentType(t,r);if(o){var i=this.annotations(o);n.push.apply(n,i)}var s=[];if(r.decorators&&(s=this.simplify(t,r.decorators),n.push.apply(n,s)),o&&!this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(o.filePath)){var a=this.summaryResolver.resolveSummary(o);if(a&&a.type){var u=this.annotationForParentClassWithSummaryKind.get(a.type.summaryKind);u.some(function(t){return s.some(function(e){return e instanceof t})})||this.reportError(v("Class "+t.name+" in "+t.filePath+" extends from a "+Go[a.type.summaryKind]+" in another compilation unit without duplicating the decorator. Please add a "+u.map(function(t){return e.annotationNames.get(t)}).join(" or ")+" decorator to the class."),t)}}this.annotationCache.set(t,n.filter(function(t){return!!t}))}return n},t.prototype.propMetadata=function(t){var e=this,n=this.propertyCache.get(t);if(!n){var r=this.getTypeMetadata(t);n={};var o=this.findParentType(t,r);if(o){var i=this.propMetadata(o);Object.keys(i).forEach(function(t){n[t]=i[t]})}var s=r.members||{};Object.keys(s).forEach(function(r){var o=s[r].find(function(t){return"property"==t.__symbolic||"method"==t.__symbolic}),i=[];n[r]&&i.push.apply(i,n[r]),n[r]=i,o&&o.decorators&&i.push.apply(i,e.simplify(t,o.decorators))}),this.propertyCache.set(t,n)}return n},t.prototype.parameters=function(t){if(!(t instanceof fo))return this.reportError(new Error("parameters received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),[];try{var e=this.parameterCache.get(t);if(!e){var n=this.getTypeMetadata(t),r=this.findParentType(t,n),o=n?n.members:null,i=o?o.__ctor__:null;if(i){var s=i.find(function(t){return"constructor"==t.__symbolic}),a=this.simplify(t,s.parameters||[]),u=this.simplify(t,s.parameterDecorators||[]);e=[],a.forEach(function(t,n){var r=[];t&&r.push(t);var o=u?u[n]:null;o&&r.push.apply(r,o),e.push(r)})}else r&&(e=this.parameters(r));e||(e=[]),this.parameterCache.set(t,e)}return e}catch(e){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+e),e}},t.prototype._methodNames=function(t){var e=this.methodCache.get(t);if(!e){var n=this.getTypeMetadata(t);e={};var r=this.findParentType(t,n);if(r){var o=this._methodNames(r);Object.keys(o).forEach(function(t){e[t]=o[t]})}var i=n.members||{};Object.keys(i).forEach(function(t){var n=i[t].some(function(t){return"method"==t.__symbolic});e[t]=e[t]||n}),this.methodCache.set(t,e)}return e},t.prototype.findParentType=function(t,e){var n=this.trySimplify(t,e.extends);if(n instanceof fo)return n},t.prototype.hasLifecycleHook=function(t,e){t instanceof fo||this.reportError(new Error("hasLifecycleHook received "+JSON.stringify(t)+" which is not a StaticSymbol"),t);try{return!!this._methodNames(t)[e]}catch(e){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+e),e}},t.prototype._registerDecoratorOrConstructor=function(t,e){this.conversionMap.set(t,function(t,n){return new(e.bind.apply(e,[void 0].concat(n)))})},t.prototype._registerFunction=function(t,e){this.conversionMap.set(t,function(t,n){return e.apply(void 0,n)})},t.prototype.initializeConversionMap=function(){this.injectionToken=this.findDeclaration(Mp,"InjectionToken"),this.opaqueToken=this.findDeclaration(Mp,"OpaqueToken"),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Injectable"),e.Injectable),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Inject"),e.Inject),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Optional"),e.Optional),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Attribute"),e.Attribute),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"ContentChild"),e.ContentChild),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"ContentChildren"),e.ContentChildren),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"ViewChild"),e.ViewChild),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"ViewChildren"),e.ViewChildren),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Input"),e.Input),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Output"),e.Output),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Pipe"),e.Pipe),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"HostBinding"),e.HostBinding),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"HostListener"),e.HostListener),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Directive"),e.Directive),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Component"),e.Component),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"NgModule"),e.NgModule),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Optional"),e.Optional),this._registerFunction(this.findDeclaration(Mp,"trigger"),e.trigger),this._registerFunction(this.findDeclaration(Mp,"state"),e.state),this._registerFunction(this.findDeclaration(Mp,"transition"),e.transition),this._registerFunction(this.findDeclaration(Mp,"style"),e.style),this._registerFunction(this.findDeclaration(Mp,"animate"),e.animate),this._registerFunction(this.findDeclaration(Mp,"keyframes"),e.keyframes),this._registerFunction(this.findDeclaration(Mp,"sequence"),e.sequence),this._registerFunction(this.findDeclaration(Mp,"group"),e.group)},t.prototype.getStaticSymbol=function(t,e,n){return this.symbolResolver.getStaticSymbol(t,e,n)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||n)},t.prototype.trySimplify=function(t,e){var n=this.errorRecorder;this.errorRecorder=function(t,e){};var r=this.simplify(t,e);return this.errorRecorder=n,r},t.prototype.simplify=function(t,e){function n(t,e,r){function a(t){var e=o.symbolResolver.resolveSymbol(t);return e?e.metadata:null}function u(e,o,a){if(o&&"function"==o.__symbolic){if(s.get(e))throw new Error("Recursion not supported");s.set(e,!0);try{var u=o.value;if(u&&(0!=r||"error"!=u.__symbolic)){var l=o.parameters,p=o.defaults;a=a.map(function(e){return n(t,e,r+1)}).map(function(t){return Mr(t)?void 0:t}),p&&p.length>a.length&&a.push.apply(a,p.slice(a.length).map(function(t){return c(t)}));for(var h=Ip.build(),f=0;f<l.length;f++)h.define(l[f],a[f]);var d,m=i;try{i=h.done(),d=n(e,u,r+1)}finally{i=m}return d}}finally{s.delete(e)}}return 0===r?kp:c({__symbolic:"error",message:"Function call not supported",context:e})}function c(e){if(Ir(e))return e;if(e instanceof Array){for(var s=[],l=0,p=e;l<p.length;l++){var h=p[l];if(h&&"spread"===h.__symbolic){var f=c(h.expression);if(Array.isArray(f)){for(var d=0,m=f;d<m.length;d++){var y=m[d];s.push(y)}continue}}var v=c(h);Mr(v)||s.push(v)}return s}if(e instanceof fo)return e===o.injectionToken||e===o.opaqueToken||o.conversionMap.has(e)?e:(A=a(g=e))?n(g,A,r+1):g;if(e){if(e.__symbolic){var g=void 0;switch(e.__symbolic){case"binop":var _=c(e.left);if(Mr(_))return _;var b=c(e.right);if(Mr(b))return b;switch(e.operator){case"&&":return _&&b;case"||":return _||b;case"|":return _|b;case"^":return _^b;case"&":return _&b;case"==":return _==b;case"!=":return _!=b;case"===":return _===b;case"!==":return _!==b;case"<":return _<b;case">":return _>b;case"<=":return _<=b;case">=":return _>=b;case"<<":return _<<b;case">>":return _>>b;case"+":return _+b;case"-":return _-b;case"*":return _*b;case"/":return _/b;case"%":return _%b}return null;case"if":return c(c(e.condition)?e.thenExpression:e.elseExpression);case"pre":var w=c(e.operand);if(Mr(w))return w;switch(e.operator){case"+":return w;case"-":return-w;case"!":return!w;case"~":return~w}return null;case"index":var C=c(e.expression),E=c(e.index);return C&&Ir(E)?C[E]:null;case"select":var S=e.member,x=t,T=c(e.expression);if(T instanceof fo){var P=T.members.concat(S),A=a(x=o.getStaticSymbol(T.filePath,T.name,P));return A?n(x,A,r+1):x}return T&&Ir(S)?n(x,T[S],r+1):null;case"reference":var O=e.name,M=i.resolve(O);if(M!=Ip.missing)return M;break;case"class":case"function":return t;case"new":case"call":if((g=n(t,e.expression,r+1))instanceof fo){if(g===o.injectionToken||g===o.opaqueToken)return t;var R=e.arguments||[],k=o.conversionMap.get(g);if(k){var N=R.map(function(e){return n(t,e,r+1)}).map(function(t){return Mr(t)?void 0:t});return k(t,N)}return u(g,a(g),R)}return kp;case"error":var I=kr(e);return e.line?(I=I+" (position "+(e.line+1)+":"+(e.character+1)+" in the original .ts file)",o.reportError(jr(I,t.filePath,e.line,e.character),t)):o.reportError(new Error(I),t),kp;case"ignore":return e}return null}return Nr(e,function(t,e){return c(t)})}return kp}try{return c(e)}catch(e){var l=t.members.length?"."+t.members.join("."):"",p=e.message+", resolving symbol "+t.name+l+" in "+t.filePath;if(e.fileName)throw jr(p,e.fileName,e.line,e.column);throw v(p)}}var r=this,o=this,i=Ip.empty,s=new Map,a=this.errorRecorder?function(t,e,o){try{return n(t,e,o)}catch(e){r.reportError(e,t)}}(t,e,0):n(t,e,0);if(!Mr(a))return a},t.prototype.getTypeMetadata=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata?e.metadata:{__symbolic:"class"}},t}(),Ip=function(){function t(){}return t.prototype.resolve=function(t){},t.build=function(){var e=new Map;return{define:function(t,n){return e.set(t,n),this},done:function(){return e.size>0?new jp(e):t.empty}}},t}();Ip.missing={},Ip.empty={resolve:function(t){return Ip.missing}};var jp=function(t){function e(e){var n=t.call(this)||this;return n.bindings=e,n}return Jr(e,t),e.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):Ip.missing},e}(Ip),Dp=function(){function t(t,e){this.symbol=t,this.metadata=e}return t}(),Lp=function(){function t(t,e,n,r){this.host=t,this.staticSymbolCache=e,this.summaryResolver=n,this.errorRecorder=r,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.resolvedFilePaths=new Set,this.importAs=new Map,this.symbolResourcePaths=new Map,this.symbolFromFile=new Map}return t.prototype.resolveSymbol=function(t){if(t.members.length>0)return this._resolveSymbolMembers(t);var e=this.resolvedSymbols.get(t);return e||((e=this._resolveSymbolFromSummary(t))?e:(this._createSymbolsOf(t.filePath),e=this.resolvedSymbols.get(t)))},t.prototype.getImportAs=function(t){if(t.members.length){var e=this.getStaticSymbol(t.filePath,t.name),n=this.getImportAs(e);return n?this.getStaticSymbol(n.filePath,n.name,t.members):null}var r=this.summaryResolver.getImportAs(t);return r||(r=this.importAs.get(t)),r},t.prototype.getResourcePath=function(t){return this.symbolResourcePaths.get(t)||t.filePath},t.prototype.getTypeArity=function(t){if(Xe(t.filePath))return null;for(var e=this.resolveSymbol(t);e&&e.metadata instanceof fo;)e=this.resolveSymbol(e.metadata);return e&&e.metadata&&e.metadata.arity||null},t.prototype.recordImportAs=function(t,e){t.assertNoMembers(),e.assertNoMembers(),this.importAs.set(t,e)},t.prototype.invalidateFile=function(t){this.metadataCache.delete(t),this.resolvedFilePaths.delete(t);var e=this.symbolFromFile.get(t);if(e){this.symbolFromFile.delete(t);for(var n=0,r=e;n<r.length;n++){var o=r[n];this.resolvedSymbols.delete(o),this.importAs.delete(o),this.symbolResourcePaths.delete(o)}}},t.prototype._resolveSymbolMembers=function(t){var e=t.members,n=this.resolveSymbol(this.getStaticSymbol(t.filePath,t.name));if(!n)return null;var r=n.metadata;if(r instanceof fo)return new Dp(t,this.getStaticSymbol(r.filePath,r.name,e));if(!r||"class"!==r.__symbolic){for(var o=r,i=0;i<e.length&&o;i++)o=o[e[i]];return new Dp(t,o)}return r.statics&&1===e.length?new Dp(t,r.statics[e[0]]):null},t.prototype._resolveSymbolFromSummary=function(t){var e=this.summaryResolver.resolveSummary(t);return e?new Dp(t,e.metadata):null},t.prototype.getStaticSymbol=function(t,e,n){return this.staticSymbolCache.get(t,e,n)},t.prototype.getSymbolsOf=function(t){var e=new Set(this.summaryResolver.getSymbolsOf(t));return this._createSymbolsOf(t),this.resolvedSymbols.forEach(function(n){n.symbol.filePath===t&&e.add(n.symbol)}),Array.from(e)},t.prototype._createSymbolsOf=function(t){var e=this;if(!this.resolvedFilePaths.has(t)){this.resolvedFilePaths.add(t);var n=[],r=this.getModuleMetadata(t);if(r.metadata){var o=new Set(Object.keys(r.metadata).map(Dr)),i=r.origins||{};Object.keys(r.metadata).forEach(function(s){var a=r.metadata[s],u=Dr(s),c=e.getStaticSymbol(t,u),l=void 0;r.importAs&&(l=e.getStaticSymbol(r.importAs,u),e.recordImportAs(c,l));var p=i.hasOwnProperty(s)&&i[s];if(p){var h=e.resolveModule(p,t);h?e.symbolResourcePaths.set(c,h):e.reportError(new Error("Couldn't resolve original symbol for "+p+" from "+t))}n.push(e.createResolvedSymbol(c,t,o,a))})}if(r.exports)for(var s=this,a=0,u=r.exports;a<u.length;a++)!function(r){if(r.export)r.export.forEach(function(o){var i,s=i=Dr(i="string"==typeof o?o:o.as);"string"!=typeof o&&(s=Dr(o.name));var a=e.resolveModule(r.from,t);if(a){var u=e.getStaticSymbol(a,s),c=e.getStaticSymbol(t,i);n.push(e.createExport(c,u))}});else{var o=s.resolveModule(r.from,t);o&&s.getSymbolsOf(o).forEach(function(r){var o=e.getStaticSymbol(t,r.name);n.push(e.createExport(o,r))})}}(u[a]);n.forEach(function(t){return e.resolvedSymbols.set(t.symbol,t)}),this.symbolFromFile.set(t,n.map(function(t){return t.symbol}))}},t.prototype.createResolvedSymbol=function(t,e,n,r){if(this.summaryResolver.isLibraryFile(t.filePath)&&r&&"class"===r.__symbolic){var o={__symbolic:"class",arity:r.arity};return new Dp(t,o)}var i=this,s=d(r,new(function(r){function o(){return null!==r&&r.apply(this,arguments)||this}return Jr(o,r),o.prototype.visitStringMap=function(o,s){var a=o.__symbolic;if("function"===a){var u=s.length;s.push.apply(s,o.parameters||[]);var c=r.prototype.visitStringMap.call(this,o,s);return s.length=u,c}if("reference"!==a)return r.prototype.visitStringMap.call(this,o,s);var l=o.module,p=o.name?Dr(o.name):o.name;if(!p)return null;var h=void 0;return l?(h=i.resolveModule(l,t.filePath),h?i.getStaticSymbol(h,p):{__symbolic:"error",message:"Could not resolve "+l+" relative to "+t.filePath+"."}):s.indexOf(p)>=0?{__symbolic:"reference",name:p}:n.has(p)?i.getStaticSymbol(e,p):void 0},o}(Ao)),[]);return s instanceof fo?this.createExport(t,s):new Dp(t,s)},t.prototype.createExport=function(t,e){return t.assertNoMembers(),e.assertNoMembers(),this.summaryResolver.isLibraryFile(t.filePath)&&this.importAs.set(e,this.getImportAs(t)||t),new Dp(t,e)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||n)},t.prototype.getModuleMetadata=function(t){var e=this.metadataCache.get(t);if(!e){var n=this.host.getMetadataFor(t);if(n){var r=-1;n.forEach(function(t){t.version>r&&(r=t.version,e=t)})}if(e||(e={__symbolic:"module",version:3,module:t,metadata:{}}),3!=e.version){var o=2==e.version?"Unsupported metadata version "+e.version+" for module "+t+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+t+", found version "+e.version+", expected 3";this.reportError(new Error(o))}this.metadataCache.set(t,e)}return e},t.prototype.getSymbolByModule=function(t,e,n){var r=this.resolveModule(t,n);return r?this.getStaticSymbol(r,e):(this.reportError(new Error("Could not resolve module "+t+(n?" relative to $ {\n            containingFile\n          } ":""))),this.getStaticSymbol("ERROR:"+t,e))},t.prototype.resolveModule=function(t,e){try{return this.host.moduleNameToFileName(t,e)}catch(n){console.error("Could not resolve module '"+t+"' relative to file "+e),this.reportError(n,void 0,e)}return null},t}(),Vp=function(){function t(t,e){this.host=t,this.staticSymbolCache=e,this.summaryCache=new Map,this.loadedFilePaths=new Set,this.importAs=new Map}return t.prototype.isLibraryFile=function(t){return!this.host.isSourceFile(Je(t))},t.prototype.getLibraryFileName=function(t){return this.host.getOutputFileName(t)},t.prototype.resolveSummary=function(t){t.assertNoMembers();var e=this.summaryCache.get(t);return e||(this._loadSummaryFile(t.filePath),e=this.summaryCache.get(t)),e},t.prototype.getSymbolsOf=function(t){return this._loadSummaryFile(t),Array.from(this.summaryCache.keys()).filter(function(e){return e.filePath===t})},t.prototype.getImportAs=function(t){return t.assertNoMembers(),this.importAs.get(t)},t.prototype._loadSummaryFile=function(t){var e=this;if(!this.loadedFilePaths.has(t)&&(this.loadedFilePaths.add(t),this.isLibraryFile(t))){var n=Ze(t),r=void 0;try{r=this.host.loadSummary(n)}catch(t){throw console.error("Error loading summary file "+n),t}if(r){var o=br(this.staticSymbolCache,r),i=o.summaries,s=o.importAs;i.forEach(function(t){return e.summaryCache.set(t.symbol,t)}),s.forEach(function(n){e.importAs.set(n.symbol,e.staticSymbolCache.get(Qe(t),n.importAs))})}}},t}(),Fp=function(){function t(t,e,n,r){this.parent=t,this.instance=e,this.className=n,this.vars=r}return t.prototype.createChildWihtLocalVars=function(){return new t(this,this.instance,this.className,new Map)},t}(),Up=function(){function t(t){this.value=t}return t}(),Bp=function(){function t(){}return t.prototype.debugAst=function(t){return In(t)},t.prototype.visitDeclareVarStmt=function(t,e){return e.vars.set(t.name,t.value.visitExpression(this,e)),null},t.prototype.visitWriteVarExpr=function(t,e){for(var n=t.value.visitExpression(this,e),r=e;null!=r;){if(r.vars.has(t.name))return r.vars.set(t.name,n),n;r=r.parent}throw new Error("Not declared variable "+t.name)},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(null!=t.builtin)switch(t.builtin){case pc.Super:return e.instance.__proto__;case pc.This:return e.instance;case pc.CatchError:n=Hp;break;case pc.CatchStack:n=qp;break;default:throw new Error("Unknown builtin variable "+t.builtin)}for(var r=e;null!=r;){if(r.vars.has(n))return r.vars.get(n);r=r.parent}throw new Error("Not declared variable "+n)},t.prototype.visitWriteKeyExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.index.visitExpression(this,e),o=t.value.visitExpression(this,e);return n[r]=o,o},t.prototype.visitWritePropExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.value.visitExpression(this,e);return n[t.name]=r,r},t.prototype.visitInvokeMethodExpr=function(t,e){var n,r=t.receiver.visitExpression(this,e),o=this.visitAllExpressions(t.args,e);if(null!=t.builtin)switch(t.builtin){case yc.ConcatArray:n=r.concat.apply(r,o);break;case yc.SubscribeObservable:n=r.subscribe({next:o[0]});break;case yc.Bind:n=r.bind.apply(r,o);break;default:throw new Error("Unknown builtin method "+t.builtin)}else n=r[t.name].apply(r,o);return n},t.prototype.visitInvokeFunctionExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.fn;return r instanceof hc&&r.builtin===pc.Super?(e.instance.constructor.prototype.constructor.apply(e.instance,n),null):t.fn.visitExpression(this,e).apply(null,n)},t.prototype.visitReturnStmt=function(t,e){return new Up(t.value.visitExpression(this,e))},t.prototype.visitDeclareClassStmt=function(t,e){var n=Ur(t,e,this);return e.vars.set(t.name,n),null},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e)},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e)?this.visitAllStatements(t.trueCase,e):null!=t.falseCase?this.visitAllStatements(t.falseCase,e):null},t.prototype.visitTryCatchStmt=function(t,e){try{return this.visitAllStatements(t.bodyStmts,e)}catch(r){var n=e.createChildWihtLocalVars();return n.vars.set(Hp,r),n.vars.set(qp,r.stack),this.visitAllStatements(t.catchStmts,n)}},t.prototype.visitThrowStmt=function(t,e){throw t.error.visitExpression(this,e)},t.prototype.visitCommentStmt=function(t,e){return null},t.prototype.visitInstantiateExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.classExpr.visitExpression(this,e);return new(r.bind.apply(r,[void 0].concat(n)))},t.prototype.visitLiteralExpr=function(t,e){return t.value},t.prototype.visitExternalExpr=function(t,e){return t.value.reference},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e)?t.trueCase.visitExpression(this,e):null!=t.falseCase?t.falseCase.visitExpression(this,e):null},t.prototype.visitNotExpr=function(t,e){return!t.condition.visitExpression(this,e)},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e)},t.prototype.visitFunctionExpr=function(t,e){return Br(t.params.map(function(t){return t.name}),t.statements,e,this)},t.prototype.visitDeclareFunctionStmt=function(t,e){var n=t.params.map(function(t){return t.name});return e.vars.set(t.name,Br(n,t.statements,e,this)),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var n=this,r=function(){return t.lhs.visitExpression(n,e)},o=function(){return t.rhs.visitExpression(n,e)};switch(t.operator){case cc.Equals:return r()==o();case cc.Identical:return r()===o();case cc.NotEquals:return r()!=o();case cc.NotIdentical:return r()!==o();case cc.And:return r()&&o();case cc.Or:return r()||o();case cc.Plus:return r()+o();case cc.Minus:return r()-o();case cc.Divide:return r()/o();case cc.Multiply:return r()*o();case cc.Modulo:return r()%o();case cc.Lower:return r()<o();case cc.LowerEquals:return r()<=o();case cc.Bigger:return r()>o();case cc.BiggerEquals:return r()>=o();default:throw new Error("Unknown operator "+t.operator)}},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e)[t.name]},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e)[t.index.visitExpression(this,e)]},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r={};return t.entries.forEach(function(t){return r[t.key]=t.value.visitExpression(n,e)}),r},t.prototype.visitCommaExpr=function(t,e){var n=this.visitAllExpressions(t.parts,e);return n[n.length-1]},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitAllStatements=function(t,e){for(var n=0;n<t.length;n++){var r=t[n].visitStatement(this,e);if(r instanceof Up)return r}return null},t}(),Hp="error",qp="stack",zp=function(t){function e(){var e=t.apply(this,arguments)||this;return e._evalArgNames=[],e._evalArgValues=[],e}return Jr(e,t),e.prototype.getArgs=function(){for(var t={},e=0;e<this._evalArgNames.length;e++)t[this._evalArgNames[e]]=this._evalArgValues[e];return t},e.prototype.visitExternalExpr=function(t,e){var n=t.value.reference,r=this._evalArgValues.indexOf(n);if(-1===r){r=this._evalArgValues.length,this._evalArgValues.push(n);var o=E(t.value)||"val";this._evalArgNames.push("jit_"+o+r)}return e.print(t,this._evalArgNames[r]),null},e}(function(t){function e(){return t.call(this,!1)||this}return Jr(e,t),e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),this._visitClassConstructor(t,e),null!=t.parent&&(e.print(t,t.name+".prototype = Object.create("),t.parent.visitExpression(this,e),e.println(t,".prototype);")),t.getters.forEach(function(r){return n._visitClassGetter(t,r,e)}),t.methods.forEach(function(r){return n._visitClassMethod(t,r,e)}),e.popClass(),null},e.prototype._visitClassConstructor=function(t,e){e.print(t,"function "+t.name+"("),null!=t.constructorMethod&&this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),null!=t.constructorMethod&&t.constructorMethod.body.length>0&&(e.println(t,"var self = this;"),this.visitAllStatements(t.constructorMethod.body,e)),e.decIndent(),e.println(t,"}")},e.prototype._visitClassGetter=function(t,e,n){n.println(t,"Object.defineProperty("+t.name+".prototype, '"+e.name+"', { get: function() {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"}});")},e.prototype._visitClassMethod=function(t,e,n){n.print(t,t.name+".prototype."+e.name+" = function("),this._visitParams(e.params,n),n.println(t,") {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"};")},e.prototype.visitReadVarExpr=function(e,n){if(e.builtin===pc.This)n.print(e,"self");else{if(e.builtin===pc.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");t.prototype.visitReadVarExpr.call(this,e,n)}return null},e.prototype.visitDeclareVarStmt=function(t,e){return e.print(t,"var "+t.name+" = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitInvokeFunctionExpr=function(e,n){var r=e.fn;return r instanceof hc&&r.builtin===pc.Super?(n.currentClass.parent.visitExpression(this,n),n.print(e,".call(this"),e.args.length>0&&(n.print(e,", "),this.visitAllExpressions(e.args,n,",")),n.print(e,")")):t.prototype.visitInvokeFunctionExpr.call(this,e,n),null},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"function("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+fl.name+") {"),e.incIndent();var n=[dl.set(fl.prop("stack")).toDeclStmt(null,[Vc.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype._visitParams=function(t,e){this.visitAllObjects(function(t){return e.print(null,t.name)},t,e,",")},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case yc.ConcatArray:e="concat";break;case yc.SubscribeObservable:e="subscribe";break;case yc.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e}(vl)),Gp=function(){function t(t,e,n,r,o,i,s,a){this._injector=t,this._metadataResolver=e,this._templateParser=n,this._styleCompiler=r,this._viewCompiler=o,this._ngModuleCompiler=i,this._compilerConfig=s,this._console=a,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._sharedStylesheetCount=0}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._compileModuleAndComponents(t,!0).syncResult},t.prototype.compileModuleAsync=function(t){return this._compileModuleAndComponents(t,!1).asyncResult},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._compileModuleAndAllComponents(t,!0).syncResult},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._compileModuleAndAllComponents(t,!1).asyncResult},t.prototype.getNgContentSelectors=function(t){this._console.warn("Compiler.getNgContentSelectors is deprecated. Use ComponentFactory.ngContentSelectors instead!");var n=this._compiledTemplateCache.get(t);if(!n)throw new Error("The component "+e.ɵstringify(t)+" is not yet compiled!");return n.compMeta.template.ngContentSelectors},t.prototype._compileModuleAndComponents=function(t,e){var n=this,r=this._loadModules(t,e),o=function(){return n._compileComponents(t,null),n._compileModule(t)};return e?new Oo(o()):new Oo(null,r.then(o))},t.prototype._compileModuleAndAllComponents=function(t,n){var r=this,o=this._loadModules(t,n),i=function(){var n=[];return r._compileComponents(t,n),new e.ModuleWithComponentFactories(r._compileModule(t),n)};return n?new Oo(i()):new Oo(null,o.then(i))},t.prototype._loadModules=function(t,e){var n=this,r=[];return this._metadataResolver.getNgModuleMetadata(t).transitiveModule.modules.forEach(function(t){r.push(n._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.reference,e))}),Promise.all(r)},t.prototype._compileModule=function(t){var n=this,r=this._compiledNgModuleCache.get(t);if(!r){var o=this._metadataResolver.getNgModuleMetadata(t),i=[this._metadataResolver.getProviderMetadata(new Yo(e.Compiler,{useFactory:function(){return new $p(n,o.type.reference)}}))],s=this._ngModuleCompiler.compile(o,i);r=this._compilerConfig.useJit?qr(V(o),s.statements,[s.ngModuleFactoryVar])[0]:Vr(s.statements,[s.ngModuleFactoryVar])[0],this._compiledNgModuleCache.set(o.type.reference,r)}return r},t.prototype._compileComponents=function(t,e){var n=this,r=this._metadataResolver.getNgModuleMetadata(t),o=new Map,i=new Set;r.transitiveModule.modules.forEach(function(t){var r=n._metadataResolver.getNgModuleMetadata(t.reference);r.declaredDirectives.forEach(function(t){o.set(t.reference,r);var s=n._metadataResolver.getDirectiveMetadata(t.reference);if(s.isComponent&&(i.add(n._createCompiledTemplate(s,r)),e)){var a=n._createCompiledHostTemplate(s.type.reference,r);i.add(a),e.push(s.componentFactory)}})}),r.transitiveModule.modules.forEach(function(t){var e=n._metadataResolver.getNgModuleMetadata(t.reference);e.declaredDirectives.forEach(function(t){var e=n._metadataResolver.getDirectiveMetadata(t.reference);e.isComponent&&e.entryComponents.forEach(function(t){var e=o.get(t.componentType);i.add(n._createCompiledHostTemplate(t.componentType,e))})}),e.entryComponents.forEach(function(t){var e=o.get(t.componentType);i.add(n._createCompiledHostTemplate(t.componentType,e))})}),i.forEach(function(t){return n._compileTemplate(t)})},t.prototype.clearCacheFor=function(t){this._compiledNgModuleCache.delete(t),this._metadataResolver.clearCacheFor(t),this._compiledHostTemplateCache.delete(t),this._compiledTemplateCache.get(t)&&this._compiledTemplateCache.delete(t)},t.prototype.clearCache=function(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(),this._compiledNgModuleCache.clear()},t.prototype._createCompiledHostTemplate=function(t,n){if(!n)throw new Error("Component "+e.ɵstringify(t)+" is not part of any NgModule or the module has not been imported into your module.");var r=this._compiledHostTemplateCache.get(t);if(!r){var o=this._metadataResolver.getDirectiveMetadata(t);zr(o);var i=o.componentFactory,s=k(this._metadataResolver.getHostComponentType(t),o,e.ɵgetComponentViewDefinitionFactory(i));r=new Wp(!0,o.type,s,n,[o.type]),this._compiledHostTemplateCache.set(t,r)}return r},t.prototype._createCompiledTemplate=function(t,e){var n=this._compiledTemplateCache.get(t.type.reference);return n||(zr(t),n=new Wp(!1,t.type,t,e,e.transitiveModule.directives),this._compiledTemplateCache.set(t.type.reference,n)),n},t.prototype._compileTemplate=function(t){var e=this;if(!t.isCompiled){var n=t.compMeta,r=new Map,o=this._styleCompiler.compileComponent(n);o.externalStylesheets.forEach(function(t){r.set(t.meta.moduleUrl,t)}),this._resolveStylesCompileResult(o.componentStylesheet,r);var i,s,a=t.directives.map(function(t){return e._metadataResolver.getDirectiveSummary(t.reference)}),u=t.ngModule.transitiveModule.pipes.map(function(t){return e._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(n,n.template.template,a,u,t.ngModule.schemas,D(t.ngModule.type,t.compMeta,t.compMeta.template)),l=c.template,p=c.pipes,h=this._viewCompiler.compileComponent(n,l,yn(o.componentStylesheet.stylesVar),p),f=o.componentStylesheet.statements.concat(h.statements),d=n.isHost?[h.viewClassVar]:[h.viewClassVar,h.rendererTypeVar];this._compilerConfig.useJit?(i=(y=qr(F(t.ngModule.type,t.compMeta),f,d))[0],s=y[1]):(i=(m=Vr(f,d))[0],s=m[1]),t.compiled(i,s);var m,y}},t.prototype._resolveStylesCompileResult=function(t,e){var n=this;t.dependencies.forEach(function(t,r){var o=e.get(t.moduleUrl),i=n._resolveAndEvalStylesCompileResult(o,e);t.valuePlaceholder.reference=i})},t.prototype._resolveAndEvalStylesCompileResult=function(t,e){return this._resolveStylesCompileResult(t,e),this._compilerConfig.useJit?qr(L(t.meta,this._sharedStylesheetCount++),t.statements,[t.stylesVar])[0]:Vr(t.statements,[t.stylesVar])[0]},t}();Gp.decorators=[{type:z}],Gp.ctorParameters=function(){return[{type:e.Injector},{type:Xu},{type:Ou},{type:ip},{type:vp},{type:ol},{type:Zo},{type:e.ɵConsole}]};var Wp=function(){function t(t,e,n,r,o){this.isHost=t,this.compType=e,this.compMeta=n,this.ngModule=r,this.directives=o,this._viewClass=null,this.isCompiled=!1}return t.prototype.compiled=function(t,e){this._viewClass=t,this.compMeta.componentViewType.setDelegate(t);for(var n in e)this.compMeta.rendererType[n]=e[n];this.isCompiled=!0},t}(),$p=function(){function t(t,e){this._delegate=t,this._ngModule=e}return Object.defineProperty(t.prototype,"_injector",{get:function(){return this._delegate.injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._delegate.compileModuleSync(t)},t.prototype.compileModuleAsync=function(t){return this._delegate.compileModuleAsync(t)},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._delegate.compileModuleAndAllComponentsSync(t)},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._delegate.compileModuleAndAllComponentsAsync(t)},t.prototype.getNgContentSelectors=function(t){return this._delegate.getNgContentSelectors(t)},t.prototype.clearCache=function(){this._delegate.clearCache()},t.prototype.clearCacheFor=function(t){this._delegate.clearCacheFor(t)},t}(),Kp=function(){function t(t,e,n,r){void 0===r&&(r=null),this._htmlParser=t,this._implicitTags=e,this._implicitAttrs=n,this._locale=r,this._messages=[]}return t.prototype.updateFromTemplate=function(t,e,n){var r=this._htmlParser.parse(t,e,!0,n);if(r.errors.length)return r.errors;var o=Pt(r.rootNodes,n,this._implicitTags,this._implicitAttrs);return o.errors.length?o.errors:((i=this._messages).push.apply(i,o.messages),[]);var i},t.prototype.getMessages=function(){return this._messages},t.prototype.write=function(t,e){var n={},r=new Qp;this._messages.forEach(function(e){var r=t.digest(e);n.hasOwnProperty(r)?(o=n[r].sources).push.apply(o,e.sources):n[r]=e;var o});var o=Object.keys(n).map(function(o){var i=t.createNameMapper(n[o]),s=n[o],a=i?r.convert(s.nodes,i):s.nodes,u=new qs(a,{},{},s.meaning,s.description,o);return u.sources=s.sources,e&&u.sources.forEach(function(t){return t.filePath=e(t.filePath)}),u});return t.write(o,this._locale)},t}(),Qp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Jr(e,t),e.prototype.convert=function(t,e){var n=this;return e?t.map(function(t){return t.visit(n,e)}):t},e.prototype.visitTagPlaceholder=function(t,e){var n=this,r=e.toPublicName(t.startName),o=t.closeName?e.toPublicName(t.closeName):t.closeName,i=t.children.map(function(t){return t.visit(n,e)});return new $s(t.tag,t.attrs,r,o,i,t.isVoid,t.sourceSpan)},e.prototype.visitPlaceholder=function(t,e){return new Ks(t.value,e.toPublicName(t.name),t.sourceSpan)},e.prototype.visitIcuPlaceholder=function(t,e){return new Qs(t.value,e.toPublicName(t.name),t.sourceSpan)},e}(Js),Jp=function(){function t(t,e,n,r){this.host=t,this.staticSymbolResolver=e,this.messageBundle=n,this.metadataResolver=r}return t.prototype.extract=function(t){var e=this,n=xr(Pr(this.staticSymbolResolver,t,this.host),this.host,this.metadataResolver),r=n.files,o=n.ngModules;return Promise.all(o.map(function(t){return e.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=[];if(r.forEach(function(n){var r=[];n.directives.forEach(function(t){var n=e.metadataResolver.getDirectiveMetadata(t);n&&n.isComponent&&r.push(n)}),r.forEach(function(r){var o=r.template.template,i=us.fromArray(r.template.interpolation);t.push.apply(t,e.messageBundle.updateFromTemplate(o,n.srcUrl,i))})}),t.length)throw new Error(t.map(function(t){return t.toString()}).join("\n"));return e.messageBundle})},t.create=function(n,r){var o=new qa(new Ua),i=Ue(),s=new mo,a=new Vp(n,s),u=new Lp(n,s,a),c=new Np(a,u);Op.install(c);var l=new Zo({defaultEncapsulation:e.ViewEncapsulation.Emulated,useJit:!1}),p=new Bu({get:function(t){return n.loadResource(t)}},i,o,l),h=new Al,f=new Xu(l,new $u(c),new zu(c),new Ku(c),a,h,p,new e.ɵConsole,s,c),d=new Kp(o,[],{},r);return{extractor:new t(n,u,d,f),staticReflector:c}},t}(),Xp={get:function(t){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+t+'"')}},Yp=new e.InjectionToken("HtmlParser"),Zp=[{provide:e.ɵReflector,useValue:e.ɵreflector},{provide:e.ɵReflectorReader,useExisting:e.ɵReflector},{provide:Du,useValue:Xp},Qu,e.ɵConsole,hs,gs,{provide:Yp,useClass:Ua},{provide:qa,useFactory:Gr,deps:[Yp,[new e.Optional,new e.Inject(e.TRANSLATIONS)],[new e.Optional,new e.Inject(e.TRANSLATIONS_FORMAT)],[Zo],[e.ɵConsole]]},{provide:Ua,useExisting:qa},Ou,Bu,Xu,Lu,ip,vp,ol,{provide:Zo,useValue:new Zo},Gp,{provide:e.Compiler,useExisting:Gp},Al,{provide:tu,useExisting:Al},Vu,zu,Ku,$u],th=function(){function t(t){var n={useDebug:e.isDevMode(),useJit:!0,defaultEncapsulation:e.ViewEncapsulation.Emulated,missingTranslation:e.MissingTranslationStrategy.Warning,enableLegacyTemplate:!0};this._defaultOptions=[n].concat(t)}return t.prototype.createCompiler=function(t){void 0===t&&(t=[]);var n=$r(this._defaultOptions.concat(t));return e.ReflectiveInjector.resolveAndCreate([Zp,{provide:Zo,useFactory:function(){return new Zo({useJit:n.useJit,defaultEncapsulation:n.defaultEncapsulation,missingTranslation:n.missingTranslation,enableLegacyTemplate:n.enableLegacyTemplate})},deps:[]},n.providers]).get(e.Compiler)},t}();th.decorators=[{type:z}],th.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Inject,args:[e.COMPILER_OPTIONS]}]}]};var eh=e.createPlatformFactory(e.platformCore,"coreDynamic",[{provide:e.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:e.CompilerFactory,useClass:th},{provide:e.PLATFORM_INITIALIZER,useValue:Wr,multi:!0}]),nh=function(){function t(){}return t.prototype.fileNameToModuleName=function(t,e){},t.prototype.getImportAs=function(t){},t.prototype.getTypeArity=function(t){},t}();t.VERSION=Xr,t.TEMPLATE_TRANSFORMS=Tu,t.CompilerConfig=Zo,t.JitCompiler=Gp,t.DirectiveResolver=zu,t.PipeResolver=Ku,t.NgModuleResolver=$u,t.DEFAULT_INTERPOLATION_CONFIG=cs,t.InterpolationConfig=us,t.NgModuleCompiler=ol,t.ViewCompiler=vp,t.isSyntaxError=g,t.syntaxError=v,t.TextAst=Yr,t.BoundTextAst=Zr,t.AttrAst=to,t.BoundElementPropertyAst=eo,t.BoundEventAst=no,t.ReferenceAst=ro,t.VariableAst=oo,t.ElementAst=io,t.EmbeddedTemplateAst=so,t.BoundDirectivePropertyAst=ao,t.DirectiveAst=uo,t.ProviderAst=co,t.ProviderAstType=lo,t.NgContentAst=po,t.PropertyBindingType=ho,t.templateVisitAll=n,t.CompileAnimationEntryMetadata=No,t.CompileAnimationStateMetadata=Io,t.CompileAnimationStateDeclarationMetadata=jo,t.CompileAnimationStateTransitionMetadata=Do,t.CompileAnimationMetadata=Lo,t.CompileAnimationKeyframesSequenceMetadata=Vo,t.CompileAnimationStyleMetadata=Fo,t.CompileAnimationAnimateMetadata=Uo,t.CompileAnimationWithStepsMetadata=Bo,t.CompileAnimationSequenceMetadata=Ho,t.CompileAnimationGroupMetadata=qo,t.identifierName=E,t.identifierModuleUrl=S,t.viewClassName=x,t.rendererTypeName=T,t.hostViewClassName=P,t.dirWrapperClassName=A,t.componentFactoryName=O,t.CompileSummaryKind=Go,t.tokenName=M,t.tokenReference=R,t.CompileStylesheetMetadata=Wo,t.CompileTemplateMetadata=$o,t.CompileDirectiveMetadata=Ko,t.createHostComponentMeta=k,t.CompilePipeMetadata=Qo,t.CompileNgModuleMetadata=Jo,t.TransitiveCompileNgModuleMetadata=Xo,t.ProviderMeta=Yo,t.flatten=I,t.sourceUrl=j,t.templateSourceUrl=D,t.sharedStylesheetJitUrl=L,t.ngModuleJitUrl=V,t.templateJitUrl=F,t.createAotCompiler=Lr,t.AotCompiler=Ap,t.analyzeNgModules=Sr,t.analyzeAndValidateNgModules=xr,t.extractProgramSymbols=Pr,t.GeneratedFile=xp,t.StaticReflector=Np,t.StaticAndDynamicReflectionCapabilities=Op,t.StaticSymbol=fo,t.StaticSymbolCache=mo,t.ResolvedStaticSymbol=Dp,t.StaticSymbolResolver=Lp,t.unescapeIdentifier=Dr,t.AotSummaryResolver=Vp,t.SummaryResolver=Qu,t.i18nHtmlParserFactory=Gr,t.COMPILER_PROVIDERS=Zp,t.JitCompilerFactory=th,t.platformCoreDynamic=eh,t.createUrlResolverWithoutPackagePrefix=Fe,t.createOfflineCompileUrlResolver=Ue,t.DEFAULT_PACKAGE_URL_PROVIDER=Lu,t.UrlResolver=Vu,t.getUrlScheme=Be,t.ResourceLoader=Du,t.ElementSchemaRegistry=tu,t.Extractor=Jp,t.I18NHtmlParser=qa,t.MessageBundle=Kp,t.Serializer=va,t.Xliff=Ta,t.Xliff2=Ma,t.Xmb=Ia,t.Xtb=La,t.DirectiveNormalizer=Bu,t.ParserError=ti,t.ParseSpan=ei,t.AST=ni,t.Quote=ri,t.EmptyExpr=oi,t.ImplicitReceiver=ii,t.Chain=si,t.Conditional=ai,t.PropertyRead=ui,t.PropertyWrite=ci,t.SafePropertyRead=li,t.KeyedRead=pi,t.KeyedWrite=hi,t.BindingPipe=fi,t.LiteralPrimitive=di,t.LiteralArray=mi,t.LiteralMap=yi,t.Interpolation=vi,t.Binary=gi,t.PrefixNot=_i,t.MethodCall=bi,t.SafeMethodCall=wi,t.FunctionCall=Ci,t.ASTWithSource=Ei,t.TemplateBinding=Si,t.RecursiveAstVisitor=xi,t.AstTransformer=Ti,t.TokenType=ls,t.Lexer=hs,t.Token=fs,t.EOF=ds,t.isIdentifier=et,t.isQuote=it,t.SplitInterpolation=ys,t.TemplateBindingParseResult=vs,t.Parser=gs,t._ParseAST=_s,t.ERROR_COLLECTOR_TOKEN=Ju,t.CompileMetadataResolver=Xu,t.componentModuleUrl=cn,t.Text=Ts,t.Expansion=Ps,t.ExpansionCase=As,t.Attribute=Os,t.Element=Ms,t.Comment=Rs,t.visitAll=lt,t.ParseTreeResult=Us,t.TreeError=Fs,t.HtmlParser=Ua,t.HtmlTagDefinition=go,t.getHtmlTagDefinition=c,t.TagContentType=yo,t.splitNsName=r,t.isNgContainer=o,t.isNgContent=i,t.isNgTemplate=s,t.getNsPrefix=a,t.mergeNsAndName=u,t.NAMED_ENTITIES=vo,t.ImportResolver=nh,t.debugOutputAstAsTypeScript=In,t.TypeScriptEmitter=_l,t.ParseLocation=ws,t.ParseSourceFile=Cs,t.ParseSourceSpan=Es,t.ParseErrorLevel=Ss,t.ParseError=xs,t.typeSourceSpan=ct,t.DomElementSchemaRegistry=Al,t.CssSelector=Co,t.SelectorMatcher=Eo,t.SelectorListContext=So,t.SelectorContext=xo,t.StylesCompileDependency=np,t.StylesCompileResult=rp,t.CompiledStylesheet=op,t.StyleCompiler=ip,t.TemplateParseError=Pu,t.TemplateParseResult=Au,t.TemplateParser=Ou,t.splitClasses=Ne,t.createElementCssSelector=Ie,t.removeSummaryDuplicates=De,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":13}],13:[function(t,e,n){(function(r){!function(r,o){"object"==typeof n&&void 0!==e?o(n,t("rxjs/Observable"),t("rxjs/observable/merge"),t("rxjs/operator/share"),t("rxjs/Subject")):o((r.ng=r.ng||{},r.ng.core=r.ng.core||{}),r.Rx,r.Rx.Observable,r.Rx.Observable.prototype,r.Rx)}(this,function(t,e,n,o,i){"use strict";function s(){if(!lo){var t=co.Symbol;if(t&&t.iterator)lo=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n<e.length;++n){var r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(lo=r)}}return lo}function a(t){Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function u(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function c(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function l(t){return"function"==typeof t&&t.hasOwnProperty("annotation")&&(t=t.annotation),t}function p(t,e){if(t===Object||t===String||t===Function||t===Number||t===Array)throw new Error("Can not use native "+c(t)+" as constructor");if("function"==typeof t)return t;if(Array.isArray(t)){var n=t,r=n.length-1,o=t[r];if("function"!=typeof o)throw new Error("Last position of Class method array must be Function in key "+e+" was '"+c(o)+"'");if(r!=o.length)throw new Error("Number of annotations ("+r+") does not match number of arguments ("+o.length+") in the function: "+c(o));for(var i=[],s=0,a=n.length-1;s<a;s++){var u=[];i.push(u);var p=n[s];if(Array.isArray(p))for(var h=0;h<p.length;h++)u.push(l(p[h]));else"function"==typeof p?u.push(l(p)):u.push(p)}return ho.defineMetadata("parameters",i,o),o}throw new Error("Only Function or Array is supported in Class definition for key '"+e+"' is '"+c(t)+"'")}function h(t){var e=p(t.hasOwnProperty("constructor")?t.constructor:void 0,"constructor"),n=e.prototype;if(t.hasOwnProperty("extends")){if("function"!=typeof t.extends)throw new Error("Class definition 'extends' property must be a constructor function was: "+c(t.extends));e.prototype=n=Object.create(t.extends.prototype)}for(var r in t)"extends"!==r&&"prototype"!==r&&t.hasOwnProperty(r)&&(n[r]=p(t[r],r));this&&this.annotations instanceof Array&&ho.defineMetadata("annotations",this.annotations,e);var o=e.name;return o&&"constructor"!==o||(e.overriddenName="class"+po++),e}function f(t,e,n,r){function o(t){if(!ho||!ho.getOwnMetadata)throw"reflect-metadata shim is required when using class decorators";if(this instanceof o)return i.call(this,t),this;var e=new o(t),n="function"==typeof this&&Array.isArray(this.annotations)?this.annotations:[];n.push(e);var s=function(t){var n=ho.getOwnMetadata("annotations",t)||[];return n.push(e),ho.defineMetadata("annotations",n,t),t};return s.annotations=n,s.Class=h,r&&r(s),s}var i=d([e]);return n&&(o.prototype=Object.create(n.prototype)),o.prototype.toString=function(){return"@"+t},o.annotationCls=o,o}function d(t){return function(){for(var e=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.forEach(function(t,r){var o=n[r];if(Array.isArray(t))e[t[0]]=void 0===o?t[1]:o;else for(var i in t)e[i]=o&&o.hasOwnProperty(i)?o[i]:t[i]})}}function m(t,e,n){function r(){function t(t,e,n){for(var r=ho.getOwnMetadata("parameters",t)||[];r.length<=n;)r.push(null);return r[n]=r[n]||[],r[n].push(i),ho.defineMetadata("parameters",r,t),t}for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this instanceof r)return o.apply(this,e),this;var i=new(r.bind.apply(r,[void 0].concat(e)));return t.annotation=i,t}var o=d(e);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+t},r.annotationCls=r,r}function y(t,e,n){function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof r)return o.apply(this,t),this;var n=new(r.bind.apply(r,[void 0].concat(t)));return function(t,e){var r=ho.getOwnMetadata("propMetadata",t.constructor)||{};r[e]=r.hasOwnProperty(e)&&r[e]||[],r[e].unshift(n),ho.defineMetadata("propMetadata",r,t.constructor)}}var o=d(e);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+t},r.annotationCls=r,r}function v(t){return null==t||t===wo.Default}function g(t){return t.__forward_ref__=g,t.toString=function(){return c(this())},t}function _(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===g?t():t}function b(t){return t[$o]}function w(t){return t[Ko]}function C(t){return t[Qo]||E}function E(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,e)}function S(t,e){var n=t+" caused by: "+(e instanceof Error?e.message:e),r=Error(n);return r[Ko]=e,r}function x(t){for(var e=[],n=0;n<t.length;++n){if(e.indexOf(t[n])>-1)return e.push(t[n]),e;e.push(t[n])}return e}function T(t){return t.length>1?" ("+x(t.slice().reverse()).map(function(t){return c(t.token)}).join(" -> ")+")":""}function P(t,e,n,r){var o=r?S("",r):Error();return o.addKey=A,o.keys=[e],o.injectors=[t],o.constructResolvingMessage=n,o.message=o.constructResolvingMessage(),o[Ko]=r,o}function A(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage()}function O(t,e){return P(t,e,function(){return"No provider for "+c(this.keys[0].token)+"!"+T(this.keys)})}function M(t,e){return P(t,e,function(){return"Cannot instantiate cyclic dependency!"+T(this.keys)})}function R(t,e,n,r){return P(t,r,function(){var t=c(this.keys[0].token);return w(this).message+": Error during instantiation of "+t+"!"+T(this.keys)+"."},e)}function k(t){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+t)}function N(t,e){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];i&&0!=i.length?n.push(i.map(c).join(" ")):n.push("?")}return Error("Cannot resolve all parameters for '"+c(t)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+c(t)+"' is decorated with Injectable.")}function I(t){return Error("Index "+t+" is out-of-bounds.")}function j(t,e){return Error("Cannot mix multi providers and regular providers, got: "+t+" "+e)}function D(t){return"function"==typeof t}function L(t){return t?t.map(function(t){var e=t.type.annotationCls,n=t.args?t.args:[];return new(e.bind.apply(e,[void 0].concat(n)))}):[]}function V(t){var e=Object.getPrototypeOf(t.prototype);return(e?e.constructor:null)||Object}function F(t){var e,n;if(t.useClass){var r=_(t.useClass);e=oi.factory(r),n=G(r)}else t.useExisting?(e=function(t){return t},n=[ii.fromKey(Xo.get(t.useExisting))]):t.useFactory?(e=t.useFactory,n=z(t.useFactory,t.deps)):(e=function(){return t.useValue},n=si);return new ui(e,n)}function U(t){return new ai(Xo.get(t.provide),[F(t)],t.multi||!1)}function B(t){var e=H(q(t,[]).map(U),new Map);return Array.from(e.values())}function H(t,e){for(var n=0;n<t.length;n++){var r=t[n],o=e.get(r.key.id);if(o){if(r.multiProvider!==o.multiProvider)throw j(o,r);if(r.multiProvider)for(var i=0;i<r.resolvedFactories.length;i++)o.resolvedFactories.push(r.resolvedFactories[i]);else e.set(r.key.id,r)}else{var s=void 0;s=r.multiProvider?new ai(r.key,r.resolvedFactories.slice(),r.multiProvider):r,e.set(r.key.id,s)}}return e}function q(t,e){return t.forEach(function(t){if(t instanceof Zo)e.push({provide:t,useClass:t});else if(t&&"object"==typeof t&&void 0!==t.provide)e.push(t);else{if(!(t instanceof Array))throw k(t);q(t,e)}}),e}function z(t,e){if(e){var n=e.map(function(t){return[t]});return e.map(function(e){return W(t,e,n)})}return G(t)}function G(t){var e=oi.parameters(t);if(!e)return[];if(e.some(function(t){return null==t}))throw N(t,e);return e.map(function(n){return W(t,n,e)})}function W(t,e,n){var r=null,o=!1;if(!Array.isArray(e))return e instanceof Lo?$(e.token,o,null):$(e,o,null);for(var i=null,s=0;s<e.length;++s){var a=e[s];a instanceof Zo?r=a:a instanceof Lo?r=a.token:a instanceof Vo?o=!0:a instanceof Uo||a instanceof Bo?i=a:a instanceof io&&(r=a)}if(null!=(r=_(r)))return $(r,o,i);throw N(t,n)}function $(t,e,n){return new ii(Xo.get(t),e,n)}function K(t,e){for(var n=new Array(t._providers.length),r=0;r<t._providers.length;++r)n[r]=e(t.getProviderAtIndex(r));return n}function Q(t){return!!t&&"function"==typeof t.then}function J(t){return!!t&&"function"==typeof t.subscribe}function X(){return""+Y()+Y()+Y()}function Y(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function Z(){throw new Error("Runtime compiler is not loaded")}function tt(t){var e=Error("No component factory found for "+c(t)+". Did you add it to @NgModule.entryComponents?");return e[Ai]=t,e}function et(){var t=co.wtf;return!(!t||!(Ri=t.trace))&&(ki=Ri.events,!0)}function nt(t,e){return void 0===e&&(e=null),ki.createScope(t,e)}function rt(t,e){return Ri.leaveScope(t,e),e}function ot(t,e){return Ri.beginTimeRange(t,e)}function it(t){Ri.endTimeRange(t)}function st(t,e){return null}function at(t){Qi=t}function ut(){if(Xi)throw new Error("Cannot enable prod mode after platform setup.");Ji=!1}function ct(){return Xi=!0,Ji}function lt(t){if(Ki&&!Ki.destroyed&&!Ki.injector.get(Yi,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ki=t.get(ts);var e=t.get(vi,null);return e&&e.forEach(function(t){return t()}),Ki}function pt(t,e,n){void 0===n&&(n=[]);var r=new io("Platform: "+e);return function(e){void 0===e&&(e=[]);var o=dt();return o&&!o.injector.get(Yi,!1)||(t?t(n.concat(e).concat({provide:r,useValue:!0})):lt(li.resolveAndCreate(n.concat(e).concat({provide:r,useValue:!0})))),ht(r)}}function ht(t){var e=dt();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}function ft(){Ki&&!Ki.destroyed&&Ki.destroy()}function dt(){return Ki&&!Ki.destroyed?Ki:null}function mt(t,e){try{var n=e();return Q(n)?n.catch(function(e){throw t.handleError(e),e}):n}catch(e){throw t.handleError(e),e}}function yt(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function vt(t,e){var n=fs.get(t);if(n)throw new Error("Duplicate module registered for "+t+" - "+n.moduleType.name+" vs "+e.moduleType.name);fs.set(t,e)}function gt(t){var e=fs.get(t);if(!e)throw new Error("No module with ID "+t+" loaded");return e}function _t(t){return t.reduce(function(t,e){var n=Array.isArray(e)?_t(e):e;return t.concat(n)},[])}function bt(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}function wt(t){return t.map(function(t){return t.nativeElement})}function Ct(t,e,n){t.childNodes.forEach(function(t){t instanceof xs&&(e(t)&&n.push(t),Ct(t,e,n))})}function Et(t,e,n){t instanceof xs&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof xs&&Et(t,e,n)})}function St(t){return Ts.get(t)||null}function xt(t){Ts.set(t.nativeNode,t)}function Tt(t){Ts.delete(t.nativeNode)}function Pt(t,e){var n=At(t),r=At(e);if(n&&r)return Ot(t,e,Pt);var o=t&&("object"==typeof t||"function"==typeof t),i=e&&("object"==typeof e||"function"==typeof e);return!(n||!o||r||!i)||u(t,e)}function At(t){return!!Rt(t)&&(Array.isArray(t)||!(t instanceof Map)&&s()in t)}function Ot(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}}function Mt(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var r=t[s()](),o=void 0;!(o=r.next()).done;)e(o.value)}function Rt(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function kt(t,e,n){var r=t.previousIndex;if(null===r)return r;var o=0;return n&&r<n.length&&(o=n[r]),r+e+o}function Nt(t){return t.name||typeof t}function It(){return oi}function jt(t,e){return t.nodes[e]}function Dt(t,e){return t.nodes[e]}function Lt(t,e){return t.nodes[e]}function Vt(t,e){return t.nodes[e]}function Ft(t,e){return t.nodes[e]}function Ut(t,e,n,r){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),Ht(o,t)}function Bt(t,e){return t instanceof Error||(t=new Error(t.toString())),qt(t,e),t}function Ht(t,e){var n=new Error(t);return qt(n,e),n}function qt(t,e){t[$o]=e,t[Qo]=e.logError.bind(e)}function zt(t){return!!b(t)}function Gt(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}function Wt(t){var e=ta.get(t);return e||(e=c(t)+"_"+ta.size,ta.set(t,e)),e}function $t(t,e,n,r){if(r instanceof Ps){r=r.wrapped;var o=t.def.nodes[e].bindingIndex+n,i=t.oldValues[o];i instanceof Ps&&(i=i.wrapped),t.oldValues[o]=new Ps(i)}return r}function Kt(t){return{id:ea,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}function Qt(t){if(t&&t.id===ea){var e=null!=t.encapsulation&&t.encapsulation!==No.None||t.styles.length||Object.keys(t.data).length;t.id=e?"c"+ra++:na}return t&&t.id===na&&(t=null),t||null}function Jt(t,e,n,r){var o=t.oldValues;return!(!(2&t.state)&&u(o[e.bindingIndex+n],r))}function Xt(t,e,n,r){return!!Jt(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function Yt(t,e,n,r){var o=t.oldValues[e.bindingIndex+n];if(1&t.state||!Pt(o,r))throw Ut(Ys.createDebugContext(t,e.index),o,r,0!=(1&t.state))}function Zt(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function te(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function ee(t,e,n,r){return Zt(33554432&t.def.nodes[e].flags?Dt(t,e).componentView:t),Ys.handleEvent(t,e,n,r)}function ne(t){return t.parent?Dt(t.parent,t.parentNodeDef.index):null}function re(t){return t.parent?t.parentNodeDef.parent:null}function oe(t,e){switch(201347067&e.flags){case 1:return Dt(t,e.index).renderElement;case 2:return jt(t,e.index).renderText}}function ie(t,e){return t?t+":"+e:e}function se(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function ae(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function ue(t){return 1<<t%32}function ce(t){var e={},n=0,r={};return t&&t.forEach(function(t){var o=t[0],i=t[1];"number"==typeof o?(e[o]=i,n|=ue(o)):r[o]=i}),{matchedQueries:e,references:r,matchedQueryIds:n}}function le(t,e,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===No.Native?Dt(t,n.renderParent.index).renderElement:void 0:e}function pe(t){var e=oa.get(t);return e||((e=t(function(){return Zs})).factory=t,oa.set(t,e)),e}function he(t){var e=[];return fe(t,0,void 0,void 0,e),e}function fe(t,e,n,r,o){3===e&&(n=t.renderer.parentNode(oe(t,t.def.lastRenderRootNode))),de(t,e,0,t.def.nodes.length-1,n,r,o)}function de(t,e,n,r,o,i,s){for(var a=n;a<=r;a++){var u=t.def.nodes[a];11&u.flags&&ye(t,u,e,o,i,s),a+=u.childCount}}function me(t,e,n,r,o,i){for(var s=t;s&&!se(s);)s=s.parent;for(var a=s.parent,u=re(s),c=u.index+1,l=u.index+u.childCount,p=c;p<=l;p++){var h=a.def.nodes[p];h.ngContentIndex===e&&ye(a,h,n,r,o,i),p+=h.childCount}if(!a.parent){var f=t.root.projectableNodes[e];if(f)for(p=0;p<f.length;p++)ve(t,f[p],n,r,o,i)}}function ye(t,e,n,r,o,i){if(8&e.flags)me(t,e.ngContent.index,n,r,o,i);else{var s=oe(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags?(16&e.bindingFlags&&ve(t,s,n,r,o,i),32&e.bindingFlags&&ve(Dt(t,e.index).componentView,s,n,r,o,i)):ve(t,s,n,r,o,i),16777216&e.flags)for(var a=Dt(t,e.index).viewContainer._embeddedViews,u=0;u<a.length;u++)fe(a[u],n,r,o,i);1&e.flags&&!e.element.name&&de(t,n,e.index+1,e.index+e.childCount,r,o,i)}}function ve(t,e,n,r,o,i){var s=t.renderer;switch(n){case 1:s.appendChild(r,e);break;case 2:s.insertBefore(r,e,o);break;case 3:s.removeChild(r,e);break;case 0:i.push(e)}}function ge(t){if(":"===t[0]){var e=t.match(ia);return[e[1],e[2]]}return["",t]}function _e(t){for(var e=0,n=0;n<t.length;n++)e|=t[n].flags;return e}function be(t,e){for(var n="",r=0;r<2*t;r+=2)n=n+e[r]+Ce(e[r+1]);return n+e[2*t]}function we(t,e,n,r,o,i,s,a,u,c,l,p,h,f,d,m,y,v,g,_){switch(t){case 1:return e+Ce(n)+r;case 2:return e+Ce(n)+r+Ce(o)+i;case 3:return e+Ce(n)+r+Ce(o)+i+Ce(s)+a;case 4:return e+Ce(n)+r+Ce(o)+i+Ce(s)+a+Ce(u)+c;case 5:return e+Ce(n)+r+Ce(o)+i+Ce(s)+a+Ce(u)+c+Ce(l)+p;case 6:return e+Ce(n)+r+Ce(o)+i+Ce(s)+a+Ce(u)+c+Ce(l)+p+Ce(h)+f;case 7:return e+Ce(n)+r+Ce(o)+i+Ce(s)+a+Ce(u)+c+Ce(l)+p+Ce(h)+f+Ce(d)+m;case 8:return e+Ce(n)+r+Ce(o)+i+Ce(s)+a+Ce(u)+c+Ce(l)+p+Ce(h)+f+Ce(d)+m+Ce(y)+v;case 9:return e+Ce(n)+r+Ce(o)+i+Ce(s)+a+Ce(u)+c+Ce(l)+p+Ce(h)+f+Ce(d)+m+Ce(y)+v+Ce(g)+_;default:throw new Error("Does not support more than 9 expressions")}}function Ce(t){return null!=t?t.toString():""}function Ee(t,e,n,r,o,i){t|=1;var s=ce(e),a=s.matchedQueries,u=s.references;return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a,matchedQueryIds:s.matchedQueryIds,references:u,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?pe(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:o||Zs},provider:null,text:null,query:null,ngContent:null}}function Se(t,e,n,r,o,i,s,a,u,c,l){void 0===i&&(i=[]),u||(u=Zs);var p=ce(e),h=p.matchedQueries,f=p.references,d=p.matchedQueryIds,m=null,y=null;o&&(m=(N=ge(o))[0],y=N[1]),s=s||[];for(var v=new Array(s.length),g=0;g<s.length;g++){var _=s[g],b=_[0],w=_[1],C=_[2],E=ge(w),S=E[0],x=E[1],T=void 0,P=void 0;switch(15&b){case 4:P=C;break;case 1:case 8:T=C}v[g]={flags:b,ns:S,name:x,nonMinifiedName:x,securityContext:T,suffix:P}}a=a||[];for(var A=new Array(a.length),g=0;g<a.length;g++){var O=a[g],M=O[0],R=O[1];A[g]={type:0,target:M,eventName:R,propName:null}}var k=(i=i||[]).map(function(t){var e=t[0],n=t[1],r=ge(e);return[r[0],r[1],n]});return l=Qt(l),c&&(t|=33554432),t|=1,{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:h,matchedQueryIds:d,references:f,ngContentIndex:n,childCount:r,bindings:v,bindingFlags:_e(v),outputs:A,element:{ns:m,name:y,attrs:k,template:null,componentProvider:null,componentView:c||null,componentRendererType:l,publicProviders:null,allProviders:null,handleEvent:u||Zs},provider:null,text:null,query:null,ngContent:null};var N}function xe(t,e,n){var r,o=n.element,i=t.root.selectorOrNode,s=t.renderer;if(t.parent||!i){r=o.name?s.createElement(o.name,o.ns):s.createComment("");var a=le(t,e,n);a&&s.appendChild(a,r)}else r=s.selectRootElement(i);if(o.attrs)for(var u=0;u<o.attrs.length;u++){var c=o.attrs[u],l=c[0],p=c[1],h=c[2];s.setAttribute(r,p,h,l)}return r}function Te(t,e,n,r){for(var o=0;o<n.outputs.length;o++){var i=n.outputs[o],s=Pe(t,n.index,ie(i.target,i.eventName)),a=i.target,u=t;"component"===i.target&&(a=null,u=e);var c=u.renderer.listen(a||r,i.eventName,s);t.disposables[n.outputIndex+o]=c}}function Pe(t,e,n){return function(r){try{return ee(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}}function Ae(t,e,n,r,o,i,s,a,u,c,l,p){var h=e.bindings.length,f=!1;return h>0&&Me(t,e,0,n)&&(f=!0),h>1&&Me(t,e,1,r)&&(f=!0),h>2&&Me(t,e,2,o)&&(f=!0),h>3&&Me(t,e,3,i)&&(f=!0),h>4&&Me(t,e,4,s)&&(f=!0),h>5&&Me(t,e,5,a)&&(f=!0),h>6&&Me(t,e,6,u)&&(f=!0),h>7&&Me(t,e,7,c)&&(f=!0),h>8&&Me(t,e,8,l)&&(f=!0),h>9&&Me(t,e,9,p)&&(f=!0),f}function Oe(t,e,n){for(var r=!1,o=0;o<n.length;o++)Me(t,e,o,n[o])&&(r=!0);return r}function Me(t,e,n,r){if(!Xt(t,e,n,r))return!1;var o=e.bindings[n],i=Dt(t,e.index),s=i.renderElement,a=o.name;switch(15&o.flags){case 1:Re(t,o,s,o.ns,a,r);break;case 2:ke(t,s,a,r);break;case 4:Ne(t,o,s,a,r);break;case 8:Ie(33554432&e.flags&&32&o.flags?i.componentView:t,o,s,a,r)}return!0}function Re(t,e,n,r,o,i){var s=e.securityContext,a=s?t.root.sanitizer.sanitize(s,i):i;a=null!=a?a.toString():null;var u=t.renderer;null!=i?u.setAttribute(n,o,a,r):u.removeAttribute(n,o,r)}function ke(t,e,n,r){var o=t.renderer;r?o.addClass(e,n):o.removeClass(e,n)}function Ne(t,e,n,r,o){var i=t.root.sanitizer.sanitize(Qs.STYLE,o);if(null!=i){i=i.toString();var s=e.suffix;null!=s&&(i+=s)}else i=null;var a=t.renderer;null!=i?a.setStyle(n,r,i):a.removeStyle(n,r)}function Ie(t,e,n,r,o){var i=e.securityContext,s=i?t.root.sanitizer.sanitize(i,o):o;t.renderer.setProperty(n,r,s)}function je(t,e){return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:e}}}function De(t,e,n){var r=le(t,e,n);r&&me(t,n.ngContent.index,1,r,null,void 0)}function Le(t,e,n,r){var o=e.viewContainer._embeddedViews;null!==n&&void 0!==n||(n=o.length),r.viewContainerParent=t,Ge(o,n,r),Ve(e,r),Ys.dirtyParentQueries(r),qe(e,n>0?o[n-1]:null,r)}function Ve(t,e){var n=ne(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),Fe(e.parent.def,e.parentNodeDef)}}function Fe(t,e){if(!(4&e.flags)){t.nodeFlags|=4,e.flags|=4;for(var n=e.parent;n;)n.childFlags|=4,n=n.parent}}function Ue(t,e){var n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,We(n,e),Ys.dirtyParentQueries(r),ze(r),r}function Be(t){if(16&t.state){var e=ne(t);if(e){var n=e.template._projectedViews;n&&(We(n,n.indexOf(t)),Ys.dirtyParentQueries(t))}}}function He(t,e,n){var r=t.viewContainer._embeddedViews,o=r[e];return We(r,e),null==n&&(n=r.length),Ge(r,n,o),Ys.dirtyParentQueries(o),ze(o),qe(t,n>0?r[n-1]:null,o),o}function qe(t,e,n){var r=e?oe(e,e.def.lastRenderRootNode):t.renderElement;fe(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function ze(t){fe(t,3,null,null,void 0)}function Ge(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function We(t,e){e>=t.length-1?t.pop():t.splice(e,1)}function $e(t,e,n,r,o,i){return new ca(t,e,n,r,o,i)}function Ke(t){return t.viewDefFactory}function Qe(t,e,n){return new pa(t,e,n)}function Je(t){return new ha(t)}function Xe(t,e){return new fa(t,e)}function Ye(t,e){return new da(t,e)}function Ze(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Dt(t,n.index);return n.element.template?r.template:r.renderElement}if(2&n.flags)return jt(t,n.index).renderText;if(20240&n.flags)return Lt(t,n.index).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function tn(t){return new ma(t.renderer)}function en(t,e,n,r,o,i,s){var a=[];if(i)for(var u in i){var c=i[u],l=c[0],p=c[1];a[l]={flags:8,name:u,nonMinifiedName:p,ns:null,securityContext:null,suffix:null}}var h=[];if(s)for(var f in s)h.push({type:1,propName:f,target:null,eventName:s[f]});return t|=16384,on(t,e,n,r,r,o,a,h)}function nn(t,e,n){return t|=16,on(t,null,0,e,e,n)}function rn(t,e,n,r,o){return on(t,e,0,n,r,o)}function on(t,e,n,r,o,i,s,a){var u=ce(e),c=u.matchedQueries,l=u.references,p=u.matchedQueryIds;a||(a=[]),s||(s=[]);var h=i.map(function(t){var e,n;return Array.isArray(t)?(n=t[0],e=t[1]):(n=0,e=t),{flags:n,token:e,tokenKey:Wt(e)}});return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:p,references:l,ngContentIndex:-1,childCount:n,bindings:s,bindingFlags:_e(s),outputs:a,element:null,provider:{token:r,tokenKey:Wt(r),value:o,deps:h},text:null,query:null,ngContent:null}}function sn(t,e){return 4096&e.flags?Ea:hn(t,e)}function an(t,e){for(var n=t;n.parent&&!se(n);)n=n.parent;return fn(n.parent,re(n),!0,e.provider.value,e.provider.deps)}function un(t,e){var n=(32768&e.flags)>0,r=fn(t,e.parent,n,e.provider.value,e.provider.deps);if(e.outputs.length)for(var o=0;o<e.outputs.length;o++){var i=e.outputs[o],s=r[i.propName].subscribe(cn(t,e.parent.index,i.eventName));t.disposables[e.outputIndex+o]=s.unsubscribe.bind(s)}return r}function cn(t,e,n){return function(r){try{return ee(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}}function ln(t,e,n,r,o,i,s,a,u,c,l,p){var h=Lt(t,e.index),f=h.instance,d=!1,m=void 0,y=e.bindings.length;return y>0&&Jt(t,e,0,n)&&(d=!0,m=vn(t,h,e,0,n,m)),y>1&&Jt(t,e,1,r)&&(d=!0,m=vn(t,h,e,1,r,m)),y>2&&Jt(t,e,2,o)&&(d=!0,m=vn(t,h,e,2,o,m)),y>3&&Jt(t,e,3,i)&&(d=!0,m=vn(t,h,e,3,i,m)),y>4&&Jt(t,e,4,s)&&(d=!0,m=vn(t,h,e,4,s,m)),y>5&&Jt(t,e,5,a)&&(d=!0,m=vn(t,h,e,5,a,m)),y>6&&Jt(t,e,6,u)&&(d=!0,m=vn(t,h,e,6,u,m)),y>7&&Jt(t,e,7,c)&&(d=!0,m=vn(t,h,e,7,c,m)),y>8&&Jt(t,e,8,l)&&(d=!0,m=vn(t,h,e,8,l,m)),y>9&&Jt(t,e,9,p)&&(d=!0,m=vn(t,h,e,9,p,m)),m&&f.ngOnChanges(m),2&t.state&&65536&e.flags&&f.ngOnInit(),262144&e.flags&&f.ngDoCheck(),d}function pn(t,e,n){for(var r=Lt(t,e.index),o=r.instance,i=!1,s=void 0,a=0;a<n.length;a++)Jt(t,e,a,n[a])&&(i=!0,s=vn(t,r,e,a,n[a],s));return s&&o.ngOnChanges(s),2&t.state&&65536&e.flags&&o.ngOnInit(),262144&e.flags&&o.ngDoCheck(),i}function hn(t,e){var n,r=(8192&e.flags)>0,o=e.provider;switch(201347067&e.flags){case 512:n=fn(t,e.parent,r,o.value,o.deps);break;case 1024:n=dn(t,e.parent,r,o.value,o.deps);break;case 2048:n=mn(t,e.parent,r,o.deps[0]);break;case 256:n=o.value}return n}function fn(t,e,n,r,o){var i,s=o.length;switch(s){case 0:i=new r;break;case 1:i=new r(mn(t,e,n,o[0]));break;case 2:i=new r(mn(t,e,n,o[0]),mn(t,e,n,o[1]));break;case 3:i=new r(mn(t,e,n,o[0]),mn(t,e,n,o[1]),mn(t,e,n,o[2]));break;default:for(var a=new Array(s),u=0;u<s;u++)a[u]=mn(t,e,n,o[u]);i=new(r.bind.apply(r,[void 0].concat(a)))}return i}function dn(t,e,n,r,o){var i,s=o.length;switch(s){case 0:i=r();break;case 1:i=r(mn(t,e,n,o[0]));break;case 2:i=r(mn(t,e,n,o[0]),mn(t,e,n,o[1]));break;case 3:i=r(mn(t,e,n,o[0]),mn(t,e,n,o[1]),mn(t,e,n,o[2]));break;default:for(var a=Array(s),u=0;u<s;u++)a[u]=mn(t,e,n,o[u]);i=r.apply(void 0,a)}return i}function mn(t,e,n,r,o){if(void 0===o&&(o=Wo.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var i=t;2&r.flags&&(o=null);var s=r.tokenKey;for(s===wa&&(n=!(!e||!e.element.componentView)),e&&1&r.flags&&(n=!1,e=e.parent);t;){if(e)switch(s){case ya:return tn(a=yn(t,e,n));case va:var a=yn(t,e,n);return a.renderer;case ga:return new ps(Dt(t,e.index).renderElement);case _a:return Dt(t,e.index).viewContainer;case ba:if(e.element.template)return Dt(t,e.index).template;break;case wa:return Je(yn(t,e,n));case Ca:return Ye(t,e);default:var u=(n?e.element.allProviders:e.element.publicProviders)[s];if(u){var c=Lt(t,u.index);return c.instance===Ea&&(c.instance=hn(t,u)),c.instance}}n=se(t),e=re(t),t=t.parent}var l=i.root.injector.get(r.token,Sa);return l!==Sa||o===Sa?l:i.root.ngModule.injector.get(r.token,o)}function yn(t,e,n){var r;if(n)r=Dt(t,e.index).componentView;else for(r=t;r.parent&&!se(r);)r=r.parent;return r}function vn(t,e,n,r,o,i){if(32768&n.flags){var s=Dt(t,n.parent.index).componentView;2&s.def.flags&&(s.state|=8)}var a=n.bindings[r].name;if(e.instance[a]=o,524288&n.flags){i=i||{};var u=t.oldValues[n.bindingIndex+r];u instanceof Ps&&(u=u.wrapped),i[n.bindings[r].nonMinifiedName]=new Os(u,o,0!=(2&t.state))}return t.oldValues[n.bindingIndex+r]=o,i}function gn(t,e){if(t.def.nodeFlags&e)for(var n=t.def.nodes,r=0;r<n.length;r++){var o=n[r],i=o.parent;for(!i&&o.flags&e&&bn(t,r,o.flags&e),0==(o.childFlags&e)&&(r+=o.childCount);i&&1&i.flags&&r===i.index+i.childCount;)i.directChildFlags&e&&_n(t,i,e),i=i.parent}}function _n(t,e,n){for(var r=e.index+1;r<=e.index+e.childCount;r++){var o=t.def.nodes[r];o.flags&n&&bn(t,r,o.flags&n),r+=o.childCount}}function bn(t,e,n){var r=Lt(t,e).instance;r!==Ea&&(Ys.setCurrentNode(t,e),1048576&n&&r.ngAfterContentInit(),2097152&n&&r.ngAfterContentChecked(),4194304&n&&r.ngAfterViewInit(),8388608&n&&r.ngAfterViewChecked(),131072&n&&r.ngOnDestroy())}function wn(t){return Sn(128,new Array(t+1))}function Cn(t){return Sn(32,new Array(t))}function En(t){return Sn(64,t)}function Sn(t,e){for(var n=new Array(e.length),r=0;r<e.length;r++){var o=e[r];n[r]={flags:8,name:o,ns:null,nonMinifiedName:o,securityContext:null,suffix:null}}return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:n,bindingFlags:_e(n),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function xn(t,e){return{value:void 0}}function Tn(t,e,n,r,o,i,s,a,u,c,l,p){var h=e.bindings,f=!1,d=h.length;if(d>0&&Xt(t,e,0,n)&&(f=!0),d>1&&Xt(t,e,1,r)&&(f=!0),d>2&&Xt(t,e,2,o)&&(f=!0),d>3&&Xt(t,e,3,i)&&(f=!0),d>4&&Xt(t,e,4,s)&&(f=!0),d>5&&Xt(t,e,5,a)&&(f=!0),d>6&&Xt(t,e,6,u)&&(f=!0),d>7&&Xt(t,e,7,c)&&(f=!0),d>8&&Xt(t,e,8,l)&&(f=!0),d>9&&Xt(t,e,9,p)&&(f=!0),f){var m=Vt(t,e.index),y=void 0;switch(201347067&e.flags){case 32:y=new Array(h.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]=s),d>5&&(y[5]=a),d>6&&(y[6]=u),d>7&&(y[7]=c),d>8&&(y[8]=l),d>9&&(y[9]=p);break;case 64:y={},d>0&&(y[h[0].name]=n),d>1&&(y[h[1].name]=r),d>2&&(y[h[2].name]=o),d>3&&(y[h[3].name]=i),d>4&&(y[h[4].name]=s),d>5&&(y[h[5].name]=a),d>6&&(y[h[6].name]=u),d>7&&(y[h[7].name]=c),d>8&&(y[h[8].name]=l),d>9&&(y[h[9].name]=p);break;case 128:var v=n;switch(d){case 1:y=v.transform(n);break;case 2:y=v.transform(r);break;case 3:y=v.transform(r,o);break;case 4:y=v.transform(r,o,i);break;case 5:y=v.transform(r,o,i,s);break;case 6:y=v.transform(r,o,i,s,a);break;case 7:y=v.transform(r,o,i,s,a,u);break;case 8:y=v.transform(r,o,i,s,a,u,c);break;case 9:y=v.transform(r,o,i,s,a,u,c,l);break;case 10:y=v.transform(r,o,i,s,a,u,c,l,p)}}m.value=y}return f}function Pn(t,e,n){for(var r=e.bindings,o=!1,i=0;i<n.length;i++)Xt(t,e,i,n[i])&&(o=!0);if(o){var s=Vt(t,e.index),a=void 0;switch(201347067&e.flags){case 32:a=n;break;case 64:a={};for(i=0;i<n.length;i++)a[r[i].name]=n[i];break;case 128:var u=n[0],c=n.slice(1);a=u.transform.apply(u,c)}s.value=a}return o}function An(t,e,n){var r=[];for(var o in n){var i=n[o];r.push({propName:o,bindingType:i})}return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:e,filterId:ue(e),bindings:r},ngContent:null}}function On(){return new ds}function Mn(t){for(var e=t.def.nodeMatchedQueries;t.parent&&ae(t);){var n=t.parentNodeDef;t=t.parent;for(var r=n.index+n.childCount,o=0;o<=r;o++)67108864&(i=t.def.nodes[o]).flags&&536870912&i.flags&&(i.query.filterId&e)===i.query.filterId&&Ft(t,o).setDirty(),!(1&i.flags&&o+i.childCount<n.index)&&67108864&i.childFlags&&536870912&i.childFlags||(o+=i.childCount)}if(134217728&t.def.nodeFlags)for(o=0;o<t.def.nodes.length;o++){var i=t.def.nodes[o];134217728&i.flags&&536870912&i.flags&&Ft(t,o).setDirty(),o+=i.childCount}}function Rn(t,e){var n=Ft(t,e.index);if(n.dirty){var r,o=void 0;if(67108864&e.flags){var i=e.parent.parent;o=kn(t,i.index,i.index+i.childCount,e.query,[]),r=Lt(t,e.parent.index).instance}else 134217728&e.flags&&(o=kn(t,0,t.def.nodes.length-1,e.query,[]),r=t.component);n.reset(o);for(var s=e.query.bindings,a=!1,u=0;u<s.length;u++){var c=s[u],l=void 0;switch(c.bindingType){case 0:l=n.first;break;case 1:l=n,a=!0}r[c.propName]=l}a&&n.notifyOnChanges()}}function kn(t,e,n,r,o){for(var i=e;i<=n;i++){var s=t.def.nodes[i],a=s.matchedQueries[r.id];if(null!=a&&o.push(Nn(t,s,a)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var u=Dt(t,i);if(16777216&s.flags)for(var c=u.viewContainer._embeddedViews,l=0;l<c.length;l++){var p=c[l],h=ne(p);h&&h===u&&kn(p,0,p.def.nodes.length-1,r,o)}var f=u.template._projectedViews;if(f)for(l=0;l<f.length;l++){var d=f[l];kn(d,0,d.def.nodes.length-1,r,o)}}(s.childMatchedQueries&r.filterId)!==r.filterId&&(i+=s.childCount)}return o}function Nn(t,e,n){if(null!=n){var r=void 0;switch(n){case 1:r=Dt(t,e.index).renderElement;break;case 0:r=new ps(Dt(t,e.index).renderElement);break;case 2:r=Dt(t,e.index).template;break;case 3:r=Dt(t,e.index).viewContainer;break;case 4:r=Lt(t,e.index).instance}return r}}function In(t,e){for(var n=new Array(e.length-1),r=1;r<e.length;r++)n[r-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:e[r]};return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:n,bindingFlags:_e(n),outputs:[],element:null,provider:null,text:{prefix:e[0]},query:null,ngContent:null}}function jn(t,e,n){var r,o=t.renderer;r=o.createText(n.text.prefix);var i=le(t,e,n);return i&&o.appendChild(i,r),{renderText:r}}function Dn(t,e,n,r,o,i,s,a,u,c,l,p){var h=!1,f=e.bindings,d=f.length;if(d>0&&Xt(t,e,0,n)&&(h=!0),d>1&&Xt(t,e,1,r)&&(h=!0),d>2&&Xt(t,e,2,o)&&(h=!0),d>3&&Xt(t,e,3,i)&&(h=!0),d>4&&Xt(t,e,4,s)&&(h=!0),d>5&&Xt(t,e,5,a)&&(h=!0),d>6&&Xt(t,e,6,u)&&(h=!0),d>7&&Xt(t,e,7,c)&&(h=!0),d>8&&Xt(t,e,8,l)&&(h=!0),d>9&&Xt(t,e,9,p)&&(h=!0),h){var m=e.text.prefix;d>0&&(m+=Vn(n,f[0])),d>1&&(m+=Vn(r,f[1])),d>2&&(m+=Vn(o,f[2])),d>3&&(m+=Vn(i,f[3])),d>4&&(m+=Vn(s,f[4])),d>5&&(m+=Vn(a,f[5])),d>6&&(m+=Vn(u,f[6])),d>7&&(m+=Vn(c,f[7])),d>8&&(m+=Vn(l,f[8])),d>9&&(m+=Vn(p,f[9]));var y=jt(t,e.index).renderText;t.renderer.setValue(y,m)}return h}function Ln(t,e,n){for(var r=e.bindings,o=!1,i=0;i<n.length;i++)Xt(t,e,i,n[i])&&(o=!0);if(o){for(var s="",i=0;i<n.length;i++)s+=Vn(n[i],r[i]);s=e.text.prefix+s;var a=jt(t,e.index).renderText;t.renderer.setValue(a,s)}return o}function Vn(t,e){return(null!=t?t.toString():"")+e.suffix}function Fn(t,e,n,r){for(var o=0,i=0,s=0,a=0,u=0,c=null,l=!1,p=!1,h=null,f=0;f<e.length;f++){for(;c&&f>c.index+c.childCount;)(_=c.parent)&&(_.childFlags|=c.childFlags,_.childMatchedQueries|=c.childMatchedQueries),c=_;var d=e[f];d.index=f,d.parent=c,d.bindingIndex=o,d.outputIndex=i;var m=void 0;if(m=c&&1&c.flags&&!c.element.name?c.renderParent:c,d.renderParent=m,d.element){var y=d.element;y.publicProviders=c?c.element.publicProviders:Object.create(null),y.allProviders=y.publicProviders,l=!1,p=!1}if(Un(c,d,e.length),s|=d.flags,u|=d.matchedQueryIds,d.element&&d.element.template&&(u|=d.element.template.nodeMatchedQueries),c?(c.childFlags|=d.flags,c.directChildFlags|=d.flags,c.childMatchedQueries|=d.matchedQueryIds,d.element&&d.element.template&&(c.childMatchedQueries|=d.element.template.nodeMatchedQueries)):a|=d.flags,o+=d.bindings.length,i+=d.outputs.length,!m&&3&d.flags&&(h=d),20224&d.flags){l||(l=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);var v=0!=(8192&d.flags),g=0!=(32768&d.flags);!v||g?c.element.publicProviders[d.provider.tokenKey]=d:(p||(p=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[d.provider.tokenKey]=d),g&&(c.element.componentProvider=d)}d.childCount&&(c=d)}for(;c;){var _=c.parent;_&&(_.childFlags|=c.childFlags,_.childMatchedQueries|=c.childMatchedQueries),c=_}var b=function(t,n,r,o){return e[n].element.handleEvent(t,r,o)};return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||Zs,updateRenderer:r||Zs,handleEvent:b||Zs,bindingCount:o,outputCount:i,lastRenderRootNode:h}}function Un(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.index+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: Provider/Directive nodes need to be children of elements or anchors, at index "+e.index+"!");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.index+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.index+"!")}if(e.childCount){var o=t?t.index+t.childCount:n-1;if(e.index<=o&&e.index+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.index+"!")}}function Bn(t,e,n){var r=qn(t.root,t.renderer,t,e,e.element.template);return zn(r,t.component,n),Gn(r),r}function Hn(t,e,n){var r=qn(t,t.renderer,null,null,e);return zn(r,n,n),Gn(r),r}function qn(t,e,n,r,o){var i=new Array(o.nodes.length),s=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:s}}function zn(t,e,n){t.component=e,t.context=n}function Gn(t){var e;if(se(t)){var n=t.parentNodeDef;e=Dt(t.parent,n.parent.index).renderElement}for(var r=t.def,o=t.nodes,i=0;i<r.nodes.length;i++){var s=r.nodes[i];Ys.setCurrentNode(t,i);var a=void 0;switch(201347067&s.flags){case 1:var u=xe(t,e,s),c=void 0;if(33554432&s.flags){var l=pe(s.element.componentView),p=s.element.componentRendererType,h=void 0;h=p?t.root.rendererFactory.createRenderer(u,p):t.root.renderer,c=qn(t.root,h,t,s.element.componentProvider,l)}Te(t,c,s,u),a={renderElement:u,componentView:c,viewContainer:null,template:s.element.template?Xe(t,s):void 0},16777216&s.flags&&(a.viewContainer=Qe(t,s,a));break;case 2:a=jn(t,e,s);break;case 512:case 1024:case 2048:case 256:a={instance:f=sn(t,s)};break;case 16:a={instance:f=an(t,s)};break;case 16384:var f=un(t,s);a={instance:f},32768&s.flags&&zn(Dt(t,s.parent.index).componentView,f,f);break;case 32:case 64:case 128:a=xn(t,s);break;case 67108864:case 134217728:a=On();break;case 8:De(t,e,s),a=void 0}o[i]=a}or(t,xa.CreateViewNodes),ur(t,201326592,268435456,0)}function Wn(t){Qn(t),Ys.updateDirectives(t,1),ir(t,xa.CheckNoChanges),Ys.updateRenderer(t,1),or(t,xa.CheckNoChanges),t.state&=-97}function $n(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,Qn(t),Ys.updateDirectives(t,0),ir(t,xa.CheckAndUpdate),ur(t,67108864,536870912,0),gn(t,2097152|(2&t.state?1048576:0)),Ys.updateRenderer(t,0),or(t,xa.CheckAndUpdate),ur(t,134217728,536870912,0),gn(t,8388608|(2&t.state?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97}function Kn(t,e,n,r,o,i,s,a,u,c,l,p,h){return 0===n?Jn(t,e,r,o,i,s,a,u,c,l,p,h):Xn(t,e,r)}function Qn(t){var e=t.def;if(4&e.nodeFlags)for(var n=0;n<e.nodes.length;n++){var r=e.nodes[n];if(4&r.flags){var o=Dt(t,n).template._projectedViews;if(o)for(var i=0;i<o.length;i++){var s=o[i];s.state|=32,te(s,t)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function Jn(t,e,n,r,o,i,s,a,u,c,l,p){var h=!1;switch(201347067&e.flags){case 1:h=Ae(t,e,n,r,o,i,s,a,u,c,l,p);break;case 2:h=Dn(t,e,n,r,o,i,s,a,u,c,l,p);break;case 16384:h=ln(t,e,n,r,o,i,s,a,u,c,l,p);break;case 32:case 64:case 128:h=Tn(t,e,n,r,o,i,s,a,u,c,l,p)}return h}function Xn(t,e,n){var r=!1;switch(201347067&e.flags){case 1:r=Oe(t,e,n);break;case 2:r=Ln(t,e,n);break;case 16384:r=pn(t,e,n);break;case 32:case 64:case 128:r=Pn(t,e,n)}if(r)for(var o=e.bindings.length,i=e.bindingIndex,s=t.oldValues,a=0;a<o;a++)s[i+a]=n[a];return r}function Yn(t,e,n,r,o,i,s,a,u,c,l,p,h){return 0===n?Zn(t,e,r,o,i,s,a,u,c,l,p,h):tr(t,e,r),!1}function Zn(t,e,n,r,o,i,s,a,u,c,l,p){var h=e.bindings.length;h>0&&Yt(t,e,0,n),h>1&&Yt(t,e,1,r),h>2&&Yt(t,e,2,o),h>3&&Yt(t,e,3,i),h>4&&Yt(t,e,4,s),h>5&&Yt(t,e,5,a),h>6&&Yt(t,e,6,u),h>7&&Yt(t,e,7,c),h>8&&Yt(t,e,8,l),h>9&&Yt(t,e,9,p)}function tr(t,e,n){for(var r=0;r<n.length;r++)Yt(t,e,r,n[r])}function er(t,e){if(Ft(t,e.index).dirty)throw Ut(Ys.createDebugContext(t,e.index),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!=(1&t.state))}function nr(t){if(!(128&t.state)){if(ir(t,xa.Destroy),or(t,xa.Destroy),gn(t,131072),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();Be(t),t.renderer.destroyNode&&rr(t),se(t)&&t.renderer.destroy(),t.state|=128}}function rr(t){for(var e=t.def.nodes.length,n=0;n<e;n++){var r=t.def.nodes[n];1&r.flags?t.renderer.destroyNode(Dt(t,n).renderElement):2&r.flags&&t.renderer.destroyNode(jt(t,n).renderText)}}function or(t,e){var n=t.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];33554432&o.flags?sr(Dt(t,r).componentView,e):0==(33554432&o.childFlags)&&(r+=o.childCount)}}function ir(t,e){var n=t.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];if(16777216&o.flags)for(var i=Dt(t,r).viewContainer._embeddedViews,s=0;s<i.length;s++)sr(i[s],e);else 0==(16777216&o.childFlags)&&(r+=o.childCount)}}function sr(t,e){var n=t.state;switch(e){case xa.CheckNoChanges:0==(128&n)&&(12==(12&n)?Wn(t):64&n&&ar(t,xa.CheckNoChangesProjectedViews));break;case xa.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Wn(t):64&n&&ar(t,e));break;case xa.CheckAndUpdate:0==(128&n)&&(12==(12&n)?$n(t):64&n&&ar(t,xa.CheckAndUpdateProjectedViews));break;case xa.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?$n(t):64&n&&ar(t,e));break;case xa.Destroy:nr(t);break;case xa.CreateViewNodes:Gn(t)}}function ar(t,e){ir(t,e),or(t,e)}function ur(t,e,n,r){if(t.def.nodeFlags&e&&t.def.nodeFlags&n)for(var o=t.def.nodes.length,i=0;i<o;i++){var s=t.def.nodes[i];if(s.flags&e&&s.flags&n)switch(Ys.setCurrentNode(t,s.index),r){case 0:Rn(t,s);break;case 1:er(t,s)}s.childFlags&e&&s.childFlags&n||(i+=s.childCount)}}function cr(){if(!Ta){Ta=!0;var t=ct()?pr():lr();Ys.setCurrentNode=t.setCurrentNode,Ys.createRootView=t.createRootView,Ys.createEmbeddedView=t.createEmbeddedView,Ys.checkAndUpdateView=t.checkAndUpdateView,Ys.checkNoChangesView=t.checkNoChangesView,Ys.destroyView=t.destroyView,Ys.resolveDep=mn,Ys.createDebugContext=t.createDebugContext,Ys.handleEvent=t.handleEvent,Ys.updateDirectives=t.updateDirectives,Ys.updateRenderer=t.updateRenderer,Ys.dirtyParentQueries=Mn}}function lr(){return{setCurrentNode:function(){},createRootView:hr,createEmbeddedView:Bn,checkAndUpdateView:$n,checkNoChangesView:Wn,destroyView:nr,createDebugContext:function(t,e){return new ka(t,e)},handleEvent:function(t,e,n,r){return t.def.handleEvent(t,e,n,r)},updateDirectives:function(t,e){return t.def.updateDirectives(0===e?mr:yr,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?mr:yr,t)}}}function pr(){return{setCurrentNode:wr,createRootView:fr,createEmbeddedView:vr,checkAndUpdateView:gr,checkNoChangesView:_r,destroyView:br,createDebugContext:function(t,e){return new ka(t,e)},handleEvent:Cr,updateDirectives:Er,updateRenderer:Sr}}function hr(t,e,n,r,o,i){return Hn(dr(t,o,o.injector.get(us),e,n),r,i)}function fr(t,e,n,r,o,i){var s=o.injector.get(us),a=dr(t,o,new Na(s),e,n);return jr(Pa.create,Hn,null,[a,r,i])}function dr(t,e,n,r,o){var i=e.injector.get(Js),s=e.injector.get(Jo);return{ngModule:e,injector:t,projectableNodes:r,selectorOrNode:o,sanitizer:i,rendererFactory:n,renderer:n.createRenderer(null,null),errorHandler:s}}function mr(t,e,n,r,o,i,s,a,u,c,l,p,h){var f=t.def.nodes[e];return Kn(t,f,n,r,o,i,s,a,u,c,l,p,h),224&f.flags?Vt(t,e).value:void 0}function yr(t,e,n,r,o,i,s,a,u,c,l,p,h){var f=t.def.nodes[e];return Yn(t,f,n,r,o,i,s,a,u,c,l,p,h),224&f.flags?Vt(t,e).value:void 0}function vr(t,e,n){return jr(Pa.create,Bn,null,[t,e,n])}function gr(t){return jr(Pa.detectChanges,$n,null,[t])}function _r(t){return jr(Pa.checkNoChanges,Wn,null,[t])}function br(t){return jr(Pa.destroy,nr,null,[t])}function wr(t,e){Oa=t,Ma=e}function Cr(t,e,n,r){return wr(t,e),jr(Pa.handleEvent,t.def.handleEvent,null,[t,e,n,r])}function Er(t,e){function n(t,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=t.def.nodes[n];return 0===e?xr(t,s,r,o):Tr(t,s,r,o),16384&s.flags&&wr(t,Mr(t,n)),224&s.flags?Vt(t,s.index).value:void 0}if(128&t.state)throw Gt(Pa[Aa]);return wr(t,Mr(t,0)),t.def.updateDirectives(n,t)}function Sr(t,e){function n(t,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=t.def.nodes[n];return 0===e?xr(t,s,r,o):Tr(t,s,r,o),3&s.flags&&wr(t,Rr(t,n)),224&s.flags?Vt(t,s.index).value:void 0}if(128&t.state)throw Gt(Pa[Aa]);return wr(t,Rr(t,0)),t.def.updateRenderer(n,t)}function xr(t,e,n,r){if(Kn.apply(void 0,[t,e,n].concat(r))){var o=1===n?r[0]:r;if(16384&e.flags){for(var i={},s=0;s<e.bindings.length;s++){var a=e.bindings[s],u=o[s];8&a.flags&&(i[Pr(a.nonMinifiedName)]=Or(u))}var c=e.parent,l=Dt(t,c.index).renderElement;if(c.element.name)for(var p in i)null!=(u=i[p])?t.renderer.setAttribute(l,p,u):t.renderer.removeAttribute(l,p);else t.renderer.setValue(l,"bindings="+JSON.stringify(i,null,2))}}}function Tr(t,e,n,r){Yn.apply(void 0,[t,e,n].concat(r))}function Pr(t){return"ng-reflect-"+(t=Ar(t.replace(/[$@]/g,"_")))}function Ar(t){return t.replace(Ra,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()})}function Or(t){try{return null!=t?t.toString().slice(0,30):t}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function Mr(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function Rr(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}function kr(t,e){for(var n=-1,r=0;r<=e;r++)3&t.nodes[r].flags&&n++;return n}function Nr(t){for(;t&&!se(t);)t=t.parent;return t.parent?Dt(t.parent,re(t).index):null}function Ir(t,e,n){for(var r in e.references)n[r]=Nn(t,e,e.references[r])}function jr(t,e,n,r){var o=Aa,i=Oa,s=Ma;try{Aa=t;var a=e.apply(n,r);return Oa=i,Ma=s,Aa=o,a}catch(t){if(zt(t)||!Oa)throw t;throw Bt(t,Dr())}}function Dr(){return Oa?new ka(Oa,Ma):null}function Lr(){return Hs}function Vr(){return qs}function Fr(t){return t||"en-US"}function Ur(){cr()}function Br(t,e){return{name:t,definitions:e}}function Hr(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}}function qr(t){return{type:3,steps:t}}function zr(t){return{type:2,steps:t}}function Gr(t){return{type:6,styles:t}}function Wr(t,e){return{type:0,name:t,styles:e}}function $r(t){return{type:5,steps:t}}function Kr(t,e){return{type:1,expr:t,animation:e}}function Qr(t,e){return Br(t,e)}function Jr(t,e){return Hr(t,e)}function Xr(t){return qr(t)}function Yr(t){return zr(t)}function Zr(t){return Gr(t)}function to(t,e){return Wr(t,e)}function eo(t){return $r(t)}function no(t,e){return Kr(t,e)}var ro=function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},oo=function(){function t(t){this._desc=t}return t.prototype.toString=function(){return"Token "+this._desc},t}(),io=function(t){function e(e){return t.call(this,e)||this}return ro(e,t),e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(oo),so="undefined"!=typeof window&&window,ao="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,uo=void 0!==r&&r,co=so||uo||ao,lo=null,po=0,ho=co.Reflect,fo=new io("AnalyzeForEntryComponents"),mo=m("Attribute",[["attributeName",void 0]]),yo=function(){function t(){}return t}(),vo=y("ContentChildren",[["selector",void 0],{first:!1,isViewQuery:!1,descendants:!1,read:void 0}],yo),go=y("ContentChild",[["selector",void 0],{first:!0,isViewQuery:!1,descendants:!0,read:void 0}],yo),_o=y("ViewChildren",[["selector",void 0],{first:!1,isViewQuery:!0,descendants:!0,read:void 0}],yo),bo=y("ViewChild",[["selector",void 0],{first:!0,isViewQuery:!0,descendants:!0,read:void 0}],yo),wo={};wo.OnPush=0,wo.Default=1,wo[wo.OnPush]="OnPush",wo[wo.Default]="Default";var Co={};Co.CheckOnce=0,Co.Checked=1,Co.CheckAlways=2,Co.Detached=3,Co.Errored=4,Co.Destroyed=5,Co[Co.CheckOnce]="CheckOnce",Co[Co.Checked]="Checked",Co[Co.CheckAlways]="CheckAlways",Co[Co.Detached]="Detached",Co[Co.Errored]="Errored",Co[Co.Destroyed]="Destroyed";var Eo=f("Directive",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,providers:void 0,exportAs:void 0,queries:void 0}),So=f("Component",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,exportAs:void 0,moduleId:void 0,providers:void 0,viewProviders:void 0,changeDetection:wo.Default,queries:void 0,templateUrl:void 0,template:void 0,styleUrls:void 0,styles:void 0,animations:void 0,encapsulation:void 0,interpolation:void 0,entryComponents:void 0},Eo),xo=f("Pipe",{name:void 0,pure:!0}),To=y("Input",[["bindingPropertyName",void 0]]),Po=y("Output",[["bindingPropertyName",void 0]]),Ao=y("HostBinding",[["hostPropertyName",void 0]]),Oo=y("HostListener",[["eventName",void 0],["args",[]]]),Mo={name:"custom-elements"},Ro={name:"no-errors-schema"},ko=f("NgModule",{providers:void 0,declarations:void 0,imports:void 0,exports:void 0,entryComponents:void 0,bootstrap:void 0,schemas:void 0,id:void 0}),No={};No.Emulated=0,No.Native=1,No.None=2,No[No.Emulated]="Emulated",No[No.Native]="Native",No[No.None]="None";var Io=function(){function t(t){var e=void 0===t?{}:t,n=e.templateUrl,r=e.template,o=e.encapsulation,i=e.styles,s=e.styleUrls,a=e.animations,u=e.interpolation;this.templateUrl=n,this.template=r,this.styleUrls=s,this.styles=i,this.encapsulation=o,this.animations=a,this.interpolation=u}return t}(),jo=function(){function t(t){this.full=t}return Object.defineProperty(t.prototype,"major",{get:function(){return this.full.split(".")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minor",{get:function(){return this.full.split(".")[1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"patch",{get:function(){return this.full.split(".").slice(2).join(".")},enumerable:!0,configurable:!0}),t}(),Do=new jo("4.1.3"),Lo=m("Inject",[["token",void 0]]),Vo=m("Optional",[]),Fo=f("Injectable",[]),Uo=m("Self",[]),Bo=m("SkipSelf",[]),Ho=m("Host",[]),qo=new Object,zo=qo,Go=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=qo),e===qo)throw new Error("No provider for "+c(t)+"!");return e},t}(),Wo=function(){function t(){}return t.prototype.get=function(t,e){},t.prototype.get=function(t,e){},t}();Wo.THROW_IF_NOT_FOUND=qo,Wo.NULL=new Go;var $o="ngDebugContext",Ko="ngOriginalError",Qo="ngErrorLogger",Jo=function(){function t(t){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),n=this._findContext(t),r=C(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)},t.prototype._findContext=function(t){return t?b(t)?b(t):this._findContext(w(t)):null},t.prototype._findOriginalError=function(t){for(var e=w(t);e&&w(e);)e=w(e);return e},t}(),Xo=function(){function t(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!")}return Object.defineProperty(t.prototype,"displayName",{get:function(){return c(this.token)},enumerable:!0,configurable:!0}),t.get=function(t){return Yo.get(_(t))},Object.defineProperty(t,"numberOfKeys",{get:function(){return Yo.numberOfKeys},enumerable:!0,configurable:!0}),t}(),Yo=new(function(){function t(){this._allKeys=new Map}return t.prototype.get=function(t){if(t instanceof Xo)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var e=new Xo(t,Xo.numberOfKeys);return this._allKeys.set(t,e),e},Object.defineProperty(t.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),t}()),Zo=Function,ti=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,ei=function(){function t(t){this._reflect=t||co.Reflect}return t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,[void 0].concat(e)))}},t.prototype._zipTypesAndAnnotations=function(t,e){var n;n=void 0===t?new Array(e.length):new Array(t.length);for(var r=0;r<n.length;r++)void 0===t?n[r]=[]:t[r]!=Object?n[r]=[t[r]]:n[r]=[],e&&null!=e[r]&&(n[r]=n[r].concat(e[r]));return n},t.prototype._ownParameters=function(t,e){if(ti.exec(t.toString()))return null;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;var n=t.ctorParameters;if(n&&n!==e.ctorParameters){var r="function"==typeof n?n():n,o=r.map(function(t){return t&&t.type}),i=r.map(function(t){return t&&L(t.decorators)});return this._zipTypesAndAnnotations(o,i)}if(null!=this._reflect&&null!=this._reflect.getOwnMetadata){i=this._reflect.getOwnMetadata("parameters",t);if((o=this._reflect.getOwnMetadata("design:paramtypes",t))||i)return this._zipTypesAndAnnotations(o,i)}return new Array(t.length).fill(void 0)},t.prototype.parameters=function(t){if(!D(t))return[];var e=V(t),n=this._ownParameters(t,e);return n||e===Object||(n=this.parameters(e)),n||[]},t.prototype._ownAnnotations=function(t,e){if(t.annotations&&t.annotations!==e.annotations){var n=t.annotations;return"function"==typeof n&&n.annotations&&(n=n.annotations),n}return t.decorators&&t.decorators!==e.decorators?L(t.decorators):this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("annotations",t):null},t.prototype.annotations=function(t){if(!D(t))return[];var e=V(t),n=this._ownAnnotations(t,e)||[];return(e!==Object?this.annotations(e):[]).concat(n)},t.prototype._ownPropMetadata=function(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){var n=t.propMetadata;return"function"==typeof n&&n.propMetadata&&(n=n.propMetadata),n}if(t.propDecorators&&t.propDecorators!==e.propDecorators){var r=t.propDecorators,o={};return Object.keys(r).forEach(function(t){o[t]=L(r[t])}),o}return this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("propMetadata",t):null},t.prototype.propMetadata=function(t){if(!D(t))return{};var e=V(t),n={};if(e!==Object){var r=this.propMetadata(e);Object.keys(r).forEach(function(t){n[t]=r[t]})}var o=this._ownPropMetadata(t,e);return o&&Object.keys(o).forEach(function(t){var e=[];n.hasOwnProperty(t)&&e.push.apply(e,n[t]),e.push.apply(e,o[t]),n[t]=e}),n},t.prototype.hasLifecycleHook=function(t,e){return t instanceof Zo&&e in t.prototype},t.prototype.getter=function(t){return new Function("o","return o."+t+";")},t.prototype.setter=function(t){return new Function("o","v","return o."+t+" = v;")},t.prototype.method=function(t){var e="if (!o."+t+") throw new Error('\""+t+"\" is undefined');\n        return o."+t+".apply(o, args);";return new Function("o","args",e)},t.prototype.importUri=function(t){return"object"==typeof t&&t.filePath?t.filePath:"./"+c(t)},t.prototype.resourceUri=function(t){return"./"+c(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return r},t.prototype.resolveEnum=function(t,e){return t[e]},t}(),ni=function(){function t(){}return t.prototype.parameters=function(t){},t.prototype.annotations=function(t){},t.prototype.propMetadata=function(t){},t.prototype.importUri=function(t){},t.prototype.resourceUri=function(t){},t.prototype.resolveIdentifier=function(t,e,n,r){},t.prototype.resolveEnum=function(t,e){},t}(),ri=function(t){function e(e){var n=t.call(this)||this;return n.reflectionCapabilities=e,n}return ro(e,t),e.prototype.updateCapabilities=function(t){this.reflectionCapabilities=t},e.prototype.factory=function(t){return this.reflectionCapabilities.factory(t)},e.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},e.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},e.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},e.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},e.prototype.getter=function(t){return this.reflectionCapabilities.getter(t)},e.prototype.setter=function(t){return this.reflectionCapabilities.setter(t)},e.prototype.method=function(t){return this.reflectionCapabilities.method(t)},e.prototype.importUri=function(t){return this.reflectionCapabilities.importUri(t)},e.prototype.resourceUri=function(t){return this.reflectionCapabilities.resourceUri(t)},e.prototype.resolveIdentifier=function(t,e,n,r){return this.reflectionCapabilities.resolveIdentifier(t,e,n,r)},e.prototype.resolveEnum=function(t,e){return this.reflectionCapabilities.resolveEnum(t,e)},e}(ni),oi=new ri(new ei),ii=function(){function t(t,e,n){this.key=t,this.optional=e,this.visibility=n}return t.fromKey=function(e){return new t(e,!1,null)},t}(),si=[],ai=function(){function t(t,e,n){this.key=t,this.resolvedFactories=e,this.multiProvider=n}return Object.defineProperty(t.prototype,"resolvedFactory",{get:function(){return this.resolvedFactories[0]},enumerable:!0,configurable:!0}),t}(),ui=function(){function t(t,e){this.factory=t,this.dependencies=e}return t}(),ci=new Object,li=function(){function t(){}return t.resolve=function(t){return B(t)},t.resolveAndCreate=function(e,n){var r=t.resolve(e);return t.fromResolvedProviders(r,n)},t.fromResolvedProviders=function(t,e){return new pi(t,e)},t.prototype.parent=function(){},t.prototype.resolveAndCreateChild=function(t){},t.prototype.createChildFromResolved=function(t){},t.prototype.resolveAndInstantiate=function(t){},t.prototype.instantiateResolved=function(t){},t.prototype.get=function(t,e){},t}(),pi=function(){function t(t,e){this._constructionCounter=0,this._providers=t,this._parent=e||null;var n=t.length;this.keyIds=new Array(n),this.objs=new Array(n);for(var r=0;r<n;r++)this.keyIds[r]=t[r].key.id,this.objs[r]=ci}return t.prototype.get=function(t,e){return void 0===e&&(e=zo),this._getByKey(Xo.get(t),null,e)},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),t.prototype.resolveAndCreateChild=function(t){var e=li.resolve(t);return this.createChildFromResolved(e)},t.prototype.createChildFromResolved=function(e){var n=new t(e);return n._parent=this,n},t.prototype.resolveAndInstantiate=function(t){return this.instantiateResolved(li.resolve([t])[0])},t.prototype.instantiateResolved=function(t){return this._instantiateProvider(t)},t.prototype.getProviderAtIndex=function(t){if(t<0||t>=this._providers.length)throw I(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw M(this,t.key);return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),n=0;n<t.resolvedFactories.length;++n)e[n]=this._instantiate(t,t.resolvedFactories[n]);return e}return this._instantiate(t,t.resolvedFactories[0])},t.prototype._instantiate=function(t,e){var n,r=this,o=e.factory;try{n=e.dependencies.map(function(t){return r._getByReflectiveDependency(t)})}catch(e){throw e.addKey&&e.addKey(this,t.key),e}var i;try{i=o.apply(void 0,n)}catch(e){throw R(this,e,e.stack,t.key)}return i},t.prototype._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:zo)},t.prototype._getByKey=function(t,e,n){return t===hi?this:e instanceof Uo?this._getByKeySelf(t,n):this._getByKeyDefault(t,n,e)},t.prototype._getObjByKeyId=function(t){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===ci&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return ci},t.prototype._throwOrNull=function(t,e){if(e!==zo)return e;throw O(this,t)},t.prototype._getByKeySelf=function(t,e){var n=this._getObjByKeyId(t.id);return n!==ci?n:this._throwOrNull(t,e)},t.prototype._getByKeyDefault=function(e,n,r){var o;for(o=r instanceof Bo?this._parent:this;o instanceof t;){var i=o,s=i._getObjByKeyId(e.id);if(s!==ci)return s;o=i._parent}return null!==o?o.get(e.token,n):this._throwOrNull(e,n)},Object.defineProperty(t.prototype,"displayName",{get:function(){return"ReflectiveInjector(providers: ["+K(this,function(t){return' "'+t.key.displayName+'" '}).join(", ")+"])"},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.displayName},t}(),hi=Xo.get(Wo),fi=new io("Application Initializer"),di=function(){function t(t){var e=this;this.appInits=t,this.initialized=!1,this._done=!1,this._donePromise=new Promise(function(t,n){e.resolve=t,e.reject=n})}return t.prototype.runInitializers=function(){var t=this;if(!this.initialized){var e=[],n=function(){t._done=!0,t.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var o=this.appInits[r]();Q(o)&&e.push(o)}Promise.all(e).then(function(){n()}).catch(function(e){t.reject(e)}),0===e.length&&n(),this.initialized=!0}},Object.defineProperty(t.prototype,"done",{get:function(){return this._done},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"donePromise",{get:function(){return this._donePromise},enumerable:!0,configurable:!0}),t}();di.decorators=[{type:Fo}],di.ctorParameters=function(){return[{type:Array,decorators:[{type:Lo,args:[fi]},{type:Vo}]}]};var mi=new io("AppId"),yi={provide:mi,useFactory:X,deps:[]},vi=new io("Platform Initializer"),gi=new io("Platform ID"),_i=new io("appBootstrapListener"),bi=new io("Application Packages Root URL"),wi=function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t}();wi.decorators=[{type:Fo}],wi.ctorParameters=function(){return[]};var Ci=function(){function t(t,e){this.ngModuleFactory=t,this.componentFactories=e}return t}(),Ei=function(){function t(){}return t.prototype.compileModuleSync=function(t){throw Z()},t.prototype.compileModuleAsync=function(t){throw Z()},t.prototype.compileModuleAndAllComponentsSync=function(t){throw Z()},t.prototype.compileModuleAndAllComponentsAsync=function(t){throw Z()},t.prototype.getNgContentSelectors=function(t){throw Z()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(t){},t}();Ei.decorators=[{type:Fo}],Ei.ctorParameters=function(){return[]};var Si=new io("compilerOptions"),xi=function(){function t(){}return t.prototype.createCompiler=function(t){},t}(),Ti=function(){function t(){}return t.prototype.location=function(){},t.prototype.injector=function(){},t.prototype.instance=function(){},t.prototype.hostView=function(){},t.prototype.changeDetectorRef=function(){},t.prototype.componentType=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(t){},t}(),Pi=function(){function t(){}return t.prototype.selector=function(){},t.prototype.componentType=function(){},t.prototype.ngContentSelectors=function(){},t.prototype.inputs=function(){},t.prototype.outputs=function(){},t.prototype.create=function(t,e,n,r){},t}(),Ai="ngComponent",Oi=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw tt(t)},t}(),Mi=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){},t}();Mi.NULL=new Oi;var Ri,ki,Ni=function(){function t(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(var r=0;r<t.length;r++){var o=t[r];this._factories.set(o.componentType,o)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t)||this._parent.resolveComponentFactory(t);return new Ii(e,this._ngModule)},t}(),Ii=function(t){function e(e,n){var r=t.call(this)||this;return r.factory=e,r.ngModule=n,r}return ro(e,t),Object.defineProperty(e.prototype,"selector",{get:function(){return this.factory.selector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this.factory.componentType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngContentSelectors",{get:function(){return this.factory.ngContentSelectors},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputs",{get:function(){return this.factory.inputs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return this.factory.outputs},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){return this.factory.create(t,e,n,r||this.ngModule)},e}(Pi),ji=function(){function t(){}return t.prototype.injector=function(){},t.prototype.componentFactoryResolver=function(){},t.prototype.instance=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(t){},t}(),Di=function(){function t(t,e){this._injectorClass=t,this._moduleType=e}return Object.defineProperty(t.prototype,"moduleType",{get:function(){return this._moduleType},enumerable:!0,configurable:!0}),t.prototype.create=function(t){var e=new this._injectorClass(t||Wo.NULL);return e.create(),e},t}(),Li=new Object,Vi=function(){function t(t,e,n){var r=this;this.parent=t,this._destroyListeners=[],this._destroyed=!1,this.bootstrapFactories=n.map(function(t){return new Ii(t,r)}),this._cmpFactoryResolver=new Ni(e,t.get(Mi,Mi.NULL),this)}return t.prototype.create=function(){this.instance=this.createInternal()},t.prototype.createInternal=function(){},t.prototype.get=function(t,e){if(void 0===e&&(e=zo),t===Wo||t===ji)return this;if(t===Mi)return this._cmpFactoryResolver;var n=this.getInternal(t,Li);return n===Li?this.parent.get(t,e):n},t.prototype.getInternal=function(t,e){},Object.defineProperty(t.prototype,"injector",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this._cmpFactoryResolver},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+c(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,this.destroyInternal(),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t.prototype.destroyInternal=function(){},t}(),Fi=et(),Ui=Fi?nt:function(t,e){return st},Bi=Fi?rt:function(t,e){return e},Hi=Fi?ot:function(t,e){return null},qi=Fi?it:function(t){return null},zi=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return ro(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var o,i=function(t){return null},s=function(){return null};return e&&"object"==typeof e?(o=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(i=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(o=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(i=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()})),t.prototype.subscribe.call(this,o,i,s)},e}(i.Subject),Gi=function(){function t(t){var e=t.enableLongStackTrace,n=void 0!==e&&e;if(this._hasPendingMicrotasks=!1,this._hasPendingMacrotasks=!1,this._isStable=!0,this._nesting=0,this._onUnstable=new zi(!1),this._onMicrotaskEmpty=new zi(!1),this._onStable=new zi(!1),this._onErrorEvents=new zi(!1),"undefined"==typeof Zone)throw new Error("Angular requires Zone.js prolyfill.");Zone.assertZonePatched(),this.outer=this.inner=Zone.current,Zone.wtfZoneSpec&&(this.inner=this.inner.fork(Zone.wtfZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(this.inner=this.inner.fork(Zone.longStackTraceZoneSpec)),this.forkInnerZoneWithAngularBehavior()}return t.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t){return this.inner.run(t)},t.prototype.runGuarded=function(t){return this.inner.runGuarded(t)},t.prototype.runOutsideAngular=function(t){return this.outer.run(t)},Object.defineProperty(t.prototype,"onUnstable",{get:function(){return this._onUnstable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onMicrotaskEmpty",{get:function(){return this._onMicrotaskEmpty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onStable",{get:function(){return this._onStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onError",{get:function(){return this._onErrorEvents},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMicrotasks",{get:function(){return this._hasPendingMicrotasks},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMacrotasks",{get:function(){return this._hasPendingMacrotasks},enumerable:!0,configurable:!0}),t.prototype.checkStable=function(){var t=this;if(0==this._nesting&&!this._hasPendingMicrotasks&&!this._isStable)try{this._nesting++,this._onMicrotaskEmpty.emit(null)}finally{if(this._nesting--,!this._hasPendingMicrotasks)try{this.runOutsideAngular(function(){return t._onStable.emit(null)})}finally{this._isStable=!0}}},t.prototype.forkInnerZoneWithAngularBehavior=function(){var t=this;this.inner=this.inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,n,r,o,i,s){try{return t.onEnter(),e.invokeTask(r,o,i,s)}finally{t.onLeave()}},onInvoke:function(e,n,r,o,i,s,a){try{return t.onEnter(),e.invoke(r,o,i,s,a)}finally{t.onLeave()}},onHasTask:function(e,n,r,o){e.hasTask(r,o),n===r&&("microTask"==o.change?t.setHasMicrotask(o.microTask):"macroTask"==o.change&&t.setHasMacrotask(o.macroTask))},onHandleError:function(e,n,r,o){return e.handleError(r,o),t.triggerError(o),!1}})},t.prototype.onEnter=function(){this._nesting++,this._isStable&&(this._isStable=!1,this._onUnstable.emit(null))},t.prototype.onLeave=function(){this._nesting--,this.checkStable()},t.prototype.setHasMicrotask=function(t){this._hasPendingMicrotasks=t,this.checkStable()},t.prototype.setHasMacrotask=function(t){this._hasPendingMacrotasks=t},t.prototype.triggerError=function(t){this._onErrorEvents.emit(t)},t}(),Wi=function(){function t(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents()}return t.prototype._watchAngularEvents=function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.subscribe({next:function(){Gi.assertNotInAngularZone(),a(function(){t._isZoneStable=!0,t._runCallbacksIfReady()})}})})},t.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},t.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;this.isStable()?a(function(){for(;0!==t._callbacks.length;)t._callbacks.pop()(t._didWork);t._didWork=!1}):this._didWork=!0},t.prototype.whenStable=function(t){this._callbacks.push(t),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findBindings=function(t,e,n){return[]},t.prototype.findProviders=function(t,e,n){return[]},t}();Wi.decorators=[{type:Fo}],Wi.ctorParameters=function(){return[{type:Gi}]};var $i=function(){function t(){this._applications=new Map,Qi.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),Qi.findTestabilityInTree(this,t,e)},t}();$i.decorators=[{type:Fo}],$i.ctorParameters=function(){return[]};var Ki,Qi=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),Ji=!0,Xi=!1,Yi=new io("AllowMultipleToken"),Zi=function(){function t(t,e){this.name=t,this.token=e}return t}(),ts=function(){function t(){}return t.prototype.bootstrapModuleFactory=function(t){},t.prototype.bootstrapModule=function(t,e){},t.prototype.onDestroy=function(t){},t.prototype.injector=function(){},t.prototype.destroy=function(){},t.prototype.destroyed=function(){},t}(),es=function(t){function e(e){var n=t.call(this)||this;return n._injector=e,n._modules=[],n._destroyListeners=[],n._destroyed=!1,n}return ro(e,t),e.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},e.prototype.bootstrapModuleFactory=function(t){return this._bootstrapModuleFactoryWithZone(t)},e.prototype._bootstrapModuleFactoryWithZone=function(t,e){var n=this;return e||(e=new Gi({enableLongStackTrace:ct()})),e.run(function(){var r=li.resolveAndCreate([{provide:Gi,useValue:e}],n.injector),o=t.create(r),i=o.injector.get(Jo,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.onDestroy(function(){return yt(n._modules,o)}),e.onError.subscribe({next:function(t){i.handleError(t)}}),mt(i,function(){var t=o.injector.get(di);return t.runInitializers(),t.donePromise.then(function(){return n._moduleDoBootstrap(o),o})})})},e.prototype.bootstrapModule=function(t,e){return void 0===e&&(e=[]),this._bootstrapModuleWithZone(t,e)},e.prototype._bootstrapModuleWithZone=function(t,e,n){var r=this;return void 0===e&&(e=[]),this.injector.get(xi).createCompiler(Array.isArray(e)?e:[e]).compileModuleAsync(t).then(function(t){return r._bootstrapModuleFactoryWithZone(t,n)})},e.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(ns);if(t.bootstrapFactories.length>0)t.bootstrapFactories.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+c(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)},e}(ts);es.decorators=[{type:Fo}],es.ctorParameters=function(){return[{type:Wo}]};var ns=function(){function t(){}return t.prototype.bootstrap=function(t){},t.prototype.tick=function(){},t.prototype.componentTypes=function(){},t.prototype.components=function(){},t.prototype.attachView=function(t){},t.prototype.detachView=function(t){},t.prototype.viewCount=function(){},t.prototype.isStable=function(){},t}(),rs=function(t){function r(r,i,s,u,c,l){var p=t.call(this)||this;p._zone=r,p._console=i,p._injector=s,p._exceptionHandler=u,p._componentFactoryResolver=c,p._initStatus=l,p._bootstrapListeners=[],p._rootComponents=[],p._rootComponentTypes=[],p._views=[],p._runningTick=!1,p._enforceNoNewChanges=!1,p._stable=!0,p._enforceNoNewChanges=ct(),p._zone.onMicrotaskEmpty.subscribe({next:function(){p._zone.run(function(){p.tick()})}});var h=new e.Observable(function(t){p._stable=p._zone.isStable&&!p._zone.hasPendingMacrotasks&&!p._zone.hasPendingMicrotasks,p._zone.runOutsideAngular(function(){t.next(p._stable),t.complete()})}),f=new e.Observable(function(t){var e=p._zone.onStable.subscribe(function(){Gi.assertNotInAngularZone(),a(function(){p._stable||p._zone.hasPendingMacrotasks||p._zone.hasPendingMicrotasks||(p._stable=!0,t.next(!0))})}),n=p._zone.onUnstable.subscribe(function(){Gi.assertInAngularZone(),p._stable&&(p._stable=!1,p._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});return p._isStable=n.merge(h,o.share.call(f)),p}return ro(r,t),r.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},r.prototype.detachView=function(t){var e=t;yt(this._views,e),e.detachFromAppRef()},r.prototype.bootstrap=function(t){var e=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.");var n;n=t instanceof Pi?t:this._componentFactoryResolver.resolveComponentFactory(t),this._rootComponentTypes.push(n.componentType);var r=n instanceof Ii?null:this._injector.get(ji),o=n.create(Wo.NULL,[],n.selector,r);o.onDestroy(function(){e._unloadComponent(o)});var i=o.injector.get(Wi,null);return i&&o.injector.get($i).registerApplication(o.location.nativeElement,i),this._loadComponent(o),ct()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},r.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this._rootComponents.push(t),this._injector.get(_i,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},r.prototype._unloadComponent=function(t){this.detachView(t.hostView),yt(this._rootComponents,t)},r.prototype.tick=function(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var t=r._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._exceptionHandler.handleError(t)}finally{this._runningTick=!1,Bi(t)}},r.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(r.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),r}(ns);rs._tickScope=Ui("ApplicationRef#tick()"),rs.decorators=[{type:Fo}],rs.ctorParameters=function(){return[{type:Gi},{type:wi},{type:Wo},{type:Jo},{type:Mi},{type:di}]};var os=function(){function t(t,e,n,r,o,i){this.id=t,this.templateUrl=e,this.slotCount=n,this.encapsulation=r,this.styles=o,this.animations=i}return t}(),is=function(){function t(){}return t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.source=function(){},t}(),ss=function(){function t(){}return t.prototype.selectRootElement=function(t,e){},t.prototype.createElement=function(t,e,n){},t.prototype.createViewRoot=function(t){},t.prototype.createTemplateAnchor=function(t,e){},t.prototype.createText=function(t,e,n){},t.prototype.projectNodes=function(t,e){},t.prototype.attachViewAfter=function(t,e){},t.prototype.detachView=function(t){},t.prototype.destroyView=function(t,e){},t.prototype.listen=function(t,e,n){},t.prototype.listenGlobal=function(t,e,n){},t.prototype.setElementProperty=function(t,e,n){},t.prototype.setElementAttribute=function(t,e,n){},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){},t.prototype.setElementStyle=function(t,e,n){},t.prototype.invokeElementMethod=function(t,e,n){},t.prototype.setText=function(t,e){},t.prototype.animate=function(t,e,n,r,o,i,s){},t}(),as=(new io("Renderer2Interceptor"),function(){function t(){}return t.prototype.renderComponent=function(t){},t}()),us=function(){function t(){}return t.prototype.createRenderer=function(t,e){},t}(),cs={};cs.Important=1,cs.DashCase=2,cs[cs.Important]="Important",cs[cs.DashCase]="DashCase";var ls=function(){function t(){}return t.prototype.data=function(){},t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){},t.prototype.createComment=function(t){},t.prototype.createText=function(t){},t.prototype.appendChild=function(t,e){},t.prototype.insertBefore=function(t,e,n){},t.prototype.removeChild=function(t,e){},t.prototype.selectRootElement=function(t){},t.prototype.parentNode=function(t){},t.prototype.nextSibling=function(t){},t.prototype.setAttribute=function(t,e,n,r){},t.prototype.removeAttribute=function(t,e,n){},t.prototype.addClass=function(t,e){},t.prototype.removeClass=function(t,e){},t.prototype.setStyle=function(t,e,n,r){},t.prototype.removeStyle=function(t,e,n){},t.prototype.setProperty=function(t,e,n){},t.prototype.setValue=function(t,e){},t.prototype.listen=function(t,e,n){},t}(),ps=function(){function t(t){this.nativeElement=t}return t}(),hs=function(){function t(){}return t.prototype.load=function(t){},t}(),fs=new Map,ds=function(){function t(){this._dirty=!0,this._results=[],this._emitter=new zi}return Object.defineProperty(t.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),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=_t(t),this._dirty=!1},t.prototype.notifyOnChanges=function(){this._emitter.emit(this)},t.prototype.setDirty=function(){this._dirty=!0},Object.defineProperty(t.prototype,"dirty",{get:function(){return this._dirty},enumerable:!0,configurable:!0}),t}(),ms=function(){function t(){}return t}(),ys={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},vs=function(){function t(t,e){this._compiler=t,this._config=e||ys}return t.prototype.load=function(t){return this._compiler instanceof Ei?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,n=t.split("#"),r=n[0],o=n[1];return void 0===o&&(o="default"),System.import(r).then(function(t){return t[o]}).then(function(t){return bt(t,r,o)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split("#"),n=e[0],r=e[1],o="NgFactory";return void 0===r&&(r="default",o=""),System.import(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then(function(t){return t[r+o]}).then(function(t){return bt(t,n,r)})},t}();vs.decorators=[{type:Fo}],vs.ctorParameters=function(){return[{type:Ei},{type:ms,decorators:[{type:Vo}]}]};var gs=function(){function t(){}return t.prototype.elementRef=function(){},t.prototype.createEmbeddedView=function(t){},t}(),_s=function(){function t(){}return t.prototype.element=function(){},t.prototype.injector=function(){},t.prototype.parentInjector=function(){},t.prototype.clear=function(){},t.prototype.get=function(t){},t.prototype.length=function(){},t.prototype.createEmbeddedView=function(t,e,n){},t.prototype.createComponent=function(t,e,n,r,o){},t.prototype.insert=function(t,e){},t.prototype.move=function(t,e){},t.prototype.indexOf=function(t){},t.prototype.remove=function(t){},t.prototype.detach=function(t){},t}(),bs=function(){function t(){}return t.prototype.markForCheck=function(){},t.prototype.detach=function(){},t.prototype.detectChanges=function(){},t.prototype.checkNoChanges=function(){},t.prototype.reattach=function(){},t}(),ws=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ro(e,t),e.prototype.destroy=function(){},e.prototype.destroyed=function(){},e.prototype.onDestroy=function(t){},e}(bs),Cs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ro(e,t),e.prototype.context=function(){},e.prototype.rootNodes=function(){},e}(ws),Es=function(){function t(t,e){this.name=t,this.callback=e}return t}(),Ss=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof xs?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}),Object.defineProperty(t.prototype,"source",{get:function(){return"Deprecated since v4"},enumerable:!0,configurable:!0}),t}(),xs=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 ro(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=this,r=this.childNodes.indexOf(t);-1!==r&&((o=this.childNodes).splice.apply(o,[r+1,0].concat(e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=n}));var o},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 Ct(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return Et(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}(Ss),Ts=new Map,Ps=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t}(),As=function(){function t(){this.hasWrappedValue=!1}return t.prototype.unwrap=function(t){return t instanceof Ps?(this.hasWrappedValue=!0,t.wrapped):t},t.prototype.reset=function(){this.hasWrappedValue=!1},t}(),Os=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}(),Ms=function(){function t(){}return t.prototype.supports=function(t){return At(t)},t.prototype.create=function(t,e){return new ks(e||t)},t}(),Rs=function(t,e){return e},ks=function(){function t(t){this._length=0,this._collection=null,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||Rs}return Object.defineProperty(t.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),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<kt(n,r,o)?e:n,s=kt(i,r,o),a=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(e=e._next,null==i.previousIndex)r++;else{o||(o=[]);var u=s-r,c=a-r;if(u!=c){for(var l=0;l<u;l++){var p=l<o.length?o[l]:o[l]=0,h=p+l;c<=h&&h<u&&(o[l]=p+1)}o[i.previousIndex]=c-u}}s!==a&&t(i,s,a)}},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachMovedItem=function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.forEachIdentityChange=function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)},t.prototype.diff=function(t){if(null==t&&(t=[]),!At(t))throw new Error("Error trying to diff '"+c(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n,r,o,i=this._itHead,s=!1;if(Array.isArray(t)){this._length=t.length;for(var a=0;a<this._length;a++)r=t[a],o=this._trackByFn(a,r),null!==i&&u(i.trackById,o)?(s&&(i=this._verifyReinsertion(i,r,o,a)),u(i.item,r)||this._addIdentityChange(i,r)):(i=this._mismatch(i,r,o,a),s=!0),i=i._next}else n=0,Mt(t,function(t){o=e._trackByFn(n,t),null!==i&&u(i.trackById,o)?(s&&(i=e._verifyReinsertion(i,t,o,n)),u(i.item,t)||e._addIdentityChange(i,t)):(i=e._mismatch(i,t,o,n),s=!0),i=i._next,n++}),this._length=n;return this._truncate(i),this._collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,n,r){var o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),t=null===this._linkedRecords?null:this._linkedRecords.get(n,r),null!==t?(u(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(u(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):t=this._addAfter(new Ns(e,n),o,r),t},t.prototype._verifyReinsertion=function(t,e,n,r){var o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._moveAfter=function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._addAfter=function(t,e,n){return this._insertAfter(t,e,n),null===this._additionsTail?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,n){var r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new js),this._linkedRecords.put(t),t.currentIndex=n,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e?t:(null===this._movesTail?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new js),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t},t.prototype._addIdentityChange=function(t,e){return t.item=e,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t},t.prototype.toString=function(){var t=[];this.forEachItem(function(e){return t.push(e)});var e=[];this.forEachPreviousItem(function(t){return e.push(t)});var n=[];this.forEachAddedItem(function(t){return n.push(t)});var r=[];this.forEachMovedItem(function(t){return r.push(t)});var o=[];this.forEachRemovedItem(function(t){return o.push(t)});var i=[];return this.forEachIdentityChange(function(t){return i.push(t)}),"collection: "+t.join(", ")+"\nprevious: "+e.join(", ")+"\nadditions: "+n.join(", ")+"\nmoves: "+r.join(", ")+"\nremovals: "+o.join(", ")+"\nidentityChanges: "+i.join(", ")+"\n"},t}(),Ns=function(){function t(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}return t.prototype.toString=function(){return this.previousIndex===this.currentIndex?c(this.item):c(this.item)+"["+c(this.previousIndex)+"->"+c(this.currentIndex)+"]"},t}(),Is=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<n.currentIndex)&&u(n.trackById,t))return n;return null},t.prototype.remove=function(t){var e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head},t}(),js=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,n=this.map.get(e);n||(n=new Is,this.map.set(e,n)),n.add(t)},t.prototype.get=function(t,e){var n=t,r=this.map.get(n);return r?r.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t.prototype.toString=function(){return"_DuplicateMap("+c(this.map)+")"},t}(),Ds=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||Rt(t)},t.prototype.create=function(t){return new Ls},t}(),Ls=function(){function t(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||Rt(t)))throw new Error("Error trying to diff '"+c(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(t,r){if(n&&n.key===r)e._maybeAddToChanges(n,t),e._appendAfter=n,n=n._next;else{var o=e._getOrCreateRecordForKey(r,t);n=e._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},t.prototype._insertBeforeOrAppend=function(t,e){if(t){var n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null},t.prototype._getOrCreateRecordForKey=function(t,e){if(this._records.has(t)){var n=this._records.get(t);this._maybeAddToChanges(n,e);var r=n._prev,o=n._next;return r&&(r._next=o),o&&(o._prev=r),n._next=null,n._prev=null,n}var i=new Vs(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},t.prototype._maybeAddToChanges=function(t,e){u(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype.toString=function(){var t=[],e=[],n=[],r=[],o=[];return this.forEachItem(function(e){return t.push(c(e))}),this.forEachPreviousItem(function(t){return e.push(c(t))}),this.forEachChangedItem(function(t){return n.push(c(t))}),this.forEachAddedItem(function(t){return r.push(c(t))}),this.forEachRemovedItem(function(t){return o.push(c(t))}),"map: "+t.join(", ")+"\nprevious: "+e.join(", ")+"\nadditions: "+r.join(", ")+"\nchanges: "+n.join(", ")+"\nremovals: "+o.join(", ")+"\n"},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(n){return e(t[n],n)})},t}(),Vs=function(){function t(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}return t.prototype.toString=function(){return u(this.previousValue,this.currentValue)?c(this.key):c(this.key)+"["+c(this.previousValue)+"->"+c(this.currentValue)+"]"},t}(),Fs=function(){function t(t){this.factories=t}return t.create=function(e,n){if(null!=n){var r=n.factories.slice();return e=e.concat(r),new t(e)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new Bo,new Vo]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(null!=e)return e;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+Nt(t)+"'")},t}(),Us=function(){function t(t){this.factories=t}return t.create=function(e,n){if(n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new Bo,new Vo]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(e)return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},t}(),Bs=[new Ds],Hs=new Fs([new Ms]),qs=new Us(Bs),zs=pt(null,"core",[{provide:gi,useValue:"unknown"},es,{provide:ts,useExisting:es},{provide:ri,useFactory:It,deps:[]},{provide:ni,useExisting:ri},$i,wi]),Gs=new io("LocaleId"),Ws=new io("Translations"),$s=new io("TranslationsFormat"),Ks={};Ks.Error=0,Ks.Warning=1,Ks.Ignore=2,Ks[Ks.Error]="Error",Ks[Ks.Warning]="Warning",Ks[Ks.Ignore]="Ignore";var Qs={};Qs.NONE=0,Qs.HTML=1,Qs.STYLE=2,Qs.SCRIPT=3,Qs.URL=4,Qs.RESOURCE_URL=5,Qs[Qs.NONE]="NONE",Qs[Qs.HTML]="HTML",Qs[Qs.STYLE]="STYLE",Qs[Qs.SCRIPT]="SCRIPT",Qs[Qs.URL]="URL",Qs[Qs.RESOURCE_URL]="RESOURCE_URL";var Js=function(){function t(){}return t.prototype.sanitize=function(t,e){},t}(),Xs=function(){function t(){}return t.prototype.view=function(){},t.prototype.nodeIndex=function(){},t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.componentRenderElement=function(){},t.prototype.renderNode=function(){},t.prototype.logError=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n]},t}(),Ys={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},Zs=function(){},ta=new Map,ea="$$undefined",na="$$empty",ra=0,oa=new WeakMap,ia=/^:([^:]+):(.+)$/,sa=[],aa={},ua=new Object,ca=function(t){function e(e,n,r,o,i,s){var a=t.call(this)||this;return a.selector=e,a.componentType=n,a._inputs=o,a._outputs=i,a.ngContentSelectors=s,a.viewDefFactory=r,a}return ro(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e){var r=e[n];t.push({propName:n,templateName:r})}return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs){var n=this._outputs[e];t.push({propName:e,templateName:n})}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=pe(this.viewDefFactory),i=o.nodes[0].element.componentProvider.index,s=Ys.createRootView(t,e||[],n,o,r,ua),a=Lt(s,i).instance;return n&&s.renderer.setAttribute(Dt(s,0).renderElement,"ng-version",Do.full),new la(s,new ha(s),a)},e}(Pi),la=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}return ro(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new ps(Dt(this._view,this._elDef.index).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new da(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"instance",{get:function(){return this._component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostView",{get:function(){return this._viewRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"changeDetectorRef",{get:function(){return this._viewRef},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}(Ti),pa=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 ps(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new da(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=re(t),t=t.parent;return t?new da(t,e):new da(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Ue(this._data,t);Ys.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new ha(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 Ii||(o=i.get(ji));var s=t.create(i,r,void 0,o);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){var n=t,r=n._view;return Le(this._view,this._data,e,r),n.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){var n=this._embeddedViews.indexOf(t._view);return He(this._data,n,e),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Ue(this._data,t);e&&Ys.destroyView(e)},t.prototype.detach=function(t){var e=Ue(this._data,t);return e?new ha(e):null},t}(),ha=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return he(this._view)},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(){Zt(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){Ys.checkAndUpdateView(this._view)},t.prototype.checkNoChanges=function(){Ys.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)),Ys.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,ze(this._view),Ys.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}(),fa=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return ro(e,t),e.prototype.createEmbeddedView=function(t){return new ha(Ys.createEmbeddedView(this._parentView,this._def,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new ps(Dt(this._parentView,this._def.index).renderElement)},enumerable:!0,configurable:!0}),e}(gs),da=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){void 0===e&&(e=Wo.THROW_IF_NOT_FOUND);var n=!!this.elDef&&0!=(33554432&this.elDef.flags);return Ys.resolveDep(this.view,this.elDef,n,{flags:0,token:t,tokenKey:Wt(t)},e)},t}(),ma=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=ge(e),r=n[0],o=n[1],i=this.delegate.createElement(o,r);return t&&this.delegate.appendChild(t,i),i},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;n<e.length;n++)this.delegate.appendChild(t,e[n])},t.prototype.attachViewAfter=function(t,e){for(var n=this.delegate.parentNode(t),r=this.delegate.nextSibling(t),o=0;o<e.length;o++)this.delegate.insertBefore(n,e[o],r)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},t.prototype.destroyView=function(t,e){for(var n=0;n<e.length;n++)this.delegate.destroyNode(e[n])},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.listenGlobal=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.setElementProperty=function(t,e,n){this.delegate.setProperty(t,e,n)},t.prototype.setElementAttribute=function(t,e,n){var r=ge(e),o=r[0],i=r[1];null!=n?this.delegate.setAttribute(t,i,n,o):this.delegate.removeAttribute(t,i,o)},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){n?this.delegate.addClass(t,e):this.delegate.removeClass(t,e)},t.prototype.setElementStyle=function(t,e,n){null!=n?this.delegate.setStyle(t,e,n):this.delegate.removeStyle(t,e)},t.prototype.invokeElementMethod=function(t,e,n){t[e].apply(t,n)},t.prototype.setText=function(t,e){this.delegate.setValue(t,e)},t.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},t}(),ya=Wt(ss),va=Wt(ls),ga=Wt(ps),_a=Wt(_s),ba=Wt(gs),wa=Wt(bs),Ca=Wt(Wo),Ea=new Object,Sa={},xa={};xa.CreateViewNodes=0,xa.CheckNoChanges=1,xa.CheckNoChangesProjectedViews=2,xa.CheckAndUpdate=3,xa.CheckAndUpdateProjectedViews=4,xa.Destroy=5,xa[xa.CreateViewNodes]="CreateViewNodes",xa[xa.CheckNoChanges]="CheckNoChanges",xa[xa.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",xa[xa.CheckAndUpdate]="CheckAndUpdate",xa[xa.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",xa[xa.Destroy]="Destroy";var Ta=!1,Pa={};Pa.create=0,Pa.detectChanges=1,Pa.checkNoChanges=2,Pa.destroy=3,Pa.handleEvent=4,Pa[Pa.create]="create",Pa[Pa.detectChanges]="detectChanges",Pa[Pa.checkNoChanges]="checkNoChanges",Pa[Pa.destroy]="destroy",Pa[Pa.handleEvent]="handleEvent";var Aa,Oa,Ma,Ra=/([A-Z])/g,ka=function(){function t(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];for(var n=this.nodeDef,r=t;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=re(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return Dt(this.elView,this.elDef.index).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return Ye(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=[];if(this.elDef)for(var e=this.elDef.index+1;e<=this.elDef.index+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&t.push(n.provider.token),e+=n.childCount}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t={};if(this.elDef){Ir(this.elView,this.elDef,t);for(var e=this.elDef.index+1;e<=this.elDef.index+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&Ir(this.elView,n,t),e+=n.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=Nr(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?oe(this.view,this.nodeDef):oe(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r,o;2&this.nodeDef.flags?(r=this.view.def,o=this.nodeDef.index):(r=this.elView.def,o=this.elDef.index);var i=kr(r,o),s=-1,a=function(){return s++,s===i?(n=t.error).bind.apply(n,[t].concat(e)):Zs;var n};r.factory(a),s<i&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,e))},t}(),Na=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new Ia(this.delegate.createRenderer(t,e))},t}(),Ia=function(){function t(t){this.delegate=t}return Object.defineProperty(t.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),t.prototype.destroyNode=function(t){Tt(St(t)),this.delegate.destroyNode&&this.delegate.destroyNode(t)},t.prototype.destroy=function(){this.delegate.destroy()},t.prototype.createElement=function(t,e){var n=this.delegate.createElement(t,e),r=Dr();if(r){var o=new xs(n,null,r);o.name=t,xt(o)}return n},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),n=Dr();return n&&xt(new Ss(e,null,n)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),n=Dr();return n&&xt(new Ss(e,null,n)),e},t.prototype.appendChild=function(t,e){var n=St(t),r=St(e);n&&r&&n instanceof xs&&n.addChild(r),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,n){var r=St(t),o=St(e),i=St(n);r&&o&&r instanceof xs&&r.insertBefore(i,o),this.delegate.insertBefore(t,e,n)},t.prototype.removeChild=function(t,e){var n=St(t),r=St(e);n&&r&&n instanceof xs&&n.removeChild(r),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t){var e=this.delegate.selectRootElement(t),n=Dr();return n&&xt(new xs(e,null,n)),e},t.prototype.setAttribute=function(t,e,n,r){var o=St(t);if(o&&o instanceof xs){var i=r?r+":"+e:e;o.attributes[i]=n}this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){var r=St(t);if(r&&r instanceof xs){var o=n?n+":"+e:e;r.attributes[o]=null}this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){var n=St(t);n&&n instanceof xs&&(n.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var n=St(t);n&&n instanceof xs&&(n.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){var o=St(t);o&&o instanceof xs&&(o.styles[e]=n),this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){var r=St(t);r&&r instanceof xs&&(r.styles[e]=null),this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){var r=St(t);r&&r instanceof xs&&(r.properties[e]=n),this.delegate.setProperty(t,e,n)},t.prototype.listen=function(t,e,n){if("string"!=typeof t){var r=St(t);r&&r.listeners.push(new Es(e,n))}return this.delegate.listen(t,e,n)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setValue=function(t,e){return this.delegate.setValue(t,e)},t}(),ja=function(){function t(t){}return t}();ja.decorators=[{type:ko,args:[{providers:[rs,{provide:ns,useExisting:rs},di,Ei,yi,{provide:Fs,useFactory:Lr},{provide:Us,useFactory:Vr},{provide:Gs,useFactory:Fr,deps:[[new Lo(Gs),new Vo,new Bo]]},{provide:fi,useValue:Ur,multi:!0}]}]}],ja.ctorParameters=function(){return[{type:ns}]};var Da={};Da.OnInit=0,Da.OnDestroy=1,Da.DoCheck=2,Da.OnChanges=3,Da.AfterContentInit=4,Da.AfterContentChecked=5,Da.AfterViewInit=6,Da.AfterViewChecked=7,Da[Da.OnInit]="OnInit",Da[Da.OnDestroy]="OnDestroy",Da[Da.DoCheck]="DoCheck",Da[Da.OnChanges]="OnChanges",Da[Da.AfterContentInit]="AfterContentInit",Da[Da.AfterContentChecked]="AfterContentChecked",Da[Da.AfterViewInit]="AfterViewInit",Da[Da.AfterViewChecked]="AfterViewChecked";var La=[Da.OnInit,Da.OnDestroy,Da.DoCheck,Da.OnChanges,Da.AfterContentInit,Da.AfterContentChecked,Da.AfterViewInit,Da.AfterViewChecked];t.Class=h,t.createPlatform=lt,t.assertPlatform=ht,t.destroyPlatform=ft,t.getPlatform=dt,t.PlatformRef=ts,t.ApplicationRef=ns,t.enableProdMode=ut,t.isDevMode=ct,t.createPlatformFactory=pt,t.NgProbeToken=Zi,t.APP_ID=mi,t.PACKAGE_ROOT_URL=bi,t.PLATFORM_INITIALIZER=vi,t.PLATFORM_ID=gi,t.APP_BOOTSTRAP_LISTENER=_i,t.APP_INITIALIZER=fi,t.ApplicationInitStatus=di,t.DebugElement=xs,t.DebugNode=Ss,t.asNativeElements=wt,t.getDebugNode=St,t.Testability=Wi,t.TestabilityRegistry=$i,t.setTestabilityGetter=at,t.TRANSLATIONS=Ws,t.TRANSLATIONS_FORMAT=$s,t.LOCALE_ID=Gs,t.MissingTranslationStrategy=Ks,t.ApplicationModule=ja,t.wtfCreateScope=Ui,t.wtfLeave=Bi,t.wtfStartTimeRange=Hi,t.wtfEndTimeRange=qi,t.Type=Zo,t.EventEmitter=zi,t.ErrorHandler=Jo,t.Sanitizer=Js,t.SecurityContext=Qs,t.ANALYZE_FOR_ENTRY_COMPONENTS=fo,t.Attribute=mo,t.ContentChild=go,t.ContentChildren=vo,t.Query=yo,t.ViewChild=bo,t.ViewChildren=_o,t.Component=So,t.Directive=Eo,t.HostBinding=Ao,t.HostListener=Oo,t.Input=To,t.Output=Po,t.Pipe=xo,t.CUSTOM_ELEMENTS_SCHEMA=Mo,t.NO_ERRORS_SCHEMA=Ro,t.NgModule=ko,t.ViewEncapsulation=No,t.Version=jo,t.VERSION=Do,t.forwardRef=g,t.resolveForwardRef=_,t.Injector=Wo,t.ReflectiveInjector=li,t.ResolvedReflectiveFactory=ui,t.ReflectiveKey=Xo,t.InjectionToken=io,t.OpaqueToken=oo,t.Inject=Lo,t.Optional=Vo,t.Injectable=Fo,t.Self=Uo,t.SkipSelf=Bo,t.Host=Ho,t.NgZone=Gi,t.RenderComponentType=os,t.Renderer=ss,t.Renderer2=ls,t.RendererFactory2=us,t.RendererStyleFlags2=cs,t.RootRenderer=as,t.COMPILER_OPTIONS=Si,t.Compiler=Ei,t.CompilerFactory=xi,t.ModuleWithComponentFactories=Ci,t.ComponentFactory=Pi,t.ComponentRef=Ti,t.ComponentFactoryResolver=Mi,t.ElementRef=ps,t.NgModuleFactory=Di,t.NgModuleRef=ji,t.NgModuleFactoryLoader=hs,t.getModuleFactory=gt,t.QueryList=ds,t.SystemJsNgModuleLoader=vs,t.SystemJsNgModuleLoaderConfig=ms,t.TemplateRef=gs,t.ViewContainerRef=_s,t.EmbeddedViewRef=Cs,t.ViewRef=ws,t.ChangeDetectionStrategy=wo,t.ChangeDetectorRef=bs,t.DefaultIterableDiffer=ks,t.IterableDiffers=Fs,t.KeyValueDiffers=Us,t.SimpleChange=Os,t.WrappedValue=Ps,t.platformCore=zs,t.ɵALLOW_MULTIPLE_PLATFORMS=Yi,t.ɵAPP_ID_RANDOM_PROVIDER=yi,t.ɵValueUnwrapper=As,t.ɵdevModeEqual=Pt,t.ɵisListLikeIterable=At,t.ɵChangeDetectorStatus=Co,t.ɵisDefaultChangeDetectionStrategy=v,t.ɵConsole=wi,t.ɵERROR_COMPONENT_TYPE="ngComponentType",t.ɵComponentFactory=Pi,t.ɵCodegenComponentFactoryResolver=Ni,t.ɵLIFECYCLE_HOOKS_VALUES=La,t.ɵLifecycleHooks=Da,t.ɵViewMetadata=Io,t.ɵReflector=ri,t.ɵreflector=oi,t.ɵReflectionCapabilities=ei,t.ɵReflectorReader=ni,t.ɵRenderDebugInfo=is,t.ɵglobal=co,t.ɵlooseIdentical=u,t.ɵstringify=c,t.ɵmakeDecorator=f,t.ɵisObservable=J,t.ɵisPromise=Q,t.ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR=Sa,t.ɵNgModuleInjector=Vi,t.ɵregisterModuleFactory=vt,t.ɵEMPTY_ARRAY=sa,t.ɵEMPTY_MAP=aa,t.ɵand=Ee,t.ɵccf=$e,t.ɵcrt=Kt,t.ɵdid=en,t.ɵeld=Se,t.ɵelementEventFullName=ie,t.ɵgetComponentViewDefinitionFactory=Ke,t.ɵinlineInterpolate=we,t.ɵinterpolate=be,t.ɵncd=je,t.ɵnov=Ze,t.ɵpid=nn,t.ɵprd=rn,t.ɵpad=Cn,t.ɵpod=En,t.ɵppd=wn,t.ɵqud=An,t.ɵted=In,t.ɵunv=$t,t.ɵvid=Fn,t.AUTO_STYLE="*",t.trigger=Qr,t.animate=Jr,t.group=Xr,t.sequence=Yr,t.style=Zr,t.state=to,t.keyframes=eo,t.transition=no,t.ɵba=Hr,t.ɵbb=qr,t.ɵbf=$r,t.ɵbc=zr,t.ɵbe=Wr,t.ɵbd=Gr,t.ɵbg=Kr,t.ɵz=Br,t.ɵo=Ur,t.ɵl=Lr,t.ɵm=Vr,t.ɵn=Fr,t.ɵf=rs,t.ɵg=X,t.ɵh=Hs,t.ɵi=qs,t.ɵj=Ms,t.ɵk=Ds,t.ɵc=pi,t.ɵd=ii,t.ɵe=B,t.ɵp=Fi,t.ɵr=nt,t.ɵq=et,t.ɵu=it,t.ɵs=rt,t.ɵt=ot,t.ɵa=m,t.ɵb=y,t.ɵw=on,t.ɵx=Xs,Object.defineProperty(t,"__esModule",{value:!0})})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"rxjs/Observable":22,"rxjs/Subject":25,"rxjs/observable/merge":42,"rxjs/operator/share":58}],14:[function(t,e,n){!function(r,o){"object"==typeof n&&void 0!==e?o(n,t("@angular/core"),t("rxjs/observable/forkJoin"),t("rxjs/observable/fromPromise"),t("rxjs/operator/map"),t("@angular/platform-browser")):o((r.ng=r.ng||{},r.ng.forms=r.ng.forms||{}),r.ng.core,r.Rx.Observable,r.Rx.Observable,r.Rx.Observable.prototype,r.ng.platformBrowser)}(this,function(t,e,n,r,o,i){"use strict";function s(t){return null==t||0===t.length}function a(t){return null!=t}function u(t){var n=e.ɵisPromise(t)?r.fromPromise(t):t;if(!e.ɵisObservable(n))throw new Error("Expected validator to return Promise or Observable.");return n}function c(t,e){return e.map(function(e){return e(t)})}function l(t,e){return e.map(function(e){return e(t)})}function p(t){var e=t.reduce(function(t,e){return null!=e?F({},t,e):t},{});return 0===Object.keys(e).length?null:e}function h(){var t=i.ɵgetDOM()?i.ɵgetDOM().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}function f(t){return t.validate?function(e){return t.validate(e)}:t}function d(t){return t.validate?function(e){return t.validate(e)}:t}function m(){throw new Error("unimplemented")}function y(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function v(t){return t.split(":")[0]}function g(t,e){return null==t?""+e:("string"==typeof e&&(e="'"+e+"'"),e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function _(t){return t.split(":")[0]}function b(t,e){return e.path.concat([t])}function w(t,e){t||x(e,"Cannot find control with"),e.valueAccessor||x(e,"No value accessor for form control with"),t.validator=q.compose([t.validator,e.validator]),t.asyncValidator=q.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),e.valueAccessor.registerOnChange(function(n){e.viewToModelUpdate(n),t.markAsDirty(),t.setValue(n,{emitModelToViewChange:!1})}),e.valueAccessor.registerOnTouched(function(){return t.markAsTouched()}),t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)}),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function C(t,e){e.valueAccessor.registerOnChange(function(){return S(e)}),e.valueAccessor.registerOnTouched(function(){return S(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}function E(t,e){null==t&&x(e,"Cannot find control with"),t.validator=q.compose([t.validator,e.validator]),t.asyncValidator=q.composeAsync([t.asyncValidator,e.asyncValidator])}function S(t){return x(t,"There is no FormControl instance attached to form control element with")}function x(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function T(t){return null!=t?q.compose(t.map(f)):null}function P(t){return null!=t?q.composeAsync(t.map(d)):null}function A(t,n){if(!t.hasOwnProperty("model"))return!1;var r=t.model;return!!r.isFirstChange()||!e.ɵlooseIdentical(n,r.currentValue)}function O(t){return lt.some(function(e){return t.constructor===e})}function M(t,e){if(!e)return null;var n=void 0,r=void 0,o=void 0;return e.forEach(function(e){e.constructor===Q?n=e:O(e)?(r&&x(t,"More than one built-in value accessor matches form control with"),r=e):(o&&x(t,"More than one custom value accessor matches form control with"),o=e)}),o||(r||(n||(x(t,"No valid value accessor for form control with"),null)))}function R(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(n)),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof gt?t.controls[e]||null:t instanceof _t?t.at(e)||null:null},t))}function k(t){return Array.isArray(t)?T(t):t||null}function N(t){return Array.isArray(t)?P(t):t||null}function I(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function j(t){return!(t instanceof Dt||t instanceof It||t instanceof Vt)}var D=function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},L=function(){function t(){}return t.prototype.control=function(){},Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return!!this.control&&this.control.hasError(t,e)},t.prototype.getError=function(t,e){return this.control?this.control.getError(t,e):null},t}(),V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return D(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e}(L),F=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},U=new e.InjectionToken("NgValidators"),B=new e.InjectionToken("NgAsyncValidators"),H=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,q=function(){function t(){}return t.required=function(t){return s(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return H.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(s(e.value))return null;var n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}},t.maxLength=function(t){return function(e){var n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){if(!e)return t.nullValidator;var n,r;return"string"==typeof e?(r="^"+e+"$",n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(s(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(a);return 0==e.length?null:function(t){return p(c(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(a);return 0==e.length?null:function(t){var r=l(t,e).map(u);return o.map.call(n.forkJoin(r),p)}},t}(),z=new e.InjectionToken("NgValueAccessor"),G={provide:z,useExisting:e.forwardRef(function(){return W}),multi:!0},W=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();W.decorators=[{type:e.Directive,args:[{selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[G]}]}],W.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]};var $={provide:z,useExisting:e.forwardRef(function(){return Q}),multi:!0},K=new e.InjectionToken("CompositionEventMode"),Q=function(){function t(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!h())}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t}();Q.decorators=[{type:e.Directive,args:[{selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"_handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"_compositionStart()","(compositionend)":"_compositionEnd($event.target.value)"},providers:[$]}]}],Q.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[K]}]}]};var J={provide:z,useExisting:e.forwardRef(function(){return X}),multi:!0},X=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();X.decorators=[{type:e.Directive,args:[{selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[J]}]}],X.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]};var Y=function(t){function e(){var e=t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return D(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return m()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return m()},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){},e}(L),Z={provide:z,useExisting:e.forwardRef(function(){return et}),multi:!0},tt=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&(t[0]._parent===e._control._parent&&t[1].name===e.name)},t}();tt.decorators=[{type:e.Injectable}],tt.ctorParameters=function(){return[]};var et=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(Y),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n      If you define both a name and a formControlName attribute on your radio button, their values\n      must match. Ex: <input type="radio" formControlName="food" name="food">\n    ')},t}();et.decorators=[{type:e.Directive,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[Z]}]}],et.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef},{type:tt},{type:e.Injector}]},et.propDecorators={name:[{type:e.Input}],formControlName:[{type:e.Input}],value:[{type:e.Input}]};var nt={provide:z,useExisting:e.forwardRef(function(){return rt}),multi:!0},rt=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();rt.decorators=[{type:e.Directive,args:[{selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[nt]}]}],rt.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]};var ot={provide:z,useExisting:e.forwardRef(function(){return it}),multi:!0},it=function(){function t(t,n){this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=e.ɵlooseIdentical}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setElementProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=y(e,t);this._renderer.setElementProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=n,t(e._getOptionValue(n))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){for(var e=0,n=Array.from(this._optionMap.keys());e<n.length;e++){var r=n[e];if(this._compareWith(this._optionMap.get(r),t))return r}return null},t.prototype._getOptionValue=function(t){var e=v(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}();it.decorators=[{type:e.Directive,args:[{selector:"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]",host:{"(change)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[ot]}]}],it.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]},it.propDecorators={compareWith:[{type:e.Input}]};var st=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(y(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setElementProperty(this._element.nativeElement,"value",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t}();st.decorators=[{type:e.Directive,args:[{selector:"option"}]}],st.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer},{type:it,decorators:[{type:e.Optional},{type:e.Host}]}]},st.propDecorators={ngValue:[{type:e.Input,args:["ngValue"]}],value:[{type:e.Input,args:["value"]}]};var at={provide:z,useExisting:e.forwardRef(function(){return ut}),multi:!0},ut=function(){function t(t,n){this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=e.ɵlooseIdentical}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e=this;this.value=t;var n;if(Array.isArray(t)){var r=t.map(function(t){return e._getOptionId(t)});n=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else n=function(t,e){t._setSelected(!1)};this._optionMap.forEach(n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,i=0;i<o.length;i++){var s=o.item(i),a=e._getOptionValue(s.value);r.push(a)}else for(var o=n.options,i=0;i<o.length;i++)if((s=o.item(i)).selected){a=e._getOptionValue(s.value);r.push(a)}e.value=r,t(r)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(t){var e=(this._idCounter++).toString();return this._optionMap.set(e,t),e},t.prototype._getOptionId=function(t){for(var e=0,n=Array.from(this._optionMap.keys());e<n.length;e++){var r=n[e];if(this._compareWith(this._optionMap.get(r)._value,t))return r}return null},t.prototype._getOptionValue=function(t){var e=_(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t},t}();ut.decorators=[{type:e.Directive,args:[{selector:"select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]",host:{"(change)":"onChange($event.target)","(blur)":"onTouched()"},providers:[at]}]}],ut.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]},ut.propDecorators={compareWith:[{type:e.Input}]};var ct=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._value=t,this._setElementValue(g(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._select?(this._value=t,this._setElementValue(g(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setElementProperty(this._element.nativeElement,"value",t)},t.prototype._setSelected=function(t){this._renderer.setElementProperty(this._element.nativeElement,"selected",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t}();ct.decorators=[{type:e.Directive,args:[{selector:"option"}]}],ct.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer},{type:ut,decorators:[{type:e.Optional},{type:e.Host}]}]},ct.propDecorators={ngValue:[{type:e.Input,args:["ngValue"]}],value:[{type:e.Input,args:["value"]}]};var lt=[W,rt,X,it,ut,et],pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return D(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return b(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return T(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return P(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(V),ht=function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),t}(),ft={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},dt=function(t){function e(e){return t.call(this,e)||this}return D(e,t),e}(ht);dt.decorators=[{type:e.Directive,args:[{selector:"[formControlName],[ngModel],[formControl]",host:ft}]}],dt.ctorParameters=function(){return[{type:Y,decorators:[{type:e.Self}]}]};var mt=function(t){function e(e){return t.call(this,e)||this}return D(e,t),e}(ht);mt.decorators=[{type:e.Directive,args:[{selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:ft}]}],mt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Self}]}]};var yt=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this._pristine=!0,this._touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return"VALID"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return"INVALID"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return"PENDING"==this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return"DISABLED"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return"DISABLED"!==this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this._errors},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this._pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this._valueChanges},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this._statusChanges},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=k(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=N(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){var e=(void 0===t?{}:t).onlySelf;this._touched=!0,this._parent&&!e&&this._parent.markAsTouched({onlySelf:e})},t.prototype.markAsUntouched=function(t){var e=(void 0===t?{}:t).onlySelf;this._touched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!e&&this._parent._updateTouched({onlySelf:e})},t.prototype.markAsDirty=function(t){var e=(void 0===t?{}:t).onlySelf;this._pristine=!1,this._parent&&!e&&this._parent.markAsDirty({onlySelf:e})},t.prototype.markAsPristine=function(t){var e=(void 0===t?{}:t).onlySelf;this._pristine=!0,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!e&&this._parent._updatePristine({onlySelf:e})},t.prototype.markAsPending=function(t){var e=(void 0===t?{}:t).onlySelf;this._status="PENDING",this._parent&&!e&&this._parent.markAsPending({onlySelf:e})},t.prototype.disable=function(t){var e=void 0===t?{}:t,n=e.onlySelf,r=e.emitEvent;this._status="DISABLED",this._errors=null,this._forEachChild(function(t){t.disable({onlySelf:!0})}),this._updateValue(),!1!==r&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._updateAncestors(!!n),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){var e=void 0===t?{}:t,n=e.onlySelf,r=e.emitEvent;this._status="VALID",this._forEachChild(function(t){t.enable({onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r}),this._updateAncestors(!!n),this._onDisabledChange.forEach(function(t){return t(!1)})},t.prototype._updateAncestors=function(t){this._parent&&!t&&(this._parent.updateValueAndValidity(),this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.setValue=function(t,e){},t.prototype.patchValue=function(t,e){},t.prototype.reset=function(t,e){},t.prototype.updateValueAndValidity=function(t){var e=void 0===t?{}:t,n=e.onlySelf,r=e.emitEvent;this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this._errors=this._runValidator(),this._status=this._calculateStatus(),"VALID"!==this._status&&"PENDING"!==this._status||this._runAsyncValidator(r)),!1!==r&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._parent&&!n&&this._parent.updateValueAndValidity({onlySelf:n,emitEvent:r})},t.prototype._updateTreeValidity=function(t){var e=(void 0===t?{emitEvent:!0}:t).emitEvent;this._forEachChild(function(t){return t._updateTreeValidity({emitEvent:e})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e})},t.prototype._setInitialStatus=function(){this._status=this._allControlsDisabled()?"DISABLED":"VALID"},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this._status="PENDING";var n=u(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return e.setErrors(n,{emitEvent:t})})}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){var n=(void 0===e?{}:e).emitEvent;this._errors=t,this._updateControlsErrors(!1!==n)},t.prototype.get=function(t){return R(this,t,".")},t.prototype.getError=function(t,e){var n=e?this.get(e):this;return n&&n._errors?n._errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this._status=this._calculateStatus(),t&&this._statusChanges.emit(this._status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this._valueChanges=new e.EventEmitter,this._statusChanges=new e.EventEmitter},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this._errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},t.prototype._updateValue=function(){},t.prototype._forEachChild=function(t){},t.prototype._anyControls=function(t){},t.prototype._allControlsDisabled=function(){},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls(function(e){return e.status===t})},t.prototype._anyControlsDirty=function(){return this._anyControls(function(t){return t.dirty})},t.prototype._anyControlsTouched=function(){return this._anyControls(function(t){return t.touched})},t.prototype._updatePristine=function(t){var e=(void 0===t?{}:t).onlySelf;this._pristine=!this._anyControlsDirty(),this._parent&&!e&&this._parent._updatePristine({onlySelf:e})},t.prototype._updateTouched=function(t){var e=(void 0===t?{}:t).onlySelf;this._touched=this._anyControlsTouched(),this._parent&&!e&&this._parent._updateTouched({onlySelf:e})},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t}(),vt=function(t){function e(e,n,r){void 0===e&&(e=null);var o=t.call(this,k(n),N(r))||this;return o._onChange=[],o._applyFormState(e),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o._initObservables(),o}return D(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._value=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(function(t){return t(n._value,!1!==e.emitViewToModelChange)}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this._value,e)},e.prototype._updateValue=function(){},e.prototype._anyControls=function(t){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(t){},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this._value=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this._value=t},e}(yt),gt=function(t){function e(e,n,r){var o=t.call(this,n||null,r||null)||this;return o.controls=e,o._initObservables(),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return D(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),Object.keys(t).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),Object.keys(t).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof vt?e.value:e.getRawValue(),t})},e.prototype._throwIfControlMissing=function(t){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[t])throw new Error("Cannot find form control with name: "+t+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach(function(n){return t(e.controls[n],n)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})},e.prototype._updateValue=function(){this._value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,n=!1;return this._forEachChild(function(r,o){n=n||e.contains(o)&&t(r)}),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},function(e,n,r){return(n.enabled||t.disabled)&&(e[r]=n.value),e})},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild(function(t,r){n=e(n,t,r)}),n},e.prototype._allControlsDisabled=function(){for(var t=0,e=Object.keys(this.controls);t<e.length;t++){var n=e[t];if(this.controls[n].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(yt),_t=function(t){function e(e,n,r){var o=t.call(this,n||null,r||null)||this;return o.controls=e,o._initObservables(),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return D(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof vt?t.value:t.getRawValue()})},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this._value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){for(var t=0,e=this.controls;t<e.length;t++)if(e[t].enabled)return!1;return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(yt),bt={provide:V,useExisting:e.forwardRef(function(){return Ct})},wt=Promise.resolve(null),Ct=function(t){function n(n,r){var o=t.call(this)||this;return o._submitted=!1,o.ngSubmit=new e.EventEmitter,o.form=new gt({},T(n),P(r)),o}return D(n,t),Object.defineProperty(n.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),n.prototype.addControl=function(t){var e=this;wt.then(function(){var n=e._findContainer(t.path);t._control=n.registerControl(t.name,t.control),w(t.control,t),t.control.updateValueAndValidity({emitEvent:!1})})},n.prototype.getControl=function(t){return this.form.get(t.path)},n.prototype.removeControl=function(t){var e=this;wt.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},n.prototype.addFormGroup=function(t){var e=this;wt.then(function(){var n=e._findContainer(t.path),r=new gt({});E(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},n.prototype.removeFormGroup=function(t){var e=this;wt.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},n.prototype.getFormGroup=function(t){return this.form.get(t.path)},n.prototype.updateModel=function(t,e){var n=this;wt.then(function(){n.form.get(t.path).setValue(e)})},n.prototype.setValue=function(t){this.control.setValue(t)},n.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},n.prototype.onReset=function(){this.resetForm()},n.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},n.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},n}(V);Ct.decorators=[{type:e.Directive,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]",providers:[bt],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],Ct.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]}]};var Et={formControlName:'\n    <div [formGroup]="myGroup">\n      <input formControlName="firstName">\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });',formGroupName:'\n    <div [formGroup]="myGroup">\n       <div formGroupName="person">\n          <input formControlName="firstName">\n       </div>\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });',formArrayName:'\n    <div [formGroup]="myGroup">\n      <div formArrayName="cities">\n        <div *ngFor="let city of cityArray.controls; index as i">\n          <input [formControlName]="i">\n        </div>\n      </div>\n    </div>\n\n    In your class:\n\n    this.cityArray = new FormArray([new FormControl(\'SF\')]);\n    this.myGroup = new FormGroup({\n      cities: this.cityArray\n    });',ngModelGroup:'\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>',ngModelWithFormGroup:'\n    <div [formGroup]="myGroup">\n       <input formControlName="firstName">\n       <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n    </div>\n  '},St=function(){function t(){}return t.modelParentException=function(){throw new Error('\n      ngModel cannot be used to register form controls with a parent formGroup directive.  Try using\n      formGroup\'s partner directive "formControlName" instead.  Example:\n\n      '+Et.formControlName+"\n\n      Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n      Example:\n\n      "+Et.ngModelWithFormGroup)},t.formGroupNameException=function(){throw new Error("\n      ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n      Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n      "+Et.formGroupName+"\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      "+Et.ngModelGroup)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n      control must be defined as \'standalone\' in ngModelOptions.\n\n      Example 1: <input [(ngModel)]="person.firstName" name="first">\n      Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},t.modelGroupParentException=function(){throw new Error("\n      ngModelGroup cannot be used with a parent formGroup directive.\n\n      Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n      "+Et.formGroupName+"\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      "+Et.ngModelGroup)},t}(),xt={provide:V,useExisting:e.forwardRef(function(){return Tt})},Tt=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return D(e,t),e.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof Ct||St.modelGroupParentException()},e}(pt);Tt.decorators=[{type:e.Directive,args:[{selector:"[ngModelGroup]",providers:[xt],exportAs:"ngModelGroup"}]}],Tt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]}]},Tt.propDecorators={name:[{type:e.Input,args:["ngModelGroup"]}]};var Pt={provide:Y,useExisting:e.forwardRef(function(){return Ot})},At=Promise.resolve(null),Ot=function(t){function n(n,r,o,i){var s=t.call(this)||this;return s._control=new vt,s._registered=!1,s.update=new e.EventEmitter,s._parent=n,s._rawValidators=r||[],s._rawAsyncValidators=o||[],s.valueAccessor=M(s,i),s}return D(n,t),n.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),A(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},n.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(n.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return this._parent?b(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return T(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return P(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),n.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},n.prototype._setUpControl=function(){this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},n.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},n.prototype._setUpStandalone=function(){w(this._control,this),this._control.updateValueAndValidity({emitEvent:!1})},n.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},n.prototype._checkParentType=function(){!(this._parent instanceof Tt)&&this._parent instanceof pt?St.formGroupNameException():this._parent instanceof Tt||this._parent instanceof Ct||St.modelParentException()},n.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||St.missingNameException()},n.prototype._updateValue=function(t){var e=this;At.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},n.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;At.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},n}(Y);Ot.decorators=[{type:e.Directive,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[Pt],exportAs:"ngModel"}]}],Ot.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[z]}]}]},Ot.propDecorators={name:[{type:e.Input}],isDisabled:[{type:e.Input,args:["disabled"]}],model:[{type:e.Input,args:["ngModel"]}],options:[{type:e.Input,args:["ngModelOptions"]}],update:[{type:e.Output,args:["ngModelChange"]}]};var Mt=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      "+Et.formControlName)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n       that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n       Option 1:  Update the parent to be formGroupName (reactive form strategy)\n\n        '+Et.formGroupName+"\n\n        Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n        "+Et.ngModelGroup)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n       Example:\n\n       "+Et.formControlName)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive.  You'll want to add a formGroup\n      directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      "+Et.formGroupName)},t.arrayParentException=function(){throw new Error("formArrayName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n        Example:\n\n        "+Et.formArrayName)},t.disabledAttrWarning=function(){console.warn("\n      It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n      when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n      you. We recommend using this approach to avoid 'changed after checked' errors.\n       \n      Example: \n      form = new FormGroup({\n        first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n        last: new FormControl('Drew', Validators.required)\n      });\n    ")},t}(),Rt={provide:Y,useExisting:e.forwardRef(function(){return kt})},kt=function(t){function n(n,r,o){var i=t.call(this)||this;return i.update=new e.EventEmitter,i._rawValidators=n||[],i._rawAsyncValidators=r||[],i.valueAccessor=M(i,o),i}return D(n,t),Object.defineProperty(n.prototype,"isDisabled",{set:function(t){Mt.disabledAttrWarning()},enumerable:!0,configurable:!0}),n.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&(w(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),A(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(n.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return T(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return P(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),n.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},n.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},n}(Y);kt.decorators=[{type:e.Directive,args:[{selector:"[formControl]",providers:[Rt],exportAs:"ngForm"}]}],kt.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[z]}]}]},kt.propDecorators={form:[{type:e.Input,args:["formControl"]}],model:[{type:e.Input,args:["ngModel"]}],update:[{type:e.Output,args:["ngModelChange"]}],isDisabled:[{type:e.Input,args:["disabled"]}]};var Nt={provide:V,useExisting:e.forwardRef(function(){return It})},It=function(t){function n(n,r){var o=t.call(this)||this;return o._validators=n,o._asyncValidators=r,o._submitted=!1,o.directives=[],o.form=null,o.ngSubmit=new e.EventEmitter,o}return D(n,t),n.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(n.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),n.prototype.addControl=function(t){var e=this.form.get(t.path);return w(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},n.prototype.getControl=function(t){return this.form.get(t.path)},n.prototype.removeControl=function(t){I(this.directives,t)},n.prototype.addFormGroup=function(t){var e=this.form.get(t.path);E(e,t),e.updateValueAndValidity({emitEvent:!1})},n.prototype.removeFormGroup=function(t){},n.prototype.getFormGroup=function(t){return this.form.get(t.path)},n.prototype.addFormArray=function(t){var e=this.form.get(t.path);E(e,t),e.updateValueAndValidity({emitEvent:!1})},n.prototype.removeFormArray=function(t){},n.prototype.getFormArray=function(t){return this.form.get(t.path)},n.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},n.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},n.prototype.onReset=function(){this.resetForm()},n.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},n.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e._control!==n&&(C(e._control,e),n&&w(n,e),e._control=n)}),this.form._updateTreeValidity({emitEvent:!1})},n.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},n.prototype._updateValidators=function(){var t=T(this._validators);this.form.validator=q.compose([this.form.validator,t]);var e=P(this._asyncValidators);this.form.asyncValidator=q.composeAsync([this.form.asyncValidator,e])},n.prototype._checkFormPresent=function(){this.form||Mt.missingFormException()},n}(V);It.decorators=[{type:e.Directive,args:[{selector:"[formGroup]",providers:[Nt],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],It.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]}]},It.propDecorators={form:[{type:e.Input,args:["formGroup"]}],ngSubmit:[{type:e.Output}]};var jt={provide:V,useExisting:e.forwardRef(function(){return Dt})},Dt=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return D(e,t),e.prototype._checkParentType=function(){j(this._parent)&&Mt.groupParentException()},e}(pt);Dt.decorators=[{type:e.Directive,args:[{selector:"[formGroupName]",providers:[jt]}]}],Dt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]}]},Dt.propDecorators={name:[{type:e.Input,args:["formGroupName"]}]};var Lt={provide:V,useExisting:e.forwardRef(function(){return Vt})},Vt=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return D(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return b(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return T(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return P(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){j(this._parent)&&Mt.arrayParentException()},e}(V);Vt.decorators=[{type:e.Directive,args:[{selector:"[formArrayName]",providers:[Lt]}]}],Vt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]}]},Vt.propDecorators={name:[{type:e.Input,args:["formArrayName"]}]};var Ft={provide:Y,useExisting:e.forwardRef(function(){return Ut})},Ut=function(t){function n(n,r,o,i){var s=t.call(this)||this;return s._added=!1,s.update=new e.EventEmitter,s._parent=n,s._rawValidators=r||[],s._rawAsyncValidators=o||[],s.valueAccessor=M(s,i),s}return D(n,t),Object.defineProperty(n.prototype,"isDisabled",{set:function(t){Mt.disabledAttrWarning()},enumerable:!0,configurable:!0}),n.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),A(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},n.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},n.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(n.prototype,"path",{get:function(){return b(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return T(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return P(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),n.prototype._checkParentType=function(){!(this._parent instanceof Dt)&&this._parent instanceof pt?Mt.ngModelGroupException():this._parent instanceof Dt||this._parent instanceof It||this._parent instanceof Vt||Mt.controlParentException()},n.prototype._setUpControl=function(){this._checkParentType(),this._control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},n}(Y);Ut.decorators=[{type:e.Directive,args:[{selector:"[formControlName]",providers:[Ft]}]}],Ut.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[z]}]}]},Ut.propDecorators={name:[{type:e.Input,args:["formControlName"]}],model:[{type:e.Input,args:["ngModel"]}],update:[{type:e.Output,args:["ngModelChange"]}],isDisabled:[{type:e.Input,args:["disabled"]}]};var Bt={provide:U,useExisting:e.forwardRef(function(){return qt}),multi:!0},Ht={provide:U,useExisting:e.forwardRef(function(){return zt}),multi:!0},qt=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?q.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();qt.decorators=[{type:e.Directive,args:[{selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[Bt],host:{"[attr.required]":'required ? "" : null'}}]}],qt.ctorParameters=function(){return[]},qt.propDecorators={required:[{type:e.Input}]};var zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return D(e,t),e.prototype.validate=function(t){return this.required?q.requiredTrue(t):null},e}(qt);zt.decorators=[{type:e.Directive,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[Ht],host:{"[attr.required]":'required ? "" : null'}}]}],zt.ctorParameters=function(){return[]};var Gt={provide:U,useExisting:e.forwardRef(function(){return Wt}),multi:!0},Wt=function(){function t(){}return Object.defineProperty(t.prototype,"email",{set:function(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this._enabled?q.email(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();Wt.decorators=[{type:e.Directive,args:[{selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[Gt]}]}],Wt.ctorParameters=function(){return[]},Wt.propDecorators={email:[{type:e.Input}]};var $t={provide:U,useExisting:e.forwardRef(function(){return Kt}),multi:!0},Kt=function(){function t(){}return t.prototype.ngOnChanges=function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null==this.minlength?null:this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=q.minLength(parseInt(this.minlength,10))},t}();Kt.decorators=[{type:e.Directive,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[$t],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],Kt.ctorParameters=function(){return[]},Kt.propDecorators={minlength:[{type:e.Input}]};var Qt={provide:U,useExisting:e.forwardRef(function(){return Jt}),multi:!0},Jt=function(){function t(){}return t.prototype.ngOnChanges=function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null!=this.maxlength?this._validator(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=q.maxLength(parseInt(this.maxlength,10))},t}();Jt.decorators=[{type:e.Directive,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[Qt],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],Jt.ctorParameters=function(){return[]},Jt.propDecorators={maxlength:[{type:e.Input}]};var Xt={provide:U,useExisting:e.forwardRef(function(){return Yt}),multi:!0},Yt=function(){function t(){}return t.prototype.ngOnChanges=function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=q.pattern(this.pattern)},t}();Yt.decorators=[{type:e.Directive,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[Xt],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],Yt.ctorParameters=function(){return[]},Yt.propDecorators={pattern:[{type:e.Input}]};var Zt=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),r=null!=e?e.validator:null,o=null!=e?e.asyncValidator:null;return new gt(n,r,o)},t.prototype.control=function(t,e,n){return new vt(t,e,n)},t.prototype.array=function(t,e,n){var r=this,o=t.map(function(t){return r._createControl(t)});return new _t(o,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach(function(r){n[r]=e._createControl(t[r])}),n},t.prototype._createControl=function(t){if(t instanceof vt||t instanceof gt||t instanceof _t)return t;if(Array.isArray(t)){var e=t[0],n=t.length>1?t[1]:null,r=t.length>2?t[2]:null;return this.control(e,n,r)}return this.control(t)},t}();Zt.decorators=[{type:e.Injectable}],Zt.ctorParameters=function(){return[]};var te=new e.Version("4.1.3"),ee=function(){function t(){}return t}();ee.decorators=[{type:e.Directive,args:[{selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}}]}],ee.ctorParameters=function(){return[]};var ne=[ee,st,ct,Q,X,rt,W,it,ut,et,dt,mt,qt,Kt,Jt,Yt,zt,Wt],re=[Ot,Tt,Ct],oe=[kt,It,Ut,Dt,Vt],ie=function(){function t(){}return t}();ie.decorators=[{type:e.NgModule,args:[{declarations:ne,exports:ne}]}],ie.ctorParameters=function(){return[]};var se=function(){function t(){}return t}();se.decorators=[{type:e.NgModule,args:[{declarations:re,providers:[tt],exports:[ie,re]}]}],se.ctorParameters=function(){return[]};var ae=function(){function t(){}return t}();ae.decorators=[{type:e.NgModule,args:[{declarations:[oe],providers:[Zt,tt],exports:[ie,oe]}]}],ae.ctorParameters=function(){return[]},t.AbstractControlDirective=L,t.AbstractFormGroupDirective=pt,t.CheckboxControlValueAccessor=W,t.ControlContainer=V,t.NG_VALUE_ACCESSOR=z,t.COMPOSITION_BUFFER_MODE=K,t.DefaultValueAccessor=Q,t.NgControl=Y,t.NgControlStatus=dt,t.NgControlStatusGroup=mt,t.NgForm=Ct,t.NgModel=Ot,t.NgModelGroup=Tt,t.RadioControlValueAccessor=et,t.FormControlDirective=kt,t.FormControlName=Ut,t.FormGroupDirective=It,t.FormArrayName=Vt,t.FormGroupName=Dt,t.NgSelectOption=st,t.SelectControlValueAccessor=it,t.SelectMultipleControlValueAccessor=ut,t.CheckboxRequiredValidator=zt,t.EmailValidator=Wt,t.MaxLengthValidator=Jt,t.MinLengthValidator=Kt,t.PatternValidator=Yt,t.RequiredValidator=qt,t.FormBuilder=Zt,t.AbstractControl=yt,t.FormArray=_t,t.FormControl=vt,t.FormGroup=gt,t.NG_ASYNC_VALIDATORS=B,t.NG_VALIDATORS=U,t.Validators=q,t.VERSION=te,t.FormsModule=se,t.ReactiveFormsModule=ae,t.ɵba=ie,t.ɵz=oe,t.ɵx=ne,t.ɵy=re,t.ɵa=G,t.ɵb=$,t.ɵc=ht,t.ɵd=ft,t.ɵe=bt,t.ɵf=Pt,t.ɵg=xt,t.ɵbf=ee,t.ɵbb=J,t.ɵbc=X,t.ɵh=Z,t.ɵi=tt,t.ɵbd=nt,t.ɵbe=rt,t.ɵj=Rt,t.ɵk=Ft,t.ɵl=Nt,t.ɵn=Lt,t.ɵm=jt,t.ɵo=ot,t.ɵq=ct,t.ɵp=at,t.ɵs=Ht,t.ɵt=Gt,t.ɵv=Qt,t.ɵu=$t,t.ɵw=Xt,t.ɵr=Bt,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":13,"@angular/platform-browser":17,"rxjs/observable/forkJoin":39,"rxjs/observable/fromPromise":41,"rxjs/operator/map":51}],15:[function(t,e,n){!function(r,o){"object"==typeof n&&void 0!==e?o(n,t("@angular/core"),t("rxjs/Observable"),t("@angular/platform-browser")):o((r.ng=r.ng||{},r.ng.http=r.ng.http||{}),r.ng.core,r.Rx,r.ng.platformBrowser)}(this,function(t,e,n,r){"use strict";function o(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return g.Get;case"POST":return g.Post;case"PUT":return g.Put;case"DELETE":return g.Delete;case"OPTIONS":return g.Options;case"HEAD":return g.Head;case"PATCH":return g.Patch}throw new Error('Invalid request method. The method "'+t+'" is not supported.')}function i(t){return"responseURL"in t?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}function s(t){for(var e=new Uint16Array(t.length),n=0,r=t.length;n<r;n++)e[n]=t.charCodeAt(n);return e.buffer}function a(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],s=e.get(o)||[];s.push(i),e.set(o,s)}),e}function u(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,"/")}function c(){var t="object"==typeof window?window:{};return null===D&&(D=t[j]={}),D}function l(t){var e=new R;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}function p(t,e){return t.createConnection(e).response}function h(t,e,n,r){var o=t;return e?o.merge(new K({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})):o.merge(new K({method:n,url:r}))}function f(){return new W}function d(t,e){return new nt(t,e)}function m(t,e){return new rt(t,e)}var y=function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},v=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}();v.decorators=[{type:e.Injectable}],v.ctorParameters=function(){return[]};var g={};g.Get=0,g.Post=1,g.Put=2,g.Delete=3,g.Options=4,g.Head=5,g.Patch=6,g[g.Get]="Get",g[g.Post]="Post",g[g.Put]="Put",g[g.Delete]="Delete",g[g.Options]="Options",g[g.Head]="Head",g[g.Patch]="Patch";var _={};_.Unsent=0,_.Open=1,_.HeadersReceived=2,_.Loading=3,_.Done=4,_.Cancelled=5,_[_.Unsent]="Unsent",_[_.Open]="Open",_[_.HeadersReceived]="HeadersReceived",_[_.Loading]="Loading",_[_.Done]="Done",_[_.Cancelled]="Cancelled";var b={};b.Basic=0,b.Cors=1,b.Default=2,b.Error=3,b.Opaque=4,b[b.Basic]="Basic",b[b.Cors]="Cors",b[b.Default]="Default",b[b.Error]="Error",b[b.Opaque]="Opaque";var w={};w.NONE=0,w.JSON=1,w.FORM=2,w.FORM_DATA=3,w.TEXT=4,w.BLOB=5,w.ARRAY_BUFFER=6,w[w.NONE]="NONE",w[w.JSON]="JSON",w[w.FORM]="FORM",w[w.FORM_DATA]="FORM_DATA",w[w.TEXT]="TEXT",w[w.BLOB]="BLOB",w[w.ARRAY_BUFFER]="ARRAY_BUFFER";var C={};C.Text=0,C.Json=1,C.ArrayBuffer=2,C.Blob=3,C[C.Text]="Text",C[C.Json]="Json",C[C.ArrayBuffer]="ArrayBuffer",C[C.Blob]="Blob";var E=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: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}(),S=function(){function t(t){var e=void 0===t?{}:t,n=e.body,r=e.status,o=e.headers,i=e.statusText,s=e.type,a=e.url;this.body=null!=n?n:null,this.status=null!=r?r:null,this.headers=null!=o?o:null,this.statusText=null!=i?i:null,this.type=null!=s?s: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}(),x=function(t){function e(){return t.call(this,{status:200,statusText:"Ok",type:b.Default,headers:new E})||this}return y(e,t),e}(S);x.decorators=[{type:e.Injectable}],x.ctorParameters=function(){return[]};var T=function(){function t(){}return t.prototype.createConnection=function(t){},t}(),P=function(){function t(){}return t}(),A=function(){function t(){}return t.prototype.configureRequest=function(t){},t}(),O=function(t){return t>=200&&t<300},M=function(){function t(){}return t.prototype.encodeKey=function(t){return u(t)},t.prototype.encodeValue=function(t){return u(t)},t}(),R=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=new M),this.rawParams=t,this.queryEncoder=e,this.paramsMap=a(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<t.length;++o)r.push(t[o]);e.paramsMap.set(n,r)})},t.prototype.replaceAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0;for(var o=0;o<t.length;++o)r.push(t[o]);e.paramsMap.set(n,r)})},t.prototype.toString=function(){var t=this,e=[];return this.paramsMap.forEach(function(n,r){n.forEach(function(n){return e.push(t.queryEncoder.encodeKey(r)+"="+t.queryEncoder.encodeValue(n))})}),e.join("&")},t.prototype.delete=function(t){this.paramsMap.delete(t)},t}(),k=function(){function t(){}return t.prototype.json=function(){return"string"==typeof this._body?JSON.parse(this._body):this._body instanceof ArrayBuffer?JSON.parse(this.text()):this._body},t.prototype.text=function(t){if(void 0===t&&(t="legacy"),this._body instanceof R)return this._body.toString();if(this._body instanceof ArrayBuffer)switch(t){case"legacy":return String.fromCharCode.apply(null,new Uint16Array(this._body));case"iso-8859":return String.fromCharCode.apply(null,new Uint8Array(this._body));default:throw new Error("Invalid value for encodingHint: "+t)}return null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()},t.prototype.arrayBuffer=function(){return this._body instanceof ArrayBuffer?this._body:s(this.text())},t.prototype.blob=function(){if(this._body instanceof Blob)return this._body;if(this._body instanceof ArrayBuffer)return new Blob([this._body]);throw new Error("The request body isn't either a blob or an array buffer")},t}(),N=function(t){function e(e){var n=t.call(this)||this;return n._body=e.body,n.status=e.status,n.ok=n.status>=200&&n.status<=299,n.statusText=e.statusText,n.headers=e.headers,n.type=e.type,n.url=e.url,n}return y(e,t),e.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},e}(k),I=0,j="__ng_jsonp__",D=null,L=function(){function t(){}return t.prototype.build=function(t){var e=document.createElement("script");return e.src=t,e},t.prototype.nextRequestID=function(){return"__req"+I++},t.prototype.requestCallback=function(t){return j+"."+t+".finished"},t.prototype.exposeConnection=function(t,e){c()[t]=e},t.prototype.removeConnection=function(t){c()[t]=null},t.prototype.send=function(t){document.body.appendChild(t)},t.prototype.cleanup=function(t){t.parentNode&&t.parentNode.removeChild(t)},t}();L.decorators=[{type:e.Injectable}],L.ctorParameters=function(){return[]};var V="JSONP injected script did not invoke callback.",F="JSONP requests must use GET request method.",U=function(){function t(){}return t.prototype.finished=function(t){},t}(),B=function(t){function e(e,r,o){var i=t.call(this)||this;if(i._dom=r,i.baseResponseOptions=o,i._finished=!1,e.method!==g.Get)throw new TypeError(F);return i.request=e,i.response=new n.Observable(function(t){i.readyState=_.Loading;var n=i._id=r.nextRequestID();r.exposeConnection(n,i);var s=r.requestCallback(i._id),a=e.url;a.indexOf("=JSONP_CALLBACK&")>-1?a=a.replace("=JSONP_CALLBACK&","="+s+"&"):a.lastIndexOf("=JSONP_CALLBACK")===a.length-"=JSONP_CALLBACK".length&&(a=a.substring(0,a.length-"=JSONP_CALLBACK".length)+"="+s);var u=i._script=r.build(a),c=function(e){if(i.readyState!==_.Cancelled){if(i.readyState=_.Done,r.cleanup(u),!i._finished){var n=new S({body:V,type:b.Error,url:a});return o&&(n=o.merge(n)),void t.error(new N(n))}var s=new S({body:i._responseData,url:a});i.baseResponseOptions&&(s=i.baseResponseOptions.merge(s)),t.next(new N(s)),t.complete()}},l=function(e){if(i.readyState!==_.Cancelled){i.readyState=_.Done,r.cleanup(u);var n=new S({body:e.message,type:b.Error});o&&(n=o.merge(n)),t.error(new N(n))}};return u.addEventListener("load",c),u.addEventListener("error",l),r.send(u),function(){i.readyState=_.Cancelled,u.removeEventListener("load",c),u.removeEventListener("error",l),i._dom.cleanup(u)}}),i}return y(e,t),e.prototype.finished=function(t){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==_.Cancelled&&(this._responseData=t)},e}(U),H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return y(e,t),e}(T),q=function(t){function e(e,n){var r=t.call(this)||this;return r._browserJSONP=e,r._baseResponseOptions=n,r}return y(e,t),e.prototype.createConnection=function(t){return new B(t,this._browserJSONP,this._baseResponseOptions)},e}(H);q.decorators=[{type:e.Injectable}],q.ctorParameters=function(){return[{type:L},{type:S}]};var z=/^\)\]\}',?\n/,G=function(){function t(t,e,r){var o=this;this.request=t,this.response=new n.Observable(function(n){var s=e.build();s.open(g[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(s.withCredentials=t.withCredentials);var a=function(){var e=1223===s.status?204:s.status,o=null;204!==e&&"string"==typeof(o=void 0===s.response?s.responseText:s.response)&&(o=o.replace(z,"")),0===e&&(e=o?200:0);var a=E.fromResponseHeaderString(s.getAllResponseHeaders()),u=i(s)||t.url,c=s.statusText||"OK",l=new S({body:o,status:e,headers:a,statusText:c,url:u});null!=r&&(l=r.merge(l));var p=new N(l);if(p.ok=O(e),p.ok)return n.next(p),void n.complete();n.error(p)},u=function(t){var e=new S({body:t,type:b.Error,status:s.status,statusText:s.statusText});null!=r&&(e=r.merge(e)),n.error(new N(e))};if(o.setDetectedContentType(t,s),null==t.headers&&(t.headers=new E),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach(function(t,e){return s.setRequestHeader(e,t.join(","))}),null!=t.responseType&&null!=s.responseType)switch(t.responseType){case C.ArrayBuffer:s.responseType="arraybuffer";break;case C.Json:s.responseType="json";break;case C.Text:s.responseType="text";break;case C.Blob:s.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return s.addEventListener("load",a),s.addEventListener("error",u),s.send(o.request.getBody()),function(){s.removeEventListener("load",a),s.removeEventListener("error",u),s.abort()}})}return t.prototype.setDetectedContentType=function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case w.NONE:break;case w.JSON:e.setRequestHeader("content-type","application/json");break;case w.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case w.TEXT:e.setRequestHeader("content-type","text/plain");break;case w.BLOB:var n=t.blob();n.type&&e.setRequestHeader("content-type",n.type)}},t}(),W=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=r.ɵgetDOM().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)},t}(),$=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 G(t,this._browserXHR,this._baseResponseOptions)},t}();$.decorators=[{type:e.Injectable}],$.ctorParameters=function(){return[{type:v},{type:S},{type:A}]};var K=function(){function t(t){var e=void 0===t?{}:t,n=e.method,r=e.headers,i=e.body,s=e.url,a=e.search,u=e.params,c=e.withCredentials,l=e.responseType;this.method=null!=n?o(n):null,this.headers=null!=r?r:null,this.body=null!=i?i:null,this.url=null!=s?s:null,this.params=this._mergeSearchParams(u||a),this.withCredentials=null!=c?c:null,this.responseType=null!=l?l: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 E(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 R?t.clone():"string"==typeof t?new R(t):this._parseParams(t):this.params},t.prototype._parseParams=function(t){var e=this;void 0===t&&(t={});var n=new R;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}(),Q=function(t){function e(){return t.call(this,{method:g.Get,headers:new E})||this}return y(e,t),e}(K);Q.decorators=[{type:e.Injectable}],Q.ctorParameters=function(){return[]};var J=function(t){function e(e){var n=t.call(this)||this,r=e.url;n.url=e.url;var i=e.params||e.search;if(i){var s=void 0;if((s="object"!=typeof i||i instanceof R?i.toString():l(i).toString()).length>0){var a="?";-1!=n.url.indexOf("?")&&(a="&"==n.url[n.url.length-1]?"":"&"),n.url=r+a+s}}return n._body=e.body,n.method=o(e.method),n.headers=new E(e.headers),n.contentType=n.detectContentType(),n.withCredentials=e.withCredentials,n.responseType=e.responseType,n}return y(e,t),e.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return w.JSON;case"application/x-www-form-urlencoded":return w.FORM;case"multipart/form-data":return w.FORM_DATA;case"text/plain":case"text/html":return w.TEXT;case"application/octet-stream":return this._body instanceof et?w.ARRAY_BUFFER:w.BLOB;default:return this.detectContentTypeFromBody()}},e.prototype.detectContentTypeFromBody=function(){return null==this._body?w.NONE:this._body instanceof R?w.FORM:this._body instanceof Z?w.FORM_DATA:this._body instanceof tt?w.BLOB:this._body instanceof et?w.ARRAY_BUFFER:this._body&&"object"==typeof this._body?w.JSON:w.TEXT},e.prototype.getBody=function(){switch(this.contentType){case w.JSON:case w.FORM:return this.text();case w.FORM_DATA:return this._body;case w.TEXT:return this.text();case w.BLOB:return this.blob();case w.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},e}(k),X=function(){},Y="object"==typeof window?window:X,Z=Y.FormData||X,tt=Y.Blob||X,et=Y.ArrayBuffer||X,nt=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=p(this._backend,new J(h(this._defaultOptions,e,g.Get,t)));else{if(!(t instanceof J))throw new Error("First argument must be a url string or Request instance.");n=p(this._backend,t)}return n},t.prototype.get=function(t,e){return this.request(new J(h(this._defaultOptions,e,g.Get,t)))},t.prototype.post=function(t,e,n){return this.request(new J(h(this._defaultOptions.merge(new K({body:e})),n,g.Post,t)))},t.prototype.put=function(t,e,n){return this.request(new J(h(this._defaultOptions.merge(new K({body:e})),n,g.Put,t)))},t.prototype.delete=function(t,e){return this.request(new J(h(this._defaultOptions,e,g.Delete,t)))},t.prototype.patch=function(t,e,n){return this.request(new J(h(this._defaultOptions.merge(new K({body:e})),n,g.Patch,t)))},t.prototype.head=function(t,e){return this.request(new J(h(this._defaultOptions,e,g.Head,t)))},t.prototype.options=function(t,e){return this.request(new J(h(this._defaultOptions,e,g.Options,t)))},t}();nt.decorators=[{type:e.Injectable}],nt.ctorParameters=function(){return[{type:T},{type:K}]};var rt=function(t){function e(e,n){return t.call(this,e,n)||this}return y(e,t),e.prototype.request=function(t,e){if("string"==typeof t&&(t=new J(h(this._defaultOptions,e,g.Get,t))),!(t instanceof J))throw new Error("First argument must be a url string or Request instance.");if(t.method!==g.Get)throw new Error("JSONP requests must use GET request method.");return p(this._backend,t)},e}(nt);rt.decorators=[{type:e.Injectable}],rt.ctorParameters=function(){return[{type:T},{type:K}]};var ot=function(){function t(){}return t}();ot.decorators=[{type:e.NgModule,args:[{providers:[{provide:nt,useFactory:d,deps:[$,K]},v,{provide:K,useClass:Q},{provide:S,useClass:x},$,{provide:A,useFactory:f}]}]}],ot.ctorParameters=function(){return[]};var it=function(){function t(){}return t}();it.decorators=[{type:e.NgModule,args:[{providers:[{provide:rt,useFactory:m,deps:[H,K]},L,{provide:K,useClass:Q},{provide:S,useClass:x},{provide:H,useClass:q}]}]}],it.ctorParameters=function(){return[]};var st=new e.Version("4.1.3");t.BrowserXhr=v,t.JSONPBackend=H,t.JSONPConnection=U,t.CookieXSRFStrategy=W,t.XHRBackend=$,t.XHRConnection=G,t.BaseRequestOptions=Q,t.RequestOptions=K,t.BaseResponseOptions=x,t.ResponseOptions=S,t.ReadyState=_,t.RequestMethod=g,t.ResponseContentType=C,t.ResponseType=b,t.Headers=E,t.Http=nt,t.Jsonp=rt,t.HttpModule=ot,t.JsonpModule=it,t.Connection=P,t.ConnectionBackend=T,t.XSRFStrategy=A,t.Request=J,t.Response=N,t.QueryEncoder=M,t.URLSearchParams=R,t.VERSION=st,t.ɵg=L,t.ɵa=q,t.ɵf=k,t.ɵb=f,t.ɵc=d,t.ɵd=m,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":13,"@angular/platform-browser":17,"rxjs/Observable":22}],16:[function(t,e,n){!function(r,o){"object"==typeof n&&void 0!==e?o(n,t("@angular/compiler"),t("@angular/core"),t("@angular/common"),t("@angular/platform-browser")):o((r.ng=r.ng||{},r.ng.platformBrowserDynamic=r.ng.platformBrowserDynamic||{}),r.ng.compiler,r.ng.core,r.ng.common,r.ng.platformBrowser)}(this,function(t,e,n,r,o){"use strict";var i=function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.get=function(t){var e,n,r=new Promise(function(t,r){e=t,n=r}),o=new XMLHttpRequest;return o.open("GET",t,!0),o.responseType="text",o.onload=function(){var r=o.response||o.responseText,i=1223===o.status?204:o.status;0===i&&(i=r?200:0),200<=i&&i<=300?e(r):n("Failed to load "+t)},o.onerror=function(){n("Failed to load "+t)},o.send(),r},e}(e.ResourceLoader);s.decorators=[{type:n.Injectable}],s.ctorParameters=function(){return[]};var a=[o.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS,{provide:n.COMPILER_OPTIONS,useValue:{providers:[{provide:e.ResourceLoader,useClass:s}]},multi:!0},{provide:n.PLATFORM_ID,useValue:r.ɵPLATFORM_BROWSER_ID}],u=function(t){function e(){var e=t.call(this)||this;if(e._cache=n.ɵglobal.$templateCache,null==e._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.");return e}return i(e,t),e.prototype.get=function(t){return this._cache.hasOwnProperty(t)?Promise.resolve(this._cache[t]):Promise.reject("CachedResourceLoader: Did not find cached template for "+t)},e}(e.ResourceLoader),c=new n.Version("4.1.3"),l=[{provide:e.ResourceLoader,useClass:u}],p=n.createPlatformFactory(e.platformCoreDynamic,"browserDynamic",a);t.RESOURCE_CACHE_PROVIDER=l,t.platformBrowserDynamic=p,t.VERSION=c,t.ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS=a,t.ɵResourceLoaderImpl=s,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":11,"@angular/compiler":12,"@angular/core":13,"@angular/platform-browser":17}],17:[function(t,e,n){!function(r,o){"object"==typeof n&&void 0!==e?o(n,t("@angular/common"),t("@angular/core")):o((r.ng=r.ng||{},r.ng.platformBrowser=r.ng.platformBrowser||{}),r.ng.common,r.ng.core)}(this,function(t,e,n){"use strict";function r(){return L}function o(t){L||(L=t)}function i(){return G||(G=document.querySelector("base"))?G.getAttribute("href"):null}function s(t){return q||(q=document.createElement("a")),q.setAttribute("href",t),"/"===q.pathname.charAt(0)?q.pathname:"/"+q.pathname}function a(t,e){e=encodeURIComponent(e);for(var n=0,r=t.split(";");n<r.length;n++){var o=r[n],i=o.indexOf("="),s=-1==i?[o,""]:[o.slice(0,i),o.slice(i+1)],a=s[0],u=s[1];if(a.trim()===e)return decodeURIComponent(u)}return null}function u(t,e,n){for(var r=e.split("."),o=t;r.length>1;){var i=r.shift();o=o.hasOwnProperty(i)&&null!=o[i]?o[i]:o[i]={}}void 0!==o&&null!==o||(o={}),o[r.shift()]=n}function c(){return!!window.history.pushState}function l(t,e,o){return function(){o.get(n.ApplicationInitStatus).donePromise.then(function(){var n=r();Array.prototype.slice.apply(n.querySelectorAll(e,"style[ng-transition]")).filter(function(e){return n.getAttribute(e,"ng-transition")===t}).forEach(function(t){return n.remove(t)})})}}function p(t){return n.getDebugNode(t)}function h(t,e){var n=(t||[]).concat(e||[]);return r().setGlobalVar(et,p),r().setGlobalVar(nt,Z({},tt,f(n||[]))),function(){return p}}function f(t){return t.reduce(function(t,e){return t[e.name]=e.token,t},{})}function d(t){return ft.replace(pt,t)}function m(t){return ht.replace(pt,t)}function y(t,e,n){for(var r=0;r<e.length;r++){var o=e[r];Array.isArray(o)?y(t,o,n):(o=o.replace(pt,t),n.push(o))}return n}function v(t){return function(e){!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}function g(t,e){if(t.charCodeAt(0)===yt)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}function _(t){return(t=String(t)).match(Pt)||t.match(At)?t:(n.isDevMode()&&r().log("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function b(t){return(t=String(t)).split(",").map(function(t){return _(t.trim())}).join(", ")}function w(){if(Ot)return Ot;var t=(Mt=r()).createElement("template");if("content"in t)return t;var e=Mt.createHtmlDocument();if(null==(Ot=Mt.querySelector(e,"body"))){var n=Mt.createElement("html",e);Ot=Mt.createElement("body",e),Mt.appendChild(n,Ot),Mt.appendChild(e,n)}return Ot}function C(t){for(var e={},n=0,r=t.split(",");n<r.length;n++)e[r[n]]=!0;return e}function E(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n={},r=0,o=t;r<o.length;r++){var i=o[r];for(var s in i)i.hasOwnProperty(s)&&(n[s]=!0)}return n}function S(t,e){if(e&&Mt.contains(t,e))throw new Error("Failed to sanitize html because the element is clobbered: "+Mt.getOuterHTML(t));return e}function x(t){return t.replace(/&/g,"&amp;").replace(qt,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(zt,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function T(t){Mt.attributeMap(t).forEach(function(e,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||Mt.removeAttribute(t,n)});for(var e=0,n=Mt.childNodesAsList(t);e<n.length;e++){var r=n[e];Mt.isElementNode(r)&&T(r)}}function P(t,e){try{var r=w(),o=e?String(e):"",i=5,s=o;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,o=s,Mt.setInnerHTML(r,o),t.documentMode&&T(r),s=Mt.getInnerHTML(r)}while(o!==s);for(var a=new Ht,u=a.sanitizeChildren(Mt.getTemplateContent(r)||r),c=Mt.getTemplateContent(r)||r,l=0,p=Mt.childNodesAsList(c);l<p.length;l++){var h=p[l];Mt.removeChild(c,h)}return n.isDevMode()&&a.sanitizedSomething&&Mt.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),u}catch(t){throw Ot=null,t}}function A(t){for(var e=!0,n=!0,r=0;r<t.length;r++){var o=t.charAt(r);"'"===o&&n?e=!e:'"'===o&&e&&(n=!n)}return e&&n}function O(t){if(!(t=String(t).trim()))return"";var e=t.match(Wt);return e&&_(e[1])===e[1]||t.match(Gt)&&A(t)?t:(n.isDevMode()&&r().log("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}function M(){z.makeCurrent(),X.init()}function R(){return new n.ErrorHandler}function k(){return document}function N(t){return r().setGlobalVar(ue,new ae(t)),t}function I(){r().setGlobalVar(ue,null)}var j,D=function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},L=null,V=function(){function t(){this.resourceLoaderType=null}return t.prototype.hasProperty=function(t,e){},t.prototype.setProperty=function(t,e,n){},t.prototype.getProperty=function(t,e){},t.prototype.invoke=function(t,e,n){},t.prototype.logError=function(t){},t.prototype.log=function(t){},t.prototype.logGroup=function(t){},t.prototype.logGroupEnd=function(){},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t.prototype.contains=function(t,e){},t.prototype.parse=function(t){},t.prototype.querySelector=function(t,e){},t.prototype.querySelectorAll=function(t,e){},t.prototype.on=function(t,e,n){},t.prototype.onAndCancel=function(t,e,n){},t.prototype.dispatchEvent=function(t,e){},t.prototype.createMouseEvent=function(t){},t.prototype.createEvent=function(t){},t.prototype.preventDefault=function(t){},t.prototype.isPrevented=function(t){},t.prototype.getInnerHTML=function(t){},t.prototype.getTemplateContent=function(t){},t.prototype.getOuterHTML=function(t){},t.prototype.nodeName=function(t){},t.prototype.nodeValue=function(t){},t.prototype.type=function(t){},t.prototype.content=function(t){},t.prototype.firstChild=function(t){},t.prototype.nextSibling=function(t){},t.prototype.parentElement=function(t){},t.prototype.childNodes=function(t){},t.prototype.childNodesAsList=function(t){},t.prototype.clearNodes=function(t){},t.prototype.appendChild=function(t,e){},t.prototype.removeChild=function(t,e){},t.prototype.replaceChild=function(t,e,n){},t.prototype.remove=function(t){},t.prototype.insertBefore=function(t,e,n){},t.prototype.insertAllBefore=function(t,e,n){},t.prototype.insertAfter=function(t,e,n){},t.prototype.setInnerHTML=function(t,e){},t.prototype.getText=function(t){},t.prototype.setText=function(t,e){},t.prototype.getValue=function(t){},t.prototype.setValue=function(t,e){},t.prototype.getChecked=function(t){},t.prototype.setChecked=function(t,e){},t.prototype.createComment=function(t){},t.prototype.createTemplate=function(t){},t.prototype.createElement=function(t,e){},t.prototype.createElementNS=function(t,e,n){},t.prototype.createTextNode=function(t,e){},t.prototype.createScriptTag=function(t,e,n){},t.prototype.createStyleElement=function(t,e){},t.prototype.createShadowRoot=function(t){},t.prototype.getShadowRoot=function(t){},t.prototype.getHost=function(t){},t.prototype.getDistributedNodes=function(t){},t.prototype.clone=function(t){},t.prototype.getElementsByClassName=function(t,e){},t.prototype.getElementsByTagName=function(t,e){},t.prototype.classList=function(t){},t.prototype.addClass=function(t,e){},t.prototype.removeClass=function(t,e){},t.prototype.hasClass=function(t,e){},t.prototype.setStyle=function(t,e,n){},t.prototype.removeStyle=function(t,e){},t.prototype.getStyle=function(t,e){},t.prototype.hasStyle=function(t,e,n){},t.prototype.tagName=function(t){},t.prototype.attributeMap=function(t){},t.prototype.hasAttribute=function(t,e){},t.prototype.hasAttributeNS=function(t,e,n){},t.prototype.getAttribute=function(t,e){},t.prototype.getAttributeNS=function(t,e,n){},t.prototype.setAttribute=function(t,e,n){},t.prototype.setAttributeNS=function(t,e,n,r){},t.prototype.removeAttribute=function(t,e){},t.prototype.removeAttributeNS=function(t,e,n){},t.prototype.templateAwareRoot=function(t){},t.prototype.createHtmlDocument=function(){},t.prototype.getBoundingClientRect=function(t){},t.prototype.getTitle=function(t){},t.prototype.setTitle=function(t,e){},t.prototype.elementMatches=function(t,e){},t.prototype.isTemplateElement=function(t){},t.prototype.isTextNode=function(t){},t.prototype.isCommentNode=function(t){},t.prototype.isElementNode=function(t){},t.prototype.hasShadowRoot=function(t){},t.prototype.isShadowRoot=function(t){},t.prototype.importIntoDoc=function(t){},t.prototype.adoptNode=function(t){},t.prototype.getHref=function(t){},t.prototype.getEventKey=function(t){},t.prototype.resolveAndSetHref=function(t,e,n){},t.prototype.supportsDOMEvents=function(){},t.prototype.supportsNativeShadowDOM=function(){},t.prototype.getGlobalEventTarget=function(t,e){},t.prototype.getHistory=function(){},t.prototype.getLocation=function(){},t.prototype.getBaseHref=function(t){},t.prototype.resetBaseElement=function(){},t.prototype.getUserAgent=function(){},t.prototype.setData=function(t,e,n){},t.prototype.getComputedStyle=function(t){},t.prototype.getData=function(t,e){},t.prototype.setGlobalVar=function(t,e){},t.prototype.supportsWebAnimation=function(){},t.prototype.performanceNow=function(){},t.prototype.getAnimationPrefix=function(){},t.prototype.getTransitionEnd=function(){},t.prototype.supportsAnimation=function(){},t.prototype.supportsCookies=function(){},t.prototype.getCookie=function(t){},t.prototype.setCookie=function(t,e){},t}(),F=function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var n=e.createElement("div",document);if(null!=e.getStyle(n,"animationName"))e._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],o=0;o<r.length;o++)if(null!=e.getStyle(n,r[o]+"AnimationName")){e._animationPrefix="-"+r[o].toLowerCase()+"-";break}var i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(i).forEach(function(t){null!=e.getStyle(n,t)&&(e._transitionEnd=i[t])})}catch(t){e._animationPrefix=null,e._transitionEnd=null}return e}return D(e,t),e.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},e.prototype.resolveAndSetHref=function(t,e,n){t.href=null==n?e:e+"/../"+n},e.prototype.supportsDOMEvents=function(){return!0},e.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},e.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},e.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},e.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},e}(V),U={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},B={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},H={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"};n.ɵglobal.Node&&(j=n.ɵglobal.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var q,z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return D(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){o(new e)},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){t[e].apply(t,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 U},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return j.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=document.createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=document.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&&t instanceof HTMLTemplateElement?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;r<e.length;r++)n[r]=e[r];return n},e.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},e.prototype.appendChild=function(t,e){t.appendChild(e)},e.prototype.removeChild=function(t,e){t.removeChild(e)},e.prototype.replaceChild=function(t,e,n){t.replaceChild(e,n)},e.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},e.prototype.insertBefore=function(t,e,n){t.insertBefore(n,e)},e.prototype.insertAllBefore=function(t,e,n){n.forEach(function(n){return t.insertBefore(n,e)})},e.prototype.insertAfter=function(t,e,n){t.insertBefore(n,e.nextSibling)},e.prototype.setInnerHTML=function(t,e){t.innerHTML=e},e.prototype.getText=function(t){return t.textContent},e.prototype.setText=function(t,e){t.textContent=e},e.prototype.getValue=function(t){return t.value},e.prototype.setValue=function(t,e){t.value=e},e.prototype.getChecked=function(t){return t.checked},e.prototype.setChecked=function(t,e){t.checked=e},e.prototype.createComment=function(t){return document.createComment(t)},e.prototype.createTemplate=function(t){var e=document.createElement("template");return e.innerHTML=t,e},e.prototype.createElement=function(t,e){return void 0===e&&(e=document),e.createElement(t)},e.prototype.createElementNS=function(t,e,n){return void 0===n&&(n=document),n.createElementNS(t,e)},e.prototype.createTextNode=function(t,e){return void 0===e&&(e=document),e.createTextNode(t)},e.prototype.createScriptTag=function(t,e,n){void 0===n&&(n=document);var r=n.createElement("SCRIPT");return r.setAttribute(t,e),r},e.prototype.createStyleElement=function(t,e){void 0===e&&(e=document);var n=e.createElement("style");return this.appendChild(n,this.createTextNode(t)),n},e.prototype.createShadowRoot=function(t){return t.createShadowRoot()},e.prototype.getShadowRoot=function(t){return t.shadowRoot},e.prototype.getHost=function(t){return t.host},e.prototype.clone=function(t){return t.cloneNode(!0)},e.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},e.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},e.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},e.prototype.addClass=function(t,e){t.classList.add(e)},e.prototype.removeClass=function(t,e){t.classList.remove(e)},e.prototype.hasClass=function(t,e){return t.classList.contains(e)},e.prototype.setStyle=function(t,e,n){t.style[e]=n},e.prototype.removeStyle=function(t,e){t.style[e]=""},e.prototype.getStyle=function(t,e){return t.style[e]},e.prototype.hasStyle=function(t,e,n){var r=this.getStyle(t,e)||"";return n?r==n:r.length>0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r<n.length;r++){var o=n[r];e.set(o.name,o.value)}return e},e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},e.prototype.hasAttributeNS=function(t,e,n){return t.hasAttributeNS(e,n)},e.prototype.getAttribute=function(t,e){return t.getAttribute(e)},e.prototype.getAttributeNS=function(t,e,n){return t.getAttributeNS(e,n)},e.prototype.setAttribute=function(t,e,n){t.setAttribute(e,n)},e.prototype.setAttributeNS=function(t,e,n,r){t.setAttributeNS(e,n,r)},e.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},e.prototype.removeAttributeNS=function(t,e,n){t.removeAttributeNS(e,n)},e.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},e.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},e.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},e.prototype.getTitle=function(t){return document.title},e.prototype.setTitle=function(t,e){document.title=e||""},e.prototype.elementMatches=function(t,e){return t instanceof HTMLElement&&(t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e))},e.prototype.isTemplateElement=function(t){return t instanceof HTMLElement&&"TEMPLATE"==t.nodeName},e.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},e.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},e.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},e.prototype.hasShadowRoot=function(t){return null!=t.shadowRoot&&t instanceof HTMLElement},e.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},e.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},e.prototype.adoptNode=function(t){return document.adoptNode(t)},e.prototype.getHref=function(t){return t.href},e.prototype.getEventKey=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&H.hasOwnProperty(e)&&(e=H[e]))}return B[e]||e},e.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?document:"body"===e?document.body:null},e.prototype.getHistory=function(){return window.history},e.prototype.getLocation=function(){return window.location},e.prototype.getBaseHref=function(t){var e=i();return null==e?null:s(e)},e.prototype.resetBaseElement=function(){G=null},e.prototype.getUserAgent=function(){return window.navigator.userAgent},e.prototype.setData=function(t,e,n){this.setAttribute(t,"data-"+e,n)},e.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},e.prototype.getComputedStyle=function(t){return getComputedStyle(t)},e.prototype.setGlobalVar=function(t,e){u(n.ɵglobal,t,e)},e.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},e.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},e.prototype.supportsCookies=function(){return!0},e.prototype.getCookie=function(t){return a(document.cookie,t)},e.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},e}(F),G=null,W=new n.InjectionToken("DocumentToken"),$=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}return D(e,t),e.prototype._init=function(){this._location=r().getLocation(),this._history=r().getHistory()},Object.defineProperty(e.prototype,"location",{get:function(){return this._location},enumerable:!0,configurable:!0}),e.prototype.getBaseHrefFromDOM=function(){return r().getBaseHref(this._doc)},e.prototype.onPopState=function(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"pathname",{get:function(){return this._location.pathname},set:function(t){this._location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this._location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this._location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){c()?this._history.pushState(t,e,n):this._location.hash=n},e.prototype.replaceState=function(t,e,n){c()?this._history.replaceState(t,e,n):this._location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e}(e.PlatformLocation);$.decorators=[{type:n.Injectable}],$.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]}]};var K=function(){function t(t){this._doc=t,this._dom=r()}return t.prototype.addTag=function(t,e){return void 0===e&&(e=!1),t?this._getOrCreateElement(t,e):null},t.prototype.addTags=function(t,e){var n=this;return void 0===e&&(e=!1),t?t.reduce(function(t,r){return r&&t.push(n._getOrCreateElement(r,e)),t},[]):[]},t.prototype.getTag=function(t){return t?this._dom.querySelector(this._doc,"meta["+t+"]"):null},t.prototype.getTags=function(t){if(!t)return[];var e=this._dom.querySelectorAll(this._doc,"meta["+t+"]");return e?[].slice.call(e):[]},t.prototype.updateTag=function(t,e){if(!t)return null;e=e||this._parseSelector(t);var n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)},t.prototype.removeTag=function(t){this.removeTagElement(this.getTag(t))},t.prototype.removeTagElement=function(t){t&&this._dom.remove(t)},t.prototype._getOrCreateElement=function(t,e){if(void 0===e&&(e=!1),!e){var n=this._parseSelector(t),r=this.getTag(n);if(r&&this._containsAttributes(t,r))return r}var o=this._dom.createElement("meta");this._setMetaElementAttributes(t,o);var i=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(i,o),o},t.prototype._setMetaElementAttributes=function(t,e){var n=this;return Object.keys(t).forEach(function(r){return n._dom.setAttribute(e,r,t[r])}),e},t.prototype._parseSelector=function(t){var e=t.name?"name":"property";return e+'="'+t[e]+'"'},t.prototype._containsAttributes=function(t,e){var n=this;return Object.keys(t).every(function(r){return n._dom.getAttribute(e,r)===t[r]})},t}();K.decorators=[{type:n.Injectable}],K.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]}]};var Q=new n.InjectionToken("TRANSITION_ID"),J=[{provide:n.APP_INITIALIZER,useFactory:l,deps:[Q,W,n.Injector],multi:!0}],X=function(){function t(){}return t.init=function(){n.setTestabilityGetter(new t)},t.prototype.addToWindow=function(t){n.ɵglobal.getAngularTestability=function(e,n){void 0===n&&(n=!0);var r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},n.ɵglobal.getAllAngularTestabilities=function(){return t.getAllTestabilities()},n.ɵglobal.getAllAngularRootElements=function(){return t.getAllRootElements()};var e=function(t){var e=n.ɵglobal.getAllAngularTestabilities(),r=e.length,o=!1,i=function(e){o=o||e,0==--r&&t(o)};e.forEach(function(t){t.whenStable(i)})};n.ɵglobal.frameworkStabilizers||(n.ɵglobal.frameworkStabilizers=[]),n.ɵglobal.frameworkStabilizers.push(e)},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var o=t.getTestability(e);return null!=o?o:n?r().isShadowRoot(e)?this.findTestabilityInTree(t,r().getHost(e),!0):this.findTestabilityInTree(t,r().parentElement(e),!0):null},t}(),Y=function(){function t(t){this._doc=t}return t.prototype.getTitle=function(){return r().getTitle(this._doc)},t.prototype.setTitle=function(t){r().setTitle(this._doc,t)},t}();Y.decorators=[{type:n.Injectable}],Y.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]}]};var Z=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},tt={ApplicationRef:n.ApplicationRef,NgZone:n.NgZone},et="ng.probe",nt="ng.coreTokens",rt=function(){function t(t,e){this.name=t,this.token=e}return t}(),ot=[{provide:n.APP_INITIALIZER,useFactory:h,deps:[[rt,new n.Optional],[n.NgProbeToken,new n.Optional]],multi:!0}],it=new n.InjectionToken("EventManagerPlugins"),st=function(){function t(t,e){var n=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=n}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r<n.length;r++){var o=n[r];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error("No event manager plugin found for event "+t)},t}();st.decorators=[{type:n.Injectable}],st.ctorParameters=function(){return[{type:Array,decorators:[{type:n.Inject,args:[it]}]},{type:n.NgZone}]};var at=function(){function t(t){this._doc=t}return t.prototype.supports=function(t){},t.prototype.addEventListener=function(t,e,n){},t.prototype.addGlobalEventListener=function(t,e,n){var o=r().getGlobalEventTarget(this._doc,t);if(!o)throw new Error("Unsupported event target "+o+" for event "+e);return this.addEventListener(o,e,n)},t}(),ut=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,n=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))}),this.onStylesAdded(n)},t.prototype.onStylesAdded=function(t){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t}();ut.decorators=[{type:n.Injectable}],ut.ctorParameters=function(){return[]};var ct=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(e.head),n}return D(e,t),e.prototype._addStylesToHost=function(t,e){var n=this;t.forEach(function(t){var r=n._doc.createElement("style");r.textContent=t,n._styleNodes.add(e.appendChild(r))})},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes.delete(t)},e.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach(function(n){return e._addStylesToHost(t,n)})},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return r().remove(t)})},e}(ut);ct.decorators=[{type:n.Injectable}],ct.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]}]};var lt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},pt=/%COMP%/g,ht="_nghost-%COMP%",ft="_ngcontent-%COMP%",dt=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new mt(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case n.ViewEncapsulation.Emulated:var r=this.rendererByCompId.get(e.id);return r||(r=new vt(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,r)),r.applyToHost(t),r;case n.ViewEncapsulation.Native:return new gt(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var o=y(e.id,e.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t}();dt.decorators=[{type:n.Injectable}],dt.ctorParameters=function(){return[{type:st},{type:ct}]};var mt=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){return e?document.createElementNS(lt[e],t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,n){t&&t.insertBefore(e,n)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t){var e="string"==typeof t?document.querySelector(t):t;if(!e)throw new Error('The selector "'+t+'" did not match any elements');return e.textContent="",e},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,n,r){if(r){e=r+":"+e;var o=lt[r];o?t.setAttributeNS(o,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var r=lt[n];r?t.removeAttributeNS(r,e):t.removeAttribute(n+":"+e)}else t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,r,o){o&n.RendererStyleFlags2.DashCase?t.style.setProperty(e,r,o&n.RendererStyleFlags2.Important?"important":""):t.style[e]=r},t.prototype.removeStyle=function(t,e,r){r&n.RendererStyleFlags2.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,n){g(e,"property"),t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return g(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,v(n)):this.eventManager.addEventListener(t,e,v(n))},t}(),yt="@".charCodeAt(0),vt=function(t){function e(e,n,r){var o=t.call(this,e)||this;o.component=r;var i=y(r.id,r.styles,[]);return n.addStyles(i),o.contentAttr=d(r.id),o.hostAttr=m(r.id),o}return D(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,n){var r=t.prototype.createElement.call(this,e,n);return t.prototype.setAttribute.call(this,r,this.contentAttr,""),r},e}(mt),gt=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;i.sharedStylesHost=n,i.hostEl=r,i.component=o,i.shadowRoot=r.createShadowRoot(),i.sharedStylesHost.addHost(i.shadowRoot);for(var s=y(o.id,o.styles,[]),a=0;a<s.length;a++){var u=document.createElement("style");u.textContent=s[a],i.shadowRoot.appendChild(u)}return i}return D(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,n){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.insertBefore=function(e,n,r){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),n,r)},e.prototype.removeChild=function(e,n){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(mt),_t=function(t){function e(e){return t.call(this,e)||this}return D(e,t),e.prototype.supports=function(t){return!0},e.prototype.addEventListener=function(t,e,n){return t.addEventListener(e,n,!1),function(){return t.removeEventListener(e,n,!1)}},e}(at);_t.decorators=[{type:n.Injectable}],_t.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]}]};var bt={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},wt=new n.InjectionToken("HammerGestureConfig"),Ct=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(var n in this.overrides)e.get(n).set(this.overrides[n]);return e},t}();Ct.decorators=[{type:n.Injectable}],Ct.ctorParameters=function(){return[]};var Et=function(t){function e(e,n){var r=t.call(this,e)||this;return r._config=n,r}return D(e,t),e.prototype.supports=function(t){if(!bt.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t))return!1;if(!window.Hammer)throw new Error("Hammer.js is not loaded, can not bind "+t+" event");return!0},e.prototype.addEventListener=function(t,e,n){var r=this,o=this.manager.getZone();return e=e.toLowerCase(),o.runOutsideAngular(function(){var i=r._config.buildHammer(t),s=function(t){o.runGuarded(function(){n(t)})};return i.on(e,s),function(){return i.off(e,s)}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e}(at);Et.decorators=[{type:n.Injectable}],Et.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]},{type:Ct,decorators:[{type:n.Inject,args:[wt]}]}]};var St=["alt","control","meta","shift"],xt={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Tt=function(t){function e(e){return t.call(this,e)||this}return D(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,o){var i=e.parseEventName(n),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return r().onAndCancel(t,i.domEventName,s)})},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(St.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 s={};return s.domEventName=r,s.fullKey=i,s},e.getEventFullKey=function(t){var e="",n=r().getEventKey(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),St.forEach(function(r){r!=n&&(0,xt[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}(at);Tt.decorators=[{type:n.Injectable}],Tt.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]}]};var Pt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,At=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,Ot=null,Mt=null,Rt=C("area,br,col,hr,img,wbr"),kt=C("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Nt=C("rp,rt"),It=E(Nt,kt),jt=E(kt,C("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Dt=E(Nt,C("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Lt=E(Rt,jt,Dt,It),Vt=C("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ft=C("srcset"),Ut=C("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Bt=E(Vt,Ft,Ut),Ht=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(Mt.isElementNode(e)?this.startElement(e):Mt.isTextNode(e)?this.chars(Mt.nodeValue(e)):this.sanitizedSomething=!0,Mt.firstChild(e))e=Mt.firstChild(e);else for(;e;){Mt.isElementNode(e)&&this.endElement(e);var n=S(e,Mt.nextSibling(e));if(n){e=n;break}e=S(e,Mt.parentElement(e))}return this.buf.join("")},t.prototype.startElement=function(t){var e=this,n=Mt.nodeName(t).toLowerCase();Lt.hasOwnProperty(n)?(this.buf.push("<"),this.buf.push(n),Mt.attributeMap(t).forEach(function(t,n){var r=n.toLowerCase();Bt.hasOwnProperty(r)?(Vt[r]&&(t=_(t)),Ft[r]&&(t=b(t)),e.buf.push(" "),e.buf.push(n),e.buf.push('="'),e.buf.push(x(t)),e.buf.push('"')):e.sanitizedSomething=!0}),this.buf.push(">")):this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=Mt.nodeName(t).toLowerCase();Lt.hasOwnProperty(e)&&!Rt.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(x(t))},t}(),qt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,zt=/([^\#-~ |!])/g,Gt=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"),Wt=/^url\(([^)]+)\)$/,$t=function(){function t(){}return t.prototype.sanitize=function(t,e){},t.prototype.bypassSecurityTrustHtml=function(t){},t.prototype.bypassSecurityTrustStyle=function(t){},t.prototype.bypassSecurityTrustScript=function(t){},t.prototype.bypassSecurityTrustUrl=function(t){},t.prototype.bypassSecurityTrustResourceUrl=function(t){},t}(),Kt=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return D(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case n.SecurityContext.NONE:return e;case n.SecurityContext.HTML:return e instanceof Jt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),P(this._doc,String(e)));case n.SecurityContext.STYLE:return e instanceof Xt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),O(e));case n.SecurityContext.SCRIPT:if(e instanceof Yt)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case n.SecurityContext.URL:return e instanceof te||e instanceof Zt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),_(String(e)));case n.SecurityContext.RESOURCE_URL:if(e instanceof te)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof Qt)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new Jt(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new Xt(t)},e.prototype.bypassSecurityTrustScript=function(t){return new Yt(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new Zt(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new te(t)},e}($t);Kt.decorators=[{type:n.Injectable}],Kt.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]}]};var Qt=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.getTypeName=function(){},t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),Jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return D(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(Qt),Xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return D(e,t),e.prototype.getTypeName=function(){return"Style"},e}(Qt),Yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return D(e,t),e.prototype.getTypeName=function(){return"Script"},e}(Qt),Zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return D(e,t),e.prototype.getTypeName=function(){return"URL"},e}(Qt),te=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return D(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(Qt),ee=[{provide:n.PLATFORM_ID,useValue:e.ɵPLATFORM_BROWSER_ID},{provide:n.PLATFORM_INITIALIZER,useValue:M,multi:!0},{provide:e.PlatformLocation,useClass:$},{provide:W,useFactory:k,deps:[]}],ne=[{provide:n.Sanitizer,useExisting:$t},{provide:$t,useClass:Kt}],re=n.createPlatformFactory(n.platformCore,"browser",ee),oe=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:n.APP_ID,useValue:e.appId},{provide:Q,useExisting:n.APP_ID},J]}},t}();oe.decorators=[{type:n.NgModule,args:[{providers:[ne,{provide:n.ErrorHandler,useFactory:R,deps:[]},{provide:it,useClass:_t,multi:!0},{provide:it,useClass:Tt,multi:!0},{provide:it,useClass:Et,multi:!0},{provide:wt,useClass:Ct},dt,{provide:n.RendererFactory2,useExisting:dt},{provide:ut,useExisting:ct},ct,n.Testability,st,ot,K,Y],exports:[e.CommonModule,n.ApplicationModule]}]}],oe.ctorParameters=function(){return[{type:oe,decorators:[{type:n.Optional},{type:n.SkipSelf}]}]};var ie="undefined"!=typeof window&&window||{},se=function(){function t(t,e){this.msPerTick=t,this.numTicks=e}return t}(),ae=function(){function t(t){this.appRef=t.injector.get(n.ApplicationRef)}return t.prototype.timeChangeDetection=function(t){var e=t&&t.record,n=null!=ie.console.profile;e&&n&&ie.console.profile("Change Detection");for(var o=r().performanceNow(),i=0;i<5||r().performanceNow()-o<500;)this.appRef.tick(),i++;var s=r().performanceNow();e&&n&&ie.console.profileEnd("Change Detection");var a=(s-o)/i;return ie.console.log("ran "+i+" change detection cycles"),ie.console.log(a.toFixed(2)+" ms per check"),new se(a,i)},t}(),ue="ng.profiler",ce=function(){function t(){}return t.all=function(){return function(t){return!0}},t.css=function(t){return function(e){return null!=e.nativeElement&&r().elementMatches(e.nativeElement,t)}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}},t}(),le=new n.Version("4.1.3");t.BrowserModule=oe,t.platformBrowser=re,t.Meta=K,t.Title=Y,t.disableDebugTools=I,t.enableDebugTools=N,t.By=ce,t.NgProbeToken=rt,t.DOCUMENT=W,t.EVENT_MANAGER_PLUGINS=it,t.EventManager=st,t.HAMMER_GESTURE_CONFIG=wt,t.HammerGestureConfig=Ct,t.DomSanitizer=$t,t.VERSION=le,t.ɵBROWSER_SANITIZATION_PROVIDERS=ne,t.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS=ee,t.ɵinitDomAdapter=M,t.ɵBrowserDomAdapter=z,t.ɵsetValueOnPath=u,t.ɵBrowserPlatformLocation=$,t.ɵTRANSITION_ID=Q,t.ɵBrowserGetTestability=X,t.ɵELEMENT_PROBE_PROVIDERS=ot,t.ɵDomAdapter=V,t.ɵgetDOM=r,t.ɵsetRootDomAdapter=o,t.ɵDomRendererFactory2=dt,t.ɵNAMESPACE_URIS=lt,t.ɵflattenStyles=y,t.ɵshimContentAttribute=d,t.ɵshimHostAttribute=m,t.ɵDomEventsPlugin=_t,t.ɵHammerGesturesPlugin=Et,t.ɵKeyEventsPlugin=Tt,t.ɵDomSharedStylesHost=ct,t.ɵSharedStylesHost=ut,t.ɵb=k,t.ɵa=R,t.ɵh=F,t.ɵg=J,t.ɵf=l,t.ɵc=h,t.ɵd=at,t.ɵe=Kt,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":11,"@angular/core":13}],18:[function(t,e,n){!function(r,o){"object"==typeof n&&void 0!==e?o(n,t("@angular/common"),t("@angular/core"),t("rxjs/BehaviorSubject"),t("rxjs/Subject"),t("rxjs/observable/from"),t("rxjs/observable/of"),t("rxjs/operator/concatMap"),t("rxjs/operator/every"),t("rxjs/operator/first"),t("rxjs/operator/map"),t("rxjs/operator/mergeMap"),t("rxjs/operator/reduce"),t("rxjs/Observable"),t("rxjs/operator/catch"),t("rxjs/operator/concatAll"),t("rxjs/util/EmptyError"),t("rxjs/observable/fromPromise"),t("rxjs/operator/last"),t("rxjs/operator/mergeAll"),t("@angular/platform-browser"),t("rxjs/operator/filter")):o((r.ng=r.ng||{},r.ng.router=r.ng.router||{}),r.ng.common,r.ng.core,r.Rx,r.Rx,r.Rx.Observable,r.Rx.Observable,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx,r.Rx.Observable,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.ng.platformBrowser,r.Rx.Observable.prototype)}(this,function(t,e,n,r,o,i,s,a,u,c,l,p,h,f,d,m,y,v,g,_,b,w){"use strict";function C(t){return new Le(t)}function E(t){var e=Error("NavigationCancelingError: "+t);return e[Ve]=!0,e}function S(t){return t[Ve]}function x(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;for(var o={},i=0;i<r.length;i++){var s=r[i],a=t[i];if(s.startsWith(":"))o[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,r.length),posParams:o}}function T(t,e){void 0===e&&(e="");for(var n=0;n<t.length;n++){var r=t[n];P(r,A(e,r))}}function P(t,e){if(!t)throw new Error("\n      Invalid configuration of route '"+e+"': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    ");if(Array.isArray(t))throw new Error("Invalid configuration of route '"+e+"': Array cannot be specified");if(!t.component&&t.outlet&&t.outlet!==De)throw new Error("Invalid configuration of route '"+e+"': a componentless route cannot have a named outlet set");if(t.redirectTo&&t.children)throw new Error("Invalid configuration of route '"+e+"': redirectTo and children cannot be used together");if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': redirectTo and loadChildren cannot be used together");if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': children and loadChildren cannot be used together");if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '"+e+"': redirectTo and component cannot be used together");if(t.path&&t.matcher)throw new Error("Invalid configuration of route '"+e+"': path and matcher cannot be used together");if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error("Invalid configuration of route '"+e+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===t.path&&void 0===t.matcher)throw new Error("Invalid configuration of route '"+e+"': routes must have either a path or a matcher specified");if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error("Invalid configuration of route '"+e+"': path cannot start with a slash");if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch){throw new Error("Invalid configuration of route '{path: \""+e+'", redirectTo: "'+t.redirectTo+"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.")}if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '"+e+"': pathMatch can only be set to 'prefix' or 'full'");t.children&&T(t.children,e)}function A(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function O(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!M(t[n],e[n]))return!1;return!0}function M(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var o,i=0;i<n.length;i++)if(o=n[i],t[o]!==e[o])return!1;return!0}function R(t){return Array.prototype.concat.apply([],t)}function k(t){return t.length>0?t[t.length-1]:null}function N(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function I(t,e){if(0===Object.keys(t).length)return s.of({});var n=[],r=[],o={};N(t,function(t,i){var s=l.map.call(e(i,t),function(t){return o[i]=t});i===De?n.push(s):r.push(s)});var i=m.concatAll.call(s.of.apply(void 0,n.concat(r))),a=g.last.call(i);return l.map.call(a,function(){return o})}function j(t){var e=_.mergeAll.call(t);return u.every.call(e,function(t){return!0===t})}function D(t){return n.ɵisObservable(t)?t:n.ɵisPromise(t)?v.fromPromise(Promise.resolve(t)):s.of(t)}function L(){return new Ue(new Be([],{}),{},null)}function V(t,e,n){return n?F(t.queryParams,e.queryParams)&&U(t.root,e.root):B(t.queryParams,e.queryParams)&&H(t.root,e.root)}function F(t,e){return M(t,e)}function U(t,e){if(!G(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(var n in e.children){if(!t.children[n])return!1;if(!U(t.children[n],e.children[n]))return!1}return!0}function B(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}function H(t,e){return q(t,e,e.segments)}function q(t,e,n){if(t.segments.length>n.length)return!!G(o=t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!G(t.segments,n))return!1;for(var r in e.children){if(!t.children[r])return!1;if(!H(t.children[r],e.children[r]))return!1}return!0}var o=n.slice(0,t.segments.length),i=n.slice(t.segments.length);return!!G(t.segments,o)&&(!!t.children[De]&&q(t.children[De],e,i))}function z(t,e){return G(t,e)&&t.every(function(t,n){return M(t.parameters,e[n].parameters)})}function G(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function W(t,e){var n=[];return N(t.children,function(t,r){r===De&&(n=n.concat(e(t,r)))}),N(t.children,function(t,r){r!==De&&(n=n.concat(e(t,r)))}),n}function $(t){return t.segments.map(function(t){return X(t)}).join("/")}function K(t,e){if(!t.hasChildren())return $(t);if(e){var n=t.children[De]?K(t.children[De],!1):"",r=[];return N(t.children,function(t,e){e!==De&&r.push(e+":"+K(t,!1))}),r.length>0?n+"("+r.join("//")+")":n}var o=W(t,function(e,n){return n===De?[K(t.children[De],!1)]:[n+":"+K(e,!1)]});return $(t)+"/("+o.join("//")+")"}function Q(t){return encodeURIComponent(t)}function J(t){return decodeURIComponent(t)}function X(t){return""+Q(t.path)+Y(t.parameters)}function Y(t){return Object.keys(t).map(function(e){return";"+Q(e)+"="+Q(t[e])}).join("")}function Z(t){var e=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return Q(e)+"="+Q(t)}).join("&"):Q(e)+"="+Q(n)});return e.length?"?"+e.join("&"):""}function tt(t){var e=t.match(We);return e?e[0]:""}function et(t){var e=t.match($e);return e?e[0]:""}function nt(t){var e=t.match(Ke);return e?e[0]:""}function rt(t){return new f.Observable(function(e){return e.error(new Xe(t))})}function ot(t){return new f.Observable(function(e){return e.error(new Ye(t))})}function it(t){return new f.Observable(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}function st(t){return new f.Observable(function(e){return e.error(E("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}function at(t,e,n,r,o){return new Ze(t,e,n,r,o).apply()}function ut(t,e){var n=e.canLoad;return n&&0!==n.length?j(l.map.call(i.from(n),function(n){var r=t.get(n);return D(r.canLoad?r.canLoad(e):r(e))})):s.of(!0)}function ct(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||x)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function lt(t,e,n,r){if(n.length>0&&dt(t,n,r))return{segmentGroup:pt(o=new Be(e,ft(r,new Be(n,t.children)))),slicedSegments:[]};if(0===n.length&&mt(t,n,r)){var o=new Be(t.segments,ht(t,n,r,t.children));return{segmentGroup:pt(o),slicedSegments:n}}return{segmentGroup:t,slicedSegments:n}}function pt(t){if(1===t.numberOfChildren&&t.children[De]){var e=t.children[De];return new Be(t.segments.concat(e.segments),e.children)}return t}function ht(t,e,n,r){for(var o={},i=0,s=n;i<s.length;i++){var a=s[i];yt(t,e,a)&&!r[vt(a)]&&(o[vt(a)]=new Be([],{}))}return Je({},r,o)}function ft(t,e){var n={};n[De]=e;for(var r=0,o=t;r<o.length;r++){var i=o[r];""===i.path&&vt(i)!==De&&(n[vt(i)]=new Be([],{}))}return n}function dt(t,e,n){return n.some(function(n){return yt(t,e,n)&&vt(n)!==De})}function mt(t,e,n){return n.some(function(n){return yt(t,e,n)})}function yt(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0!==n.redirectTo)}function vt(t){return t.outlet||De}function gt(t,e){if(t===e.value)return e;for(var n=0,r=e.children;n<r.length;n++){var o=gt(t,r[n]);if(o)return o}return null}function _t(t,e,n){if(n.push(e),t===e.value)return n;for(var r=0,o=e.children;r<o.length;r++){var i=_t(t,o[r],n.slice(0));if(i.length>0)return i}return[]}function bt(t,e){var n=wt(t,e),o=new r.BehaviorSubject([new He("",{})]),i=new r.BehaviorSubject({}),s=new r.BehaviorSubject({}),a=new r.BehaviorSubject({}),u=new r.BehaviorSubject(""),c=new on(o,i,a,u,s,De,e,n.root);return c.snapshot=n.root,new rn(new en(c,[]),n)}function wt(t,e){var n=new sn([],{},{},"",{},De,e,null,t.root,-1,{});return new an("",new en(n,[]))}function Ct(t){for(var e=t.pathFromRoot,n=e.length-1;n>=1;){var r=e[n],o=e[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(o.component)break;n--}}return e.slice(n).reduce(function(t,e){return{params:nn({},t.params,e.params),data:nn({},t.data,e.data),resolve:nn({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}function Et(t,e){e.value._routerState=t,e.children.forEach(function(e){return Et(t,e)})}function St(t){var e=t.children.length>0?" { "+t.children.map(St).join(", ")+" } ":"";return""+t.value+e}function xt(t){if(t.snapshot){var e=t.snapshot;t.snapshot=t._futureSnapshot,M(e.queryParams,t._futureSnapshot.queryParams)||t.queryParams.next(t._futureSnapshot.queryParams),e.fragment!==t._futureSnapshot.fragment&&t.fragment.next(t._futureSnapshot.fragment),M(e.params,t._futureSnapshot.params)||t.params.next(t._futureSnapshot.params),O(e.url,t._futureSnapshot.url)||t.url.next(t._futureSnapshot.url),M(e.data,t._futureSnapshot.data)||t.data.next(t._futureSnapshot.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Tt(t,e){var n=M(t.params,e.params)&&z(t.url,e.url),r=!t.parent!=!e.parent;return n&&!r&&(!t.parent||Tt(t.parent,e.parent))}function Pt(t,e,n){var r=At(t,e._root,n?n._root:void 0);return new rn(r,e)}function At(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){(o=n.value)._futureSnapshot=e.value;i=Mt(t,e,n);return new en(o,i)}if(t.retrieve(e.value)){var r=t.retrieve(e.value).route;return Ot(e,r),r}var o=Rt(e.value),i=e.children.map(function(e){return At(t,e)});return new en(o,i)}function Ot(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(var n=0;n<t.children.length;++n)Ot(t.children[n],e.children[n])}function Mt(t,e,n){return e.children.map(function(e){for(var r=0,o=n.children;r<o.length;r++){var i=o[r];if(t.shouldReuseRoute(i.value.snapshot,e.value))return At(t,e,i)}return At(t,e)})}function Rt(t){return new on(new r.BehaviorSubject(t.url),new r.BehaviorSubject(t.params),new r.BehaviorSubject(t.queryParams),new r.BehaviorSubject(t.fragment),new r.BehaviorSubject(t.data),t.outlet,t.component,t)}function kt(t,e,n,r,o){if(0===n.length)return It(e.root,e.root,e,r,o);var i=Dt(n);if(i.toRoot())return It(e.root,new Be([],{}),e,r,o);var s=Lt(i,e,t),a=s.processChildren?Ht(s.segmentGroup,s.index,i.commands):Bt(s.segmentGroup,s.index,i.commands);return It(s.segmentGroup,a,e,r,o)}function Nt(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function It(t,e,n,r,o){var i={};return r&&N(r,function(t,e){i[e]=Array.isArray(t)?t.map(function(t){return""+t}):""+t}),n.root===t?new Ue(e,i,o):new Ue(jt(n.root,t,e),i,o)}function jt(t,e,n){var r={};return N(t.children,function(t,o){r[o]=t===e?n:jt(t,e,n)}),new Be(t.segments,r)}function Dt(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new un(!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 N(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 un(n,e,r)}function Lt(t,e,n){if(t.isAbsolute)return new cn(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new cn(n.snapshot._urlSegment,!0,0);var r=Nt(t.commands[0])?0:1,o=n.snapshot._lastPathIndex+r;return Vt(n.snapshot._urlSegment,o,t.numberOfDoubleDots)}function Vt(t,e,n){for(var r=t,o=e,i=n;i>o;){if(i-=o,!(r=r.parent))throw new Error("Invalid number of '../'");o=r.segments.length}return new cn(r,!1,o-i)}function Ft(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[De]:""+t}function Ut(t){return"object"!=typeof t[0]?(e={},e[De]=t,e):void 0===t[0].outlets?(n={},n[De]=t,n):t[0].outlets;var e,n}function Bt(t,e,n){if(t||(t=new Be([],{})),0===t.segments.length&&t.hasChildren())return Ht(t,e,n);var r=qt(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){var i=new Be(t.segments.slice(0,r.pathIndex),{});return i.children[De]=new Be(t.segments.slice(r.pathIndex),t.children),Ht(i,0,o)}return r.match&&0===o.length?new Be(t.segments,{}):r.match&&!t.hasChildren()?zt(t,e,n):r.match?Ht(t,0,o):zt(t,e,n)}function Ht(t,e,n){if(0===n.length)return new Be(t.segments,{});var r=Ut(n),o={};return N(r,function(n,r){null!==n&&(o[r]=Bt(t.children[r],e,n))}),N(t.children,function(t,e){void 0===r[e]&&(o[e]=t)}),new Be(t.segments,o)}function qt(t,e,n){for(var r=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o<t.segments.length;){if(r>=n.length)return i;var s=t.segments[o],a=Ft(n[r]),u=r<n.length-1?n[r+1]:null;if(o>0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!$t(a,u,s))return i;r+=2}else{if(!$t(a,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function zt(t,e,n){for(var r=t.segments.slice(0,e),o=0;o<n.length;){if("object"==typeof n[o]&&void 0!==n[o].outlets){var i=Gt(n[o].outlets);return new Be(r,i)}if(0===o&&Nt(n[0])){var s=t.segments[e];r.push(new He(s.path,n[0])),o++}else{var a=Ft(n[o]),u=o<n.length-1?n[o+1]:null;a&&u&&Nt(u)?(r.push(new He(a,Wt(u))),o+=2):(r.push(new He(a,{})),o++)}}return new Be(r,{})}function Gt(t){var e={};return N(t,function(t,n){null!==t&&(e[n]=zt(new Be([],{}),0,t))}),e}function Wt(t){var e={};return N(t,function(t,n){return e[n]=""+t}),e}function $t(t,e,n){return t==n.path&&M(e,n.parameters)}function Kt(t,e,n,r){return new hn(t,e,n,r).recognize()}function Qt(t){t.sort(function(t,e){return t.value.outlet===De?-1:e.value.outlet===De?1:t.value.outlet.localeCompare(e.value.outlet)})}function Jt(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}function Xt(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new pn;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||x)(n,t,e);if(!r)throw new pn;var o={};N(r.posParams,function(t,e){o[e]=t.path});var i=ln({},o,r.consumed[r.consumed.length-1].parameters);return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:i}}function Yt(t){var e={};t.forEach(function(t){var n=e[t.value.outlet];if(n){var r=n.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+"'.")}e[t.value.outlet]=t.value})}function Zt(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function te(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 ee(t,e,n,r){if(n.length>0&&oe(t,n,r)){var o=new Be(e,re(t,e,r,new Be(n,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&ie(t,n,r)){var i=new Be(t.segments,ne(t,n,r,t.children));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}var s=new Be(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function ne(t,e,n,r){for(var o={},i=0,s=n;i<s.length;i++){var a=s[i];if(se(t,e,a)&&!r[ae(a)]){var u=new Be([],{});u._sourceSegment=t,u._segmentIndexShift=t.segments.length,o[ae(a)]=u}}return ln({},r,o)}function re(t,e,n,r){var o={};o[De]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(var i=0,s=n;i<s.length;i++){var a=s[i];if(""===a.path&&ae(a)!==De){var u=new Be([],{});u._sourceSegment=t,u._segmentIndexShift=e.length,o[ae(a)]=u}}return o}function oe(t,e,n){return n.some(function(n){return se(t,e,n)&&ae(n)!==De})}function ie(t,e,n){return n.some(function(n){return se(t,e,n)})}function se(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0===n.redirectTo)}function ae(t){return t.outlet||De}function ue(t){return t.data||{}}function ce(t){return t.resolve||{}}function le(t){throw t}function pe(t){return s.of(null)}function he(t){xt(t.value),t.children.forEach(he)}function fe(t){for(var e=t.parent;e;e=e.parent){var n=e._routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}function de(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}function me(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}function ye(t,e){var n=t._outlets[e.outlet];if(!n){var r=e.component.name;throw e.outlet===De?new Error("Cannot find primary outlet to load '"+r+"'"):new Error("Cannot find the outlet "+e.outlet+" to load '"+r+"'")}return n}function ve(t){for(var e=0;e<t.length;e++){var n=t[e];if(null==n)throw new Error("The requested path contains "+n+" segment at index "+e)}}function ge(t){return""===t||!!t}function _e(){return new n.NgProbeToken("Router",bn)}function be(t,n,r){return void 0===r&&(r={}),r.useHash?new e.HashLocationStrategy(t,n):new e.PathLocationStrategy(t,n)}function we(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Ce(t){return[{provide:n.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:t},{provide:fn,multi:!0,useValue:t}]}function Ee(t,e,n,r,o,i,s,a,u,c,l){void 0===u&&(u={});var p=new bn(null,e,n,r,o,i,s,R(a));if(c&&(p.urlHandlingStrategy=c),l&&(p.routeReuseStrategy=l),u.errorHandler&&(p.errorHandler=u.errorHandler),u.enableTracing){var h=b.ɵgetDOM();p.events.subscribe(function(t){h.logGroup("Router Event: "+t.constructor.name),h.log(t.toString()),h.log(t),h.logGroupEnd()})}return p}function Se(t){return t.routerState.root}function xe(t){return t.appInitializer.bind(t)}function Te(t){return t.bootstrapListener.bind(t)}function Pe(){return[Un,{provide:n.APP_INITIALIZER,multi:!0,useFactory:xe,deps:[Un]},{provide:Bn,useFactory:Te,deps:[Un]},{provide:n.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:Bn}]}var Ae=function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Oe=function(){function t(t,e){this.id=t,this.url=e}return t.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},t}(),Me=function(){function t(t,e,n){this.id=t,this.url=e,this.urlAfterRedirects=n}return t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(),Re=function(){function t(t,e,n){this.id=t,this.url=e,this.reason=n}return t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(),ke=function(){function t(t,e,n){this.id=t,this.url=e,this.error=n}return t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(),Ne=function(){function t(t,e,n,r){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r}return t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),Ie=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),je=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),De="primary",Le=function(){function t(t){this.params=t||{}}return t.prototype.has=function(t){return this.params.hasOwnProperty(t)},t.prototype.get=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null},t.prototype.getAll=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}(),Ve="ngNavigationCancelingError",Fe=function(){function t(t,e){this.routes=t,this.module=e}return t}(),Ue=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=C(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Ge.serialize(this)},t}(),Be=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,N(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 $(this)},t}(),He=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=C(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return X(this)},t}(),qe=function(){function t(){}return t.prototype.parse=function(t){},t.prototype.serialize=function(t){},t}(),ze=function(){function t(){}return t.prototype.parse=function(t){var e=new Qe(t);return new Ue(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){return""+("/"+K(t.root,!0))+Z(t.queryParams)+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),Ge=new ze,We=/^[^\/()?;=&#]+/,$e=/^[^=?&#]+/,Ke=/^[^?&#]+/,Qe=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 Be([],{}):new Be([],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("#")?decodeURI(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[De]=new Be(t,e)),n},t.prototype.parseSegment=function(){var t=tt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new He(J(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=tt(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=tt(this.remaining);r&&(n=r,this.capture(n))}t[J(e)]=J(n)}},t.prototype.parseQueryParam=function(t){var e=et(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=nt(this.remaining);r&&(n=r,this.capture(n))}var o=J(e),i=J(n);if(t.hasOwnProperty(o)){var s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=tt(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=De);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[De]:new Be([],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}(),Je=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Xe=function(){function t(t){this.segmentGroup=t||null}return t}(),Ye=function(){function t(t){this.urlTree=t}return t}(),Ze=function(){function t(t,e,r,o,i){this.configLoader=e,this.urlSerializer=r,this.urlTree=o,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(n.NgModuleRef)}return t.prototype.apply=function(){var t=this,e=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,De),n=l.map.call(e,function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)});return d._catch.call(n,function(e){if(e instanceof Ye)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof Xe)throw t.noMatchError(e);throw e})},t.prototype.match=function(t){var e=this,n=this.expandSegmentGroup(this.ngModule,this.config,t.root,De),r=l.map.call(n,function(n){return e.createUrlTree(n,t.queryParams,t.fragment)});return d._catch.call(r,function(t){if(t instanceof Xe)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=t.segments.length>0?new Be([],(o={},o[De]=t,o)):t;return new Ue(r,e,n);var o},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?l.map.call(this.expandChildren(t,e,n),function(t){return new Be([],t)}):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return I(n.children,function(n,o){return r.expandSegmentGroup(t,e,o,n)})},t.prototype.expandSegment=function(t,e,n,r,o,i){var a=this,u=s.of.apply(void 0,n),p=l.map.call(u,function(u){var c=a.expandSegmentAgainstRoute(t,e,n,u,r,o,i);return d._catch.call(c,function(t){if(t instanceof Xe)return s.of(null);throw t})}),h=m.concatAll.call(p),f=c.first.call(h,function(t){return!!t});return d._catch.call(f,function(t,n){if(t instanceof y.EmptyError){if(a.noLeftoversInUrl(e,r,o))return s.of(new Be([],{}));throw new Xe(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,s){return vt(r)!==i?rt(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i):rt(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("/")?ot(i):p.mergeMap.call(this.lineralizeSegments(n,i),function(n){var i=new Be(n,{});return o.expandSegment(t,i,e,n,r,!1)})},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){var s=this,a=ct(e,r,o),u=a.matched,c=a.consumedSegments,l=a.lastChild,h=a.positionalParamSegments;if(!u)return rt(e);var f=this.applyRedirectCommands(c,r.redirectTo,h);return r.redirectTo.startsWith("/")?ot(f):p.mergeMap.call(this.lineralizeSegments(r,f),function(r){return s.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?l.map.call(this.configLoader.load(t.injector,n),function(t){return n._loadedConfig=t,new Be(r,{})}):s.of(new Be(r,{}));var i=ct(e,n,r),a=i.matched,u=i.consumedSegments,c=i.lastChild;if(!a)return rt(e);var h=r.slice(c),f=this.getChildConfig(t,n);return p.mergeMap.call(f,function(t){var n=t.module,r=t.routes,i=lt(e,u,h,r),a=i.segmentGroup,c=i.slicedSegments;if(0===c.length&&a.hasChildren()){var p=o.expandChildren(n,r,a);return l.map.call(p,function(t){return new Be(u,t)})}if(0===r.length&&0===c.length)return s.of(new Be(u,{}));var f=o.expandSegment(n,a,r,c,De,!0);return l.map.call(f,function(t){return new Be(u.concat(t.segments),t.children)})})},t.prototype.getChildConfig=function(t,e){var n=this;return e.children?s.of(new Fe(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?s.of(e._loadedConfig):p.mergeMap.call(ut(t.injector,e),function(r){return r?l.map.call(n.configLoader.load(t.injector,e),function(t){return e._loadedConfig=t,t}):st(e)}):s.of(new Fe([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return s.of(n);if(r.numberOfChildren>1||!r.children[De])return it(t.redirectTo);r=r.children[De]}},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 Ue(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return N(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),s={};return N(e.children,function(e,i){s[i]=o.createSegmentGroup(t,e,n,r)}),new Be(i,s)},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;r<o.length;r++){var i=o[r];if(i.path===t.path)return e.splice(n),i;n++}return t},t}(),tn=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=gt(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=gt(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=_t(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 _t(t,this._root,[]).map(function(t){return t.value})},t}(),en=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}(),nn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},rn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,Et(r,e),r}return Ae(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(tn),on=function(){function t(t,e,n,r,o,i,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=s,this._futureSnapshot=a}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),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=l.map.call(this.params,function(t){return C(t)})),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=l.map.call(this.queryParams,function(t){return C(t)})),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}(),sn=function(){function t(t,e,n,r,o,i,s,a,u,c,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=s,this._routeConfig=a,this._urlSegment=u,this._lastPathIndex=c,this._resolve=l}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._routeConfig},enumerable:!0,configurable:!0}),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=C(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=C(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}(),an=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,Et(r,n),r}return Ae(e,t),e.prototype.toString=function(){return St(this._root)},e}(tn),un=function(){function t(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Nt(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!==k(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}(),cn=function(){function t(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}return t}(),ln=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},pn=function(){function t(){}return t}(),hn=function(){function t(t,e,n,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r}return t.prototype.recognize=function(){try{var t=ee(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,De),n=new sn([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},De,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new en(n,e),o=new an(this.url,r);return this.inheriteParamsAndData(o._root),s.of(o)}catch(t){return new f.Observable(function(e){return e.error(t)})}},t.prototype.inheriteParamsAndData=function(t){var e=this,n=t.value,r=Ct(n);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheriteParamsAndData(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=this,r=W(e,function(e,r){return n.processSegmentGroup(t,e,r)});return Yt(r),Qt(r),r},t.prototype.processSegment=function(t,e,n,r){for(var o=0,i=t;o<i.length;o++){var s=i[o];try{return this.processSegmentAgainstRoute(s,e,n,r)}catch(t){if(!(t instanceof pn))throw t}}if(this.noLeftoversInUrl(e,n,r))return[];throw new pn},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new pn;if((t.outlet||De)!==r)throw new pn;if("**"===t.path){var o=n.length>0?k(n).parameters:{},i=new sn(n,o,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ue(t),r,t.component,t,Zt(e),te(e)+n.length,ce(t));return[new en(i,[])]}var s=Xt(e,t,n),a=s.consumedSegments,u=s.parameters,c=s.lastChild,l=n.slice(c),p=Jt(t),h=ee(e,a,l,p),f=h.segmentGroup,d=h.slicedSegments,m=new sn(a,u,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ue(t),r,t.component,t,Zt(e),te(e)+a.length,ce(t));if(0===d.length&&f.hasChildren()){var y=this.processChildren(p,f);return[new en(m,y)]}if(0===p.length&&0===d.length)return[new en(m,[])];var v=this.processSegment(p,f,d,De);return[new en(m,v)]},t}(),fn=new n.InjectionToken("ROUTES"),dn=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 l.map.call(r,function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var o=r.create(t);return new Fe(R(o.injector.get(fn)),o)})},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?v.fromPromise(this.loader.load(t)):p.mergeMap.call(D(t()),function(t){return t instanceof n.NgModuleFactory?s.of(t):v.fromPromise(e.compiler.compileModuleAsync(t))})},t}(),mn=function(){function t(){this._outlets={}}return t.prototype.registerOutlet=function(t,e){this._outlets[t]=e},t.prototype.removeOutlet=function(t){this._outlets[t]=void 0},t}(),yn=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){},t.prototype.extract=function(t){},t.prototype.merge=function(t,e){},t}(),vn=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}(),gn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},_n=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}(),bn=function(){function t(t,e,i,s,a,u,c,l){var p=this;this.rootComponentType=t,this.urlSerializer=e,this.outletMap=i,this.location=s,this.config=l,this.navigations=new r.BehaviorSubject(null),this.routerEvents=new o.Subject,this.navigationId=0,this.errorHandler=le,this.navigated=!1,this.hooks={beforePreactivation:pe,afterPreactivation:pe},this.urlHandlingStrategy=new vn,this.routeReuseStrategy=new _n;var h=function(t){return p.triggerEvent(new Ie(t))},f=function(t){return p.triggerEvent(new je(t))};this.ngModule=a.get(n.NgModuleRef),this.resetConfig(l),this.currentUrlTree=L(),this.rawUrlTree=this.currentUrlTree,this.configLoader=new dn(u,c,h,f),this.currentRouterState=bt(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.currentRouterState.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(Zone.current.wrap(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,"routerState",{get:function(){return this.currentRouterState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){return this.routerEvents},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.routerEvents.next(t)},t.prototype.resetConfig=function(t){T(t),this.config=t},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){var r=void 0===e?{}:e,o=r.relativeTo,i=r.queryParams,s=r.fragment,a=r.preserveQueryParams,u=r.queryParamsHandling,c=r.preserveFragment;n.isDevMode()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=o||this.routerState.root,p=c?this.currentUrlTree.fragment:s,h=null;if(u)switch(u){case"merge":h=gn({},this.currentUrlTree.queryParams,i);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=i||null}else h=a?this.currentUrlTree.queryParams:i||null;return kt(l,this.currentUrlTree,t,h,p)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var n=t instanceof Ue?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}),ve(t),"object"==typeof e.queryParams&&null!==e.queryParams&&(e.queryParams=this.removeEmptyProps(e.queryParams)),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){return this.urlSerializer.parse(t)},t.prototype.isActive=function(t,e){if(t instanceof Ue)return V(this.currentUrlTree,t,e);var n=this.urlSerializer.parse(t);return V(this.currentUrlTree,n,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce(function(e,n){var r=t[n];return null!==r&&void 0!==r&&(e[n]=r),e},{})},t.prototype.processNavigations=function(){var t=this;a.concatMap.call(this.navigations,function(e){return e?(t.executeScheduledNavigation(e),e.promise.catch(function(){})):s.of(null)}).subscribe(function(){})},t.prototype.scheduleNavigation=function(t,e,n){var r=this.navigations.value;if(r&&"imperative"!==e&&"imperative"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(r&&"hashchange"==e&&"popstate"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);var o=null,i=null,s=new Promise(function(t,e){o=t,i=e}),a=++this.navigationId;return this.navigations.next({id:a,source:e,rawUrl:t,extras:n,resolve:o,reject:i,promise:s}),s.catch(function(t){return Promise.reject(t)})},t.prototype.executeScheduledNavigation=function(t){var e=this,n=t.id,r=t.rawUrl,o=t.extras,i=t.resolve,s=t.reject,a=this.urlHandlingStrategy.extract(r),u=!this.navigated||a.toString()!==this.currentUrlTree.toString();u&&this.urlHandlingStrategy.shouldProcessUrl(r)?(this.routerEvents.next(new Oe(n,this.serializeUrl(a))),Promise.resolve().then(function(t){return e.runNavigate(a,r,!!o.skipLocationChange,!!o.replaceUrl,n,null)}).then(i,s)):u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)?(this.routerEvents.next(new Oe(n,this.serializeUrl(a))),Promise.resolve().then(function(t){return e.runNavigate(a,r,!1,!1,n,bt(a,e.rootComponentType).snapshot)}).then(i,s)):(this.rawUrlTree=r,i(null))},t.prototype.runNavigate=function(t,e,n,r,o,i){var a=this;return o!==this.navigationId?(this.location.go(this.urlSerializer.serialize(this.currentUrlTree)),this.routerEvents.next(new Re(o,this.serializeUrl(t),"Navigation ID "+o+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(u,c){var h;if(i)h=s.of({appliedUrl:t,snapshot:i});else{var f=at(a.ngModule.injector,a.configLoader,a.urlSerializer,t,a.config);h=p.mergeMap.call(f,function(e){return l.map.call(Kt(a.rootComponentType,a.config,e,a.serializeUrl(e)),function(n){return a.routerEvents.next(new Ne(o,a.serializeUrl(t),a.serializeUrl(e),n)),{appliedUrl:e,snapshot:n}})})}var d,m,y=p.mergeMap.call(h,function(t){return l.map.call(a.hooks.beforePreactivation(t.snapshot),function(){return t})}),v=l.map.call(y,function(t){var e=t.appliedUrl,n=t.snapshot,r=a.ngModule.injector;return(d=new En(n,a.currentRouterState.snapshot,r)).traverse(a.outletMap),{appliedUrl:e,snapshot:n}}),g=p.mergeMap.call(v,function(t){var e=t.appliedUrl,n=t.snapshot;return a.navigationId!==o?s.of(!1):l.map.call(d.checkGuards(),function(t){return{appliedUrl:e,snapshot:n,shouldActivate:t}})}),_=p.mergeMap.call(g,function(t){return a.navigationId!==o?s.of(!1):t.shouldActivate?l.map.call(d.resolveData(),function(){return t}):s.of(t)}),b=p.mergeMap.call(_,function(t){return l.map.call(a.hooks.afterPreactivation(t.snapshot),function(){return t})}),w=l.map.call(b,function(t){var e=t.appliedUrl,n=t.snapshot,r=t.shouldActivate;return r?{appliedUrl:e,state:Pt(a.routeReuseStrategy,n,a.currentRouterState),shouldActivate:r}:{appliedUrl:e,state:null,shouldActivate:r}}),C=a.currentRouterState,E=a.currentUrlTree;w.forEach(function(t){var i=t.appliedUrl,s=t.state;if(t.shouldActivate&&o===a.navigationId){if(a.currentUrlTree=i,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.currentRouterState=s,!n){var u=a.urlSerializer.serialize(a.rawUrlTree);a.location.isCurrentPathEqualTo(u)||r?a.location.replaceState(u):a.location.go(u)}new Sn(a.routeReuseStrategy,s,C).activate(a.outletMap),m=!0}else m=!1}).then(function(){m?(a.navigated=!0,a.routerEvents.next(new Me(o,a.serializeUrl(t),a.serializeUrl(a.currentUrlTree))),u(!0)):(a.resetUrlToCurrentUrlTree(),a.routerEvents.next(new Re(o,a.serializeUrl(t),"")),u(!1))},function(n){if(S(n))a.resetUrlToCurrentUrlTree(),a.navigated=!0,a.routerEvents.next(new Re(o,a.serializeUrl(t),n.message)),u(!1);else{a.routerEvents.next(new ke(o,a.serializeUrl(t),n));try{u(a.errorHandler(n))}catch(t){c(t)}}a.currentRouterState=C,a.currentUrlTree=E,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.location.replaceState(a.serializeUrl(a.rawUrlTree))})})},t.prototype.resetUrlToCurrentUrlTree=function(){var t=this.urlSerializer.serialize(this.rawUrlTree);this.location.replaceState(t)},t}(),wn=function(){function t(t){this.path=t}return Object.defineProperty(t.prototype,"route",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t}(),Cn=function(){function t(t,e){this.component=t,this.route=e}return t}(),En=function(){function t(t,e,n){this.future=t,this.curr=e,this.moduleInjector=n,this.canActivateChecks=[],this.canDeactivateChecks=[]}return t.prototype.traverse=function(t){var e=this.future._root,n=this.curr?this.curr._root:null;this.traverseChildRoutes(e,n,t,[e.value])},t.prototype.checkGuards=function(){var t=this;if(0===this.canDeactivateChecks.length&&0===this.canActivateChecks.length)return s.of(!0);var e=this.runCanDeactivateChecks();return p.mergeMap.call(e,function(e){return e?t.runCanActivateChecks():s.of(!1)})},t.prototype.resolveData=function(){var t=this;if(0===this.canActivateChecks.length)return s.of(null);var e=i.from(this.canActivateChecks),n=a.concatMap.call(e,function(e){return t.runResolve(e.route)});return h.reduce.call(n,function(t,e){return t})},t.prototype.traverseChildRoutes=function(t,e,n,r){var o=this,i=me(e);t.children.forEach(function(t){o.traverseRoutes(t,i[t.value.outlet],n,r.concat([t.value])),delete i[t.value.outlet]}),N(i,function(t,e){return o.deactiveRouteAndItsChildren(t,n._outlets[e])})},t.prototype.traverseRoutes=function(t,e,n,r){var o=t.value,i=e?e.value:null,s=n?n._outlets[t.value.outlet]:null;i&&o._routeConfig===i._routeConfig?(this.shouldRunGuardsAndResolvers(i,o,o._routeConfig.runGuardsAndResolvers)?(this.canActivateChecks.push(new wn(r)),this.canDeactivateChecks.push(new Cn(s.component,i))):(o.data=i.data,o._resolvedData=i._resolvedData),o.component?this.traverseChildRoutes(t,e,s?s.outletMap:null,r):this.traverseChildRoutes(t,e,n,r)):(i&&this.deactiveRouteAndItsChildren(e,s),this.canActivateChecks.push(new wn(r)),o.component?this.traverseChildRoutes(t,null,s?s.outletMap:null,r):this.traverseChildRoutes(t,null,n,r))},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!Tt(t,e)||!M(t.queryParams,e.queryParams);case"paramsChange":default:return!Tt(t,e)}},t.prototype.deactiveRouteAndItsChildren=function(t,e){var n=this,r=me(t),o=t.value;N(r,function(t,r){o.component?e?n.deactiveRouteAndItsChildren(t,e.outletMap._outlets[r]):n.deactiveRouteAndItsChildren(t,null):n.deactiveRouteAndItsChildren(t,e)}),o.component&&e&&e.isActivated?this.canDeactivateChecks.push(new Cn(e.component,o)):this.canDeactivateChecks.push(new Cn(null,o))},t.prototype.runCanDeactivateChecks=function(){var t=this,e=i.from(this.canDeactivateChecks),n=p.mergeMap.call(e,function(e){return t.runCanDeactivate(e.component,e.route)});return u.every.call(n,function(t){return!0===t})},t.prototype.runCanActivateChecks=function(){var t=this,e=i.from(this.canActivateChecks),n=p.mergeMap.call(e,function(e){return j(i.from([t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))});return u.every.call(n,function(t){return!0===t})},t.prototype.runCanActivate=function(t){var e=this,n=t._routeConfig?t._routeConfig.canActivate:null;return n&&0!==n.length?j(l.map.call(i.from(n),function(n){var r,o=e.getToken(n,t);return r=D(o.canActivate?o.canActivate(t,e.future):o(t,e.future)),c.first.call(r)})):s.of(!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 j(l.map.call(i.from(r),function(t){return j(l.map.call(i.from(t.guards),function(r){var o,i=e.getToken(r,t.node);return o=D(i.canActivateChild?i.canActivateChild(n,e.future):i(n,e.future)),c.first.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 s.of(!0);var o=p.mergeMap.call(i.from(r),function(r){var o,i=n.getToken(r,e);return o=D(i.canDeactivate?i.canDeactivate(t,e,n.curr,n.future):i(t,e,n.curr,n.future)),c.first.call(o)});return u.every.call(o,function(t){return!0===t})},t.prototype.runResolve=function(t){var e=t._resolve;return l.map.call(this.resolveNode(e,t),function(e){return t._resolvedData=e,t.data=gn({},t.data,Ct(t).resolve),null})},t.prototype.resolveNode=function(t,e){var n=this;return I(t,function(t,r){var o=n.getToken(r,e);return D(o.resolve?o.resolve(e,n.future):o(e,n.future))})},t.prototype.getToken=function(t,e){var n=de(e);return(n?n.module.injector:this.moduleInjector).get(t)},t}(),Sn=function(){function t(t,e,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=n}return t.prototype.activate=function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),xt(this.futureState.root),this.activateChildRoutes(e,n,t)},t.prototype.deactivateChildRoutes=function(t,e,n){var r=this,o=me(e);t.children.forEach(function(t){r.deactivateRoutes(t,o[t.value.outlet],n),delete o[t.value.outlet]}),N(o,function(t,e){return r.deactiveRouteAndItsChildren(t,n)})},t.prototype.activateChildRoutes=function(t,e,n){var r=this,o=me(e);t.children.forEach(function(t){r.activateRoutes(t,o[t.value.outlet],n)})},t.prototype.deactivateRoutes=function(t,e,n){var r=t.value,o=e?e.value:null;if(r===o)if(r.component){var i=ye(n,r);this.deactivateChildRoutes(t,e,i.outletMap)}else this.deactivateChildRoutes(t,e,n);else o&&this.deactiveRouteAndItsChildren(e,n)},t.prototype.activateRoutes=function(t,e,n){var r=t.value;if(r===(e?e.value:null))if(xt(r),r.component){o=ye(n,r);this.activateChildRoutes(t,e,o.outletMap)}else this.activateChildRoutes(t,e,n);else if(r.component){xt(r);var o=ye(n,t.value);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){var i=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.attach(i.componentRef,i.route.value),he(i.route)}else{var s=new mn;this.placeComponentIntoOutlet(s,r,o),this.activateChildRoutes(t,null,s)}}else xt(r),this.activateChildRoutes(t,null,n)},t.prototype.placeComponentIntoOutlet=function(t,e,n){var r=fe(e.snapshot),o=r?r.module.componentFactoryResolver:null;n.activateWith(e,o,t)},t.prototype.deactiveRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactiveRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var n=ye(e,t.value).detach();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:n,route:t})},t.prototype.deactiveRouteAndOutlet=function(t,e){var n=this,r=me(t),o=null;try{o=ye(e,t.value)}catch(t){return}var i=o.outletMap;N(r,function(r,o){t.value.component?n.deactiveRouteAndItsChildren(r,i):n.deactiveRouteAndItsChildren(r,e)}),o&&o.isActivated&&o.deactivate()},t}(),xn=function(){function t(t,e,n,r,o){this.router=t,this.route=e,this.commands=[],null==n&&r.setElementAttribute(o.nativeElement,"tabindex","0")}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){n.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){var t={skipLocationChange:ge(this.skipLocationChange),replaceUrl:ge(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ge(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ge(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();xn.decorators=[{type:n.Directive,args:[{selector:":not(a)[routerLink]"}]}],xn.ctorParameters=function(){return[{type:bn},{type:on},{type:void 0,decorators:[{type:n.Attribute,args:["tabindex"]}]},{type:n.Renderer},{type:n.ElementRef}]},xn.propDecorators={queryParams:[{type:n.Input}],fragment:[{type:n.Input}],queryParamsHandling:[{type:n.Input}],preserveFragment:[{type:n.Input}],skipLocationChange:[{type:n.Input}],replaceUrl:[{type:n.Input}],routerLink:[{type:n.Input}],preserveQueryParams:[{type:n.Input}],onClick:[{type:n.HostListener,args:["click"]}]};var Tn=function(){function t(t,e,n){var r=this;this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(function(t){t instanceof Me&&r.updateTargetUrlAndHref()})}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){n.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onClick=function(t,e,n){if(0!==t||e||n)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var r={skipLocationChange:ge(this.skipLocationChange),replaceUrl:ge(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,r),!1},t.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ge(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ge(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();Tn.decorators=[{type:n.Directive,args:[{selector:"a[routerLink]"}]}],Tn.ctorParameters=function(){return[{type:bn},{type:on},{type:e.LocationStrategy}]},Tn.propDecorators={target:[{type:n.HostBinding,args:["attr.target"]},{type:n.Input}],queryParams:[{type:n.Input}],fragment:[{type:n.Input}],queryParamsHandling:[{type:n.Input}],preserveFragment:[{type:n.Input}],skipLocationChange:[{type:n.Input}],replaceUrl:[{type:n.Input}],href:[{type:n.HostBinding}],routerLink:[{type:n.Input}],preserveQueryParams:[{type:n.Input}],onClick:[{type:n.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey"]]}]};var Pn=function(){function t(t,e,n,r){var o=this;this.router=t,this.element=e,this.renderer=n,this.cdr=r,this.classes=[],this.active=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(function(t){t instanceof Me&&o.update()})}return Object.defineProperty(t.prototype,"isActive",{get:function(){return this.active},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this.links.changes.subscribe(function(e){return t.update()}),this.linksWithHrefs.changes.subscribe(function(e){return t.update()}),this.update()},Object.defineProperty(t.prototype,"routerLinkActive",{set:function(t){var e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(function(t){return!!t})},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.update()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.update=function(){var t=this;if(this.links&&this.linksWithHrefs&&this.router.navigated){var e=this.hasActiveLinks();this.active!==e&&(this.classes.forEach(function(n){return t.renderer.setElementClass(t.element.nativeElement,n,e)}),Promise.resolve(e).then(function(e){return t.active=e}))}},t.prototype.isLinkActive=function(t){var e=this;return function(n){return t.isActive(n.urlTree,e.routerLinkActiveOptions.exact)}},t.prototype.hasActiveLinks=function(){return this.links.some(this.isLinkActive(this.router))||this.linksWithHrefs.some(this.isLinkActive(this.router))},t}();Pn.decorators=[{type:n.Directive,args:[{selector:"[routerLinkActive]",exportAs:"routerLinkActive"}]}],Pn.ctorParameters=function(){return[{type:bn},{type:n.ElementRef},{type:n.Renderer},{type:n.ChangeDetectorRef}]},Pn.propDecorators={links:[{type:n.ContentChildren,args:[xn,{descendants:!0}]}],linksWithHrefs:[{type:n.ContentChildren,args:[Tn,{descendants:!0}]}],routerLinkActiveOptions:[{type:n.Input}],routerLinkActive:[{type:n.Input}]};var An=function(){function t(t,e,r,o){this.parentOutletMap=t,this.location=e,this.resolver=r,this.name=o,this.activateEvents=new n.EventEmitter,this.deactivateEvents=new n.EventEmitter,t.registerOutlet(o||De,this)}return t.prototype.ngOnDestroy=function(){this.parentOutletMap.removeOutlet(this.name?this.name:De)},Object.defineProperty(t.prototype,"locationInjector",{get:function(){return this.location.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locationFactoryResolver",{get:function(){return this.resolver},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),t.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t},t.prototype.attach=function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)},t.prototype.deactivate=function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}},t.prototype.activate=function(t,e,r,o,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this.outletMap=i,this._activatedRoute=t;var s=t._futureSnapshot._routeConfig.component,a=e.resolveComponentFactory(s),u=n.ReflectiveInjector.fromResolvedProviders(o,r);this.activated=this.location.createComponent(a,this.location.length,u,[]),this.activated.changeDetectorRef.detectChanges(),this.activateEvents.emit(this.activated.instance)},t.prototype.activateWith=function(t,e,n){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this.outletMap=n,this._activatedRoute=t;var r=t._futureSnapshot._routeConfig.component,o=(e=e||this.resolver).resolveComponentFactory(r),i=new On(t,n,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,i,[]),this.activated.changeDetectorRef.detectChanges(),this.activateEvents.emit(this.activated.instance)},t}();An.decorators=[{type:n.Directive,args:[{selector:"router-outlet"}]}],An.ctorParameters=function(){return[{type:mn},{type:n.ViewContainerRef},{type:n.ComponentFactoryResolver},{type:void 0,decorators:[{type:n.Attribute,args:["name"]}]}]},An.propDecorators={activateEvents:[{type:n.Output,args:["activate"]}],deactivateEvents:[{type:n.Output,args:["deactivate"]}]};var On=function(){function t(t,e,n){this.route=t,this.map=e,this.parent=n}return t.prototype.get=function(t,e){return t===on?this.route:t===mn?this.map:this.parent.get(t,e)},t}(),Mn=function(){function t(){}return t.prototype.shouldDetach=function(t){},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){},t.prototype.retrieve=function(t){},t.prototype.shouldReuseRoute=function(t,e){},t}(),Rn=function(){function t(){}return t.prototype.preload=function(t,e){},t}(),kn=function(){function t(){}return t.prototype.preload=function(t,e){return d._catch.call(e(),function(){return s.of(null)})},t}(),Nn=function(){function t(){}return t.prototype.preload=function(t,e){return s.of(null)},t}(),In=function(){function t(t,e,n,r,o){this.router=t,this.injector=r,this.preloadingStrategy=o;var i=function(e){return t.triggerEvent(new Ie(e))},s=function(e){return t.triggerEvent(new je(e))};this.loader=new dn(e,n,i,s)}return t.prototype.setUpPreloading=function(){var t=this,e=w.filter.call(this.router.events,function(t){return t instanceof Me});this.subscription=a.concatMap.call(e,function(){return t.preload()}).subscribe(function(){})},t.prototype.preload=function(){var t=this.injector.get(n.NgModuleRef);return this.processRoutes(t,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){for(var n=[],r=0,o=e;r<o.length;r++){var s=o[r];if(s.loadChildren&&!s.canLoad&&s._loadedConfig){var a=s._loadedConfig;n.push(this.processRoutes(a.module,a.routes))}else s.loadChildren&&!s.canLoad?n.push(this.preloadConfig(t,s)):s.children&&n.push(this.processRoutes(t,s.children))}return _.mergeAll.call(i.from(n))},t.prototype.preloadConfig=function(t,e){var n=this;return this.preloadingStrategy.preload(e,function(){var r=n.loader.load(t.injector,e);return p.mergeMap.call(r,function(t){return e._loadedConfig=t,n.processRoutes(t.module,t.routes)})})},t}();In.decorators=[{type:n.Injectable}],In.ctorParameters=function(){return[{type:bn},{type:n.NgModuleFactoryLoader},{type:n.Compiler},{type:n.Injector},{type:Rn}]};var jn=[An,xn,Tn,Pn],Dn=new n.InjectionToken("ROUTER_CONFIGURATION"),Ln=new n.InjectionToken("ROUTER_FORROOT_GUARD"),Vn=[e.Location,{provide:qe,useClass:ze},{provide:bn,useFactory:Ee,deps:[n.ApplicationRef,qe,mn,e.Location,n.Injector,n.NgModuleFactoryLoader,n.Compiler,fn,Dn,[yn,new n.Optional],[Mn,new n.Optional]]},mn,{provide:on,useFactory:Se,deps:[bn]},{provide:n.NgModuleFactoryLoader,useClass:n.SystemJsNgModuleLoader},In,Nn,kn,{provide:Dn,useValue:{enableTracing:!1}}],Fn=function(){function t(t,e){}return t.forRoot=function(r,o){return{ngModule:t,providers:[Vn,Ce(r),{provide:Ln,useFactory:we,deps:[[bn,new n.Optional,new n.SkipSelf]]},{provide:Dn,useValue:o||{}},{provide:e.LocationStrategy,useFactory:be,deps:[e.PlatformLocation,[new n.Inject(e.APP_BASE_HREF),new n.Optional],Dn]},{provide:Rn,useExisting:o&&o.preloadingStrategy?o.preloadingStrategy:Nn},{provide:n.NgProbeToken,multi:!0,useFactory:_e},Pe()]}},t.forChild=function(e){return{ngModule:t,providers:[Ce(e)]}},t}();Fn.decorators=[{type:n.NgModule,args:[{declarations:jn,exports:jn}]}],Fn.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[Ln]}]},{type:bn,decorators:[{type:n.Optional}]}]};var Un=function(){function t(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new o.Subject}return t.prototype.appInitializer=function(){var t=this;return this.injector.get(e.LOCATION_INITIALIZED,Promise.resolve(null)).then(function(){var e=null,n=new Promise(function(t){return e=t}),r=t.injector.get(bn),o=t.injector.get(Dn);if(t.isLegacyDisabled(o)||t.isLegacyEnabled(o))e(!0);else if("disabled"===o.initialNavigation)r.setUpLocationChangeListener(),e(!0);else{if("enabled"!==o.initialNavigation)throw new Error("Invalid initialNavigation options: '"+o.initialNavigation+"'");r.hooks.afterPreactivation=function(){return t.initNavigation?s.of(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()}return n})},t.prototype.bootstrapListener=function(t){var e=this.injector.get(Dn),r=this.injector.get(In),o=this.injector.get(bn),i=this.injector.get(n.ApplicationRef);t===i.components[0]&&(this.isLegacyEnabled(e)?o.initialNavigation():this.isLegacyDisabled(e)&&o.setUpLocationChangeListener(),r.setUpPreloading(),o.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},t.prototype.isLegacyEnabled=function(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation},t.prototype.isLegacyDisabled=function(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation},t}();Un.decorators=[{type:n.Injectable}],Un.ctorParameters=function(){return[{type:n.Injector}]};var Bn=new n.InjectionToken("Router Initializer"),Hn=new n.Version("4.1.3");t.RouterLink=xn,t.RouterLinkWithHref=Tn,t.RouterLinkActive=Pn,t.RouterOutlet=An,t.NavigationCancel=Re,t.NavigationEnd=Me,t.NavigationError=ke,t.NavigationStart=Oe,t.RouteConfigLoadEnd=je,t.RouteConfigLoadStart=Ie,t.RoutesRecognized=Ne,t.RouteReuseStrategy=Mn,t.Router=bn,t.ROUTES=fn,t.ROUTER_CONFIGURATION=Dn,t.ROUTER_INITIALIZER=Bn,t.RouterModule=Fn,t.provideRoutes=Ce,t.RouterOutletMap=mn,t.NoPreloading=Nn,t.PreloadAllModules=kn,t.PreloadingStrategy=Rn,t.RouterPreloader=In,t.ActivatedRoute=on,t.ActivatedRouteSnapshot=sn,t.RouterState=rn,t.RouterStateSnapshot=an,t.PRIMARY_OUTLET=De,t.convertToParamMap=C,t.UrlHandlingStrategy=yn,t.DefaultUrlSerializer=ze,t.UrlSegment=He,t.UrlSegmentGroup=Be,t.UrlSerializer=qe,t.UrlTree=Ue,t.VERSION=Hn,t.ɵROUTER_PROVIDERS=Vn,t.ɵflatten=R,t.ɵa=Ln,t.ɵg=Un,t.ɵh=xe,t.ɵi=Te,t.ɵd=we,t.ɵc=be,t.ɵj=Pe,t.ɵf=Se,t.ɵb=_e,t.ɵe=Ee,t.ɵk=tn,t.ɵl=en,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":11,"@angular/core":13,"@angular/platform-browser":17,"rxjs/BehaviorSubject":19,"rxjs/Observable":22,"rxjs/Subject":25,"rxjs/observable/from":40,"rxjs/observable/fromPromise":41,"rxjs/observable/of":43,"rxjs/operator/catch":44,"rxjs/operator/concatAll":45,"rxjs/operator/concatMap":46,"rxjs/operator/every":47,"rxjs/operator/filter":48,"rxjs/operator/first":49,"rxjs/operator/last":50,"rxjs/operator/map":51,"rxjs/operator/mergeAll":53,"rxjs/operator/mergeMap":54,"rxjs/operator/reduce":57,"rxjs/util/EmptyError":62}],19:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("./Subject"),i=t("./util/ObjectUnsubscribedError"),s=function(t){function e(e){t.call(this),this._value=e}return r(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.ObjectUnsubscribedError;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(o.Subject);n.BehaviorSubject=s},{"./Subject":25,"./util/ObjectUnsubscribedError":63}],20:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e,n,r){t.call(this),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}return r(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}(t("./Subscriber").Subscriber);n.InnerSubscriber=o},{"./Subscriber":27}],21:[function(t,e,n){"use strict";var r=t("./Observable"),o=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return r.Observable.of(this.value);case"E":return r.Observable.throw(this.error);case"C":return r.Observable.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):this.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return this.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();n.Notification=o},{"./Observable":22}],22:[function(t,e,n){"use strict";var r=t("./util/root"),o=t("./util/toSubscriber"),i=t("./symbol/observable"),s=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,i=o.toSubscriber(t,e,n);if(r?r.call(i,this.source):i.add(this._trySubscribe(i)),i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var n=this;if(e||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?e=r.root.Rx.config.Promise:r.root.Promise&&(e=r.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var o=n.subscribe(function(e){if(o)try{t(e)}catch(t){r(t),o.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[i.$$observable]=function(){return this},t.create=function(e){return new t(e)},t}();n.Observable=s},{"./symbol/observable":60,"./util/root":72,"./util/toSubscriber":74}],23:[function(t,e,n){"use strict";n.empty={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},{}],24:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(t("./Subscriber").Subscriber);n.OuterSubscriber=o},{"./Subscriber":27}],25:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("./Observable"),i=t("./Subscriber"),s=t("./Subscription"),a=t("./util/ObjectUnsubscribedError"),u=t("./SubjectSubscription"),c=t("./symbol/rxSubscriber"),l=function(t){function e(e){t.call(this,e),this.destination=e}return r(e,t),e}(i.Subscriber);n.SubjectSubscriber=l;var p=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return r(e,t),e.prototype[c.$$rxSubscriber]=function(){return new l(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new u.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new o.Observable;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(o.Observable);n.Subject=p;var h=function(t){function e(e,n){t.call(this),this.destination=e,this.source=n}return r(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):s.Subscription.EMPTY},e}(p);n.AnonymousSubject=h},{"./Observable":22,"./SubjectSubscription":26,"./Subscriber":27,"./Subscription":28,"./symbol/rxSubscriber":61,"./util/ObjectUnsubscribedError":63}],26:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e,n){t.call(this),this.subject=e,this.subscriber=n,this.closed=!1}return r(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(t("./Subscription").Subscription);n.SubjectSubscription=o},{"./Subscription":28}],27:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("./util/isFunction"),i=t("./Subscription"),s=t("./Observer"),a=t("./symbol/rxSubscriber"),u=function(t){function e(n,r,o){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!n){this.destination=s.empty;break}if("object"==typeof n){n instanceof e?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,n,r,o)}}return r(e,t),e.prototype[a.$$rxSubscriber]=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,e=t._parent,n=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=n,this},e}(i.Subscription);n.Subscriber=u;var c=function(t){function e(e,n,r,i){t.call(this),this._parentSubscriber=e;var s,a=this;o.isFunction(n)?s=n:n&&(a=n,s=n.next,r=n.error,i=n.complete,o.isFunction(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this)),this._context=a,this._next=s,this._error=r,this._complete=i}return r(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(){if(!this.isStopped){var t=this._parentSubscriber;this._complete?t.syncErrorThrowable?(this.__tryOrSetError(t,this._complete),this.unsubscribe()):(this.__tryOrUnsub(this._complete),this.unsubscribe()):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}(u)},{"./Observer":23,"./Subscription":28,"./symbol/rxSubscriber":61,"./util/isFunction":68}],28:[function(t,e,n){"use strict";function r(t){return t.reduce(function(t,e){return t.concat(e instanceof c.UnsubscriptionError?e.errors:e)},[])}var o=t("./util/isArray"),i=t("./util/isObject"),s=t("./util/isFunction"),a=t("./util/tryCatch"),u=t("./util/errorObject"),c=t("./util/UnsubscriptionError"),l=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this,l=n._parent,p=n._parents,h=n._unsubscribe,f=n._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var d=-1,m=p?p.length:0;l;)l.remove(this),l=++d<m&&p[d]||null;if(s.isFunction(h)&&(v=a.tryCatch(h).call(this))===u.errorObject&&(e=!0,t=t||(u.errorObject.e instanceof c.UnsubscriptionError?r(u.errorObject.e.errors):[u.errorObject.e])),o.isArray(f))for(d=-1,m=f.length;++d<m;){var y=f[d];if(i.isObject(y)){var v=a.tryCatch(y.unsubscribe).call(y);if(v===u.errorObject){e=!0,t=t||[];var g=u.errorObject.e;g instanceof c.UnsubscriptionError?t=t.concat(r(g.errors)):t.push(g)}}}if(e)throw new c.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this,n=e._parent,r=e._parents;n&&n!==t?r?-1===r.indexOf(t)&&r.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();n.Subscription=l},{"./util/UnsubscriptionError":64,"./util/errorObject":65,"./util/isArray":66,"./util/isFunction":68,"./util/isObject":69,"./util/tryCatch":75}],29:[function(t,e,n){"use strict";var r=t("../../Observable"),o=t("../../operator/map");r.Observable.prototype.map=o.map},{"../../Observable":22,"../../operator/map":51}],30:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Observable"),i=t("./ScalarObservable"),s=t("./EmptyObservable"),a=function(t){function e(e,n){t.call(this),this.arrayLike=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return r(e,t),e.create=function(t,n){var r=t.length;return 0===r?new s.EmptyObservable:1===r?new i.ScalarObservable(t[0],n):new e(t,n)},e.dispatch=function(t){var e=t.arrayLike,n=t.index,r=t.length,o=t.subscriber;o.closed||(n>=r?o.complete():(o.next(e[n]),t.index=n+1,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this,r=n.arrayLike,o=n.scheduler,i=r.length;if(o)return o.schedule(e.dispatch,0,{arrayLike:r,index:0,length:i,subscriber:t});for(var s=0;s<i&&!t.closed;s++)t.next(r[s]);t.complete()},e}(o.Observable);n.ArrayLikeObservable=a},{"../Observable":22,"./EmptyObservable":33,"./ScalarObservable":38}],31:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Observable"),i=t("./ScalarObservable"),s=t("./EmptyObservable"),a=t("../util/isScheduler"),u=function(t){function e(e,n){t.call(this),this.array=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return r(e,t),e.create=function(t,n){return new e(t,n)},e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];var r=t[t.length-1];a.isScheduler(r)?t.pop():r=null;var o=t.length;return o>1?new e(t,r):1===o?new i.ScalarObservable(t[0],r):new s.EmptyObservable(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.count,o=t.subscriber;n>=r?o.complete():(o.next(e[n]),o.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<r&&!t.closed;i++)t.next(n[i]);t.complete()},e}(o.Observable);n.ArrayObservable=u},{"../Observable":22,"../util/isScheduler":71,"./EmptyObservable":33,"./ScalarObservable":38}],32:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subject"),i=t("../Observable"),s=t("../Subscriber"),a=t("../Subscription"),u=function(t){function e(e,n){t.call(this),this.source=e,this.subjectFactory=n,this._refCount=0}return r(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||((t=this._connection=new a.Subscription).add(this.source.subscribe(new c(this.getSubject(),this))),t.closed?(this._connection=null,t=a.Subscription.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return this.lift(new l(this))},e}(i.Observable);n.ConnectableObservable=u,n.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subscribe:{value:u.prototype._subscribe},getSubject:{value:u.prototype.getSubject},connect:{value:u.prototype.connect},refCount:{value:u.prototype.refCount}};var c=function(t){function e(e,n){t.call(this,e),this.connectable=n}return r(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){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.SubjectSubscriber),l=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new p(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),p=function(t){function e(e,n){t.call(this,e),this.connectable=n}return r(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}(s.Subscriber)},{"../Observable":22,"../Subject":25,"../Subscriber":27,"../Subscription":28}],33:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e){t.call(this),this.scheduler=e}return r(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(t("../Observable").Observable);n.EmptyObservable=o},{"../Observable":22}],34:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Observable"),i=t("./EmptyObservable"),s=t("../util/isArray"),a=t("../util/subscribeToResult"),u=t("../OuterSubscriber"),c=function(t){function e(e,n){t.call(this),this.sources=e,this.resultSelector=n}return r(e,t),e.create=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];if(null===t||0===arguments.length)return new i.EmptyObservable;var r=null;return"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&s.isArray(t[0])&&(t=t[0]),0===t.length?new i.EmptyObservable:new e(t,r)},e.prototype._subscribe=function(t){return new l(t,this.sources,this.resultSelector)},e}(o.Observable);n.ForkJoinObservable=c;var l=function(t){function e(e,n,r){t.call(this,e),this.sources=n,this.resultSelector=r,this.completed=0,this.haveValues=0;var o=n.length;this.total=o,this.values=new Array(o);for(var i=0;i<o;i++){var s=n[i],u=a.subscribeToResult(this,s,null,i);u&&(u.outerIndex=i,this.add(u))}}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.values[n]=e,o._hasValue||(o._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,n=this,r=n.haveValues,o=n.resultSelector,i=n.values,s=i.length;if(t._hasValue){if(++this.completed===s){if(r===s){var a=o?o.apply(this,i):i;e.next(a)}e.complete()}}else e.complete()},e}(u.OuterSubscriber)},{"../Observable":22,"../OuterSubscriber":24,"../util/isArray":66,"../util/subscribeToResult":73,"./EmptyObservable":33}],35:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../util/isArray"),i=t("../util/isArrayLike"),s=t("../util/isPromise"),a=t("./PromiseObservable"),u=t("./IteratorObservable"),c=t("./ArrayObservable"),l=t("./ArrayLikeObservable"),p=t("../symbol/iterator"),h=t("../Observable"),f=t("../operator/observeOn"),d=t("../symbol/observable"),m=function(t){function e(e,n){t.call(this,null),this.ish=e,this.scheduler=n}return r(e,t),e.create=function(t,n){if(null!=t){if("function"==typeof t[d.$$observable])return t instanceof h.Observable&&!n?t:new e(t,n);if(o.isArray(t))return new c.ArrayObservable(t,n);if(s.isPromise(t))return new a.PromiseObservable(t,n);if("function"==typeof t[p.$$iterator]||"string"==typeof t)return new u.IteratorObservable(t,n);if(i.isArrayLike(t))return new l.ArrayLikeObservable(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")},e.prototype._subscribe=function(t){var e=this.ish,n=this.scheduler;return null==n?e[d.$$observable]().subscribe(t):e[d.$$observable]().subscribe(new f.ObserveOnSubscriber(t,n,0))},e}(h.Observable);n.FromObservable=m},{"../Observable":22,"../operator/observeOn":56,"../symbol/iterator":59,"../symbol/observable":60,"../util/isArray":66,"../util/isArrayLike":67,"../util/isPromise":70,"./ArrayLikeObservable":30,"./ArrayObservable":31,"./IteratorObservable":36,"./PromiseObservable":37}],36:[function(t,e,n){"use strict";function r(t){var e=t[l.$$iterator];if(!e&&"string"==typeof t)return new h(t);if(!e&&void 0!==t.length)return new f(t);if(!e)throw new TypeError("object is not iterable");return t[l.$$iterator]()}function o(t){var e=+t.length;return isNaN(e)?0:0!==e&&i(e)?(e=s(e)*Math.floor(Math.abs(e)),e<=0?0:e>d?d:e):e}function i(t){return"number"==typeof t&&u.root.isFinite(t)}function s(t){var e=+t;return 0===e?e:isNaN(e)?e:e<0?-1:1}var a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=t("../util/root"),c=t("../Observable"),l=t("../symbol/iterator"),p=function(t){function e(e,n){if(t.call(this),this.scheduler=n,null==e)throw new Error("iterator cannot be null.");this.iterator=r(e)}return a(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.index,n=t.hasError,r=t.iterator,o=t.subscriber;if(n)o.error(t.error);else{var i=r.next();i.done?o.complete():(o.next(i.value),t.index=e+1,o.closed?"function"==typeof r.return&&r.return():this.schedule(t))}},e.prototype._subscribe=function(t){var n=this,r=n.iterator,o=n.scheduler;if(o)return o.schedule(e.dispatch,0,{index:0,iterator:r,subscriber:t});for(;;){var i=r.next();if(i.done){t.complete();break}if(t.next(i.value),t.closed){"function"==typeof r.return&&r.return();break}}},e}(c.Observable);n.IteratorObservable=p;var h=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=t.length),this.str=t,this.idx=e,this.len=n}return t.prototype[l.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},t}(),f=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=o(t)),this.arr=t,this.idx=e,this.len=n}return t.prototype[l.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},t}(),d=Math.pow(2,53)-1},{"../Observable":22,"../symbol/iterator":59,"../util/root":72}],37:[function(t,e,n){"use strict";function r(t){var e=t.value,n=t.subscriber;n.closed||(n.next(e),n.complete())}function o(t){var e=t.err,n=t.subscriber;n.closed||n.error(e)}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=t("../util/root"),a=function(t){function e(e,n){t.call(this),this.promise=e,this.scheduler=n}return i(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e=this,n=this.promise,i=this.scheduler;if(null==i)this._isScalar?t.closed||(t.next(this.value),t.complete()):n.then(function(n){e.value=n,e._isScalar=!0,t.closed||(t.next(n),t.complete())},function(e){t.closed||t.error(e)}).then(null,function(t){s.root.setTimeout(function(){throw t})});else if(this._isScalar){if(!t.closed)return i.schedule(r,0,{value:this.value,subscriber:t})}else n.then(function(n){e.value=n,e._isScalar=!0,t.closed||t.add(i.schedule(r,0,{value:n,subscriber:t}))},function(e){t.closed||t.add(i.schedule(o,0,{err:e,subscriber:t}))}).then(null,function(t){s.root.setTimeout(function(){throw t})})},e}(t("../Observable").Observable);n.PromiseObservable=a},{"../Observable":22,"../util/root":72}],38:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e,n){t.call(this),this.value=e,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return r(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.done,n=t.value,r=t.subscriber;e?r.complete():(r.next(n),r.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}(t("../Observable").Observable);n.ScalarObservable=o},{"../Observable":22}],39:[function(t,e,n){"use strict";var r=t("./ForkJoinObservable");n.forkJoin=r.ForkJoinObservable.create},{"./ForkJoinObservable":34}],40:[function(t,e,n){"use strict";var r=t("./FromObservable");n.from=r.FromObservable.create},{"./FromObservable":35}],41:[function(t,e,n){"use strict";var r=t("./PromiseObservable");n.fromPromise=r.PromiseObservable.create},{"./PromiseObservable":37}],42:[function(t,e,n){"use strict";var r=t("../operator/merge");n.merge=r.mergeStatic},{"../operator/merge":52}],43:[function(t,e,n){"use strict";var r=t("./ArrayObservable");n.of=r.ArrayObservable.of},{"./ArrayObservable":31}],44:[function(t,e,n){"use strict";function r(t){var e=new a(t),n=this.lift(e);return e.caught=n}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../OuterSubscriber"),s=t("../util/subscribeToResult");n._catch=r;var a=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.selector,this.caught))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.selector=n,this.caught=r}return o(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(s.subscribeToResult(this,n))}},e}(i.OuterSubscriber)},{"../OuterSubscriber":24,"../util/subscribeToResult":73}],45:[function(t,e,n){"use strict";function r(){return this.lift(new o.MergeAllOperator(1))}var o=t("./mergeAll");n.concatAll=r},{"./mergeAll":53}],46:[function(t,e,n){"use strict";function r(t,e){return this.lift(new o.MergeMapOperator(t,e,1))}var o=t("./mergeMap");n.concatMap=r},{"./mergeMap":54}],47:[function(t,e,n){"use strict";function r(t,e){return this.lift(new s(t,e,this))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Subscriber");n.every=r;var s=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg,this.source))},t}(),a=function(t){function e(e,n,r,o){t.call(this,e),this.predicate=n,this.thisArg=r,this.source=o,this.index=0,this.thisArg=r||this}return o(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(i.Subscriber)},{"../Subscriber":27}],48:[function(t,e,n){"use strict";function r(t,e){return this.lift(new s(t,e))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Subscriber");n.filter=r;var s=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.predicate=n,this.thisArg=r,this.count=0,this.predicate=n}return o(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(i.Subscriber)},{"../Subscriber":27}],49:[function(t,e,n){"use strict";function r(t,e,n){return this.lift(new a(t,e,n,this))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Subscriber"),s=t("../util/EmptyError");n.first=r;var a=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,n,r,o,i){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=o,this.source=i,this.index=0,this.hasCompleted=!1,this._emitted=!1}return o(e,t),e.prototype._next=function(t){var e=this.index++;this.predicate?this._tryPredicate(t,e):this._emit(t,e)},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}n&&this._emit(t,e)},e.prototype._emit=function(t,e){this.resultSelector?this._tryResultSelector(t,e):this._emitFinal(t)},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this._emitFinal(n)},e.prototype._emitFinal=function(t){var e=this.destination;this._emitted||(this._emitted=!0,e.next(t),e.complete(),this.hasCompleted=!0)},e.prototype._complete=function(){var t=this.destination;this.hasCompleted||void 0===this.defaultValue?this.hasCompleted||t.error(new s.EmptyError):(t.next(this.defaultValue),t.complete())},e}(i.Subscriber)},{"../Subscriber":27,"../util/EmptyError":62}],50:[function(t,e,n){"use strict";function r(t,e,n){return this.lift(new a(t,e,n,this))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Subscriber"),s=t("../util/EmptyError");n.last=r;var a=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,n,r,o,i){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=o,this.source=i,this.hasValue=!1,this.index=0,void 0!==o&&(this.lastValue=o,this.hasValue=!0)}return o(e,t),e.prototype._next=function(t){var e=this.index++;if(this.predicate)this._tryPredicate(t,e);else{if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}if(n){if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this.lastValue=n,this.hasValue=!0},e.prototype._complete=function(){var t=this.destination;this.hasValue?(t.next(this.lastValue),t.complete()):t.error(new s.EmptyError)},e}(i.Subscriber)},{"../Subscriber":27,"../util/EmptyError":62}],51:[function(t,e,n){"use strict";function r(t,e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new s(t,e))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Subscriber");n.map=r;var s=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.thisArg))},t}();n.MapOperator=s;var a=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.count=0,this.thisArg=r||this}return o(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.Subscriber)},{"../Subscriber":27}],52:[function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return this.lift.call(o.apply(void 0,[this].concat(t)))}function o(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,o=t[t.length-1];return u.isScheduler(o)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof i.Observable?t[0]:new s.ArrayObservable(t,r).lift(new a.MergeAllOperator(n))}var i=t("../Observable"),s=t("../observable/ArrayObservable"),a=t("./mergeAll"),u=t("../util/isScheduler");n.merge=r,n.mergeStatic=o},{"../Observable":22,"../observable/ArrayObservable":31,"../util/isScheduler":71,"./mergeAll":53}],53:[function(t,e,n){"use strict";function r(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),this.lift(new a(t))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../OuterSubscriber"),s=t("../util/subscribeToResult");n.mergeAll=r;var a=function(){function t(t){this.concurrent=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.concurrent))},t}();n.MergeAllOperator=a;var u=function(t){function e(e,n){t.call(this,e),this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0}return o(e,t),e.prototype._next=function(t){this.active<this.concurrent?(this.active++,this.add(s.subscribeToResult(this,t))):this.buffer.push(t)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(i.OuterSubscriber);n.MergeAllSubscriber=u},{"../OuterSubscriber":24,"../util/subscribeToResult":73}],54:[function(t,e,n){"use strict";function r(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"number"==typeof e&&(n=e,e=null),this.lift(new a(t,e,n))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../util/subscribeToResult"),s=t("../OuterSubscriber");n.mergeMap=r;var a=function(){function t(t,e,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector,this.concurrent))},t}();n.MergeMapOperator=a;var u=function(t){function e(e,n,r,o){void 0===o&&(o=Number.POSITIVE_INFINITY),t.call(this,e),this.project=n,this.resultSelector=r,this.concurrent=o,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return o(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){this.add(i.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,o){this.resultSelector?this._notifyResultSelector(t,e,n,r):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,n,r){var o;try{o=this.resultSelector(t,e,n,r)}catch(t){return void this.destination.error(t)}this.destination.next(o)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(s.OuterSubscriber);n.MergeMapSubscriber=u},{"../OuterSubscriber":24,"../util/subscribeToResult":73}],55:[function(t,e,n){"use strict";function r(t,e){var n;if(n="function"==typeof t?t:function(){return t},"function"==typeof e)return this.lift(new i(n,e));var r=Object.create(this,o.connectableObservableDescriptor);return r.source=this,r.subjectFactory=n,r}var o=t("../observable/ConnectableObservable");n.multicast=r;var i=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),o=n(r).subscribe(t);return o.add(e.subscribe(r)),o},t}();n.MulticastOperator=i},{"../observable/ConnectableObservable":32}],56:[function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=0),this.lift(new a(t,e))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Subscriber"),s=t("../Notification");n.observeOn=r;var a=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.scheduler,this.delay))},t}();n.ObserveOnOperator=a;var u=function(t){function e(e,n,r){void 0===r&&(r=0),t.call(this,e),this.scheduler=n,this.delay=r}return o(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new c(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(s.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(s.Notification.createError(t))},e.prototype._complete=function(){this.scheduleMessage(s.Notification.createComplete())},e}(i.Subscriber);n.ObserveOnSubscriber=u;var c=function(){function t(t,e){this.notification=t,this.destination=e}return t}();n.ObserveOnMessage=c},{"../Notification":21,"../Subscriber":27}],57:[function(t,e,n){"use strict";function r(t,e){var n=!1;return arguments.length>=2&&(n=!0),this.lift(new s(t,e,n))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Subscriber");n.reduce=r;var s=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 a(t,this.accumulator,this.seed,this.hasSeed))},t}();n.ReduceOperator=s;var a=function(t){function e(e,n,r,o){t.call(this,e),this.accumulator=n,this.hasSeed=o,this.index=0,this.hasValue=!1,this.acc=r,this.hasSeed||this.index++}return o(e,t),e.prototype._next=function(t){this.hasValue||(this.hasValue=this.hasSeed)?this._tryReduce(t):(this.acc=t,this.hasValue=!0)},e.prototype._tryReduce=function(t){var e;try{e=this.accumulator(this.acc,t,this.index++)}catch(t){return void this.destination.error(t)}this.acc=e},e.prototype._complete=function(){(this.hasValue||this.hasSeed)&&this.destination.next(this.acc),this.destination.complete()},e}(i.Subscriber);n.ReduceSubscriber=a},{"../Subscriber":27}],58:[function(t,e,n){"use strict";function r(){return new s.Subject}function o(){return i.multicast.call(this,r).refCount()}var i=t("./multicast"),s=t("../Subject");n.share=o},{"../Subject":25,"./multicast":55}],59:[function(t,e,n){"use strict";function r(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var n=t.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=t.Map;if(r)for(var o=Object.getOwnPropertyNames(r.prototype),i=0;i<o.length;++i){var s=o[i];if("entries"!==s&&"size"!==s&&r.prototype[s]===r.prototype.entries)return s}return"@@iterator"}var o=t("../util/root");n.symbolIteratorPonyfill=r,n.$$iterator=r(o.root)},{"../util/root":72}],60:[function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}var o=t("../util/root");n.getSymbolObservable=r,n.$$observable=r(o.root)},{"../util/root":72}],61:[function(t,e,n){"use strict";var r=t("../util/root").root.Symbol;n.$$rxSubscriber="function"==typeof r&&"function"==typeof r.for?r.for("rxSubscriber"):"@@rxSubscriber"},{"../util/root":72}],62:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(){var e=t.call(this,"no elements in sequence");this.name=e.name="EmptyError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);n.EmptyError=o},{}],63:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},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 r(e,t),e}(Error);n.ObjectUnsubscribedError=o},{}],64:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e){t.call(this),this.errors=e;var n=Error.call(this,e?e.length+" errors occurred during unsubscription:\n  "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n  "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return r(e,t),e}(Error);n.UnsubscriptionError=o},{}],65:[function(t,e,n){"use strict";n.errorObject={e:{}}},{}],66:[function(t,e,n){"use strict";n.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},{}],67:[function(t,e,n){"use strict";n.isArrayLike=function(t){return t&&"number"==typeof t.length}},{}],68:[function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.isFunction=r},{}],69:[function(t,e,n){"use strict";function r(t){return null!=t&&"object"==typeof t}n.isObject=r},{}],70:[function(t,e,n){"use strict";function r(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.isPromise=r},{}],71:[function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.isScheduler=r},{}],72:[function(t,e,n){(function(t){"use strict";if(n.root="object"==typeof window&&window.window===window&&window||"object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t,!n.root)throw new Error("RxJS could not find any global context (window, self, global)")}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],73:[function(t,e,n){"use strict";function r(t,e,n,r){var h=new l.InnerSubscriber(t,n,r);if(h.closed)return null;if(e instanceof u.Observable)return e._isScalar?(h.next(e.value),h.complete(),null):e.subscribe(h);if(i.isArrayLike(e)){for(var f=0,d=e.length;f<d&&!h.closed;f++)h.next(e[f]);h.closed||h.complete()}else{if(s.isPromise(e))return e.then(function(t){h.closed||(h.next(t),h.complete())},function(t){return h.error(t)}).then(null,function(t){o.root.setTimeout(function(){throw t})}),h;if(e&&"function"==typeof e[c.$$iterator])for(var m=e[c.$$iterator]();;){var y=m.next();if(y.done){h.complete();break}if(h.next(y.value),h.closed)break}else if(e&&"function"==typeof e[p.$$observable]){var v=e[p.$$observable]();if("function"==typeof v.subscribe)return v.subscribe(new l.InnerSubscriber(t,n,r));h.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var g="You provided "+(a.isObject(e)?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";h.error(new TypeError(g))}}return null}var o=t("./root"),i=t("./isArrayLike"),s=t("./isPromise"),a=t("./isObject"),u=t("../Observable"),c=t("../symbol/iterator"),l=t("../InnerSubscriber"),p=t("../symbol/observable");n.subscribeToResult=r},{"../InnerSubscriber":20,"../Observable":22,"../symbol/iterator":59,"../symbol/observable":60,"./isArrayLike":67,"./isObject":69,"./isPromise":70,"./root":72}],74:[function(t,e,n){"use strict";function r(t,e,n){if(t){if(t instanceof o.Subscriber)return t;if(t[i.$$rxSubscriber])return t[i.$$rxSubscriber]()}return t||e||n?new o.Subscriber(t,e,n):new o.Subscriber(s.empty)}var o=t("../Subscriber"),i=t("../symbol/rxSubscriber"),s=t("../Observer");n.toSubscriber=r},{"../Observer":23,"../Subscriber":27,"../symbol/rxSubscriber":61}],75:[function(t,e,n){"use strict";function r(){try{return i.apply(this,arguments)}catch(t){return s.errorObject.e=t,s.errorObject}}function o(t){return i=t,r}var i,s=t("./errorObject");n.tryCatch=o},{"./errorObject":65}]},{},[10])(10)});
\ No newline at end of file
+!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).main=t()}}(function(){return function t(e,r,n){function o(s,a){if(!r[s]){if(!e[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(i)return i(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[s]={exports:{}};e[s][0].call(l.exports,function(t){var r=e[s][1][t];return o(r||t)},l,l.exports,t,e,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)o(n[s]);return o}({1:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(r,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http");t("rxjs/add/operator/map");var a=t("@angular/router"),u=function(){function t(t,e,r){this.http=t,this.route=e,this.router=r,this.mode=null,this.action={},this.statusList=[],this.actionPagesList=[],this.lang={},this.categoriesList=[],this.keywordsList=[],this.loading=!1}return t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > <a onclick='location.hash = \"/administration/actions\"' style='cursor: pointer'>Actions</a> > Modification")},t.prototype.prepareActions=function(){$j("#inner_content").remove()},t.prototype.ngOnInit=function(){var t=this;this.prepareActions(),this.loading=!0,this.coreUrl=angularGlobals.coreUrl,this.updateBreadcrumb(angularGlobals.applicationName),this.route.params.subscribe(function(e){void 0===e.id?(t.mode="create",t.http.get(t.coreUrl+"rest/initAction").map(function(t){return t.json()}).subscribe(function(e){t.action=e.action,t.lang=e.lang,t.lang.pageTitle=t.lang.add+" "+t.lang.action,t.categoriesList=e.categoriesList,t.statusList=e.statusList,t.actionPagesList=e.action_pagesList,t.keywordsList=e.keywordsList,t.loading=!1,setTimeout(function(){$j("select").chosen({width:"100%",disable_search_threshold:10,search_contains:!0})},0)})):(t.mode="update",t.http.get(t.coreUrl+"rest/administration/actions/"+e.id).map(function(t){return t.json()}).subscribe(function(e){t.lang=e.lang,t.action=e.action,t.lang.pageTitle=t.lang.modify_action+" : "+t.action.id,t.categoriesList=e.categoriesList,t.statusList=e.statusList,t.actionPagesList=e.action_pagesList,t.keywordsList=e.keywordsList,t.loading=!1,setTimeout(function(){$j("select").chosen({width:"100%",disable_search_threshold:10,search_contains:!0})},0)}))})},t.prototype.onSubmit=function(){var t=this;this.action.actionCategories=$j("#categorieslist").chosen().val(),this.action.id_status=$j("#status").chosen().val(),this.action.keyword=$j("#keyword").chosen().val(),this.action.action_page=$j("#action_page").chosen().val(),"create"==this.mode?this.http.post(this.coreUrl+"rest/actions",this.action).map(function(t){return t.json()}).subscribe(function(e){t.router.navigate(["/administration/actions"]),successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)}):"update"==this.mode&&this.http.put(this.coreUrl+"rest/actions/"+this.action.id,this.action).map(function(t){return t.json()}).subscribe(function(e){t.router.navigate(["/administration/actions"]),successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.selectAll=function(t){var e=t.target.getAttribute("data-target");$j("#"+e+" option").prop("selected",!0),$j("#"+e).trigger("chosen:updated")},t.prototype.unselectAll=function(t){var e=t.target.getAttribute("data-target");$j("#"+e+" option").prop("selected",!1),$j("#"+e).trigger("chosen:updated")},t}();u=n([i.Component({templateUrl:angularGlobals["action-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","css/action-administration.component.css"]}),o("design:paramtypes",[s.Http,a.ActivatedRoute,a.Router])],u),r.ActionAdministrationComponent=u},{"@angular/core":20,"@angular/http":22,"@angular/router":25,"rxjs/add/operator/map":36}],2:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(r,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http");t("rxjs/add/operator/map");var a=function(){function t(t){this.http=t,this.actions=[],this.titles=[],this.lang={},this.resultInfo="",this.loading=!1}return t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > Actions")},t.prototype.ngOnInit=function(){var t=this;this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.updateBreadcrumb(angularGlobals.applicationName),$j("#inner_content").remove(),this.http.get(this.coreUrl+"rest/administration/actions").map(function(t){return t.json()}).subscribe(function(e){console.log("toto"),t.actions=e.actions,t.titles=e.titles,t.lang=e.lang,setTimeout(function(){t.table=$j("#actionsTable").DataTable({dom:'<"datatablesLeft"l><"datatablesRight"f><"datatablesCenter"p>rt<"datatablesCenter"i><"clear">',lengthMenu:[10,25,50,75,100],oLanguage:{sLengthMenu:"<i class='fa fa-bars'></i> _MENU_",sZeroRecords:t.lang.noResult,sInfo:"_START_ - _END_ / _TOTAL_ "+t.lang.record,sSearch:"",oPaginate:{sFirst:"<<",sLast:">>",sNext:t.lang.next+" <i class='fa fa-caret-right'></i>",sPrevious:"<i class='fa fa-caret-left'></i> "+t.lang.previous},sInfoEmpty:t.lang.noRecord,sInfoFiltered:"(filtré de _MAX_ "+t.lang.record+")"},order:[[1,"asc"]],columnDefs:[{orderable:!1,targets:4}],fnInitComplete:function(){$j("#actionsTable").show()},stateSave:!0}),$j(".dataTables_filter input").attr("placeholder",t.lang.search),$j("dataTables_filter input").addClass("form-control"),$j(".datatablesLeft").css({float:"left"}),$j(".datatablesCenter").css({"text-align":"center"}),$j(".datatablesRight").css({float:"right"})},0),t.loading=!1},function(t){console.log(t),location.href="index.php"})},t.prototype.deleteAction=function(t){var e=this;confirm(this.lang.deleteMsg+" ?")&&this.http.delete(this.coreUrl+"rest/actions/"+t).map(function(t){return t.json()}).subscribe(function(r){for(var n=e.actions,o=0;o<n.length;o++)n[o].id==t&&n.splice(o,1);e.table.row($j("#"+t)).remove().draw(),e.resultInfo=e.lang.delete_action,successNotification(r.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t}();a=n([i.Component({templateUrl:angularGlobals["actions-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"]}),o("design:paramtypes",[s.Http])],a),r.ActionsAdministrationComponent=a},{"@angular/core":20,"@angular/http":22,"rxjs/add/operator/map":36}],3:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(r,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http"),a=t("@angular/router");t("rxjs/add/operator/map");var u=function(){function t(t,e){this.http=t,this.router=e,this.applicationServices=[],this.modulesServices=[],this.loading=!1}return t.prototype.prepareAdministration=function(){$j("#inner_content").remove(),$j("#menunav").hide(),$j("#divList").remove(),$j("#magicContactsTable").remove(),$j("#manageBasketsOrderTable").remove(),$j("#controlParamTechnicTable").remove(),$j("#container").width("99%"),$j("#content h1")[0]&&$j("#content h1")[0]!=$j("my-app h1")[0]&&$j("#content h1")[0].remove()},t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > Administration")},t.prototype.ngOnInit=function(){var t=this;this.prepareAdministration(),this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/administration").map(function(t){return t.json()}).subscribe(function(e){t.applicationServices=e.application,t.modulesServices=e.modules,t.loading=!1})},t.prototype.goToSpecifiedAdministration=function(t){"true"==t.angular?this.router.navigate([t.servicepage]):window.location.assign(t.servicepage)},t}();u=n([i.Component({templateUrl:angularGlobals.administrationView,styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"]}),o("design:paramtypes",[s.Http,a.Router])],u),r.AdministrationComponent=u},{"@angular/core":20,"@angular/http":22,"@angular/router":25,"rxjs/add/operator/map":36}],4:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(r,"__esModule",{value:!0});var o=t("@angular/core"),i=function(){function t(){}return t}();i=n([o.Component({selector:"my-app",template:'<div id="resultInfo" class="fade" style="display:none;"></div><router-outlet></router-outlet>',styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"]})],i),r.AppComponent=i},{"@angular/core":20}],5:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(r,"__esModule",{value:!0});var o=t("@angular/core"),i=t("@angular/platform-browser"),s=t("@angular/router"),a=t("@angular/http"),u=t("@angular/forms"),c=t("./app.component"),l=t("./administration.component"),p=t("./users-administration.component"),h=t("./user-administration.component"),f=t("./status-list-administration.component"),d=t("./status-administration.component"),m=t("./actions-administration.component"),y=t("./action-administration.component"),v=t("./parameter-administration.component"),g=t("./parameters-administration.component"),_=t("./priorities-administration.component"),b=t("./priority-administration.component"),w=t("./profile.component"),C=t("./signature-book.component"),E=t("./reports.component"),S=function(){function t(){}return t}();S=n([o.NgModule({imports:[i.BrowserModule,u.FormsModule,s.RouterModule.forRoot([{path:"administration",component:l.AdministrationComponent},{path:"administration/users",component:p.UsersAdministrationComponent},{path:"administration/users/new",component:h.UserAdministrationComponent},{path:"administration/users/:id",component:h.UserAdministrationComponent},{path:"administration/status",component:f.StatusListAdministrationComponent},{path:"administration/status/new",component:d.StatusAdministrationComponent},{path:"administration/status/:identifier",component:d.StatusAdministrationComponent},{path:"profile",component:w.ProfileComponent},{path:"administration/parameters",component:g.ParametersAdministrationComponent},{path:"administration/parameters/new",component:v.ParameterAdministrationComponent},{path:"administration/parameters/:id",component:v.ParameterAdministrationComponent},{path:"administration/reports",component:E.ReportsComponent},{path:"administration/priorities",component:_.PrioritiesAdministrationComponent},{path:"administration/priorities/new",component:b.PriorityAdministrationComponent},{path:"administration/priorities/:id",component:b.PriorityAdministrationComponent},{path:":basketId/signatureBook/:resId",component:C.SignatureBookComponent},{path:"administration/actions",component:m.ActionsAdministrationComponent},{path:"administration/actions/new",component:y.ActionAdministrationComponent},{path:"administration/actions/:id",component:y.ActionAdministrationComponent},{path:"**",redirectTo:"",pathMatch:"full"}],{useHash:!0}),a.HttpModule],declarations:[c.AppComponent,y.ActionAdministrationComponent,m.ActionsAdministrationComponent,l.AdministrationComponent,E.ReportsComponent,p.UsersAdministrationComponent,h.UserAdministrationComponent,d.StatusAdministrationComponent,f.StatusListAdministrationComponent,_.PrioritiesAdministrationComponent,b.PriorityAdministrationComponent,g.ParametersAdministrationComponent,v.ParameterAdministrationComponent,w.ProfileComponent,C.SignatureBookComponent,C.SafeUrlPipe],bootstrap:[c.AppComponent]})],S),r.AppModule=S},{"./action-administration.component":1,"./actions-administration.component":2,"./administration.component":3,"./app.component":4,"./parameter-administration.component":6,"./parameters-administration.component":7,"./priorities-administration.component":8,"./priority-administration.component":9,"./profile.component":10,"./reports.component":11,"./signature-book.component":12,"./status-administration.component":13,"./status-list-administration.component":14,"./user-administration.component":15,"./users-administration.component":16,"@angular/core":20,"@angular/forms":21,"@angular/http":22,"@angular/platform-browser":24,"@angular/router":25}],6:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(r,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http");t("rxjs/add/operator/map");var a=t("@angular/router"),u=function(){function t(t,e,r){this.http=t,this.route=e,this.router=r,this.creationMode=!0,this.parameter={},this.lang="",this.resultInfo="",this.loading=!1}return t.prototype.ngOnInit=function(){var t=this;this.loading=!0,this.coreUrl=angularGlobals.coreUrl,this.prepareParameter(),this.updateBreadcrumb(angularGlobals.applicationName),this.route.params.subscribe(function(e){void 0===e.id?(t.creationMode=!0,t.http.get(t.coreUrl+"rest/administration/parameters/new").map(function(t){return t.json()}).subscribe(function(e){t.lang=e.lang,t.type="string",t.pageTitle=t.lang.newParameter,t.loading=!1},function(){location.href="index.php"})):(t.creationMode=!1,t.http.get(t.coreUrl+"rest/administration/parameters/"+e.id).map(function(t){return t.json()}).subscribe(function(e){t.parameter=e.parameter,t.lang=e.lang,t.type=e.type,t.loading=!1},function(){location.href="index.php"}))})},t.prototype.prepareParameter=function(){$j("#inner_content").remove()},t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > <a onclick='location.hash = \"/administration/parameters\"' style='cursor: pointer'>Paramètres</a> > Modification")},t.prototype.onSubmit=function(){var t=this;"date"==this.type?(this.parameter.param_value_date=$j("#paramValue").val(),this.parameter.param_value_int=null,this.parameter.param_value_string=null):"int"==this.type?(this.parameter.param_value_date=null,this.parameter.param_value_string=null):"string"==this.type&&(this.parameter.param_value_date=null,this.parameter.param_value_int=null),1==this.creationMode?this.http.post(this.coreUrl+"rest/parameters",this.parameter).map(function(t){return t.json()}).subscribe(function(e){t.router.navigate(["administration/parameters"]),successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)}):0==this.creationMode&&this.http.put(this.coreUrl+"rest/parameters/"+this.parameter.id,this.parameter).map(function(t){return t.json()}).subscribe(function(e){t.router.navigate(["administration/parameters"]),successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t}();u=n([i.Component({templateUrl:angularGlobals["parameter-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"]}),o("design:paramtypes",[s.Http,a.ActivatedRoute,a.Router])],u),r.ParameterAdministrationComponent=u},{"@angular/core":20,"@angular/http":22,"@angular/router":25,"rxjs/add/operator/map":36}],7:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(r,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http");t("rxjs/add/operator/map");var a=function(){function t(t){this.http=t,this.lang="",this.resultInfo="",this.loading=!1}return t.prototype.prepareParameter=function(){$j("#inner_content").remove()},t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > Paramètres"},t.prototype.ngOnInit=function(){var t=this;this.coreUrl=angularGlobals.coreUrl,this.prepareParameter(),this.updateBreadcrumb(angularGlobals.applicationName),this.http.get(this.coreUrl+"rest/administration/parameters").map(function(t){return t.json()}).subscribe(function(e){e.errors?($j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.parametersList=e.parametersList,t.lang=e.lang,setTimeout(function(){t.table=$j("#paramsTable").DataTable({dom:'<"datatablesLeft"l><"datatablesRight"f><"datatablesCenter"p>rt<"datatablesCenter"i><"clear">',lengthMenu:[10,25,50,75,100],oLanguage:{sLengthMenu:"<i class='fa fa-bars'></i> _MENU_",sZeroRecords:t.lang.noResult,sInfo:"_START_ - _END_ / _TOTAL_ "+t.lang.record,sSearch:"",oPaginate:{sFirst:"<<",sLast:">>",sNext:t.lang.next+" <i class='fa fa-caret-right'></i>",sPrevious:"<i class='fa fa-caret-left'></i> "+t.lang.previous},sInfoEmpty:t.lang.noRecord,sInfoFiltered:"(filtré de _MAX_ "+t.lang.record+")"},order:[[0,"asc"]],columnDefs:[{orderable:!1,targets:3}],fnInitComplete:function(){$j("#paramsTable").show()},stateSave:!0}),$j(".dataTables_filter input").attr("placeholder",t.lang.search),$j("dataTables_filter input").addClass("form-control"),$j(".datatablesLeft").css({float:"left"}),$j(".datatablesCenter").css({"text-align":"center"}),$j(".datatablesRight").css({float:"right"})},0),t.loading=!1)})},t.prototype.goUrl=function(){location.href="index.php?admin=parameters&page=control_param_technic"},t.prototype.deleteParameter=function(t){var e=this;confirm(this.lang.deleteConfirm+" "+t+"?")&&this.http.delete(this.coreUrl+"rest/parameters/"+t).map(function(t){return t.json()}).subscribe(function(r){for(var n=0;n<e.parametersList.length;n++)e.parametersList[n].id==t&&e.parametersList.splice(n,1);e.table.row($j("#"+t)).remove().draw(),successNotification(r.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t}();a=n([i.Component({templateUrl:angularGlobals["parameters-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","css/parameters-administration.component.css"]}),o("design:paramtypes",[s.Http])],a),r.ParametersAdministrationComponent=a},{"@angular/core":20,"@angular/http":22,"rxjs/add/operator/map":36}],8:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(r,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http");t("rxjs/add/operator/map");var a=function(){function t(t){this.http=t,this.priorities=[],this.lang={},this.loading=!1}return t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > Priorités")},t.prototype.ngOnInit=function(){var t=this;this.coreUrl=angularGlobals.coreUrl,this.updateBreadcrumb(angularGlobals.applicationName),this.loading=!0,this.http.get(this.coreUrl+"rest/administration/priorities").map(function(t){return t.json()}).subscribe(function(e){t.priorities=e.priorities,t.lang=e.lang,t.loading=!1},function(){location.href="index.php"})},t}();a=n([i.Component({templateUrl:angularGlobals["priorities-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"]}),o("design:paramtypes",[s.Http])],a),r.PrioritiesAdministrationComponent=a},{"@angular/core":20,"@angular/http":22,"rxjs/add/operator/map":36}],9:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(r,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http"),a=t("@angular/router");t("rxjs/add/operator/map");var u=function(){function t(t,e,r){this.http=t,this.route=e,this.router=r,this.priority={working_days:!1},this.lang={},this.loading=!1}return t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > <a onclick='location.hash = \"/administration/priorities\"' style='cursor: pointer'>Priorités</a>")},t.prototype.ngOnInit=function(){var t=this;this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.route.params.subscribe(function(e){void 0===e.id?(t.creationMode=!0,t.http.get(t.coreUrl+"rest/administration/priorities/new").map(function(t){return t.json()}).subscribe(function(e){t.lang=e.lang,t.loading=!1},function(){location.href="index.php"})):(t.creationMode=!1,t.id=e.id,t.http.get(t.coreUrl+"rest/administration/priorities/"+t.id).map(function(t){return t.json()}).subscribe(function(e){t.priority=e.priority,t.lang=e.lang,t.loading=!1},function(){location.href="index.php"}))})},t.prototype.onSubmit=function(){this.creationMode?this.http.post(this.coreUrl+"rest/priorities",this.priority).map(function(t){return t.json()}).subscribe(function(t){successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)}):this.http.put(this.coreUrl+"rest/priorities/"+this.id,this.priority).map(function(t){return t.json()}).subscribe(function(t){successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t}();u=n([i.Component({templateUrl:angularGlobals["priority-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"]}),o("design:paramtypes",[s.Http,a.ActivatedRoute,a.Router])],u),r.PriorityAdministrationComponent=u},{"@angular/core":20,"@angular/http":22,"@angular/router":25,"rxjs/add/operator/map":36}],10:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(r,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http");t("rxjs/add/operator/map");var a=function(){function t(t,e){var r=this;this.http=t,this.zone=e,this.user={lang:{},baskets:[]},this.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},this.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},this.mailSignatureModel={selected:0,htmlBody:"",title:""},this.userAbsenceModel=[],this.showPassword=!1,this.selectedSignature=-1,this.selectedSignatureLabel="",this.loading=!1,window.angularProfileComponent={componentAfterUpload:function(t){return r.processAfterUpload(t)}}}return t.prototype.prepareProfile=function(){$j("#inner_content").remove(),$j("#menunav").hide(),$j("#divList").remove(),$j("#magicContactsTable").remove(),$j("#manageBasketsOrderTable").remove(),$j("#controlParamTechnicTable").remove(),$j("#container").width("99%"),$j("#content h1")[0]&&$j("#content h1")[0]!=$j("my-app h1")[0]&&$j("#content h1")[0].remove(),tinymce.baseURL="../../node_modules/tinymce",tinymce.suffix=".min",tinymce.init({selector:"textarea#emailSignature",statusbar:!1,language:"fr_FR",language_url:"tools/tinymce/langs/fr_FR.js",height:"200",plugins:["textcolor"],external_plugins:{bdesk_photo:"../../apps/maarch_entreprise/tools/tinymce/bdesk_photo/plugin.min.js"},menubar:!1,toolbar:"undo | bold italic underline | alignleft aligncenter alignright | bdesk_photo | forecolor",theme_buttons1_add:"fontselect,fontsizeselect",theme_buttons2_add_before:"cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",theme_buttons2_add:"separator,insertdate,inserttime,preview,separator,forecolor,backcolor",theme_buttons3_add_before:"tablecontrols,separator",theme_buttons3_add:"separator,print,separator,ltr,rtl,separator,fullscreen,separator,insertlayer,moveforward,movebackward,absolut",theme_toolbar_align:"left",theme_advanced_toolbar_location:"top",theme_styles:"Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1"})},t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > Profil")},t.prototype.ngOnInit=function(){var t=this;this.prepareProfile(),this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/users/profile").map(function(t){return t.json()}).subscribe(function(e){t.user=e,setTimeout(function(){$j("#absenceUser").typeahead({order:"asc",display:"formattedUser",templateValue:"{{user_id}}",source:{ajax:{type:"GET",dataType:"json",url:t.coreUrl+"rest/users/autocompleter"}}})},0),t.loading=!1})},t.prototype.processAfterUpload=function(t){var e=this;this.zone.run(function(){return e.resfreshUpload(t)})},t.prototype.resfreshUpload=function(t){this.signatureModel.size<=2e6?(this.signatureModel.base64=t.replace(/^data:.*?;base64,/,""),this.signatureModel.base64ForJs=t):(this.signatureModel.name="",this.signatureModel.size=0,this.signatureModel.type="",this.signatureModel.base64="",this.signatureModel.base64ForJs="",errorNotification("Taille maximum de fichier dépassée (2 MB)"))},t.prototype.displayPassword=function(){this.showPassword=!this.showPassword},t.prototype.clickOnUploader=function(t){$j("#"+t).click()},t.prototype.uploadSignatureTrigger=function(t){if(t.target.files&&t.target.files[0]){var e=new FileReader;this.signatureModel.name=t.target.files[0].name,this.signatureModel.size=t.target.files[0].size,this.signatureModel.type=t.target.files[0].type,""==this.signatureModel.label&&(this.signatureModel.label=this.signatureModel.name),e.readAsDataURL(t.target.files[0]),e.onload=function(t){window.angularProfileComponent.componentAfterUpload(t.target.result)}}},t.prototype.displaySignatureEditionForm=function(t){this.selectedSignature=t,this.selectedSignatureLabel=this.user.signatures[t].signature_label},t.prototype.changeEmailSignature=function(){var t=$j("#emailSignaturesSelect").prop("selectedIndex");this.mailSignatureModel.selected=t,t>0?(tinymce.get("emailSignature").setContent(this.user.emailSignatures[t-1].html_body),this.mailSignatureModel.title=this.user.emailSignatures[t-1].title):(tinymce.get("emailSignature").setContent(""),this.mailSignatureModel.title="")},t.prototype.addBasketRedirection=function(){var t=$j("#selectBasketAbsenceUser option:selected").index();t>0&&(this.userAbsenceModel.push({basketId:this.user.baskets[t-1].basket_id,basketName:this.user.baskets[t-1].basket_name,virtual:this.user.baskets[t-1].is_virtual,basketOwner:this.user.baskets[t-1].basket_owner,newUser:$j("#absenceUser")[0].value,index:t-1}),this.user.baskets[t-1].disabled=!0,$j("#selectBasketAbsenceUser option:eq(0)").prop("selected",!0),$j("#absenceUser")[0].value="")},t.prototype.delBasketRedirection=function(t){this.user.baskets[this.userAbsenceModel[t].index].disabled=!1,this.userAbsenceModel.splice(t,1)},t.prototype.activateAbsence=function(){var t=this;this.http.post(this.coreUrl+"rest/users/"+this.user.user_id+"/baskets/absence",this.userAbsenceModel).map(function(t){return t.json()}).subscribe(function(){t.userAbsenceModel=[],location.search="?display=true&page=logout&abs_mode"},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.updatePassword=function(){var t=this;this.http.put(this.coreUrl+"rest/currentUser/password",this.passwordModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?errorNotification(e.errors):(t.showPassword=!1,t.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},successNotification(e.success))},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.submitEmailSignature=function(){var t=this;this.mailSignatureModel.htmlBody=tinymce.get("emailSignature").getContent(),this.http.post(this.coreUrl+"rest/currentUser/emailSignature",this.mailSignatureModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?errorNotification(e.errors):(t.user.emailSignatures=e.emailSignatures,t.mailSignatureModel={selected:0,htmlBody:"",title:""},tinymce.get("emailSignature").setContent(""),successNotification(e.success))})},t.prototype.updateEmailSignature=function(){var t=this;this.mailSignatureModel.htmlBody=tinymce.get("emailSignature").getContent();var e=this.user.emailSignatures[this.mailSignatureModel.selected-1].id;this.http.put(this.coreUrl+"rest/currentUser/emailSignature/"+e,this.mailSignatureModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?errorNotification(e.errors):(t.user.emailSignatures[t.mailSignatureModel.selected-1].title=e.emailSignature.title,t.user.emailSignatures[t.mailSignatureModel.selected-1].html_body=e.emailSignature.html_body,successNotification(e.success))})},t.prototype.deleteEmailSignature=function(){var t=this;if(confirm("Voulez-vous vraiment supprimer la signature de mail ?")){var e=this.user.emailSignatures[this.mailSignatureModel.selected-1].id;this.http.delete(this.coreUrl+"rest/currentUser/emailSignature/"+e).map(function(t){return t.json()}).subscribe(function(e){e.errors?errorNotification(e.errors):(t.user.emailSignatures=e.emailSignatures,t.mailSignatureModel={selected:0,htmlBody:"",title:""},tinymce.get("emailSignature").setContent(""),successNotification(e.success))})}},t.prototype.submitSignature=function(){var t=this;this.http.post(this.coreUrl+"rest/users/"+this.user.id+"/signatures",this.signatureModel).map(function(t){return t.json()}).subscribe(function(e){t.user.signatures=e.signatures,t.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.updateSignature=function(){var t=this,e=this.user.signatures[this.selectedSignature].id;this.http.put(this.coreUrl+"rest/users/"+this.user.id+"/signatures/"+e,{label:this.selectedSignatureLabel}).map(function(t){return t.json()}).subscribe(function(e){t.user.signatures[t.selectedSignature].signature_label=e.signature.signature_label,t.selectedSignature=-1,t.selectedSignatureLabel="",successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.deleteSignature=function(t){var e=this;confirm("Voulez-vous vraiment supprimer la signature ?")&&this.http.delete(this.coreUrl+"rest/users/"+this.user.id+"/signatures/"+t).map(function(t){return t.json()}).subscribe(function(t){e.user.signatures=t.signatures,successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.onSubmit=function(){this.http.put(this.coreUrl+"rest/users/profile",this.user).map(function(t){return t.json()}).subscribe(function(t){successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t}();a=n([i.Component({templateUrl:angularGlobals.profileView,styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","css/profile.component.css"]}),o("design:paramtypes",[s.Http,i.NgZone])],a),r.ProfileComponent=a},{"@angular/core":20,"@angular/http":22,"rxjs/add/operator/map":36}],11:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(r,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http");t("rxjs/add/operator/map");var a=function(){function t(t){this.http=t,this.test42="Ptit test OKLM",this.arrayArgsPut=[],this.lang=[]}return t.prototype.prepareState=function(){$j("#inner_content").remove()},t.prototype.ngOnInit=function(){var t=this;this.prepareState(),this.coreUrl=angularGlobals.coreUrl,this.http.get(this.coreUrl+"rest/report/groups").map(function(t){return t.json()}).subscribe(function(e){t.groups=e.group,t.lang=e.lang})},t.prototype.loadGroup=function(){var t=this;this.http.get(this.coreUrl+"rest/report/groups/"+this.groups[$j("#group_id").prop("selectedIndex")-1].group_id).map(function(t){return t.json()}).subscribe(function(e){t.checkboxes=e,console.log(t.checkboxes[0].id)}),$j("#formCategoryId").removeClass("hide")},t.prototype.clickOnCategory=function(t){$j(".category").addClass("hide"),$j("#"+t).removeClass("hide")},t.prototype.updateDB=function(){for(var t=this,e=0;e<$j(":checkbox").length;e++)this.arrayArgsPut.push({id:this.checkboxes[e].id,checked:$j(":checkbox")[e].checked});console.log(this.arrayArgsPut),this.http.put(this.coreUrl+"rest/report/groups/"+this.groups[$j("#group_id").prop("selectedIndex")-1].group_id,this.arrayArgsPut).map(function(t){return t.json()}).subscribe(function(e){t.arrayArgsPut=[]})},t}();a=n([i.Component({templateUrl:"Views/reports.component.html",styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","../maarch_entreprise/css/reports.css"]}),o("design:paramtypes",[s.Http])],a),r.ReportsComponent=a},{"@angular/core":20,"@angular/http":22,"rxjs/add/operator/map":36}],12:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(r,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http"),a=t("@angular/platform-browser"),u=t("@angular/router");t("rxjs/add/operator/map");var c=function(){function t(t){this.sanitizer=t}return t.prototype.transform=function(t){return this.sanitizer.bypassSecurityTrustResourceUrl(t)},t}();c=n([i.Pipe({name:"safeUrl"}),o("design:paramtypes",[a.DomSanitizer])],c),r.SafeUrlPipe=c;var l=function(){function t(t,e,r,n){var o=this;this.http=t,this.route=e,this.router=r,this.zone=n,this.signatureBook={currentAction:{},consigne:"",documents:[],attachments:[],resList:[],resListIndex:0,lang:{}},this.rightSelectedThumbnail=0,this.leftSelectedThumbnail=0,this.rightViewerLink="",this.leftViewerLink="",this.headerTab=1,this.showTopRightPanel=!1,this.showTopLeftPanel=!1,this.showResLeftPanel=!0,this.showLeftPanel=!0,this.showRightPanel=!0,this.showAttachmentPanel=!1,this.showSignaturesPanel=!1,this.loading=!1,this.loadingSign=!1,this.leftContentWidth="44%",this.rightContentWidth="44%",this.notesViewerLink="",this.visaViewerLink="",this.histViewerLink="",this.linksViewerLink="",this.attachmentsViewerLink="",window.angularSignatureBookComponent={componentAfterAttach:function(t){return o.processAfterAttach(t)},componentAfterAction:function(){return o.processAfterAction()},componentAfterNotes:function(){return o.processAfterNotes()}}}return t.prototype.prepareSignatureBook=function(){$j("#inner_content").remove(),$j("#header").remove(),$j("#viewBasketsTitle").remove(),$j("#homePageWelcomeTitle").remove(),$j("#footer").remove(),$j("#container").width("99%")},t.prototype.ngOnInit=function(){var t=this;this.prepareSignatureBook(),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.route.params.subscribe(function(e){t.resId=+e.resId,t.basketId=e.basketId,t.signatureBook.resList=[],lockDocument(t.resId),setInterval(function(){lockDocument(t.resId)},5e4),t.http.get(t.coreUrl+"rest/"+t.basketId+"/signatureBook/"+t.resId).map(function(t){return t.json()}).subscribe(function(e){if(e.error)return location.hash="",void(location.search="");t.signatureBook=e,t.headerTab=1,t.leftSelectedThumbnail=0,t.rightSelectedThumbnail=0,t.leftViewerLink="",t.rightViewerLink="",t.showLeftPanel=!0,t.showRightPanel=!0,t.showResLeftPanel=!0,t.showTopLeftPanel=!1,t.showTopRightPanel=!1,t.showAttachmentPanel=!1,t.notesViewerLink="index.php?display=true&module=notes&page=notes&identifier="+t.resId+"&origin=document&coll_id=letterbox_coll&load&size=full",t.visaViewerLink="index.php?display=true&page=show_visa_tab&module=visa&resId="+t.resId+"&collId=letterbox_coll&visaStep=true",t.histViewerLink="index.php?display=true&page=show_history_tab&resId="+t.resId+"&collId=letterbox_coll",t.linksViewerLink="index.php?display=true&page=show_links_tab&id="+t.resId,t.attachmentsViewerLink="index.php?display=true&module=attachments&page=frame_list_attachments&resId="+t.resId+"&noModification=true&template_selected=documents_list_attachments_simple&load&attach_type_exclude=converted_pdf,print_folder",t.leftContentWidth="44%",t.rightContentWidth="44%",t.signatureBook.documents[0]&&(t.leftViewerLink=t.signatureBook.documents[0].viewerLink,"outgoing"==t.signatureBook.documents[0].category_id&&(t.headerTab=3)),t.signatureBook.attachments[0]&&(t.rightViewerLink=t.signatureBook.attachments[0].viewerLink),t.displayPanel("RESLEFT"),t.loading=!1,setTimeout(function(){$j("#rightPanelContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),0==$j(".tooltipstered").length&&$j("#obsVersion").tooltipster({interactive:!0})},0)},function(e){errorNotification(JSON.parse(e._body).errors),setTimeout(function(){t.backToBasket()},2e3)})})},t.prototype.ngOnDestroy=function(){delete window.angularSignatureBookComponent},t.prototype.processAfterAttach=function(t){var e=this;this.zone.run(function(){return e.refreshAttachments(t)})},t.prototype.processAfterNotes=function(){var t=this;this.zone.run(function(){return t.refreshNotes()})},t.prototype.processAfterAction=function(){for(var t=this,e=-1,r=this.signatureBook.resList.length,n=0;n<r;n++)this.signatureBook.resList[n].res_id==this.resId&&(this.signatureBook.resList[n+1]?e=this.signatureBook.resList[n+1].res_id:n>0&&(e=this.signatureBook.resList[n-1].res_id));r>0&&(unlockDocument(this.resId),e>=0?($j("#send").removeAttr("disabled"),$j("#send").css("opacity","1"),this.zone.run(function(){return t.changeLocation(e,"action")})):this.zone.run(function(){return t.backToBasket()}))},t.prototype.changeSignatureBookLeftContent=function(t){this.headerTab=t,this.showTopLeftPanel=!1},t.prototype.changeRightViewer=function(t){this.showAttachmentPanel=!1,this.signatureBook.attachments[t]?this.rightViewerLink=this.signatureBook.attachments[t].viewerLink:this.rightViewerLink="",this.rightSelectedThumbnail=t},t.prototype.changeLeftViewer=function(t){this.leftViewerLink=this.signatureBook.documents[t].viewerLink,this.leftSelectedThumbnail=t},t.prototype.displayPanel=function(t){var e=this;"TOPRIGHT"==t?this.showTopRightPanel=!this.showTopRightPanel:"TOPLEFT"==t?this.showTopLeftPanel=!this.showTopLeftPanel:"LEFT"==t?(this.showLeftPanel=!this.showLeftPanel,this.showResLeftPanel=!1,this.showLeftPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#hideLeftContent").css("background","#CEE9F1")):(this.rightContentWidth="96%",$j("#hideLeftContent").css("background","none"))):"RESLEFT"==t?(this.showResLeftPanel=!this.showResLeftPanel,this.showResLeftPanel?(this.rightContentWidth="44%",this.leftContentWidth="44%",0!=this.signatureBook.resList.length&&null!=this.signatureBook.resList[0].allSigned||this.http.get(this.coreUrl+"rest/"+this.basketId+"/signatureBook/resList/details").map(function(t){return t.json()}).subscribe(function(t){e.signatureBook.resList=t.resList,e.signatureBook.resList.forEach(function(t,r){t.res_id==e.resId&&(e.signatureBook.resListIndex=r)}),setTimeout(function(){$j("#resListContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j("#resListContent").scrollTop(0),$j("#resListContent").scrollTop($j(".resListContentFrameSelected").offset().top-42)},0)})):(this.rightContentWidth="48%",this.leftContentWidth="48%")):"MIDDLE"==t&&(this.showRightPanel=!this.showRightPanel,this.showResLeftPanel=!1,this.showRightPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#contentLeft").css("border-right","solid 1px")):(this.leftContentWidth="96%",$j("#contentLeft").css("border-right","none")))},t.prototype.displayAttachmentPanel=function(){this.showAttachmentPanel=!this.showAttachmentPanel,this.rightSelectedThumbnail=0,this.signatureBook.attachments[0]&&(this.rightViewerLink=this.signatureBook.attachments[0].viewerLink)},t.prototype.refreshAttachments=function(t){var e=this;"rightContent"==t?this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/incomingMailAttachments").map(function(t){return t.json()}).subscribe(function(t){e.signatureBook.documents=t}):this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/attachments").map(function(t){return t.json()}).subscribe(function(r){var n=0;if("add"==t){var o=!1;r.forEach(function(t,r){o||e.signatureBook.attachments[r]&&t.res_id==e.signatureBook.attachments[r].res_id||(n=r,o=!0)})}else if("edit"==t){var i=e.signatureBook.attachments[e.rightSelectedThumbnail].res_id;r.forEach(function(t,e){t.res_id==i&&(n=e)})}e.signatureBook.attachments=r,"add"==t||"edit"==t?e.changeRightViewer(n):"del"==t&&e.changeRightViewer(0)})},t.prototype.addAttachmentIframe=function(){showAttachmentsForm("index.php?display=true&module=attachments&page=attachments_content&docId="+this.resId)},t.prototype.editAttachmentIframe=function(t){if(t.canModify&&"SIGN"!=t.status){var e;0==t.res_id?e=t.res_id_version:0==t.res_id_version&&(e=t.res_id),modifyAttachmentsForm("index.php?display=true&module=attachments&page=attachments_content&id="+e+"&relation="+t.relation+"&docId="+this.resId,"98%","auto")}},t.prototype.delAttachment=function(t){var e=this;if(t.canDelete){if(this.signatureBook.attachments.length<=1)r=confirm("Attention, ceci est votre dernière pièce jointe pour ce courrier, voulez-vous vraiment la supprimer ?");else var r=confirm("Voulez-vous vraiment supprimer la pièce jointe ?");if(r){var n;0==t.res_id?n=t.res_id_version:0==t.res_id_version&&(n=t.res_id),this.http.get("index.php?display=true&module=attachments&page=del_attachment&id="+n+"&relation="+t.relation+"&rest=true").subscribe(function(){e.refreshAttachments("del")})}}},t.prototype.refreshNotes=function(){var t=this;this.http.get(this.coreUrl+"rest/res/"+this.resId+"/notes/count").map(function(t){return t.json()}).subscribe(function(e){t.signatureBook.nbNotes=e})},t.prototype.signFile=function(t,e){var r=this;if(!this.loadingSign&&this.signatureBook.canSign){this.loadingSign=!0;var n="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&resIdMaster="+this.resId+"&signatureId="+e.id;0==t.res_id?"outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?n+="&isVersion&isOutgoing&id="+t.res_id_version:n+="&isVersion&id="+t.res_id_version:0==t.res_id_version&&("outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?n+="&isOutgoing&id="+t.res_id:n+="&id="+t.res_id),this.http.get(n,e).map(function(t){return t.json()}).subscribe(function(t){if(0==t.status){r.rightViewerLink="index.php?display=true&module=attachments&page=view_attachment&res_id_master="+r.resId+"&id="+t.new_id+"&isVersion=false",r.signatureBook.attachments[r.rightSelectedThumbnail].viewerLink=r.rightViewerLink,r.signatureBook.attachments[r.rightSelectedThumbnail].status="SIGN",r.signatureBook.attachments[r.rightSelectedThumbnail].idToDl=t.new_id;var e=!0;r.signatureBook.attachments.forEach(function(t){t.sign&&"SIGN"!=t.status&&(e=!1)}),r.signatureBook.resList.length>0&&(r.signatureBook.resList[r.signatureBook.resListIndex].allSigned=e)}else alert(t.error);r.showSignaturesPanel=!1,r.loadingSign=!1})}},t.prototype.unsignFile=function(t){var e,r,n,o=this;0==t.res_id?(r=t.res_id_version,e="res_version_attachments",n="true"):0==t.res_id_version&&(r=t.res_id,e="res_attachments",n="false"),this.http.put(this.coreUrl+"rest/"+e+"/"+r+"/unsign",{}).map(function(t){return t.json()}).subscribe(function(){o.rightViewerLink="index.php?display=true&module=attachments&page=view_attachment&res_id_master="+o.resId+"&id="+t.viewerNoSignId+"&isVersion="+n,o.signatureBook.attachments[o.rightSelectedThumbnail].viewerLink=o.rightViewerLink,o.signatureBook.attachments[o.rightSelectedThumbnail].status="A_TRA",o.signatureBook.attachments[o.rightSelectedThumbnail].idToDl=r,o.signatureBook.resList.length>0&&(o.signatureBook.resList[o.signatureBook.resListIndex].allSigned=!1)})},t.prototype.backToBasket=function(){unlockDocument(this.resId),location.hash="",location.reload()},t.prototype.backToDetails=function(){unlockDocument(this.resId),location.hash="",location.search="?page=details&dir=indexing_searching&id="+this.resId},t.prototype.changeLocation=function(t,e){var r=this;this.http.get(this.coreUrl+"rest/res/"+t+"/lock").map(function(t){return t.json()}).subscribe(function(n){if(n.lock)"view"==e?alert("Courrier verouillé par "+n.lockBy):"action"==e&&(alert("Courrier suivant verouillé par "+n.lockBy),r.backToBasket());else{var o="/"+r.basketId+"/signatureBook/"+t;r.router.navigate([o])}})},t.prototype.validForm=function(){var t=this;""!=$j("#signatureBookActions option:selected")[0].value?(unlockDocument(this.resId),0==this.signatureBook.resList.length?this.http.get(this.coreUrl+"rest/"+this.basketId+"/signatureBook/resList").map(function(t){return t.json()}).subscribe(function(e){t.signatureBook.resList=e.resList,valid_action_form("empty","index.php?display=true&page=manage_action&module=core",t.signatureBook.currentAction.id,t.resId,"res_letterbox","null","letterbox_coll","page",!1,[$j("#signatureBookActions option:selected")[0].value])}):valid_action_form("empty","index.php?display=true&page=manage_action&module=core",this.signatureBook.currentAction.id,this.resId,"res_letterbox","null","letterbox_coll","page",!1,[$j("#signatureBookActions option:selected")[0].value])):alert("Aucune action choisie")},t}();l=n([i.Component({templateUrl:angularGlobals["signature-bookView"]}),o("design:paramtypes",[s.Http,u.ActivatedRoute,u.Router,i.NgZone])],l),r.SignatureBookComponent=l},{"@angular/core":20,"@angular/http":22,"@angular/platform-browser":24,"@angular/router":25,"rxjs/add/operator/map":36}],13:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(r,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http");t("rxjs/add/operator/map");var a=t("@angular/router"),u=function(){function t(t,e,r){this.http=t,this.route=e,this.router=r,this.pageTitle="",this.mode=null,this.status={id:null,label_status:null,can_be_searched:null,can_be_modified:null,is_folder_status:null,img_filename:null},this.lang="",this.statusImages="",this.loading=!1}return t.prototype.ngOnInit=function(){var t=this;this.loading=!0,this.coreUrl=angularGlobals.coreUrl,this.prepareStatus(),this.route.params.subscribe(function(e){void 0===e.identifier?t.http.get(t.coreUrl+"rest/administration/status/new").map(function(t){return t.json()}).subscribe(function(e){t.lang=e.lang,t.statusImages=e.statusImages,t.mode="create",t.pageTitle=t.lang.newStatus,t.updateBreadcrumb(angularGlobals.applicationName)}):(t.mode="update",t.statusIdentifier=e.identifier,t.getStatusInfos(t.statusIdentifier)),setTimeout(function(){$j(".help").tooltipster({theme:"tooltipster-maarch",interactive:!0})},0)}),this.loading=!1},t.prototype.prepareStatus=function(){$j("#inner_content").remove()},t.prototype.updateBreadcrumb=function(t){var e="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>"+this.lang.admin+"</a> > <a onclick='location.hash = \"/administration/status\"' style='cursor: pointer'>"+this.lang.admin_status+"</a> > ";"create"==this.mode?e+=this.lang.newItem:e+=this.lang.modification,$j("#ariane")[0].innerHTML=e},t.prototype.getStatusInfos=function(t){var e=this;this.http.get(this.coreUrl+"rest/administration/status/"+t).map(function(t){return t.json()}).subscribe(function(t){e.status=t.status[0],"Y"==e.status.can_be_searched?e.status.can_be_searched=!0:e.status.can_be_searched=!1,"Y"==e.status.can_be_modified?e.status.can_be_modified=!0:e.status.can_be_modified=!1,"Y"==e.status.is_folder_status?e.status.is_folder_status=!0:e.status.is_folder_status=!1,e.lang=t.lang,e.statusImages=t.statusImages,e.pageTitle=e.lang.modify_status+" : "+e.status.id,e.updateBreadcrumb(angularGlobals.applicationName)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.selectImage=function(t){this.status.img_filename=t},t.prototype.submitStatus=function(){var t=this;"create"==this.mode?this.http.post(this.coreUrl+"rest/status",this.status).map(function(t){return t.json()}).subscribe(function(e){successNotification(t.lang.newStatusAdded+" : "+t.status.id),t.router.navigate(["administration/status"])},function(t){errorNotification(JSON.parse(t._body).errors.join("<br>"))}):"update"==this.mode&&this.http.put(this.coreUrl+"rest/status/"+this.statusIdentifier,this.status).map(function(t){return t.json()}).subscribe(function(e){successNotification(t.lang.statusUpdated+" : "+t.status.id),t.router.navigate(["administration/status"])},function(t){errorNotification(JSON.parse(t._body).errors.join("<br>"))})},t}();u=n([i.Component({templateUrl:angularGlobals["status-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","css/status-administration.component.css"]}),o("design:paramtypes",[s.Http,a.ActivatedRoute,a.Router])],u),r.StatusAdministrationComponent=u},{"@angular/core":20,"@angular/http":22,"@angular/router":25,"rxjs/add/operator/map":36}],14:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(r,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http");t("rxjs/add/operator/map");var a=t("@angular/router"),u=function(){function t(t,e,r){this.http=t,this.route=e,this.router=r,this.lang="",this.resultInfo="",this.loading=!1}return t.prototype.ngOnInit=function(){var t=this;this.coreUrl=angularGlobals.coreUrl,this.prepareStatus(),this.loading=!0,this.http.get(this.coreUrl+"rest/administration/status").map(function(t){return t.json()}).subscribe(function(e){t.statusList=e.statusList,t.lang=e.lang,t.nbStatus=Object.keys(t.statusList).length,setTimeout(function(){t.table=$j("#statusTable").DataTable({dom:'<"datatablesLeft"p><"datatablesRight"f><"datatablesCenter"l>rt<"datatablesCenter"i><"clear">',lengthMenu:[10,25,50,75,100],oLanguage:{sLengthMenu:"<i class='fa fa-bars'></i> _MENU_",sZeroRecords:t.lang.noResult,sInfo:"_START_ - _END_ / _TOTAL_ "+t.lang.record,sSearch:"",oPaginate:{sFirst:"<<",sLast:">>",sNext:t.lang.next+" <i class='fa fa-caret-right'></i>",sPrevious:"<i class='fa fa-caret-left'></i> "+t.lang.previous},sInfoEmpty:t.lang.noRecord,sInfoFiltered:"(filtré de _MAX_ "+t.lang.record+")"},order:[[2,"asc"]],columnDefs:[{orderable:!1,targets:[0,3]}],stateSave:!0}),$j(".dataTables_filter input").attr("placeholder",t.lang.search),$j("dataTables_filter input").addClass("form-control"),$j(".datatablesLeft").css({float:"left"}),$j(".datatablesCenter").css({"text-align":"center"}),$j(".datatablesRight").css({float:"right"})},0),t.updateBreadcrumb(angularGlobals.applicationName),t.loading=!1},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.prepareStatus=function(){$j("#inner_content").remove()},t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>"+this.lang.admin+"</a> > "+this.lang.admin_status},t.prototype.deleteStatus=function(t,e){var r=this;confirm(this.lang.deleteConfirm+" "+t+"?")&&this.http.delete(this.coreUrl+"rest/status/"+e).map(function(t){return t.json()}).subscribe(function(e){for(var n=r.statusList,o=0;o<n.length;o++)n[o].id==t&&n.splice(o,1);r.table.row($j("#"+t)).remove().draw(),successNotification(r.lang.delStatus+" : "+t),r.nbStatus=Object.keys(r.statusList).length},function(t){errorNotification(JSON.parse(t._body).errors)})},t}();u=n([i.Component({templateUrl:angularGlobals["statuses-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"]}),o("design:paramtypes",[s.Http,a.ActivatedRoute,a.Router])],u),r.StatusListAdministrationComponent=u},{"@angular/core":20,"@angular/http":22,"@angular/router":25,"rxjs/add/operator/map":36}],15:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(r,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http"),a=t("@angular/router");t("rxjs/add/operator/map");var u=function(){function t(t,e,r,n){var o=this;this.http=t,this.route=e,this.router=r,this.zone=n,this.user={lang:{}},this.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},this.userAbsenceModel=[],this.selectedSignature=-1,this.selectedSignatureLabel="",this.loading=!1,window.angularUserAdministrationComponent={componentAfterUpload:function(t){return o.processAfterUpload(t)}}}return t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > <a onclick='location.hash = \"/administration/users\"' style='cursor: pointer'>Utilisateurs</a>")},t.prototype.ngOnInit=function(){var t=this;this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.route.params.subscribe(function(e){void 0===e.id?(t.userCreation=!0,t.http.get(t.coreUrl+"rest/administration/users/new").map(function(t){return t.json()}).subscribe(function(e){t.user=e,t.loading=!1},function(){location.href="index.php"})):(t.userCreation=!1,t.serialId=e.id,t.http.get(t.coreUrl+"rest/administration/users/"+t.serialId).map(function(t){return t.json()}).subscribe(function(e){t.user=e,t.userId=e.user_id,t.loading=!1,setTimeout(function(){$j("#absenceUser").typeahead({order:"asc",display:"formattedUser",templateValue:"{{user_id}}",source:{ajax:{type:"GET",dataType:"json",url:t.coreUrl+"rest/users/autocompleter"}}})},0)},function(){location.href="index.php"}))})},t.prototype.processAfterUpload=function(t){var e=this;this.zone.run(function(){return e.resfreshUpload(t)})},t.prototype.resfreshUpload=function(t){this.signatureModel.size<=2e6?(this.signatureModel.base64=t.replace(/^data:.*?;base64,/,""),this.signatureModel.base64ForJs=t):(this.signatureModel.name="",this.signatureModel.size=0,this.signatureModel.type="",this.signatureModel.base64="",this.signatureModel.base64ForJs="",errorNotification("Taille maximum de fichier dépassée (2 MB)"))},t.prototype.clickOnUploader=function(t){$j("#"+t).click()},t.prototype.uploadSignatureTrigger=function(t){if(t.target.files&&t.target.files[0]){var e=new FileReader;this.signatureModel.name=t.target.files[0].name,this.signatureModel.size=t.target.files[0].size,this.signatureModel.type=t.target.files[0].type,""==this.signatureModel.label&&(this.signatureModel.label=this.signatureModel.name),e.readAsDataURL(t.target.files[0]),e.onload=function(t){window.angularUserAdministrationComponent.componentAfterUpload(t.target.result)}}},t.prototype.displaySignatureEditionForm=function(t){this.selectedSignature=t,this.selectedSignatureLabel=this.user.signatures[t].signature_label},t.prototype.resetPassword=function(){confirm("Voulez-vous vraiment réinitialiser le mot de passe de l'utilisateur ?")&&this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/password",{}).map(function(t){return t.json()}).subscribe(function(t){successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.addGroup=function(){var t=this,e=$j("#groupsSelect option:selected").index();if(e>0){var r={groupId:this.user.allGroups[e-1].group_id,role:$j("#groupRole")[0].value};this.http.post(this.coreUrl+"rest/users/"+this.serialId+"/groups",r).map(function(t){return t.json()}).subscribe(function(e){t.user.groups=e.groups,t.user.allGroups=e.allGroups,$j("#groupRole")[0].value="",$j("#addGroupModal").modal("hide"),successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})}},t.prototype.updateGroup=function(t){this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/groups/"+t.group_id,t).map(function(t){return t.json()}).subscribe(function(t){successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.deleteGroup=function(t){var e=this;confirm("Voulez-vous vraiment retirer l'utilisateur de ce groupe ?")&&this.http.delete(this.coreUrl+"rest/users/"+this.serialId+"/groups/"+t.group_id).map(function(t){return t.json()}).subscribe(function(t){e.user.groups=t.groups,e.user.allGroups=t.allGroups,successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.addEntity=function(){var t=this,e=$j("#entitiesSelect option:selected").index();if(e>0){var r={entityId:this.user.allEntities[e-1].entity_id,role:$j("#entityRole")[0].value};this.http.post(this.coreUrl+"rest/users/"+this.serialId+"/entities",r).map(function(t){return t.json()}).subscribe(function(e){t.user.entities=e.entities,t.user.allEntities=e.allEntities,$j("#entityRole")[0].value="",$j("#addEntityModal").modal("hide"),successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})}},t.prototype.updateEntity=function(t){this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/entities/"+t.entity_id,t).map(function(t){return t.json()}).subscribe(function(t){successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.updatePrimaryEntity=function(t){var e=this;this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/entities/"+t.entity_id+"/primaryEntity",{}).map(function(t){return t.json()}).subscribe(function(t){e.user.entities=t.entities,successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.deleteEntity=function(t){var e=this;confirm("Voulez-vous vraiment retirer l'utilisateur de cette entité ?")&&this.http.delete(this.coreUrl+"rest/users/"+this.serialId+"/entities/"+t.entity_id).map(function(t){return t.json()}).subscribe(function(t){e.user.entities=t.entities,e.user.allEntities=t.allEntities,successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.submitSignature=function(){var t=this;this.http.post(this.coreUrl+"rest/users/"+this.serialId+"/signatures",this.signatureModel).map(function(t){return t.json()}).subscribe(function(e){t.user.signatures=e.signatures,t.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.updateSignature=function(){var t=this,e=this.user.signatures[this.selectedSignature].id;this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/signatures/"+e,{label:this.selectedSignatureLabel}).map(function(t){return t.json()}).subscribe(function(e){t.user.signatures[t.selectedSignature].signature_label=e.signature.signature_label,t.selectedSignature=-1,t.selectedSignatureLabel="",successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.deleteSignature=function(t){var e=this;confirm("Voulez-vous vraiment supprimer la signature ?")&&this.http.delete(this.coreUrl+"rest/users/"+this.serialId+"/signatures/"+t).map(function(t){return t.json()}).subscribe(function(t){e.user.signatures=t.signatures,successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.addBasketRedirection=function(){var t=$j("#selectBasketAbsenceUser option:selected").index();t>0&&""!=$j("#absenceUser")[0].value&&(this.userAbsenceModel.push({basketId:this.user.baskets[t-1].basket_id,basketName:this.user.baskets[t-1].basket_name,virtual:this.user.baskets[t-1].is_virtual,basketOwner:this.user.baskets[t-1].basket_owner,newUser:$j("#absenceUser")[0].value,index:t-1}),this.user.baskets[t-1].disabled=!0,$j("#selectBasketAbsenceUser option:eq(0)").prop("selected",!0),$j("#absenceUser")[0].value="")},t.prototype.delBasketRedirection=function(t){this.user.baskets[this.userAbsenceModel[t].index].disabled=!1,this.userAbsenceModel.splice(t,1)},t.prototype.activateAbsence=function(){var t=this;this.http.post(this.coreUrl+"rest/users/"+this.serialId+"/baskets/absence",this.userAbsenceModel).map(function(t){return t.json()}).subscribe(function(e){t.user.status=e.user.status,t.userAbsenceModel=[],$j("#manageAbs").modal("hide"),successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.deactivateAbsence=function(){var t=this;this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/status",{status:"OK"}).map(function(t){return t.json()}).subscribe(function(e){t.user.status=e.user.status,successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.onSubmit=function(){var t=this;this.userCreation?this.http.post(this.coreUrl+"rest/users",this.user).map(function(t){return t.json()}).subscribe(function(e){successNotification(e.success),t.router.navigate(["/administration/users/"+e.user.id])},function(t){errorNotification(JSON.parse(t._body).errors)}):this.http.put(this.coreUrl+"rest/users/"+this.serialId,this.user).map(function(t){return t.json()}).subscribe(function(t){successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t}();u=n([i.Component({templateUrl:angularGlobals["user-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","css/user-administration.component.css"]}),o("design:paramtypes",[s.Http,a.ActivatedRoute,a.Router,i.NgZone])],u),r.UserAdministrationComponent=u},{"@angular/core":20,"@angular/http":22,"@angular/router":25,"rxjs/add/operator/map":36}],16:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(r,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http");t("rxjs/add/operator/map");var a=function(){function t(t){this.http=t,this.users=[],this.userDestRedirect={},this.userDestRedirectModels=[],this.lang={},this.resultInfo="",this.loading=!1}return t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > Utilisateurs")},t.prototype.ngOnInit=function(){var t=this;this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/administration/users").map(function(t){return t.json()}).subscribe(function(e){t.users=e.users,t.lang=e.lang,setTimeout(function(){t.table=$j("#usersTable").DataTable({dom:'<"datatablesLeft"p><"datatablesRight"f><"datatablesCenter"l>rt<"datatablesCenter"i><"clear">',lengthMenu:[10,25,50,75,100],oLanguage:{sLengthMenu:"<i class='fa fa-bars'></i> _MENU_",sZeroRecords:t.lang.noResult,sInfo:"_START_ - _END_ / _TOTAL_ "+t.lang.record,sSearch:"",oPaginate:{sFirst:"<<",sLast:">>",sNext:t.lang.next+" <i class='fa fa-caret-right'></i>",sPrevious:"<i class='fa fa-caret-left'></i> "+t.lang.previous},sInfoEmpty:t.lang.noRecord,sInfoFiltered:"(filtré de _MAX_ "+t.lang.record+")"},order:[[1,"asc"]],columnDefs:[{orderable:!1,targets:[3,5]}]}),$j(".dataTables_filter input").attr("placeholder",t.lang.search),$j("dataTables_filter input").addClass("form-control"),$j(".datatablesLeft").css({float:"left"}),$j(".datatablesCenter").css({"text-align":"center"}),$j(".datatablesRight").css({float:"right"})},0),t.loading=!1},function(){location.href="index.php"})},t.prototype.suspendUser=function(t){var e=this;"Y"==t.inDiffListDest?(t.mode="up",this.userDestRedirect=t,this.http.get(this.coreUrl+"rest/listModels/itemId/"+t.user_id+"/itemMode/dest/objectType/entity_id").map(function(t){return t.json()}).subscribe(function(r){e.userDestRedirectModels=r.listModels,setTimeout(function(){$j(".redirectDest").typeahead({order:"asc",display:"formattedUser",templateValue:"{{user_id}}",source:{ajax:{type:"GET",dataType:"json",url:e.coreUrl+"rest/users/autocompleter/exclude/"+t.user_id}}})},0)},function(t){console.log(t),location.href="index.php"})):confirm(this.lang.suspendMsg+" ?")&&(t.enabled="N",this.http.put(this.coreUrl+"rest/users/"+t.user_id,t).map(function(t){return t.json()}).subscribe(function(t){successNotification(t.success)},function(e){t.enabled="Y",errorNotification(JSON.parse(e._body).errors)}))},t.prototype.suspendUserModal=function(t){var e=this;confirm(this.lang.suspendMsg+" ?")&&(t.enabled="N",t.redirectListModels=this.userDestRedirectModels,this.http.put(this.coreUrl+"rest/listModels/itemId/"+t.user_id+"/itemMode/dest/objectType/entity_id",t).map(function(t){return t.json()}).subscribe(function(r){r.errors?(t.enabled="Y",errorNotification(r.errors)):e.http.put(e.coreUrl+"rest/users/"+t.user_id,t).map(function(t){return t.json()}).subscribe(function(e){t.inDiffListDest="N",$j("#changeDiffListDest").modal("hide"),successNotification(e.success)},function(e){t.enabled="Y",errorNotification(JSON.parse(e._body).errors)})},function(t){errorNotification(JSON.parse(t._body).errors)}))},t.prototype.activateUser=function(t){confirm(this.lang.authorizeMsg+" ?")&&(t.enabled="Y",this.http.put(this.coreUrl+"rest/users/"+t.user_id,t).map(function(t){return t.json()}).subscribe(function(t){successNotification(t.success)},function(e){t.enabled="N",errorNotification(JSON.parse(e._body).errors)}))},t.prototype.deleteUser=function(t){var e=this;"Y"==t.inDiffListDest?(t.mode="del",this.userDestRedirect=t,this.http.get(this.coreUrl+"rest/listModels/itemId/"+t.user_id+"/itemMode/dest/objectType/entity_id").map(function(t){return t.json()}).subscribe(function(r){e.userDestRedirectModels=r.listModels,setTimeout(function(){$j(".redirectDest").typeahead({order:"asc",source:{ajax:{type:"GET",dataType:"json",url:e.coreUrl+"rest/users/autocompleter/exclude/"+t.user_id}}})})},function(t){errorNotification(JSON.parse(t._body).errors)})):confirm(this.lang.deleteMsg+" ?")&&this.http.delete(this.coreUrl+"rest/users/"+t.user_id,t).map(function(t){return t.json()}).subscribe(function(r){for(var n=0;n<e.users.length;n++)e.users[n].user_id==t.user_id&&e.users.splice(n,1);e.table.row($j("#"+t.user_id)).remove().draw(),successNotification(r.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.deleteUserModal=function(t){var e=this;confirm(this.lang.deleteMsg+" ?")&&(t.redirectListModels=this.userDestRedirectModels,this.http.put(this.coreUrl+"rest/listModels/itemId/"+t.user_id+"/itemMode/dest/objectType/entity_id",t).map(function(t){return t.json()}).subscribe(function(r){r.errors?errorNotification(r.errors):e.http.delete(e.coreUrl+"rest/users/"+t.user_id).map(function(t){return t.json()}).subscribe(function(r){t.inDiffListDest="N",$j("#changeDiffListDest").modal("hide");for(var n=0;n<e.users.length;n++)e.users[n].user_id==t.user_id&&e.users.splice(n,1);e.table.row($j("#"+t.user_id)).remove().draw(),successNotification(r.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},function(t){errorNotification(JSON.parse(t._body).errors)}))},t}();a=n([i.Component({templateUrl:angularGlobals["users-administrationView"],styleUrls:["css/users-administration.component.css","../../node_modules/bootstrap/dist/css/bootstrap.min.css"]}),o("design:paramtypes",[s.Http])],a),r.UsersAdministrationComponent=a},{"@angular/core":20,"@angular/http":22,"rxjs/add/operator/map":36}],17:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("@angular/platform-browser-dynamic"),o=t("@angular/core"),i=t("./app/app.module");o.enableProdMode(),n.platformBrowserDynamic().bootstrapModule(i.AppModule)},{"./app/app.module":5,"@angular/core":20,"@angular/platform-browser-dynamic":23}],18:[function(t,e,r){!function(n,o){"object"==typeof r&&void 0!==e?o(r,t("@angular/core")):o((n.ng=n.ng||{},n.ng.common=n.ng.common||{}),n.ng.core)}(this,function(t,e){"use strict";function r(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}function n(t){return t.replace(/\/index.html$/,"")}function o(t,e,r){var n="="+t;if(e.indexOf(n)>-1)return n;if(n=r.getPluralCategory(t),e.indexOf(n)>-1)return n;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}function i(t,e){"string"==typeof e&&(e=parseInt(e,10));var r=e,n=r.toString().replace(/^[^.]*\.?/,""),o=Math.floor(Math.abs(r)),i=n.length,s=parseInt(n,10),a=parseInt(r.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(t.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===r?B.One:B.Other;case"agq":case"bas":case"cu":case"dav":case"dje":case"dua":case"dyo":case"ebu":case"ewo":case"guz":case"kam":case"khq":case"ki":case"kln":case"kok":case"ksf":case"lrc":case"lu":case"luo":case"luy":case"mer":case"mfe":case"mgh":case"mua":case"mzn":case"nmg":case"nus":case"qu":case"rn":case"rw":case"sbp":case"twq":case"vai":case"yav":case"yue":case"zgh":case"ak":case"ln":case"mg":case"pa":case"ti":return r===Math.floor(r)&&r>=0&&r<=1?B.One:B.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===o||1===r?B.One:B.Other;case"ar":return 0===r?B.Zero:1===r?B.One:2===r?B.Two:r%100===Math.floor(r%100)&&r%100>=3&&r%100<=10?B.Few:r%100===Math.floor(r%100)&&r%100>=11&&r%100<=99?B.Many:B.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===o&&0===i?B.One:B.Other;case"be":return r%10==1&&r%100!=11?B.One:r%10===Math.floor(r%10)&&r%10>=2&&r%10<=4&&!(r%100>=12&&r%100<=14)?B.Few:r%10==0||r%10===Math.floor(r%10)&&r%10>=5&&r%10<=9||r%100===Math.floor(r%100)&&r%100>=11&&r%100<=14?B.Many:B.Other;case"br":return r%10==1&&r%100!=11&&r%100!=71&&r%100!=91?B.One:r%10==2&&r%100!=12&&r%100!=72&&r%100!=92?B.Two:r%10===Math.floor(r%10)&&(r%10>=3&&r%10<=4||r%10==9)&&!(r%100>=10&&r%100<=19||r%100>=70&&r%100<=79||r%100>=90&&r%100<=99)?B.Few:0!==r&&r%1e6==0?B.Many:B.Other;case"bs":case"hr":case"sr":return 0===i&&o%10==1&&o%100!=11||s%10==1&&s%100!=11?B.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)||s%10===Math.floor(s%10)&&s%10>=2&&s%10<=4&&!(s%100>=12&&s%100<=14)?B.Few:B.Other;case"cs":case"sk":return 1===o&&0===i?B.One:o===Math.floor(o)&&o>=2&&o<=4&&0===i?B.Few:0!==i?B.Many:B.Other;case"cy":return 0===r?B.Zero:1===r?B.One:2===r?B.Two:3===r?B.Few:6===r?B.Many:B.Other;case"da":return 1===r||0!==a&&(0===o||1===o)?B.One:B.Other;case"dsb":case"hsb":return 0===i&&o%100==1||s%100==1?B.One:0===i&&o%100==2||s%100==2?B.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&o%100<=4||s%100===Math.floor(s%100)&&s%100>=3&&s%100<=4?B.Few:B.Other;case"ff":case"fr":case"hy":case"kab":return 0===o||1===o?B.One:B.Other;case"fil":return 0===i&&(1===o||2===o||3===o)||0===i&&o%10!=4&&o%10!=6&&o%10!=9||0!==i&&s%10!=4&&s%10!=6&&s%10!=9?B.One:B.Other;case"ga":return 1===r?B.One:2===r?B.Two:r===Math.floor(r)&&r>=3&&r<=6?B.Few:r===Math.floor(r)&&r>=7&&r<=10?B.Many:B.Other;case"gd":return 1===r||11===r?B.One:2===r||12===r?B.Two:r===Math.floor(r)&&(r>=3&&r<=10||r>=13&&r<=19)?B.Few:B.Other;case"gv":return 0===i&&o%10==1?B.One:0===i&&o%10==2?B.Two:0!==i||o%100!=0&&o%100!=20&&o%100!=40&&o%100!=60&&o%100!=80?0!==i?B.Many:B.Other:B.Few;case"he":return 1===o&&0===i?B.One:2===o&&0===i?B.Two:0!==i||r>=0&&r<=10||r%10!=0?B.Other:B.Many;case"is":return 0===a&&o%10==1&&o%100!=11||0!==a?B.One:B.Other;case"ksh":return 0===r?B.Zero:1===r?B.One:B.Other;case"kw":case"naq":case"se":case"smn":return 1===r?B.One:2===r?B.Two:B.Other;case"lag":return 0===r?B.Zero:0!==o&&1!==o||0===r?B.Other:B.One;case"lt":return r%10!=1||r%100>=11&&r%100<=19?r%10===Math.floor(r%10)&&r%10>=2&&r%10<=9&&!(r%100>=11&&r%100<=19)?B.Few:0!==s?B.Many:B.Other:B.One;case"lv":case"prg":return r%10==0||r%100===Math.floor(r%100)&&r%100>=11&&r%100<=19||2===i&&s%100===Math.floor(s%100)&&s%100>=11&&s%100<=19?B.Zero:r%10==1&&r%100!=11||2===i&&s%10==1&&s%100!=11||2!==i&&s%10==1?B.One:B.Other;case"mk":return 0===i&&o%10==1||s%10==1?B.One:B.Other;case"mt":return 1===r?B.One:0===r||r%100===Math.floor(r%100)&&r%100>=2&&r%100<=10?B.Few:r%100===Math.floor(r%100)&&r%100>=11&&r%100<=19?B.Many:B.Other;case"pl":return 1===o&&0===i?B.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)?B.Few:0===i&&1!==o&&o%10===Math.floor(o%10)&&o%10>=0&&o%10<=1||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&o%10<=9||0===i&&o%100===Math.floor(o%100)&&o%100>=12&&o%100<=14?B.Many:B.Other;case"pt":return r===Math.floor(r)&&r>=0&&r<=2&&2!==r?B.One:B.Other;case"ro":return 1===o&&0===i?B.One:0!==i||0===r||1!==r&&r%100===Math.floor(r%100)&&r%100>=1&&r%100<=19?B.Few:B.Other;case"ru":case"uk":return 0===i&&o%10==1&&o%100!=11?B.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)?B.Few:0===i&&o%10==0||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&o%10<=9||0===i&&o%100===Math.floor(o%100)&&o%100>=11&&o%100<=14?B.Many:B.Other;case"shi":return 0===o||1===r?B.One:r===Math.floor(r)&&r>=2&&r<=10?B.Few:B.Other;case"si":return 0===r||1===r||0===o&&1===s?B.One:B.Other;case"sl":return 0===i&&o%100==1?B.One:0===i&&o%100==2?B.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&o%100<=4||0!==i?B.Few:B.Other;case"tzm":return r===Math.floor(r)&&r>=0&&r<=1||r===Math.floor(r)&&r>=11&&r<=99?B.One:B.Other;default:return B.Other}}function s(t){return t.name||typeof t}function a(t,r){return Error("InvalidPipeArgument: '"+r+"' for pipe '"+e.ɵstringify(t)+"'")}function u(t){return t?t[0].toUpperCase()+t.substr(1).toLowerCase():t}function c(t){return function(e,r){var n=t(e,r);return 1==n.length?"0"+n:n}}function l(t){return function(e,r){return t(e,r).split(" ")[0]}}function p(t,e,r){return new Intl.DateTimeFormat(e,r).format(t).replace(/[\u200e\u200f]/g,"")}function h(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,r){var n=p(t,r,e);return n?n.substring(3):""}}function f(t,e){return t.hour12=e,t}function d(t,e){var r={};return r[t]=2===e?"2-digit":"numeric",r}function m(t,e){var r={};return r[t]=e<4?e>1?"short":"narrow":"long",r}function y(t){return Object.assign.apply(Object,[{}].concat(t))}function v(t){return function(e,r){return p(e,r,t)}}function g(t,e,r){var n=mt[t];if(n)return n(e,r);var o=t,i=vt.get(o);if(!i){i=[];var s=void 0;dt.exec(t);for(var a=t;a;)(s=dt.exec(a))?a=(i=i.concat(s.slice(1))).pop():(i.push(a),a=null);vt.set(o,i)}return i.reduce(function(t,n){var o=yt[n];return t+(o?o(e,r):_(n))},"")}function _(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function b(t,e,r,n,o,i,s){if(void 0===i&&(i=null),void 0===s&&(s=!1),null==r)return null;if("number"!=typeof(r="string"==typeof r&&C(r)?+r:r))throw a(t,r);var u=void 0,c=void 0,l=void 0;if(n!==ht.Currency&&(u=1,c=0,l=3),o){var p=o.match(_t);if(null===p)throw new Error(o+" is not a valid digit info for number pipes");null!=p[1]&&(u=w(p[1])),null!=p[3]&&(c=w(p[3])),null!=p[5]&&(l=w(p[5]))}return ft.format(r,e,n,{minimumIntegerDigits:u,minimumFractionDigits:c,maximumFractionDigits:l,currency:i,currencyAsSymbol:s})}function w(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function C(t){return!isNaN(t-parseFloat(t))}function E(t){return null==t||""===t}function S(t){return t instanceof Date&&!isNaN(t.valueOf())}function x(t){var e=new Date(0),r=0,n=0,o=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(r=P(t[9]+t[10]),n=P(t[9]+t[11])),o.call(e,P(t[1]),P(t[2])-1,P(t[3]));var s=P(t[4]||"0")-r,a=P(t[5]||"0")-n,u=P(t[6]||"0"),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return i.call(e,s,a,u,c),e}function P(t){return parseInt(t,10)}function T(t){return t===kt}function A(t){return t===Nt}function O(t){return t===It}function M(t){return t===jt}var R=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},k=function(){function t(){}return t.prototype.getBaseHrefFromDOM=function(){},t.prototype.onPopState=function(t){},t.prototype.onHashChange=function(t){},t.prototype.pathname=function(){},t.prototype.search=function(){},t.prototype.hash=function(){},t.prototype.replaceState=function(t,e,r){},t.prototype.pushState=function(t,e,r){},t.prototype.forward=function(){},t.prototype.back=function(){},t}(),N=new e.InjectionToken("Location Initialized"),I=function(){function t(){}return t.prototype.path=function(t){},t.prototype.prepareExternalUrl=function(t){},t.prototype.pushState=function(t,e,r,n){},t.prototype.replaceState=function(t,e,r,n){},t.prototype.forward=function(){},t.prototype.back=function(){},t.prototype.onPopState=function(t){},t.prototype.getBaseHref=function(){},t}(),j=new e.InjectionToken("appBaseHref"),D=function(){function t(r){var o=this;this._subject=new e.EventEmitter,this._platformStrategy=r;var i=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(n(i)),this._platformStrategy.onPopState(function(t){o._subject.emit({url:o.path(!0),pop:!0,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,r){return void 0===r&&(r=""),this.path()==this.normalize(e+t.normalizeQueryParams(r))},t.prototype.normalize=function(e){return t.stripTrailingSlash(r(this._baseHref,n(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e){void 0===e&&(e=""),this._platformStrategy.pushState(null,"",t,e)},t.prototype.replaceState=function(t,e){void 0===e&&(e=""),this._platformStrategy.replaceState(null,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,r){return this._subject.subscribe({next:t,error:e,complete:r})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,2==r?t+e.substring(1):1==r?t+e:t+"/"+e},t.stripTrailingSlash=function(t){return t.replace(/\/$/,"")},t}();D.decorators=[{type:e.Injectable}],D.ctorParameters=function(){return[{type:I}]};var L=function(t){function e(e,r){var n=t.call(this)||this;return n._platformLocation=e,n._baseHref="",null!=r&&(n._baseHref=r),n}return R(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=D.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,r,n){var o=this.prepareExternalUrl(r+D.normalizeQueryParams(n));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,r,n){var o=this.prepareExternalUrl(r+D.normalizeQueryParams(n));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}(I);L.decorators=[{type:e.Injectable}],L.ctorParameters=function(){return[{type:k},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[j]}]}]};var V=function(t){function e(e,r){var n=t.call(this)||this;if(n._platformLocation=e,null==r&&(r=n._platformLocation.getBaseHrefFromDOM()),null==r)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 n._baseHref=r,n}return R(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 D.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+D.normalizeQueryParams(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?""+e+r:e},e.prototype.pushState=function(t,e,r,n){var o=this.prepareExternalUrl(r+D.normalizeQueryParams(n));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,r,n){var o=this.prepareExternalUrl(r+D.normalizeQueryParams(n));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(I);V.decorators=[{type:e.Injectable}],V.ctorParameters=function(){return[{type:k},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[j]}]}]};var F=function(){function t(){}return t.prototype.getPluralCategory=function(t){},t}(),U=function(t){function e(e){var r=t.call(this)||this;return r.locale=e,r}return R(e,t),e.prototype.getPluralCategory=function(t){switch(i(this.locale,t)){case B.Zero:return"zero";case B.One:return"one";case B.Two:return"two";case B.Few:return"few";case B.Many:return"many";default:return"other"}},e}(F);U.decorators=[{type:e.Injectable}],U.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var B={};B.Zero=0,B.One=1,B.Two=2,B.Few=3,B.Many=4,B.Other=5,B[B.Zero]="Zero",B[B.One]="One",B[B.Two]="Two",B[B.Few]="Few",B[B.Many]="Many",B[B.Other]="Other";var H=function(){function t(t,e,r,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=r,this._renderer=n,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._applyInitialClasses(!0),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(e.ɵisListLikeIterable(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._cleanupClasses=function(t){this._applyClasses(t,!0),this._applyInitialClasses(!1)},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var r=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+e.ɵstringify(t.item));r._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return r._toggleClass(t.item,!1)})},t.prototype._applyInitialClasses=function(t){var e=this;this._initialClasses.forEach(function(r){return e._toggleClass(r,!t)})},t.prototype._applyClasses=function(t,e){var r=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return r._toggleClass(t,!e)}):Object.keys(t).forEach(function(n){null!=t[n]&&r._toggleClass(n,!e)}))},t.prototype._toggleClass=function(t,e){var r=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){r._renderer.setElementClass(r._ngEl.nativeElement,t,!!e)})},t}();H.decorators=[{type:e.Directive,args:[{selector:"[ngClass]"}]}],H.ctorParameters=function(){return[{type:e.IterableDiffers},{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},H.propDecorators={klass:[{type:e.Input,args:["class"]}],ngClass:[{type:e.Input}]};var q=function(){function t(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return t.prototype.ngOnChanges=function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var r=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=r.get(e.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var o=(this._moduleRef?this._moduleRef.componentFactoryResolver:r.get(e.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(o,this._viewContainerRef.length,r,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},t}();q.decorators=[{type:e.Directive,args:[{selector:"[ngComponentOutlet]"}]}],q.ctorParameters=function(){return[{type:e.ViewContainerRef}]},q.propDecorators={ngComponentOutlet:[{type:e.Input}],ngComponentOutletInjector:[{type:e.Input}],ngComponentOutletContent:[{type:e.Input}],ngComponentOutletNgModuleFactory:[{type:e.Input}]};var G=function(){function t(t,e,r,n){this.$implicit=t,this.ngForOf=e,this.index=r,this.count=n}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),z=function(){function t(t,e,r){this._viewContainer=t,this._template=e,this._differs=r,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){e.isDevMode()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+s(e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,r=[];t.forEachOperation(function(t,n,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new G(null,e.ngForOf,-1,-1),o),s=new $(t,i);r.push(s)}else if(null==o)e._viewContainer.remove(n);else{i=e._viewContainer.get(n);e._viewContainer.move(i,o);s=new $(t,i);r.push(s)}});for(n=0;n<r.length;n++)this._perViewChange(r[n].view,r[n].record);for(var n=0,o=this._viewContainer.length;n<o;n++){var i=this._viewContainer.get(n);i.context.index=n,i.context.count=o}t.forEachIdentityChange(function(t){e._viewContainer.get(t.currentIndex).context.$implicit=t.item})},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t}();z.decorators=[{type:e.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],z.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:e.IterableDiffers}]},z.propDecorators={ngForOf:[{type:e.Input}],ngForTrackBy:[{type:e.Input}],ngForTemplate:[{type:e.Input}]};var $=function(){function t(t,e){this.record=t,this.view=e}return t}(),W=z,K=function(){function t(t,e){this._viewContainer=t,this._context=new Q,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfThen",{set:function(t){this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),t.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},t}();K.decorators=[{type:e.Directive,args:[{selector:"[ngIf]"}]}],K.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef}]},K.propDecorators={ngIf:[{type:e.Input}],ngIfThen:[{type:e.Input}],ngIfElse:[{type:e.Input}]};var Q=function(){function t(){this.$implicit=null,this.ngIf=null}return t}(),J=function(){function t(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}return t.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},t.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},t.prototype.enforceState=function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()},t}(),X=function(){function t(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(t.prototype,"ngSwitch",{set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),t.prototype._addCase=function(){return this._caseCount++},t.prototype._addDefault=function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)},t.prototype._matchCase=function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,++this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e},t.prototype._updateDefaultCases=function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}},t}();X.decorators=[{type:e.Directive,args:[{selector:"[ngSwitch]"}]}],X.ctorParameters=function(){return[]},X.propDecorators={ngSwitch:[{type:e.Input}]};var Z=function(){function t(t,e,r){this.ngSwitch=r,r._addCase(),this._view=new J(t,e)}return t.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},t}();Z.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchCase]"}]}],Z.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:X,decorators:[{type:e.Host}]}]},Z.propDecorators={ngSwitchCase:[{type:e.Input}]};var Y=function(){function t(t,e,r){r._addDefault(new J(t,e))}return t}();Y.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchDefault]"}]}],Y.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:X,decorators:[{type:e.Host}]}]};var tt=function(){function t(t){this._localization=t,this._caseViews={}}return Object.defineProperty(t.prototype,"ngPlural",{set:function(t){this._switchValue=t,this._updateView()},enumerable:!0,configurable:!0}),t.prototype.addCase=function(t,e){this._caseViews[t]=e},t.prototype._updateView=function(){this._clearViews();var t=Object.keys(this._caseViews),e=o(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])},t.prototype._clearViews=function(){this._activeView&&this._activeView.destroy()},t.prototype._activateView=function(t){t&&(this._activeView=t,this._activeView.create())},t}();tt.decorators=[{type:e.Directive,args:[{selector:"[ngPlural]"}]}],tt.ctorParameters=function(){return[{type:F}]},tt.propDecorators={ngPlural:[{type:e.Input}]};var et=function(){function t(t,e,r,n){this.value=t;var o=!isNaN(Number(t));n.addCase(o?"="+t:t,new J(r,e))}return t}();et.decorators=[{type:e.Directive,args:[{selector:"[ngPluralCase]"}]}],et.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Attribute,args:["ngPluralCase"]}]},{type:e.TemplateRef},{type:e.ViewContainerRef},{type:tt,decorators:[{type:e.Host}]}]};var rt=function(){function t(t,e,r){this._differs=t,this._ngEl=e,this._renderer=r}return Object.defineProperty(t.prototype,"ngStyle",{set:function(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this;t.forEachRemovedItem(function(t){return e._setStyle(t.key,null)}),t.forEachAddedItem(function(t){return e._setStyle(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._setStyle(t.key,t.currentValue)})},t.prototype._setStyle=function(t,e){var r=t.split("."),n=r[0],o=r[1];e=null!=e&&o?""+e+o:e,this._renderer.setElementStyle(this._ngEl.nativeElement,n,e)},t}();rt.decorators=[{type:e.Directive,args:[{selector:"[ngStyle]"}]}],rt.ctorParameters=function(){return[{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},rt.propDecorators={ngStyle:[{type:e.Input}]};var nt=function(){function t(t){this._viewContainerRef=t}return Object.defineProperty(t.prototype,"ngOutletContext",{set:function(t){this.ngTemplateOutletContext=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))},t}();nt.decorators=[{type:e.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],nt.ctorParameters=function(){return[{type:e.ViewContainerRef}]},nt.propDecorators={ngTemplateOutletContext:[{type:e.Input}],ngTemplateOutlet:[{type:e.Input}],ngOutletContext:[{type:e.Input}]};var ot=[H,q,z,K,nt,rt,X,Z,Y,tt,et],it=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.subscribe({next:e,error:function(t){throw t}})},t.prototype.dispose=function(t){t.unsubscribe()},t.prototype.onDestroy=function(t){t.unsubscribe()},t}(),st=new(function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.then(e,function(t){throw t})},t.prototype.dispose=function(t){},t.prototype.onDestroy=function(t){},t}()),at=new it,ut=function(){function t(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return t.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},t.prototype.transform=function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,e.WrappedValue.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)},t.prototype._subscribe=function(t){var e=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,function(r){return e._updateLatestValue(t,r)})},t.prototype._selectStrategy=function(r){if(e.ɵisPromise(r))return st;if(e.ɵisObservable(r))return at;throw a(t,r)},t.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},t.prototype._updateLatestValue=function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())},t}();ut.decorators=[{type:e.Pipe,args:[{name:"async",pure:!1}]}],ut.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]};var ct=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.toLowerCase()},t}();ct.decorators=[{type:e.Pipe,args:[{name:"lowercase"}]}],ct.ctorParameters=function(){return[]};var lt=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.split(/\b/g).map(function(t){return u(t)}).join("")},t}();lt.decorators=[{type:e.Pipe,args:[{name:"titlecase"}]}],lt.ctorParameters=function(){return[]};var pt=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.toUpperCase()},t}();pt.decorators=[{type:e.Pipe,args:[{name:"uppercase"}]}],pt.ctorParameters=function(){return[]};var ht={};ht.Decimal=0,ht.Percent=1,ht.Currency=2,ht[ht.Decimal]="Decimal",ht[ht.Percent]="Percent",ht[ht.Currency]="Currency";var ft=function(){function t(){}return t.format=function(t,e,r,n){var o=void 0===n?{}:n,i=o.minimumIntegerDigits,s=o.minimumFractionDigits,a=o.maximumFractionDigits,u=o.currency,c=o.currencyAsSymbol,l=void 0!==c&&c,p={minimumIntegerDigits:i,minimumFractionDigits:s,maximumFractionDigits:a,style:ht[r].toLowerCase()};return r==ht.Currency&&(p.currency="string"==typeof u?u:void 0,p.currencyDisplay=l?"symbol":"code"),new Intl.NumberFormat(e,p).format(t)},t}(),dt=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,mt={yMMMdjms:v(y([d("year",1),m("month",3),d("day",1),d("hour",1),d("minute",1),d("second",1)])),yMdjm:v(y([d("year",1),d("month",1),d("day",1),d("hour",1),d("minute",1)])),yMMMMEEEEd:v(y([d("year",1),m("month",4),m("weekday",4),d("day",1)])),yMMMMd:v(y([d("year",1),m("month",4),d("day",1)])),yMMMd:v(y([d("year",1),m("month",3),d("day",1)])),yMd:v(y([d("year",1),d("month",1),d("day",1)])),jms:v(y([d("hour",1),d("second",1),d("minute",1)])),jm:v(y([d("hour",1),d("minute",1)]))},yt={yyyy:v(d("year",4)),yy:v(d("year",2)),y:v(d("year",1)),MMMM:v(m("month",4)),MMM:v(m("month",3)),MM:v(d("month",2)),M:v(d("month",1)),LLLL:v(m("month",4)),L:v(m("month",1)),dd:v(d("day",2)),d:v(d("day",1)),HH:c(l(v(f(d("hour",2),!1)))),H:l(v(f(d("hour",1),!1))),hh:c(l(v(f(d("hour",2),!0)))),h:l(v(f(d("hour",1),!0))),jj:v(d("hour",2)),j:v(d("hour",1)),mm:c(v(d("minute",2))),m:v(d("minute",1)),ss:c(v(d("second",2))),s:v(d("second",1)),sss:v(d("second",3)),EEEE:v(m("weekday",4)),EEE:v(m("weekday",3)),EE:v(m("weekday",2)),E:v(m("weekday",1)),a:function(t){return function(e,r){return t(e,r).split(" ")[1]}}(v(f(d("hour",1),!0))),Z:h("short"),z:h("long"),ww:v({}),w:v({}),G:v(m("era",1)),GG:v(m("era",2)),GGG:v(m("era",3)),GGGG:v(m("era",4))},vt=new Map,gt=function(){function t(){}return t.format=function(t,e,r){return g(r,t,e)},t}(),_t=/^(\d+)?\.((\d+)(-(\d+))?)?$/,bt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r){return b(t,this._locale,e,ht.Decimal,r)},t}();bt.decorators=[{type:e.Pipe,args:[{name:"number"}]}],bt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var wt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r){return b(t,this._locale,e,ht.Percent,r)},t}();wt.decorators=[{type:e.Pipe,args:[{name:"percent"}]}],wt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var Ct=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r,n,o){return void 0===r&&(r="USD"),void 0===n&&(n=!1),b(t,this._locale,e,ht.Currency,o,r,n)},t}();Ct.decorators=[{type:e.Pipe,args:[{name:"currency"}]}],Ct.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var Et=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,St=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r){void 0===r&&(r="mediumDate");var n;if(E(e)||e!==e)return null;if("string"==typeof e&&(e=e.trim()),S(e))n=e;else if(C(e))n=new Date(parseFloat(e));else if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var o=e.split("-").map(function(t){return parseInt(t,10)}),i=o[0],s=o[1],u=o[2];n=new Date(i,s-1,u)}else n=new Date(e);if(!S(n)){var c=void 0;if("string"!=typeof e||!(c=e.match(Et)))throw a(t,e);n=x(c)}return gt.format(n,this._locale,t._ALIASES[r]||r)},t}();St._ALIASES={medium:"yMMMdjms",short:"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},St.decorators=[{type:e.Pipe,args:[{name:"date",pure:!0}]}],St.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var xt=/#/g,Pt=function(){function t(t){this._localization=t}return t.prototype.transform=function(e,r){if(null==e)return"";if("object"!=typeof r||null===r)throw a(t,r);return r[o(e,Object.keys(r),this._localization)].replace(xt,e.toString())},t}();Pt.decorators=[{type:e.Pipe,args:[{name:"i18nPlural",pure:!0}]}],Pt.ctorParameters=function(){return[{type:F}]};var Tt=function(){function t(){}return t.prototype.transform=function(e,r){if(null==e)return"";if("object"!=typeof r||"string"!=typeof e)throw a(t,r);return r.hasOwnProperty(e)?r[e]:r.hasOwnProperty("other")?r.other:""},t}();Tt.decorators=[{type:e.Pipe,args:[{name:"i18nSelect",pure:!0}]}],Tt.ctorParameters=function(){return[]};var At=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t}();At.decorators=[{type:e.Pipe,args:[{name:"json",pure:!1}]}],At.ctorParameters=function(){return[]};var Ot=function(){function t(){}return t.prototype.transform=function(e,r,n){if(null==e)return e;if(!this.supports(e))throw a(t,e);return e.slice(r,n)},t.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},t}();Ot.decorators=[{type:e.Pipe,args:[{name:"slice",pure:!1}]}],Ot.ctorParameters=function(){return[]};var Mt=[ut,pt,ct,At,Ot,bt,wt,lt,Ct,St,Pt,Tt],Rt=function(){function t(){}return t}();Rt.decorators=[{type:e.NgModule,args:[{declarations:[ot,Mt],exports:[ot,Mt],providers:[{provide:F,useClass:U}]}]}],Rt.ctorParameters=function(){return[]};var kt="browser",Nt="server",It="browserWorkerApp",jt="browserWorkerUi",Dt=new e.Version("4.1.3");t.NgLocaleLocalization=U,t.NgLocalization=F,t.CommonModule=Rt,t.NgClass=H,t.NgFor=W,t.NgForOf=z,t.NgForOfContext=G,t.NgIf=K,t.NgIfContext=Q,t.NgPlural=tt,t.NgPluralCase=et,t.NgStyle=rt,t.NgSwitch=X,t.NgSwitchCase=Z,t.NgSwitchDefault=Y,t.NgTemplateOutlet=nt,t.NgComponentOutlet=q,t.AsyncPipe=ut,t.DatePipe=St,t.I18nPluralPipe=Pt,t.I18nSelectPipe=Tt,t.JsonPipe=At,t.LowerCasePipe=ct,t.CurrencyPipe=Ct,t.DecimalPipe=bt,t.PercentPipe=wt,t.SlicePipe=Ot,t.UpperCasePipe=pt,t.TitleCasePipe=lt,t.ɵPLATFORM_BROWSER_ID=kt,t.ɵPLATFORM_SERVER_ID=Nt,t.ɵPLATFORM_WORKER_APP_ID=It,t.ɵPLATFORM_WORKER_UI_ID=jt,t.isPlatformBrowser=T,t.isPlatformServer=A,t.isPlatformWorkerApp=O,t.isPlatformWorkerUi=M,t.VERSION=Dt,t.PlatformLocation=k,t.LOCATION_INITIALIZED=N,t.LocationStrategy=I,t.APP_BASE_HREF=j,t.HashLocationStrategy=L,t.PathLocationStrategy=V,t.Location=D,t.ɵa=ot,t.ɵb=Mt,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":20}],19:[function(t,e,r){!function(n,o){"object"==typeof r&&void 0!==e?o(r,t("@angular/core")):o((n.ng=n.ng||{},n.ng.compiler=n.ng.compiler||{}),n.ng.core)}(this,function(t,e){"use strict";function r(t,e,r){void 0===r&&(r=null);var n=[],o=t.visit?function(e){return t.visit(e,r)||e.visit(t,r)}:function(e){return e.visit(t,r)};return e.forEach(function(t){var e=o(t);e&&n.push(e)}),n}function n(t){if(":"!=t[0])return[null,t];var e=t.indexOf(":",1);if(-1==e)throw new Error('Unsupported format "'+t+'" expecting ":namespace:name"');return[t.slice(1,e),t.slice(e+1)]}function o(t){return"ng-container"===n(t)[1]}function i(t){return"ng-content"===n(t)[1]}function s(t){return"ng-template"===n(t)[1]}function a(t){return null===t?null:n(t)[0]}function u(t,e){return t?":"+t+":"+e:e}function c(t){return _o[t.toLowerCase()]||bo}function l(t){return t.replace(To,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function p(t,e){return f(t,":",e)}function h(t,e){return f(t,".",e)}function f(t,e,r){var n=t.indexOf(e);return-1==n?r:[t.slice(0,n).trim(),t.slice(n+1).trim()]}function d(t,e,r){return Array.isArray(t)?e.visitArray(t,r):b(t)?e.visitStringMap(t,r):null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t?e.visitPrimitive(t,r):e.visitOther(t,r)}function m(t){return null!==t&&void 0!==t}function y(t){return void 0===t?null:t}function v(t){var e=Error(t);return e[Mo]=!0,e}function g(t){return t[Mo]}function _(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function b(t){return"object"==typeof t&&null!==t&&Object.getPrototypeOf(t)===Ro}function w(t){for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r);if(n>=55296&&n<=56319&&t.length>r+1){var o=t.charCodeAt(r+1);o>=56320&&o<=57343&&(r++,n=(n-55296<<10)+o-56320+65536)}n<=127?e+=String.fromCharCode(n):n<=2047?e+=String.fromCharCode(n>>6&31|192,63&n|128):n<=65535?e+=String.fromCharCode(n>>12|224,n>>6&63|128,63&n|128):n<=2097151&&(e+=String.fromCharCode(n>>18&7|240,n>>12&63|128,n>>6&63|128,63&n|128))}return e}function C(t){return t.replace(/\W/g,"_")}function E(t){if(!t||!t.reference)return null;var r=t.reference;if(r instanceof fo)return r.name;if(r.__anonymousType)return r.__anonymousType;var n=e.ɵstringify(r);return n.indexOf("(")>=0?(n="anonymous_"+Go++,r.__anonymousType=n):n=C(n),n}function S(t){var r=t.reference;return r instanceof fo?r.filePath:e.ɵreflector.importUri(r)}function x(t,e){return"View_"+E({reference:t})+"_"+e}function P(t){return"RenderType_"+E({reference:t})}function T(t){return"HostView_"+E({reference:t})}function A(t){return"Wrapper_"+E({reference:t})}function O(t){return E({reference:t})+"NgFactory"}function M(t){return null!=t.value?C(t.value):E(t.identifier)}function R(t){return null!=t.identifier?t.identifier.reference:t.value}function k(t,r,n){var o=Co.parse(r.selector)[0].getMatchingElementTemplate();return Ko.create({isHost:!0,type:{reference:t,diDeps:[],lifecycleHooks:[]},template:new Wo({encapsulation:e.ViewEncapsulation.None,template:o,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null}),exportAs:null,changeDetection:e.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[],componentViewType:n,rendererType:{id:"__Host__",encapsulation:e.ViewEncapsulation.None,styles:[],data:{}},entryComponents:[],componentFactory:null})}function N(t){return t||[]}function I(t){return t.reduce(function(t,e){var r=Array.isArray(e)?I(e):e;return t.concat(r)},[])}function j(t){return t.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function D(t,e,r){var n;return n=r.isInline?e.type.reference instanceof fo?e.type.reference.filePath+"."+e.type.reference.name+".html":E(t)+"/"+E(e.type)+".html":r.templateUrl,j(n)}function L(t,e){var r=t.moduleUrl.split(/\/\\/g);return j("css/"+e+r[r.length-1]+".ngstyle.js")}function V(t){return j(E(t.type)+"/module.ngfactory.js")}function F(t,e){return j(E(t)+"/"+E(e.type)+".ngfactory.js")}function U(t){return t>=Ai&&t<=Ni||t==is}function B(t){return qi<=t&&t<=Gi}function H(t){return t>=Ji&&t<=ns||t>=zi&&t<=Ki}function q(t){return t>=Ji&&t<=Zi||t>=zi&&t<=Wi||B(t)}function G(){return function(t){return t}}function z(t,r){if(e.isDevMode()&&null!=r){if(!Array.isArray(r))throw new Error("Expected '"+t+"' to be an array of strings.");for(var n=0;n<r.length;n+=1)if("string"!=typeof r[n])throw new Error("Expected '"+t+"' to be an array of strings.")}}function $(t,r){if(!(null==r||Array.isArray(r)&&2==r.length))throw new Error("Expected '"+t+"' to be an array, [start, end].");if(e.isDevMode()&&null!=r){var n=r[0],o=r[1];as.forEach(function(t){if(t.test(n)||t.test(o))throw new Error("['"+n+"', '"+o+"'] contains unusable interpolation symbol.")})}}function W(t,e){return new fs(t,ls.Character,e,String.fromCharCode(e))}function K(t,e){return new fs(t,ls.Identifier,0,e)}function Q(t,e){return new fs(t,ls.Keyword,0,e)}function J(t,e){return new fs(t,ls.Operator,0,e)}function X(t,e){return new fs(t,ls.String,0,e)}function Z(t,e){return new fs(t,ls.Number,e,"")}function Y(t,e){return new fs(t,ls.Error,0,e)}function tt(t){return Ji<=t&&t<=ns||zi<=t&&t<=Ki||t==Qi||t==ji}function et(t){if(0==t.length)return!1;var e=new ms(t);if(!tt(e.peek))return!1;for(e.advance();e.peek!==Ti;){if(!rt(e.peek))return!1;e.advance()}return!0}function rt(t){return H(t)||B(t)||t==Qi||t==ji}function nt(t){return t==Xi||t==$i}function ot(t){return t==Vi||t==Li}function it(t){return t===Di||t===Ii||t===ss}function st(t){switch(t){case Yi:return Oi;case Zi:return Ri;case ts:return ki;case es:return Ai;case rs:return Mi;default:return t}}function at(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function ut(t){var e=_(t.start)+"([\\s\\S]*?)"+_(t.end);return new RegExp(e,"g")}function ct(t,e){var r=S(e),n=null!=r?"in "+t+" "+E(e)+" in "+r:"in "+t+" "+E(e),o=new Cs("",n);return new Es(new ws(o,-1,-1,-1),new ws(o,-1,-1,-1))}function lt(t,e,r){void 0===r&&(r=null);var n=[],o=t.visit?function(e){return t.visit(e,r)||e.visit(t,r)}:function(e){return e.visit(t,r)};return e.forEach(function(t){var e=o(t);e&&n.push(e)}),n}function pt(t,e,r,n,o){return void 0===n&&(n=!1),void 0===o&&(o=cs),new Vs(new Cs(t,e),r,n,o).tokenize()}function ht(t){return'Unexpected character "'+(t===Ti?"EOF":String.fromCharCode(t))+'"'}function ft(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or  "&#x<hex>;" syntax'}function dt(t){return!U(t)||t===Ti}function mt(t){return U(t)||t===Hi||t===Fi||t===Di||t===Ii||t===Bi}function yt(t){return(t<Ji||ns<t)&&(t<zi||Ki<t)&&(t<qi||t>Gi)}function vt(t){return t==Ui||t==Ti||!q(t)}function gt(t){return t==Ui||t==Ti||!H(t)}function _t(t,e,r){var n=!!r&&t.indexOf(r.start,e)==e;return t.charCodeAt(e)==os&&!n}function bt(t){return t===Bi||H(t)}function wt(t,e){return Ct(t)==Ct(e)}function Ct(t){return t>=Ji&&t<=ns?t-Ji+zi:t}function Et(t){for(var e=[],r=void 0,n=0;n<t.length;n++){var o=t[n];r&&r.type==ks.TEXT&&o.type==ks.TEXT?(r.parts[0]+=o.parts[0],r.sourceSpan.end=o.sourceSpan.end):(r=o,e.push(r))}return e}function St(t,e){return t.length>0&&t[t.length-1]===e}function xt(t){var e=new ea(ta,t);return function(t,r,n,o){return e.toI18nMessage(t,r,n,o)}}function Pt(t){return t.split(ra)[2]}function Tt(t,e,r,n){return new la(r,n).extract(t,e)}function At(t,e,r,n,o){return new la(n,o).merge(t,e,r)}function Ot(t){return!!(t instanceof Rs&&t.value&&t.value.startsWith("i18n"))}function Mt(t){return!!(t instanceof Rs&&t.value&&"/i18n"===t.value)}function Rt(t){return t.attrs.find(function(t){return t.name===oa})||null}function kt(t){if(!t)return{meaning:"",description:"",id:""};var e=t.indexOf(aa),r=t.indexOf(sa),n=e>-1?[t.slice(0,e),t.slice(e+2)]:[t,""],o=n[0],i=n[1],s=r>-1?[o.slice(0,r),o.slice(r+1)]:["",o];return{meaning:s[0],description:s[1],id:i}}function Nt(t){return pa}function It(t){return t.id||Lt(Dt(t.nodes).join("")+"["+t.meaning+"]")}function jt(t){if(t.id)return t.id;var e=new ma;return Ut(t.nodes.map(function(t){return t.visit(e,null)}).join(""),t.meaning)}function Dt(t){return t.map(function(t){return t.visit(da,null)})}function Lt(t){var e=w(t),r=Qt(e,ya.Big),n=8*e.length,o=new Array(80),i=[1732584193,4023233417,2562383102,271733878,3285377520],s=i[0],a=i[1],u=i[2],c=i[3],l=i[4];r[n>>5]|=128<<24-n%32,r[15+(n+64>>9<<4)]=n;for(var p=0;p<r.length;p+=16){for(var h=[s,a,u,c,l],f=h[0],d=h[1],m=h[2],y=h[3],v=h[4],g=0;g<80;g++){o[g]=g<16?r[p+g]:Wt(o[g-3]^o[g-8]^o[g-14]^o[g-16],1);var _=Vt(g,a,u,c),b=_[0],C=_[1],E=[Wt(s,5),b,l,C,o[g]].reduce(qt);l=(S=[c,u,Wt(a,30),s,E])[0],c=S[1],u=S[2],a=S[3],s=S[4]}s=(x=[qt(s,f),qt(a,d),qt(u,m),qt(c,y),qt(l,v)])[0],a=x[1],u=x[2],c=x[3],l=x[4]}return te(Zt([s,a,u,c,l]));var S,x}function Vt(t,e,r,n){return t<20?[e&r|~e&n,1518500249]:t<40?[e^r^n,1859775393]:t<60?[e&r|e&n|r&n,2400959708]:[e^r^n,3395469782]}function Ft(t){var e=w(t),r=[Bt(e,0),Bt(e,102072)],n=r[0],o=r[1];return 0!=n||0!=o&&1!=o||(n^=319790063,o^=-1801410264),[n,o]}function Ut(t,e){var r=Ft(t),n=r[0],o=r[1];if(e){var i=Ft(e),s=i[0],a=i[1];n=(u=zt(Kt([n,o],1),[s,a]))[0],o=u[1]}return ee(Zt([2147483647&n,o]));var u}function Bt(t,e){var r,n=[2654435769,2654435769],o=n[0],i=n[1],s=t.length;for(r=0;r+12<=s;r+=12)o=(a=Ht([o=qt(o,Xt(t,r,ya.Little)),i=qt(i,Xt(t,r+4,ya.Little)),e=qt(e,Xt(t,r+8,ya.Little))]))[0],i=a[1],e=a[2];return o=qt(o,Xt(t,r,ya.Little)),i=qt(i,Xt(t,r+4,ya.Little)),e=qt(e,s),e=qt(e,Xt(t,r+8,ya.Little)<<8),Ht([o,i,e])[2];var a}function Ht(t){var e=t[0],r=t[1],n=t[2];return e=$t(e,r),e=$t(e,n),e^=n>>>13,r=$t(r,n),r=$t(r,e),r^=e<<8,n=$t(n,e),n=$t(n,r),n^=r>>>13,e=$t(e,r),e=$t(e,n),e^=n>>>12,r=$t(r,n),r=$t(r,e),r^=e<<16,n=$t(n,e),n=$t(n,r),n^=r>>>5,e=$t(e,r),e=$t(e,n),e^=n>>>3,r=$t(r,n),r=$t(r,e),r^=e<<10,n=$t(n,e),n=$t(n,r),n^=r>>>15,[e,r,n]}function qt(t,e){return Gt(t,e)[1]}function Gt(t,e){var r=(65535&t)+(65535&e),n=(t>>>16)+(e>>>16)+(r>>>16);return[n>>>16,n<<16|65535&r]}function zt(t,e){var r=t[0],n=t[1],o=e[0],i=Gt(n,e[1]),s=i[0],a=i[1];return[qt(qt(r,o),s),a]}function $t(t,e){var r=(65535&t)-(65535&e);return(t>>16)-(e>>16)+(r>>16)<<16|65535&r}function Wt(t,e){return t<<e|t>>>32-e}function Kt(t,e){var r=t[0],n=t[1];return[r<<e|n>>>32-e,n<<e|r>>>32-e]}function Qt(t,e){for(var r=Array(t.length+3>>>2),n=0;n<r.length;n++)r[n]=Xt(t,4*n,e);return r}function Jt(t,e){return e>=t.length?0:255&t.charCodeAt(e)}function Xt(t,e,r){var n=0;if(r===ya.Big)for(o=0;o<4;o++)n+=Jt(t,e+o)<<24-8*o;else for(var o=0;o<4;o++)n+=Jt(t,e+o)<<8*o;return n}function Zt(t){return t.reduce(function(t,e){return t+Yt(e)},"")}function Yt(t){for(var e="",r=0;r<4;r++)e+=String.fromCharCode(t>>>8*(3-r)&255);return e}function te(t){for(var e="",r=0;r<t.length;r++){var n=Jt(t,r);e+=(n>>>4).toString(16)+(15&n).toString(16)}return e.toLowerCase()}function ee(t){for(var e="",r="1",n=t.length-1;n>=0;n--)e=re(e,ne(Jt(t,n),r)),r=ne(256,r);return e.split("").reverse().join("")}function re(t,e){for(var r="",n=Math.max(t.length,e.length),o=0,i=0;o<n||i;o++){var s=i+ +(t[o]||0)+ +(e[o]||0);s>=10?(i=1,r+=s-10):(i=0,r+=s)}return r}function ne(t,e){for(var r="",n=e;0!==t;t>>>=1)1&t&&(r=re(r,n)),n=re(n,n);return r}function oe(t){return t.map(function(t){return t.visit(_a)}).join("")}function ie(t){return xa.reduce(function(t,e){return t.replace(e[0],e[1])},t)}function se(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}function ae(t){switch(t.toLowerCase()){case"br":case"b":case"i":case"u":return"fmt";case"img":return"image";case"a":return"link";default:return"other"}}function ue(t){return jt(t)}function ce(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}function le(t,e,r){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var n=r();return Object.defineProperty(t,e,{enumerable:!0,value:n}),n},set:function(t){throw new Error("Could not overwrite an XTB translation")}})}function pe(t){switch(t=(t||"xlf").toLowerCase()){case"xmb":return new Ia;case"xtb":return new La;case"xliff2":case"xlf2":return new Ma;case"xliff":case"xlf":default:return new Pa}}function he(t){var r=t.name;return e.ɵreflector.resolveIdentifier(r,t.moduleUrl,null,t.runtime)}function fe(t){return{reference:he(t)}}function de(t){return{identifier:t}}function me(t){return de(fe(t))}function ye(t){var e=new Qa;return new Wa(lt(e,t),e.isExpanded,e.errors)}function ve(t,e){var r=t.cases.map(function(t){-1!=$a.indexOf(t.value)||t.value.match(/^=\d+$/)||e.push(new Ka(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+$a.join(", ")));var r=ye(t.expression);return e.push.apply(e,r.errors),new Ms("ng-template",[new Os("ngPluralCase",""+t.value,t.valueSourceSpan)],r.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),n=new Os("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new Ms("ng-container",[n],r,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function ge(t,e){var r=t.cases.map(function(t){var r=ye(t.expression);return e.push.apply(e,r.errors),"other"===t.value?new Ms("ng-template",[new Os("ngSwitchDefault","",t.valueSourceSpan)],r.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new Ms("ng-template",[new Os("ngSwitchCase",""+t.value,t.valueSourceSpan)],r.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),n=new Os("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new Ms("ng-container",[n],r,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function _e(t,e){var r=e.useExisting,n=e.useValue,o=e.deps;return{token:t.token,useClass:t.useClass,useExisting:r,useFactory:t.useFactory,useValue:n,deps:o,multi:t.multi}}function be(t,e){var r=e.eager,n=e.providers;return new co(t.token,t.multiProvider,t.eager||r,n,t.providerType,t.lifecycleHooks,t.sourceSpan)}function we(t,e,r){var n=new Map;return t.forEach(function(t){Ce([{token:{identifier:t.type},useClass:t.type}],t.isComponent?lo.Component:lo.Directive,!0,e,r,n)}),t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent})).forEach(function(t){Ce(t.providers,lo.PublicService,!1,e,r,n),Ce(t.viewProviders,lo.PrivateService,!1,e,r,n)}),n}function Ce(t,e,r,n,o,i){t.forEach(function(t){var s=i.get(R(t.token));if(null!=s&&!!s.multiProvider!=!!t.multi&&o.push(new Ja("Mixing multi and non multi provider is not possible for token "+M(s.token),n)),s)t.multi||(s.providers.length=0),s.providers.push(t);else{var a=t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[],u=!(t.useClass||t.useExisting||t.useFactory);s=new co(t.token,!!t.multi,r||u,[t],e,a,n),i.set(R(t.token),s)}})}function Ee(t){var e=1,r=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return xe(r,{meta:t,queryId:e++})}),r}function Se(t,e){var r=t,n=new Map;return e.forEach(function(t,e){t.queries&&t.queries.forEach(function(t){return xe(n,{meta:t,queryId:r++})})}),n}function xe(t,e){e.meta.selectors.forEach(function(r){var n=t.get(R(r));n||(n=[],t.set(R(r),n)),n.push(e)})}function Pe(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(ou);return null===e||"package"==e[1]||"asset"==e[1]}function Te(t,e,r){var n=[],o=r.replace(nu,"").replace(ru,function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=r[1]||r[2];return Pe(i)?(n.push(t.resolve(e,i)),""):r[0]});return new eu(o,n)}function Ae(t){return"@"==t[0]}function Oe(t,r,n,o){var i=[];return Co.parse(r).forEach(function(e){var r=e.element?[e.element]:t.allKnownElementNames(),s=new Set(e.notSelectors.filter(function(t){return t.isElementSelector()}).map(function(t){return t.element})),a=r.filter(function(t){return!s.has(t)});i.push.apply(i,a.map(function(e){return t.securityContext(e,n,o)}))}),0===i.length?[e.SecurityContext.NONE]:Array.from(new Set(i)).sort()}function Me(t){var e=null,r=null,n=null,o=!1,s=null;t.attrs.forEach(function(t){var i=t.name.toLowerCase();i==cu?e=t.value:i==hu?r=t.value:i==pu?n=t.value:t.name==yu?o=!0:t.name==vu&&t.value.length>0&&(s=t.value)}),e=Re(e);var a=t.name.toLowerCase(),u=gu.OTHER;return i(a)?u=gu.NG_CONTENT:a==du?u=gu.STYLE:a==mu?u=gu.SCRIPT:a==lu&&n==fu&&(u=gu.STYLESHEET),new _u(u,e,r,o,s)}function Re(t){return null===t||0===t.length?"*":t}function ke(t){return function(e){return-1===t.indexOf(e.msg)||(xu[e.msg]=(xu[e.msg]||0)+1,xu[e.msg]<=1)}}function Ne(t){return t.trim().split(/\s+/g)}function Ie(t,e){var r=new Co,o=n(t)[1];r.setElement(o);for(var i=0;i<e.length;i++){var s=e[i][0],a=n(s)[1],u=e[i][1];r.addAttribute(a,u),s.toLowerCase()==Cu&&Ne(u).forEach(function(t){return r.addClassName(t)})}return r}function je(t){return t instanceof Ps&&0==t.value.trim().length}function De(t){var e=new Map;return t.forEach(function(t){e.get(t.type.reference)||e.set(t.type.reference,t)}),Array.from(e.values())}function Le(t){return t instanceof Ei&&(t=t.ast),t instanceof oi}function Ve(t,e,r){if(s(t.name))return!0;var o=n(t.name)[1];return!(o.toLowerCase()!==wu||!e||o.toLowerCase()!==wu)&&(r(Su,t.sourceSpan),!0)}function Fe(){return new Vu}function Ue(){return new Vu(".")}function Be(t){var e=qe(t);return e&&e[Uu.Scheme]||""}function He(t,e,r,n,o,i,s){var a=[];return null!=t&&a.push(t+":"),null!=r&&(a.push("//"),null!=e&&a.push(e+"@"),a.push(r),null!=n&&a.push(":"+n)),null!=o&&a.push(o),null!=i&&a.push("?"+i),null!=s&&a.push("#"+s),a.join("")}function qe(t){return t.match(Fu)}function Ge(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",r="/"===t[t.length-1]?"/":"",n=t.split("/"),o=[],i=0,s=0;s<n.length;s++){var a=n[s];switch(a){case"":case".":break;case"..":o.length>0?o.pop():i++;break;default:o.push(a)}}if(""==e){for(;i-- >0;)o.unshift("..");0===o.length&&o.push(".")}return e+o.join("/")+r}function ze(t){var e=t[Uu.Path];return e=null==e?"":Ge(e),t[Uu.Path]=e,He(t[Uu.Scheme],t[Uu.UserInfo],t[Uu.Domain],t[Uu.Port],e,t[Uu.QueryData],t[Uu.Fragment])}function $e(t,e){var r=qe(encodeURI(e)),n=qe(t);if(null!=r[Uu.Scheme])return ze(r);r[Uu.Scheme]=n[Uu.Scheme];for(var o=Uu.Scheme;o<=Uu.Port;o++)null==r[o]&&(r[o]=n[o]);if("/"==r[Uu.Path][0])return ze(r);var i=n[Uu.Path];null==i&&(i="/");var s=i.lastIndexOf("/");return i=i.substring(0,s+1)+r[Uu.Path],r[Uu.Path]=i,ze(r)}function We(t){return t instanceof e.Directive}function Ke(t,e){for(var r=t.length-1;r>=0;r--)if(e(t[r]))return t[r];return null}function Qe(t){var e=Ze(t);return e[0]+".ngfactory"+e[1]}function Je(t){return t.replace($u,".")}function Xe(t){return $u.test(t)}function Ze(t){if(t.endsWith(".d.ts"))return[t.slice(0,-5),".ts"];var e=t.lastIndexOf(".");return-1!==e?[t.substring(0,e),t.substring(e)]:[t,""]}function Ye(t){return t.replace(zu,"")+".ngsummary.json"}function tr(t,r){return e.ɵreflector.hasLifecycleHook(r,er(t))}function er(t){switch(t){case e.ɵLifecycleHooks.OnInit:return"ngOnInit";case e.ɵLifecycleHooks.OnDestroy:return"ngOnDestroy";case e.ɵLifecycleHooks.DoCheck:return"ngDoCheck";case e.ɵLifecycleHooks.OnChanges:return"ngOnChanges";case e.ɵLifecycleHooks.AfterContentInit:return"ngAfterContentInit";case e.ɵLifecycleHooks.AfterContentChecked:return"ngAfterContentChecked";case e.ɵLifecycleHooks.AfterViewInit:return"ngAfterViewInit";case e.ɵLifecycleHooks.AfterViewChecked:return"ngAfterViewChecked"}}function rr(t){return t instanceof e.NgModule}function nr(t){return t instanceof e.Pipe}function or(t,r){if(void 0===r&&(r=[]),t)for(var n=0;n<t.length;n++){var o=e.resolveForwardRef(t[n]);Array.isArray(o)?or(o,r):r.push(o)}return r}function ir(t){return t?Array.from(new Set(t)):[]}function sr(t){return ir(or(t))}function ar(t){return t instanceof fo||t instanceof e.Type}function ur(t,e,r){if(e instanceof fo)return t.resourceUri(e);var n=r.moduleId;if("string"==typeof n)return Be(n)?n:"package:"+n+Po;if(null!==n&&void 0!==n)throw v('moduleId should be a string in "'+lr(e)+"\". See https://goo.gl/wIDDiL for more information.\nIf you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.");return t.importUri(e)}function cr(t,e){d(t,new Zu,e)}function lr(t){return t instanceof fo?t.name+" in "+t.filePath:e.ɵstringify(t)}function pr(t){var r=Error("Can't compile synchronously as "+e.ɵstringify(t)+" is still being loaded!");return r[e.ɵERROR_COMPONENT_TYPE]=t,r}function hr(t){var e=new Yc;return e.visitAllStatements(t,null),e.varNames}function fr(t,e){if(!e)return t;var r=new tl(e);return t.visitStatement(r,null)}function dr(t,e){if(!e)return t;var r=new tl(e);return t.visitExpression(r,null)}function mr(t,e,r){return new hc(t,e,r)}function yr(t,e,r){return void 0===e&&(e=null),new wc(t,null,e,r)}function vr(t,e,r){return void 0===e&&(e=null),void 0===r&&(r=null),null!=t?gr(yr(t,e,null),r):null}function gr(t,e){return void 0===e&&(e=null),null!=t?new nc(t,e):null}function _r(t,e,r){return new Mc(t,e,r)}function br(t,e,r){return void 0===e&&(e=null),void 0===r&&(r=!1),new kc(t.map(function(t){return new Rc(t[0],t[1],r)}),e,null)}function wr(t,e){return new Ec(t,e)}function Cr(t,e,r,n){return new Pc(t,e,r,n)}function Er(t,e,r){return new bc(t,e,r)}function Sr(t){var e=t.parentArgs||[],r=t.parent?[jc.callFn(e).toStmt()]:[],n=xr(Array.isArray(t.builders)?t.builders:[t.builders]),o=new $c(null,t.ctorParams||[],r.concat(n.ctorStmts));return new Kc(t.name,t.parent||null,n.fields,n.getters,o,n.methods,t.modifiers||[],t.sourceSpan)}function xr(t){return{fields:[].concat.apply([],t.map(function(t){return t.fields||[]})),methods:[].concat.apply([],t.map(function(t){return t.methods||[]})),getters:[].concat.apply([],t.map(function(t){return t.getters||[]})),ctorStmts:[].concat.apply([],t.map(function(t){return t.ctorStmts||[]}))}}function Pr(t,e){return void 0===e&&(e=null),d(t,new el,e)}function Tr(t){return null!=t.value?Er(t.value):yr(t.identifier)}function Ar(t){var e="";t=w(t);for(var r=0;r<t.length;){var n=t.charCodeAt(r++),o=t.charCodeAt(r++),i=t.charCodeAt(r++);e+=Mr(n>>2),e+=Mr((3&n)<<4|(isNaN(o)?0:o>>4)),e+=isNaN(o)?"=":Mr((15&o)<<2|i>>6),e+=isNaN(o)||isNaN(i)?"=":Mr(63&i)}return e}function Or(t){t=t<0?1+(-t<<1):t<<1;var e="";do{var r=31&t;(t>>=5)>0&&(r|=32),e+=Mr(r)}while(t>0);return e}function Mr(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return cl[t]}function Rr(t,e,r){if(void 0===r&&(r=!0),null==t)return null;var n=t.replace(ll,function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return"$"==t[0]?e?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":"\\"+t[0]});return r||!pl.test(n)?"'"+n+"'":n}function kr(t){for(var e="",r=0;r<t;r++)e+=hl;return e}function Nr(t){var e=new bl(gl,{fileNameToModuleName:function(t,e){return t},getImportAs:function(t){return null},getTypeArity:function(t){return null}}),r=yl.createRoot([]);return(Array.isArray(t)?t:[t]).forEach(function(t){if(t instanceof Fc)t.visitStatement(e,r);else if(t instanceof lc)t.visitExpression(e,r);else{if(!(t instanceof tc))throw new Error("Don't know how to print debug info for "+t);t.visitType(e,r)}}),r.toSource()}function Ir(t,e){for(var r=0,n=e;r<n.length;r++){var o=n[r];wl[o.toLowerCase()]=t}}function jr(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}function Dr(t){return t.replace(Wl,"")}function Lr(t){var e=t.match(Kl);return e?e[0]:""}function Vr(t,e){var r=Fr(t),n=0;return r.escapedString.replace(Ql,function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var i=t[2],s="",a=t[4],u="";a&&a.startsWith("{"+Yl)&&(s=r.blocks[n++],a=a.substring(Yl.length+1),u="{");var c=e(new tp(i,s));return""+t[1]+c.selector+t[3]+u+c.content+a})}function Fr(t){for(var e=t.split(Jl),r=[],n=[],o=0,i=[],s=0;s<e.length;s++){var a=e[s];a==Zl&&o--,o>0?i.push(a):(i.length>0&&(n.push(i.join("")),r.push(Yl),i=[]),r.push(a)),a==Xl&&o++}return i.length>0&&(n.push(i.join("")),r.push(Yl)),new ep(r.join(""),n)}function Ur(t){var e="styles";return t&&(e+="_"+E(t.type)),e}function Br(t,e,r,n){t||(t=new hp);var o=Hr({createLiteralArrayConverter:function(t){return function(t){return _r(t)}},createLiteralMapConverter:function(t){return function(e){return br(t.map(function(t,r){return[t,e[r]]}))}},createPipeConverter:function(t){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: "+t)}},r),i=new pp(t,e,n),s=[];Xr(o.visit(i,cp.Statement),s),Wr(i.temporaryCount,n,s);var a=s.length-1,u=null;if(a>=0){var c=tn(s[a]);c&&(u=Yr(n),s[a]=u.set(c.cast(sc).notIdentical(Er(!1))).toDeclStmt(null,[Vc.Final]))}return new ap(s,u)}function Hr(t,e){return Gr(t,e)}function qr(t,e,r,n){t||(t=new hp);var o=Zr(n),i=[],s=new pp(t,e,n),a=r.visit(s,cp.Expression);if(s.temporaryCount)for(var u=0;u<s.temporaryCount;u++)i.push($r(n,u));return i.push(o.set(a).toDeclStmt(null,[Vc.Final])),new up(i,o)}function Gr(t,e){var r=new lp(t);return e.visit(r)}function zr(t,e){return"tmp_"+t+"_"+e}function $r(t,e){return new Uc(zr(t,e),Dc)}function Wr(t,e,r){for(var n=t-1;n>=0;n--)r.unshift($r(e,n))}function Kr(t,e){if(t!==cp.Statement)throw new Error("Expected a statement, but saw "+e)}function Qr(t,e){if(t!==cp.Expression)throw new Error("Expected an expression, but saw "+e)}function Jr(t,e){return t===cp.Statement?e.toStmt():e}function Xr(t,e){Array.isArray(t)?t.forEach(function(t){return Xr(t,e)}):e.push(t)}function Zr(t){return mr("currVal_"+t)}function Yr(t){return mr("pd_"+t)}function tn(t){return t instanceof Hc?t.expr:t instanceof qc?t.value:null}function en(t){return t.multiProvider?rn(t.providers):nn(t.providerType,t.providers[0])}function rn(t){function e(t,e){return e.map(function(e,o){var i="p"+t+"_"+o;return n.push(new xc(i,sc)),r.push(sn(e)),mr(i)})}var r=[],n=[],o=t.map(function(t,r){var n;if(t.useClass){o=e(r,t.deps||t.useClass.diDeps);n=yr(t.useClass).instantiate(o)}else if(t.useFactory){var o=e(r,t.deps||t.useFactory.diDeps);n=yr(t.useFactory).callFn(o)}else n=t.useExisting?(o=e(r,[{token:t.useExisting}]))[0]:Pr(t.useValue);return n});return{providerExpr:Cr(n,[new qc(_r(o))],ac),flags:1024,depsExpr:_r(r)}}function nn(t,e){var r,n,o;return t===lo.Directive||t===lo.Component?(r=yr(e.useClass),n=16384,o=e.deps||e.useClass.diDeps):e.useClass?(r=yr(e.useClass),n=512,o=e.deps||e.useClass.diDeps):e.useFactory?(r=yr(e.useFactory),n=1024,o=e.deps||e.useFactory.diDeps):e.useExisting?(r=Dc,n=2048,o=[{token:e.useExisting}]):(r=Pr(e.useValue),n=256,o=[]),{providerExpr:r,flags:n,depsExpr:_r(o.map(function(t){return sn(t)}))}}function on(t){return t.identifier?yr(t.identifier):Er(t.value)}function sn(t){var e=t.isValue?Pr(t.value):on(t.token),r=0;return t.isSkipSelf&&(r|=1),t.isOptional&&(r|=2),t.isValue&&(r|=8),0===r?e:_r([Er(r),e])}function an(t){var e=t[t.length-1];return e instanceof so?e.hasViewContainer:e instanceof io?o(e.name)&&e.children.length?an(e.children):e.hasViewContainer:e instanceof po}function un(t){var r=0;switch(t){case e.ɵLifecycleHooks.AfterContentChecked:r=2097152;break;case e.ɵLifecycleHooks.AfterContentInit:r=1048576;break;case e.ɵLifecycleHooks.AfterViewChecked:r=8388608;break;case e.ɵLifecycleHooks.AfterViewInit:r=4194304;break;case e.ɵLifecycleHooks.DoCheck:r=262144;break;case e.ɵLifecycleHooks.OnChanges:r=524288;break;case e.ɵLifecycleHooks.OnDestroy:r=131072;break;case e.ɵLifecycleHooks.OnInit:r=65536}return r}function cn(t,e){switch(t.type){case ho.Attribute:return _r([Er(1),Er(t.name),Er(t.securityContext)]);case ho.Property:return _r([Er(8),Er(t.name),Er(t.securityContext)]);case ho.Animation:return _r([Er(8|(e&&e.directive.isComponent?32:16)),Er("@"+t.name),Er(t.securityContext)]);case ho.Class:return _r([Er(2),Er(t.name),Dc]);case ho.Style:return _r([Er(4),Er(t.name),Er(t.unit)])}}function ln(t){var e=Object.create(null);return t.attrs.forEach(function(t){e[t.name]=t.value}),t.directives.forEach(function(t){Object.keys(t.directive.hostAttributes).forEach(function(r){var n=t.directive.hostAttributes[r],o=e[r];e[r]=null!=o?pn(r,o,n):n})}),_r(Object.keys(e).sort().map(function(t){return _r([Er(t),Er(e[t])])}))}function pn(t,e,r){return t==dp||t==mp?e+" "+r:r}function hn(t,e){return e.length>10?bp.callFn([_p,Er(t),Er(1),_r(e)]):bp.callFn([_p,Er(t),Er(0)].concat(e))}function fn(t,e,r){return yr(fe(za.unwrapValue)).callFn([_p,Er(t),Er(e),r])}function dn(t,e){return void 0===e&&(e=new Map),t.forEach(function(t){var r=new Set,n=new Set,o=void 0;t instanceof io?(dn(t.children,e),t.children.forEach(function(t){var o=e.get(t);o.staticQueryIds.forEach(function(t){return r.add(t)}),o.dynamicQueryIds.forEach(function(t){return n.add(t)})}),o=t.queryMatches):t instanceof so&&(dn(t.children,e),t.children.forEach(function(t){var r=e.get(t);r.staticQueryIds.forEach(function(t){return n.add(t)}),r.dynamicQueryIds.forEach(function(t){return n.add(t)})}),o=t.queryMatches),o&&o.forEach(function(t){return r.add(t.queryId)}),n.forEach(function(t){return r.delete(t)}),e.set(t,{staticQueryIds:r,dynamicQueryIds:n})}),e}function mn(t){var e=new Set,r=new Set;return Array.from(t.values()).forEach(function(t){t.staticQueryIds.forEach(function(t){return e.add(t)}),t.dynamicQueryIds.forEach(function(t){return r.add(t)})}),r.forEach(function(t){return e.delete(t)}),{staticQueryIds:e,dynamicQueryIds:r}}function yn(t){var e=t.find(function(t){return t.directive.isComponent});if(e&&e.directive.entryComponents.length){var r=e.directive.entryComponents.map(function(t){return yr({reference:t.componentFactory})}),n=me(za.ComponentFactoryResolver),o={diDeps:[{isValue:!0,value:_r(r)},{token:n,isSkipSelf:!0,isOptional:!0},{token:me(za.NgModuleRef)}],lifecycleHooks:[],reference:he(za.CodegenComponentFactoryResolver)};return new co(n,!1,!0,[{token:n,multi:!1,useClass:o}],lo.PrivateService,[],e.sourceSpan)}return null}function vn(t,e){return t.isAnimation?{name:"@"+t.name+"."+t.phase,target:e&&e.directive.isComponent?"component":null}:t}function gn(t,e,r){var n=0;return!r||!t.staticQueryIds.has(e)&&t.dynamicQueryIds.has(e)?n|=536870912:n|=268435456,n}function _n(t,e,r,n){var o=new Pp(e,t);r.forEach(function(t){return o.addOrMergeSummary({symbol:t.symbol,metadata:t.metadata})});for(var i=0;i<o.symbols.length;i++){var s=o.symbols[i];if(t.isLibraryFile(s.filePath)){var a=t.resolveSummary(s);if(!a){var u=e.resolveSymbol(s);u&&(a={symbol:u.symbol,metadata:u.metadata})}a&&o.addOrMergeSummary(a)}}return n.forEach(function(e){if(o.addOrMergeSummary({symbol:e.type.reference,metadata:null,type:e}),e.summaryKind===zo.NgModule){var r=e;r.exportedDirectives.concat(r.exportedPipes).forEach(function(e){var r=e.reference;if(t.isLibraryFile(r.filePath)){var n=t.resolveSummary(r);n&&o.addOrMergeSummary(n)}})}}),o.serialize()}function bn(t,e){return new Tp(t).deserialize(e)}function wn(t,e,r){return e.dependencies.forEach(function(e){e.valuePlaceholder.reference=t.getStaticSymbol(Cn(e.moduleUrl,e.isShimmed,r),e.name)}),e.statements}function Cn(t,e,r){return t+(e?".shim":"")+".ngstyle"+r}function En(t){if(!t.isComponent)throw new Error("Could not compile '"+E(t.type)+"' because it is not a component.")}function Sn(t,e,r){var n=An(t,e,r);return Pn(t,n.ngModules,n.symbolsMissingModule,r)}function xn(t,e,r){var n=Sn(t,e,r);if(n.symbolsMissingModule&&n.symbolsMissingModule.length)throw v(n.symbolsMissingModule.map(function(t){return"Cannot determine the module for class "+t.name+" in "+t.filePath+"! Add "+t.name+" to the NgModule to fix it."}).join("\n"));return n}function Pn(t,e,r,n){var o=new Map;e.forEach(function(t){return o.set(t.type.reference,t)});var i=new Map,s=new Map,a=new Map,u=new Map,c=new Map,l=new Set;t.forEach(function(t){var e=t.filePath;l.add(e),n.isInjectable(t)&&c.set(e,(c.get(e)||[]).concat(t))}),e.forEach(function(t){var e=t.type.reference.filePath;l.add(e),s.set(e,(s.get(e)||[]).concat(t.type.reference)),t.declaredDirectives.forEach(function(e){var r=e.reference.filePath;l.add(r),a.set(r,(a.get(r)||[]).concat(e.reference)),i.set(e.reference,t)}),t.declaredPipes.forEach(function(e){var r=e.reference.filePath;l.add(r),u.set(r,(u.get(r)||[]).concat(e.reference)),i.set(e.reference,t)})});var p=[];return l.forEach(function(t){var e=a.get(t)||[],r=u.get(t)||[],n=s.get(t)||[],o=c.get(t)||[];p.push({srcUrl:t,directives:e,pipes:r,ngModules:n,injectables:o})}),{ngModuleByPipeOrDirective:i,files:p,ngModules:e,symbolsMissingModule:r}}function Tn(t,e,r){var n=[];return e.filter(function(t){return r.isSourceFile(t)}).forEach(function(e){t.getSymbolsOf(e).forEach(function(e){var r=t.resolveSymbol(e),o=r.metadata;o&&"error"!=o.__symbolic&&n.push(r.symbol)})}),n}function An(t,e,r){var n=new Map,o=[],i=new Set,s=function(t){if(n.has(t)||!e.isSourceFile(t.filePath))return!1;var o=r.getNgModuleMetadata(t,!1);return o&&(n.set(o.type.reference,o),o.declaredDirectives.forEach(function(t){return i.add(t.reference)}),o.declaredPipes.forEach(function(t){return i.add(t.reference)}),o.transitiveModule.modules.forEach(function(t){return s(t.reference)})),!!o};t.forEach(function(t){s(t)||!r.isDirective(t)&&!r.isPipe(t)||o.push(t)});var a=o.filter(function(t){return!i.has(t)});return{ngModules:Array.from(n.values()),symbolsMissingModule:a}}function On(t){return"object"==typeof t&&t.name&&t.filePath}function Mn(t){return t&&"ignore"==t.__symbolic}function Rn(t){switch(t.message){case"Reference to non-exported class":if(t.context&&t.context.className)return"Reference to a non-exported class "+t.context.className+". Consider exporting the class";break;case"Variable not initialized":return"Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler";case"Destructuring not supported":return"Referencing an exported destructured variable or constant is not supported by the template compiler. Consider simplifying this to avoid destructuring";case"Could not resolve type":if(t.context&&t.context.typeName)return"Could not resolve type "+t.context.typeName;break;case"Function call not supported":return(t.context&&t.context.name?"Calling function '"+t.context.name+"', f":"F")+"unction calls are not supported. Consider replacing the function or lambda with a reference to an exported function";case"Reference to a local symbol":if(t.context&&t.context.name)return"Reference to a local (non-exported) symbol '"+t.context.name+"'. Consider exporting the symbol"}return t.message}function kn(t){return"Error encountered resolving symbol values statically. "+Rn(t)}function Nn(t,e){if(!t)return{};var r={};return Object.keys(t).forEach(function(n){var o=e(t[n],n);Mn(o)||(Rp.test(n)?Object.defineProperty(r,n,{enumerable:!1,configurable:!0,value:o}):r[n]=o)}),r}function In(t){return null===t||"function"!=typeof t&&"object"!=typeof t}function jn(t,e,r,n){var o=new Error(t);return o.fileName=e,o.line=r,o.column=n,o}function Dn(t){return t.startsWith("___")?t.substr(1):t}function Ln(t,r){var n=r.translations||"",o=Ue(),i=new mo,s=new Vp(t,i),a=new Lp(t,i,s),u=new Np(s,a);Op.install(u);var c=new e.ɵConsole,l=new qa(new Ua,n,r.i18nFormat,e.MissingTranslationStrategy.Warning,c),p=new Yo({defaultEncapsulation:e.ViewEncapsulation.Emulated,useJit:!1,enableLegacyTemplate:!1!==r.enableLegacyTemplate}),h=new Bu({get:function(e){return t.loadResource(e)}},o,l,p),f=new gs(new hs),d=new Al,m=new Ou(p,f,d,l,c,[]),y=new Xu(p,new Wu(u),new Gu(u),new Ku(u),s,d,h,c,i,u),v={getImportAs:function(t){return a.getImportAs(t)},fileNameToModuleName:function(e,r){return t.fileNameToModuleName(e,r)},getTypeArity:function(t){return a.getTypeArity(t)}},g=new vp(p,d);return{compiler:new Ap(p,t,y,m,new ip(o),g,new ol,new _l(v),s,r.locale||null,r.i18nFormat||null,r.genFilePreamble||null,a),reflector:u}}function Vn(t,e){var r=t.concat([new qc(_r(e.map(function(t){return mr(t)})))]),n=new Fp(null,null,null,new Map),o=(new Bp).visitAllStatements(r,n);return null!=o?o.value:null}function Fn(t,e,r,n,o){for(var i=n.createChildWihtLocalVars(),s=0;s<t.length;s++)i.vars.set(t[s],e[s]);var a=o.visitAllStatements(r,i);return a?a.value:null}function Un(t,e,r){var n={};t.getters.forEach(function(o){n[o.name]={configurable:!1,get:function(){var n=new Fp(e,this,t.name,e.vars);return Fn([],[],o.body,n,r)}}}),t.methods.forEach(function(o){var i=o.params.map(function(t){return t.name});n[o.name]={writable:!1,configurable:!1,value:function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];var a=new Fp(e,this,t.name,e.vars);return Fn(i,n,o.body,a,r)}}});var o=t.constructorMethod.params.map(function(t){return t.name}),i=function(){for(var n=this,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var a=new Fp(e,this,t.name,e.vars);t.fields.forEach(function(t){n[t.name]=void 0}),Fn(o,i,t.constructorMethod.body,a,r)},s=t.parent?t.parent.visitExpression(r,e):Object;return i.prototype=Object.create(s.prototype,n),i}function Bn(t,e,r,n){return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return Fn(t,o,e,r,n)}}function Hn(t,r,n){var o=r.toSource()+"\n//# sourceURL="+t,i=[],s=[];for(var a in n)i.push(a),s.push(n[a]);if(e.isDevMode()){var u=(new(Function.bind.apply(Function,[void 0].concat(i.concat("return null;"))))).toString(),c=u.slice(0,u.indexOf("return null;")).split("\n").length-1;o+="\n"+r.toSourceMapGenerator(t,t,c).toJsComment()}return(new(Function.bind.apply(Function,[void 0].concat(i.concat(o))))).apply(void 0,s)}function qn(t,e,r){var n=new Gp,o=yl.createRoot(r),i=new qc(_r(r.map(function(t){return mr(t)})));return n.visitAllStatements(e.concat([i]),o),Hn(t,o,n.getArgs())}function Gn(t){if(!t.isComponent)throw new Error("Could not compile '"+E(t.type)+"' because it is not a component.")}function zn(t,e,r,n,o){return new qa(t,e,r,n.missingTranslation,o)}function $n(){e.ɵreflector.reflectionCapabilities=new e.ɵReflectionCapabilities}function Wn(t){return{useJit:Kn(t.map(function(t){return t.useJit})),defaultEncapsulation:Kn(t.map(function(t){return t.defaultEncapsulation})),providers:Qn(t.map(function(t){return t.providers})),missingTranslation:Kn(t.map(function(t){return t.missingTranslation}))}}function Kn(t){for(var e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e]}function Qn(t){var e=[];return t.forEach(function(t){return t&&e.push.apply(e,t)}),e}var Jn=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Xn=new e.Version("4.1.3"),Zn=function(){function t(t,e,r){this.value=t,this.ngContentIndex=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Yn=function(){function t(t,e,r){this.value=t,this.ngContentIndex=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitBoundText(this,e)},t}(),to=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitAttr(this,e)},t}(),eo=function(){function t(t,e,r,n,o,i){this.name=t,this.type=e,this.securityContext=r,this.value=n,this.unit=o,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===ho.Animation},enumerable:!0,configurable:!0}),t}(),ro=function(){function t(t,e,r,n,o){this.name=t,this.target=e,this.phase=r,this.handler=n,this.sourceSpan=o}return t.calcFullName=function(t,e,r){return e?e+":"+t:r?"@"+t+"."+r:t},t.prototype.visit=function(t,e){return t.visitEvent(this,e)},Object.defineProperty(t.prototype,"fullName",{get:function(){return t.calcFullName(this.name,this.target,this.phase)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return!!this.phase},enumerable:!0,configurable:!0}),t}(),no=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitReference(this,e)},t}(),oo=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitVariable(this,e)},t}(),io=function(){function t(t,e,r,n,o,i,s,a,u,c,l,p,h){this.name=t,this.attrs=e,this.inputs=r,this.outputs=n,this.references=o,this.directives=i,this.providers=s,this.hasViewContainer=a,this.queryMatches=u,this.children=c,this.ngContentIndex=l,this.sourceSpan=p,this.endSourceSpan=h}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),so=function(){function t(t,e,r,n,o,i,s,a,u,c,l){this.attrs=t,this.outputs=e,this.references=r,this.variables=n,this.directives=o,this.providers=i,this.hasViewContainer=s,this.queryMatches=a,this.children=u,this.ngContentIndex=c,this.sourceSpan=l}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}(),ao=function(){function t(t,e,r,n){this.directiveName=t,this.templateName=e,this.value=r,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitDirectiveProperty(this,e)},t}(),uo=function(){function t(t,e,r,n,o,i){this.directive=t,this.inputs=e,this.hostProperties=r,this.hostEvents=n,this.contentQueryStartId=o,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),co=function(){function t(t,e,r,n,o,i,s){this.token=t,this.multiProvider=e,this.eager=r,this.providers=n,this.providerType=o,this.lifecycleHooks=i,this.sourceSpan=s}return t.prototype.visit=function(t,e){return null},t}(),lo={};lo.PublicService=0,lo.PrivateService=1,lo.Component=2,lo.Directive=3,lo.Builtin=4,lo[lo.PublicService]="PublicService",lo[lo.PrivateService]="PrivateService",lo[lo.Component]="Component",lo[lo.Directive]="Directive",lo[lo.Builtin]="Builtin";var po=function(){function t(t,e,r){this.index=t,this.ngContentIndex=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitNgContent(this,e)},t}(),ho={};ho.Property=0,ho.Attribute=1,ho.Class=2,ho.Style=3,ho.Animation=4,ho[ho.Property]="Property",ho[ho.Attribute]="Attribute",ho[ho.Class]="Class",ho[ho.Style]="Style",ho[ho.Animation]="Animation";var fo=function(){function t(t,e,r){this.filePath=t,this.name=e,this.members=r}return t.prototype.assertNoMembers=function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got "+JSON.stringify(this)+".")},t}(),mo=function(){function t(){this.cache=new Map}return t.prototype.get=function(t,e,r){var n='"'+t+'".'+e+((r=r||[]).length?"."+r.join("."):""),o=this.cache.get(n);return o||(o=new fo(t,e,r),this.cache.set(n,o)),o},t}(),yo={};yo.RAW_TEXT=0,yo.ESCAPABLE_RAW_TEXT=1,yo.PARSABLE_DATA=2,yo[yo.RAW_TEXT]="RAW_TEXT",yo[yo.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",yo[yo.PARSABLE_DATA]="PARSABLE_DATA";var vo={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",alefsym:"ℵ",Alpha:"Α",alpha:"α",amp:"&",and:"∧",ang:"∠",apos:"'",Aring:"Å",aring:"å",asymp:"≈",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",bdquo:"„",Beta:"Β",beta:"β",brvbar:"¦",bull:"•",cap:"∩",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",Chi:"Χ",chi:"χ",circ:"ˆ",clubs:"♣",cong:"≅",copy:"©",crarr:"↵",cup:"∪",curren:"¤",dagger:"†",Dagger:"‡",darr:"↓",dArr:"⇓",deg:"°",Delta:"Δ",delta:"δ",diams:"♦",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",empty:"∅",emsp:" ",ensp:" ",Epsilon:"Ε",epsilon:"ε",equiv:"≡",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",exist:"∃",fnof:"ƒ",forall:"∀",frac12:"½",frac14:"¼",frac34:"¾",frasl:"⁄",Gamma:"Γ",gamma:"γ",ge:"≥",gt:">",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",image:"ℑ",infin:"∞",int:"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ï",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"←",lArr:"⇐",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"◊",lrm:"‎",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Μ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Ν",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Œ",oelig:"œ",Ograve:"Ò",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Π",pi:"π",piv:"ϖ",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"∏",prop:"∝",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"”",real:"ℜ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"ρ",rlm:"‏",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Š",scaron:"š",sdot:"⋅",sect:"§",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sim:"∼",spades:"♠",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"τ",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"˜",times:"×",trade:"™",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",Uuml:"Ü",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"‍",zwnj:"‌"},go=function(){function t(t){var e=void 0===t?{}:t,r=e.closedByChildren,n=e.requiredParents,o=e.implicitNamespacePrefix,i=e.contentType,s=void 0===i?yo.PARSABLE_DATA:i,a=e.closedByParent,u=void 0!==a&&a,c=e.isVoid,l=void 0!==c&&c,p=e.ignoreFirstLf,h=void 0!==p&&p,f=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,r&&r.length>0&&r.forEach(function(t){return f.closedByChildren[t]=!0}),this.isVoid=l,this.closedByParent=u||l,n&&n.length>0&&(this.requiredParents={},this.parentToAdd=n[0],n.forEach(function(t){return f.requiredParents[t]=!0})),this.implicitNamespacePrefix=o||null,this.contentType=s,this.ignoreFirstLf=h}return t.prototype.requireExtraParent=function(t){if(!this.requiredParents)return!1;if(!t)return!0;var e=t.toLowerCase();return!("template"===e||"ng-template"===t)&&1!=this.requiredParents[e]},t.prototype.isClosedByChild=function(t){return this.isVoid||t.toLowerCase()in this.closedByChildren},t}(),_o={base:new go({isVoid:!0}),meta:new go({isVoid:!0}),area:new go({isVoid:!0}),embed:new go({isVoid:!0}),link:new go({isVoid:!0}),img:new go({isVoid:!0}),input:new go({isVoid:!0}),param:new go({isVoid:!0}),hr:new go({isVoid:!0}),br:new go({isVoid:!0}),source:new go({isVoid:!0}),track:new go({isVoid:!0}),wbr:new go({isVoid:!0}),p:new go({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new go({closedByChildren:["tbody","tfoot"]}),tbody:new go({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new go({closedByChildren:["tbody"],closedByParent:!0}),tr:new go({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new go({closedByChildren:["td","th"],closedByParent:!0}),th:new go({closedByChildren:["td","th"],closedByParent:!0}),col:new go({requiredParents:["colgroup"],isVoid:!0}),svg:new go({implicitNamespacePrefix:"svg"}),math:new go({implicitNamespacePrefix:"math"}),li:new go({closedByChildren:["li"],closedByParent:!0}),dt:new go({closedByChildren:["dt","dd"]}),dd:new go({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new go({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new go({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new go({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new go({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new go({closedByChildren:["optgroup"],closedByParent:!0}),option:new go({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new go({ignoreFirstLf:!0}),listing:new go({ignoreFirstLf:!0}),style:new go({contentType:yo.RAW_TEXT}),script:new go({contentType:yo.RAW_TEXT}),title:new go({contentType:yo.ESCAPABLE_RAW_TEXT}),textarea:new go({contentType:yo.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},bo=new go,wo=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),Co=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var r,n=[],o=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},i=new t,s=i,a=!1;for(wo.lastIndex=0;r=wo.exec(e);){if(r[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new t,i.notSelectors.push(s)}if(r[2]&&s.setElement(r[2]),r[3]&&s.addClassName(r[3]),r[4]&&s.addAttribute(r[4],r[6]),r[7]&&(a=!1,s=i),r[8]){if(a)throw new Error("Multiple selectors in :not are not supported");o(n,i),i=s=new t}}return o(n,i),n},t.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},t.prototype.hasElementSelector=function(){return!!this.element},t.prototype.setElement=function(t){void 0===t&&(t=null),this.element=t},t.prototype.getMatchingElementTemplate=function(){for(var t=this.element||"div",e=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",r="",n=0;n<this.attrs.length;n+=2)r+=" "+this.attrs[n]+(""!==this.attrs[n+1]?'="'+this.attrs[n+1]+'"':"");return c(t).isVoid?"<"+t+e+r+"/>":"<"+t+e+r+"></"+t+">"},t.prototype.addAttribute=function(t,e){void 0===e&&(e=""),this.attrs.push(t,e&&e.toLowerCase()||"")},t.prototype.addClassName=function(t){this.classNames.push(t.toLowerCase())},t.prototype.toString=function(){var t=this.element||"";if(this.classNames&&this.classNames.forEach(function(e){return t+="."+e}),this.attrs)for(var e=0;e<this.attrs.length;e+=2){var r=this.attrs[e],n=this.attrs[e+1];t+="["+r+(n?"="+n:"")+"]"}return this.notSelectors.forEach(function(e){return t+=":not("+e+")"}),t},t}(),Eo=function(){function t(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}return t.createNotMatcher=function(e){var r=new t;return r.addSelectables(e,null),r},t.prototype.addSelectables=function(t,e){var r=null;t.length>1&&(r=new So(t),this._listContexts.push(r));for(var n=0;n<t.length;n++)this._addSelectable(t[n],e,r)},t.prototype._addSelectable=function(t,e,r){var n=this,o=t.element,i=t.classNames,s=t.attrs,a=new xo(t,e,r);if(o&&((u=0===s.length&&0===i.length)?this._addTerminal(n._elementMap,o,a):n=this._addPartial(n._elementPartialMap,o)),i)for(l=0;l<i.length;l++){var u=0===s.length&&l===i.length-1,c=i[l];u?this._addTerminal(n._classMap,c,a):n=this._addPartial(n._classPartialMap,c)}if(s)for(var l=0;l<s.length;l+=2){var u=l===s.length-2,p=s[l],h=s[l+1];if(u){var f=n._attrValueMap,d=f.get(p);d||(d=new Map,f.set(p,d)),this._addTerminal(d,h,a)}else{var m=n._attrValuePartialMap,y=m.get(p);y||(y=new Map,m.set(p,y)),n=this._addPartial(y,h)}}},t.prototype._addTerminal=function(t,e,r){var n=t.get(e);n||(n=[],t.set(e,n)),n.push(r)},t.prototype._addPartial=function(e,r){var n=e.get(r);return n||(n=new t,e.set(r,n)),n},t.prototype.match=function(t,e){for(var r=!1,n=t.element,o=t.classNames,i=t.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(r=this._matchTerminal(this._elementMap,n,t,e)||r,r=this._matchPartial(this._elementPartialMap,n,t,e)||r,o)for(s=0;s<o.length;s++){var a=o[s];r=this._matchTerminal(this._classMap,a,t,e)||r,r=this._matchPartial(this._classPartialMap,a,t,e)||r}if(i)for(s=0;s<i.length;s+=2){var u=i[s],c=i[s+1],l=this._attrValueMap.get(u);c&&(r=this._matchTerminal(l,"",t,e)||r),r=this._matchTerminal(l,c,t,e)||r;var p=this._attrValuePartialMap.get(u);c&&(r=this._matchPartial(p,"",t,e)||r),r=this._matchPartial(p,c,t,e)||r}return r},t.prototype._matchTerminal=function(t,e,r,n){if(!t||"string"!=typeof e)return!1;var o=t.get(e)||[],i=t.get("*");if(i&&(o=o.concat(i)),0===o.length)return!1;for(var s=!1,a=0;a<o.length;a++)s=o[a].finalize(r,n)||s;return s},t.prototype._matchPartial=function(t,e,r,n){if(!t||"string"!=typeof e)return!1;var o=t.get(e);return!!o&&o.match(r,n)},t}(),So=function(){function t(t){this.selectors=t,this.alreadyMatched=!1}return t}(),xo=function(){function t(t,e,r){this.selector=t,this.cbContext=e,this.listContext=r,this.notSelectors=t.notSelectors}return t.prototype.finalize=function(t,e){var r=!0;return!(this.notSelectors.length>0)||this.listContext&&this.listContext.alreadyMatched||(r=!Eo.createNotMatcher(this.notSelectors).match(t,null)),!r||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),r},t}(),Po="",To=/-+([a-z0-9])/g,Ao=function(){function t(){}return t.prototype.visitArray=function(t,e){var r=this;return t.map(function(t){return d(t,r,e)})},t.prototype.visitStringMap=function(t,e){var r=this,n={};return Object.keys(t).forEach(function(o){n[o]=d(t[o],r,e)}),n},t.prototype.visitPrimitive=function(t,e){return t},t.prototype.visitOther=function(t,e){return t},t}(),Oo=function(){function t(t,e){void 0===e&&(e=null),this.syncResult=t,this.asyncResult=e,e||(this.asyncResult=Promise.resolve(t))}return t}(),Mo="ngSyntaxError",Ro=Object.getPrototypeOf({}),ko=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/,No=function(){function t(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.name=t,this.definitions=e}return t}(),Io=function(){function t(){}return t}(),jo=function(t){function e(e,r){var n=t.call(this)||this;return n.stateNameExpr=e,n.styles=r,n}return Jn(e,t),e}(Io),Do=function(t){function e(e,r){var n=t.call(this)||this;return n.stateChangeExpr=e,n.steps=r,n}return Jn(e,t),e}(Io),Lo=function(){function t(){}return t}(),Vo=function(t){function e(e){void 0===e&&(e=[]);var r=t.call(this)||this;return r.steps=e,r}return Jn(e,t),e}(Lo),Fo=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this)||this;return n.offset=e,n.styles=r,n}return Jn(e,t),e}(Lo),Uo=function(t){function e(e,r){void 0===e&&(e=0),void 0===r&&(r=null);var n=t.call(this)||this;return n.timings=e,n.styles=r,n}return Jn(e,t),e}(Lo),Bo=function(t){function e(e){void 0===e&&(e=null);var r=t.call(this)||this;return r.steps=e,r}return Jn(e,t),e}(Lo),Ho=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return Jn(e,t),e}(Bo),qo=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return Jn(e,t),e}(Bo),Go=0,zo={};zo.Pipe=0,zo.Directive=1,zo.NgModule=2,zo.Injectable=3,zo[zo.Pipe]="Pipe",zo[zo.Directive]="Directive",zo[zo.NgModule]="NgModule",zo[zo.Injectable]="Injectable";var $o=function(){function t(t){var e=void 0===t?{}:t,r=e.moduleUrl,n=e.styles,o=e.styleUrls;this.moduleUrl=r||null,this.styles=N(n),this.styleUrls=N(o)}return t}(),Wo=function(){function t(t){var e=t.encapsulation,r=t.template,n=t.templateUrl,o=t.styles,i=t.styleUrls,s=t.externalStylesheets,a=t.animations,u=t.ngContentSelectors,c=t.interpolation,l=t.isInline;if(this.encapsulation=e,this.template=r,this.templateUrl=n,this.styles=N(o),this.styleUrls=N(i),this.externalStylesheets=N(s),this.animations=a?I(a):[],this.ngContentSelectors=u||[],c&&2!=c.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=c,this.isInline=l}return t.prototype.toSummary=function(){return{animations:this.animations.map(function(t){return t.name}),ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},t}(),Ko=function(){function t(t){var e=t.isHost,r=t.type,n=t.isComponent,o=t.selector,i=t.exportAs,s=t.changeDetection,a=t.inputs,u=t.outputs,c=t.hostListeners,l=t.hostProperties,p=t.hostAttributes,h=t.providers,f=t.viewProviders,d=t.queries,m=t.viewQueries,y=t.entryComponents,v=t.template,g=t.componentViewType,_=t.rendererType,b=t.componentFactory;this.isHost=!!e,this.type=r,this.isComponent=n,this.selector=o,this.exportAs=i,this.changeDetection=s,this.inputs=a,this.outputs=u,this.hostListeners=c,this.hostProperties=l,this.hostAttributes=p,this.providers=N(h),this.viewProviders=N(f),this.queries=N(d),this.viewQueries=N(m),this.entryComponents=N(y),this.template=v,this.componentViewType=g,this.rendererType=_,this.componentFactory=b}return t.create=function(e){var r=e.isHost,n=e.type,o=e.isComponent,i=e.selector,s=e.exportAs,a=e.changeDetection,u=e.inputs,c=e.outputs,l=e.host,h=e.providers,f=e.viewProviders,d=e.queries,m=e.viewQueries,y=e.entryComponents,v=e.template,g=e.componentViewType,_=e.rendererType,b=e.componentFactory,w={},C={},E={};null!=l&&Object.keys(l).forEach(function(t){var e=l[t],r=t.match(ko);null===r?E[t]=e:null!=r[1]?C[r[1]]=e:null!=r[2]&&(w[r[2]]=e)});var S={};null!=u&&u.forEach(function(t){var e=p(t,[t,t]);S[e[0]]=e[1]});var x={};return null!=c&&c.forEach(function(t){var e=p(t,[t,t]);x[e[0]]=e[1]}),new t({isHost:r,type:n,isComponent:!!o,selector:i,exportAs:s,changeDetection:a,inputs:S,outputs:x,hostListeners:w,hostProperties:C,hostAttributes:E,providers:h,viewProviders:f,queries:d,viewQueries:m,entryComponents:y,template:v,componentViewType:g,rendererType:_,componentFactory:b})},t.prototype.toSummary=function(){return{summaryKind:zo.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}},t}(),Qo=function(){function t(t){var e=t.type,r=t.name,n=t.pure;this.type=e,this.name=r,this.pure=!!n}return t.prototype.toSummary=function(){return{summaryKind:zo.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),Jo=function(){function t(t){var e=t.type,r=t.providers,n=t.declaredDirectives,o=t.exportedDirectives,i=t.declaredPipes,s=t.exportedPipes,a=t.entryComponents,u=t.bootstrapComponents,c=t.importedModules,l=t.exportedModules,p=t.schemas,h=t.transitiveModule,f=t.id;this.type=e||null,this.declaredDirectives=N(n),this.exportedDirectives=N(o),this.declaredPipes=N(i),this.exportedPipes=N(s),this.providers=N(r),this.entryComponents=N(a),this.bootstrapComponents=N(u),this.importedModules=N(c),this.exportedModules=N(l),this.schemas=N(p),this.id=f||null,this.transitiveModule=h||null}return t.prototype.toSummary=function(){var t=this.transitiveModule;return{summaryKind:zo.NgModule,type:this.type,entryComponents:t.entryComponents,providers:t.providers,modules:t.modules,exportedDirectives:t.exportedDirectives,exportedPipes:t.exportedPipes}},t}(),Xo=function(){function t(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return t.prototype.addProvider=function(t,e){this.providers.push({provider:t,module:e})},t.prototype.addDirective=function(t){this.directivesSet.has(t.reference)||(this.directivesSet.add(t.reference),this.directives.push(t))},t.prototype.addExportedDirective=function(t){this.exportedDirectivesSet.has(t.reference)||(this.exportedDirectivesSet.add(t.reference),this.exportedDirectives.push(t))},t.prototype.addPipe=function(t){this.pipesSet.has(t.reference)||(this.pipesSet.add(t.reference),this.pipes.push(t))},t.prototype.addExportedPipe=function(t){this.exportedPipesSet.has(t.reference)||(this.exportedPipesSet.add(t.reference),this.exportedPipes.push(t))},t.prototype.addModule=function(t){this.modulesSet.has(t.reference)||(this.modulesSet.add(t.reference),this.modules.push(t))},t.prototype.addEntryComponent=function(t){this.entryComponentsSet.has(t.componentType)||(this.entryComponentsSet.add(t.componentType),this.entryComponents.push(t))},t}(),Zo=function(){function t(t,e){var r=e.useClass,n=e.useValue,o=e.useExisting,i=e.useFactory,s=e.deps,a=e.multi;this.token=t,this.useClass=r||null,this.useValue=n,this.useExisting=o,this.useFactory=i||null,this.dependencies=s||null,this.multi=!!a}return t}(),Yo=function(){function t(t){var r=void 0===t?{}:t,n=r.defaultEncapsulation,o=void 0===n?e.ViewEncapsulation.Emulated:n,i=r.useJit,s=void 0===i||i,a=r.missingTranslation,u=r.enableLegacyTemplate;this.defaultEncapsulation=o,this.useJit=!!s,this.missingTranslation=a||null,this.enableLegacyTemplate=!1!==u}return t}(),ti=function(){function t(t,e,r,n){this.input=e,this.errLocation=r,this.ctxLocation=n,this.message="Parser Error: "+t+" "+r+" ["+e+"] in "+n}return t}(),ei=function(){function t(t,e){this.start=t,this.end=e}return t}(),ri=function(){function t(t){this.span=t}return t.prototype.visit=function(t,e){return void 0===e&&(e=null),null},t.prototype.toString=function(){return"AST"},t}(),ni=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.prefix=r,i.uninterpretedExpression=n,i.location=o,i}return Jn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitQuote(this,e)},e.prototype.toString=function(){return"Quote"},e}(ri),oi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Jn(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(ri),ii=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Jn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(ri),si=function(t){function e(e,r){var n=t.call(this,e)||this;return n.expressions=r,n}return Jn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(ri),ai=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.condition=r,i.trueExp=n,i.falseExp=o,i}return Jn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(ri),ui=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.receiver=r,o.name=n,o}return Jn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(ri),ci=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.receiver=r,i.name=n,i.value=o,i}return Jn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(ri),li=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.receiver=r,o.name=n,o}return Jn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(ri),pi=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.obj=r,o.key=n,o}return Jn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(ri),hi=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.obj=r,i.key=n,i.value=o,i}return Jn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(ri),fi=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.exp=r,i.name=n,i.args=o,i}return Jn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(ri),di=function(t){function e(e,r){var n=t.call(this,e)||this;return n.value=r,n}return Jn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(ri),mi=function(t){function e(e,r){var n=t.call(this,e)||this;return n.expressions=r,n}return Jn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(ri),yi=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.keys=r,o.values=n,o}return Jn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(ri),vi=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.strings=r,o.expressions=n,o}return Jn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(ri),gi=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.operation=r,i.left=n,i.right=o,i}return Jn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(ri),_i=function(t){function e(e,r){var n=t.call(this,e)||this;return n.expression=r,n}return Jn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(ri),bi=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.receiver=r,i.name=n,i.args=o,i}return Jn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(ri),wi=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.receiver=r,i.name=n,i.args=o,i}return Jn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(ri),Ci=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.target=r,o.args=n,o}return Jn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(ri),Ei=function(t){function e(e,r,n,o){var i=t.call(this,new ei(0,null==r?0:r.length))||this;return i.ast=e,i.source=r,i.location=n,i.errors=o,i}return Jn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),this.ast.visit(t,e)},e.prototype.toString=function(){return this.source+" in "+this.location},e}(ri),Si=function(){function t(t,e,r,n,o){this.span=t,this.key=e,this.keyIsVar=r,this.name=n,this.expression=o}return t}(),xi=function(){function t(){}return t.prototype.visitBinary=function(t,e){return t.left.visit(this),t.right.visit(this),null},t.prototype.visitChain=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this),null},t.prototype.visitPipe=function(t,e){return t.exp.visit(this),this.visitAll(t.args,e),null},t.prototype.visitFunctionCall=function(t,e){return t.target.visit(this),this.visitAll(t.args,e),null},t.prototype.visitImplicitReceiver=function(t,e){return null},t.prototype.visitInterpolation=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitKeyedRead=function(t,e){return t.obj.visit(this),t.key.visit(this),null},t.prototype.visitKeyedWrite=function(t,e){return t.obj.visit(this),t.key.visit(this),t.value.visit(this),null},t.prototype.visitLiteralArray=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitLiteralMap=function(t,e){return this.visitAll(t.values,e)},t.prototype.visitLiteralPrimitive=function(t,e){return null},t.prototype.visitMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitPrefixNot=function(t,e){return t.expression.visit(this),null},t.prototype.visitPropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitPropertyWrite=function(t,e){return t.receiver.visit(this),t.value.visit(this),null},t.prototype.visitSafePropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitSafeMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitAll=function(t,e){var r=this;return t.forEach(function(t){return t.visit(r,e)}),null},t.prototype.visitQuote=function(t,e){return null},t}(),Pi=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t,e){return t},t.prototype.visitInterpolation=function(t,e){return new vi(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t,e){return new di(t.span,t.value)},t.prototype.visitPropertyRead=function(t,e){return new ui(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t,e){return new ci(t.span,t.receiver.visit(this),t.name,t.value.visit(this))},t.prototype.visitSafePropertyRead=function(t,e){return new li(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t,e){return new bi(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t,e){return new wi(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t,e){return new Ci(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t,e){return new mi(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t,e){return new yi(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t,e){return new gi(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t,e){return new _i(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t,e){return new ai(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t,e){return new fi(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t,e){return new pi(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t,e){return new hi(t.span,t.obj.visit(this),t.key.visit(this),t.value.visit(this))},t.prototype.visitAll=function(t){for(var e=new Array(t.length),r=0;r<t.length;++r)e[r]=t[r].visit(this);return e},t.prototype.visitChain=function(t,e){return new si(t.span,this.visitAll(t.expressions))},t.prototype.visitQuote=function(t,e){return new ni(t.span,t.prefix,t.uninterpretedExpression,t.location)},t}(),Ti=0,Ai=9,Oi=10,Mi=11,Ri=12,ki=13,Ni=32,Ii=34,ji=36,Di=39,Li=43,Vi=45,Fi=47,Ui=59,Bi=61,Hi=62,qi=48,Gi=57,zi=65,$i=69,Wi=70,Ki=90,Qi=95,Ji=97,Xi=101,Zi=102,Yi=110,ts=114,es=116,rs=118,ns=122,os=123,is=160,ss=96,as=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],us=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?($("interpolation",e),new t(e[0],e[1])):cs},t}(),cs=new us("{{","}}"),ls={};ls.Character=0,ls.Identifier=1,ls.Keyword=2,ls.String=3,ls.Operator=4,ls.Number=5,ls.Error=6,ls[ls.Character]="Character",ls[ls.Identifier]="Identifier",ls[ls.Keyword]="Keyword",ls[ls.String]="String",ls[ls.Operator]="Operator",ls[ls.Number]="Number",ls[ls.Error]="Error";var ps=["var","let","as","null","undefined","true","false","if","else","this"],hs=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new ms(t),r=[],n=e.scanToken();null!=n;)r.push(n),n=e.scanToken();return r},t}();hs.decorators=[{type:G}],hs.ctorParameters=function(){return[]};var fs=function(){function t(t,e,r,n){this.index=t,this.type=e,this.numValue=r,this.strValue=n}return t.prototype.isCharacter=function(t){return this.type==ls.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==ls.Number},t.prototype.isString=function(){return this.type==ls.String},t.prototype.isOperator=function(t){return this.type==ls.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==ls.Identifier},t.prototype.isKeyword=function(){return this.type==ls.Keyword},t.prototype.isKeywordLet=function(){return this.type==ls.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==ls.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==ls.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==ls.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==ls.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==ls.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==ls.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==ls.Error},t.prototype.toNumber=function(){return this.type==ls.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case ls.Character:case ls.Identifier:case ls.Keyword:case ls.Operator:case ls.String:case ls.Error:return this.strValue;case ls.Number:return this.numValue.toString();default:return null}},t}(),ds=new fs(-1,ls.Character,0,""),ms=function(){function t(t){this.input=t,this.peek=0,this.index=-1,this.length=t.length,this.advance()}return t.prototype.advance=function(){this.peek=++this.index>=this.length?Ti:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,r=this.peek,n=this.index;r<=Ni;){if(++n>=e){r=Ti;break}r=t.charCodeAt(n)}if(this.peek=r,this.index=n,n>=e)return null;if(tt(r))return this.scanIdentifier();if(B(r))return this.scanNumber(n);var o=n;switch(r){case 46:return this.advance(),B(this.peek)?this.scanNumber(o):W(o,46);case 40:case 41:case os:case 125:case 91:case 93:case 44:case 58:case Ui:return this.scanCharacter(o,r);case Di:case Ii:return this.scanString();case 35:case Li:case Vi:case 42:case Fi:case 37:case 94:return this.scanOperator(o,String.fromCharCode(r));case 63:return this.scanComplexOperator(o,"?",46,".");case 60:case Hi:return this.scanComplexOperator(o,String.fromCharCode(r),Bi,"=");case 33:case Bi:return this.scanComplexOperator(o,String.fromCharCode(r),Bi,"=",Bi,"=");case 38:return this.scanComplexOperator(o,"&",38,"&");case 124:return this.scanComplexOperator(o,"|",124,"|");case is:for(;U(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(r)+"]",0)},t.prototype.scanCharacter=function(t,e){return this.advance(),W(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),J(t,e)},t.prototype.scanComplexOperator=function(t,e,r,n,o,i){this.advance();var s=e;return this.peek==r&&(this.advance(),s+=n),null!=o&&this.peek==o&&(this.advance(),s+=i),J(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();rt(this.peek);)this.advance();var e=this.input.substring(t,this.index);return ps.indexOf(e)>-1?Q(t,e):K(t,e)},t.prototype.scanNumber=function(t){var e=this.index===t;for(this.advance();;){if(B(this.peek));else if(46==this.peek)e=!1;else{if(!nt(this.peek))break;if(this.advance(),ot(this.peek)&&this.advance(),!B(this.peek))return this.error("Invalid exponent",-1);e=!1}this.advance()}var r=this.input.substring(t,this.index);return Z(t,e?at(r):parseFloat(r))},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var r="",n=this.index,o=this.input;this.peek!=e;)if(92==this.peek){r+=o.substring(n,this.index),this.advance();var i=void 0;if(this.peek=this.peek,117==this.peek){var s=o.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);i=parseInt(s,16);for(var a=0;a<5;a++)this.advance()}else i=st(this.peek),this.advance();r+=String.fromCharCode(i),n=this.index}else{if(this.peek==Ti)return this.error("Unterminated quote",0);this.advance()}var u=o.substring(n,this.index);return this.advance(),X(t,r+u)},t.prototype.error=function(t,e){var r=this.index+e;return Y(r,"Lexer Error: "+t+" at column "+r+" in expression ["+this.input+"]")},t}(),ys=function(){function t(t,e,r){this.strings=t,this.expressions=e,this.offsets=r}return t}(),vs=function(){function t(t,e,r){this.templateBindings=t,this.warnings=e,this.errors=r}return t}(),gs=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,r){void 0===r&&(r=cs),this._checkNoInterpolation(t,e,r);var n=this._stripComments(t),o=this._lexer.tokenize(this._stripComments(t)),i=new _s(t,e,o,n.length,!0,this.errors,t.length-n.length).parseChain();return new Ei(i,t,e,this.errors)},t.prototype.parseBinding=function(t,e,r){void 0===r&&(r=cs);var n=this._parseBindingAst(t,e,r);return new Ei(n,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,r){void 0===r&&(r=cs);var n=this._parseBindingAst(t,e,r),o=bs.check(n);return o.length>0&&this._reportError("Host binding expression cannot contain "+o.join(" "),t,e),new Ei(n,t,e,this.errors)},t.prototype._reportError=function(t,e,r,n){this.errors.push(new ti(t,e,r,n))},t.prototype._parseBindingAst=function(t,e,r){var n=this._parseQuote(t,e);if(null!=n)return n;this._checkNoInterpolation(t,e,r);var o=this._stripComments(t),i=this._lexer.tokenize(o);return new _s(t,e,i,o.length,!1,this.errors,t.length-o.length).parseChain()},t.prototype._parseQuote=function(t,e){if(null==t)return null;var r=t.indexOf(":");if(-1==r)return null;var n=t.substring(0,r).trim();if(!et(n))return null;var o=t.substring(r+1);return new ni(new ei(0,t.length),n,o,e)},t.prototype.parseTemplateBindings=function(t,e,r){var n=this._lexer.tokenize(e);if(t){var o=this._lexer.tokenize(t).map(function(t){return t.index=0,t});n.unshift.apply(n,o)}return new _s(e,r,n,e.length,!1,this.errors,0).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,r){void 0===r&&(r=cs);var n=this.splitInterpolation(t,e,r);if(null==n)return null;for(var o=[],i=0;i<n.expressions.length;++i){var s=n.expressions[i],a=this._stripComments(s),u=this._lexer.tokenize(this._stripComments(n.expressions[i])),c=new _s(t,e,u,a.length,!1,this.errors,n.offsets[i]+(s.length-a.length)).parseChain();o.push(c)}return new Ei(new vi(new ei(0,null==t?0:t.length),n.strings,o),t,e,this.errors)},t.prototype.splitInterpolation=function(t,e,r){void 0===r&&(r=cs);var n=ut(r),o=t.split(n);if(o.length<=1)return null;for(var i=[],s=[],a=[],u=0,c=0;c<o.length;c++){var l=o[c];c%2==0?(i.push(l),u+=l.length):l.trim().length>0?(u+=r.start.length,s.push(l),a.push(u),u+=l.length+r.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",t,"at column "+this._findInterpolationErrorColumn(o,c,r)+" in",e),s.push("$implict"),a.push(u))}return new ys(i,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new Ei(new di(new ei(0,null==t?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return null!=e?t.substring(0,e).trim():t},t.prototype._commentStart=function(t){for(var e=null,r=0;r<t.length-1;r++){var n=t.charCodeAt(r),o=t.charCodeAt(r+1);if(n===Fi&&o==Fi&&null==e)return r;e===n?e=null:null==e&&it(n)&&(e=n)}return null},t.prototype._checkNoInterpolation=function(t,e,r){var n=ut(r),o=t.split(n);o.length>1&&this._reportError("Got interpolation ("+r.start+r.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(o,1,r)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,r){for(var n="",o=0;o<e;o++)n+=o%2==0?t[o]:""+r.start+t[o]+r.end;return n.length},t}();gs.decorators=[{type:G}],gs.ctorParameters=function(){return[{type:hs}]};var _s=function(){function t(t,e,r,n,o,i,s){this.input=t,this.location=e,this.tokens=r,this.inputLength=n,this.parseAction=o,this.errors=i,this.offset=s,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.index=0}return t.prototype.peek=function(t){var e=this.index+t;return e<this.tokens.length?this.tokens[e]:ds},Object.defineProperty(t.prototype,"next",{get:function(){return this.peek(0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputIndex",{get:function(){return this.index<this.tokens.length?this.next.index+this.offset:this.inputLength+this.offset},enumerable:!0,configurable:!0}),t.prototype.span=function(t){return new ei(t,this.inputIndex)},t.prototype.advance=function(){this.index++},t.prototype.optionalCharacter=function(t){return!!this.next.isCharacter(t)&&(this.advance(),!0)},t.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},t.prototype.peekKeywordAs=function(){return this.next.isKeywordAs()},t.prototype.expectCharacter=function(t){this.optionalCharacter(t)||this.error("Missing expected "+String.fromCharCode(t))},t.prototype.optionalOperator=function(t){return!!this.next.isOperator(t)&&(this.advance(),!0)},t.prototype.expectOperator=function(t){this.optionalOperator(t)||this.error("Missing expected operator "+t)},t.prototype.expectIdentifierOrKeyword=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier or keyword"),"")},t.prototype.expectIdentifierOrKeywordOrString=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()||t.isString()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier, keyword, or string"),"")},t.prototype.parseChain=function(){for(var t=[],e=this.inputIndex;this.index<this.tokens.length;){var r=this.parsePipe();if(t.push(r),this.optionalCharacter(Ui))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(Ui););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==t.length?new oi(this.span(e)):1==t.length?t[0]:new si(this.span(e),t)},t.prototype.parsePipe=function(){var t=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var e=this.expectIdentifierOrKeyword(),r=[];this.optionalCharacter(58);)r.push(this.parseExpression());t=new fi(this.span(t.span.start),t,e,r)}while(this.optionalOperator("|"))}return t},t.prototype.parseExpression=function(){return this.parseConditional()},t.prototype.parseConditional=function(){var t=this.inputIndex,e=this.parseLogicalOr();if(this.optionalOperator("?")){var r=this.parsePipe(),n=void 0;if(this.optionalCharacter(58))n=this.parsePipe();else{var o=this.inputIndex,i=this.input.substring(t,o);this.error("Conditional expression "+i+" requires all 3 expressions"),n=new oi(this.span(t))}return new ai(this.span(t),e,r,n)}return e},t.prototype.parseLogicalOr=function(){for(var t=this.parseLogicalAnd();this.optionalOperator("||");){var e=this.parseLogicalAnd();t=new gi(this.span(t.span.start),"||",t,e)}return t},t.prototype.parseLogicalAnd=function(){for(var t=this.parseEquality();this.optionalOperator("&&");){var e=this.parseEquality();t=new gi(this.span(t.span.start),"&&",t,e)}return t},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==ls.Operator;){var e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();var r=this.parseRelational();t=new gi(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==ls.Operator;){var e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();var r=this.parseAdditive();t=new gi(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==ls.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var r=this.parseMultiplicative();t=new gi(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==ls.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var r=this.parsePrefix();t=new gi(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==ls.Operator){var t=this.inputIndex,e=this.next.strValue,r=void 0;switch(e){case"+":return this.advance(),this.parsePrefix();case"-":return this.advance(),r=this.parsePrefix(),new gi(this.span(t),e,new di(new ei(t,t),0),r);case"!":return this.advance(),r=this.parsePrefix(),new _i(this.span(t),r)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(46))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(91)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(93),this.optionalOperator("=")){var r=this.parseConditional();t=new hi(this.span(t.span.start),t,e,r)}else t=new pi(this.span(t.span.start),t,e)}else{if(!this.optionalCharacter(40))return t;this.rparensExpected++;var n=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(41),t=new Ci(this.span(t.span.start),t,n)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(40)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),e}if(this.next.isKeywordNull())return this.advance(),new di(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new di(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new di(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new di(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new ii(this.span(t));if(this.optionalCharacter(91)){this.rbracketsExpected++;var r=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new mi(this.span(t),r)}if(this.next.isCharacter(os))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new ii(this.span(t)),!1);if(this.next.isNumber()){var n=this.next.toNumber();return this.advance(),new di(this.span(t),n)}if(this.next.isString()){var o=this.next.toString();return this.advance(),new di(this.span(t),o)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new oi(this.span(t))):(this.error("Unexpected token "+this.next),new oi(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do{e.push(this.parsePipe())}while(this.optionalCharacter(44));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],r=this.inputIndex;if(this.expectCharacter(os),!this.optionalCharacter(125)){this.rbracesExpected++;do{var n=this.expectIdentifierOrKeywordOrString();t.push(n),this.expectCharacter(58),e.push(this.parsePipe())}while(this.optionalCharacter(44));this.rbracesExpected--,this.expectCharacter(125)}return new yi(this.span(r),t,e)},t.prototype.parseAccessMemberOrMethodCall=function(t,e){void 0===e&&(e=!1);var r=t.span.start,n=this.expectIdentifierOrKeyword();if(this.optionalCharacter(40)){this.rparensExpected++;var o=this.parseCallArguments();this.expectCharacter(41),this.rparensExpected--;var i=this.span(r);return e?new wi(i,t,n,o):new bi(i,t,n,o)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new oi(this.span(r))):new li(this.span(r),t,n);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new oi(this.span(r));var s=this.parseConditional();return new ci(this.span(r),t,n,s)}return new ui(this.span(r),t,n)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(41))return[];var t=[];do{t.push(this.parsePipe())}while(this.optionalCharacter(44));return t},t.prototype.expectTemplateBindingKey=function(){var t="",e=!1;do{t+=this.expectIdentifierOrKeywordOrString(),(e=this.optionalOperator("-"))&&(t+="-")}while(e);return t.toString()},t.prototype.parseTemplateBindings=function(){for(var t=[],e=null,r=[];this.index<this.tokens.length;){var n=this.inputIndex,o=this.peekKeywordLet();o&&this.advance();var i=this.expectTemplateBindingKey(),s=i;o||(null==e?e=s:s=e+s[0].toUpperCase()+s.substring(1)),this.optionalCharacter(58);var a=null,u=null;if(o)a=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.peekKeywordAs()){h=this.inputIndex;this.advance(),a=i,s=this.expectTemplateBindingKey(),o=!0}else if(this.next!==ds&&!this.peekKeywordLet()){var c=this.inputIndex,l=this.parsePipe(),p=this.input.substring(c-this.offset,this.inputIndex-this.offset);u=new Ei(l,p,this.location,this.errors)}if(t.push(new Si(this.span(n),s,o,a,u)),this.peekKeywordAs()&&!o){var h=this.inputIndex;this.advance();var f=this.expectTemplateBindingKey();t.push(new Si(this.span(h),f,!0,s,null))}this.optionalCharacter(Ui)||this.optionalCharacter(44)}return new vs(t,r,this.errors)},t.prototype.error=function(t,e){void 0===e&&(e=null),this.errors.push(new ti(t,this.input,this.locationText(e),this.location)),this.skip()},t.prototype.locationText=function(t){return void 0===t&&(t=null),null==t&&(t=this.index),t<this.tokens.length?"at column "+(this.tokens[t].index+1)+" in":"at the end of the expression"},t.prototype.skip=function(){for(var t=this.next;this.index<this.tokens.length&&!t.isCharacter(Ui)&&(this.rparensExpected<=0||!t.isCharacter(41))&&(this.rbracesExpected<=0||!t.isCharacter(125))&&(this.rbracketsExpected<=0||!t.isCharacter(93));)this.next.isError()&&this.errors.push(new ti(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next},t}(),bs=function(){function t(){this.errors=[]}return t.check=function(e){var r=new t;return e.visit(r),r.errors},t.prototype.visitImplicitReceiver=function(t,e){},t.prototype.visitInterpolation=function(t,e){},t.prototype.visitLiteralPrimitive=function(t,e){},t.prototype.visitPropertyRead=function(t,e){},t.prototype.visitPropertyWrite=function(t,e){},t.prototype.visitSafePropertyRead=function(t,e){},t.prototype.visitMethodCall=function(t,e){},t.prototype.visitSafeMethodCall=function(t,e){},t.prototype.visitFunctionCall=function(t,e){},t.prototype.visitLiteralArray=function(t,e){this.visitAll(t.expressions)},t.prototype.visitLiteralMap=function(t,e){this.visitAll(t.values)},t.prototype.visitBinary=function(t,e){},t.prototype.visitPrefixNot=function(t,e){},t.prototype.visitConditional=function(t,e){},t.prototype.visitPipe=function(t,e){this.errors.push("pipes")},t.prototype.visitKeyedRead=function(t,e){},t.prototype.visitKeyedWrite=function(t,e){},t.prototype.visitAll=function(t){var e=this;return t.map(function(t){return t.visit(e)})},t.prototype.visitChain=function(t,e){},t.prototype.visitQuote=function(t,e){},t}(),ws=function(){function t(t,e,r,n){this.file=t,this.offset=e,this.line=r,this.col=n}return t.prototype.toString=function(){return null!=this.offset?this.file.url+"@"+this.line+":"+this.col:this.file.url},t.prototype.moveBy=function(e){for(var r=this.file.content,n=r.length,o=this.offset,i=this.line,s=this.col;o>0&&e<0;)if(o--,e++,(u=r.charCodeAt(o))==Oi){i--;var a=r.substr(0,o-1).lastIndexOf(String.fromCharCode(Oi));s=a>0?o-a:o}else s--;for(;o<n&&e>0;){var u=r.charCodeAt(o);o++,e--,u==Oi?(i++,s=0):s++}return new t(this.file,o,i,s)},t.prototype.getContext=function(t,e){var r=this.file.content,n=this.offset;if(null!=n){n>r.length-1&&(n=r.length-1);for(var o=n,i=0,s=0;i<t&&n>0&&(n--,i++,"\n"!=r[n]||++s!=e););for(i=0,s=0;i<t&&o<r.length-1&&(o++,i++,"\n"!=r[o]||++s!=e););return{before:r.substring(n,this.offset),after:r.substring(this.offset,o+1)}}return null},t}(),Cs=function(){function t(t,e){this.content=t,this.url=e}return t}(),Es=function(){function t(t,e,r){void 0===r&&(r=null),this.start=t,this.end=e,this.details=r}return t.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},t}(),Ss={};Ss.WARNING=0,Ss.ERROR=1,Ss[Ss.WARNING]="WARNING",Ss[Ss.ERROR]="ERROR";var xs=function(){function t(t,e,r){void 0===r&&(r=Ss.ERROR),this.span=t,this.msg=e,this.level=r}return t.prototype.toString=function(){var t=this.span.start.getContext(100,3),e=t?' ("'+t.before+"["+Ss[this.level]+" ->]"+t.after+'")':"",r=this.span.details?", "+this.span.details:"";return""+this.msg+e+": "+this.span.start+r},t}(),Ps=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Ts=function(){function t(t,e,r,n,o){this.switchValue=t,this.type=e,this.cases=r,this.sourceSpan=n,this.switchValueSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitExpansion(this,e)},t}(),As=function(){function t(t,e,r,n,o){this.value=t,this.expression=e,this.sourceSpan=r,this.valueSourceSpan=n,this.expSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitExpansionCase(this,e)},t}(),Os=function(){function t(t,e,r,n){this.name=t,this.value=e,this.sourceSpan=r,this.valueSpan=n}return t.prototype.visit=function(t,e){return t.visitAttribute(this,e)},t}(),Ms=function(){function t(t,e,r,n,o,i){void 0===o&&(o=null),void 0===i&&(i=null),this.name=t,this.attrs=e,this.children=r,this.sourceSpan=n,this.startSourceSpan=o,this.endSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),Rs=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}(),ks={};ks.TAG_OPEN_START=0,ks.TAG_OPEN_END=1,ks.TAG_OPEN_END_VOID=2,ks.TAG_CLOSE=3,ks.TEXT=4,ks.ESCAPABLE_RAW_TEXT=5,ks.RAW_TEXT=6,ks.COMMENT_START=7,ks.COMMENT_END=8,ks.CDATA_START=9,ks.CDATA_END=10,ks.ATTR_NAME=11,ks.ATTR_VALUE=12,ks.DOC_TYPE=13,ks.EXPANSION_FORM_START=14,ks.EXPANSION_CASE_VALUE=15,ks.EXPANSION_CASE_EXP_START=16,ks.EXPANSION_CASE_EXP_END=17,ks.EXPANSION_FORM_END=18,ks.EOF=19,ks[ks.TAG_OPEN_START]="TAG_OPEN_START",ks[ks.TAG_OPEN_END]="TAG_OPEN_END",ks[ks.TAG_OPEN_END_VOID]="TAG_OPEN_END_VOID",ks[ks.TAG_CLOSE]="TAG_CLOSE",ks[ks.TEXT]="TEXT",ks[ks.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",ks[ks.RAW_TEXT]="RAW_TEXT",ks[ks.COMMENT_START]="COMMENT_START",ks[ks.COMMENT_END]="COMMENT_END",ks[ks.CDATA_START]="CDATA_START",ks[ks.CDATA_END]="CDATA_END",ks[ks.ATTR_NAME]="ATTR_NAME",ks[ks.ATTR_VALUE]="ATTR_VALUE",ks[ks.DOC_TYPE]="DOC_TYPE",ks[ks.EXPANSION_FORM_START]="EXPANSION_FORM_START",ks[ks.EXPANSION_CASE_VALUE]="EXPANSION_CASE_VALUE",ks[ks.EXPANSION_CASE_EXP_START]="EXPANSION_CASE_EXP_START",ks[ks.EXPANSION_CASE_EXP_END]="EXPANSION_CASE_EXP_END",ks[ks.EXPANSION_FORM_END]="EXPANSION_FORM_END",ks[ks.EOF]="EOF";var Ns=function(){function t(t,e,r){this.type=t,this.parts=e,this.sourceSpan=r}return t}(),Is=function(t){function e(e,r,n){var o=t.call(this,n,e)||this;return o.tokenType=r,o}return Jn(e,t),e}(xs),js=function(){function t(t,e){this.tokens=t,this.errors=e}return t}(),Ds=/\r\n?/g,Ls=function(){function t(t){this.error=t}return t}(),Vs=function(){function t(t,e,r,n){void 0===n&&(n=cs),this._file=t,this._getTagDefinition=e,this._tokenizeIcu=r,this._interpolationConfig=n,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=t.content,this._length=t.content.length,this._advance()}return t.prototype._processCarriageReturns=function(t){return t.replace(Ds,"\n")},t.prototype.tokenize=function(){for(;this._peek!==Ti;){var t=this._getLocation();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(t):this._attemptCharCode(Vi)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(Fi)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(t){if(!(t instanceof Ls))throw t;this.errors.push(t.error)}}return this._beginToken(ks.EOF),this._endToken([]),new js(Et(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(_t(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(bt(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(125===this._peek){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},t.prototype._getLocation=function(){return new ws(this._file,this._index,this._line,this._column)},t.prototype._getSpan=function(t,e){return void 0===t&&(t=this._getLocation()),void 0===e&&(e=this._getLocation()),new Es(t,e)},t.prototype._beginToken=function(t,e){void 0===e&&(e=this._getLocation()),this._currentTokenStart=e,this._currentTokenType=t},t.prototype._endToken=function(t,e){void 0===e&&(e=this._getLocation());var r=new Ns(this._currentTokenType,t,new Es(this._currentTokenStart,e));return this.tokens.push(r),this._currentTokenStart=null,this._currentTokenType=null,r},t.prototype._createError=function(t,e){this._isInExpansionForm()&&(t+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var r=new Is(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new Ls(r)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(ht(Ti),this._getSpan());this._peek===Oi?(this._line++,this._column=0):this._peek!==Oi&&this._peek!==ki&&this._column++,this._index++,this._peek=this._index>=this._length?Ti:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?Ti:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t&&(this._advance(),!0)},t.prototype._attemptCharCodeCaseInsensitive=function(t){return!!wt(this._peek,t)&&(this._advance(),!0)},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(ht(this._peek),this._getSpan(e,e))},t.prototype._attemptStr=function(t){var e=t.length;if(this._index+e>this._length)return!1;for(var r=this._savePosition(),n=0;n<e;n++)if(!this._attemptCharCode(t.charCodeAt(n)))return this._restorePosition(r),!1;return!0},t.prototype._attemptStrCaseInsensitive=function(t){for(var e=0;e<t.length;e++)if(!this._attemptCharCodeCaseInsensitive(t.charCodeAt(e)))return!1;return!0},t.prototype._requireStr=function(t){var e=this._getLocation();if(!this._attemptStr(t))throw this._createError(ht(this._peek),this._getSpan(e))},t.prototype._attemptCharCodeUntilFn=function(t){for(;!t(this._peek);)this._advance()},t.prototype._requireCharCodeUntilFn=function(t,e){var r=this._getLocation();if(this._attemptCharCodeUntilFn(t),this._index-r.offset<e)throw this._createError(ht(this._peek),this._getSpan(r,r))},t.prototype._attemptUntilChar=function(t){for(;this._peek!==t;)this._advance()},t.prototype._readChar=function(t){if(t&&38===this._peek)return this._decodeEntity();var e=this._index;return this._advance(),this._input[e]},t.prototype._decodeEntity=function(){var t=this._getLocation();if(this._advance(),!this._attemptCharCode(35)){var e=this._savePosition();if(this._attemptCharCodeUntilFn(gt),this._peek!=Ui)return this._restorePosition(e),"&";this._advance();var r=this._input.substring(t.offset+1,this._index-1),n=vo[r];if(!n)throw this._createError(ft(r),this._getSpan(t));return n}var o=this._attemptCharCode(120)||this._attemptCharCode(88),i=this._getLocation().offset;if(this._attemptCharCodeUntilFn(vt),this._peek!=Ui)throw this._createError(ht(this._peek),this._getSpan());this._advance();var s=this._input.substring(i,this._index-1);try{var a=parseInt(s,o?16:10);return String.fromCharCode(a)}catch(e){var u=this._input.substring(t.offset+1,this._index-1);throw this._createError(ft(u),this._getSpan(t))}},t.prototype._consumeRawText=function(t,e,r){var n,o=this._getLocation();this._beginToken(t?ks.ESCAPABLE_RAW_TEXT:ks.RAW_TEXT,o);for(var i=[];;){if(n=this._getLocation(),this._attemptCharCode(e)&&r())break;for(this._index>n.offset&&i.push(this._input.substring(n.offset,this._index));this._peek!==e;)i.push(this._readChar(t))}return this._endToken([this._processCarriageReturns(i.join(""))],n)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(ks.COMMENT_START,t),this._requireCharCode(Vi),this._endToken([]);var r=this._consumeRawText(!1,Vi,function(){return e._attemptStr("->")});this._beginToken(ks.COMMENT_END,r.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(ks.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var r=this._consumeRawText(!1,93,function(){return e._attemptStr("]>")});this._beginToken(ks.CDATA_END,r.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(ks.DOC_TYPE,t),this._attemptUntilChar(Hi),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t=this._index,e=null;58!==this._peek&&!yt(this._peek);)this._advance();var r;return 58===this._peek?(this._advance(),e=this._input.substring(t,this._index-1),r=this._index):r=t,this._requireCharCodeUntilFn(mt,this._index===r?1:0),[e,this._input.substring(r,this._index)]},t.prototype._consumeTagOpen=function(t){var e,r,n=this._savePosition();try{if(!H(this._peek))throw this._createError(ht(this._peek),this._getSpan());var o=this._index;for(this._consumeTagOpenStart(t),r=(e=this._input.substring(o,this._index)).toLowerCase(),this._attemptCharCodeUntilFn(dt);this._peek!==Fi&&this._peek!==Hi;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(dt),this._attemptCharCode(Bi)&&(this._attemptCharCodeUntilFn(dt),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(dt);this._consumeTagOpenEnd()}catch(e){if(e instanceof Ls)return this._restorePosition(n),this._beginToken(ks.TEXT,t),void this._endToken(["<"]);throw e}var i=this._getTagDefinition(e).contentType;i===yo.RAW_TEXT?this._consumeRawTextWithTagClose(r,!1):i===yo.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var r=this,n=this._consumeRawText(e,60,function(){return!!r._attemptCharCode(Fi)&&(r._attemptCharCodeUntilFn(dt),!!r._attemptStrCaseInsensitive(t)&&(r._attemptCharCodeUntilFn(dt),r._attemptCharCode(Hi)))});this._beginToken(ks.TAG_CLOSE,n.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(ks.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(ks.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){this._beginToken(ks.ATTR_VALUE);var t;if(this._peek===Di||this._peek===Ii){var e=this._peek;this._advance();for(var r=[];this._peek!==e;)r.push(this._readChar(!0));t=r.join(""),this._advance()}else{var n=this._index;this._requireCharCodeUntilFn(mt,1),t=this._input.substring(n,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(Fi)?ks.TAG_OPEN_END_VOID:ks.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(Hi),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(ks.TAG_CLOSE,t),this._attemptCharCodeUntilFn(dt);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(dt),this._requireCharCode(Hi),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(ks.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(os),this._endToken([]),this._expansionCaseStack.push(ks.EXPANSION_FORM_START),this._beginToken(ks.RAW_TEXT,this._getLocation());var t=this._readUntil(44);this._endToken([t],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(dt),this._beginToken(ks.RAW_TEXT,this._getLocation());var e=this._readUntil(44);this._endToken([e],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(dt)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(ks.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(os).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(dt),this._beginToken(ks.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(os),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(dt),this._expansionCaseStack.push(ks.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(ks.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(125),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(dt),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(ks.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(ks.TEXT,t);var e=[];do{this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(e.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(e.push(this._interpolationConfig.end),this._inInterpolation=!1):e.push(this._readChar(!0))}while(!this._isTextEnd());this._endToken([this._processCarriageReturns(e.join(""))])},t.prototype._isTextEnd=function(){if(60===this._peek||this._peek===Ti)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(_t(this._input,this._index,this._interpolationConfig))return!0;if(125===this._peek&&this._isInExpansionCase())return!0}return!1},t.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},t.prototype._readUntil=function(t){var e=this._index;return this._attemptUntilChar(t),this._input.substring(e,this._index)},t.prototype._restorePosition=function(t){this._peek=t[0],this._index=t[1],this._column=t[2],this._line=t[3];var e=t[4];e<this.tokens.length&&(this.tokens=this.tokens.slice(0,e))},t.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===ks.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===ks.EXPANSION_FORM_START},t}(),Fs=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.elementName=e,o}return Jn(e,t),e.create=function(t,r,n){return new e(t,r,n)},e}(xs),Us=function(){function t(t,e){this.rootNodes=t,this.errors=e}return t}(),Bs=function(){function t(t){this.getTagDefinition=t}return t.prototype.parse=function(t,e,r,n){void 0===r&&(r=!1),void 0===n&&(n=cs);var o=pt(t,e,this.getTagDefinition,r,n),i=new Hs(o.tokens,this.getTagDefinition).build();return new Us(i.rootNodes,o.errors.concat(i.errors))},t}(),Hs=function(){function t(t,e){this.tokens=t,this.getTagDefinition=e,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return t.prototype.build=function(){for(;this._peek.type!==ks.EOF;)this._peek.type===ks.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===ks.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===ks.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===ks.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===ks.TEXT||this._peek.type===ks.RAW_TEXT||this._peek.type===ks.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===ks.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new Us(this._rootNodes,this._errors)},t.prototype._advance=function(){var t=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],t},t.prototype._advanceIf=function(t){return this._peek.type===t?this._advance():null},t.prototype._consumeCdata=function(t){this._consumeText(this._advance()),this._advanceIf(ks.CDATA_END)},t.prototype._consumeComment=function(t){var e=this._advanceIf(ks.RAW_TEXT);this._advanceIf(ks.COMMENT_END);var r=null!=e?e.parts[0].trim():null;this._addToParent(new Rs(r,t.sourceSpan))},t.prototype._consumeExpansion=function(t){for(var e=this._advance(),r=this._advance(),n=[];this._peek.type===ks.EXPANSION_CASE_VALUE;){var o=this._parseExpansionCase();if(!o)return;n.push(o)}if(this._peek.type===ks.EXPANSION_FORM_END){var i=new Es(t.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new Ts(e.parts[0],r.parts[0],n,i,e.sourceSpan)),this._advance()}else this._errors.push(Fs.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."))},t.prototype._parseExpansionCase=function(){var e=this._advance();if(this._peek.type!==ks.EXPANSION_CASE_EXP_START)return this._errors.push(Fs.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var r=this._advance(),n=this._collectExpansionExpTokens(r);if(!n)return null;var o=this._advance();n.push(new Ns(ks.EOF,[],o.sourceSpan));var i=new t(n,this.getTagDefinition).build();if(i.errors.length>0)return this._errors=this._errors.concat(i.errors),null;var s=new Es(e.sourceSpan.start,o.sourceSpan.end),a=new Es(r.sourceSpan.start,o.sourceSpan.end);return new As(e.parts[0],i.rootNodes,s,e.sourceSpan,a)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],r=[ks.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==ks.EXPANSION_FORM_START&&this._peek.type!==ks.EXPANSION_CASE_EXP_START||r.push(this._peek.type),this._peek.type===ks.EXPANSION_CASE_EXP_END){if(!St(r,ks.EXPANSION_CASE_EXP_START))return this._errors.push(Fs.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(r.pop(),0==r.length)return e}if(this._peek.type===ks.EXPANSION_FORM_END){if(!St(r,ks.EXPANSION_FORM_START))return this._errors.push(Fs.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.pop()}if(this._peek.type===ks.EOF)return this._errors.push(Fs.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;e.push(this._advance())}},t.prototype._consumeText=function(t){var e=t.parts[0];if(e.length>0&&"\n"==e[0]){var r=this._getParentElement();null!=r&&0==r.children.length&&this.getTagDefinition(r.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new Ps(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){if(this._elementStack.length>0){var t=this._elementStack[this._elementStack.length-1];this.getTagDefinition(t.name).isVoid&&this._elementStack.pop()}},t.prototype._consumeStartTag=function(t){for(var e=t.parts[0],r=t.parts[1],n=[];this._peek.type===ks.ATTR_NAME;)n.push(this._consumeAttr(this._advance()));var o=this._getElementFullName(e,r,this._getParentElement()),i=!1;if(this._peek.type===ks.TAG_OPEN_END_VOID){this._advance(),i=!0;var s=this.getTagDefinition(o);s.canSelfClose||null!==a(o)||s.isVoid||this._errors.push(Fs.create(o,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===ks.TAG_OPEN_END&&(this._advance(),i=!1);var u=this._peek.sourceSpan.start,c=new Es(t.sourceSpan.start,u),l=new Ms(o,n,[],c,c,void 0);this._pushElement(l),i&&(this._popElement(o),l.endSourceSpan=c)},t.prototype._pushElement=function(t){if(this._elementStack.length>0){var e=this._elementStack[this._elementStack.length-1];this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop()}var r=this.getTagDefinition(t.name),n=this._getParentElementSkippingContainers(),o=n.parent,i=n.container;if(o&&r.requireExtraParent(o.name)){var s=new Ms(r.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(o,i,s)}this._addToParent(t),this._elementStack.push(t)},t.prototype._consumeEndTag=function(t){var e=this._getElementFullName(t.parts[0],t.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=t.sourceSpan),this.getTagDefinition(e).isVoid)this._errors.push(Fs.create(e,t.sourceSpan,'Void elements do not have end tags "'+t.parts[1]+'"'));else if(!this._popElement(e)){var r='Unexpected closing tag "'+e+'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags';this._errors.push(Fs.create(e,t.sourceSpan,r))}},t.prototype._popElement=function(t){for(var e=this._elementStack.length-1;e>=0;e--){var r=this._elementStack[e];if(r.name==t)return this._elementStack.splice(e,this._elementStack.length-e),!0;if(!this.getTagDefinition(r.name).closedByParent)return!1}return!1},t.prototype._consumeAttr=function(t){var e=u(t.parts[0],t.parts[1]),r=t.sourceSpan.end,n="",o=void 0;if(this._peek.type===ks.ATTR_VALUE){var i=this._advance();n=i.parts[0],r=i.sourceSpan.end,o=i.sourceSpan}return new Os(e,n,new Es(t.sourceSpan.start,r),o)},t.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},t.prototype._getParentElementSkippingContainers=function(){for(var t=null,e=this._elementStack.length-1;e>=0;e--){if(!o(this._elementStack[e].name))return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:this._elementStack[this._elementStack.length-1],container:t}},t.prototype._addToParent=function(t){var e=this._getParentElement();null!=e?e.children.push(t):this._rootNodes.push(t)},t.prototype._insertBeforeContainer=function(t,e,r){if(e){if(t){var n=t.children.indexOf(e);t.children[n]=r}else this._rootNodes.push(r);r.children.push(e),this._elementStack.splice(this._elementStack.indexOf(e),0,r)}else this._addToParent(r),this._elementStack.push(r)},t.prototype._getElementFullName=function(t,e,r){return null==t&&null==(t=this.getTagDefinition(e).implicitNamespacePrefix)&&null!=r&&(t=a(r.name)),u(t,e)},t}(),qs=function(){function t(t,e,r,n,o,i){this.nodes=t,this.placeholders=e,this.placeholderToMessage=r,this.meaning=n,this.description=o,this.id=i,t.length?this.sources=[{filePath:t[0].sourceSpan.start.file.url,startLine:t[0].sourceSpan.start.line+1,startCol:t[0].sourceSpan.start.col+1,endLine:t[t.length-1].sourceSpan.end.line+1,endCol:t[0].sourceSpan.start.col+1}]:this.sources=[]}return t}(),Gs=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),zs=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),$s=function(){function t(t,e,r,n){this.expression=t,this.type=e,this.cases=r,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitIcu(this,e)},t}(),Ws=function(){function t(t,e,r,n,o,i,s){this.tag=t,this.attrs=e,this.startName=r,this.closeName=n,this.children=o,this.isVoid=i,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),Ks=function(){function t(t,e,r){this.value=t,this.name=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitPlaceholder(this,e)},t}(),Qs=function(){function t(t,e,r){this.value=t,this.name=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitIcuPlaceholder(this,e)},t}(),Js=function(){function t(){}return t.prototype.visitText=function(t,e){return new Gs(t.value,t.sourceSpan)},t.prototype.visitContainer=function(t,e){var r=this,n=t.children.map(function(t){return t.visit(r,e)});return new zs(n,t.sourceSpan)},t.prototype.visitIcu=function(t,e){var r=this,n={};Object.keys(t.cases).forEach(function(o){return n[o]=t.cases[o].visit(r,e)});var o=new $s(t.expression,t.type,n,t.sourceSpan);return o.expressionPlaceholder=t.expressionPlaceholder,o},t.prototype.visitTagPlaceholder=function(t,e){var r=this,n=t.children.map(function(t){return t.visit(r,e)});return new Ws(t.tag,t.attrs,t.startName,t.closeName,n,t.isVoid,t.sourceSpan)},t.prototype.visitPlaceholder=function(t,e){return new Ks(t.value,t.name,t.sourceSpan)},t.prototype.visitIcuPlaceholder=function(t,e){return new Qs(t.value,t.name,t.sourceSpan)},t}(),Xs=function(){function t(){}return t.prototype.visitText=function(t,e){},t.prototype.visitContainer=function(t,e){var r=this;t.children.forEach(function(t){return t.visit(r)})},t.prototype.visitIcu=function(t,e){var r=this;Object.keys(t.cases).forEach(function(e){t.cases[e].visit(r)})},t.prototype.visitTagPlaceholder=function(t,e){var r=this;t.children.forEach(function(t){return t.visit(r)})},t.prototype.visitPlaceholder=function(t,e){},t.prototype.visitIcuPlaceholder=function(t,e){},t}(),Zs={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},Ys=function(){function t(){this._placeHolderNameCounts={},this._signatureToName={}}return t.prototype.getStartTagPlaceholderName=function(t,e,r){var n=this._hashTag(t,e,r);if(this._signatureToName[n])return this._signatureToName[n];var o=t.toUpperCase(),i=Zs[o]||"TAG_"+o,s=this._generateUniqueName(r?i:"START_"+i);return this._signatureToName[n]=s,s},t.prototype.getCloseTagPlaceholderName=function(t){var e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];var r=t.toUpperCase(),n=Zs[r]||"TAG_"+r,o=this._generateUniqueName("CLOSE_"+n);return this._signatureToName[e]=o,o},t.prototype.getPlaceholderName=function(t,e){var r=t.toUpperCase(),n="PH: "+r+"="+e;if(this._signatureToName[n])return this._signatureToName[n];var o=this._generateUniqueName(r);return this._signatureToName[n]=o,o},t.prototype.getUniquePlaceholder=function(t){return this._generateUniqueName(t.toUpperCase())},t.prototype._hashTag=function(t,e,r){return"<"+t+Object.keys(e).sort().map(function(t){return" "+t+"="+e[t]}).join("")+(r?"/>":"></"+t+">")},t.prototype._hashClosingTag=function(t){return this._hashTag("/"+t,{},!1)},t.prototype._generateUniqueName=function(t){if(!this._placeHolderNameCounts.hasOwnProperty(t))return this._placeHolderNameCounts[t]=1,t;var e=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=e+1,t+"_"+e},t}(),ta=new gs(new hs),ea=function(){function t(t,e){this._expressionParser=t,this._interpolationConfig=e}return t.prototype.toI18nMessage=function(t,e,r,n){this._isIcu=1==t.length&&t[0]instanceof Ts,this._icuDepth=0,this._placeholderRegistry=new Ys,this._placeholderToContent={},this._placeholderToMessage={};var o=lt(this,t,{});return new qs(o,this._placeholderToContent,this._placeholderToMessage,e,r,n)},t.prototype.visitElement=function(t,e){var r=lt(this,t.children),n={};t.attrs.forEach(function(t){n[t.name]=t.value});var o=c(t.name).isVoid,i=this._placeholderRegistry.getStartTagPlaceholderName(t.name,n,o);this._placeholderToContent[i]=t.sourceSpan.toString();var s="";return o||(s=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[s]="</"+t.name+">"),new Ws(t.name,n,i,s,r,o,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitExpansion=function(e,r){var n=this;this._icuDepth++;var o={},i=new $s(e.switchValue,e.type,o,e.sourceSpan);if(e.cases.forEach(function(t){o[t.value]=new zs(t.expression.map(function(t){return t.visit(n,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var s=this._placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return i.expressionPlaceholder=s,this._placeholderToContent[s]=e.switchValue,i}var a=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),u=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[a]=u.toI18nMessage([e],"","",""),new Qs(i,a,e.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Unreachable code")},t.prototype._visitTextWithInterpolation=function(t,e){var r=this._expressionParser.splitInterpolation(t,e.start.toString(),this._interpolationConfig);if(!r)return new Gs(t,e);for(var n=[],o=new zs(n,e),i=this._interpolationConfig,s=i.start,a=i.end,u=0;u<r.strings.length-1;u++){var c=r.expressions[u],l=Pt(c)||"INTERPOLATION",p=this._placeholderRegistry.getPlaceholderName(l,c);r.strings[u].length&&n.push(new Gs(r.strings[u],e)),n.push(new Ks(c,p,e)),this._placeholderToContent[p]=s+c+a}var h=r.strings.length-1;return r.strings[h].length&&n.push(new Gs(r.strings[h],e)),o},t}(),ra=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g,na=function(t){function e(e,r){return t.call(this,e,r)||this}return Jn(e,t),e}(xs),oa="i18n",ia=/^i18n:?/,sa="|",aa="@@",ua=function(){function t(t,e){this.messages=t,this.errors=e}return t}(),ca={};ca.Extract=0,ca.Merge=1,ca[ca.Extract]="Extract",ca[ca.Merge]="Merge";var la=function(){function t(t,e){this._implicitTags=t,this._implicitAttrs=e}return t.prototype.extract=function(t,e){var r=this;return this._init(ca.Extract,e),t.forEach(function(t){return t.visit(r,null)}),this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new ua(this._messages,this._errors)},t.prototype.merge=function(t,e,r){this._init(ca.Merge,r),this._translations=e;var n=new Ms("wrapper",[],t,void 0,void 0,void 0).visit(this,null);return this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Us(n.children,this._errors)},t.prototype.visitExpansionCase=function(t,e){var r=lt(this,t.expression,e);if(this._mode===ca.Merge)return new As(t.value,r,t.sourceSpan,t.valueSourceSpan,t.expSourceSpan)},t.prototype.visitExpansion=function(t,e){this._mayBeAddBlockChildren(t);var r=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([t]),this._inIcu=!0);var n=lt(this,t.cases,e);return this._mode===ca.Merge&&(t=new Ts(t.switchValue,t.type,n,t.sourceSpan,t.switchValueSourceSpan)),this._inIcu=r,t},t.prototype.visitComment=function(t,e){var r=Ot(t);if(r&&this._isInTranslatableSection)this._reportError(t,"Could not start a block inside a translatable section");else{var n=Mt(t);if(!n||this._inI18nBlock){if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(n){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(t,this._blockChildren),this._inI18nBlock=!1;var o=this._addMessage(this._blockChildren,this._blockMeaningAndDesc);return lt(this,this._translateMessage(t,o))}return void this._reportError(t,"I18N blocks should not cross element boundaries")}}else r&&(this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(ia,"").trim(),this._openTranslatableSection(t))}else this._reportError(t,"Trying to close an unopened block")}},t.prototype.visitText=function(t,e){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(t),t},t.prototype.visitElement=function(t,e){var r=this;this._mayBeAddBlockChildren(t),this._depth++;var n=this._inI18nNode,o=this._inImplicitNode,i=[],s=void 0,a=Rt(t),u=a?a.value:"",c=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,l=!o&&c;if(this._inImplicitNode=o||c,this._isInTranslatableSection||this._inIcu)(a||l)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==ca.Extract&&lt(this,t.children);else{if(a||l){this._inI18nNode=!0;var p=this._addMessage(t.children,u);s=this._translateMessage(t,p)}if(this._mode==ca.Extract){var h=a||l;h&&this._openTranslatableSection(t),lt(this,t.children),h&&this._closeTranslatableSection(t,t.children)}}if(this._mode===ca.Merge&&(s||t.children).forEach(function(t){var n=t.visit(r,e);n&&!r._isInTranslatableSection&&(i=i.concat(n))}),this._visitAttributesOf(t),this._depth--,this._inI18nNode=n,this._inImplicitNode=o,this._mode===ca.Merge){var f=this._translateAttributes(t);return new Ms(t.name,f,i,t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}return null},t.prototype.visitAttribute=function(t,e){throw new Error("unreachable code")},t.prototype._init=function(t,e){this._mode=t,this._inI18nBlock=!1,this._inI18nNode=!1,this._depth=0,this._inIcu=!1,this._msgCountAtSectionStart=void 0,this._errors=[],this._messages=[],this._inImplicitNode=!1,this._createI18nMessage=xt(e)},t.prototype._visitAttributesOf=function(t){var e=this,r={},n=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith("i18n-")}).forEach(function(t){return r[t.name.slice("i18n-".length)]=t.value}),t.attrs.forEach(function(t){t.name in r?e._addMessage([t],r[t.name]):n.some(function(e){return t.name===e})&&e._addMessage([t])})},t.prototype._addMessage=function(t,e){if(0==t.length||1==t.length&&t[0]instanceof Os&&!t[0].value)return null;var r=kt(e),n=r.meaning,o=r.description,i=r.id,s=this._createI18nMessage(t,n,o,i);return this._messages.push(s),s},t.prototype._translateMessage=function(t,e){if(e&&this._mode===ca.Merge){var r=this._translations.get(e);if(r)return r;this._reportError(t,'Translation unavailable for message id="'+this._translations.digest(e)+'"')}return[]},t.prototype._translateAttributes=function(t){var e=this,r=t.attrs,n={};r.forEach(function(t){t.name.startsWith("i18n-")&&(n[t.name.slice("i18n-".length)]=kt(t.value))});var o=[];return r.forEach(function(r){if(r.name!==oa&&!r.name.startsWith("i18n-"))if(r.value&&""!=r.value&&n.hasOwnProperty(r.name)){var i=n[r.name],s=i.meaning,a=i.description,u=i.id,c=e._createI18nMessage([r],s,a,u),l=e._translations.get(c);if(l)if(0==l.length)o.push(new Os(r.name,"",r.sourceSpan));else if(l[0]instanceof Ps){var p=l[0].value;o.push(new Os(r.name,p,r.sourceSpan))}else e._reportError(t,'Unexpected translation for attribute "'+r.name+'" (id="'+(u||e._translations.digest(c))+'")');else e._reportError(t,'Translation unavailable for attribute "'+r.name+'" (id="'+(u||e._translations.digest(c))+'")')}else o.push(r)}),o},t.prototype._mayBeAddBlockChildren=function(t){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(t)},t.prototype._openTranslatableSection=function(t){this._isInTranslatableSection?this._reportError(t,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(t.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),t.prototype._closeTranslatableSection=function(t,e){if(this._isInTranslatableSection){var r=this._msgCountAtSectionStart;if(1==e.reduce(function(t,e){return t+(e instanceof Rs?0:1)},0))for(var n=this._messages.length-1;n>=r;n--){var o=this._messages[n].nodes;if(!(1==o.length&&o[0]instanceof Gs)){this._messages.splice(n,1);break}}this._msgCountAtSectionStart=void 0}else this._reportError(t,"Unexpected section end")},t.prototype._reportError=function(t,e){this._errors.push(new na(t.sourceSpan,e))},t}(),pa=new(function(){function t(){this.closedByParent=!1,this.contentType=yo.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return t.prototype.requireExtraParent=function(t){return!1},t.prototype.isClosedByChild=function(t){return!1},t}()),ha=function(t){function e(){return t.call(this,Nt)||this}return Jn(e,t),e.prototype.parse=function(e,r,n){return void 0===n&&(n=!1),t.prototype.parse.call(this,e,r,n)},e}(Bs),fa=function(){function t(){}return t.prototype.visitText=function(t,e){return t.value},t.prototype.visitContainer=function(t,e){var r=this;return"["+t.children.map(function(t){return t.visit(r)}).join(", ")+"]"},t.prototype.visitIcu=function(t,e){var r=this,n=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(r)+"}"});return"{"+t.expression+", "+t.type+", "+n.join(", ")+"}"},t.prototype.visitTagPlaceholder=function(t,e){var r=this;return t.isVoid?'<ph tag name="'+t.startName+'"/>':'<ph tag name="'+t.startName+'">'+t.children.map(function(t){return t.visit(r)}).join(", ")+'</ph name="'+t.closeName+'">'},t.prototype.visitPlaceholder=function(t,e){return t.value?'<ph name="'+t.name+'">'+t.value+"</ph>":'<ph name="'+t.name+'"/>'},t.prototype.visitIcuPlaceholder=function(t,e){return'<ph icu name="'+t.name+'">'+t.value.visit(this)+"</ph>"},t}(),da=new fa,ma=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Jn(e,t),e.prototype.visitIcu=function(t,e){var r=this,n=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(r)+"}"});return"{"+t.type+", "+n.join(", ")+"}"},e}(fa),ya={};ya.Little=0,ya.Big=1,ya[ya.Little]="Little",ya[ya.Big]="Big";var va=function(){function t(){}return t.prototype.write=function(t,e){},t.prototype.load=function(t,e){},t.prototype.digest=function(t){},t.prototype.createNameMapper=function(t){return null},t}(),ga=function(t){function e(e,r){var n=t.call(this)||this;return n.mapName=r,n.internalToPublic={},n.publicToNextId={},n.publicToInternal={},e.nodes.forEach(function(t){return t.visit(n)}),n}return Jn(e,t),e.prototype.toPublicName=function(t){return this.internalToPublic.hasOwnProperty(t)?this.internalToPublic[t]:null},e.prototype.toInternalName=function(t){return this.publicToInternal.hasOwnProperty(t)?this.publicToInternal[t]:null},e.prototype.visitText=function(t,e){return null},e.prototype.visitTagPlaceholder=function(e,r){this.visitPlaceholderName(e.startName),t.prototype.visitTagPlaceholder.call(this,e,r),this.visitPlaceholderName(e.closeName)},e.prototype.visitPlaceholder=function(t,e){this.visitPlaceholderName(t.name)},e.prototype.visitIcuPlaceholder=function(t,e){this.visitPlaceholderName(t.name)},e.prototype.visitPlaceholderName=function(t){if(t&&!this.internalToPublic.hasOwnProperty(t)){var e=this.mapName(t);if(this.publicToInternal.hasOwnProperty(e)){var r=this.publicToNextId[e];this.publicToNextId[e]=r+1,e=e+"_"+r}else this.publicToNextId[e]=1;this.internalToPublic[t]=e,this.publicToInternal[e]=t}},e}(Xs),_a=new(function(){function t(){}return t.prototype.visitTag=function(t){var e=this,r=this._serializeAttributes(t.attrs);if(0==t.children.length)return"<"+t.name+r+"/>";var n=t.children.map(function(t){return t.visit(e)});return"<"+t.name+r+">"+n.join("")+"</"+t.name+">"},t.prototype.visitText=function(t){return t.value},t.prototype.visitDeclaration=function(t){return"<?xml"+this._serializeAttributes(t.attrs)+" ?>"},t.prototype._serializeAttributes=function(t){var e=Object.keys(t).map(function(e){return e+'="'+t[e]+'"'}).join(" ");return e.length>0?" "+e:""},t.prototype.visitDoctype=function(t){return"<!DOCTYPE "+t.rootTag+" [\n"+t.dtd+"\n]>"},t}()),ba=function(){function t(t){var e=this;this.attrs={},Object.keys(t).forEach(function(r){e.attrs[r]=ie(t[r])})}return t.prototype.visit=function(t){return t.visitDeclaration(this)},t}(),wa=function(){function t(t,e){this.rootTag=t,this.dtd=e}return t.prototype.visit=function(t){return t.visitDoctype(this)},t}(),Ca=function(){function t(t,e,r){void 0===e&&(e={}),void 0===r&&(r=[]);var n=this;this.name=t,this.children=r,this.attrs={},Object.keys(e).forEach(function(t){n.attrs[t]=ie(e[t])})}return t.prototype.visit=function(t){return t.visitTag(this)},t}(),Ea=function(){function t(t){this.value=ie(t)}return t.prototype.visit=function(t){return t.visitText(this)},t}(),Sa=function(t){function e(e){return void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))||this}return Jn(e,t),e}(Ea),xa=[[/&/g,"&amp;"],[/"/g,"&quot;"],[/'/g,"&apos;"],[/</g,"&lt;"],[/>/g,"&gt;"]],Pa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Jn(e,t),e.prototype.write=function(t,e){var r=new Ta,n=[];t.forEach(function(t){var e=[];t.sources.forEach(function(t){var r=new Ca("context-group",{purpose:"location"});r.children.push(new Sa(10),new Ca("context",{"context-type":"sourcefile"},[new Ea(t.filePath)]),new Sa(10),new Ca("context",{"context-type":"linenumber"},[new Ea(""+t.startLine)]),new Sa(8)),e.push(new Sa(8),r)});var o=new Ca("trans-unit",{id:t.id,datatype:"html"});(i=o.children).push.apply(i,[new Sa(8),new Ca("source",{},r.serialize(t.nodes)),new Sa(8),new Ca("target")].concat(e)),t.description&&o.children.push(new Sa(8),new Ca("note",{priority:"1",from:"description"},[new Ea(t.description)])),t.meaning&&o.children.push(new Sa(8),new Ca("note",{priority:"1",from:"meaning"},[new Ea(t.meaning)])),o.children.push(new Sa(6)),n.push(new Sa(6),o);var i});var o=new Ca("body",{},n.concat([new Sa(4)])),i=new Ca("file",{"source-language":e||"en",datatype:"plaintext",original:"ng2.template"},[new Sa(4),o,new Sa(2)]),s=new Ca("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new Sa(2),i,new Sa]);return oe([new ba({version:"1.0",encoding:"UTF-8"}),new Sa,s,new Sa])},e.prototype.load=function(t,e){var r=(new Aa).parse(t,e),n=r.locale,o=r.msgIdToHtml,i=r.errors,s={},a=new Oa;if(Object.keys(o).forEach(function(t){var r=a.convert(o[t],e),n=r.i18nNodes,u=r.errors;i.push.apply(i,u),s[t]=n}),i.length)throw new Error("xliff parse errors:\n"+i.join("\n"));return{locale:n,i18nNodesByMsgId:s}},e.prototype.digest=function(t){return It(t)},e}(va),Ta=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Ea(t.value)]},t.prototype.visitContainer=function(t,e){var r=this,n=[];return t.children.forEach(function(t){return n.push.apply(n,t.visit(r))}),n},t.prototype.visitIcu=function(t,e){var r=this,n=[new Ea("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){n.push.apply(n,[new Ea(e+" {")].concat(t.cases[e].visit(r),[new Ea("} ")]))}),n.push(new Ea("}")),n},t.prototype.visitTagPlaceholder=function(t,e){var r=se(t.tag),n=new Ca("x",{id:t.startName,ctype:r});if(t.isVoid)return[n];var o=new Ca("x",{id:t.closeName,ctype:r});return[n].concat(this.serialize(t.children),[o])},t.prototype.visitPlaceholder=function(t,e){return[new Ca("x",{id:t.name})]},t.prototype.visitIcuPlaceholder=function(t,e){return[new Ca("x",{id:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Aa=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var r=(new ha).parse(t,e,!1);return this._errors=r.errors,lt(this,r.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"trans-unit":this._unitMlString=null;var r=t.attrs.find(function(t){return"id"===t.name});if(r){var n=r.value;this._msgIdToHtml.hasOwnProperty(n)?this._addError(t,"Duplicated translations for msg "+n):(lt(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[n]=this._unitMlString:this._addError(t,"Message "+n+" misses a translation"))}else this._addError(t,'<trans-unit> misses the "id" attribute');break;case"source":break;case"target":var o=t.startSourceSpan.end.offset,i=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content.slice(o,i);this._unitMlString=s;break;case"file":var a=t.attrs.find(function(t){return"target-language"===t.name});a&&(this._locale=a.value),lt(this,t.children,null);break;default:lt(this,t.children,null)}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new na(t.sourceSpan,e))},t}(),Oa=function(){function t(){}return t.prototype.convert=function(t,e){var r=(new ha).parse(t,e,!0);return this._errors=r.errors,{i18nNodes:this._errors.length>0||0==r.rootNodes.length?[]:lt(this,r.rootNodes),errors:this._errors}},t.prototype.visitText=function(t,e){return new Gs(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){if("x"===t.name){var r=t.attrs.find(function(t){return"id"===t.name});if(r)return new Ks("",r.value,t.sourceSpan);this._addError(t,'<x> misses the "id" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitExpansion=function(t,e){var r={};return lt(this,t.cases).forEach(function(e){r[e.value]=new zs(e.nodes,t.sourceSpan)}),new $s(t.switchValue,t.type,r,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:lt(this,t.expression)}},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new na(t.sourceSpan,e))},t}(),Ma=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Jn(e,t),e.prototype.write=function(t,e){var r=new Ra,n=[];t.forEach(function(t){var e=new Ca("unit",{id:t.id});if(t.description||t.meaning){var o=new Ca("notes");t.description&&o.children.push(new Sa(8),new Ca("note",{category:"description"},[new Ea(t.description)])),t.meaning&&o.children.push(new Sa(8),new Ca("note",{category:"meaning"},[new Ea(t.meaning)])),o.children.push(new Sa(6)),e.children.push(new Sa(6),o)}var i=new Ca("segment");i.children.push(new Sa(8),new Ca("source",{},r.serialize(t.nodes)),new Sa(6)),e.children.push(new Sa(6),i,new Sa(4)),n.push(new Sa(4),e)});var o=new Ca("file",{original:"ng.template",id:"ngi18n"},n.concat([new Sa(2)])),i=new Ca("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:e||"en"},[new Sa(2),o,new Sa]);return oe([new ba({version:"1.0",encoding:"UTF-8"}),new Sa,i,new Sa])},e.prototype.load=function(t,e){var r=(new ka).parse(t,e),n=r.locale,o=r.msgIdToHtml,i=r.errors,s={},a=new Na;if(Object.keys(o).forEach(function(t){var r=a.convert(o[t],e),n=r.i18nNodes,u=r.errors;i.push.apply(i,u),s[t]=n}),i.length)throw new Error("xliff2 parse errors:\n"+i.join("\n"));return{locale:n,i18nNodesByMsgId:s}},e.prototype.digest=function(t){return jt(t)},e}(va),Ra=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Ea(t.value)]},t.prototype.visitContainer=function(t,e){var r=this,n=[];return t.children.forEach(function(t){return n.push.apply(n,t.visit(r))}),n},t.prototype.visitIcu=function(t,e){var r=this,n=[new Ea("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){n.push.apply(n,[new Ea(e+" {")].concat(t.cases[e].visit(r),[new Ea("} ")]))}),n.push(new Ea("}")),n},t.prototype.visitTagPlaceholder=function(t,e){var r=this,n=ae(t.tag);if(t.isVoid)return[new Ca("ph",{id:(this._nextPlaceholderId++).toString(),equiv:t.startName,type:n,disp:"<"+t.tag+"/>"})];var o=new Ca("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:t.startName,equivEnd:t.closeName,type:n,dispStart:"<"+t.tag+">",dispEnd:"</"+t.tag+">"}),i=[].concat.apply([],t.children.map(function(t){return t.visit(r)}));return i.length?i.forEach(function(t){return o.children.push(t)}):o.children.push(new Ea("")),[o]},t.prototype.visitPlaceholder=function(t,e){return[new Ca("ph",{id:(this._nextPlaceholderId++).toString(),equiv:t.name,disp:"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(t,e){return[new Ca("ph",{id:(this._nextPlaceholderId++).toString()})]},t.prototype.serialize=function(t){var e=this;return this._nextPlaceholderId=0,[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),ka=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var r=(new ha).parse(t,e,!1);return this._errors=r.errors,lt(this,r.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"unit":this._unitMlString=null;var r=t.attrs.find(function(t){return"id"===t.name});if(r){var n=r.value;this._msgIdToHtml.hasOwnProperty(n)?this._addError(t,"Duplicated translations for msg "+n):(lt(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[n]=this._unitMlString:this._addError(t,"Message "+n+" misses a translation"))}else this._addError(t,'<unit> misses the "id" attribute');break;case"source":break;case"target":var o=t.startSourceSpan.end.offset,i=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content.slice(o,i);this._unitMlString=s;break;case"xliff":var a=t.attrs.find(function(t){return"trgLang"===t.name});a&&(this._locale=a.value);var u=t.attrs.find(function(t){return"version"===t.name});if(u){var c=u.value;"2.0"!==c?this._addError(t,"The XLIFF file version "+c+" is not compatible with XLIFF 2.0 serializer"):lt(this,t.children,null)}break;default:lt(this,t.children,null)}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new na(t.sourceSpan,e))},t}(),Na=function(){function t(){}return t.prototype.convert=function(t,e){var r=(new ha).parse(t,e,!0);return this._errors=r.errors,{i18nNodes:this._errors.length>0||0==r.rootNodes.length?[]:[].concat.apply([],lt(this,r.rootNodes)),errors:this._errors}},t.prototype.visitText=function(t,e){return new Gs(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){var r=this;switch(t.name){case"ph":var n=t.attrs.find(function(t){return"equiv"===t.name});if(n)return[new Ks("",n.value,t.sourceSpan)];this._addError(t,'<ph> misses the "equiv" attribute');break;case"pc":var o=t.attrs.find(function(t){return"equivStart"===t.name}),i=t.attrs.find(function(t){return"equivEnd"===t.name});if(o){if(i){var s=o.value,a=i.value,u=[];return u.concat.apply(u,[new Ks("",s,t.sourceSpan)].concat(t.children.map(function(t){return t.visit(r,null)}),[new Ks("",a,t.sourceSpan)]))}this._addError(t,'<ph> misses the "equivEnd" attribute')}else this._addError(t,'<ph> misses the "equivStart" attribute');break;default:this._addError(t,"Unexpected tag")}return null},t.prototype.visitExpansion=function(t,e){var r={};return lt(this,t.cases).forEach(function(e){r[e.value]=new zs(e.nodes,t.sourceSpan)}),new $s(t.switchValue,t.type,r,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:[].concat.apply([],lt(this,t.expression))}},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new na(t.sourceSpan,e))},t}(),Ia=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Jn(e,t),e.prototype.write=function(t,e){var r=new Da,n=new ja,o=new Ca("messagebundle");return t.forEach(function(t){var e={id:t.id};t.description&&(e.desc=t.description),t.meaning&&(e.meaning=t.meaning);var r=[];t.sources.forEach(function(t){r.push(new Ca("source",{},[new Ea(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),o.children.push(new Sa(2),new Ca("msg",e,r.concat(n.serialize(t.nodes))))}),o.children.push(new Sa),oe([new ba({version:"1.0",encoding:"UTF-8"}),new Sa,new wa("messagebundle",'<!ELEMENT messagebundle (msg)*>\n<!ATTLIST messagebundle class CDATA #IMPLIED>\n\n<!ELEMENT msg (#PCDATA|ph|source)*>\n<!ATTLIST msg id CDATA #IMPLIED>\n<!ATTLIST msg seq CDATA #IMPLIED>\n<!ATTLIST msg name CDATA #IMPLIED>\n<!ATTLIST msg desc CDATA #IMPLIED>\n<!ATTLIST msg meaning CDATA #IMPLIED>\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\n<!ATTLIST msg xml:space (default|preserve) "default">\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\n\n<!ELEMENT source (#PCDATA)>\n\n<!ELEMENT ph (#PCDATA|ex)*>\n<!ATTLIST ph name CDATA #REQUIRED>\n\n<!ELEMENT ex (#PCDATA)>'),new Sa,r.addDefaultExamples(o),new Sa])},e.prototype.load=function(t,e){throw new Error("Unsupported")},e.prototype.digest=function(t){return ue(t)},e.prototype.createNameMapper=function(t){return new ga(t,ce)},e}(va),ja=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Ea(t.value)]},t.prototype.visitContainer=function(t,e){var r=this,n=[];return t.children.forEach(function(t){return n.push.apply(n,t.visit(r))}),n},t.prototype.visitIcu=function(t,e){var r=this,n=[new Ea("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){n.push.apply(n,[new Ea(e+" {")].concat(t.cases[e].visit(r),[new Ea("} ")]))}),n.push(new Ea("}")),n},t.prototype.visitTagPlaceholder=function(t,e){var r=new Ca("ex",{},[new Ea("<"+t.tag+">")]),n=new Ca("ph",{name:t.startName},[r]);if(t.isVoid)return[n];var o=new Ca("ex",{},[new Ea("</"+t.tag+">")]),i=new Ca("ph",{name:t.closeName},[o]);return[n].concat(this.serialize(t.children),[i])},t.prototype.visitPlaceholder=function(t,e){return[new Ca("ph",{name:t.name})]},t.prototype.visitIcuPlaceholder=function(t,e){return[new Ca("ph",{name:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Da=function(){function t(){}return t.prototype.addDefaultExamples=function(t){return t.visit(this),t},t.prototype.visitTag=function(t){var e=this;if("ph"===t.name){if(!t.children||0==t.children.length){var r=new Ea(t.attrs.name||"...");t.children=[new Ca("ex",{},[r])]}}else t.children&&t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitText=function(t){},t.prototype.visitDeclaration=function(t){},t.prototype.visitDoctype=function(t){},t}(),La=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Jn(e,t),e.prototype.write=function(t,e){throw new Error("Unsupported")},e.prototype.load=function(t,e){var r=(new Va).parse(t,e),n=r.locale,o=r.msgIdToHtml,i=r.errors,s={},a=new Fa;if(Object.keys(o).forEach(function(t){le(s,t,function(){var r=a.convert(o[t],e),n=r.i18nNodes,i=r.errors;if(i.length)throw new Error("xtb parse errors:\n"+i.join("\n"));return n})}),i.length)throw new Error("xtb parse errors:\n"+i.join("\n"));return{locale:n,i18nNodesByMsgId:s}},e.prototype.digest=function(t){return ue(t)},e.prototype.createNameMapper=function(t){return new ga(t,ce)},e}(va),Va=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._bundleDepth=0,this._msgIdToHtml={};var r=(new ha).parse(t,e,!1);return this._errors=r.errors,lt(this,r.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"translationbundle":++this._bundleDepth>1&&this._addError(t,"<translationbundle> elements can not be nested");var r=t.attrs.find(function(t){return"lang"===t.name});r&&(this._locale=r.value),lt(this,t.children,null),this._bundleDepth--;break;case"translation":var n=t.attrs.find(function(t){return"id"===t.name});if(n){var o=n.value;if(this._msgIdToHtml.hasOwnProperty(o))this._addError(t,"Duplicated translations for msg "+o);else{var i=t.startSourceSpan.end.offset,s=t.endSourceSpan.start.offset,a=t.startSourceSpan.start.file.content.slice(i,s);this._msgIdToHtml[o]=a}}else this._addError(t,'<translation> misses the "id" attribute');break;default:this._addError(t,"Unexpected tag")}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new na(t.sourceSpan,e))},t}(),Fa=function(){function t(){}return t.prototype.convert=function(t,e){var r=(new ha).parse(t,e,!0);return this._errors=r.errors,{i18nNodes:this._errors.length>0||0==r.rootNodes.length?[]:lt(this,r.rootNodes),errors:this._errors}},t.prototype.visitText=function(t,e){return new Gs(t.value,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){var r={};return lt(this,t.cases).forEach(function(e){r[e.value]=new zs(e.nodes,t.sourceSpan)}),new $s(t.switchValue,t.type,r,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:lt(this,t.expression)}},t.prototype.visitElement=function(t,e){if("ph"===t.name){var r=t.attrs.find(function(t){return"name"===t.name});if(r)return new Ks("",r.value,t.sourceSpan);this._addError(t,'<ph> misses the "name" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new na(t.sourceSpan,e))},t}(),Ua=function(t){function e(){return t.call(this,c)||this}return Jn(e,t),e.prototype.parse=function(e,r,n,o){return void 0===n&&(n=!1),void 0===o&&(o=cs),t.prototype.parse.call(this,e,r,n,o)},e}(Bs);Ua.decorators=[{type:G}],Ua.ctorParameters=function(){return[]};var Ba=function(){function t(t,r,n,o,i,s){void 0===t&&(t={}),void 0===i&&(i=e.MissingTranslationStrategy.Warning),this._i18nNodesByMsgId=t,this.digest=n,this.mapperFactory=o,this._i18nToHtml=new Ha(t,r,n,o,i,s)}return t.load=function(e,r,n,o,i){var s=n.load(e,r),a=s.locale;return new t(s.i18nNodesByMsgId,a,function(t){return n.digest(t)},function(t){return n.createNameMapper(t)},o,i)},t.prototype.get=function(t){var e=this._i18nToHtml.convert(t);if(e.errors.length)throw new Error(e.errors.join("\n"));return e.nodes},t.prototype.has=function(t){return this.digest(t)in this._i18nNodesByMsgId},t}(),Ha=function(){function t(t,e,r,n,o,i){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this._locale=e,this._digest=r,this._mapperFactory=n,this._missingTranslationStrategy=o,this._console=i,this._contextStack=[],this._errors=[]}return t.prototype.convert=function(t){this._contextStack.length=0,this._errors.length=0;var e=this._convertToText(t),r=t.nodes[0].sourceSpan.start.file.url,n=(new Ua).parse(e,r,!0);return{nodes:n.rootNodes,errors:this._errors.concat(n.errors)}},t.prototype.visitText=function(t,e){return t.value},t.prototype.visitContainer=function(t,e){var r=this;return t.children.map(function(t){return t.visit(r)}).join("")},t.prototype.visitIcu=function(t,e){var r=this,n=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(r)+"}"});return"{"+(this._srcMsg.placeholders.hasOwnProperty(t.expression)?this._srcMsg.placeholders[t.expression]:t.expression)+", "+t.type+", "+n.join(" ")+"}"},t.prototype.visitPlaceholder=function(t,e){var r=this._mapper(t.name);return this._srcMsg.placeholders.hasOwnProperty(r)?this._srcMsg.placeholders[r]:this._srcMsg.placeholderToMessage.hasOwnProperty(r)?this._convertToText(this._srcMsg.placeholderToMessage[r]):(this._addError(t,'Unknown placeholder "'+t.name+'"'),"")},t.prototype.visitTagPlaceholder=function(t,e){var r=this,n=""+t.tag,o=Object.keys(t.attrs).map(function(e){return e+'="'+t.attrs[e]+'"'}).join(" ");return t.isVoid?"<"+n+" "+o+"/>":"<"+n+" "+o+">"+t.children.map(function(t){return t.visit(r)}).join("")+"</"+n+">"},t.prototype.visitIcuPlaceholder=function(t,e){return this._convertToText(this._srcMsg.placeholderToMessage[t.name])},t.prototype._convertToText=function(t){var r,n=this,o=this._digest(t),i=this._mapperFactory?this._mapperFactory(t):null;if(this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=t,this._i18nNodesByMsgId.hasOwnProperty(o))r=this._i18nNodesByMsgId[o],this._mapper=function(t){return i?i.toInternalName(t):t};else{if(this._missingTranslationStrategy===e.MissingTranslationStrategy.Error){s=this._locale?' for locale "'+this._locale+'"':"";this._addError(t.nodes[0],'Missing translation for message "'+o+'"'+s)}else if(this._console&&this._missingTranslationStrategy===e.MissingTranslationStrategy.Warning){var s=this._locale?' for locale "'+this._locale+'"':"";this._console.warn('Missing translation for message "'+o+'"'+s)}r=t.nodes,this._mapper=function(t){return t}}var a=r.map(function(t){return t.visit(n)}).join(""),u=this._contextStack.pop();return this._srcMsg=u.msg,this._mapper=u.mapper,a},t.prototype._addError=function(t,e){this._errors.push(new na(t.sourceSpan,e))},t}(),qa=function(){function t(t,r,n,o,i){if(void 0===o&&(o=e.MissingTranslationStrategy.Warning),this._htmlParser=t,r){var s=pe(n);this._translationBundle=Ba.load(r,"i18n",s,o,i)}}return t.prototype.parse=function(t,e,r,n){void 0===r&&(r=!1),void 0===n&&(n=cs);var o=this._htmlParser.parse(t,e,r,n);return this._translationBundle?o.errors.length?new Us(o.rootNodes,o.errors):At(o.rootNodes,this._translationBundle,n,[],{}):o},t}(),Ga=function(t,e,r){return void 0===e&&(e=null),void 0===r&&(r="src"),null==e?"@angular/"+t:"@angular/"+t+"/"+r+"/"+e}("core"),za=function(){function t(){}return t}();za.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleUrl:Ga,runtime:e.ANALYZE_FOR_ENTRY_COMPONENTS},za.ElementRef={name:"ElementRef",moduleUrl:Ga,runtime:e.ElementRef},za.NgModuleRef={name:"NgModuleRef",moduleUrl:Ga,runtime:e.NgModuleRef},za.ViewContainerRef={name:"ViewContainerRef",moduleUrl:Ga,runtime:e.ViewContainerRef},za.ChangeDetectorRef={name:"ChangeDetectorRef",moduleUrl:Ga,runtime:e.ChangeDetectorRef},za.QueryList={name:"QueryList",moduleUrl:Ga,runtime:e.QueryList},za.TemplateRef={name:"TemplateRef",moduleUrl:Ga,runtime:e.TemplateRef},za.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleUrl:Ga,runtime:e.ɵCodegenComponentFactoryResolver},za.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleUrl:Ga,runtime:e.ComponentFactoryResolver},za.ComponentFactory={name:"ComponentFactory",moduleUrl:Ga,runtime:e.ComponentFactory},za.ComponentRef={name:"ComponentRef",moduleUrl:Ga,runtime:e.ComponentRef},za.NgModuleFactory={name:"NgModuleFactory",moduleUrl:Ga,runtime:e.NgModuleFactory},za.NgModuleInjector={name:"ɵNgModuleInjector",moduleUrl:Ga,runtime:e.ɵNgModuleInjector},za.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleUrl:Ga,runtime:e.ɵregisterModuleFactory},za.Injector={name:"Injector",moduleUrl:Ga,runtime:e.Injector},za.ViewEncapsulation={name:"ViewEncapsulation",moduleUrl:Ga,runtime:e.ViewEncapsulation},za.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleUrl:Ga,runtime:e.ChangeDetectionStrategy},za.SecurityContext={name:"SecurityContext",moduleUrl:Ga,runtime:e.SecurityContext},za.LOCALE_ID={name:"LOCALE_ID",moduleUrl:Ga,runtime:e.LOCALE_ID},za.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleUrl:Ga,runtime:e.TRANSLATIONS_FORMAT},za.inlineInterpolate={name:"ɵinlineInterpolate",moduleUrl:Ga,runtime:e.ɵinlineInterpolate},za.interpolate={name:"ɵinterpolate",moduleUrl:Ga,runtime:e.ɵinterpolate},za.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleUrl:Ga,runtime:e.ɵEMPTY_ARRAY},za.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleUrl:Ga,runtime:e.ɵEMPTY_MAP},za.Renderer={name:"Renderer",moduleUrl:Ga,runtime:e.Renderer},za.viewDef={name:"ɵvid",moduleUrl:Ga,runtime:e.ɵvid},za.elementDef={name:"ɵeld",moduleUrl:Ga,runtime:e.ɵeld},za.anchorDef={name:"ɵand",moduleUrl:Ga,runtime:e.ɵand},za.textDef={name:"ɵted",moduleUrl:Ga,runtime:e.ɵted},za.directiveDef={name:"ɵdid",moduleUrl:Ga,runtime:e.ɵdid},za.providerDef={name:"ɵprd",moduleUrl:Ga,runtime:e.ɵprd},za.queryDef={name:"ɵqud",moduleUrl:Ga,runtime:e.ɵqud},za.pureArrayDef={name:"ɵpad",moduleUrl:Ga,runtime:e.ɵpad},za.pureObjectDef={name:"ɵpod",moduleUrl:Ga,runtime:e.ɵpod},za.purePipeDef={name:"ɵppd",moduleUrl:Ga,runtime:e.ɵppd},za.pipeDef={name:"ɵpid",moduleUrl:Ga,runtime:e.ɵpid},za.nodeValue={name:"ɵnov",moduleUrl:Ga,runtime:e.ɵnov},za.ngContentDef={name:"ɵncd",moduleUrl:Ga,runtime:e.ɵncd},za.unwrapValue={name:"ɵunv",moduleUrl:Ga,runtime:e.ɵunv},za.createRendererType2={name:"ɵcrt",moduleUrl:Ga,runtime:e.ɵcrt},za.RendererType2={name:"RendererType2",moduleUrl:Ga,runtime:null},za.ViewDefinition={name:"ɵViewDefinition",moduleUrl:Ga,runtime:null},za.createComponentFactory={name:"ɵccf",moduleUrl:Ga,runtime:e.ɵccf};var $a=["zero","one","two","few","many","other"],Wa=function(){function t(t,e,r){this.nodes=t,this.expanded=e,this.errors=r}return t}(),Ka=function(t){function e(e,r){return t.call(this,e,r)||this}return Jn(e,t),e}(xs),Qa=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t,e){return new Ms(t.name,t.attrs,lt(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t,e){return t},t.prototype.visitText=function(t,e){return t},t.prototype.visitComment=function(t,e){return t},t.prototype.visitExpansion=function(t,e){return this.isExpanded=!0,"plural"==t.type?ve(t,this.errors):ge(t,this.errors)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Should not be reached")},t}(),Ja=function(t){function e(e,r){return t.call(this,r,e)||this}return Jn(e,t),e}(xs),Xa=function(){function t(t){var e=this;this.component=t,this.errors=[],this.viewQueries=Ee(t),this.viewProviders=new Map,t.viewProviders.forEach(function(t){null==e.viewProviders.get(R(t.token))&&e.viewProviders.set(R(t.token),!0)})}return t}(),Za=function(){function t(t,e,r,n,o,i,s,a,u){var c=this;this.viewContext=t,this._parent=e,this._isViewRoot=r,this._directiveAsts=n,this._sourceSpan=u,this._transformedProviders=new Map,this._seenProviders=new Map,this._hasViewContainer=!1,this._queriedTokens=new Map,this._attrs={},o.forEach(function(t){return c._attrs[t.name]=t.value});var l=n.map(function(t){return t.directive});if(this._allProviders=we(l,u,t.errors),this._contentQueries=Se(a,l),Array.from(this._allProviders.values()).forEach(function(t){c._addQueryReadsTo(t.token,t.token,c._queriedTokens)}),s){var p=me(za.TemplateRef);this._addQueryReadsTo(p,p,this._queriedTokens)}i.forEach(function(t){var e=t.value||me(za.ElementRef);c._addQueryReadsTo({value:t.name},e,c._queriedTokens)}),this._queriedTokens.get(he(za.ViewContainerRef))&&(this._hasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){(t.eager||c._queriedTokens.get(R(t.token)))&&c._getOrCreateLocalProvider(t.providerType,t.token,!0)})}return t.prototype.afterElement=function(){var t=this;Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.providerType,e.token,!1)})},Object.defineProperty(t.prototype,"transformProviders",{get:function(){return Array.from(this._transformedProviders.values())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedDirectiveAsts",{get:function(){var t=this.transformProviders.map(function(t){return t.token.identifier}),e=this._directiveAsts.slice();return e.sort(function(e,r){return t.indexOf(e.directive.type)-t.indexOf(r.directive.type)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryMatches",{get:function(){var t=[];return this._queriedTokens.forEach(function(e){t.push.apply(t,e)}),t},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(t,e,r){this._getQueriesFor(t).forEach(function(t){var n=t.meta.read||e,o=R(n),i=r.get(o);i||(i=[],r.set(o,i)),i.push({queryId:t.queryId,value:n})})},t.prototype._getQueriesFor=function(t){for(var e,r=[],n=this,o=0;null!==n;)(e=n._contentQueries.get(R(t)))&&r.push.apply(r,e.filter(function(t){return t.meta.descendants||o<=1})),n._directiveAsts.length>0&&o++,n=n._parent;return(e=this.viewContext.viewQueries.get(R(t)))&&r.push.apply(r,e),r},t.prototype._getOrCreateLocalProvider=function(t,e,r){var n=this,o=this._allProviders.get(R(e));if(!o||(t===lo.Directive||t===lo.PublicService)&&o.providerType===lo.PrivateService||(t===lo.PrivateService||t===lo.PublicService)&&o.providerType===lo.Builtin)return null;var i=this._transformedProviders.get(R(e));if(i)return i;if(null!=this._seenProviders.get(R(e)))return this.viewContext.errors.push(new Ja("Cannot instantiate cyclic dependency! "+M(e),this._sourceSpan)),null;this._seenProviders.set(R(e),!0);var s=o.providers.map(function(t){var e=t.useValue,i=t.useExisting,s=void 0;if(null!=t.useExisting){var a=n._getDependency(o.providerType,{token:t.useExisting},r);null!=a.token?i=a.token:(i=null,e=a.value)}else if(t.useFactory)s=(u=t.deps||t.useFactory.diDeps).map(function(t){return n._getDependency(o.providerType,t,r)});else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return n._getDependency(o.providerType,t,r)})}return _e(t,{useExisting:i,useValue:e,deps:s})});return i=be(o,{eager:r,providers:s}),this._transformedProviders.set(R(e),i),i},t.prototype._getLocalDependency=function(t,e,r){if(void 0===r&&(r=!1),e.isAttribute){var n=this._attrs[e.token.value];return{isValue:!0,value:null==n?null:n}}if(null!=e.token){if(t===lo.Directive||t===lo.Component){if(R(e.token)===he(za.Renderer)||R(e.token)===he(za.ElementRef)||R(e.token)===he(za.ChangeDetectorRef)||R(e.token)===he(za.TemplateRef))return e;R(e.token)===he(za.ViewContainerRef)&&(this._hasViewContainer=!0)}if(R(e.token)===he(za.Injector))return e;if(null!=this._getOrCreateLocalProvider(t,e.token,r))return e}return null},t.prototype._getDependency=function(t,e,r){void 0===r&&(r=!1);var n=this,o=r,i=null;if(e.isSkipSelf||(i=this._getLocalDependency(t,e,r)),e.isSelf)!i&&e.isOptional&&(i={isValue:!0,value:null});else{for(;!i&&n._parent;){var s=n;n=n._parent,s._isViewRoot&&(o=!1),i=n._getLocalDependency(lo.PublicService,e,o)}i||(i=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===R(e.token)||null!=this.viewContext.viewProviders.get(R(e.token))?e:e.isOptional?i={isValue:!0,value:null}:null)}return i||this.viewContext.errors.push(new Ja("No provider for "+M(e.token),this._sourceSpan)),i},t}(),Ya=function(){function t(t,e,r){var n=this;this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,t.transitiveModule.modules.forEach(function(t){Ce([{token:{identifier:t},useClass:t}],lo.PublicService,!0,r,n._errors,n._allProviders)}),Ce(t.transitiveModule.providers.map(function(t){return t.provider}).concat(e),lo.PublicService,!1,r,this._errors,this._allProviders)}return t.prototype.parse=function(){var t=this;if(Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.token,e.eager)}),this._errors.length>0){var e=this._errors.join("\n");throw new Error("Provider parse errors:\n"+e)}return Array.from(this._transformedProviders.values())},t.prototype._getOrCreateLocalProvider=function(t,e){var r=this,n=this._allProviders.get(R(t));if(!n)return null;var o=this._transformedProviders.get(R(t));if(o)return o;if(null!=this._seenProviders.get(R(t)))return this._errors.push(new Ja("Cannot instantiate cyclic dependency! "+M(t),n.sourceSpan)),null;this._seenProviders.set(R(t),!0);var i=n.providers.map(function(t){var o=t.useValue,i=t.useExisting,s=void 0;if(null!=t.useExisting){var a=r._getDependency({token:t.useExisting},e,n.sourceSpan);null!=a.token?i=a.token:(i=null,o=a.value)}else if(t.useFactory)s=(u=t.deps||t.useFactory.diDeps).map(function(t){return r._getDependency(t,e,n.sourceSpan)});else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return r._getDependency(t,e,n.sourceSpan)})}return _e(t,{useExisting:i,useValue:o,deps:s})});return o=be(n,{eager:e,providers:i}),this._transformedProviders.set(R(t),o),o},t.prototype._getDependency=function(t,e,r){void 0===e&&(e=!1);var n=!1;t.isSkipSelf||null==t.token||(R(t.token)===he(za.Injector)||R(t.token)===he(za.ComponentFactoryResolver)?n=!0:null!=this._getOrCreateLocalProvider(t.token,e)&&(n=!0));var o=t;return t.isSelf&&!n&&(t.isOptional?o={isValue:!0,value:null}:this._errors.push(new Ja("No provider for "+M(t.token),r))),o},t}(),tu=function(){function t(){}return t.prototype.hasProperty=function(t,e,r){},t.prototype.hasElement=function(t,e){},t.prototype.securityContext=function(t,e,r){},t.prototype.allKnownElementNames=function(){},t.prototype.getMappedPropName=function(t){},t.prototype.getDefaultComponentElementName=function(){},t.prototype.validateProperty=function(t){},t.prototype.validateAttribute=function(t){},t.prototype.normalizeAnimationStyleProperty=function(t){},t.prototype.normalizeAnimationStyleValue=function(t,e,r){},t}(),eu=function(){function t(t,e){this.style=t,this.styleUrls=e}return t}(),ru=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,nu=/\/\*.+?\*\//g,ou=/^([^:/?#]+):/,iu={};iu.DEFAULT=0,iu.LITERAL_ATTR=1,iu.ANIMATION=2,iu[iu.DEFAULT]="DEFAULT",iu[iu.LITERAL_ATTR]="LITERAL_ATTR",iu[iu.ANIMATION]="ANIMATION";var su=function(){function t(t,e,r,n){this.name=t,this.expression=e,this.type=r,this.sourceSpan=n}return Object.defineProperty(t.prototype,"isLiteral",{get:function(){return this.type===iu.LITERAL_ATTR},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===iu.ANIMATION},enumerable:!0,configurable:!0}),t}(),au=function(){function t(t,e,r,n,o){var i=this;this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=r,this._targetErrors=o,this.pipesByName=new Map,this._usedPipes=new Map,n.forEach(function(t){return i.pipesByName.set(t.name,t)})}return t.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},t.prototype.createDirectiveHostPropertyAsts=function(t,e,r){var n=this;if(t.hostProperties){var o=[];return Object.keys(t.hostProperties).forEach(function(e){var i=t.hostProperties[e];"string"==typeof i?n.parsePropertyBinding(e,i,!0,r,[],o):n._reportError('Value of the host property binding "'+e+'" needs to be a string representing an expression but got "'+i+'" ('+typeof i+")",r)}),o.map(function(t){return n.createElementPropertyAst(e,t)})}return null},t.prototype.createDirectiveHostEventAsts=function(t,e){var r=this;if(t.hostListeners){var n=[];return Object.keys(t.hostListeners).forEach(function(o){var i=t.hostListeners[o];"string"==typeof i?r.parseEvent(o,i,e,[],n):r._reportError('Value of the host listener "'+o+'" needs to be a string representing an expression but got "'+i+'" ('+typeof i+")",e)}),n}return null},t.prototype.parseInterpolation=function(t,e){var r=e.start.toString();try{var n=this._exprParser.parseInterpolation(t,r,this._interpolationConfig);return n&&this._reportExpressionParserErrors(n.errors,e),this._checkPipes(n,e),n}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype.parseInlineTemplateBinding=function(t,e,r,n,o,i){for(var s=this._parseTemplateBindings(t,e,r),a=0;a<s.length;a++){var u=s[a];u.keyIsVar?i.push(new oo(u.key,u.name,r)):u.expression?this._parsePropertyAst(u.key,u.expression,r,n,o):(n.push([u.key,""]),this.parseLiteralAttr(u.key,null,r,n,o))}},t.prototype._parseTemplateBindings=function(t,e,r){var n=this,o=r.start.toString();try{var i=this._exprParser.parseTemplateBindings(t,e,o);return this._reportExpressionParserErrors(i.errors,r),i.templateBindings.forEach(function(t){t.expression&&n._checkPipes(t.expression,r)}),i.warnings.forEach(function(t){n._reportError(t,r,Ss.WARNING)}),i.templateBindings}catch(t){return this._reportError(""+t,r),[]}},t.prototype.parseLiteralAttr=function(t,e,r,n,o){Ae(t)?(t=t.substring(1),e&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',r,Ss.ERROR),this._parseAnimation(t,e,r,n,o)):o.push(new su(t,this._exprParser.wrapLiteralPrimitive(e,""),iu.LITERAL_ATTR,r))},t.prototype.parsePropertyBinding=function(t,e,r,n,o,i){var s=!1;t.startsWith("animate-")?(s=!0,t=t.substring("animate-".length)):Ae(t)&&(s=!0,t=t.substring(1)),s?this._parseAnimation(t,e,n,o,i):this._parsePropertyAst(t,this._parseBinding(e,r,n),n,o,i)},t.prototype.parsePropertyInterpolation=function(t,e,r,n,o){var i=this.parseInterpolation(e,r);return!!i&&(this._parsePropertyAst(t,i,r,n,o),!0)},t.prototype._parsePropertyAst=function(t,e,r,n,o){n.push([t,e.source]),o.push(new su(t,e,iu.DEFAULT,r))},t.prototype._parseAnimation=function(t,e,r,n,o){var i=this._parseBinding(e||"null",!1,r);n.push([t,i.source]),o.push(new su(t,i,iu.ANIMATION,r))},t.prototype._parseBinding=function(t,e,r){var n=r.start.toString();try{var o=e?this._exprParser.parseSimpleBinding(t,n,this._interpolationConfig):this._exprParser.parseBinding(t,n,this._interpolationConfig);return o&&this._reportExpressionParserErrors(o.errors,r),this._checkPipes(o,r),o}catch(t){return this._reportError(""+t,r),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype.createElementPropertyAst=function(t,r){if(r.isAnimation)return new eo(r.name,ho.Animation,e.SecurityContext.NONE,r.expression,null,r.sourceSpan);var n=null,o=void 0,i=null,s=r.name.split("."),a=void 0;if(s.length>1)if("attr"==s[0]){i=s[1],this._validatePropertyOrAttributeName(i,r.sourceSpan,!0),a=Oe(this._schemaRegistry,t,i,!0);var c=i.indexOf(":");c>-1&&(i=u(i.substring(0,c),i.substring(c+1))),o=ho.Attribute}else"class"==s[0]?(i=s[1],o=ho.Class,a=[e.SecurityContext.NONE]):"style"==s[0]&&(n=s.length>2?s[2]:null,i=s[1],o=ho.Style,a=[e.SecurityContext.STYLE]);return null===i&&(i=this._schemaRegistry.getMappedPropName(r.name),a=Oe(this._schemaRegistry,t,i,!1),o=ho.Property,this._validatePropertyOrAttributeName(i,r.sourceSpan,!1)),new eo(i,o,a[0],r.expression,n,r.sourceSpan)},t.prototype.parseEvent=function(t,e,r,n,o){Ae(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,r,o)):this._parseEvent(t,e,r,n,o)},t.prototype._parseAnimationEvent=function(t,e,r,n){var o=h(t,[t,""]),i=o[0],s=o[1].toLowerCase();if(s)switch(s){case"start":case"done":var a=this._parseAction(e,r);n.push(new ro(i,null,s,a,r));break;default:this._reportError('The provided animation output phase value "'+s+'" for "@'+i+'" is not supported (use start or done)',r)}else this._reportError("The animation trigger output event (@"+i+") is missing its phase value name (start or done are currently supported)",r)},t.prototype._parseEvent=function(t,e,r,n,o){var i=p(t,[null,t]),s=i[0],a=i[1],u=this._parseAction(e,r);n.push([t,u.source]),o.push(new ro(a,s,null,u,r))},t.prototype._parseAction=function(t,e){var r=e.start.toString();try{var n=this._exprParser.parseAction(t,r,this._interpolationConfig);return n&&this._reportExpressionParserErrors(n.errors,e),!n||n.ast instanceof oi?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",r)):(this._checkPipes(n,e),n)}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype._reportError=function(t,e,r){void 0===r&&(r=Ss.ERROR),this._targetErrors.push(new xs(e,t,r))},t.prototype._reportExpressionParserErrors=function(t,e){for(var r=0,n=t;r<n.length;r++){var o=n[r];this._reportError(o.message,e)}},t.prototype._checkPipes=function(t,e){var r=this;if(t){var n=new uu;t.visit(n),n.pipes.forEach(function(t,n){var o=r.pipesByName.get(n);o?r._usedPipes.set(n,o):r._reportError("The pipe '"+n+"' could not be found",new Es(e.start.moveBy(t.span.start),e.start.moveBy(t.span.end)))})}},t.prototype._validatePropertyOrAttributeName=function(t,e,r){var n=r?this._schemaRegistry.validateAttribute(t):this._schemaRegistry.validateProperty(t);n.error&&this._reportError(n.msg,e,Ss.ERROR)},t}(),uu=function(t){function e(){var e=t.apply(this,arguments)||this;return e.pipes=new Map,e}return Jn(e,t),e.prototype.visitPipe=function(t,e){return this.pipes.set(t.name,t),t.exp.visit(this),this.visitAll(t.args,e),null},e}(xi),cu="select",lu="link",pu="rel",hu="href",fu="stylesheet",du="style",mu="script",yu="ngNonBindable",vu="ngProjectAs",gu={};gu.NG_CONTENT=0,gu.STYLE=1,gu.STYLESHEET=2,gu.SCRIPT=3,gu.OTHER=4,gu[gu.NG_CONTENT]="NG_CONTENT",gu[gu.STYLE]="STYLE",gu[gu.STYLESHEET]="STYLESHEET",gu[gu.SCRIPT]="SCRIPT",gu[gu.OTHER]="OTHER";var _u=function(){function t(t,e,r,n,o){this.type=t,this.selectAttr=e,this.hrefAttr=r,this.nonBindable=n,this.projectAs=o}return t}(),bu=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,wu="template",Cu="class",Eu=Co.parse("*")[0],Su="The <template> element is deprecated. Use <ng-template> instead",xu={},Pu=new e.InjectionToken("TemplateTransforms"),Tu=function(t){function e(e,r,n){return t.call(this,r,e,n)||this}return Jn(e,t),e}(xs),Au=function(){function t(t,e,r){this.templateAst=t,this.usedPipes=e,this.errors=r}return t}(),Ou=function(){function t(t,e,r,n,o,i){this._config=t,this._exprParser=e,this._schemaRegistry=r,this._htmlParser=n,this._console=o,this.transforms=i}return t.prototype.parse=function(t,e,r,n,o,i){var s=this.tryParse(t,e,r,n,o,i),a=s.errors.filter(function(t){return t.level===Ss.WARNING}).filter(ke(["The template attribute is deprecated. Use an ng-template element instead.",Su])),u=s.errors.filter(function(t){return t.level===Ss.ERROR});if(a.length>0&&this._console.warn("Template parse warnings:\n"+a.join("\n")),u.length>0)throw v("Template parse errors:\n"+u.join("\n"));return{template:s.templateAst,pipes:s.usedPipes}},t.prototype.tryParse=function(t,e,r,n,o,i){return this.tryParseHtml(this.expandHtml(this._htmlParser.parse(e,i,!0,this.getInterpolationConfig(t))),t,r,n,o)},t.prototype.tryParseHtml=function(t,e,n,o,i){var s,a=t.errors,u=[];if(t.rootNodes.length>0){var c=De(n),l=De(o),p=new Xa(e),h=void 0;e.template&&e.template.interpolation&&(h={start:e.template.interpolation[0],end:e.template.interpolation[1]});var f=new au(this._exprParser,h,this._schemaRegistry,l,a),d=new Mu(this._config,p,c,f,this._schemaRegistry,i,a);s=lt(d,t.rootNodes,Iu),a.push.apply(a,p.errors),u.push.apply(u,f.getUsedPipes())}else s=[];return this._assertNoReferenceDuplicationOnTemplate(s,a),a.length>0?new Au(s,u,a):(this.transforms&&this.transforms.forEach(function(t){s=r(t,s)}),new Au(s,u,a))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var r=t.errors;if(0==r.length||e){var n=ye(t.rootNodes);r.push.apply(r,n.errors),t=new Us(n.nodes,r)}return t},t.prototype.getInterpolationConfig=function(t){if(t.template)return us.fromArray(t.template.interpolation)},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,e){var r=[];t.filter(function(t){return!!t.references}).forEach(function(t){return t.references.forEach(function(t){var n=t.name;if(r.indexOf(n)<0)r.push(n);else{var o=new Tu('Reference "#'+n+'" is defined several times',t.sourceSpan,Ss.ERROR);e.push(o)}})})},t}();Ou.decorators=[{type:G}],Ou.ctorParameters=function(){return[{type:Yo},{type:gs},{type:tu},{type:qa},{type:e.ɵConsole},{type:Array,decorators:[{type:e.Optional},{type:e.Inject,args:[Pu]}]}]};var Mu=function(){function t(t,e,r,n,o,i,s){var a=this;this.config=t,this.providerViewContext=e,this._bindingParser=n,this._schemaRegistry=o,this._schemas=i,this._targetErrors=s,this.selectorMatcher=new Eo,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=e.component.viewQueries.length+1,r.forEach(function(t,e){var r=Co.parse(t.selector);a.selectorMatcher.addSelectables(r,t),a.directivesIndex.set(t,e)})}return t.prototype.visitExpansion=function(t,e){return null},t.prototype.visitExpansionCase=function(t,e){return null},t.prototype.visitText=function(t,e){var r=e.findNgContentIndex(Eu),n=this._bindingParser.parseInterpolation(t.value,t.sourceSpan);return n?new Yn(n,r,t.sourceSpan):new Zn(t.value,r,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return new to(t.name,t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitElement=function(t,e){var r=this,n=this.contentQueryStartId,o=t.name,i=Me(t);if(i.type===gu.SCRIPT||i.type===gu.STYLE)return null;if(i.type===gu.STYLESHEET&&Pe(i.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=!1,m=[],y=Ve(t,this.config.enableLegacyTemplate,function(t,e){return r._reportError(t,e,Ss.WARNING)});t.attrs.forEach(function(t){var e,n,o=r._parseAttr(y,t,s,a,l,u,c),i=r._normalizeAttributeName(t.name);r.config.enableLegacyTemplate&&"template"==i?(r._reportError("The template attribute is deprecated. Use an ng-template element instead.",t.sourceSpan,Ss.WARNING),e=t.value):i.startsWith("*")&&(e=t.value,n=i.substring("*".length)+":");var v=null!=e;v&&(d&&r._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),d=!0,r._bindingParser.parseInlineTemplateBinding(n,e,t.sourceSpan,h,p,f)),o||v||(m.push(r.visitAttribute(t,null)),s.push([t.name,t.value]))});var v=Ie(o,s),g=this._parseDirectives(this.selectorMatcher,v),_=g.directives,b=g.matchElement,w=[],C=new Set,E=this._createDirectiveAsts(y,t.name,_,a,u,t.sourceSpan,w,C),S=this._createElementPropertyAsts(t.name,a,C),x=e.isTemplateElement||d,P=new Za(this.providerViewContext,e.providerContext,x,E,m,w,y,n,t.sourceSpan),T=lt(i.nonBindable?ju:this,t.children,Nu.create(y,E,y?e.providerContext:P));P.afterElement();var A,O=null!=i.projectAs?Co.parse(i.projectAs)[0]:v,M=e.findNgContentIndex(O);if(i.type===gu.NG_CONTENT)t.children&&!t.children.every(je)&&this._reportError("<ng-content> element cannot have content.",t.sourceSpan),A=new po(this.ngContentCount++,d?null:M,t.sourceSpan);else if(y)this._assertAllEventsPublishedByDirectives(E,l),this._assertNoComponentsNorElementBindingsOnTemplate(E,S,t.sourceSpan),A=new so(m,l,w,c,P.transformedDirectiveAsts,P.transformProviders,P.transformedHasViewContainer,P.queryMatches,T,d?null:M,t.sourceSpan);else{this._assertElementExists(b,t),this._assertOnlyOneComponent(E,t.sourceSpan);var R=d?null:e.findNgContentIndex(O);A=new io(o,m,S,l,w,P.transformedDirectiveAsts,P.transformProviders,P.transformedHasViewContainer,P.queryMatches,T,d?null:R,t.sourceSpan,t.endSourceSpan||null)}if(d){var k=this.contentQueryStartId,N=Ie(wu,h),I=this._parseDirectives(this.selectorMatcher,N).directives,j=new Set,D=this._createDirectiveAsts(!0,t.name,I,p,[],t.sourceSpan,[],j),L=this._createElementPropertyAsts(t.name,p,j);this._assertNoComponentsNorElementBindingsOnTemplate(D,L,t.sourceSpan);var V=new Za(this.providerViewContext,e.providerContext,e.isTemplateElement,D,[],[],!0,k,t.sourceSpan);V.afterElement(),A=new so([],[],[],f,V.transformedDirectiveAsts,V.transformProviders,V.transformedHasViewContainer,V.queryMatches,[A],M,t.sourceSpan)}return A},t.prototype._parseAttr=function(t,e,r,n,o,i,s){var a=this._normalizeAttributeName(e.name),u=e.value,c=e.sourceSpan,l=a.match(bu),p=!1;if(null!==l)if(p=!0,null!=l[1])this._bindingParser.parsePropertyBinding(l[7],u,!1,c,r,n);else if(l[2])if(t){h=l[7];this._parseVariable(h,u,c,s)}else this._reportError('"let-" is only supported on template elements.',c);else if(l[3]){var h=l[7];this._parseReference(h,u,c,i)}else l[4]?this._bindingParser.parseEvent(l[7],u,c,r,o):l[5]?(this._bindingParser.parsePropertyBinding(l[7],u,!1,c,r,n),this._parseAssignmentEvent(l[7],u,c,r,o)):l[6]?this._bindingParser.parseLiteralAttr(a,u,c,r,n):l[8]?(this._bindingParser.parsePropertyBinding(l[8],u,!1,c,r,n),this._parseAssignmentEvent(l[8],u,c,r,o)):l[9]?this._bindingParser.parsePropertyBinding(l[9],u,!1,c,r,n):l[10]&&this._bindingParser.parseEvent(l[10],u,c,r,o);else p=this._bindingParser.parsePropertyInterpolation(a,u,c,r,n);return p||this._bindingParser.parseLiteralAttr(a,u,c,r,n),p},t.prototype._normalizeAttributeName=function(t){return/^data-/i.test(t)?t.substring(5):t},t.prototype._parseVariable=function(t,e,r,n){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',r),n.push(new oo(t,e,r))},t.prototype._parseReference=function(t,e,r,n){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',r),n.push(new ku(t,e,r))},t.prototype._parseAssignmentEvent=function(t,e,r,n,o){this._bindingParser.parseEvent(t+"Change",e+"=$event",r,n,o)},t.prototype._parseDirectives=function(t,e){var r=this,n=new Array(this.directivesIndex.size),o=!1;return t.match(e,function(t,e){n[r.directivesIndex.get(e)]=e,o=o||t.hasElementSelector()}),{directives:n.filter(function(t){return!!t}),matchElement:o}},t.prototype._createDirectiveAsts=function(t,e,r,n,o,i,s,a){var u=this,c=new Set,l=null,p=r.map(function(t){var r=new Es(i.start,i.end,"Directive "+E(t.type));t.isComponent&&(l=t);var p=[],h=u._bindingParser.createDirectiveHostPropertyAsts(t,e,r);h=u._checkPropertiesInSchema(e,h);var f=u._bindingParser.createDirectiveHostEventAsts(t,r);u._createDirectivePropertyAsts(t.inputs,n,p,a),o.forEach(function(e){(0===e.value.length&&t.isComponent||t.exportAs==e.value)&&(s.push(new no(e.name,de(t.type),e.sourceSpan)),c.add(e.name))});var d=u.contentQueryStartId;return u.contentQueryStartId+=t.queries.length,new uo(t,p,h,f,d,r)});return o.forEach(function(e){if(e.value.length>0)c.has(e.name)||u._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!l){var r=null;t&&(r=me(za.TemplateRef)),s.push(new no(e.name,r,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,r,n){if(t){var o=new Map;e.forEach(function(t){var e=o.get(t.name);e&&!e.isLiteral||o.set(t.name,t)}),Object.keys(t).forEach(function(e){var i=t[e],s=o.get(i);s&&(n.add(s.name),Le(s.expression)||r.push(new ao(e,s.name,s.expression,s.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(t,e,r){var n=this,o=[];return e.forEach(function(e){e.isLiteral||r.has(e.name)||o.push(n._bindingParser.createElementPropertyAst(t,e))}),this._checkPropertiesInSchema(t,o)},t.prototype._findComponentDirectives=function(t){return t.filter(function(t){return t.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(t){return this._findComponentDirectives(t).map(function(t){return E(t.directive.type)})},t.prototype._assertOnlyOneComponent=function(t,e){var r=this._findComponentDirectiveNames(t);r.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: "+r.join(","),e)},t.prototype._assertElementExists=function(t,e){var r=e.name.replace(/^:xhtml:/,"");if(!t&&!this._schemaRegistry.hasElement(r,this._schemas)){var n="'"+r+"' is not a known element:\n";n+="1. If '"+r+"' is an Angular component, then verify that it is part of this module.\n",r.indexOf("-")>-1?n+="2. If '"+r+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.":n+="2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",this._reportError(n,e.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,r){var n=this,o=this._findComponentDirectiveNames(t);o.length>0&&this._reportError("Components on an embedded template: "+o.join(","),r),e.forEach(function(t){n._reportError("Property binding "+t.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".',r)})},t.prototype._assertAllEventsPublishedByDirectives=function(t,e){var r=this,n=new Set;t.forEach(function(t){Object.keys(t.directive.outputs).forEach(function(e){var r=t.directive.outputs[e];n.add(r)})}),e.forEach(function(t){null==t.target&&n.has(t.name)||r._reportError("Event binding "+t.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".',t.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(t,e){var r=this;return e.filter(function(e){if(e.type===ho.Property&&!r._schemaRegistry.hasProperty(t,e.name,r._schemas)){var n="Can't bind to '"+e.name+"' since it isn't a known property of '"+t+"'.";t.startsWith("ng-")?n+="\n1. If '"+e.name+"' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.":t.indexOf("-")>-1&&(n+="\n1. If '"+t+"' is an Angular component and it has '"+e.name+"' input, then verify that it is part of this module.\n2. If '"+t+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component."),r._reportError(n,e.sourceSpan)}return!Le(e.value)})},t.prototype._reportError=function(t,e,r){void 0===r&&(r=Ss.ERROR),this._targetErrors.push(new xs(e,t,r))},t}(),Ru=function(){function t(){}return t.prototype.visitElement=function(t,e){var r=Me(t);if(r.type===gu.SCRIPT||r.type===gu.STYLE||r.type===gu.STYLESHEET)return null;var n=t.attrs.map(function(t){return[t.name,t.value]}),o=Ie(t.name,n),i=e.findNgContentIndex(o),s=lt(this,t.children,Iu);return new io(t.name,lt(this,t.attrs),[],[],[],[],[],!1,[],s,i,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return new to(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var r=e.findNgContentIndex(Eu);return new Zn(t.value,r,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),ku=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t}(),Nu=function(){function t(t,e,r,n){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=r,this.providerContext=n}return t.create=function(e,r,n){var o=new Eo,i=null,s=r.find(function(t){return t.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u<a.length;u++)"*"===a[u]?i=u:o.addSelectables(Co.parse(a[u]),u);return new t(e,o,i,n)},t.prototype.findNgContentIndex=function(t){var e=[];return this._ngContentIndexMatcher.match(t,function(t,r){e.push(r)}),e.sort(),null!=this._wildcardNgContentIndex&&e.push(this._wildcardNgContentIndex),e.length>0?e[0]:null},t}(),Iu=new Nu(!0,new Eo,null,null),ju=new Ru,Du=function(){function t(){}return t.prototype.get=function(t){return null},t}(),Lu={provide:e.PACKAGE_ROOT_URL,useValue:"/"},Vu=function(){function t(t){void 0===t&&(t=null),this._packagePrefix=t}return t.prototype.resolve=function(t,e){var r=e;null!=t&&t.length>0&&(r=$e(t,r));var n=qe(r),o=this._packagePrefix;if(null!=o&&null!=n&&"package"==n[Uu.Scheme]){var i=n[Uu.Path];return o=o.replace(/\/+$/,""),i=i.replace(/^\/+/,""),o+"/"+i}return r},t}();Vu.decorators=[{type:G}],Vu.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.PACKAGE_ROOT_URL]}]}]};var Fu=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),Uu={};Uu.Scheme=1,Uu.UserInfo=2,Uu.Domain=3,Uu.Port=4,Uu.Path=5,Uu.QueryData=6,Uu.Fragment=7,Uu[Uu.Scheme]="Scheme",Uu[Uu.UserInfo]="UserInfo",Uu[Uu.Domain]="Domain",Uu[Uu.Port]="Port",Uu[Uu.Path]="Path",Uu[Uu.QueryData]="QueryData",Uu[Uu.Fragment]="Fragment";var Bu=function(){function t(t,e,r,n){this._resourceLoader=t,this._urlResolver=e,this._htmlParser=r,this._config=n,this._resourceLoaderCache=new Map}return t.prototype.clearCache=function(){this._resourceLoaderCache.clear()},t.prototype.clearCacheFor=function(t){var e=this;if(t.isComponent){var r=t.template;this._resourceLoaderCache.delete(r.templateUrl),r.externalStylesheets.forEach(function(t){e._resourceLoaderCache.delete(t.moduleUrl)})}},t.prototype._fetch=function(t){var e=this._resourceLoaderCache.get(t);return e||(e=this._resourceLoader.get(t),this._resourceLoaderCache.set(t,e)),e},t.prototype.normalizeTemplate=function(t){var r=this,n=null,o=void 0;if(m(t.template)){if(m(t.templateUrl))throw v("'"+e.ɵstringify(t.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof t.template)throw v("The template specified for component "+e.ɵstringify(t.componentType)+" is not a string");n=this.normalizeTemplateSync(t),o=Promise.resolve(n)}else{if(!m(t.templateUrl))throw v("No template specified for component "+e.ɵstringify(t.componentType));if("string"!=typeof t.templateUrl)throw v("The templateUrl specified for component "+e.ɵstringify(t.componentType)+" is not a string");o=this.normalizeTemplateAsync(t)}return n&&0===n.styleUrls.length?new Oo(n):new Oo(null,o.then(function(t){return r.normalizeExternalStylesheets(t)}))},t.prototype.normalizeTemplateSync=function(t){return this.normalizeLoadedTemplate(t,t.template,t.moduleUrl)},t.prototype.normalizeTemplateAsync=function(t){var e=this,r=this._urlResolver.resolve(t.moduleUrl,t.templateUrl);return this._fetch(r).then(function(n){return e.normalizeLoadedTemplate(t,n,r)})},t.prototype.normalizeLoadedTemplate=function(t,r,n){var o=!!t.template,i=us.fromArray(t.interpolation),s=this._htmlParser.parse(r,D({reference:t.ngModuleType},{type:{reference:t.componentType}},{isInline:o,templateUrl:n}),!0,i);if(s.errors.length>0)throw v("Template parse errors:\n"+s.errors.join("\n"));var a=this.normalizeStylesheet(new $o({styles:t.styles,styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})),u=new Hu;lt(u,s.rootNodes);var c=this.normalizeStylesheet(new $o({styles:u.styles,styleUrls:u.styleUrls,moduleUrl:n})),l=t.encapsulation;null==l&&(l=this._config.defaultEncapsulation);var p=a.styles.concat(c.styles),h=a.styleUrls.concat(c.styleUrls);return l===e.ViewEncapsulation.Emulated&&0===p.length&&0===h.length&&(l=e.ViewEncapsulation.None),new Wo({encapsulation:l,template:r,templateUrl:n,styles:p,styleUrls:h,ngContentSelectors:u.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:o,externalStylesheets:[]})},t.prototype.normalizeExternalStylesheets=function(t){return this._loadMissingExternalStylesheets(t.styleUrls).then(function(e){return new Wo({encapsulation:t.encapsulation,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,externalStylesheets:e,ngContentSelectors:t.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:t.isInline})})},t.prototype._loadMissingExternalStylesheets=function(t,e){var r=this;return void 0===e&&(e=new Map),Promise.all(t.filter(function(t){return!e.has(t)}).map(function(t){return r._fetch(t).then(function(n){var o=r.normalizeStylesheet(new $o({styles:[n],moduleUrl:t}));return e.set(t,o),r._loadMissingExternalStylesheets(o.styleUrls,e)})})).then(function(t){return Array.from(e.values())})},t.prototype.normalizeStylesheet=function(t){var e=this,r=t.moduleUrl,n=t.styleUrls.filter(Pe).map(function(t){return e._urlResolver.resolve(r,t)}),o=t.styles.map(function(t){var o=Te(e._urlResolver,r,t);return n.push.apply(n,o.styleUrls),o.style});return new $o({styles:o,styleUrls:n,moduleUrl:r})},t}();Bu.decorators=[{type:G}],Bu.ctorParameters=function(){return[{type:Du},{type:Vu},{type:Ua},{type:Yo}]};var Hu=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t,e){var r=Me(t);switch(r.type){case gu.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(r.selectAttr);break;case gu.STYLE:var n="";t.children.forEach(function(t){t instanceof Ps&&(n+=t.value)}),this.styles.push(n);break;case gu.STYLESHEET:this.styleUrls.push(r.hrefAttr)}return r.nonBindable&&this.ngNonBindableStackCount++,lt(this,t.children),r.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t,e){lt(this,t.cases)},t.prototype.visitExpansionCase=function(t,e){lt(this,t.expression)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return null},t.prototype.visitText=function(t,e){return null},t}(),qu=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Gu=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isDirective=function(t){var r=this._reflector.annotations(e.resolveForwardRef(t));return r&&r.some(We)},t.prototype.resolve=function(t,r){void 0===r&&(r=!0);var n=this._reflector.annotations(e.resolveForwardRef(t));if(n){var o=Ke(n,We);if(o){var i=this._reflector.propMetadata(t);return this._mergeWithPropertyMetadata(o,i,t)}}if(r)throw new Error("No Directive annotation found on "+e.ɵstringify(t));return null},t.prototype._mergeWithPropertyMetadata=function(t,r,n){var o=[],i=[],s={},a={};return Object.keys(r).forEach(function(t){var n=Ke(r[t],function(t){return t instanceof e.Input});n&&(n.bindingPropertyName?o.push(t+": "+n.bindingPropertyName):o.push(t));var u=Ke(r[t],function(t){return t instanceof e.Output});u&&(u.bindingPropertyName?i.push(t+": "+u.bindingPropertyName):i.push(t)),r[t].filter(function(t){return t&&t instanceof e.HostBinding}).forEach(function(e){if(e.hostPropertyName){var r=e.hostPropertyName[0];if("("===r)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===r)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");s["["+e.hostPropertyName+"]"]=t}else s["["+t+"]"]=t}),r[t].filter(function(t){return t&&t instanceof e.HostListener}).forEach(function(e){var r=e.args||[];s["("+e.eventName+")"]=t+"("+r.join(",")+")"});var c=Ke(r[t],function(t){return t instanceof e.Query});c&&(a[t]=c)}),this._merge(t,o,i,s,a,n)},t.prototype._extractPublicName=function(t){return p(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,r=[],n=t.length-1;n>=0;n--){var o=t[n],i=this._extractPublicName(o);e.has(i)||(e.add(i),r.push(o))}return r.reverse()},t.prototype._merge=function(t,r,n,o,i,s){var a=this._dedupeBindings(t.inputs?t.inputs.concat(r):r),u=this._dedupeBindings(t.outputs?t.outputs.concat(n):n),c=t.host?qu({},t.host,o):o,l=t.queries?qu({},t.queries,i):i;return t instanceof e.Component?new e.Component({selector:t.selector,inputs:a,outputs:u,host:c,exportAs:t.exportAs,moduleId:t.moduleId,queries:l,changeDetection:t.changeDetection,providers:t.providers,viewProviders:t.viewProviders,entryComponents:t.entryComponents,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,encapsulation:t.encapsulation,animations:t.animations,interpolation:t.interpolation}):new e.Directive({selector:t.selector,inputs:a,outputs:u,host:c,exportAs:t.exportAs,queries:l,providers:t.providers})},t}();Gu.decorators=[{type:G}],Gu.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var zu=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,$u=/\.ngfactory\./,Wu=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(rr)},t.prototype.resolve=function(t,r){void 0===r&&(r=!0);var n=Ke(this._reflector.annotations(t),rr);if(n)return n;if(r)throw new Error("No NgModule metadata found for '"+e.ɵstringify(t)+"'.");return null},t}();Wu.decorators=[{type:G}],Wu.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var Ku=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isPipe=function(t){var r=this._reflector.annotations(e.resolveForwardRef(t));return r&&r.some(nr)},t.prototype.resolve=function(t,r){void 0===r&&(r=!0);var n=this._reflector.annotations(e.resolveForwardRef(t));if(n){var o=Ke(n,nr);if(o)return o}if(r)throw new Error("No Pipe decorator found on "+e.ɵstringify(t));return null},t}();Ku.decorators=[{type:G}],Ku.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var Qu=function(){function t(){}return t.prototype.isLibraryFile=function(t){return!1},t.prototype.getLibraryFileName=function(t){return null},t.prototype.resolveSummary=function(t){return null},t.prototype.getSymbolsOf=function(t){return[]},t.prototype.getImportAs=function(t){return t},t}();Qu.decorators=[{type:G}],Qu.ctorParameters=function(){return[]};var Ju=new e.InjectionToken("ErrorCollector"),Xu=function(){function t(t,r,n,o,i,s,a,u,c,l,p){void 0===l&&(l=e.ɵreflector),this._config=t,this._ngModuleResolver=r,this._directiveResolver=n,this._pipeResolver=o,this._summaryResolver=i,this._schemaRegistry=s,this._directiveNormalizer=a,this._console=u,this._staticSymbolCache=c,this._reflector=l,this._errorCollector=p,this._nonNormalizedDirectiveCache=new Map,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map}return t.prototype.clearCacheFor=function(t){var e=this._directiveCache.get(t);this._directiveCache.delete(t),this._nonNormalizedDirectiveCache.delete(t),this._summaryCache.delete(t),this._pipeCache.delete(t),this._ngModuleOfTypes.delete(t),this._ngModuleCache.clear(),e&&this._directiveNormalizer.clearCacheFor(e)},t.prototype.clearCache=function(){this._directiveCache.clear(),this._nonNormalizedDirectiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},t.prototype._createProxyClass=function(t,r){var n=null,o=function(){if(!n)throw new Error("Illegal state: Class "+r+" for type "+e.ɵstringify(t)+" is not compiled yet!");return n.apply(this,arguments)};return o.setDelegate=function(t){n=t,o.prototype=t.prototype},o.overriddenName=r,o},t.prototype.getGeneratedClass=function(t,e){return t instanceof fo?this._staticSymbolCache.get(Qe(t.filePath),e):this._createProxyClass(t,e)},t.prototype.getComponentViewClass=function(t){return this.getGeneratedClass(t,x(t,0))},t.prototype.getHostComponentViewClass=function(t){return this.getGeneratedClass(t,T(t))},t.prototype.getHostComponentType=function(t){var e=E({reference:t})+"_Host";if(t instanceof fo)return this._staticSymbolCache.get(t.filePath,e);var r=function(){};return r.overriddenName=e,r},t.prototype.getRendererType=function(t){return t instanceof fo?this._staticSymbolCache.get(Qe(t.filePath),P(t)):{}},t.prototype.getComponentFactory=function(t,r,n,o){if(r instanceof fo)return this._staticSymbolCache.get(Qe(r.filePath),O(r));var i=this.getHostComponentViewClass(r);return e.ɵccf(t,r,i,n,o,[])},t.prototype.initComponentFactory=function(t,e){t instanceof fo||(r=t.ngContentSelectors).push.apply(r,e);var r},t.prototype._loadSummary=function(t,e){var r=this._summaryCache.get(t);if(!r){var n=this._summaryResolver.resolveSummary(t);r=n?n.type:null,this._summaryCache.set(t,r||null)}return r&&r.summaryKind===e?r:null},t.prototype._loadDirectiveMetadata=function(t,r,n){var o=this;if(this._directiveCache.has(r))return null;r=e.resolveForwardRef(r);var i=this.getNonNormalizedDirectiveMetadata(r),s=i.annotation,a=i.metadata,u=function(t){var e=new Ko({isHost:!1,type:a.type,isComponent:a.isComponent,selector:a.selector,exportAs:a.exportAs,changeDetection:a.changeDetection,inputs:a.inputs,outputs:a.outputs,hostListeners:a.hostListeners,hostProperties:a.hostProperties,hostAttributes:a.hostAttributes,providers:a.providers,viewProviders:a.viewProviders,queries:a.queries,viewQueries:a.viewQueries,entryComponents:a.entryComponents,componentViewType:a.componentViewType,rendererType:a.rendererType,componentFactory:a.componentFactory,template:t});return t&&o.initComponentFactory(a.componentFactory,t.ngContentSelectors),o._directiveCache.set(r,e),o._summaryCache.set(r,e.toSummary()),e};if(a.isComponent){var c=a.template,l=this._directiveNormalizer.normalizeTemplate({ngModuleType:t,componentType:r,moduleUrl:ur(this._reflector,r,s),encapsulation:c.encapsulation,template:c.template,templateUrl:c.templateUrl,styles:c.styles,styleUrls:c.styleUrls,animations:c.animations,interpolation:c.interpolation});return l.syncResult?(u(l.syncResult),null):n?(this._reportError(pr(r),r),null):l.asyncResult.then(u)}return u(null),null},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var r=this;if(!(t=e.resolveForwardRef(t)))return null;var n=this._nonNormalizedDirectiveCache.get(t);if(n)return n;var o=this._directiveResolver.resolve(t,!1);if(!o)return null;var i=void 0;if(o instanceof e.Component){z("styles",o.styles),z("styleUrls",o.styleUrls),$("interpolation",o.interpolation);var s=o.animations;i=new Wo({encapsulation:y(o.encapsulation),template:y(o.template),templateUrl:y(o.templateUrl),styles:o.styles||[],styleUrls:o.styleUrls||[],animations:s||[],interpolation:y(o.interpolation),isInline:!!o.template,externalStylesheets:[],ngContentSelectors:[]})}var a=null,u=[],c=[],l=o.selector;o instanceof e.Component?(a=o.changeDetection,o.viewProviders&&(u=this._getProvidersMetadata(o.viewProviders,c,'viewProviders for "'+lr(t)+'"',[],t)),o.entryComponents&&(c=sr(o.entryComponents).map(function(t){return r._getEntryComponentMetadata(t)}).concat(c)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(this._reportError(v("Directive "+lr(t)+" has no selector, please add it!"),t),l="error");var p=[];null!=o.providers&&(p=this._getProvidersMetadata(o.providers,c,'providers for "'+lr(t)+'"',[],t));var h=[],f=[];null!=o.queries&&(h=this._getQueriesMetadata(o.queries,!1,t),f=this._getQueriesMetadata(o.queries,!0,t));var d=Ko.create({isHost:!1,selector:l,exportAs:y(o.exportAs),isComponent:!!i,type:this._getTypeMetadata(t),template:i,changeDetection:a,inputs:o.inputs||[],outputs:o.outputs||[],host:o.host||{},providers:p||[],viewProviders:u||[],queries:h||[],viewQueries:f||[],entryComponents:c,componentViewType:i?this.getComponentViewClass(t):null,rendererType:i?this.getRendererType(t):null,componentFactory:null});return i&&(d.componentFactory=this.getComponentFactory(l,t,d.inputs,d.outputs)),n={metadata:d,annotation:o},this._nonNormalizedDirectiveCache.set(t,n),n},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(v("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+lr(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,zo.Directive);return e||this._reportError(v("Illegal state: Could not load the summary for directive "+lr(t)+"."),t),e},t.prototype.isDirective=function(t){return this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return this._pipeResolver.isPipe(t)},t.prototype.getNgModuleSummary=function(t){var e=this._loadSummary(t,zo.NgModule);if(!e){var r=this.getNgModuleMetadata(t,!1);(e=r?r.toSummary():null)&&this._summaryCache.set(t,e)}return e},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,r){var n=this;void 0===r&&(r=!0);var o=this.getNgModuleMetadata(t,r),i=[];return o&&(o.declaredDirectives.forEach(function(r){var o=n._loadDirectiveMetadata(t,r.reference,e);o&&i.push(o)}),o.declaredPipes.forEach(function(t){return n._loadPipeMetadata(t.reference)})),Promise.all(i)},t.prototype.getNgModuleMetadata=function(t,r){var n=this;void 0===r&&(r=!0),t=e.resolveForwardRef(t);var o=this._ngModuleCache.get(t);if(o)return o;var i=this._ngModuleResolver.resolve(t,r);if(!i)return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=[];i.imports&&sr(i.imports).forEach(function(e){var r=void 0;if(ar(e))r=e;else if(e&&e.ngModule){var o=e;r=o.ngModule,o.providers&&p.push.apply(p,n._getProvidersMetadata(o.providers,h,"provider for the NgModule '"+lr(r)+"'",[],e))}if(r){if(!n._checkSelfImport(t,r)){var i=n.getNgModuleSummary(r);i?c.push(i):n._reportError(v("Unexpected "+n._getTypeDescriptor(e)+" '"+lr(e)+"' imported by the module '"+lr(t)+"'. Please add a @NgModule annotation."),t)}}else n._reportError(v("Unexpected value '"+lr(e)+"' imported by the module '"+lr(t)+"'"),t)}),i.exports&&sr(i.exports).forEach(function(e){if(ar(e)){var r=n.getNgModuleSummary(e);r?l.push(r):a.push(n._getIdentifierMetadata(e))}else n._reportError(v("Unexpected value '"+lr(e)+"' exported by the module '"+lr(t)+"'"),t)});var m=this._getTransitiveNgModuleMetadata(c,l);i.declarations&&sr(i.declarations).forEach(function(e){if(ar(e)){var r=n._getIdentifierMetadata(e);if(n._directiveResolver.isDirective(e))m.addDirective(r),s.push(r),n._addTypeToModule(e,t);else{if(!n._pipeResolver.isPipe(e))return void n._reportError(v("Unexpected "+n._getTypeDescriptor(e)+" '"+lr(e)+"' declared by the module '"+lr(t)+"'. Please add a @Pipe/@Directive/@Component annotation."),t);m.addPipe(r),m.pipes.push(r),u.push(r),n._addTypeToModule(e,t)}}else n._reportError(v("Unexpected value '"+lr(e)+"' declared by the module '"+lr(t)+"'"),t)});var y=[],g=[];return a.forEach(function(e){if(m.directivesSet.has(e.reference))y.push(e),m.addExportedDirective(e);else{if(!m.pipesSet.has(e.reference))return void n._reportError(v("Can't export "+n._getTypeDescriptor(e.reference)+" "+lr(e.reference)+" from "+lr(t)+" as it was neither declared nor imported!"),t);g.push(e),m.addExportedPipe(e)}}),i.providers&&p.push.apply(p,this._getProvidersMetadata(i.providers,h,"provider for the NgModule '"+lr(t)+"'",[],t)),i.entryComponents&&h.push.apply(h,sr(i.entryComponents).map(function(t){return n._getEntryComponentMetadata(t)})),i.bootstrap&&sr(i.bootstrap).forEach(function(e){ar(e)?f.push(n._getIdentifierMetadata(e)):n._reportError(v("Unexpected value '"+lr(e)+"' used in the bootstrap property of module '"+lr(t)+"'"),t)}),h.push.apply(h,f.map(function(t){return n._getEntryComponentMetadata(t.reference)})),i.schemas&&d.push.apply(d,sr(i.schemas)),o=new Jo({type:this._getTypeMetadata(t),providers:p,entryComponents:h,bootstrapComponents:f,schemas:d,declaredDirectives:s,exportedDirectives:y,declaredPipes:u,exportedPipes:g,importedModules:c,exportedModules:l,transitiveModule:m,id:i.id||null}),h.forEach(function(t){return m.addEntryComponent(t)}),p.forEach(function(t){return m.addProvider(t,o.type)}),m.addModule(o.type),this._ngModuleCache.set(t,o),o},t.prototype._checkSelfImport=function(t,e){return t===e&&(this._reportError(v("'"+lr(t)+"' module can't import itself"),t),!0)},t.prototype._getTypeDescriptor=function(t){return this._directiveResolver.isDirective(t)?"directive":this._pipeResolver.isPipe(t)?"pipe":this._ngModuleResolver.isNgModule(t)?"module":t.provide?"provider":"value"},t.prototype._addTypeToModule=function(t,e){var r=this._ngModuleOfTypes.get(t);r&&r!==e?this._reportError(v("Type "+lr(t)+" is part of the declarations of 2 modules: "+lr(r)+" and "+lr(e)+"! Please consider moving "+lr(t)+" to a higher module that imports "+lr(r)+" and "+lr(e)+". You can also create a new NgModule that exports and includes "+lr(t)+" then import that NgModule in "+lr(r)+" and "+lr(e)+"."),e):this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var r=new Xo,n=new Map;return t.concat(e).forEach(function(t){t.modules.forEach(function(t){return r.addModule(t)}),t.entryComponents.forEach(function(t){return r.addEntryComponent(t)});var e=new Set;t.providers.forEach(function(t){var o=R(t.provider.token),i=n.get(o);i||(i=new Set,n.set(o,i));var s=t.module.reference;!e.has(o)&&i.has(s)||(i.add(s),e.add(o),r.addProvider(t.provider,t.module))})}),e.forEach(function(t){t.exportedDirectives.forEach(function(t){return r.addExportedDirective(t)}),t.exportedPipes.forEach(function(t){return r.addExportedPipe(t)})}),t.forEach(function(t){t.exportedDirectives.forEach(function(t){return r.addDirective(t)}),t.exportedPipes.forEach(function(t){return r.addPipe(t)})}),r},t.prototype._getIdentifierMetadata=function(t){return t=e.resolveForwardRef(t),{reference:t}},t.prototype.isInjectable=function(t){return this._reflector.annotations(t).some(function(t){return t.constructor===e.Injectable})},t.prototype.getInjectableSummary=function(t){return{summaryKind:zo.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype._getInjectableMetadata=function(t,e){void 0===e&&(e=null);var r=this._loadSummary(t,zo.Injectable);return r?r.type:this._getTypeMetadata(t,e)},t.prototype._getTypeMetadata=function(t,r,n){void 0===r&&(r=null),void 0===n&&(n=!0);var o=this._getIdentifierMetadata(t);return{reference:o.reference,diDeps:this._getDependenciesMetadata(o.reference,r,n),lifecycleHooks:e.ɵLIFECYCLE_HOOKS_VALUES.filter(function(t){return tr(t,o.reference)})}},t.prototype._getFactoryMetadata=function(t,r){return void 0===r&&(r=null),t=e.resolveForwardRef(t),{reference:t,diDeps:this._getDependenciesMetadata(t,r)}},t.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(v("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+lr(t)+"."),t),e||null},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,zo.Pipe);return e||this._reportError(v("Illegal state: Could not load the summary for pipe "+lr(t)+"."),t),e},t.prototype.getOrLoadPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||(e=this._loadPipeMetadata(t)),e},t.prototype._loadPipeMetadata=function(t){t=e.resolveForwardRef(t);var r=this._pipeResolver.resolve(t),n=new Qo({type:this._getTypeMetadata(t),name:r.name,pure:!!r.pure});return this._pipeCache.set(t,n),this._summaryCache.set(t,n.toSummary()),n},t.prototype._getDependenciesMetadata=function(t,r,n){var o=this;void 0===n&&(n=!0);var i=!1,s=(r||this._reflector.parameters(t)||[]).map(function(t){var r=!1,n=!1,s=!1,a=!1,u=!1,c=null;return Array.isArray(t)?t.forEach(function(t){t instanceof e.Host?n=!0:t instanceof e.Self?s=!0:t instanceof e.SkipSelf?a=!0:t instanceof e.Optional?u=!0:t instanceof e.Attribute?(r=!0,c=t.attributeName):t instanceof e.Inject?c=t.token:t instanceof e.InjectionToken?c=t:ar(t)&&null==c&&(c=t)}):c=t,null==c?(i=!0,null):{isAttribute:r,isHost:n,isSelf:s,isSkipSelf:a,isOptional:u,token:o._getTokenMetadata(c)}});if(i){var a=s.map(function(t){return t?lr(t.token):"?"}).join(", "),u="Can't resolve all parameters for "+lr(t)+": ("+a+").";n?this._reportError(v(u),t):this._console.warn("Warning: "+u+" This will become an error in Angular v5.x")}return s},t.prototype._getTokenMetadata=function(t){return"string"==typeof(t=e.resolveForwardRef(t))?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,r,n,o,i){var s=this;return void 0===o&&(o=[]),t.forEach(function(a,u){if(Array.isArray(a))s._getProvidersMetadata(a,r,n,o);else{var c=void 0;if((a=e.resolveForwardRef(a))&&"object"==typeof a&&a.hasOwnProperty("provide"))s._validateProvider(a),c=new Zo(a.provide,a);else{if(!ar(a)){if(void 0===a)return void s._reportError(v("Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files."));var l=t.reduce(function(t,e,r){return r<u?t.push(""+lr(e)):r==u?t.push("?"+lr(e)+"?"):r==u+1&&t.push("..."),t},[]).join(", ");return void s._reportError(v("Invalid "+(n||"provider")+" - only instances of Provider and Type are allowed, got: ["+l+"]"),i)}c=new Zo(a,{useClass:a})}c.token===he(za.ANALYZE_FOR_ENTRY_COMPONENTS)?r.push.apply(r,s._getEntryComponentsFromProvider(c,i)):o.push(s.getProviderMetadata(c))}}),o},t.prototype._validateProvider=function(t){t.hasOwnProperty("useClass")&&null==t.useClass&&this._reportError(v("Invalid provider for "+lr(t.provide)+". useClass cannot be "+t.useClass+".\n           Usually it happens when:\n           1. There's a circular dependency (might be caused by using index.ts (barrel) files).\n           2. Class was used before it was declared. Use forwardRef in this case."))},t.prototype._getEntryComponentsFromProvider=function(t,e){var r=this,n=[],o=[];return t.useFactory||t.useExisting||t.useClass?(this._reportError(v("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),e),[]):t.multi?(cr(t.useValue,o),o.forEach(function(t){var e=r._getEntryComponentMetadata(t.reference,!1);e&&n.push(e)}),n):(this._reportError(v("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),e),[])},t.prototype._getEntryComponentMetadata=function(t,e){void 0===e&&(e=!0);var r=this.getNonNormalizedDirectiveMetadata(t);if(r&&r.metadata.isComponent)return{componentType:t,componentFactory:r.metadata.componentFactory};var n=this._loadSummary(t,zo.Directive);if(n&&n.isComponent)return{componentType:t,componentFactory:n.componentFactory};if(e)throw v(t.name+" cannot be used as an entry component.");return null},t.prototype.getProviderMetadata=function(t){var e=void 0,r=null,n=null,o=this._getTokenMetadata(t.token);return t.useClass?(e=(r=this._getInjectableMetadata(t.useClass,t.dependencies)).diDeps,t.token===t.useClass&&(o={identifier:r})):t.useFactory&&(e=(n=this._getFactoryMetadata(t.useFactory,t.dependencies)).diDeps),{token:o,useClass:r,useValue:t.useValue,useFactory:n,useExisting:t.useExisting?this._getTokenMetadata(t.useExisting):void 0,deps:e,multi:t.multi}},t.prototype._getQueriesMetadata=function(t,e,r){var n=this,o=[];return Object.keys(t).forEach(function(i){var s=t[i];s.isViewQuery===e&&o.push(n._getQueryMetadata(s,i,r))}),o},t.prototype._queryVarBindings=function(t){return t.split(/\s*,\s*/)},t.prototype._getQueryMetadata=function(t,e,r){var n,o=this;return"string"==typeof t.selector?n=this._queryVarBindings(t.selector).map(function(t){return o._getTokenMetadata(t)}):t.selector?n=[this._getTokenMetadata(t.selector)]:(this._reportError(v("Can't construct a query for the property \""+e+'" of "'+lr(r)+"\" since the query selector wasn't defined."),r),n=[]),{selectors:n,first:t.first,descendants:t.descendants,propertyName:e,read:t.read?this._getTokenMetadata(t.read):null}},t.prototype._reportError=function(t,e,r){if(!this._errorCollector)throw t;this._errorCollector(t,e),r&&this._errorCollector(t,r)},t}();Xu.decorators=[{type:G}],Xu.ctorParameters=function(){return[{type:Yo},{type:Wu},{type:Gu},{type:Ku},{type:Qu},{type:tu},{type:Bu},{type:e.ɵConsole},{type:mo,decorators:[{type:e.Optional}]},{type:e.ɵReflectorReader},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Ju]}]}]};var Zu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Jn(e,t),e.prototype.visitOther=function(t,e){e.push({reference:t})},e}(Ao),Yu={};Yu.Const=0,Yu[Yu.Const]="Const";var tc=function(){function t(t){void 0===t&&(t=null),this.modifiers=t,t||(this.modifiers=[])}return t.prototype.visitType=function(t,e){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),ec={};ec.Dynamic=0,ec.Bool=1,ec.String=2,ec.Int=3,ec.Number=4,ec.Function=5,ec.Inferred=6,ec[ec.Dynamic]="Dynamic",ec[ec.Bool]="Bool",ec[ec.String]="String",ec[ec.Int]="Int",ec[ec.Number]="Number",ec[ec.Function]="Function",ec[ec.Inferred]="Inferred";var rc=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this,r)||this;return n.name=e,n}return Jn(e,t),e.prototype.visitType=function(t,e){return t.visitBuiltintType(this,e)},e}(tc),nc=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this,r)||this;return n.value=e,n}return Jn(e,t),e.prototype.visitType=function(t,e){return t.visitExpressionType(this,e)},e}(tc),oc=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this,r)||this;return n.of=e,n}return Jn(e,t),e.prototype.visitType=function(t,e){return t.visitArrayType(this,e)},e}(tc),ic=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this,r)||this;return n.valueType=e||null,n}return Jn(e,t),e.prototype.visitType=function(t,e){return t.visitMapType(this,e)},e}(tc),sc=new rc(ec.Dynamic),ac=new rc(ec.Inferred),uc=new rc(ec.Bool),cc=(new rc(ec.Int),new rc(ec.Number),new rc(ec.String),new rc(ec.Function),{});cc.Equals=0,cc.NotEquals=1,cc.Identical=2,cc.NotIdentical=3,cc.Minus=4,cc.Plus=5,cc.Divide=6,cc.Multiply=7,cc.Modulo=8,cc.And=9,cc.Or=10,cc.Lower=11,cc.LowerEquals=12,cc.Bigger=13,cc.BiggerEquals=14,cc[cc.Equals]="Equals",cc[cc.NotEquals]="NotEquals",cc[cc.Identical]="Identical",cc[cc.NotIdentical]="NotIdentical",cc[cc.Minus]="Minus",cc[cc.Plus]="Plus",cc[cc.Divide]="Divide",cc[cc.Multiply]="Multiply",cc[cc.Modulo]="Modulo",cc[cc.And]="And",cc[cc.Or]="Or",cc[cc.Lower]="Lower",cc[cc.LowerEquals]="LowerEquals",cc[cc.Bigger]="Bigger",cc[cc.BiggerEquals]="BiggerEquals";var lc=function(){function t(t,e){this.type=t||null,this.sourceSpan=e||null}return t.prototype.visitExpression=function(t,e){},t.prototype.prop=function(t,e){return new Ac(this,t,null,e)},t.prototype.key=function(t,e,r){return new Oc(this,t,e,r)},t.prototype.callMethod=function(t,e,r){return new vc(this,t,e,null,r)},t.prototype.callFn=function(t,e){return new gc(this,t,null,e)},t.prototype.instantiate=function(t,e,r){return new _c(this,t,e,r)},t.prototype.conditional=function(t,e,r){return void 0===e&&(e=null),new Cc(this,t,e,null,r)},t.prototype.equals=function(t,e){return new Tc(cc.Equals,this,t,null,e)},t.prototype.notEquals=function(t,e){return new Tc(cc.NotEquals,this,t,null,e)},t.prototype.identical=function(t,e){return new Tc(cc.Identical,this,t,null,e)},t.prototype.notIdentical=function(t,e){return new Tc(cc.NotIdentical,this,t,null,e)},t.prototype.minus=function(t,e){return new Tc(cc.Minus,this,t,null,e)},t.prototype.plus=function(t,e){return new Tc(cc.Plus,this,t,null,e)},t.prototype.divide=function(t,e){return new Tc(cc.Divide,this,t,null,e)},t.prototype.multiply=function(t,e){return new Tc(cc.Multiply,this,t,null,e)},t.prototype.modulo=function(t,e){return new Tc(cc.Modulo,this,t,null,e)},t.prototype.and=function(t,e){return new Tc(cc.And,this,t,null,e)},t.prototype.or=function(t,e){return new Tc(cc.Or,this,t,null,e)},t.prototype.lower=function(t,e){return new Tc(cc.Lower,this,t,null,e)},t.prototype.lowerEquals=function(t,e){return new Tc(cc.LowerEquals,this,t,null,e)},t.prototype.bigger=function(t,e){return new Tc(cc.Bigger,this,t,null,e)},t.prototype.biggerEquals=function(t,e){return new Tc(cc.BiggerEquals,this,t,null,e)},t.prototype.isBlank=function(t){return this.equals(Lc,t)},t.prototype.cast=function(t,e){return new Sc(this,t,e)},t.prototype.toStmt=function(){return new Hc(this,null)},t}(),pc={};pc.This=0,pc.Super=1,pc.CatchError=2,pc.CatchStack=3,pc[pc.This]="This",pc[pc.Super]="Super",pc[pc.CatchError]="CatchError",pc[pc.CatchStack]="CatchStack";var hc=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return"string"==typeof e?(o.name=e,o.builtin=null):(o.name=null,o.builtin=e),o}return Jn(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadVarExpr(this,e)},e.prototype.set=function(t){if(!this.name)throw new Error("Built in variable "+this.builtin+" can not be assigned to.");return new fc(this.name,t,null,this.sourceSpan)},e}(lc),fc=function(t){function e(e,r,n,o){var i=t.call(this,n||r.type,o)||this;return i.name=e,i.value=r,i}return Jn(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteVarExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return new Uc(this.name,this.value,t,e,this.sourceSpan)},e}(lc),dc=function(t){function e(e,r,n,o,i){var s=t.call(this,o||n.type,i)||this;return s.receiver=e,s.index=r,s.value=n,s}return Jn(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteKeyExpr(this,e)},e}(lc),mc=function(t){function e(e,r,n,o,i){var s=t.call(this,o||n.type,i)||this;return s.receiver=e,s.name=r,s.value=n,s}return Jn(e,t),e.prototype.visitExpression=function(t,e){return t.visitWritePropExpr(this,e)},e}(lc),yc={};yc.ConcatArray=0,yc.SubscribeObservable=1,yc.Bind=2,yc[yc.ConcatArray]="ConcatArray",yc[yc.SubscribeObservable]="SubscribeObservable",yc[yc.Bind]="Bind";var vc=function(t){function e(e,r,n,o,i){var s=t.call(this,o,i)||this;return s.receiver=e,s.args=n,"string"==typeof r?(s.name=r,s.builtin=null):(s.name=null,s.builtin=r),s}return Jn(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeMethodExpr(this,e)},e}(lc),gc=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.fn=e,i.args=r,i}return Jn(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeFunctionExpr(this,e)},e}(lc),_c=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.classExpr=e,i.args=r,i}return Jn(e,t),e.prototype.visitExpression=function(t,e){return t.visitInstantiateExpr(this,e)},e}(lc),bc=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.value=e,o}return Jn(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralExpr(this,e)},e}(lc),wc=function(t){function e(e,r,n,o){void 0===n&&(n=null);var i=t.call(this,r,o)||this;return i.value=e,i.typeParams=n,i}return Jn(e,t),e.prototype.visitExpression=function(t,e){return t.visitExternalExpr(this,e)},e}(lc),Cc=function(t){function e(e,r,n,o,i){void 0===n&&(n=null);var s=t.call(this,o||r.type,i)||this;return s.condition=e,s.falseCase=n,s.trueCase=r,s}return Jn(e,t),e.prototype.visitExpression=function(t,e){return t.visitConditionalExpr(this,e)},e}(lc),Ec=function(t){function e(e,r){var n=t.call(this,uc,r)||this;return n.condition=e,n}return Jn(e,t),e.prototype.visitExpression=function(t,e){return t.visitNotExpr(this,e)},e}(lc),Sc=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.value=e,o}return Jn(e,t),e.prototype.visitExpression=function(t,e){return t.visitCastExpr(this,e)},e}(lc),xc=function(){function t(t,e){void 0===e&&(e=null),this.name=t,this.type=e}return t}(),Pc=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.params=e,i.statements=r,i}return Jn(e,t),e.prototype.visitExpression=function(t,e){return t.visitFunctionExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===e&&(e=null),new Bc(t,this.params,this.statements,this.type,e,this.sourceSpan)},e}(lc),Tc=function(t){function e(e,r,n,o,i){var s=t.call(this,o||r.type,i)||this;return s.operator=e,s.rhs=n,s.lhs=r,s}return Jn(e,t),e.prototype.visitExpression=function(t,e){return t.visitBinaryOperatorExpr(this,e)},e}(lc),Ac=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.receiver=e,i.name=r,i}return Jn(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadPropExpr(this,e)},e.prototype.set=function(t){return new mc(this.receiver,this.name,t,null,this.sourceSpan)},e}(lc),Oc=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.receiver=e,i.index=r,i}return Jn(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadKeyExpr(this,e)},e.prototype.set=function(t){return new dc(this.receiver,this.index,t,null,this.sourceSpan)},e}(lc),Mc=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.entries=e,o}return Jn(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralArrayExpr(this,e)},e}(lc),Rc=function(){function t(t,e,r){void 0===r&&(r=!1),this.key=t,this.value=e,this.quoted=r}return t}(),kc=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.entries=e,o.valueType=null,r&&(o.valueType=r.valueType),o}return Jn(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralMapExpr(this,e)},e}(lc),Nc=function(t){function e(e,r){var n=t.call(this,e[e.length-1].type,r)||this;return n.parts=e,n}return Jn(e,t),e.prototype.visitExpression=function(t,e){return t.visitCommaExpr(this,e)},e}(lc),Ic=new hc(pc.This,null,null),jc=new hc(pc.Super,null,null),Dc=(new hc(pc.CatchError,null,null),new hc(pc.CatchStack,null,null),new bc(null,null,null)),Lc=new bc(null,ac,null),Vc={};Vc.Final=0,Vc.Private=1,Vc[Vc.Final]="Final",Vc[Vc.Private]="Private";var Fc=function(){function t(t,e){this.modifiers=t||[],this.sourceSpan=e||null}return t.prototype.visitStatement=function(t,e){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),Uc=function(t){function e(e,r,n,o,i){void 0===o&&(o=null);var s=t.call(this,o,i)||this;return s.name=e,s.value=r,s.type=n||r.type,s}return Jn(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareVarStmt(this,e)},e}(Fc),Bc=function(t){function e(e,r,n,o,i,s){void 0===i&&(i=null);var a=t.call(this,i,s)||this;return a.name=e,a.params=r,a.statements=n,a.type=o||null,a}return Jn(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareFunctionStmt(this,e)},e}(Fc),Hc=function(t){function e(e,r){var n=t.call(this,null,r)||this;return n.expr=e,n}return Jn(e,t),e.prototype.visitStatement=function(t,e){return t.visitExpressionStmt(this,e)},e}(Fc),qc=function(t){function e(e,r){var n=t.call(this,null,r)||this;return n.value=e,n}return Jn(e,t),e.prototype.visitStatement=function(t,e){return t.visitReturnStmt(this,e)},e}(Fc),Gc=function(){function t(t,e){this.modifiers=e,e||(this.modifiers=[]),this.type=t||null}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),zc=function(t){function e(e,r,n){void 0===n&&(n=null);var o=t.call(this,r,n)||this;return o.name=e,o}return Jn(e,t),e}(Gc),$c=function(t){function e(e,r,n,o,i){void 0===i&&(i=null);var s=t.call(this,o,i)||this;return s.name=e,s.params=r,s.body=n,s}return Jn(e,t),e}(Gc),Wc=function(t){function e(e,r,n,o){void 0===o&&(o=null);var i=t.call(this,n,o)||this;return i.name=e,i.body=r,i}return Jn(e,t),e}(Gc),Kc=function(t){function e(e,r,n,o,i,s,a,u){void 0===a&&(a=null);var c=t.call(this,a,u)||this;return c.name=e,c.parent=r,c.fields=n,c.getters=o,c.constructorMethod=i,c.methods=s,c}return Jn(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareClassStmt(this,e)},e}(Fc),Qc=function(t){function e(e,r,n,o){void 0===n&&(n=[]);var i=t.call(this,null,o)||this;return i.condition=e,i.trueCase=r,i.falseCase=n,i}return Jn(e,t),e.prototype.visitStatement=function(t,e){return t.visitIfStmt(this,e)},e}(Fc),Jc=function(t){function e(e,r,n){var o=t.call(this,null,n)||this;return o.bodyStmts=e,o.catchStmts=r,o}return Jn(e,t),e.prototype.visitStatement=function(t,e){return t.visitTryCatchStmt(this,e)},e}(Fc),Xc=function(t){function e(e,r){var n=t.call(this,null,r)||this;return n.error=e,n}return Jn(e,t),e.prototype.visitStatement=function(t,e){return t.visitThrowStmt(this,e)},e}(Fc),Zc=function(){function t(){}return t.prototype.transformExpr=function(t,e){return t},t.prototype.transformStmt=function(t,e){return t},t.prototype.visitReadVarExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitWriteVarExpr=function(t,e){return this.transformExpr(new fc(t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWriteKeyExpr=function(t,e){return this.transformExpr(new dc(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWritePropExpr=function(t,e){return this.transformExpr(new mc(t.receiver.visitExpression(this,e),t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeMethodExpr=function(t,e){var r=t.builtin||t.name;return this.transformExpr(new vc(t.receiver.visitExpression(this,e),r,this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeFunctionExpr=function(t,e){return this.transformExpr(new gc(t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInstantiateExpr=function(t,e){return this.transformExpr(new _c(t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitExternalExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitConditionalExpr=function(t,e){return this.transformExpr(new Cc(t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitNotExpr=function(t,e){return this.transformExpr(new Ec(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCastExpr=function(t,e){return this.transformExpr(new Sc(t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitFunctionExpr=function(t,e){return this.transformExpr(new Pc(t.params,this.visitAllStatements(t.statements,e),t.type,t.sourceSpan),e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return this.transformExpr(new Tc(t.operator,t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitReadPropExpr=function(t,e){return this.transformExpr(new Ac(t.receiver.visitExpression(this,e),t.name,t.type,t.sourceSpan),e)},t.prototype.visitReadKeyExpr=function(t,e){return this.transformExpr(new Oc(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralArrayExpr=function(t,e){return this.transformExpr(new Mc(this.visitAllExpressions(t.entries,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralMapExpr=function(t,e){var r=this,n=t.entries.map(function(t){return new Rc(t.key,t.value.visitExpression(r,e),t.quoted)}),o=new ic(t.valueType,null);return this.transformExpr(new kc(n,o,t.sourceSpan),e)},t.prototype.visitCommaExpr=function(t,e){return this.transformExpr(new Nc(this.visitAllExpressions(t.parts,e),t.sourceSpan),e)},t.prototype.visitAllExpressions=function(t,e){var r=this;return t.map(function(t){return t.visitExpression(r,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return this.transformStmt(new Uc(t.name,t.value.visitExpression(this,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.transformStmt(new Bc(t.name,t.params,this.visitAllStatements(t.statements,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitExpressionStmt=function(t,e){return this.transformStmt(new Hc(t.expr.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitReturnStmt=function(t,e){return this.transformStmt(new qc(t.value.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitDeclareClassStmt=function(t,e){var r=this,n=t.parent.visitExpression(this,e),o=t.getters.map(function(t){return new Wc(t.name,r.visitAllStatements(t.body,e),t.type,t.modifiers)}),i=t.constructorMethod&&new $c(t.constructorMethod.name,t.constructorMethod.params,this.visitAllStatements(t.constructorMethod.body,e),t.constructorMethod.type,t.constructorMethod.modifiers),s=t.methods.map(function(t){return new $c(t.name,t.params,r.visitAllStatements(t.body,e),t.type,t.modifiers)});return this.transformStmt(new Kc(t.name,n,t.fields,o,i,s,t.modifiers,t.sourceSpan),e)},t.prototype.visitIfStmt=function(t,e){return this.transformStmt(new Qc(t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t.sourceSpan),e)},t.prototype.visitTryCatchStmt=function(t,e){return this.transformStmt(new Jc(this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t.sourceSpan),e)},t.prototype.visitThrowStmt=function(t,e){return this.transformStmt(new Xc(t.error.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCommentStmt=function(t,e){return this.transformStmt(t,e)},t.prototype.visitAllStatements=function(t,e){var r=this;return t.map(function(t){return t.visitStatement(r,e)})},t}(),Yc=function(t){function e(){var e=t.apply(this,arguments)||this;return e.varNames=new Set,e}return Jn(e,t),e.prototype.visitDeclareFunctionStmt=function(t,e){return t},e.prototype.visitDeclareClassStmt=function(t,e){return t},e.prototype.visitReadVarExpr=function(t,e){return t.name&&this.varNames.add(t.name),null},e}(function(){function t(){}return t.prototype.visitReadVarExpr=function(t,e){return t},t.prototype.visitWriteVarExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitWriteKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitWritePropExpr=function(t,e){return t.receiver.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitInvokeMethodExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInstantiateExpr=function(t,e){return t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitLiteralExpr=function(t,e){return t},t.prototype.visitExternalExpr=function(t,e){return t},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t},t.prototype.visitNotExpr=function(t,e){return t.condition.visitExpression(this,e),t},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitFunctionExpr=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitBinaryOperatorExpr=function(t,e){return t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),t},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e),t},t.prototype.visitLiteralMapExpr=function(t,e){var r=this;return t.entries.forEach(function(t){return t.value.visitExpression(r,e)}),t},t.prototype.visitCommaExpr=function(t,e){this.visitAllExpressions(t.parts,e)},t.prototype.visitAllExpressions=function(t,e){var r=this;t.forEach(function(t){return t.visitExpression(r,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),t},t.prototype.visitReturnStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareClassStmt=function(t,e){var r=this;return t.parent.visitExpression(this,e),t.getters.forEach(function(t){return r.visitAllStatements(t.body,e)}),t.constructorMethod&&this.visitAllStatements(t.constructorMethod.body,e),t.methods.forEach(function(t){return r.visitAllStatements(t.body,e)}),t},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t},t.prototype.visitTryCatchStmt=function(t,e){return this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t},t.prototype.visitThrowStmt=function(t,e){return t.error.visitExpression(this,e),t},t.prototype.visitCommentStmt=function(t,e){return t},t.prototype.visitAllStatements=function(t,e){var r=this;t.forEach(function(t){return t.visitStatement(r,e)})},t}()),tl=function(t){function e(e){var r=t.call(this)||this;return r.sourceSpan=e,r}return Jn(e,t),e.prototype._clone=function(t){var e=Object.create(t.constructor.prototype);for(var r in t)e[r]=t[r];return e},e.prototype.transformExpr=function(t,e){return t.sourceSpan||((t=this._clone(t)).sourceSpan=this.sourceSpan),t},e.prototype.transformStmt=function(t,e){return t.sourceSpan||((t=this._clone(t)).sourceSpan=this.sourceSpan),t},e}(Zc),el=function(){function t(){}return t.prototype.visitArray=function(t,e){var r=this;return _r(t.map(function(t){return d(t,r,null)}),e)},t.prototype.visitStringMap=function(t,e){var r=this,n=[],o=new Set(t&&t.$quoted$);return Object.keys(t).forEach(function(e){n.push(new Rc(e,d(t[e],r,null),o.has(e)))}),new kc(n,e)},t.prototype.visitPrimitive=function(t,e){return Er(t,e)},t.prototype.visitOther=function(t,e){return t instanceof lc?t:yr({reference:t})},t}(),rl=function(){function t(t){this.compType=t}return t}(),nl=function(){function t(t,e,r){this.statements=t,this.ngModuleFactoryVar=e,this.dependencies=r}return t}(),ol=function(){function t(){}return t.prototype.compile=function(t,e){var r=ct("NgModule",t.type),n=[],o=[],i=t.transitiveModule.entryComponents.map(function(e){return t.bootstrapComponents.some(function(t){return t.reference===e.componentType})&&o.push({reference:e.componentFactory}),n.push(new rl(e.componentType)),{reference:e.componentFactory}}),s=new il(t,i,o,r);new Ya(t,e,r).parse().forEach(function(t){return s.addProvider(t)});var a=s.build(),u=E(t.type)+"NgFactory",c=[a,mr(u).set(yr(fe(za.NgModuleFactory)).instantiate([mr(a.name),yr(t.type)],vr(fe(za.NgModuleFactory),[vr(t.type)],[Yu.Const]))).toDeclStmt(null,[Vc.Final])];if(t.id){var l=yr(fe(za.RegisterModuleFactoryFn)).callFn([Er(t.id),mr(u)]).toStmt();c.push(l)}return new nl(c,u,n)},t}();ol.decorators=[{type:G}],ol.ctorParameters=function(){return[]};var il=function(){function t(t,e,r,n){this._ngModuleMeta=t,this._entryComponentFactories=e,this._bootstrapComponentFactories=r,this._sourceSpan=n,this.fields=[],this.getters=[],this.methods=[],this.ctorStmts=[],this._lazyProps=new Map,this._tokens=[],this._instances=new Map,this._createStmts=[],this._destroyStmts=[]}return t.prototype.addProvider=function(t){var r=this,n=t.providers.map(function(t){return r._getProviderValue(t)}),o="_"+M(t.token)+"_"+this._instances.size,i=this._createProviderProperty(o,t,n,t.multiProvider,t.eager);if(-1!==t.lifecycleHooks.indexOf(e.ɵLifecycleHooks.OnDestroy)){var s=i.callMethod("ngOnDestroy",[]);t.eager||(s=this._lazyProps.get(i.name).and(s)),this._destroyStmts.push(s.toStmt())}this._tokens.push(t.token),this._instances.set(R(t.token),i)},t.prototype.build=function(){var t=this,e=this._tokens.map(function(e){var r=t._instances.get(R(e));return new Qc(al.token.identical(Tr(e)),[new qc(r)])}),r=[new $c("createInternal",[],this._createStmts.concat(new qc(this._instances.get(this._ngModuleMeta.type.reference))),vr(this._ngModuleMeta.type)),new $c("getInternal",[new xc(al.token.name,sc),new xc(al.notFoundResult.name,sc)],e.concat([new qc(al.notFoundResult)]),sc),new $c("destroyInternal",[],this._destroyStmts)],n=[mr(sl.parent.name),_r(this._entryComponentFactories.map(function(t){return yr(t)})),_r(this._bootstrapComponentFactories.map(function(t){return yr(t)}))];return Sr({name:E(this._ngModuleMeta.type)+"Injector",ctorParams:[new xc(sl.parent.name,vr(fe(za.Injector)))],parent:yr(fe(za.NgModuleInjector),[vr(this._ngModuleMeta.type)]),parentArgs:n,builders:[{methods:r},this]})},t.prototype._getProviderValue=function(t){var e,r=this;if(null!=t.useExisting)e=this._getDependency({token:t.useExisting});else if(null!=t.useFactory){o=(n=t.deps||t.useFactory.diDeps).map(function(t){return r._getDependency(t)});e=yr(t.useFactory).callFn(o)}else if(null!=t.useClass){var n=t.deps||t.useClass.diDeps,o=n.map(function(t){return r._getDependency(t)});e=yr(t.useClass).instantiate(o,vr(t.useClass))}else e=Pr(t.useValue);return e},t.prototype._createProviderProperty=function(t,e,r,n,o){var i,s;if(n?(i=_r(r),s=new oc(sc)):(i=r[0],s=r[0].type),s||(s=sc),o)this.fields.push(new zc(t,s)),this._createStmts.push(Ic.prop(t).set(i).toStmt());else{var a=Ic.prop("_"+t);this.fields.push(new zc(a.name,s));var u=[new Qc(a.isBlank(),[a.set(i).toStmt()]),new qc(a)];this.getters.push(new Wc(t,u,s)),this._lazyProps.set(t,a)}return Ic.prop(t)},t.prototype._getDependency=function(t){var e=null;if(t.isValue&&(e=Er(t.value)),t.isSkipSelf||(t.token&&(R(t.token)===he(za.Injector)?e=Ic:R(t.token)===he(za.ComponentFactoryResolver)&&(e=Ic.prop("componentFactoryResolver"))),e||(e=this._instances.get(R(t.token)))),!e){var r=[Tr(t.token)];t.isOptional&&r.push(Dc),e=sl.parent.callMethod("get",r)}return e},t}(),sl=function(){function t(){}return t}();sl.parent=Ic.prop("parent");var al=function(){function t(){}return t}();al.token=mr("token"),al.notFoundResult=mr("notFoundResult");var ul=function(){function t(t){void 0===t&&(t=null),this.file=t,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return t.prototype.addSource=function(t,e){return void 0===e&&(e=null),this.sourcesContent.has(t)||this.sourcesContent.set(t,e),this},t.prototype.addLine=function(){return this.lines.push([]),this.lastCol0=0,this},t.prototype.addMapping=function(t,e,r,n){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=e&&!this.sourcesContent.has(e))throw new Error('Unknown source file "'+e+'"');if(null==t)throw new Error("The column in the generated code must be provided");if(t<this.lastCol0)throw new Error("Mapping should be added in output order");if(e&&(null==r||null==n))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=t,this.currentLine.push({col0:t,sourceUrl:e,sourceLine0:r,sourceCol0:n}),this},Object.defineProperty(t.prototype,"currentLine",{get:function(){return this.lines.slice(-1)[0]},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){var t=this;if(!this.hasMappings)return null;var e=new Map,r=[],n=[];Array.from(this.sourcesContent.keys()).forEach(function(o,i){e.set(o,i),r.push(o),n.push(t.sourcesContent.get(o)||null)});var o="",i=0,s=0,a=0,u=0;return this.lines.forEach(function(t){i=0,o+=t.map(function(t){var r=Or(t.col0-i);return i=t.col0,null!=t.sourceUrl&&(r+=Or(e.get(t.sourceUrl)-s),s=e.get(t.sourceUrl),r+=Or(t.sourceLine0-a),a=t.sourceLine0,r+=Or(t.sourceCol0-u),u=t.sourceCol0),r}).join(","),o+=";"}),o=o.slice(0,-1),{file:this.file||"",version:3,sourceRoot:"",sources:r,sourcesContent:n,mappings:o}},t.prototype.toJsComment=function(){return this.hasMappings?"//# sourceMappingURL=data:application/json;base64,"+Ar(JSON.stringify(this,null,0)):""},t}(),cl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ll=/'|\\|\n|\r|\$/g,pl=/^[$A-Z_][0-9A-Z_$]*$/i,hl="  ",fl=mr("error",null,null),dl=mr("stack",null,null),ml=function(){function t(t){this.indent=t,this.parts=[],this.srcSpans=[]}return t}(),yl=function(){function t(t,e){this._exportedVars=t,this._indent=e,this._classes=[],this._lines=[new ml(e)]}return t.createRoot=function(e){return new t(e,0)},Object.defineProperty(t.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),t.prototype.isExportedVar=function(t){return-1!==this._exportedVars.indexOf(t)},t.prototype.println=function(t,e){void 0===e&&(e=""),this.print(t||null,e,!0)},t.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},t.prototype.print=function(t,e,r){void 0===r&&(r=!1),e.length>0&&(this._currentLine.parts.push(e),this._currentLine.srcSpans.push(t&&t.sourceSpan||null)),r&&this._lines.push(new ml(this._indent))},t.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},t.prototype.incIndent=function(){this._indent++,this._currentLine.indent=this._indent},t.prototype.decIndent=function(){this._indent--,this._currentLine.indent=this._indent},t.prototype.pushClass=function(t){this._classes.push(t)},t.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(t.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.toSource=function(){return this.sourceLines.map(function(t){return t.parts.length>0?kr(t.indent)+t.parts.join(""):""}).join("\n")},t.prototype.toSourceMapGenerator=function(t,e,r){void 0===r&&(r=0);for(var n=new ul(e),o=!1,i=function(){o||(n.addSource(t," ").addMapping(0,t,0,0),o=!0)},s=0;s<r;s++)n.addLine(),i();return this.sourceLines.forEach(function(t,e){n.addLine();for(var r=t.srcSpans,s=t.parts,a=t.indent*hl.length,u=0;u<r.length&&!r[u];)a+=s[u].length,u++;for(u<r.length&&0===e&&0===a?o=!0:i();u<r.length;){var c=r[u],l=c.start.file,p=c.start.line,h=c.start.col;for(n.addSource(l.url,l.content).addMapping(a,l.url,p,h),a+=s[u].length,u++;u<r.length&&(c===r[u]||!r[u]);)a+=s[u].length,u++}}),n},Object.defineProperty(t.prototype,"sourceLines",{get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines},enumerable:!0,configurable:!0}),t}(),vl=function(){function t(t){this._escapeDollarInStrings=t}return t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitReturnStmt=function(t,e){return e.print(t,"return "),t.value.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCastExpr=function(t,e){},t.prototype.visitDeclareClassStmt=function(t,e){},t.prototype.visitIfStmt=function(t,e){e.print(t,"if ("),t.condition.visitExpression(this,e),e.print(t,") {");var r=null!=t.falseCase&&t.falseCase.length>0;return t.trueCase.length<=1&&!r?(e.print(t," "),this.visitAllStatements(t.trueCase,e),e.removeEmptyLastLine(),e.print(t," ")):(e.println(),e.incIndent(),this.visitAllStatements(t.trueCase,e),e.decIndent(),r&&(e.println(t,"} else {"),e.incIndent(),this.visitAllStatements(t.falseCase,e),e.decIndent())),e.println(t,"}"),null},t.prototype.visitTryCatchStmt=function(t,e){},t.prototype.visitThrowStmt=function(t,e){return e.print(t,"throw "),t.error.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCommentStmt=function(t,e){return t.comment.split("\n").forEach(function(r){e.println(t,"// "+r)}),null},t.prototype.visitDeclareVarStmt=function(t,e){},t.prototype.visitWriteVarExpr=function(t,e){var r=e.lineIsEmpty();return r||e.print(t,"("),e.print(t,t.name+" = "),t.value.visitExpression(this,e),r||e.print(t,")"),null},t.prototype.visitWriteKeyExpr=function(t,e){var r=e.lineIsEmpty();return r||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"] = "),t.value.visitExpression(this,e),r||e.print(t,")"),null},t.prototype.visitWritePropExpr=function(t,e){var r=e.lineIsEmpty();return r||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"."+t.name+" = "),t.value.visitExpression(this,e),r||e.print(t,")"),null},t.prototype.visitInvokeMethodExpr=function(t,e){t.receiver.visitExpression(this,e);var r=t.name;return null!=t.builtin&&null==(r=this.getBuiltinMethodName(t.builtin))?null:(e.print(t,"."+r+"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null)},t.prototype.getBuiltinMethodName=function(t){},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitReadVarExpr=function(t,e){var r=t.name;if(null!=t.builtin)switch(t.builtin){case pc.Super:r="super";break;case pc.This:r="this";break;case pc.CatchError:r=fl.name;break;case pc.CatchStack:r=dl.name;break;default:throw new Error("Unknown builtin variable "+t.builtin)}return e.print(t,r),null},t.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),t.classExpr.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitLiteralExpr=function(t,e){var r=t.value;return"string"==typeof r?e.print(t,Rr(r,this._escapeDollarInStrings)):e.print(t,""+r),null},t.prototype.visitExternalExpr=function(t,e){},t.prototype.visitConditionalExpr=function(t,e){return e.print(t,"("),t.condition.visitExpression(this,e),e.print(t,"? "),t.trueCase.visitExpression(this,e),e.print(t,": "),t.falseCase.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitNotExpr=function(t,e){return e.print(t,"!"),t.condition.visitExpression(this,e),null},t.prototype.visitFunctionExpr=function(t,e){},t.prototype.visitDeclareFunctionStmt=function(t,e){},t.prototype.visitBinaryOperatorExpr=function(t,e){var r;switch(t.operator){case cc.Equals:r="==";break;case cc.Identical:r="===";break;case cc.NotEquals:r="!=";break;case cc.NotIdentical:r="!==";break;case cc.And:r="&&";break;case cc.Or:r="||";break;case cc.Plus:r="+";break;case cc.Minus:r="-";break;case cc.Divide:r="/";break;case cc.Multiply:r="*";break;case cc.Modulo:r="%";break;case cc.Lower:r="<";break;case cc.LowerEquals:r="<=";break;case cc.Bigger:r=">";break;case cc.BiggerEquals:r=">=";break;default:throw new Error("Unknown operator "+t.operator)}return e.print(t,"("),t.lhs.visitExpression(this,e),e.print(t," "+r+" "),t.rhs.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"."),e.print(t,t.name),null},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"]"),null},t.prototype.visitLiteralArrayExpr=function(t,e){var r=t.entries.length>1;return e.print(t,"[",r),e.incIndent(),this.visitAllExpressions(t.entries,e,",",r),e.decIndent(),e.print(t,"]",r),null},t.prototype.visitLiteralMapExpr=function(t,e){var r=this,n=t.entries.length>1;return e.print(t,"{",n),e.incIndent(),this.visitAllObjects(function(n){e.print(t,Rr(n.key,r._escapeDollarInStrings,n.quoted)+": "),n.value.visitExpression(r,e)},t.entries,e,",",n),e.decIndent(),e.print(t,"}",n),null},t.prototype.visitCommaExpr=function(t,e){return e.print(t,"("),this.visitAllExpressions(t.parts,e,","),e.print(t,")"),null},t.prototype.visitAllExpressions=function(t,e,r,n){var o=this;void 0===n&&(n=!1),this.visitAllObjects(function(t){return t.visitExpression(o,e)},t,e,r,n)},t.prototype.visitAllObjects=function(t,e,r,n,o){void 0===o&&(o=!1);for(var i=0;i<e.length;i++)i>0&&r.print(null,n,o),t(e[i]);o&&r.println()},t.prototype.visitAllStatements=function(t,e){var r=this;t.forEach(function(t){return t.visitStatement(r,e)})},t}(),gl="/debug/lib",_l=function(){function t(t){this._importResolver=t}return t.prototype.emitStatements=function(t,e,r,n,o){var i=this;void 0===o&&(o="");var s=new bl(e,this._importResolver),a=yl.createRoot(n);s.visitAllStatements(r,a);var u=o?o.split("\n"):[];s.reexports.forEach(function(t,r){var n=t.map(function(t){return t.name+" as "+t.as}).join(",");u.push("export {"+n+"} from '"+i._importResolver.fileNameToModuleName(r,e)+"';")}),s.importsWithPrefixes.forEach(function(t,r){u.push("import * as "+t+" from '"+i._importResolver.fileNameToModuleName(r,e)+"';")});var c=a.toSourceMapGenerator(t,e,u.length).toJsComment(),l=u.concat([a.toSource(),c]);return c&&l.push(""),l.join("\n")},t}(),bl=function(t){function e(e,r){var n=t.call(this,!1)||this;return n._genFilePath=e,n._importResolver=r,n.typeExpression=0,n.importsWithPrefixes=new Map,n.reexports=new Map,n}return Jn(e,t),e.prototype.visitType=function(t,e,r){void 0===r&&(r="any"),t?(this.typeExpression++,t.visitType(this,e),this.typeExpression--):e.print(null,r)},e.prototype.visitLiteralExpr=function(e,r){var n=e.value;return null==n&&e.type!=ac?(r.print(e,"("+n+" as any)"),null):t.prototype.visitLiteralExpr.call(this,e,r)},e.prototype.visitLiteralArrayExpr=function(e,r){0===e.entries.length&&r.print(e,"(");var n=t.prototype.visitLiteralArrayExpr.call(this,e,r);return 0===e.entries.length&&r.print(e," as any[])"),n},e.prototype.visitExternalExpr=function(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null},e.prototype.visitDeclareVarStmt=function(t,e){if(e.isExportedVar(t.name)&&t.value instanceof wc&&!t.type){var r=this._resolveStaticSymbol(t.value.value),n=r.name,o=r.filePath;if(0===r.members.length&&o!==this._genFilePath){var i=this.reexports.get(o);return i||(i=[],this.reexports.set(o,i)),i.push({name:n,as:t.name}),null}}return e.isExportedVar(t.name)&&e.print(t,"export "),t.hasModifier(Vc.Final)?e.print(t,"const"):e.print(t,"var"),e.print(t," "+t.name),this._printColonType(t.type,e),e.print(t," = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return e.print(t,"(<"),t.type.visitType(this,e),e.print(t,">"),t.value.visitExpression(this,e),e.print(t,")"),null},e.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),this.typeExpression++,t.classExpr.visitExpression(this,e),this.typeExpression--,e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},e.prototype.visitDeclareClassStmt=function(t,e){var r=this;return e.pushClass(t),e.isExportedVar(t.name)&&e.print(t,"export "),e.print(t,"class "+t.name),null!=t.parent&&(e.print(t," extends "),this.typeExpression++,t.parent.visitExpression(this,e),this.typeExpression--),e.println(t," {"),e.incIndent(),t.fields.forEach(function(t){return r._visitClassField(t,e)}),null!=t.constructorMethod&&this._visitClassConstructor(t,e),t.getters.forEach(function(t){return r._visitClassGetter(t,e)}),t.methods.forEach(function(t){return r._visitClassMethod(t,e)}),e.decIndent(),e.println(t,"}"),e.popClass(),null},e.prototype._visitClassField=function(t,e){t.hasModifier(Vc.Private)&&e.print(null,"/*private*/ "),e.print(null,t.name),this._printColonType(t.type,e),e.println(null,";")},e.prototype._visitClassGetter=function(t,e){t.hasModifier(Vc.Private)&&e.print(null,"private "),e.print(null,"get "+t.name+"()"),this._printColonType(t.type,e),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype._visitClassConstructor=function(t,e){e.print(t,"constructor("),this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.constructorMethod.body,e),e.decIndent(),e.println(t,"}")},e.prototype._visitClassMethod=function(t,e){t.hasModifier(Vc.Private)&&e.print(null,"private "),e.print(null,t.name+"("),this._visitParams(t.params,e),e.print(null,")"),this._printColonType(t.type,e,"void"),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," => {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.isExportedVar(t.name)&&e.print(t,"export "),e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+fl.name+") {"),e.incIndent();var r=[dl.set(fl.prop("stack",null)).toDeclStmt(null,[Vc.Final])].concat(t.catchStmts);return this.visitAllStatements(r,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitBuiltintType=function(t,e){var r;switch(t.name){case ec.Bool:r="boolean";break;case ec.Dynamic:r="any";break;case ec.Function:r="Function";break;case ec.Number:case ec.Int:r="number";break;case ec.String:r="string";break;default:throw new Error("Unsupported builtin type "+t.name)}return e.print(null,r),null},e.prototype.visitExpressionType=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitArrayType=function(t,e){return this.visitType(t.of,e),e.print(null,"[]"),null},e.prototype.visitMapType=function(t,e){return e.print(null,"{[key: string]:"),this.visitType(t.valueType,e),e.print(null,"}"),null},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case yc.ConcatArray:e="concat";break;case yc.SubscribeObservable:e="subscribe";break;case yc.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e.prototype._visitParams=function(t,e){var r=this;this.visitAllObjects(function(t){e.print(null,t.name),r._printColonType(t.type,e)},t,e,",")},e.prototype._resolveStaticSymbol=function(t){var e=t.reference;if(!(e instanceof fo))throw new Error("Internal error: unknown identifier "+JSON.stringify(t));var r=this._importResolver.getTypeArity(e)||void 0,n=this._importResolver.getImportAs(e)||e;return{name:n.name,filePath:n.filePath,members:n.members,arity:r}},e.prototype._visitIdentifier=function(t,e,r){var n=this,o=this._resolveStaticSymbol(t),i=o.name,s=o.filePath,a=o.members,u=o.arity;if(s!=this._genFilePath){var c=this.importsWithPrefixes.get(s);null==c&&(c="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(s,c)),r.print(null,c+".")}if(a.length?(r.print(null,i),r.print(null,"."),r.print(null,a.join("."))):r.print(null,i),this.typeExpression>0){var l=e&&e.length||0,p=(u||0)-l;if(l>0||p>0){if(r.print(null,"<"),l>0&&this.visitAllObjects(function(t){return t.visitType(n,r)},e,r,","),p>0)for(var h=0;h<p;h++)(h>0||l>0)&&r.print(null,","),r.print(null,"any");r.print(null,">")}}},e.prototype._printColonType=function(t,e,r){t!==ac&&(e.print(null,":"),this.visitType(t,e,r))},e}(vl),wl={};Ir(e.SecurityContext.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Ir(e.SecurityContext.STYLE,["*|style"]),Ir(e.SecurityContext.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","img|srcset","input|src","ins|cite","q|cite","source|src","source|srcset","track|src","video|poster","video|src"]),Ir(e.SecurityContext.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"]);var Cl="boolean",El="number",Sl="string",xl="object",Pl=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","keygen^[HTMLElement]|!autofocus,challenge,!disabled,keytype,name","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:cursor^:svg:|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime"],Tl={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Al=function(t){function r(){var e=t.call(this)||this;return e._schema={},Pl.forEach(function(t){var r={},n=t.split("|"),o=n[0],i=n[1].split(","),s=o.split("^"),a=s[0],u=s[1];a.split(",").forEach(function(t){return e._schema[t.toLowerCase()]=r});var c=u&&e._schema[u.toLowerCase()];c&&Object.keys(c).forEach(function(t){r[t]=c[t]}),i.forEach(function(t){if(t.length>0)switch(t[0]){case"*":break;case"!":r[t.substring(1)]=Cl;break;case"#":r[t.substring(1)]=El;break;case"%":r[t.substring(1)]=xl;break;default:r[t]=Sl}})}),e}return Jn(r,t),r.prototype.hasProperty=function(t,r,n){if(n.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if(o(t)||i(t))return!1;if(n.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!(this._schema[t.toLowerCase()]||this._schema.unknown)[r]},r.prototype.hasElement=function(t,r){if(r.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if(o(t)||i(t))return!0;if(r.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!this._schema[t.toLowerCase()]},r.prototype.securityContext=function(t,r,n){n&&(r=this.getMappedPropName(r)),t=t.toLowerCase(),r=r.toLowerCase();var o=wl[t+"|"+r];return o||((o=wl["*|"+r])||e.SecurityContext.NONE)},r.prototype.getMappedPropName=function(t){return Tl[t]||t},r.prototype.getDefaultComponentElementName=function(){return"ng-component"},r.prototype.validateProperty=function(t){return t.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event property '"+t+"' is disallowed for security reasons, please use ("+t.slice(2)+")=...\nIf '"+t+"' is a directive input, make sure the directive is imported by the current module."}:{error:!1}},r.prototype.validateAttribute=function(t){return t.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event attribute '"+t+"' is disallowed for security reasons, please use ("+t.slice(2)+")=..."}:{error:!1}},r.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},r.prototype.normalizeAnimationStyleProperty=function(t){return l(t)},r.prototype.normalizeAnimationStyleValue=function(t,e,r){var n="",o=r.toString().trim(),i=null;if(jr(t)&&0!==r&&"0"!==r)if("number"==typeof r)n="px";else{var s=r.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&(i="Please provide a CSS unit value for "+e+":"+r)}return{error:i,value:o+n}},r}(tu);Al.decorators=[{type:G}],Al.ctorParameters=function(){return[]};var Ol=function(){function t(){this.strictStyling=!0}return t.prototype.shimCssText=function(t,e,r){void 0===r&&(r="");var n=Lr(t);return t=Dr(t),t=this._insertDirectives(t),this._scopeCssText(t,e,r)+n},t.prototype._insertDirectives=function(t){return t=this._insertPolyfillDirectivesInCssText(t),this._insertPolyfillRulesInCssText(t)},t.prototype._insertPolyfillDirectivesInCssText=function(t){return t.replace(Rl,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[2]+"{"})},t.prototype._insertPolyfillRulesInCssText=function(t){return t.replace(kl,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[0].replace(t[1],"").replace(t[2],"");return t[4]+r})},t.prototype._scopeCssText=function(t,e,r){var n=this._extractUnscopedRulesFromCssText(t);return t=this._insertPolyfillHostInCssText(t),t=this._convertColonHost(t),t=this._convertColonHostContext(t),t=this._convertShadowDOMSelectors(t),e&&(t=this._scopeSelectors(t,e,r)),(t=t+"\n"+n).trim()},t.prototype._extractUnscopedRulesFromCssText=function(t){var e,r="";for(Nl.lastIndex=0;null!==(e=Nl.exec(t));)r+=e[0].replace(e[2],"").replace(e[1],e[4])+"\n\n";return r},t.prototype._convertColonHost=function(t){return this._convertColonRule(t,Ll,this._colonHostPartReplacer)},t.prototype._convertColonHostContext=function(t){return this._convertColonRule(t,Vl,this._colonHostContextPartReplacer)},t.prototype._convertColonRule=function(t,e,r){return t.replace(e,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t[2]){for(var n=t[2].split(","),o=[],i=0;i<n.length;i++){var s=n[i].trim();if(!s)break;o.push(r(Fl,s,t[3]))}return o.join(",")}return Fl+t[3]})},t.prototype._colonHostContextPartReplacer=function(t,e,r){return e.indexOf(Il)>-1?this._colonHostPartReplacer(t,e,r):t+e+r+", "+e+" "+t+r},t.prototype._colonHostPartReplacer=function(t,e,r){return t+e.replace(Il,"")+r},t.prototype._convertShadowDOMSelectors=function(t){return Bl.reduce(function(t,e){return t.replace(e," ")},t)},t.prototype._scopeSelectors=function(t,e,r){var n=this;return Vr(t,function(t){var o=t.selector,i=t.content;return"@"!=t.selector[0]?o=n._scopeSelector(t.selector,e,r,n.strictStyling):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(i=n._scopeSelectors(t.content,e,r)),new tp(o,i)})},t.prototype._scopeSelector=function(t,e,r,n){var o=this;return t.split(",").map(function(t){return t.trim().split(Hl)}).map(function(t){var i=t[0],s=t.slice(1);return[function(t){return o._selectorNeedsScoping(t,e)?n?o._applyStrictSelectorScope(t,e,r):o._applySelectorScope(t,e,r):t}(i)].concat(s).join(" ")}).join(", ")},t.prototype._selectorNeedsScoping=function(t,e){return!this._makeScopeMatcher(e).test(t)},t.prototype._makeScopeMatcher=function(t){var e=/\[/g,r=/\]/g;return t=t.replace(e,"\\[").replace(r,"\\]"),new RegExp("^("+t+")"+ql,"m")},t.prototype._applySelectorScope=function(t,e,r){return this._applySimpleSelectorScope(t,e,r)},t.prototype._applySimpleSelectorScope=function(t,e,r){if(Gl.lastIndex=0,Gl.test(t)){var n=this.strictStyling?"["+r+"]":e;return t.replace(Ul,function(t,e){return e.replace(/([^:]*)(:*)(.*)/,function(t,e,r,o){return e+n+r+o})}).replace(Gl,n+" ")}return e+" "+t},t.prototype._applyStrictSelectorScope=function(t,e,r){for(var n,o=this,i=/\[is=([^\]]*)\]/g,s="["+(e=e.replace(i,function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e[0]}))+"]",a=function(t){var n=t.trim();if(!n)return"";if(t.indexOf(Fl)>-1)n=o._applySimpleSelectorScope(t,e,r);else{var i=t.replace(Gl,"");if(i.length>0){var a=i.match(/([^:]*)(:*)(.*)/);a&&(n=a[1]+s+a[2]+a[3])}}return n},u=new Ml(t),c="",l=0,p=/( |>|\+|~(?!=))\s*/g,h=(t=u.content()).indexOf(Fl);null!==(n=p.exec(t));){var f=n[1],d=t.slice(l,n.index).trim();c+=(l>=h?a(d):d)+" "+f+" ",l=p.lastIndex}return c+=a(t.substring(l)),u.restore(c)},t.prototype._insertPolyfillHostInCssText=function(t){return t.replace($l,jl).replace(zl,Il)},t}(),Ml=function(){function t(t){var e=this;this.placeholders=[],this.index=0,t=t.replace(/(\[[^\]]*\])/g,function(t,r){var n="__ph-"+e.index+"__";return e.placeholders.push(r),e.index++,n}),this._content=t.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(t,r,n){var o="__ph-"+e.index+"__";return e.placeholders.push(n),e.index++,r+o})}return t.prototype.restore=function(t){var e=this;return t.replace(/__ph-(\d+)__/g,function(t,r){return e.placeholders[+r]})},t.prototype.content=function(){return this._content},t}(),Rl=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,kl=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Nl=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Il="-shadowcsshost",jl="-shadowcsscontext",Dl=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Ll=new RegExp("("+Il+Dl,"gim"),Vl=new RegExp("("+jl+Dl,"gim"),Fl=Il+"-no-combinator",Ul=/-shadowcsshost-no-combinator([^\s]*)/,Bl=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Hl=/(?:>>>)|(?:\/deep\/)/g,ql="([>\\s~+[.,{:][\\s\\S]*)?$",Gl=/-shadowcsshost/gim,zl=/:host/gim,$l=/:host-context/gim,Wl=/\/\*\s*[\s\S]*?\*\//g,Kl=/\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//,Ql=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,Jl=/([{}])/g,Xl="{",Zl="}",Yl="%BLOCK%",tp=function(){function t(t,e){this.selector=t,this.content=e}return t}(),ep=function(){function t(t,e){this.escapedString=t,this.blocks=e}return t}(),rp=function(){function t(t,e,r,n){this.name=t,this.moduleUrl=e,this.isShimmed=r,this.valuePlaceholder=n}return t}(),np=function(){function t(t,e){this.componentStylesheet=t,this.externalStylesheets=e}return t}(),op=function(){function t(t,e,r,n,o){this.statements=t,this.stylesVar=e,this.dependencies=r,this.isShimmed=n,this.meta=o}return t}(),ip=function(){function t(t){this._urlResolver=t,this._shadowCss=new Ol}return t.prototype.compileComponent=function(t){var e=this,r=t.template,n=[],o=this._compileStyles(t,new $o({styles:r.styles,styleUrls:r.styleUrls,moduleUrl:S(t.type)}),!0);return r.externalStylesheets.forEach(function(r){var o=e._compileStyles(t,r,!1);n.push(o)}),new np(o,n)},t.prototype._compileStyles=function(t,r,n){for(var o=this,i=t.template.encapsulation===e.ViewEncapsulation.Emulated,s=r.styles.map(function(t){return Er(o._shimIfNeeded(t,i))}),a=[],u=0;u<r.styleUrls.length;u++){var c={reference:null};a.push(new rp(Ur(null),r.styleUrls[u],i,c)),s.push(new wc(c))}var l=Ur(n?t:null),p=mr(l).set(_r(s,new oc(sc,[Yu.Const]))).toDeclStmt(null,[Vc.Final]);return new op([p],l,a,i,r)},t.prototype._shimIfNeeded=function(t,e){return e?this._shadowCss.shimCssText(t,"_ngcontent-%COMP%","_nghost-%COMP%"):t},t}();ip.decorators=[{type:G}],ip.ctorParameters=function(){return[{type:Vu}]};var sp=function(){function t(){}return t}();sp.event=mr("$event");var ap=function(){function t(t,e){this.stmts=t,this.allowDefault=e}return t}(),up=function(){function t(t,e){this.stmts=t,this.currValExpr=e}return t}(),cp={};cp.Statement=0,cp.Expression=1,cp[cp.Statement]="Statement",cp[cp.Expression]="Expression";var lp=function(t){function e(e){var r=t.call(this)||this;return r._converterFactory=e,r}return Jn(e,t),e.prototype.visitPipe=function(t,e){var r=this,n=[t.exp].concat(t.args).map(function(t){return t.visit(r,e)});return new fp(t.span,n,this._converterFactory.createPipeConverter(t.name,n.length))},e.prototype.visitLiteralArray=function(t,e){var r=this,n=t.expressions.map(function(t){return t.visit(r,e)});return new fp(t.span,n,this._converterFactory.createLiteralArrayConverter(t.expressions.length))},e.prototype.visitLiteralMap=function(t,e){var r=this,n=t.values.map(function(t){return t.visit(r,e)});return new fp(t.span,n,this._converterFactory.createLiteralMapConverter(t.keys))},e}(Pi),pp=function(){function t(t,e,r){this._localResolver=t,this._implicitReceiver=e,this.bindingId=r,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0}return t.prototype.visitBinary=function(t,e){var r;switch(t.operation){case"+":r=cc.Plus;break;case"-":r=cc.Minus;break;case"*":r=cc.Multiply;break;case"/":r=cc.Divide;break;case"%":r=cc.Modulo;break;case"&&":r=cc.And;break;case"||":r=cc.Or;break;case"==":r=cc.Equals;break;case"!=":r=cc.NotEquals;break;case"===":r=cc.Identical;break;case"!==":r=cc.NotIdentical;break;case"<":r=cc.Lower;break;case">":r=cc.Bigger;break;case"<=":r=cc.LowerEquals;break;case">=":r=cc.BiggerEquals;break;default:throw new Error("Unsupported operation "+t.operation)}return Jr(e,new Tc(r,this.visit(t.left,cp.Expression),this.visit(t.right,cp.Expression)))},t.prototype.visitChain=function(t,e){return Kr(e,t),this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return Jr(e,this.visit(t.condition,cp.Expression).conditional(this.visit(t.trueExp,cp.Expression),this.visit(t.falseExp,cp.Expression)))},t.prototype.visitPipe=function(t,e){throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: "+t.name)},t.prototype.visitFunctionCall=function(t,e){var r,n=this.visitAll(t.args,cp.Expression);return r=t instanceof fp?t.converter(n):this.visit(t.target,cp.Expression).callFn(n),Jr(e,r)},t.prototype.visitImplicitReceiver=function(t,e){return Qr(e,t),this._implicitReceiver},t.prototype.visitInterpolation=function(t,e){Qr(e,t);for(var r=[Er(t.expressions.length)],n=0;n<t.strings.length-1;n++)r.push(Er(t.strings[n])),r.push(this.visit(t.expressions[n],cp.Expression));return r.push(Er(t.strings[t.strings.length-1])),t.expressions.length<=9?yr(fe(za.inlineInterpolate)).callFn(r):yr(fe(za.interpolate)).callFn([r[0],_r(r.slice(1))])},t.prototype.visitKeyedRead=function(t,e){var r=this.leftMostSafeNode(t);return r?this.convertSafeAccess(t,r,e):Jr(e,this.visit(t.obj,cp.Expression).key(this.visit(t.key,cp.Expression)))},t.prototype.visitKeyedWrite=function(t,e){var r=this.visit(t.obj,cp.Expression),n=this.visit(t.key,cp.Expression),o=this.visit(t.value,cp.Expression);return Jr(e,r.key(n).set(o))},t.prototype.visitLiteralArray=function(t,e){throw new Error("Illegal State: literal arrays should have been converted into functions")},t.prototype.visitLiteralMap=function(t,e){throw new Error("Illegal State: literal maps should have been converted into functions")},t.prototype.visitLiteralPrimitive=function(t,e){return Jr(e,Er(t.value))},t.prototype._getLocal=function(t){return this._localResolver.getLocal(t)},t.prototype.visitMethodCall=function(t,e){var r=this.leftMostSafeNode(t);if(r)return this.convertSafeAccess(t,r,e);var n=this.visitAll(t.args,cp.Expression),o=null,i=this.visit(t.receiver,cp.Expression);if(i===this._implicitReceiver){var s=this._getLocal(t.name);s&&(o=s.callFn(n))}return null==o&&(o=i.callMethod(t.name,n)),Jr(e,o)},t.prototype.visitPrefixNot=function(t,e){return Jr(e,wr(this.visit(t.expression,cp.Expression)))},t.prototype.visitPropertyRead=function(t,e){var r=this.leftMostSafeNode(t);if(r)return this.convertSafeAccess(t,r,e);var n=null,o=this.visit(t.receiver,cp.Expression);return o===this._implicitReceiver&&(n=this._getLocal(t.name)),null==n&&(n=o.prop(t.name)),Jr(e,n)},t.prototype.visitPropertyWrite=function(t,e){var r=this.visit(t.receiver,cp.Expression);if(r===this._implicitReceiver&&this._getLocal(t.name))throw new Error("Cannot assign to a reference or variable!");return Jr(e,r.prop(t.name).set(this.visit(t.value,cp.Expression)))},t.prototype.visitSafePropertyRead=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitSafeMethodCall=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitAll=function(t,e){var r=this;return t.map(function(t){return r.visit(t,e)})},t.prototype.visitQuote=function(t,e){throw new Error("Quotes are not supported for evaluation!\n        Statement: "+t.uninterpretedExpression+" located at "+t.location)},t.prototype.visit=function(t,e){var r=this._resultMap.get(t);return r||(this._nodeMap.get(t)||t).visit(this,e)},t.prototype.convertSafeAccess=function(t,e,r){var n=this.visit(e.receiver,cp.Expression),o=void 0;this.needsTemporary(e.receiver)&&(n=(o=this.allocateTemporary()).set(n),this._resultMap.set(e.receiver,o));var i=n.isBlank();e instanceof wi?this._nodeMap.set(e,new bi(e.span,e.receiver,e.name,e.args)):this._nodeMap.set(e,new ui(e.span,e.receiver,e.name));var s=this.visit(t,cp.Expression);return this._nodeMap.delete(e),o&&this.releaseTemporary(o),Jr(r,i.conditional(Er(null),s))},t.prototype.leftMostSafeNode=function(t){var e=this,r=function(t,r){return(e._nodeMap.get(r)||r).visit(t)};return t.visit({visitBinary:function(t){return null},visitChain:function(t){return null},visitConditional:function(t){return null},visitFunctionCall:function(t){return null},visitImplicitReceiver:function(t){return null},visitInterpolation:function(t){return null},visitKeyedRead:function(t){return r(this,t.obj)},visitKeyedWrite:function(t){return null},visitLiteralArray:function(t){return null},visitLiteralMap:function(t){return null},visitLiteralPrimitive:function(t){return null},visitMethodCall:function(t){return r(this,t.receiver)},visitPipe:function(t){return null},visitPrefixNot:function(t){return null},visitPropertyRead:function(t){return r(this,t.receiver)},visitPropertyWrite:function(t){return null},visitQuote:function(t){return null},visitSafeMethodCall:function(t){return r(this,t.receiver)||t},visitSafePropertyRead:function(t){return r(this,t.receiver)||t}})},t.prototype.needsTemporary=function(t){var e=this,r=function(t,r){return r&&(e._nodeMap.get(r)||r).visit(t)},n=function(t,e){return e.some(function(e){return r(t,e)})};return t.visit({visitBinary:function(t){return r(this,t.left)||r(this,t.right)},visitChain:function(t){return!1},visitConditional:function(t){return r(this,t.condition)||r(this,t.trueExp)||r(this,t.falseExp)},visitFunctionCall:function(t){return!0},visitImplicitReceiver:function(t){return!1},visitInterpolation:function(t){return n(this,t.expressions)},visitKeyedRead:function(t){return!1},visitKeyedWrite:function(t){return!1},visitLiteralArray:function(t){return!0},visitLiteralMap:function(t){return!0},visitLiteralPrimitive:function(t){return!1},visitMethodCall:function(t){return!0},visitPipe:function(t){return!0},visitPrefixNot:function(t){return r(this,t.expression)},visitPropertyRead:function(t){return!1},visitPropertyWrite:function(t){return!1},visitQuote:function(t){return!1},visitSafeMethodCall:function(t){return!0},visitSafePropertyRead:function(t){return!1}})},t.prototype.allocateTemporary=function(){var t=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new hc(zr(this.bindingId,t))},t.prototype.releaseTemporary=function(t){if(this._currentTemporary--,t.name!=zr(this.bindingId,this._currentTemporary))throw new Error("Temporary "+t.name+" released out of order")},t}(),hp=function(){function t(){}return t.prototype.getLocal=function(t){return t===sp.event.name?sp.event:null},t}(),fp=function(t){function e(e,r,n){var o=t.call(this,e,null,r)||this;return o.args=r,o.converter=n,o}return Jn(e,t),e}(Ci),dp="class",mp="style",yp=function(){function t(t,e,r){this.statements=t,this.viewClassVar=e,this.rendererTypeVar=r}return t}(),vp=function(){function t(t,e){this._genConfigNext=t,this._schemaRegistry=e}return t.prototype.compileComponent=function(t,e,r,n){var o=0,i=dn(e),s=[],a=void 0;if(!t.isHost){var u=t.template,c=[];u.animations&&u.animations.length&&c.push(new Rc("animation",Pr(u.animations),!0));var l=mr(P(t.type.reference));a=l.name,s.push(l.set(yr(fe(za.createRendererType2)).callFn([new kc([new Rc("encapsulation",Er(u.encapsulation)),new Rc("styles",r),new Rc("data",new kc(c))])])).toDeclStmt(vr(fe(za.RendererType2)),[Vc.Final]))}var p=function(e){var r=o++;return new Sp(e,t,r,n,i,p)},h=p(null);return h.visitAll([],e),s.push.apply(s,h.build()),new yp(s,h.viewName,a)},t}();vp.decorators=[{type:G}],vp.ctorParameters=function(){return[{type:Yo},{type:tu}]};var gp=mr("l"),_p=mr("v"),bp=mr("ck"),wp=mr("co"),Cp=mr("en"),Ep=mr("ad"),Sp=function(){function t(t,e,r,n,o,i){this.parent=t,this.component=e,this.embeddedViewIndex=r,this.usedPipes=n,this.staticQueryIds=o,this.viewBuilderFactory=i,this.nodes=[],this.purePipeNodeIndices=Object.create(null),this.refNodeIndices=Object.create(null),this.variables=[],this.children=[],this.compType=this.embeddedViewIndex>0?sc:vr(this.component.type)}return Object.defineProperty(t.prototype,"viewName",{get:function(){return x(this.component.type.reference,this.embeddedViewIndex)},enumerable:!0,configurable:!0}),t.prototype.visitAll=function(t,e){var n=this;if(this.variables=t,this.parent||this.usedPipes.forEach(function(t){t.pure&&(n.purePipeNodeIndices[t.name]=n._createPipe(null,t))}),!this.parent){var o=mn(this.staticQueryIds);this.component.viewQueries.forEach(function(t,e){var r=e+1,i=t.first?0:1,s=134217728|gn(o,r,t.first);n.nodes.push(function(){return{sourceSpan:null,nodeFlags:s,nodeDef:yr(fe(za.queryDef)).callFn([Er(s),Er(r),new kc([new Rc(t.propertyName,Er(i))])])}})})}r(this,e),this.parent&&(0===e.length||an(e))&&this.nodes.push(function(){return{sourceSpan:null,nodeFlags:1,nodeDef:yr(fe(za.anchorDef)).callFn([Er(0),Dc,Dc,Er(0)])}})},t.prototype.build=function(t){void 0===t&&(t=[]),this.children.forEach(function(e){return e.build(t)});var r=this._createNodeExpressions(),n=r.updateRendererStmts,o=r.updateDirectivesStmts,i=r.nodeDefExprs,s=this._createUpdateFn(n),a=this._createUpdateFn(o),u=0;this.parent||this.component.changeDetection!==e.ChangeDetectionStrategy.OnPush||(u|=2);var c=new Bc(this.viewName,[new xc(gp.name)],[new qc(yr(fe(za.viewDef)).callFn([Er(u),_r(i),a,s]))],vr(fe(za.ViewDefinition)));return t.push(c),t},t.prototype._createUpdateFn=function(t){var e;if(t.length>0){var r=[];!this.component.isHost&&hr(t).has(wp.name)&&r.push(wp.set(_p.prop("component")).toDeclStmt(this.compType)),e=Cr([new xc(bp.name,ac),new xc(_p.name,ac)],r.concat(t),ac)}else e=Dc;return e},t.prototype.visitNgContent=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:8,nodeDef:yr(fe(za.ngContentDef)).callFn([Er(t.ngContentIndex),Er(t.index)])}})},t.prototype.visitText=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:yr(fe(za.textDef)).callFn([Er(t.ngContentIndex),_r([Er(t.value)])])}})},t.prototype.visitBoundText=function(t,e){var r=this,n=this.nodes.length;this.nodes.push(null);var o=t.value.ast,i=o.expressions.map(function(e,o){return r._preprocessUpdateExpression({nodeIndex:n,bindingIndex:o,sourceSpan:t.sourceSpan,context:wp,value:e})});this.nodes[n]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:yr(fe(za.textDef)).callFn([Er(t.ngContentIndex),_r(o.strings.map(function(t){return Er(t)}))]),updateRenderer:i}}},t.prototype.visitEmbeddedTemplate=function(t,e){var r=this,n=this.nodes.length;this.nodes.push(null);var o=this._visitElementOrTemplate(n,t),i=o.flags,s=o.queryMatchesExpr,a=o.hostEvents,u=this.viewBuilderFactory(this);this.children.push(u),u.visitAll(t.variables,t.children);var c=this.nodes.length-n-1;this.nodes[n]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|i,nodeDef:yr(fe(za.anchorDef)).callFn([Er(i),s,Er(t.ngContentIndex),Er(c),r._createElementHandleEventFn(n,a),mr(u.viewName)])}}},t.prototype.visitElement=function(t,e){var n=this,i=this.nodes.length;this.nodes.push(null);var s=o(t.name)?null:t.name,a=this._visitElementOrTemplate(i,t),u=a.flags,c=a.usedEvents,l=a.queryMatchesExpr,p=a.hostBindings,h=a.hostEvents,f=[],d=[],m=[];if(s){var y=t.inputs.map(function(t){return{context:wp,inputAst:t,dirAst:null}}).concat(p);y.length&&(d=y.map(function(t,e){return n._preprocessUpdateExpression({context:t.context,nodeIndex:i,bindingIndex:e,sourceSpan:t.inputAst.sourceSpan,value:t.inputAst.value})}),f=y.map(function(t){return cn(t.inputAst,t.dirAst)})),m=c.map(function(t){var e=t[0],r=t[1];return _r([Er(e),Er(r)])})}r(this,t.children);var v=this.nodes.length-i-1,g=t.directives.find(function(t){return t.directive.isComponent}),_=Dc,b=Dc;g&&(b=yr({reference:g.directive.componentViewType}),_=yr({reference:g.directive.rendererType})),this.nodes[i]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|u,nodeDef:yr(fe(za.elementDef)).callFn([Er(u),l,Er(t.ngContentIndex),Er(v),Er(s),s?ln(t):Dc,f.length?_r(f):Dc,m.length?_r(m):Dc,n._createElementHandleEventFn(i,h),b,_]),updateRenderer:d}}},t.prototype._visitElementOrTemplate=function(t,r){var n=this,o=0;r.hasViewContainer&&(o|=16777216);var i=new Map;r.outputs.forEach(function(t){var r=vn(t,null),n=r.name,o=r.target;i.set(e.ɵelementEventFullName(o,n),[o,n])}),r.directives.forEach(function(t){t.hostEvents.forEach(function(r){var n=vn(r,t),o=n.name,s=n.target;i.set(e.ɵelementEventFullName(s,o),[s,o])})});var s=[],a=[],u=yn(r.directives);u&&this._visitProvider(u,r.queryMatches),r.providers.forEach(function(e,o){var u=void 0,c=void 0;if(r.directives.forEach(function(t,r){t.directive.type.reference===R(e.token)&&(u=t,c=r)}),u){var l=n._visitDirective(e,u,c,t,r.references,r.queryMatches,i,n.staticQueryIds.get(r)),p=l.hostBindings,h=l.hostEvents;s.push.apply(s,p),a.push.apply(a,h)}else n._visitProvider(e,r.queryMatches)});var c=[];return r.queryMatches.forEach(function(t){var e=void 0;R(t.value)===he(za.ElementRef)?e=0:R(t.value)===he(za.ViewContainerRef)?e=3:R(t.value)===he(za.TemplateRef)&&(e=2),null!=e&&c.push(_r([Er(t.queryId),Er(e)]))}),r.references.forEach(function(e){var r=void 0;e.value?R(e.value)===he(za.TemplateRef)&&(r=2):r=1,null!=r&&(n.refNodeIndices[e.name]=t,c.push(_r([Er(e.name),Er(r)])))}),r.outputs.forEach(function(t){a.push({context:wp,eventAst:t,dirAst:null})}),{flags:o,usedEvents:Array.from(i.values()),queryMatchesExpr:c.length?_r(c):Dc,hostBindings:s,hostEvents:a}},t.prototype._visitDirective=function(t,e,r,n,o,i,s,a){var u=this,c=this.nodes.length;this.nodes.push(null),e.directive.queries.forEach(function(t,r){var n=e.contentQueryStartId+r,o=67108864|gn(a,n,t.first),i=t.first?0:1;u.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:o,nodeDef:yr(fe(za.queryDef)).callFn([Er(o),Er(n),new kc([new Rc(t.propertyName,Er(i))])])}})});var l=this.nodes.length-c-1,p=this._visitProviderOrDirective(t,i),h=p.flags,f=p.queryMatchExprs,d=p.providerExpr,m=p.depsExpr;o.forEach(function(e){e.value&&R(e.value)===R(t.token)&&(u.refNodeIndices[e.name]=c,f.push(_r([Er(e.name),Er(4)])))}),e.directive.isComponent&&(h|=32768);var y=e.inputs.map(function(t,e){var r=_r([Er(e),Er(t.directiveName)]);return new Rc(t.directiveName,r,!1)}),v=[],g=e.directive;Object.keys(g.outputs).forEach(function(t){var e=g.outputs[t];s.has(e)&&v.push(new Rc(t,Er(e),!1))});var _=[];(e.inputs.length||(327680&h)>0)&&(_=e.inputs.map(function(t,e){return u._preprocessUpdateExpression({nodeIndex:c,bindingIndex:e,sourceSpan:t.sourceSpan,context:wp,value:t.value})}));var b=yr(fe(za.nodeValue)).callFn([_p,Er(c)]),w=e.hostProperties.map(function(t){return{context:b,dirAst:e,inputAst:t}}),C=e.hostEvents.map(function(t){return{context:b,eventAst:t,dirAst:e}});return this.nodes[c]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:16384|h,nodeDef:yr(fe(za.directiveDef)).callFn([Er(h),f.length?_r(f):Dc,Er(l),d,m,y.length?new kc(y):Dc,v.length?new kc(v):Dc]),updateDirectives:_,directive:e.directive.type}},{hostBindings:w,hostEvents:C}},t.prototype._visitProvider=function(t,e){var r=this.nodes.length;this.nodes.push(null);var n=this._visitProviderOrDirective(t,e),o=n.flags,i=n.queryMatchExprs,s=n.providerExpr,a=n.depsExpr;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:o,nodeDef:yr(fe(za.providerDef)).callFn([Er(o),i.length?_r(i):Dc,on(t.token),s,a])}}},t.prototype._visitProviderOrDirective=function(t,r){var n=0;t.eager||(n|=4096),t.providerType===lo.PrivateService&&(n|=8192),t.lifecycleHooks.forEach(function(r){r!==e.ɵLifecycleHooks.OnDestroy&&t.providerType!==lo.Directive&&t.providerType!==lo.Component||(n|=un(r))});var o=[];r.forEach(function(e){R(e.value)===R(t.token)&&o.push(_r([Er(e.queryId),Er(4)]))});var i=en(t),s=i.providerExpr,a=i.depsExpr,u=i.flags;return{flags:n|u,queryMatchExprs:o,providerExpr:s,depsExpr:a}},t.prototype.getLocal=function(t){if(t==sp.event.name)return sp.event;for(var e=_p,r=this;r;r=r.parent,e=e.prop("parent").cast(sc)){var n=r.refNodeIndices[t];if(null!=n)return yr(fe(za.nodeValue)).callFn([e,Er(n)]);var o=r.variables.find(function(e){return e.name===t});if(o){var i=o.value||"$implicit";return e.prop("context").prop(i)}}return null},t.prototype.createLiteralArrayConverter=function(t,e){if(0===e){var r=yr(fe(za.EMPTY_ARRAY));return function(){return r}}var n=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:32,nodeDef:yr(fe(za.pureArrayDef)).callFn([Er(e)])}}),function(t){return hn(n,t)}},t.prototype.createLiteralMapConverter=function(t,e){if(0===e.length){var r=yr(fe(za.EMPTY_MAP));return function(){return r}}var n=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:64,nodeDef:yr(fe(za.pureObjectDef)).callFn([_r(e.map(function(t){return Er(t)}))])}}),function(t){return hn(n,t)}},t.prototype.createPipeConverter=function(t,e,r){var n=this.usedPipes.find(function(t){return t.name===e});if(n.pure){var o=this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:128,nodeDef:yr(fe(za.purePipeDef)).callFn([Er(r)])}});for(var i=_p,s=this;s.parent;)s=s.parent,i=i.prop("parent").cast(sc);var a=s.purePipeNodeIndices[e],u=yr(fe(za.nodeValue)).callFn([i,Er(a)]);return function(e){return fn(t.nodeIndex,t.bindingIndex,hn(o,[u].concat(e)))}}var c=this._createPipe(t.sourceSpan,n),l=yr(fe(za.nodeValue)).callFn([_p,Er(c)]);return function(e){return fn(t.nodeIndex,t.bindingIndex,l.callMethod("transform",e))}},t.prototype._createPipe=function(t,r){var n=this.nodes.length,o=0;r.type.lifecycleHooks.forEach(function(t){t===e.ɵLifecycleHooks.OnDestroy&&(o|=un(t))});var i=r.type.diDeps.map(sn);return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:16,nodeDef:yr(fe(za.pipeDef)).callFn([Er(o),yr(r.type),_r(i)])}}),n},t.prototype._preprocessUpdateExpression=function(t){var e=this;return{nodeIndex:t.nodeIndex,bindingIndex:t.bindingIndex,sourceSpan:t.sourceSpan,context:t.context,value:Hr({createLiteralArrayConverter:function(r){return e.createLiteralArrayConverter(t.sourceSpan,r)},createLiteralMapConverter:function(r){return e.createLiteralMapConverter(t.sourceSpan,r)},createPipeConverter:function(r,n){return e.createPipeConverter(t,r,n)}},t.value)}},t.prototype._createNodeExpressions=function(){function t(t,n,o,i){var s=[],a=o.map(function(t){var n=t.sourceSpan,o=t.context,i=t.value,a=""+r++,u=qr(o===wp?e:null,o,i,a),c=u.stmts,l=u.currValExpr;return s.push.apply(s,c.map(function(t){return fr(t,n)})),dr(l,n)});return(o.length||i)&&s.push(fr(hn(t,a).toStmt(),n)),s}var e=this,r=0,n=[],o=[],i=this.nodes.map(function(e,r){var i=e(),s=i.nodeDef,a=i.nodeFlags,u=i.updateDirectives,c=i.updateRenderer,l=i.sourceSpan;return c&&n.push.apply(n,t(r,l,c,!1)),u&&o.push.apply(o,t(r,l,u,(327680&a)>0)),dr(3&a?new Nc([gp.callFn([]).callFn([]),s]):s,l)});return{updateRendererStmts:n,updateDirectivesStmts:o,nodeDefExprs:i}},t.prototype._createElementHandleEventFn=function(t,r){var n=this,o=[],i=0;r.forEach(function(t){var r=t.context,s=t.eventAst,a=t.dirAst,u=""+i++,c=Br(r===wp?n:null,r,s.handler,u),l=c.stmts,p=c.allowDefault,h=l;p&&h.push(Ep.set(p.and(Ep)).toStmt());var f=vn(s,a),d=f.target,m=f.name,y=e.ɵelementEventFullName(d,m);o.push(fr(new Qc(Er(y).identical(Cp),h),s.sourceSpan))});var s;if(o.length>0){var a=[Ep.set(Er(!0)).toDeclStmt(uc)];!this.component.isHost&&hr(o).has(wp.name)&&a.push(wp.set(_p.prop("component")).toDeclStmt(this.compType)),s=Cr([new xc(_p.name,ac),new xc(Cp.name,ac),new xc(sp.event.name,ac)],a.concat(o,[new qc(Ep)]),ac)}else s=Dc;return s},t.prototype.visitDirective=function(t,e){},t.prototype.visitDirectiveProperty=function(t,e){},t.prototype.visitReference=function(t,e){},t.prototype.visitVariable=function(t,e){},t.prototype.visitEvent=function(t,e){},t.prototype.visitElementProperty=function(t,e){},t.prototype.visitAttr=function(t,e){},t}(),xp=function(){function t(t,e,r){this.srcFileUrl=t,this.genFileUrl=e,this.source=r}return t}(),Pp=function(t){function e(e,r){var n=t.call(this)||this;return n.symbolResolver=e,n.summaryResolver=r,n.symbols=[],n.indexBySymbol=new Map,n.processedSummaryBySymbol=new Map,n.processedSummaries=[],n}return Jn(e,t),e.prototype.addOrMergeSummary=function(t){var e=t.metadata;if(e&&"class"===e.__symbolic){var r={};Object.keys(e).forEach(function(t){"decorators"!==t&&(r[t]=e[t])}),e=r}var n=this.processedSummaryBySymbol.get(t.symbol);n||(n=this.processValue({symbol:t.symbol}),this.processedSummaries.push(n),this.processedSummaryBySymbol.set(t.symbol,n)),null==n.metadata&&null!=e&&(n.metadata=this.processValue(e)),null==n.type&&null!=t.type&&(n.type=this.processValue(t.type))},e.prototype.serialize=function(){var t=this,e=[];return{json:JSON.stringify({summaries:this.processedSummaries,symbols:this.symbols.map(function(r,n){r.assertNoMembers();var o=void 0;return t.summaryResolver.isLibraryFile(r.filePath)&&(o=r.name+"_"+n,e.push({symbol:r,exportAs:o})),{__symbol:n,name:r.name,filePath:t.summaryResolver.getLibraryFileName(r.filePath),importAs:o}})}),exportAs:e}},e.prototype.processValue=function(t){return d(t,this,null)},e.prototype.visitOther=function(t,e){if(t instanceof fo){var r=this.symbolResolver.getStaticSymbol(t.filePath,t.name),n=this.indexBySymbol.get(r);return null==n&&(n=this.indexBySymbol.size,this.indexBySymbol.set(r,n),this.symbols.push(r)),{__symbol:n,members:t.members}}},e}(Ao),Tp=function(t){function e(e){var r=t.call(this)||this;return r.symbolCache=e,r}return Jn(e,t),e.prototype.deserialize=function(t){var e=this,r=JSON.parse(t),n=[];return this.symbols=[],r.symbols.forEach(function(t){var r=e.symbolCache.get(t.filePath,t.name);e.symbols.push(r),t.importAs&&n.push({symbol:r,importAs:t.importAs})}),{summaries:d(r.summaries,this,null),importAs:n}},e.prototype.visitStringMap=function(e,r){if("__symbol"in e){var n=this.symbols[e.__symbol],o=e.members;return o.length?this.symbolCache.get(n.filePath,n.name,o):n}return t.prototype.visitStringMap.call(this,e,r)},e}(Ao),Ap=function(){function t(t,e,r,n,o,i,s,a,u,c,l,p,h){this._config=t,this._host=e,this._metadataResolver=r,this._templateParser=n,this._styleCompiler=o,this._viewCompiler=i,this._ngModuleCompiler=s,this._outputEmitter=a,this._summaryResolver=u,this._localeId=c,this._translationFormat=l,this._genFilePreamble=p,this._symbolResolver=h}return t.prototype.clearCache=function(){this._metadataResolver.clearCache()},t.prototype.compileAll=function(t){var e=this,r=xn(Tn(this._symbolResolver,t,this._host),this._host,this._metadataResolver),n=r.ngModuleByPipeOrDirective,o=r.files,i=r.ngModules;return Promise.all(i.map(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){return I(o.map(function(t){return e._compileSrcFile(t.srcUrl,n,t.directives,t.pipes,t.ngModules,t.injectables)}))})},t.prototype._compileSrcFile=function(t,e,r,n,o,i){var s=this,a=Ze(t)[1],u=[],c=[],l=[];if(l.push(this._createSummary(t,r,n,o,i,u,c)),c.push.apply(c,o.map(function(t){return s._compileModule(t,u)})),r.forEach(function(r){var n=s._metadataResolver.getDirectiveMetadata(r);if(!n.isComponent)return Promise.resolve(null);var o=e.get(r);if(!o)throw new Error("Internal Error: cannot determine the module for component "+E(n.type)+"!");En(n);var i=s._styleCompiler.compileComponent(n);i.externalStylesheets.forEach(function(e){l.push(s._codgenStyles(t,e,a))});var p=s._compileComponent(n,o,o.transitiveModule.directives,i.componentStylesheet,a,u);c.push(s._compileComponentFactory(n,o,a,u),p.viewClassVar,p.compRenderTypeVar)}),u.length>0){var p=this._codegenSourceModule(t,Qe(t),u,c);l.unshift(p)}return l},t.prototype._createSummary=function(t,e,r,n,o,i,s){var a=this,u=this._symbolResolver.getSymbolsOf(t).map(function(t){return a._symbolResolver.resolveSymbol(t)}),c=n.map(function(t){return a._metadataResolver.getNgModuleSummary(t)}).concat(e.map(function(t){return a._metadataResolver.getDirectiveSummary(t)}),r.map(function(t){return a._metadataResolver.getPipeSummary(t)}),o.map(function(t){return a._metadataResolver.getInjectableSummary(t)})),l=_n(this._summaryResolver,this._symbolResolver,u,c),p=l.json;return l.exportAs.forEach(function(t){i.push(mr(t.exportAs).set(yr({reference:t.symbol})).toDeclStmt()),s.push(t.exportAs)}),new xp(t,Ye(t),p)},t.prototype._compileModule=function(t,e){var r=this._metadataResolver.getNgModuleMetadata(t),n=[];this._localeId&&n.push({token:me(za.LOCALE_ID),useValue:this._localeId}),this._translationFormat&&n.push({token:me(za.TRANSLATIONS_FORMAT),useValue:this._translationFormat});var o=this._ngModuleCompiler.compile(r,n);return e.push.apply(e,o.statements),o.ngModuleFactoryVar},t.prototype._compileComponentFactory=function(t,e,r,n){var o=this._metadataResolver.getHostComponentType(t.type.reference),i=k(o,t,this._metadataResolver.getHostComponentViewClass(o)),s=this._compileComponent(i,e,[t.type],null,r,n).viewClassVar,a=O(t.type.reference),u=[];for(var c in t.inputs){p=t.inputs[c];u.push(new Rc(c,Er(p),!1))}var l=[];for(var c in t.outputs){var p=t.outputs[c];l.push(new Rc(c,Er(p),!1))}return n.push(mr(a).set(yr(fe(za.createComponentFactory)).callFn([Er(t.selector),yr(t.type),mr(s),new kc(u),new kc(l),_r(t.template.ngContentSelectors.map(function(t){return Er(t)}))])).toDeclStmt(vr(fe(za.ComponentFactory),[vr(t.type)],[Yu.Const]),[Vc.Final])),a},t.prototype._compileComponent=function(t,e,r,n,o,i){var s=this,a=r.map(function(t){return s._metadataResolver.getDirectiveSummary(t.reference)}),u=e.transitiveModule.pipes.map(function(t){return s._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(t,t.template.template,a,u,e.schemas,D(e.type,t,t.template)),l=c.template,p=c.pipes,h=n?mr(n.stylesVar):_r([]),f=this._viewCompiler.compileComponent(t,l,h,p);return n&&i.push.apply(i,wn(this._symbolResolver,n,o)),i.push.apply(i,f.statements),{viewClassVar:f.viewClassVar,compRenderTypeVar:f.rendererTypeVar}},t.prototype._codgenStyles=function(t,e,r){return wn(this._symbolResolver,e,r),this._codegenSourceModule(t,Cn(e.meta.moduleUrl,e.isShimmed,r),e.statements,[e.stylesVar])},t.prototype._codegenSourceModule=function(t,e,r,n){return new xp(t,e,this._outputEmitter.emitStatements(j(t),e,r,n,this._genFilePreamble))},t}(),Op=function(){function t(t){this.staticDelegate=t,this.dynamicDelegate=new e.ɵReflectionCapabilities}return t.install=function(r){e.ɵreflector.updateCapabilities(new t(r))},t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return this.dynamicDelegate.factory(t)},t.prototype.hasLifecycleHook=function(t,e){return On(t)?this.staticDelegate.hasLifecycleHook(t,e):this.dynamicDelegate.hasLifecycleHook(t,e)},t.prototype.parameters=function(t){return On(t)?this.staticDelegate.parameters(t):this.dynamicDelegate.parameters(t)},t.prototype.annotations=function(t){return On(t)?this.staticDelegate.annotations(t):this.dynamicDelegate.annotations(t)},t.prototype.propMetadata=function(t){return On(t)?this.staticDelegate.propMetadata(t):this.dynamicDelegate.propMetadata(t)},t.prototype.getter=function(t){return this.dynamicDelegate.getter(t)},t.prototype.setter=function(t){return this.dynamicDelegate.setter(t)},t.prototype.method=function(t){return this.dynamicDelegate.method(t)},t.prototype.importUri=function(t){return this.staticDelegate.importUri(t)},t.prototype.resourceUri=function(t){return this.staticDelegate.resourceUri(t)},t.prototype.resolveIdentifier=function(t,e,r,n){return this.staticDelegate.resolveIdentifier(t,e,r)},t.prototype.resolveEnum=function(t,e){return On(t)?this.staticDelegate.resolveEnum(t,e):null},t}(),Mp="@angular/core",Rp=/^\$.*\$$/,kp={__symbolic:"ignore"},Np=function(){function t(t,r,n,o,i){void 0===n&&(n=[]),void 0===o&&(o=[]);var s=this;this.summaryResolver=t,this.symbolResolver=r,this.errorRecorder=i,this.annotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.conversionMap=new Map,this.annotationForParentClassWithSummaryKind=new Map,this.annotationNames=new Map,this.initializeConversionMap(),n.forEach(function(t){return s._registerDecoratorOrConstructor(s.getStaticSymbol(t.filePath,t.name),t.ctor)}),o.forEach(function(t){return s._registerFunction(s.getStaticSymbol(t.filePath,t.name),t.fn)}),this.annotationForParentClassWithSummaryKind.set(zo.Directive,[e.Directive,e.Component]),this.annotationForParentClassWithSummaryKind.set(zo.Pipe,[e.Pipe]),this.annotationForParentClassWithSummaryKind.set(zo.NgModule,[e.NgModule]),this.annotationForParentClassWithSummaryKind.set(zo.Injectable,[e.Injectable,e.Pipe,e.Directive,e.Component,e.NgModule]),this.annotationNames.set(e.Directive,"Directive"),this.annotationNames.set(e.Component,"Component"),this.annotationNames.set(e.Pipe,"Pipe"),this.annotationNames.set(e.NgModule,"NgModule"),this.annotationNames.set(e.Injectable,"Injectable")}return t.prototype.importUri=function(t){var e=this.findSymbolDeclaration(t);return e?e.filePath:null},t.prototype.resourceUri=function(t){var e=this.findSymbolDeclaration(t);return this.symbolResolver.getResourcePath(e)},t.prototype.resolveIdentifier=function(t,e,r){var n=this.getStaticSymbol(e,t),o=this.findDeclaration(e,t);return n!=o&&this.symbolResolver.recordImportAs(o,n),r&&r.length?this.getStaticSymbol(o.filePath,o.name,r):o},t.prototype.findDeclaration=function(t,e,r){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(t,e,r))},t.prototype.findSymbolDeclaration=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata instanceof fo?this.findSymbolDeclaration(e.metadata):t},t.prototype.resolveEnum=function(t,e){var r=t,n=(r.members||[]).concat(e);return this.getStaticSymbol(r.filePath,r.name,n)},t.prototype.annotations=function(t){var e=this,r=this.annotationCache.get(t);if(!r){r=[];var n=this.getTypeMetadata(t),o=this.findParentType(t,n);if(o){var i=this.annotations(o);r.push.apply(r,i)}var s=[];if(n.decorators&&(s=this.simplify(t,n.decorators),r.push.apply(r,s)),o&&!this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(o.filePath)){var a=this.summaryResolver.resolveSummary(o);if(a&&a.type){var u=this.annotationForParentClassWithSummaryKind.get(a.type.summaryKind);u.some(function(t){return s.some(function(e){return e instanceof t})})||this.reportError(v("Class "+t.name+" in "+t.filePath+" extends from a "+zo[a.type.summaryKind]+" in another compilation unit without duplicating the decorator. Please add a "+u.map(function(t){return e.annotationNames.get(t)}).join(" or ")+" decorator to the class."),t)}}this.annotationCache.set(t,r.filter(function(t){return!!t}))}return r},t.prototype.propMetadata=function(t){var e=this,r=this.propertyCache.get(t);if(!r){var n=this.getTypeMetadata(t);r={};var o=this.findParentType(t,n);if(o){var i=this.propMetadata(o);Object.keys(i).forEach(function(t){r[t]=i[t]})}var s=n.members||{};Object.keys(s).forEach(function(n){var o=s[n].find(function(t){return"property"==t.__symbolic||"method"==t.__symbolic}),i=[];r[n]&&i.push.apply(i,r[n]),r[n]=i,o&&o.decorators&&i.push.apply(i,e.simplify(t,o.decorators))}),this.propertyCache.set(t,r)}return r},t.prototype.parameters=function(t){if(!(t instanceof fo))return this.reportError(new Error("parameters received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),[];try{var e=this.parameterCache.get(t);if(!e){var r=this.getTypeMetadata(t),n=this.findParentType(t,r),o=r?r.members:null,i=o?o.__ctor__:null;if(i){var s=i.find(function(t){return"constructor"==t.__symbolic}),a=this.simplify(t,s.parameters||[]),u=this.simplify(t,s.parameterDecorators||[]);e=[],a.forEach(function(t,r){var n=[];t&&n.push(t);var o=u?u[r]:null;o&&n.push.apply(n,o),e.push(n)})}else n&&(e=this.parameters(n));e||(e=[]),this.parameterCache.set(t,e)}return e}catch(e){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+e),e}},t.prototype._methodNames=function(t){var e=this.methodCache.get(t);if(!e){var r=this.getTypeMetadata(t);e={};var n=this.findParentType(t,r);if(n){var o=this._methodNames(n);Object.keys(o).forEach(function(t){e[t]=o[t]})}var i=r.members||{};Object.keys(i).forEach(function(t){var r=i[t].some(function(t){return"method"==t.__symbolic});e[t]=e[t]||r}),this.methodCache.set(t,e)}return e},t.prototype.findParentType=function(t,e){var r=this.trySimplify(t,e.extends);if(r instanceof fo)return r},t.prototype.hasLifecycleHook=function(t,e){t instanceof fo||this.reportError(new Error("hasLifecycleHook received "+JSON.stringify(t)+" which is not a StaticSymbol"),t);try{return!!this._methodNames(t)[e]}catch(e){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+e),e}},t.prototype._registerDecoratorOrConstructor=function(t,e){this.conversionMap.set(t,function(t,r){return new(e.bind.apply(e,[void 0].concat(r)))})},t.prototype._registerFunction=function(t,e){this.conversionMap.set(t,function(t,r){return e.apply(void 0,r)})},t.prototype.initializeConversionMap=function(){this.injectionToken=this.findDeclaration(Mp,"InjectionToken"),this.opaqueToken=this.findDeclaration(Mp,"OpaqueToken"),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Injectable"),e.Injectable),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Inject"),e.Inject),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Optional"),e.Optional),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Attribute"),e.Attribute),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"ContentChild"),e.ContentChild),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"ContentChildren"),e.ContentChildren),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"ViewChild"),e.ViewChild),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"ViewChildren"),e.ViewChildren),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Input"),e.Input),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Output"),e.Output),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Pipe"),e.Pipe),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"HostBinding"),e.HostBinding),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"HostListener"),e.HostListener),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Directive"),e.Directive),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Component"),e.Component),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"NgModule"),e.NgModule),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Optional"),e.Optional),this._registerFunction(this.findDeclaration(Mp,"trigger"),e.trigger),this._registerFunction(this.findDeclaration(Mp,"state"),e.state),this._registerFunction(this.findDeclaration(Mp,"transition"),e.transition),this._registerFunction(this.findDeclaration(Mp,"style"),e.style),this._registerFunction(this.findDeclaration(Mp,"animate"),e.animate),this._registerFunction(this.findDeclaration(Mp,"keyframes"),e.keyframes),this._registerFunction(this.findDeclaration(Mp,"sequence"),e.sequence),this._registerFunction(this.findDeclaration(Mp,"group"),e.group)},t.prototype.getStaticSymbol=function(t,e,r){return this.symbolResolver.getStaticSymbol(t,e,r)},t.prototype.reportError=function(t,e,r){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||r)},t.prototype.trySimplify=function(t,e){var r=this.errorRecorder;this.errorRecorder=function(t,e){};var n=this.simplify(t,e);return this.errorRecorder=r,n},t.prototype.simplify=function(t,e){function r(t,e,n){function a(t){var e=o.symbolResolver.resolveSymbol(t);return e?e.metadata:null}function u(e,o,a){if(o&&"function"==o.__symbolic){if(s.get(e))throw new Error("Recursion not supported");s.set(e,!0);try{var u=o.value;if(u&&(0!=n||"error"!=u.__symbolic)){var l=o.parameters,p=o.defaults;a=a.map(function(e){return r(t,e,n+1)}).map(function(t){return Mn(t)?void 0:t}),p&&p.length>a.length&&a.push.apply(a,p.slice(a.length).map(function(t){return c(t)}));for(var h=Ip.build(),f=0;f<l.length;f++)h.define(l[f],a[f]);var d,m=i;try{i=h.done(),d=r(e,u,n+1)}finally{i=m}return d}}finally{s.delete(e)}}return 0===n?kp:c({__symbolic:"error",message:"Function call not supported",context:e})}function c(e){if(In(e))return e;if(e instanceof Array){for(var s=[],l=0,p=e;l<p.length;l++){var h=p[l];if(h&&"spread"===h.__symbolic){var f=c(h.expression);if(Array.isArray(f)){for(var d=0,m=f;d<m.length;d++){var y=m[d];s.push(y)}continue}}var v=c(h);Mn(v)||s.push(v)}return s}if(e instanceof fo)return e===o.injectionToken||e===o.opaqueToken||o.conversionMap.has(e)?e:(A=a(g=e))?r(g,A,n+1):g;if(e){if(e.__symbolic){var g=void 0;switch(e.__symbolic){case"binop":var _=c(e.left);if(Mn(_))return _;var b=c(e.right);if(Mn(b))return b;switch(e.operator){case"&&":return _&&b;case"||":return _||b;case"|":return _|b;case"^":return _^b;case"&":return _&b;case"==":return _==b;case"!=":return _!=b;case"===":return _===b;case"!==":return _!==b;case"<":return _<b;case">":return _>b;case"<=":return _<=b;case">=":return _>=b;case"<<":return _<<b;case">>":return _>>b;case"+":return _+b;case"-":return _-b;case"*":return _*b;case"/":return _/b;case"%":return _%b}return null;case"if":return c(c(e.condition)?e.thenExpression:e.elseExpression);case"pre":var w=c(e.operand);if(Mn(w))return w;switch(e.operator){case"+":return w;case"-":return-w;case"!":return!w;case"~":return~w}return null;case"index":var C=c(e.expression),E=c(e.index);return C&&In(E)?C[E]:null;case"select":var S=e.member,x=t,P=c(e.expression);if(P instanceof fo){var T=P.members.concat(S),A=a(x=o.getStaticSymbol(P.filePath,P.name,T));return A?r(x,A,n+1):x}return P&&In(S)?r(x,P[S],n+1):null;case"reference":var O=e.name,M=i.resolve(O);if(M!=Ip.missing)return M;break;case"class":case"function":return t;case"new":case"call":if((g=r(t,e.expression,n+1))instanceof fo){if(g===o.injectionToken||g===o.opaqueToken)return t;var R=e.arguments||[],k=o.conversionMap.get(g);if(k){var N=R.map(function(e){return r(t,e,n+1)}).map(function(t){return Mn(t)?void 0:t});return k(t,N)}return u(g,a(g),R)}return kp;case"error":var I=kn(e);return e.line?(I=I+" (position "+(e.line+1)+":"+(e.character+1)+" in the original .ts file)",o.reportError(jn(I,t.filePath,e.line,e.character),t)):o.reportError(new Error(I),t),kp;case"ignore":return e}return null}return Nn(e,function(t,e){return c(t)})}return kp}try{return c(e)}catch(e){var l=t.members.length?"."+t.members.join("."):"",p=e.message+", resolving symbol "+t.name+l+" in "+t.filePath;if(e.fileName)throw jn(p,e.fileName,e.line,e.column);throw v(p)}}var n=this,o=this,i=Ip.empty,s=new Map,a=this.errorRecorder?function(t,e,o){try{return r(t,e,o)}catch(e){n.reportError(e,t)}}(t,e,0):r(t,e,0);if(!Mn(a))return a},t.prototype.getTypeMetadata=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata?e.metadata:{__symbolic:"class"}},t}(),Ip=function(){function t(){}return t.prototype.resolve=function(t){},t.build=function(){var e=new Map;return{define:function(t,r){return e.set(t,r),this},done:function(){return e.size>0?new jp(e):t.empty}}},t}();Ip.missing={},Ip.empty={resolve:function(t){return Ip.missing}};var jp=function(t){function e(e){var r=t.call(this)||this;return r.bindings=e,r}return Jn(e,t),e.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):Ip.missing},e}(Ip),Dp=function(){function t(t,e){this.symbol=t,this.metadata=e}return t}(),Lp=function(){function t(t,e,r,n){this.host=t,this.staticSymbolCache=e,this.summaryResolver=r,this.errorRecorder=n,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.resolvedFilePaths=new Set,this.importAs=new Map,this.symbolResourcePaths=new Map,this.symbolFromFile=new Map}return t.prototype.resolveSymbol=function(t){if(t.members.length>0)return this._resolveSymbolMembers(t);var e=this.resolvedSymbols.get(t);return e||((e=this._resolveSymbolFromSummary(t))?e:(this._createSymbolsOf(t.filePath),e=this.resolvedSymbols.get(t)))},t.prototype.getImportAs=function(t){if(t.members.length){var e=this.getStaticSymbol(t.filePath,t.name),r=this.getImportAs(e);return r?this.getStaticSymbol(r.filePath,r.name,t.members):null}var n=this.summaryResolver.getImportAs(t);return n||(n=this.importAs.get(t)),n},t.prototype.getResourcePath=function(t){return this.symbolResourcePaths.get(t)||t.filePath},t.prototype.getTypeArity=function(t){if(Xe(t.filePath))return null;for(var e=this.resolveSymbol(t);e&&e.metadata instanceof fo;)e=this.resolveSymbol(e.metadata);return e&&e.metadata&&e.metadata.arity||null},t.prototype.recordImportAs=function(t,e){t.assertNoMembers(),e.assertNoMembers(),this.importAs.set(t,e)},t.prototype.invalidateFile=function(t){this.metadataCache.delete(t),this.resolvedFilePaths.delete(t);var e=this.symbolFromFile.get(t);if(e){this.symbolFromFile.delete(t);for(var r=0,n=e;r<n.length;r++){var o=n[r];this.resolvedSymbols.delete(o),this.importAs.delete(o),this.symbolResourcePaths.delete(o)}}},t.prototype._resolveSymbolMembers=function(t){var e=t.members,r=this.resolveSymbol(this.getStaticSymbol(t.filePath,t.name));if(!r)return null;var n=r.metadata;if(n instanceof fo)return new Dp(t,this.getStaticSymbol(n.filePath,n.name,e));if(!n||"class"!==n.__symbolic){for(var o=n,i=0;i<e.length&&o;i++)o=o[e[i]];return new Dp(t,o)}return n.statics&&1===e.length?new Dp(t,n.statics[e[0]]):null},t.prototype._resolveSymbolFromSummary=function(t){var e=this.summaryResolver.resolveSummary(t);return e?new Dp(t,e.metadata):null},t.prototype.getStaticSymbol=function(t,e,r){return this.staticSymbolCache.get(t,e,r)},t.prototype.getSymbolsOf=function(t){var e=new Set(this.summaryResolver.getSymbolsOf(t));return this._createSymbolsOf(t),this.resolvedSymbols.forEach(function(r){r.symbol.filePath===t&&e.add(r.symbol)}),Array.from(e)},t.prototype._createSymbolsOf=function(t){var e=this;if(!this.resolvedFilePaths.has(t)){this.resolvedFilePaths.add(t);var r=[],n=this.getModuleMetadata(t);if(n.metadata){var o=new Set(Object.keys(n.metadata).map(Dn)),i=n.origins||{};Object.keys(n.metadata).forEach(function(s){var a=n.metadata[s],u=Dn(s),c=e.getStaticSymbol(t,u),l=void 0;n.importAs&&(l=e.getStaticSymbol(n.importAs,u),e.recordImportAs(c,l));var p=i.hasOwnProperty(s)&&i[s];if(p){var h=e.resolveModule(p,t);h?e.symbolResourcePaths.set(c,h):e.reportError(new Error("Couldn't resolve original symbol for "+p+" from "+t))}r.push(e.createResolvedSymbol(c,t,o,a))})}if(n.exports)for(var s=this,a=0,u=n.exports;a<u.length;a++)!function(n){if(n.export)n.export.forEach(function(o){var i,s=i=Dn(i="string"==typeof o?o:o.as);"string"!=typeof o&&(s=Dn(o.name));var a=e.resolveModule(n.from,t);if(a){var u=e.getStaticSymbol(a,s),c=e.getStaticSymbol(t,i);r.push(e.createExport(c,u))}});else{var o=s.resolveModule(n.from,t);o&&s.getSymbolsOf(o).forEach(function(n){var o=e.getStaticSymbol(t,n.name);r.push(e.createExport(o,n))})}}(u[a]);r.forEach(function(t){return e.resolvedSymbols.set(t.symbol,t)}),this.symbolFromFile.set(t,r.map(function(t){return t.symbol}))}},t.prototype.createResolvedSymbol=function(t,e,r,n){if(this.summaryResolver.isLibraryFile(t.filePath)&&n&&"class"===n.__symbolic){var o={__symbolic:"class",arity:n.arity};return new Dp(t,o)}var i=this,s=d(n,new(function(n){function o(){return null!==n&&n.apply(this,arguments)||this}return Jn(o,n),o.prototype.visitStringMap=function(o,s){var a=o.__symbolic;if("function"===a){var u=s.length;s.push.apply(s,o.parameters||[]);var c=n.prototype.visitStringMap.call(this,o,s);return s.length=u,c}if("reference"!==a)return n.prototype.visitStringMap.call(this,o,s);var l=o.module,p=o.name?Dn(o.name):o.name;if(!p)return null;var h=void 0;return l?(h=i.resolveModule(l,t.filePath),h?i.getStaticSymbol(h,p):{__symbolic:"error",message:"Could not resolve "+l+" relative to "+t.filePath+"."}):s.indexOf(p)>=0?{__symbolic:"reference",name:p}:r.has(p)?i.getStaticSymbol(e,p):void 0},o}(Ao)),[]);return s instanceof fo?this.createExport(t,s):new Dp(t,s)},t.prototype.createExport=function(t,e){return t.assertNoMembers(),e.assertNoMembers(),this.summaryResolver.isLibraryFile(t.filePath)&&this.importAs.set(e,this.getImportAs(t)||t),new Dp(t,e)},t.prototype.reportError=function(t,e,r){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||r)},t.prototype.getModuleMetadata=function(t){var e=this.metadataCache.get(t);if(!e){var r=this.host.getMetadataFor(t);if(r){var n=-1;r.forEach(function(t){t.version>n&&(n=t.version,e=t)})}if(e||(e={__symbolic:"module",version:3,module:t,metadata:{}}),3!=e.version){var o=2==e.version?"Unsupported metadata version "+e.version+" for module "+t+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+t+", found version "+e.version+", expected 3";this.reportError(new Error(o))}this.metadataCache.set(t,e)}return e},t.prototype.getSymbolByModule=function(t,e,r){var n=this.resolveModule(t,r);return n?this.getStaticSymbol(n,e):(this.reportError(new Error("Could not resolve module "+t+(r?" relative to $ {\n            containingFile\n          } ":""))),this.getStaticSymbol("ERROR:"+t,e))},t.prototype.resolveModule=function(t,e){try{return this.host.moduleNameToFileName(t,e)}catch(r){console.error("Could not resolve module '"+t+"' relative to file "+e),this.reportError(r,void 0,e)}return null},t}(),Vp=function(){function t(t,e){this.host=t,this.staticSymbolCache=e,this.summaryCache=new Map,this.loadedFilePaths=new Set,this.importAs=new Map}return t.prototype.isLibraryFile=function(t){return!this.host.isSourceFile(Je(t))},t.prototype.getLibraryFileName=function(t){return this.host.getOutputFileName(t)},t.prototype.resolveSummary=function(t){t.assertNoMembers();var e=this.summaryCache.get(t);return e||(this._loadSummaryFile(t.filePath),e=this.summaryCache.get(t)),e},t.prototype.getSymbolsOf=function(t){return this._loadSummaryFile(t),Array.from(this.summaryCache.keys()).filter(function(e){return e.filePath===t})},t.prototype.getImportAs=function(t){return t.assertNoMembers(),this.importAs.get(t)},t.prototype._loadSummaryFile=function(t){var e=this;if(!this.loadedFilePaths.has(t)&&(this.loadedFilePaths.add(t),this.isLibraryFile(t))){var r=Ye(t),n=void 0;try{n=this.host.loadSummary(r)}catch(t){throw console.error("Error loading summary file "+r),t}if(n){var o=bn(this.staticSymbolCache,n),i=o.summaries,s=o.importAs;i.forEach(function(t){return e.summaryCache.set(t.symbol,t)}),s.forEach(function(r){e.importAs.set(r.symbol,e.staticSymbolCache.get(Qe(t),r.importAs))})}}},t}(),Fp=function(){function t(t,e,r,n){this.parent=t,this.instance=e,this.className=r,this.vars=n}return t.prototype.createChildWihtLocalVars=function(){return new t(this,this.instance,this.className,new Map)},t}(),Up=function(){function t(t){this.value=t}return t}(),Bp=function(){function t(){}return t.prototype.debugAst=function(t){return Nr(t)},t.prototype.visitDeclareVarStmt=function(t,e){return e.vars.set(t.name,t.value.visitExpression(this,e)),null},t.prototype.visitWriteVarExpr=function(t,e){for(var r=t.value.visitExpression(this,e),n=e;null!=n;){if(n.vars.has(t.name))return n.vars.set(t.name,r),r;n=n.parent}throw new Error("Not declared variable "+t.name)},t.prototype.visitReadVarExpr=function(t,e){var r=t.name;if(null!=t.builtin)switch(t.builtin){case pc.Super:return e.instance.__proto__;case pc.This:return e.instance;case pc.CatchError:r=Hp;break;case pc.CatchStack:r=qp;break;default:throw new Error("Unknown builtin variable "+t.builtin)}for(var n=e;null!=n;){if(n.vars.has(r))return n.vars.get(r);n=n.parent}throw new Error("Not declared variable "+r)},t.prototype.visitWriteKeyExpr=function(t,e){var r=t.receiver.visitExpression(this,e),n=t.index.visitExpression(this,e),o=t.value.visitExpression(this,e);return r[n]=o,o},t.prototype.visitWritePropExpr=function(t,e){var r=t.receiver.visitExpression(this,e),n=t.value.visitExpression(this,e);return r[t.name]=n,n},t.prototype.visitInvokeMethodExpr=function(t,e){var r,n=t.receiver.visitExpression(this,e),o=this.visitAllExpressions(t.args,e);if(null!=t.builtin)switch(t.builtin){case yc.ConcatArray:r=n.concat.apply(n,o);break;case yc.SubscribeObservable:r=n.subscribe({next:o[0]});break;case yc.Bind:r=n.bind.apply(n,o);break;default:throw new Error("Unknown builtin method "+t.builtin)}else r=n[t.name].apply(n,o);return r},t.prototype.visitInvokeFunctionExpr=function(t,e){var r=this.visitAllExpressions(t.args,e),n=t.fn;return n instanceof hc&&n.builtin===pc.Super?(e.instance.constructor.prototype.constructor.apply(e.instance,r),null):t.fn.visitExpression(this,e).apply(null,r)},t.prototype.visitReturnStmt=function(t,e){return new Up(t.value.visitExpression(this,e))},t.prototype.visitDeclareClassStmt=function(t,e){var r=Un(t,e,this);return e.vars.set(t.name,r),null},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e)},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e)?this.visitAllStatements(t.trueCase,e):null!=t.falseCase?this.visitAllStatements(t.falseCase,e):null},t.prototype.visitTryCatchStmt=function(t,e){try{return this.visitAllStatements(t.bodyStmts,e)}catch(n){var r=e.createChildWihtLocalVars();return r.vars.set(Hp,n),r.vars.set(qp,n.stack),this.visitAllStatements(t.catchStmts,r)}},t.prototype.visitThrowStmt=function(t,e){throw t.error.visitExpression(this,e)},t.prototype.visitCommentStmt=function(t,e){return null},t.prototype.visitInstantiateExpr=function(t,e){var r=this.visitAllExpressions(t.args,e),n=t.classExpr.visitExpression(this,e);return new(n.bind.apply(n,[void 0].concat(r)))},t.prototype.visitLiteralExpr=function(t,e){return t.value},t.prototype.visitExternalExpr=function(t,e){return t.value.reference},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e)?t.trueCase.visitExpression(this,e):null!=t.falseCase?t.falseCase.visitExpression(this,e):null},t.prototype.visitNotExpr=function(t,e){return!t.condition.visitExpression(this,e)},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e)},t.prototype.visitFunctionExpr=function(t,e){return Bn(t.params.map(function(t){return t.name}),t.statements,e,this)},t.prototype.visitDeclareFunctionStmt=function(t,e){var r=t.params.map(function(t){return t.name});return e.vars.set(t.name,Bn(r,t.statements,e,this)),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var r=this,n=function(){return t.lhs.visitExpression(r,e)},o=function(){return t.rhs.visitExpression(r,e)};switch(t.operator){case cc.Equals:return n()==o();case cc.Identical:return n()===o();case cc.NotEquals:return n()!=o();case cc.NotIdentical:return n()!==o();case cc.And:return n()&&o();case cc.Or:return n()||o();case cc.Plus:return n()+o();case cc.Minus:return n()-o();case cc.Divide:return n()/o();case cc.Multiply:return n()*o();case cc.Modulo:return n()%o();case cc.Lower:return n()<o();case cc.LowerEquals:return n()<=o();case cc.Bigger:return n()>o();case cc.BiggerEquals:return n()>=o();default:throw new Error("Unknown operator "+t.operator)}},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e)[t.name]},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e)[t.index.visitExpression(this,e)]},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e)},t.prototype.visitLiteralMapExpr=function(t,e){var r=this,n={};return t.entries.forEach(function(t){return n[t.key]=t.value.visitExpression(r,e)}),n},t.prototype.visitCommaExpr=function(t,e){var r=this.visitAllExpressions(t.parts,e);return r[r.length-1]},t.prototype.visitAllExpressions=function(t,e){var r=this;return t.map(function(t){return t.visitExpression(r,e)})},t.prototype.visitAllStatements=function(t,e){for(var r=0;r<t.length;r++){var n=t[r].visitStatement(this,e);if(n instanceof Up)return n}return null},t}(),Hp="error",qp="stack",Gp=function(t){function e(){var e=t.apply(this,arguments)||this;return e._evalArgNames=[],e._evalArgValues=[],e}return Jn(e,t),e.prototype.getArgs=function(){for(var t={},e=0;e<this._evalArgNames.length;e++)t[this._evalArgNames[e]]=this._evalArgValues[e];return t},e.prototype.visitExternalExpr=function(t,e){var r=t.value.reference,n=this._evalArgValues.indexOf(r);if(-1===n){n=this._evalArgValues.length,this._evalArgValues.push(r);var o=E(t.value)||"val";this._evalArgNames.push("jit_"+o+n)}return e.print(t,this._evalArgNames[n]),null},e}(function(t){function e(){return t.call(this,!1)||this}return Jn(e,t),e.prototype.visitDeclareClassStmt=function(t,e){var r=this;return e.pushClass(t),this._visitClassConstructor(t,e),null!=t.parent&&(e.print(t,t.name+".prototype = Object.create("),t.parent.visitExpression(this,e),e.println(t,".prototype);")),t.getters.forEach(function(n){return r._visitClassGetter(t,n,e)}),t.methods.forEach(function(n){return r._visitClassMethod(t,n,e)}),e.popClass(),null},e.prototype._visitClassConstructor=function(t,e){e.print(t,"function "+t.name+"("),null!=t.constructorMethod&&this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),null!=t.constructorMethod&&t.constructorMethod.body.length>0&&(e.println(t,"var self = this;"),this.visitAllStatements(t.constructorMethod.body,e)),e.decIndent(),e.println(t,"}")},e.prototype._visitClassGetter=function(t,e,r){r.println(t,"Object.defineProperty("+t.name+".prototype, '"+e.name+"', { get: function() {"),r.incIndent(),e.body.length>0&&(r.println(t,"var self = this;"),this.visitAllStatements(e.body,r)),r.decIndent(),r.println(t,"}});")},e.prototype._visitClassMethod=function(t,e,r){r.print(t,t.name+".prototype."+e.name+" = function("),this._visitParams(e.params,r),r.println(t,") {"),r.incIndent(),e.body.length>0&&(r.println(t,"var self = this;"),this.visitAllStatements(e.body,r)),r.decIndent(),r.println(t,"};")},e.prototype.visitReadVarExpr=function(e,r){if(e.builtin===pc.This)r.print(e,"self");else{if(e.builtin===pc.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");t.prototype.visitReadVarExpr.call(this,e,r)}return null},e.prototype.visitDeclareVarStmt=function(t,e){return e.print(t,"var "+t.name+" = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitInvokeFunctionExpr=function(e,r){var n=e.fn;return n instanceof hc&&n.builtin===pc.Super?(r.currentClass.parent.visitExpression(this,r),r.print(e,".call(this"),e.args.length>0&&(r.print(e,", "),this.visitAllExpressions(e.args,r,",")),r.print(e,")")):t.prototype.visitInvokeFunctionExpr.call(this,e,r),null},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"function("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+fl.name+") {"),e.incIndent();var r=[dl.set(fl.prop("stack")).toDeclStmt(null,[Vc.Final])].concat(t.catchStmts);return this.visitAllStatements(r,e),e.decIndent(),e.println(t,"}"),null},e.prototype._visitParams=function(t,e){this.visitAllObjects(function(t){return e.print(null,t.name)},t,e,",")},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case yc.ConcatArray:e="concat";break;case yc.SubscribeObservable:e="subscribe";break;case yc.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e}(vl)),zp=function(){function t(t,e,r,n,o,i,s,a){this._injector=t,this._metadataResolver=e,this._templateParser=r,this._styleCompiler=n,this._viewCompiler=o,this._ngModuleCompiler=i,this._compilerConfig=s,this._console=a,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._sharedStylesheetCount=0}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._compileModuleAndComponents(t,!0).syncResult},t.prototype.compileModuleAsync=function(t){return this._compileModuleAndComponents(t,!1).asyncResult},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._compileModuleAndAllComponents(t,!0).syncResult},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._compileModuleAndAllComponents(t,!1).asyncResult},t.prototype.getNgContentSelectors=function(t){this._console.warn("Compiler.getNgContentSelectors is deprecated. Use ComponentFactory.ngContentSelectors instead!");var r=this._compiledTemplateCache.get(t);if(!r)throw new Error("The component "+e.ɵstringify(t)+" is not yet compiled!");return r.compMeta.template.ngContentSelectors},t.prototype._compileModuleAndComponents=function(t,e){var r=this,n=this._loadModules(t,e),o=function(){return r._compileComponents(t,null),r._compileModule(t)};return e?new Oo(o()):new Oo(null,n.then(o))},t.prototype._compileModuleAndAllComponents=function(t,r){var n=this,o=this._loadModules(t,r),i=function(){var r=[];return n._compileComponents(t,r),new e.ModuleWithComponentFactories(n._compileModule(t),r)};return r?new Oo(i()):new Oo(null,o.then(i))},t.prototype._loadModules=function(t,e){var r=this,n=[];return this._metadataResolver.getNgModuleMetadata(t).transitiveModule.modules.forEach(function(t){n.push(r._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.reference,e))}),Promise.all(n)},t.prototype._compileModule=function(t){var r=this,n=this._compiledNgModuleCache.get(t);if(!n){var o=this._metadataResolver.getNgModuleMetadata(t),i=[this._metadataResolver.getProviderMetadata(new Zo(e.Compiler,{useFactory:function(){return new Wp(r,o.type.reference)}}))],s=this._ngModuleCompiler.compile(o,i);n=this._compilerConfig.useJit?qn(V(o),s.statements,[s.ngModuleFactoryVar])[0]:Vn(s.statements,[s.ngModuleFactoryVar])[0],this._compiledNgModuleCache.set(o.type.reference,n)}return n},t.prototype._compileComponents=function(t,e){var r=this,n=this._metadataResolver.getNgModuleMetadata(t),o=new Map,i=new Set;n.transitiveModule.modules.forEach(function(t){var n=r._metadataResolver.getNgModuleMetadata(t.reference);n.declaredDirectives.forEach(function(t){o.set(t.reference,n);var s=r._metadataResolver.getDirectiveMetadata(t.reference);if(s.isComponent&&(i.add(r._createCompiledTemplate(s,n)),e)){var a=r._createCompiledHostTemplate(s.type.reference,n);i.add(a),e.push(s.componentFactory)}})}),n.transitiveModule.modules.forEach(function(t){var e=r._metadataResolver.getNgModuleMetadata(t.reference);e.declaredDirectives.forEach(function(t){var e=r._metadataResolver.getDirectiveMetadata(t.reference);e.isComponent&&e.entryComponents.forEach(function(t){var e=o.get(t.componentType);i.add(r._createCompiledHostTemplate(t.componentType,e))})}),e.entryComponents.forEach(function(t){var e=o.get(t.componentType);i.add(r._createCompiledHostTemplate(t.componentType,e))})}),i.forEach(function(t){return r._compileTemplate(t)})},t.prototype.clearCacheFor=function(t){this._compiledNgModuleCache.delete(t),this._metadataResolver.clearCacheFor(t),this._compiledHostTemplateCache.delete(t),this._compiledTemplateCache.get(t)&&this._compiledTemplateCache.delete(t)},t.prototype.clearCache=function(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(),this._compiledNgModuleCache.clear()},t.prototype._createCompiledHostTemplate=function(t,r){if(!r)throw new Error("Component "+e.ɵstringify(t)+" is not part of any NgModule or the module has not been imported into your module.");var n=this._compiledHostTemplateCache.get(t);if(!n){var o=this._metadataResolver.getDirectiveMetadata(t);Gn(o);var i=o.componentFactory,s=k(this._metadataResolver.getHostComponentType(t),o,e.ɵgetComponentViewDefinitionFactory(i));n=new $p(!0,o.type,s,r,[o.type]),this._compiledHostTemplateCache.set(t,n)}return n},t.prototype._createCompiledTemplate=function(t,e){var r=this._compiledTemplateCache.get(t.type.reference);return r||(Gn(t),r=new $p(!1,t.type,t,e,e.transitiveModule.directives),this._compiledTemplateCache.set(t.type.reference,r)),r},t.prototype._compileTemplate=function(t){var e=this;if(!t.isCompiled){var r=t.compMeta,n=new Map,o=this._styleCompiler.compileComponent(r);o.externalStylesheets.forEach(function(t){n.set(t.meta.moduleUrl,t)}),this._resolveStylesCompileResult(o.componentStylesheet,n);var i,s,a=t.directives.map(function(t){return e._metadataResolver.getDirectiveSummary(t.reference)}),u=t.ngModule.transitiveModule.pipes.map(function(t){return e._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(r,r.template.template,a,u,t.ngModule.schemas,D(t.ngModule.type,t.compMeta,t.compMeta.template)),l=c.template,p=c.pipes,h=this._viewCompiler.compileComponent(r,l,mr(o.componentStylesheet.stylesVar),p),f=o.componentStylesheet.statements.concat(h.statements),d=r.isHost?[h.viewClassVar]:[h.viewClassVar,h.rendererTypeVar];this._compilerConfig.useJit?(i=(y=qn(F(t.ngModule.type,t.compMeta),f,d))[0],s=y[1]):(i=(m=Vn(f,d))[0],s=m[1]),t.compiled(i,s);var m,y}},t.prototype._resolveStylesCompileResult=function(t,e){var r=this;t.dependencies.forEach(function(t,n){var o=e.get(t.moduleUrl),i=r._resolveAndEvalStylesCompileResult(o,e);t.valuePlaceholder.reference=i})},t.prototype._resolveAndEvalStylesCompileResult=function(t,e){return this._resolveStylesCompileResult(t,e),this._compilerConfig.useJit?qn(L(t.meta,this._sharedStylesheetCount++),t.statements,[t.stylesVar])[0]:Vn(t.statements,[t.stylesVar])[0]},t}();zp.decorators=[{type:G}],zp.ctorParameters=function(){return[{type:e.Injector},{type:Xu},{type:Ou},{type:ip},{type:vp},{type:ol},{type:Yo},{type:e.ɵConsole}]};var $p=function(){function t(t,e,r,n,o){this.isHost=t,this.compType=e,this.compMeta=r,this.ngModule=n,this.directives=o,this._viewClass=null,this.isCompiled=!1}return t.prototype.compiled=function(t,e){this._viewClass=t,this.compMeta.componentViewType.setDelegate(t);for(var r in e)this.compMeta.rendererType[r]=e[r];this.isCompiled=!0},t}(),Wp=function(){function t(t,e){this._delegate=t,this._ngModule=e}return Object.defineProperty(t.prototype,"_injector",{get:function(){return this._delegate.injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._delegate.compileModuleSync(t)},t.prototype.compileModuleAsync=function(t){return this._delegate.compileModuleAsync(t)},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._delegate.compileModuleAndAllComponentsSync(t)},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._delegate.compileModuleAndAllComponentsAsync(t)},t.prototype.getNgContentSelectors=function(t){return this._delegate.getNgContentSelectors(t)},t.prototype.clearCache=function(){this._delegate.clearCache()},t.prototype.clearCacheFor=function(t){this._delegate.clearCacheFor(t)},t}(),Kp=function(){function t(t,e,r,n){void 0===n&&(n=null),this._htmlParser=t,this._implicitTags=e,this._implicitAttrs=r,this._locale=n,this._messages=[]}return t.prototype.updateFromTemplate=function(t,e,r){var n=this._htmlParser.parse(t,e,!0,r);if(n.errors.length)return n.errors;var o=Tt(n.rootNodes,r,this._implicitTags,this._implicitAttrs);return o.errors.length?o.errors:((i=this._messages).push.apply(i,o.messages),[]);var i},t.prototype.getMessages=function(){return this._messages},t.prototype.write=function(t,e){var r={},n=new Qp;this._messages.forEach(function(e){var n=t.digest(e);r.hasOwnProperty(n)?(o=r[n].sources).push.apply(o,e.sources):r[n]=e;var o});var o=Object.keys(r).map(function(o){var i=t.createNameMapper(r[o]),s=r[o],a=i?n.convert(s.nodes,i):s.nodes,u=new qs(a,{},{},s.meaning,s.description,o);return u.sources=s.sources,e&&u.sources.forEach(function(t){return t.filePath=e(t.filePath)}),u});return t.write(o,this._locale)},t}(),Qp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Jn(e,t),e.prototype.convert=function(t,e){var r=this;return e?t.map(function(t){return t.visit(r,e)}):t},e.prototype.visitTagPlaceholder=function(t,e){var r=this,n=e.toPublicName(t.startName),o=t.closeName?e.toPublicName(t.closeName):t.closeName,i=t.children.map(function(t){return t.visit(r,e)});return new Ws(t.tag,t.attrs,n,o,i,t.isVoid,t.sourceSpan)},e.prototype.visitPlaceholder=function(t,e){return new Ks(t.value,e.toPublicName(t.name),t.sourceSpan)},e.prototype.visitIcuPlaceholder=function(t,e){return new Qs(t.value,e.toPublicName(t.name),t.sourceSpan)},e}(Js),Jp=function(){function t(t,e,r,n){this.host=t,this.staticSymbolResolver=e,this.messageBundle=r,this.metadataResolver=n}return t.prototype.extract=function(t){var e=this,r=xn(Tn(this.staticSymbolResolver,t,this.host),this.host,this.metadataResolver),n=r.files,o=r.ngModules;return Promise.all(o.map(function(t){return e.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=[];if(n.forEach(function(r){var n=[];r.directives.forEach(function(t){var r=e.metadataResolver.getDirectiveMetadata(t);r&&r.isComponent&&n.push(r)}),n.forEach(function(n){var o=n.template.template,i=us.fromArray(n.template.interpolation);t.push.apply(t,e.messageBundle.updateFromTemplate(o,r.srcUrl,i))})}),t.length)throw new Error(t.map(function(t){return t.toString()}).join("\n"));return e.messageBundle})},t.create=function(r,n){var o=new qa(new Ua),i=Ue(),s=new mo,a=new Vp(r,s),u=new Lp(r,s,a),c=new Np(a,u);Op.install(c);var l=new Yo({defaultEncapsulation:e.ViewEncapsulation.Emulated,useJit:!1}),p=new Bu({get:function(t){return r.loadResource(t)}},i,o,l),h=new Al,f=new Xu(l,new Wu(c),new Gu(c),new Ku(c),a,h,p,new e.ɵConsole,s,c),d=new Kp(o,[],{},n);return{extractor:new t(r,u,d,f),staticReflector:c}},t}(),Xp={get:function(t){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+t+'"')}},Zp=new e.InjectionToken("HtmlParser"),Yp=[{provide:e.ɵReflector,useValue:e.ɵreflector},{provide:e.ɵReflectorReader,useExisting:e.ɵReflector},{provide:Du,useValue:Xp},Qu,e.ɵConsole,hs,gs,{provide:Zp,useClass:Ua},{provide:qa,useFactory:zn,deps:[Zp,[new e.Optional,new e.Inject(e.TRANSLATIONS)],[new e.Optional,new e.Inject(e.TRANSLATIONS_FORMAT)],[Yo],[e.ɵConsole]]},{provide:Ua,useExisting:qa},Ou,Bu,Xu,Lu,ip,vp,ol,{provide:Yo,useValue:new Yo},zp,{provide:e.Compiler,useExisting:zp},Al,{provide:tu,useExisting:Al},Vu,Gu,Ku,Wu],th=function(){function t(t){var r={useDebug:e.isDevMode(),useJit:!0,defaultEncapsulation:e.ViewEncapsulation.Emulated,missingTranslation:e.MissingTranslationStrategy.Warning,enableLegacyTemplate:!0};this._defaultOptions=[r].concat(t)}return t.prototype.createCompiler=function(t){void 0===t&&(t=[]);var r=Wn(this._defaultOptions.concat(t));return e.ReflectiveInjector.resolveAndCreate([Yp,{provide:Yo,useFactory:function(){return new Yo({useJit:r.useJit,defaultEncapsulation:r.defaultEncapsulation,missingTranslation:r.missingTranslation,enableLegacyTemplate:r.enableLegacyTemplate})},deps:[]},r.providers]).get(e.Compiler)},t}();th.decorators=[{type:G}],th.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Inject,args:[e.COMPILER_OPTIONS]}]}]};var eh=e.createPlatformFactory(e.platformCore,"coreDynamic",[{provide:e.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:e.CompilerFactory,useClass:th},{provide:e.PLATFORM_INITIALIZER,useValue:$n,multi:!0}]),rh=function(){function t(){}return t.prototype.fileNameToModuleName=function(t,e){},t.prototype.getImportAs=function(t){},t.prototype.getTypeArity=function(t){},t}();t.VERSION=Xn,t.TEMPLATE_TRANSFORMS=Pu,t.CompilerConfig=Yo,t.JitCompiler=zp,t.DirectiveResolver=Gu,t.PipeResolver=Ku,t.NgModuleResolver=Wu,t.DEFAULT_INTERPOLATION_CONFIG=cs,t.InterpolationConfig=us,t.NgModuleCompiler=ol,t.ViewCompiler=vp,t.isSyntaxError=g,t.syntaxError=v,t.TextAst=Zn,t.BoundTextAst=Yn,t.AttrAst=to,t.BoundElementPropertyAst=eo,t.BoundEventAst=ro,t.ReferenceAst=no,t.VariableAst=oo,t.ElementAst=io,t.EmbeddedTemplateAst=so,t.BoundDirectivePropertyAst=ao,t.DirectiveAst=uo,t.ProviderAst=co,t.ProviderAstType=lo,t.NgContentAst=po,t.PropertyBindingType=ho,t.templateVisitAll=r,t.CompileAnimationEntryMetadata=No,t.CompileAnimationStateMetadata=Io,t.CompileAnimationStateDeclarationMetadata=jo,t.CompileAnimationStateTransitionMetadata=Do,t.CompileAnimationMetadata=Lo,t.CompileAnimationKeyframesSequenceMetadata=Vo,t.CompileAnimationStyleMetadata=Fo,t.CompileAnimationAnimateMetadata=Uo,t.CompileAnimationWithStepsMetadata=Bo,t.CompileAnimationSequenceMetadata=Ho,t.CompileAnimationGroupMetadata=qo,t.identifierName=E,t.identifierModuleUrl=S,t.viewClassName=x,t.rendererTypeName=P,t.hostViewClassName=T,t.dirWrapperClassName=A,t.componentFactoryName=O,t.CompileSummaryKind=zo,t.tokenName=M,t.tokenReference=R,t.CompileStylesheetMetadata=$o,t.CompileTemplateMetadata=Wo,t.CompileDirectiveMetadata=Ko,t.createHostComponentMeta=k,t.CompilePipeMetadata=Qo,t.CompileNgModuleMetadata=Jo,t.TransitiveCompileNgModuleMetadata=Xo,t.ProviderMeta=Zo,t.flatten=I,t.sourceUrl=j,t.templateSourceUrl=D,t.sharedStylesheetJitUrl=L,t.ngModuleJitUrl=V,t.templateJitUrl=F,t.createAotCompiler=Ln,t.AotCompiler=Ap,t.analyzeNgModules=Sn,t.analyzeAndValidateNgModules=xn,t.extractProgramSymbols=Tn,t.GeneratedFile=xp,t.StaticReflector=Np,t.StaticAndDynamicReflectionCapabilities=Op,t.StaticSymbol=fo,t.StaticSymbolCache=mo,t.ResolvedStaticSymbol=Dp,t.StaticSymbolResolver=Lp,t.unescapeIdentifier=Dn,t.AotSummaryResolver=Vp,t.SummaryResolver=Qu,t.i18nHtmlParserFactory=zn,t.COMPILER_PROVIDERS=Yp,t.JitCompilerFactory=th,t.platformCoreDynamic=eh,t.createUrlResolverWithoutPackagePrefix=Fe,t.createOfflineCompileUrlResolver=Ue,t.DEFAULT_PACKAGE_URL_PROVIDER=Lu,t.UrlResolver=Vu,t.getUrlScheme=Be,t.ResourceLoader=Du,t.ElementSchemaRegistry=tu,t.Extractor=Jp,t.I18NHtmlParser=qa,t.MessageBundle=Kp,t.Serializer=va,t.Xliff=Pa,t.Xliff2=Ma,t.Xmb=Ia,t.Xtb=La,t.DirectiveNormalizer=Bu,t.ParserError=ti,t.ParseSpan=ei,t.AST=ri,t.Quote=ni,t.EmptyExpr=oi,t.ImplicitReceiver=ii,t.Chain=si,t.Conditional=ai,t.PropertyRead=ui,t.PropertyWrite=ci,t.SafePropertyRead=li,t.KeyedRead=pi,t.KeyedWrite=hi,t.BindingPipe=fi,t.LiteralPrimitive=di,t.LiteralArray=mi,t.LiteralMap=yi,t.Interpolation=vi,t.Binary=gi,t.PrefixNot=_i,t.MethodCall=bi,t.SafeMethodCall=wi,t.FunctionCall=Ci,t.ASTWithSource=Ei,t.TemplateBinding=Si,t.RecursiveAstVisitor=xi,t.AstTransformer=Pi,t.TokenType=ls,t.Lexer=hs,t.Token=fs,t.EOF=ds,t.isIdentifier=et,t.isQuote=it,t.SplitInterpolation=ys,t.TemplateBindingParseResult=vs,t.Parser=gs,t._ParseAST=_s,t.ERROR_COLLECTOR_TOKEN=Ju,t.CompileMetadataResolver=Xu,t.componentModuleUrl=ur,t.Text=Ps,t.Expansion=Ts,t.ExpansionCase=As,t.Attribute=Os,t.Element=Ms,t.Comment=Rs,t.visitAll=lt,t.ParseTreeResult=Us,t.TreeError=Fs,t.HtmlParser=Ua,t.HtmlTagDefinition=go,t.getHtmlTagDefinition=c,t.TagContentType=yo,t.splitNsName=n,t.isNgContainer=o,t.isNgContent=i,t.isNgTemplate=s,t.getNsPrefix=a,t.mergeNsAndName=u,t.NAMED_ENTITIES=vo,t.ImportResolver=rh,t.debugOutputAstAsTypeScript=Nr,t.TypeScriptEmitter=_l,t.ParseLocation=ws,t.ParseSourceFile=Cs,t.ParseSourceSpan=Es,t.ParseErrorLevel=Ss,t.ParseError=xs,t.typeSourceSpan=ct,t.DomElementSchemaRegistry=Al,t.CssSelector=Co,t.SelectorMatcher=Eo,t.SelectorListContext=So,t.SelectorContext=xo,t.StylesCompileDependency=rp,t.StylesCompileResult=np,t.CompiledStylesheet=op,t.StyleCompiler=ip,t.TemplateParseError=Tu,t.TemplateParseResult=Au,t.TemplateParser=Ou,t.splitClasses=Ne,t.createElementCssSelector=Ie,t.removeSummaryDuplicates=De,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":20}],20:[function(t,e,r){(function(n){!function(n,o){"object"==typeof r&&void 0!==e?o(r,t("rxjs/Observable"),t("rxjs/observable/merge"),t("rxjs/operator/share"),t("rxjs/Subject")):o((n.ng=n.ng||{},n.ng.core=n.ng.core||{}),n.Rx,n.Rx.Observable,n.Rx.Observable.prototype,n.Rx)}(this,function(t,e,r,o,i){"use strict";function s(){if(!lo){var t=co.Symbol;if(t&&t.iterator)lo=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),r=0;r<e.length;++r){var n=e[r];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(lo=n)}}return lo}function a(t){Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function u(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function c(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var r=e.indexOf("\n");return-1===r?e:e.substring(0,r)}function l(t){return"function"==typeof t&&t.hasOwnProperty("annotation")&&(t=t.annotation),t}function p(t,e){if(t===Object||t===String||t===Function||t===Number||t===Array)throw new Error("Can not use native "+c(t)+" as constructor");if("function"==typeof t)return t;if(Array.isArray(t)){var r=t,n=r.length-1,o=t[n];if("function"!=typeof o)throw new Error("Last position of Class method array must be Function in key "+e+" was '"+c(o)+"'");if(n!=o.length)throw new Error("Number of annotations ("+n+") does not match number of arguments ("+o.length+") in the function: "+c(o));for(var i=[],s=0,a=r.length-1;s<a;s++){var u=[];i.push(u);var p=r[s];if(Array.isArray(p))for(var h=0;h<p.length;h++)u.push(l(p[h]));else"function"==typeof p?u.push(l(p)):u.push(p)}return ho.defineMetadata("parameters",i,o),o}throw new Error("Only Function or Array is supported in Class definition for key '"+e+"' is '"+c(t)+"'")}function h(t){var e=p(t.hasOwnProperty("constructor")?t.constructor:void 0,"constructor"),r=e.prototype;if(t.hasOwnProperty("extends")){if("function"!=typeof t.extends)throw new Error("Class definition 'extends' property must be a constructor function was: "+c(t.extends));e.prototype=r=Object.create(t.extends.prototype)}for(var n in t)"extends"!==n&&"prototype"!==n&&t.hasOwnProperty(n)&&(r[n]=p(t[n],n));this&&this.annotations instanceof Array&&ho.defineMetadata("annotations",this.annotations,e);var o=e.name;return o&&"constructor"!==o||(e.overriddenName="class"+po++),e}function f(t,e,r,n){function o(t){if(!ho||!ho.getOwnMetadata)throw"reflect-metadata shim is required when using class decorators";if(this instanceof o)return i.call(this,t),this;var e=new o(t),r="function"==typeof this&&Array.isArray(this.annotations)?this.annotations:[];r.push(e);var s=function(t){var r=ho.getOwnMetadata("annotations",t)||[];return r.push(e),ho.defineMetadata("annotations",r,t),t};return s.annotations=r,s.Class=h,n&&n(s),s}var i=d([e]);return r&&(o.prototype=Object.create(r.prototype)),o.prototype.toString=function(){return"@"+t},o.annotationCls=o,o}function d(t){return function(){for(var e=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];t.forEach(function(t,n){var o=r[n];if(Array.isArray(t))e[t[0]]=void 0===o?t[1]:o;else for(var i in t)e[i]=o&&o.hasOwnProperty(i)?o[i]:t[i]})}}function m(t,e,r){function n(){function t(t,e,r){for(var n=ho.getOwnMetadata("parameters",t)||[];n.length<=r;)n.push(null);return n[r]=n[r]||[],n[r].push(i),ho.defineMetadata("parameters",n,t),t}for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this instanceof n)return o.apply(this,e),this;var i=new(n.bind.apply(n,[void 0].concat(e)));return t.annotation=i,t}var o=d(e);return r&&(n.prototype=Object.create(r.prototype)),n.prototype.toString=function(){return"@"+t},n.annotationCls=n,n}function y(t,e,r){function n(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof n)return o.apply(this,t),this;var r=new(n.bind.apply(n,[void 0].concat(t)));return function(t,e){var n=ho.getOwnMetadata("propMetadata",t.constructor)||{};n[e]=n.hasOwnProperty(e)&&n[e]||[],n[e].unshift(r),ho.defineMetadata("propMetadata",n,t.constructor)}}var o=d(e);return r&&(n.prototype=Object.create(r.prototype)),n.prototype.toString=function(){return"@"+t},n.annotationCls=n,n}function v(t){return null==t||t===wo.Default}function g(t){return t.__forward_ref__=g,t.toString=function(){return c(this())},t}function _(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===g?t():t}function b(t){return t[Wo]}function w(t){return t[Ko]}function C(t){return t[Qo]||E}function E(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];t.error.apply(t,e)}function S(t,e){var r=t+" caused by: "+(e instanceof Error?e.message:e),n=Error(r);return n[Ko]=e,n}function x(t){for(var e=[],r=0;r<t.length;++r){if(e.indexOf(t[r])>-1)return e.push(t[r]),e;e.push(t[r])}return e}function P(t){return t.length>1?" ("+x(t.slice().reverse()).map(function(t){return c(t.token)}).join(" -> ")+")":""}function T(t,e,r,n){var o=n?S("",n):Error();return o.addKey=A,o.keys=[e],o.injectors=[t],o.constructResolvingMessage=r,o.message=o.constructResolvingMessage(),o[Ko]=n,o}function A(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage()}function O(t,e){return T(t,e,function(){return"No provider for "+c(this.keys[0].token)+"!"+P(this.keys)})}function M(t,e){return T(t,e,function(){return"Cannot instantiate cyclic dependency!"+P(this.keys)})}function R(t,e,r,n){return T(t,n,function(){var t=c(this.keys[0].token);return w(this).message+": Error during instantiation of "+t+"!"+P(this.keys)+"."},e)}function k(t){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+t)}function N(t,e){for(var r=[],n=0,o=e.length;n<o;n++){var i=e[n];i&&0!=i.length?r.push(i.map(c).join(" ")):r.push("?")}return Error("Cannot resolve all parameters for '"+c(t)+"'("+r.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+c(t)+"' is decorated with Injectable.")}function I(t){return Error("Index "+t+" is out-of-bounds.")}function j(t,e){return Error("Cannot mix multi providers and regular providers, got: "+t+" "+e)}function D(t){return"function"==typeof t}function L(t){return t?t.map(function(t){var e=t.type.annotationCls,r=t.args?t.args:[];return new(e.bind.apply(e,[void 0].concat(r)))}):[]}function V(t){var e=Object.getPrototypeOf(t.prototype);return(e?e.constructor:null)||Object}function F(t){var e,r;if(t.useClass){var n=_(t.useClass);e=oi.factory(n),r=z(n)}else t.useExisting?(e=function(t){return t},r=[ii.fromKey(Xo.get(t.useExisting))]):t.useFactory?(e=t.useFactory,r=G(t.useFactory,t.deps)):(e=function(){return t.useValue},r=si);return new ui(e,r)}function U(t){return new ai(Xo.get(t.provide),[F(t)],t.multi||!1)}function B(t){var e=H(q(t,[]).map(U),new Map);return Array.from(e.values())}function H(t,e){for(var r=0;r<t.length;r++){var n=t[r],o=e.get(n.key.id);if(o){if(n.multiProvider!==o.multiProvider)throw j(o,n);if(n.multiProvider)for(var i=0;i<n.resolvedFactories.length;i++)o.resolvedFactories.push(n.resolvedFactories[i]);else e.set(n.key.id,n)}else{var s=void 0;s=n.multiProvider?new ai(n.key,n.resolvedFactories.slice(),n.multiProvider):n,e.set(n.key.id,s)}}return e}function q(t,e){return t.forEach(function(t){if(t instanceof Yo)e.push({provide:t,useClass:t});else if(t&&"object"==typeof t&&void 0!==t.provide)e.push(t);else{if(!(t instanceof Array))throw k(t);q(t,e)}}),e}function G(t,e){if(e){var r=e.map(function(t){return[t]});return e.map(function(e){return $(t,e,r)})}return z(t)}function z(t){var e=oi.parameters(t);if(!e)return[];if(e.some(function(t){return null==t}))throw N(t,e);return e.map(function(r){return $(t,r,e)})}function $(t,e,r){var n=null,o=!1;if(!Array.isArray(e))return e instanceof Lo?W(e.token,o,null):W(e,o,null);for(var i=null,s=0;s<e.length;++s){var a=e[s];a instanceof Yo?n=a:a instanceof Lo?n=a.token:a instanceof Vo?o=!0:a instanceof Uo||a instanceof Bo?i=a:a instanceof io&&(n=a)}if(null!=(n=_(n)))return W(n,o,i);throw N(t,r)}function W(t,e,r){return new ii(Xo.get(t),e,r)}function K(t,e){for(var r=new Array(t._providers.length),n=0;n<t._providers.length;++n)r[n]=e(t.getProviderAtIndex(n));return r}function Q(t){return!!t&&"function"==typeof t.then}function J(t){return!!t&&"function"==typeof t.subscribe}function X(){return""+Z()+Z()+Z()}function Z(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function Y(){throw new Error("Runtime compiler is not loaded")}function tt(t){var e=Error("No component factory found for "+c(t)+". Did you add it to @NgModule.entryComponents?");return e[Ai]=t,e}function et(){var t=co.wtf;return!(!t||!(Ri=t.trace))&&(ki=Ri.events,!0)}function rt(t,e){return void 0===e&&(e=null),ki.createScope(t,e)}function nt(t,e){return Ri.leaveScope(t,e),e}function ot(t,e){return Ri.beginTimeRange(t,e)}function it(t){Ri.endTimeRange(t)}function st(t,e){return null}function at(t){Qi=t}function ut(){if(Xi)throw new Error("Cannot enable prod mode after platform setup.");Ji=!1}function ct(){return Xi=!0,Ji}function lt(t){if(Ki&&!Ki.destroyed&&!Ki.injector.get(Zi,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ki=t.get(ts);var e=t.get(vi,null);return e&&e.forEach(function(t){return t()}),Ki}function pt(t,e,r){void 0===r&&(r=[]);var n=new io("Platform: "+e);return function(e){void 0===e&&(e=[]);var o=dt();return o&&!o.injector.get(Zi,!1)||(t?t(r.concat(e).concat({provide:n,useValue:!0})):lt(li.resolveAndCreate(r.concat(e).concat({provide:n,useValue:!0})))),ht(n)}}function ht(t){var e=dt();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}function ft(){Ki&&!Ki.destroyed&&Ki.destroy()}function dt(){return Ki&&!Ki.destroyed?Ki:null}function mt(t,e){try{var r=e();return Q(r)?r.catch(function(e){throw t.handleError(e),e}):r}catch(e){throw t.handleError(e),e}}function yt(t,e){var r=t.indexOf(e);r>-1&&t.splice(r,1)}function vt(t,e){var r=fs.get(t);if(r)throw new Error("Duplicate module registered for "+t+" - "+r.moduleType.name+" vs "+e.moduleType.name);fs.set(t,e)}function gt(t){var e=fs.get(t);if(!e)throw new Error("No module with ID "+t+" loaded");return e}function _t(t){return t.reduce(function(t,e){var r=Array.isArray(e)?_t(e):e;return t.concat(r)},[])}function bt(t,e,r){if(!t)throw new Error("Cannot find '"+r+"' in '"+e+"'");return t}function wt(t){return t.map(function(t){return t.nativeElement})}function Ct(t,e,r){t.childNodes.forEach(function(t){t instanceof xs&&(e(t)&&r.push(t),Ct(t,e,r))})}function Et(t,e,r){t instanceof xs&&t.childNodes.forEach(function(t){e(t)&&r.push(t),t instanceof xs&&Et(t,e,r)})}function St(t){return Ps.get(t)||null}function xt(t){Ps.set(t.nativeNode,t)}function Pt(t){Ps.delete(t.nativeNode)}function Tt(t,e){var r=At(t),n=At(e);if(r&&n)return Ot(t,e,Tt);var o=t&&("object"==typeof t||"function"==typeof t),i=e&&("object"==typeof e||"function"==typeof e);return!(r||!o||n||!i)||u(t,e)}function At(t){return!!Rt(t)&&(Array.isArray(t)||!(t instanceof Map)&&s()in t)}function Ot(t,e,r){for(var n=t[s()](),o=e[s()]();;){var i=n.next(),a=o.next();if(i.done&&a.done)return!0;if(i.done||a.done)return!1;if(!r(i.value,a.value))return!1}}function Mt(t,e){if(Array.isArray(t))for(var r=0;r<t.length;r++)e(t[r]);else for(var n=t[s()](),o=void 0;!(o=n.next()).done;)e(o.value)}function Rt(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function kt(t,e,r){var n=t.previousIndex;if(null===n)return n;var o=0;return r&&n<r.length&&(o=r[n]),n+e+o}function Nt(t){return t.name||typeof t}function It(){return oi}function jt(t,e){return t.nodes[e]}function Dt(t,e){return t.nodes[e]}function Lt(t,e){return t.nodes[e]}function Vt(t,e){return t.nodes[e]}function Ft(t,e){return t.nodes[e]}function Ut(t,e,r,n){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+r+"'.";return n&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),Ht(o,t)}function Bt(t,e){return t instanceof Error||(t=new Error(t.toString())),qt(t,e),t}function Ht(t,e){var r=new Error(t);return qt(r,e),r}function qt(t,e){t[Wo]=e,t[Qo]=e.logError.bind(e)}function Gt(t){return!!b(t)}function zt(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}function $t(t){var e=ta.get(t);return e||(e=c(t)+"_"+ta.size,ta.set(t,e)),e}function Wt(t,e,r,n){if(n instanceof Ts){n=n.wrapped;var o=t.def.nodes[e].bindingIndex+r,i=t.oldValues[o];i instanceof Ts&&(i=i.wrapped),t.oldValues[o]=new Ts(i)}return n}function Kt(t){return{id:ea,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}function Qt(t){if(t&&t.id===ea){var e=null!=t.encapsulation&&t.encapsulation!==No.None||t.styles.length||Object.keys(t.data).length;t.id=e?"c"+na++:ra}return t&&t.id===ra&&(t=null),t||null}function Jt(t,e,r,n){var o=t.oldValues;return!(!(2&t.state)&&u(o[e.bindingIndex+r],n))}function Xt(t,e,r,n){return!!Jt(t,e,r,n)&&(t.oldValues[e.bindingIndex+r]=n,!0)}function Zt(t,e,r,n){var o=t.oldValues[e.bindingIndex+r];if(1&t.state||!Tt(o,n))throw Ut(Zs.createDebugContext(t,e.index),o,n,0!=(1&t.state))}function Yt(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function te(t,e){for(var r=t;r&&r!==e;)r.state|=64,r=r.viewContainerParent||r.parent}function ee(t,e,r,n){return Yt(33554432&t.def.nodes[e].flags?Dt(t,e).componentView:t),Zs.handleEvent(t,e,r,n)}function re(t){return t.parent?Dt(t.parent,t.parentNodeDef.index):null}function ne(t){return t.parent?t.parentNodeDef.parent:null}function oe(t,e){switch(201347067&e.flags){case 1:return Dt(t,e.index).renderElement;case 2:return jt(t,e.index).renderText}}function ie(t,e){return t?t+":"+e:e}function se(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function ae(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function ue(t){return 1<<t%32}function ce(t){var e={},r=0,n={};return t&&t.forEach(function(t){var o=t[0],i=t[1];"number"==typeof o?(e[o]=i,r|=ue(o)):n[o]=i}),{matchedQueries:e,references:n,matchedQueryIds:r}}function le(t,e,r){var n=r.renderParent;return n?0==(1&n.flags)||0==(33554432&n.flags)||n.element.componentRendererType&&n.element.componentRendererType.encapsulation===No.Native?Dt(t,r.renderParent.index).renderElement:void 0:e}function pe(t){var e=oa.get(t);return e||((e=t(function(){return Ys})).factory=t,oa.set(t,e)),e}function he(t){var e=[];return fe(t,0,void 0,void 0,e),e}function fe(t,e,r,n,o){3===e&&(r=t.renderer.parentNode(oe(t,t.def.lastRenderRootNode))),de(t,e,0,t.def.nodes.length-1,r,n,o)}function de(t,e,r,n,o,i,s){for(var a=r;a<=n;a++){var u=t.def.nodes[a];11&u.flags&&ye(t,u,e,o,i,s),a+=u.childCount}}function me(t,e,r,n,o,i){for(var s=t;s&&!se(s);)s=s.parent;for(var a=s.parent,u=ne(s),c=u.index+1,l=u.index+u.childCount,p=c;p<=l;p++){var h=a.def.nodes[p];h.ngContentIndex===e&&ye(a,h,r,n,o,i),p+=h.childCount}if(!a.parent){var f=t.root.projectableNodes[e];if(f)for(p=0;p<f.length;p++)ve(t,f[p],r,n,o,i)}}function ye(t,e,r,n,o,i){if(8&e.flags)me(t,e.ngContent.index,r,n,o,i);else{var s=oe(t,e);if(3===r&&33554432&e.flags&&48&e.bindingFlags?(16&e.bindingFlags&&ve(t,s,r,n,o,i),32&e.bindingFlags&&ve(Dt(t,e.index).componentView,s,r,n,o,i)):ve(t,s,r,n,o,i),16777216&e.flags)for(var a=Dt(t,e.index).viewContainer._embeddedViews,u=0;u<a.length;u++)fe(a[u],r,n,o,i);1&e.flags&&!e.element.name&&de(t,r,e.index+1,e.index+e.childCount,n,o,i)}}function ve(t,e,r,n,o,i){var s=t.renderer;switch(r){case 1:s.appendChild(n,e);break;case 2:s.insertBefore(n,e,o);break;case 3:s.removeChild(n,e);break;case 0:i.push(e)}}function ge(t){if(":"===t[0]){var e=t.match(ia);return[e[1],e[2]]}return["",t]}function _e(t){for(var e=0,r=0;r<t.length;r++)e|=t[r].flags;return e}function be(t,e){for(var r="",n=0;n<2*t;n+=2)r=r+e[n]+Ce(e[n+1]);return r+e[2*t]}function we(t,e,r,n,o,i,s,a,u,c,l,p,h,f,d,m,y,v,g,_){switch(t){case 1:return e+Ce(r)+n;case 2:return e+Ce(r)+n+Ce(o)+i;case 3:return e+Ce(r)+n+Ce(o)+i+Ce(s)+a;case 4:return e+Ce(r)+n+Ce(o)+i+Ce(s)+a+Ce(u)+c;case 5:return e+Ce(r)+n+Ce(o)+i+Ce(s)+a+Ce(u)+c+Ce(l)+p;case 6:return e+Ce(r)+n+Ce(o)+i+Ce(s)+a+Ce(u)+c+Ce(l)+p+Ce(h)+f;case 7:return e+Ce(r)+n+Ce(o)+i+Ce(s)+a+Ce(u)+c+Ce(l)+p+Ce(h)+f+Ce(d)+m;case 8:return e+Ce(r)+n+Ce(o)+i+Ce(s)+a+Ce(u)+c+Ce(l)+p+Ce(h)+f+Ce(d)+m+Ce(y)+v;case 9:return e+Ce(r)+n+Ce(o)+i+Ce(s)+a+Ce(u)+c+Ce(l)+p+Ce(h)+f+Ce(d)+m+Ce(y)+v+Ce(g)+_;default:throw new Error("Does not support more than 9 expressions")}}function Ce(t){return null!=t?t.toString():""}function Ee(t,e,r,n,o,i){t|=1;var s=ce(e),a=s.matchedQueries,u=s.references;return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a,matchedQueryIds:s.matchedQueryIds,references:u,ngContentIndex:r,childCount:n,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?pe(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:o||Ys},provider:null,text:null,query:null,ngContent:null}}function Se(t,e,r,n,o,i,s,a,u,c,l){void 0===i&&(i=[]),u||(u=Ys);var p=ce(e),h=p.matchedQueries,f=p.references,d=p.matchedQueryIds,m=null,y=null;o&&(m=(N=ge(o))[0],y=N[1]),s=s||[];for(var v=new Array(s.length),g=0;g<s.length;g++){var _=s[g],b=_[0],w=_[1],C=_[2],E=ge(w),S=E[0],x=E[1],P=void 0,T=void 0;switch(15&b){case 4:T=C;break;case 1:case 8:P=C}v[g]={flags:b,ns:S,name:x,nonMinifiedName:x,securityContext:P,suffix:T}}a=a||[];for(var A=new Array(a.length),g=0;g<a.length;g++){var O=a[g],M=O[0],R=O[1];A[g]={type:0,target:M,eventName:R,propName:null}}var k=(i=i||[]).map(function(t){var e=t[0],r=t[1],n=ge(e);return[n[0],n[1],r]});return l=Qt(l),c&&(t|=33554432),t|=1,{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:h,matchedQueryIds:d,references:f,ngContentIndex:r,childCount:n,bindings:v,bindingFlags:_e(v),outputs:A,element:{ns:m,name:y,attrs:k,template:null,componentProvider:null,componentView:c||null,componentRendererType:l,publicProviders:null,allProviders:null,handleEvent:u||Ys},provider:null,text:null,query:null,ngContent:null};var N}function xe(t,e,r){var n,o=r.element,i=t.root.selectorOrNode,s=t.renderer;if(t.parent||!i){n=o.name?s.createElement(o.name,o.ns):s.createComment("");var a=le(t,e,r);a&&s.appendChild(a,n)}else n=s.selectRootElement(i);if(o.attrs)for(var u=0;u<o.attrs.length;u++){var c=o.attrs[u],l=c[0],p=c[1],h=c[2];s.setAttribute(n,p,h,l)}return n}function Pe(t,e,r,n){for(var o=0;o<r.outputs.length;o++){var i=r.outputs[o],s=Te(t,r.index,ie(i.target,i.eventName)),a=i.target,u=t;"component"===i.target&&(a=null,u=e);var c=u.renderer.listen(a||n,i.eventName,s);t.disposables[r.outputIndex+o]=c}}function Te(t,e,r){return function(n){try{return ee(t,e,r,n)}catch(e){t.root.errorHandler.handleError(e)}}}function Ae(t,e,r,n,o,i,s,a,u,c,l,p){var h=e.bindings.length,f=!1;return h>0&&Me(t,e,0,r)&&(f=!0),h>1&&Me(t,e,1,n)&&(f=!0),h>2&&Me(t,e,2,o)&&(f=!0),h>3&&Me(t,e,3,i)&&(f=!0),h>4&&Me(t,e,4,s)&&(f=!0),h>5&&Me(t,e,5,a)&&(f=!0),h>6&&Me(t,e,6,u)&&(f=!0),h>7&&Me(t,e,7,c)&&(f=!0),h>8&&Me(t,e,8,l)&&(f=!0),h>9&&Me(t,e,9,p)&&(f=!0),f}function Oe(t,e,r){for(var n=!1,o=0;o<r.length;o++)Me(t,e,o,r[o])&&(n=!0);return n}function Me(t,e,r,n){if(!Xt(t,e,r,n))return!1;var o=e.bindings[r],i=Dt(t,e.index),s=i.renderElement,a=o.name;switch(15&o.flags){case 1:Re(t,o,s,o.ns,a,n);break;case 2:ke(t,s,a,n);break;case 4:Ne(t,o,s,a,n);break;case 8:Ie(33554432&e.flags&&32&o.flags?i.componentView:t,o,s,a,n)}return!0}function Re(t,e,r,n,o,i){var s=e.securityContext,a=s?t.root.sanitizer.sanitize(s,i):i;a=null!=a?a.toString():null;var u=t.renderer;null!=i?u.setAttribute(r,o,a,n):u.removeAttribute(r,o,n)}function ke(t,e,r,n){var o=t.renderer;n?o.addClass(e,r):o.removeClass(e,r)}function Ne(t,e,r,n,o){var i=t.root.sanitizer.sanitize(Qs.STYLE,o);if(null!=i){i=i.toString();var s=e.suffix;null!=s&&(i+=s)}else i=null;var a=t.renderer;null!=i?a.setStyle(r,n,i):a.removeStyle(r,n)}function Ie(t,e,r,n,o){var i=e.securityContext,s=i?t.root.sanitizer.sanitize(i,o):o;t.renderer.setProperty(r,n,s)}function je(t,e){return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:e}}}function De(t,e,r){var n=le(t,e,r);n&&me(t,r.ngContent.index,1,n,null,void 0)}function Le(t,e,r,n){var o=e.viewContainer._embeddedViews;null!==r&&void 0!==r||(r=o.length),n.viewContainerParent=t,ze(o,r,n),Ve(e,n),Zs.dirtyParentQueries(n),qe(e,r>0?o[r-1]:null,n)}function Ve(t,e){var r=re(e);if(r&&r!==t&&!(16&e.state)){e.state|=16;var n=r.template._projectedViews;n||(n=r.template._projectedViews=[]),n.push(e),Fe(e.parent.def,e.parentNodeDef)}}function Fe(t,e){if(!(4&e.flags)){t.nodeFlags|=4,e.flags|=4;for(var r=e.parent;r;)r.childFlags|=4,r=r.parent}}function Ue(t,e){var r=t.viewContainer._embeddedViews;if((null==e||e>=r.length)&&(e=r.length-1),e<0)return null;var n=r[e];return n.viewContainerParent=null,$e(r,e),Zs.dirtyParentQueries(n),Ge(n),n}function Be(t){if(16&t.state){var e=re(t);if(e){var r=e.template._projectedViews;r&&($e(r,r.indexOf(t)),Zs.dirtyParentQueries(t))}}}function He(t,e,r){var n=t.viewContainer._embeddedViews,o=n[e];return $e(n,e),null==r&&(r=n.length),ze(n,r,o),Zs.dirtyParentQueries(o),Ge(o),qe(t,r>0?n[r-1]:null,o),o}function qe(t,e,r){var n=e?oe(e,e.def.lastRenderRootNode):t.renderElement;fe(r,2,r.renderer.parentNode(n),r.renderer.nextSibling(n),void 0)}function Ge(t){fe(t,3,null,null,void 0)}function ze(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function $e(t,e){e>=t.length-1?t.pop():t.splice(e,1)}function We(t,e,r,n,o,i){return new ca(t,e,r,n,o,i)}function Ke(t){return t.viewDefFactory}function Qe(t,e,r){return new pa(t,e,r)}function Je(t){return new ha(t)}function Xe(t,e){return new fa(t,e)}function Ze(t,e){return new da(t,e)}function Ye(t,e){var r=t.def.nodes[e];if(1&r.flags){var n=Dt(t,r.index);return r.element.template?n.template:n.renderElement}if(2&r.flags)return jt(t,r.index).renderText;if(20240&r.flags)return Lt(t,r.index).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function tr(t){return new ma(t.renderer)}function er(t,e,r,n,o,i,s){var a=[];if(i)for(var u in i){var c=i[u],l=c[0],p=c[1];a[l]={flags:8,name:u,nonMinifiedName:p,ns:null,securityContext:null,suffix:null}}var h=[];if(s)for(var f in s)h.push({type:1,propName:f,target:null,eventName:s[f]});return t|=16384,or(t,e,r,n,n,o,a,h)}function rr(t,e,r){return t|=16,or(t,null,0,e,e,r)}function nr(t,e,r,n,o){return or(t,e,0,r,n,o)}function or(t,e,r,n,o,i,s,a){var u=ce(e),c=u.matchedQueries,l=u.references,p=u.matchedQueryIds;a||(a=[]),s||(s=[]);var h=i.map(function(t){var e,r;return Array.isArray(t)?(r=t[0],e=t[1]):(r=0,e=t),{flags:r,token:e,tokenKey:$t(e)}});return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:p,references:l,ngContentIndex:-1,childCount:r,bindings:s,bindingFlags:_e(s),outputs:a,element:null,provider:{token:n,tokenKey:$t(n),value:o,deps:h},text:null,query:null,ngContent:null}}function ir(t,e){return 4096&e.flags?Ea:pr(t,e)}function sr(t,e){for(var r=t;r.parent&&!se(r);)r=r.parent;return hr(r.parent,ne(r),!0,e.provider.value,e.provider.deps)}function ar(t,e){var r=(32768&e.flags)>0,n=hr(t,e.parent,r,e.provider.value,e.provider.deps);if(e.outputs.length)for(var o=0;o<e.outputs.length;o++){var i=e.outputs[o],s=n[i.propName].subscribe(ur(t,e.parent.index,i.eventName));t.disposables[e.outputIndex+o]=s.unsubscribe.bind(s)}return n}function ur(t,e,r){return function(n){try{return ee(t,e,r,n)}catch(e){t.root.errorHandler.handleError(e)}}}function cr(t,e,r,n,o,i,s,a,u,c,l,p){var h=Lt(t,e.index),f=h.instance,d=!1,m=void 0,y=e.bindings.length;return y>0&&Jt(t,e,0,r)&&(d=!0,m=yr(t,h,e,0,r,m)),y>1&&Jt(t,e,1,n)&&(d=!0,m=yr(t,h,e,1,n,m)),y>2&&Jt(t,e,2,o)&&(d=!0,m=yr(t,h,e,2,o,m)),y>3&&Jt(t,e,3,i)&&(d=!0,m=yr(t,h,e,3,i,m)),y>4&&Jt(t,e,4,s)&&(d=!0,m=yr(t,h,e,4,s,m)),y>5&&Jt(t,e,5,a)&&(d=!0,m=yr(t,h,e,5,a,m)),y>6&&Jt(t,e,6,u)&&(d=!0,m=yr(t,h,e,6,u,m)),y>7&&Jt(t,e,7,c)&&(d=!0,m=yr(t,h,e,7,c,m)),y>8&&Jt(t,e,8,l)&&(d=!0,m=yr(t,h,e,8,l,m)),y>9&&Jt(t,e,9,p)&&(d=!0,m=yr(t,h,e,9,p,m)),m&&f.ngOnChanges(m),2&t.state&&65536&e.flags&&f.ngOnInit(),262144&e.flags&&f.ngDoCheck(),d}function lr(t,e,r){for(var n=Lt(t,e.index),o=n.instance,i=!1,s=void 0,a=0;a<r.length;a++)Jt(t,e,a,r[a])&&(i=!0,s=yr(t,n,e,a,r[a],s));return s&&o.ngOnChanges(s),2&t.state&&65536&e.flags&&o.ngOnInit(),262144&e.flags&&o.ngDoCheck(),i}function pr(t,e){var r,n=(8192&e.flags)>0,o=e.provider;switch(201347067&e.flags){case 512:r=hr(t,e.parent,n,o.value,o.deps);break;case 1024:r=fr(t,e.parent,n,o.value,o.deps);break;case 2048:r=dr(t,e.parent,n,o.deps[0]);break;case 256:r=o.value}return r}function hr(t,e,r,n,o){var i,s=o.length;switch(s){case 0:i=new n;break;case 1:i=new n(dr(t,e,r,o[0]));break;case 2:i=new n(dr(t,e,r,o[0]),dr(t,e,r,o[1]));break;case 3:i=new n(dr(t,e,r,o[0]),dr(t,e,r,o[1]),dr(t,e,r,o[2]));break;default:for(var a=new Array(s),u=0;u<s;u++)a[u]=dr(t,e,r,o[u]);i=new(n.bind.apply(n,[void 0].concat(a)))}return i}function fr(t,e,r,n,o){var i,s=o.length;switch(s){case 0:i=n();break;case 1:i=n(dr(t,e,r,o[0]));break;case 2:i=n(dr(t,e,r,o[0]),dr(t,e,r,o[1]));break;case 3:i=n(dr(t,e,r,o[0]),dr(t,e,r,o[1]),dr(t,e,r,o[2]));break;default:for(var a=Array(s),u=0;u<s;u++)a[u]=dr(t,e,r,o[u]);i=n.apply(void 0,a)}return i}function dr(t,e,r,n,o){if(void 0===o&&(o=$o.THROW_IF_NOT_FOUND),8&n.flags)return n.token;var i=t;2&n.flags&&(o=null);var s=n.tokenKey;for(s===wa&&(r=!(!e||!e.element.componentView)),e&&1&n.flags&&(r=!1,e=e.parent);t;){if(e)switch(s){case ya:return tr(a=mr(t,e,r));case va:var a=mr(t,e,r);return a.renderer;case ga:return new ps(Dt(t,e.index).renderElement);case _a:return Dt(t,e.index).viewContainer;case ba:if(e.element.template)return Dt(t,e.index).template;break;case wa:return Je(mr(t,e,r));case Ca:return Ze(t,e);default:var u=(r?e.element.allProviders:e.element.publicProviders)[s];if(u){var c=Lt(t,u.index);return c.instance===Ea&&(c.instance=pr(t,u)),c.instance}}r=se(t),e=ne(t),t=t.parent}var l=i.root.injector.get(n.token,Sa);return l!==Sa||o===Sa?l:i.root.ngModule.injector.get(n.token,o)}function mr(t,e,r){var n;if(r)n=Dt(t,e.index).componentView;else for(n=t;n.parent&&!se(n);)n=n.parent;return n}function yr(t,e,r,n,o,i){if(32768&r.flags){var s=Dt(t,r.parent.index).componentView;2&s.def.flags&&(s.state|=8)}var a=r.bindings[n].name;if(e.instance[a]=o,524288&r.flags){i=i||{};var u=t.oldValues[r.bindingIndex+n];u instanceof Ts&&(u=u.wrapped),i[r.bindings[n].nonMinifiedName]=new Os(u,o,0!=(2&t.state))}return t.oldValues[r.bindingIndex+n]=o,i}function vr(t,e){if(t.def.nodeFlags&e)for(var r=t.def.nodes,n=0;n<r.length;n++){var o=r[n],i=o.parent;for(!i&&o.flags&e&&_r(t,n,o.flags&e),0==(o.childFlags&e)&&(n+=o.childCount);i&&1&i.flags&&n===i.index+i.childCount;)i.directChildFlags&e&&gr(t,i,e),i=i.parent}}function gr(t,e,r){for(var n=e.index+1;n<=e.index+e.childCount;n++){var o=t.def.nodes[n];o.flags&r&&_r(t,n,o.flags&r),n+=o.childCount}}function _r(t,e,r){var n=Lt(t,e).instance;n!==Ea&&(Zs.setCurrentNode(t,e),1048576&r&&n.ngAfterContentInit(),2097152&r&&n.ngAfterContentChecked(),4194304&r&&n.ngAfterViewInit(),8388608&r&&n.ngAfterViewChecked(),131072&r&&n.ngOnDestroy())}function br(t){return Er(128,new Array(t+1))}function wr(t){return Er(32,new Array(t))}function Cr(t){return Er(64,t)}function Er(t,e){for(var r=new Array(e.length),n=0;n<e.length;n++){var o=e[n];r[n]={flags:8,name:o,ns:null,nonMinifiedName:o,securityContext:null,suffix:null}}return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:_e(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function Sr(t,e){return{value:void 0}}function xr(t,e,r,n,o,i,s,a,u,c,l,p){var h=e.bindings,f=!1,d=h.length;if(d>0&&Xt(t,e,0,r)&&(f=!0),d>1&&Xt(t,e,1,n)&&(f=!0),d>2&&Xt(t,e,2,o)&&(f=!0),d>3&&Xt(t,e,3,i)&&(f=!0),d>4&&Xt(t,e,4,s)&&(f=!0),d>5&&Xt(t,e,5,a)&&(f=!0),d>6&&Xt(t,e,6,u)&&(f=!0),d>7&&Xt(t,e,7,c)&&(f=!0),d>8&&Xt(t,e,8,l)&&(f=!0),d>9&&Xt(t,e,9,p)&&(f=!0),f){var m=Vt(t,e.index),y=void 0;switch(201347067&e.flags){case 32:y=new Array(h.length),d>0&&(y[0]=r),d>1&&(y[1]=n),d>2&&(y[2]=o),d>3&&(y[3]=i),d>4&&(y[4]=s),d>5&&(y[5]=a),d>6&&(y[6]=u),d>7&&(y[7]=c),d>8&&(y[8]=l),d>9&&(y[9]=p);break;case 64:y={},d>0&&(y[h[0].name]=r),d>1&&(y[h[1].name]=n),d>2&&(y[h[2].name]=o),d>3&&(y[h[3].name]=i),d>4&&(y[h[4].name]=s),d>5&&(y[h[5].name]=a),d>6&&(y[h[6].name]=u),d>7&&(y[h[7].name]=c),d>8&&(y[h[8].name]=l),d>9&&(y[h[9].name]=p);break;case 128:var v=r;switch(d){case 1:y=v.transform(r);break;case 2:y=v.transform(n);break;case 3:y=v.transform(n,o);break;case 4:y=v.transform(n,o,i);break;case 5:y=v.transform(n,o,i,s);break;case 6:y=v.transform(n,o,i,s,a);break;case 7:y=v.transform(n,o,i,s,a,u);break;case 8:y=v.transform(n,o,i,s,a,u,c);break;case 9:y=v.transform(n,o,i,s,a,u,c,l);break;case 10:y=v.transform(n,o,i,s,a,u,c,l,p)}}m.value=y}return f}function Pr(t,e,r){for(var n=e.bindings,o=!1,i=0;i<r.length;i++)Xt(t,e,i,r[i])&&(o=!0);if(o){var s=Vt(t,e.index),a=void 0;switch(201347067&e.flags){case 32:a=r;break;case 64:a={};for(i=0;i<r.length;i++)a[n[i].name]=r[i];break;case 128:var u=r[0],c=r.slice(1);a=u.transform.apply(u,c)}s.value=a}return o}function Tr(t,e,r){var n=[];for(var o in r){var i=r[o];n.push({propName:o,bindingType:i})}return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:e,filterId:ue(e),bindings:n},ngContent:null}}function Ar(){return new ds}function Or(t){for(var e=t.def.nodeMatchedQueries;t.parent&&ae(t);){var r=t.parentNodeDef;t=t.parent;for(var n=r.index+r.childCount,o=0;o<=n;o++)67108864&(i=t.def.nodes[o]).flags&&536870912&i.flags&&(i.query.filterId&e)===i.query.filterId&&Ft(t,o).setDirty(),!(1&i.flags&&o+i.childCount<r.index)&&67108864&i.childFlags&&536870912&i.childFlags||(o+=i.childCount)}if(134217728&t.def.nodeFlags)for(o=0;o<t.def.nodes.length;o++){var i=t.def.nodes[o];134217728&i.flags&&536870912&i.flags&&Ft(t,o).setDirty(),o+=i.childCount}}function Mr(t,e){var r=Ft(t,e.index);if(r.dirty){var n,o=void 0;if(67108864&e.flags){var i=e.parent.parent;o=Rr(t,i.index,i.index+i.childCount,e.query,[]),n=Lt(t,e.parent.index).instance}else 134217728&e.flags&&(o=Rr(t,0,t.def.nodes.length-1,e.query,[]),n=t.component);r.reset(o);for(var s=e.query.bindings,a=!1,u=0;u<s.length;u++){var c=s[u],l=void 0;switch(c.bindingType){case 0:l=r.first;break;case 1:l=r,a=!0}n[c.propName]=l}a&&r.notifyOnChanges()}}function Rr(t,e,r,n,o){for(var i=e;i<=r;i++){var s=t.def.nodes[i],a=s.matchedQueries[n.id];if(null!=a&&o.push(kr(t,s,a)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&n.filterId)===n.filterId){var u=Dt(t,i);if(16777216&s.flags)for(var c=u.viewContainer._embeddedViews,l=0;l<c.length;l++){var p=c[l],h=re(p);h&&h===u&&Rr(p,0,p.def.nodes.length-1,n,o)}var f=u.template._projectedViews;if(f)for(l=0;l<f.length;l++){var d=f[l];Rr(d,0,d.def.nodes.length-1,n,o)}}(s.childMatchedQueries&n.filterId)!==n.filterId&&(i+=s.childCount)}return o}function kr(t,e,r){if(null!=r){var n=void 0;switch(r){case 1:n=Dt(t,e.index).renderElement;break;case 0:n=new ps(Dt(t,e.index).renderElement);break;case 2:n=Dt(t,e.index).template;break;case 3:n=Dt(t,e.index).viewContainer;break;case 4:n=Lt(t,e.index).instance}return n}}function Nr(t,e){for(var r=new Array(e.length-1),n=1;n<e.length;n++)r[n-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:e[n]};return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:r,bindingFlags:_e(r),outputs:[],element:null,provider:null,text:{prefix:e[0]},query:null,ngContent:null}}function Ir(t,e,r){var n,o=t.renderer;n=o.createText(r.text.prefix);var i=le(t,e,r);return i&&o.appendChild(i,n),{renderText:n}}function jr(t,e,r,n,o,i,s,a,u,c,l,p){var h=!1,f=e.bindings,d=f.length;if(d>0&&Xt(t,e,0,r)&&(h=!0),d>1&&Xt(t,e,1,n)&&(h=!0),d>2&&Xt(t,e,2,o)&&(h=!0),d>3&&Xt(t,e,3,i)&&(h=!0),d>4&&Xt(t,e,4,s)&&(h=!0),d>5&&Xt(t,e,5,a)&&(h=!0),d>6&&Xt(t,e,6,u)&&(h=!0),d>7&&Xt(t,e,7,c)&&(h=!0),d>8&&Xt(t,e,8,l)&&(h=!0),d>9&&Xt(t,e,9,p)&&(h=!0),h){var m=e.text.prefix;d>0&&(m+=Lr(r,f[0])),d>1&&(m+=Lr(n,f[1])),d>2&&(m+=Lr(o,f[2])),d>3&&(m+=Lr(i,f[3])),d>4&&(m+=Lr(s,f[4])),d>5&&(m+=Lr(a,f[5])),d>6&&(m+=Lr(u,f[6])),d>7&&(m+=Lr(c,f[7])),d>8&&(m+=Lr(l,f[8])),d>9&&(m+=Lr(p,f[9]));var y=jt(t,e.index).renderText;t.renderer.setValue(y,m)}return h}function Dr(t,e,r){for(var n=e.bindings,o=!1,i=0;i<r.length;i++)Xt(t,e,i,r[i])&&(o=!0);if(o){for(var s="",i=0;i<r.length;i++)s+=Lr(r[i],n[i]);s=e.text.prefix+s;var a=jt(t,e.index).renderText;t.renderer.setValue(a,s)}return o}function Lr(t,e){return(null!=t?t.toString():"")+e.suffix}function Vr(t,e,r,n){for(var o=0,i=0,s=0,a=0,u=0,c=null,l=!1,p=!1,h=null,f=0;f<e.length;f++){for(;c&&f>c.index+c.childCount;)(_=c.parent)&&(_.childFlags|=c.childFlags,_.childMatchedQueries|=c.childMatchedQueries),c=_;var d=e[f];d.index=f,d.parent=c,d.bindingIndex=o,d.outputIndex=i;var m=void 0;if(m=c&&1&c.flags&&!c.element.name?c.renderParent:c,d.renderParent=m,d.element){var y=d.element;y.publicProviders=c?c.element.publicProviders:Object.create(null),y.allProviders=y.publicProviders,l=!1,p=!1}if(Fr(c,d,e.length),s|=d.flags,u|=d.matchedQueryIds,d.element&&d.element.template&&(u|=d.element.template.nodeMatchedQueries),c?(c.childFlags|=d.flags,c.directChildFlags|=d.flags,c.childMatchedQueries|=d.matchedQueryIds,d.element&&d.element.template&&(c.childMatchedQueries|=d.element.template.nodeMatchedQueries)):a|=d.flags,o+=d.bindings.length,i+=d.outputs.length,!m&&3&d.flags&&(h=d),20224&d.flags){l||(l=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);var v=0!=(8192&d.flags),g=0!=(32768&d.flags);!v||g?c.element.publicProviders[d.provider.tokenKey]=d:(p||(p=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[d.provider.tokenKey]=d),g&&(c.element.componentProvider=d)}d.childCount&&(c=d)}for(;c;){var _=c.parent;_&&(_.childFlags|=c.childFlags,_.childMatchedQueries|=c.childMatchedQueries),c=_}var b=function(t,r,n,o){return e[r].element.handleEvent(t,n,o)};return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:r||Ys,updateRenderer:n||Ys,handleEvent:b||Ys,bindingCount:o,outputCount:i,lastRenderRootNode:h}}function Fr(t,e,r){var n=e.element&&e.element.template;if(n){if(!n.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(n.lastRenderRootNode&&16777216&n.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.index+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: Provider/Directive nodes need to be children of elements or anchors, at index "+e.index+"!");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.index+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.index+"!")}if(e.childCount){var o=t?t.index+t.childCount:r-1;if(e.index<=o&&e.index+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.index+"!")}}function Ur(t,e,r){var n=Hr(t.root,t.renderer,t,e,e.element.template);return qr(n,t.component,r),Gr(n),n}function Br(t,e,r){var n=Hr(t,t.renderer,null,null,e);return qr(n,r,r),Gr(n),n}function Hr(t,e,r,n,o){var i=new Array(o.nodes.length),s=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:r,viewContainerParent:null,parentNodeDef:n,context:null,component:null,nodes:i,state:13,root:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:s}}function qr(t,e,r){t.component=e,t.context=r}function Gr(t){var e;if(se(t)){var r=t.parentNodeDef;e=Dt(t.parent,r.parent.index).renderElement}for(var n=t.def,o=t.nodes,i=0;i<n.nodes.length;i++){var s=n.nodes[i];Zs.setCurrentNode(t,i);var a=void 0;switch(201347067&s.flags){case 1:var u=xe(t,e,s),c=void 0;if(33554432&s.flags){var l=pe(s.element.componentView),p=s.element.componentRendererType,h=void 0;h=p?t.root.rendererFactory.createRenderer(u,p):t.root.renderer,c=Hr(t.root,h,t,s.element.componentProvider,l)}Pe(t,c,s,u),a={renderElement:u,componentView:c,viewContainer:null,template:s.element.template?Xe(t,s):void 0},16777216&s.flags&&(a.viewContainer=Qe(t,s,a));break;case 2:a=Ir(t,e,s);break;case 512:case 1024:case 2048:case 256:a={instance:f=ir(t,s)};break;case 16:a={instance:f=sr(t,s)};break;case 16384:var f=ar(t,s);a={instance:f},32768&s.flags&&qr(Dt(t,s.parent.index).componentView,f,f);break;case 32:case 64:case 128:a=Sr(t,s);break;case 67108864:case 134217728:a=Ar();break;case 8:De(t,e,s),a=void 0}o[i]=a}nn(t,xa.CreateViewNodes),un(t,201326592,268435456,0)}function zr(t){Kr(t),Zs.updateDirectives(t,1),on(t,xa.CheckNoChanges),Zs.updateRenderer(t,1),nn(t,xa.CheckNoChanges),t.state&=-97}function $r(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,Kr(t),Zs.updateDirectives(t,0),on(t,xa.CheckAndUpdate),un(t,67108864,536870912,0),vr(t,2097152|(2&t.state?1048576:0)),Zs.updateRenderer(t,0),nn(t,xa.CheckAndUpdate),un(t,134217728,536870912,0),vr(t,8388608|(2&t.state?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97}function Wr(t,e,r,n,o,i,s,a,u,c,l,p,h){return 0===r?Qr(t,e,n,o,i,s,a,u,c,l,p,h):Jr(t,e,n)}function Kr(t){var e=t.def;if(4&e.nodeFlags)for(var r=0;r<e.nodes.length;r++){var n=e.nodes[r];if(4&n.flags){var o=Dt(t,r).template._projectedViews;if(o)for(var i=0;i<o.length;i++){var s=o[i];s.state|=32,te(s,t)}}else 0==(4&n.childFlags)&&(r+=n.childCount)}}function Qr(t,e,r,n,o,i,s,a,u,c,l,p){var h=!1;switch(201347067&e.flags){case 1:h=Ae(t,e,r,n,o,i,s,a,u,c,l,p);break;case 2:h=jr(t,e,r,n,o,i,s,a,u,c,l,p);break;case 16384:h=cr(t,e,r,n,o,i,s,a,u,c,l,p);break;case 32:case 64:case 128:h=xr(t,e,r,n,o,i,s,a,u,c,l,p)}return h}function Jr(t,e,r){var n=!1;switch(201347067&e.flags){case 1:n=Oe(t,e,r);break;case 2:n=Dr(t,e,r);break;case 16384:n=lr(t,e,r);break;case 32:case 64:case 128:n=Pr(t,e,r)}if(n)for(var o=e.bindings.length,i=e.bindingIndex,s=t.oldValues,a=0;a<o;a++)s[i+a]=r[a];return n}function Xr(t,e,r,n,o,i,s,a,u,c,l,p,h){return 0===r?Zr(t,e,n,o,i,s,a,u,c,l,p,h):Yr(t,e,n),!1}function Zr(t,e,r,n,o,i,s,a,u,c,l,p){var h=e.bindings.length;h>0&&Zt(t,e,0,r),h>1&&Zt(t,e,1,n),h>2&&Zt(t,e,2,o),h>3&&Zt(t,e,3,i),h>4&&Zt(t,e,4,s),h>5&&Zt(t,e,5,a),h>6&&Zt(t,e,6,u),h>7&&Zt(t,e,7,c),h>8&&Zt(t,e,8,l),h>9&&Zt(t,e,9,p)}function Yr(t,e,r){for(var n=0;n<r.length;n++)Zt(t,e,n,r[n])}function tn(t,e){if(Ft(t,e.index).dirty)throw Ut(Zs.createDebugContext(t,e.index),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!=(1&t.state))}function en(t){if(!(128&t.state)){if(on(t,xa.Destroy),nn(t,xa.Destroy),vr(t,131072),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();Be(t),t.renderer.destroyNode&&rn(t),se(t)&&t.renderer.destroy(),t.state|=128}}function rn(t){for(var e=t.def.nodes.length,r=0;r<e;r++){var n=t.def.nodes[r];1&n.flags?t.renderer.destroyNode(Dt(t,r).renderElement):2&n.flags&&t.renderer.destroyNode(jt(t,r).renderText)}}function nn(t,e){var r=t.def;if(33554432&r.nodeFlags)for(var n=0;n<r.nodes.length;n++){var o=r.nodes[n];33554432&o.flags?sn(Dt(t,n).componentView,e):0==(33554432&o.childFlags)&&(n+=o.childCount)}}function on(t,e){var r=t.def;if(16777216&r.nodeFlags)for(var n=0;n<r.nodes.length;n++){var o=r.nodes[n];if(16777216&o.flags)for(var i=Dt(t,n).viewContainer._embeddedViews,s=0;s<i.length;s++)sn(i[s],e);else 0==(16777216&o.childFlags)&&(n+=o.childCount)}}function sn(t,e){var r=t.state;switch(e){case xa.CheckNoChanges:0==(128&r)&&(12==(12&r)?zr(t):64&r&&an(t,xa.CheckNoChangesProjectedViews));break;case xa.CheckNoChangesProjectedViews:0==(128&r)&&(32&r?zr(t):64&r&&an(t,e));break;case xa.CheckAndUpdate:0==(128&r)&&(12==(12&r)?$r(t):64&r&&an(t,xa.CheckAndUpdateProjectedViews));break;case xa.CheckAndUpdateProjectedViews:0==(128&r)&&(32&r?$r(t):64&r&&an(t,e));break;case xa.Destroy:en(t);break;case xa.CreateViewNodes:Gr(t)}}function an(t,e){on(t,e),nn(t,e)}function un(t,e,r,n){if(t.def.nodeFlags&e&&t.def.nodeFlags&r)for(var o=t.def.nodes.length,i=0;i<o;i++){var s=t.def.nodes[i];if(s.flags&e&&s.flags&r)switch(Zs.setCurrentNode(t,s.index),n){case 0:Mr(t,s);break;case 1:tn(t,s)}s.childFlags&e&&s.childFlags&r||(i+=s.childCount)}}function cn(){if(!Pa){Pa=!0;var t=ct()?pn():ln();Zs.setCurrentNode=t.setCurrentNode,Zs.createRootView=t.createRootView,Zs.createEmbeddedView=t.createEmbeddedView,Zs.checkAndUpdateView=t.checkAndUpdateView,Zs.checkNoChangesView=t.checkNoChangesView,Zs.destroyView=t.destroyView,Zs.resolveDep=dr,Zs.createDebugContext=t.createDebugContext,Zs.handleEvent=t.handleEvent,Zs.updateDirectives=t.updateDirectives,Zs.updateRenderer=t.updateRenderer,Zs.dirtyParentQueries=Or}}function ln(){return{setCurrentNode:function(){},createRootView:hn,createEmbeddedView:Ur,checkAndUpdateView:$r,checkNoChangesView:zr,destroyView:en,createDebugContext:function(t,e){return new ka(t,e)},handleEvent:function(t,e,r,n){return t.def.handleEvent(t,e,r,n)},updateDirectives:function(t,e){return t.def.updateDirectives(0===e?mn:yn,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?mn:yn,t)}}}function pn(){return{setCurrentNode:wn,createRootView:fn,createEmbeddedView:vn,checkAndUpdateView:gn,checkNoChangesView:_n,destroyView:bn,createDebugContext:function(t,e){return new ka(t,e)},handleEvent:Cn,updateDirectives:En,updateRenderer:Sn}}function hn(t,e,r,n,o,i){return Br(dn(t,o,o.injector.get(us),e,r),n,i)}function fn(t,e,r,n,o,i){var s=o.injector.get(us),a=dn(t,o,new Na(s),e,r);return jn(Ta.create,Br,null,[a,n,i])}function dn(t,e,r,n,o){var i=e.injector.get(Js),s=e.injector.get(Jo);return{ngModule:e,injector:t,projectableNodes:n,selectorOrNode:o,sanitizer:i,rendererFactory:r,renderer:r.createRenderer(null,null),errorHandler:s}}function mn(t,e,r,n,o,i,s,a,u,c,l,p,h){var f=t.def.nodes[e];return Wr(t,f,r,n,o,i,s,a,u,c,l,p,h),224&f.flags?Vt(t,e).value:void 0}function yn(t,e,r,n,o,i,s,a,u,c,l,p,h){var f=t.def.nodes[e];return Xr(t,f,r,n,o,i,s,a,u,c,l,p,h),224&f.flags?Vt(t,e).value:void 0}function vn(t,e,r){return jn(Ta.create,Ur,null,[t,e,r])}function gn(t){return jn(Ta.detectChanges,$r,null,[t])}function _n(t){return jn(Ta.checkNoChanges,zr,null,[t])}function bn(t){return jn(Ta.destroy,en,null,[t])}function wn(t,e){Oa=t,Ma=e}function Cn(t,e,r,n){return wn(t,e),jn(Ta.handleEvent,t.def.handleEvent,null,[t,e,r,n])}function En(t,e){function r(t,r,n){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=t.def.nodes[r];return 0===e?xn(t,s,n,o):Pn(t,s,n,o),16384&s.flags&&wn(t,Mn(t,r)),224&s.flags?Vt(t,s.index).value:void 0}if(128&t.state)throw zt(Ta[Aa]);return wn(t,Mn(t,0)),t.def.updateDirectives(r,t)}function Sn(t,e){function r(t,r,n){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=t.def.nodes[r];return 0===e?xn(t,s,n,o):Pn(t,s,n,o),3&s.flags&&wn(t,Rn(t,r)),224&s.flags?Vt(t,s.index).value:void 0}if(128&t.state)throw zt(Ta[Aa]);return wn(t,Rn(t,0)),t.def.updateRenderer(r,t)}function xn(t,e,r,n){if(Wr.apply(void 0,[t,e,r].concat(n))){var o=1===r?n[0]:n;if(16384&e.flags){for(var i={},s=0;s<e.bindings.length;s++){var a=e.bindings[s],u=o[s];8&a.flags&&(i[Tn(a.nonMinifiedName)]=On(u))}var c=e.parent,l=Dt(t,c.index).renderElement;if(c.element.name)for(var p in i)null!=(u=i[p])?t.renderer.setAttribute(l,p,u):t.renderer.removeAttribute(l,p);else t.renderer.setValue(l,"bindings="+JSON.stringify(i,null,2))}}}function Pn(t,e,r,n){Xr.apply(void 0,[t,e,r].concat(n))}function Tn(t){return"ng-reflect-"+(t=An(t.replace(/[$@]/g,"_")))}function An(t){return t.replace(Ra,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()})}function On(t){try{return null!=t?t.toString().slice(0,30):t}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function Mn(t,e){for(var r=e;r<t.def.nodes.length;r++){var n=t.def.nodes[r];if(16384&n.flags&&n.bindings&&n.bindings.length)return r}return null}function Rn(t,e){for(var r=e;r<t.def.nodes.length;r++){var n=t.def.nodes[r];if(3&n.flags&&n.bindings&&n.bindings.length)return r}return null}function kn(t,e){for(var r=-1,n=0;n<=e;n++)3&t.nodes[n].flags&&r++;return r}function Nn(t){for(;t&&!se(t);)t=t.parent;return t.parent?Dt(t.parent,ne(t).index):null}function In(t,e,r){for(var n in e.references)r[n]=kr(t,e,e.references[n])}function jn(t,e,r,n){var o=Aa,i=Oa,s=Ma;try{Aa=t;var a=e.apply(r,n);return Oa=i,Ma=s,Aa=o,a}catch(t){if(Gt(t)||!Oa)throw t;throw Bt(t,Dn())}}function Dn(){return Oa?new ka(Oa,Ma):null}function Ln(){return Hs}function Vn(){return qs}function Fn(t){return t||"en-US"}function Un(){cn()}function Bn(t,e){return{name:t,definitions:e}}function Hn(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}}function qn(t){return{type:3,steps:t}}function Gn(t){return{type:2,steps:t}}function zn(t){return{type:6,styles:t}}function $n(t,e){return{type:0,name:t,styles:e}}function Wn(t){return{type:5,steps:t}}function Kn(t,e){return{type:1,expr:t,animation:e}}function Qn(t,e){return Bn(t,e)}function Jn(t,e){return Hn(t,e)}function Xn(t){return qn(t)}function Zn(t){return Gn(t)}function Yn(t){return zn(t)}function to(t,e){return $n(t,e)}function eo(t){return Wn(t)}function ro(t,e){return Kn(t,e)}var no=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},oo=function(){function t(t){this._desc=t}return t.prototype.toString=function(){return"Token "+this._desc},t}(),io=function(t){function e(e){return t.call(this,e)||this}return no(e,t),e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(oo),so="undefined"!=typeof window&&window,ao="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,uo=void 0!==n&&n,co=so||uo||ao,lo=null,po=0,ho=co.Reflect,fo=new io("AnalyzeForEntryComponents"),mo=m("Attribute",[["attributeName",void 0]]),yo=function(){function t(){}return t}(),vo=y("ContentChildren",[["selector",void 0],{first:!1,isViewQuery:!1,descendants:!1,read:void 0}],yo),go=y("ContentChild",[["selector",void 0],{first:!0,isViewQuery:!1,descendants:!0,read:void 0}],yo),_o=y("ViewChildren",[["selector",void 0],{first:!1,isViewQuery:!0,descendants:!0,read:void 0}],yo),bo=y("ViewChild",[["selector",void 0],{first:!0,isViewQuery:!0,descendants:!0,read:void 0}],yo),wo={};wo.OnPush=0,wo.Default=1,wo[wo.OnPush]="OnPush",wo[wo.Default]="Default";var Co={};Co.CheckOnce=0,Co.Checked=1,Co.CheckAlways=2,Co.Detached=3,Co.Errored=4,Co.Destroyed=5,Co[Co.CheckOnce]="CheckOnce",Co[Co.Checked]="Checked",Co[Co.CheckAlways]="CheckAlways",Co[Co.Detached]="Detached",Co[Co.Errored]="Errored",Co[Co.Destroyed]="Destroyed";var Eo=f("Directive",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,providers:void 0,exportAs:void 0,queries:void 0}),So=f("Component",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,exportAs:void 0,moduleId:void 0,providers:void 0,viewProviders:void 0,changeDetection:wo.Default,queries:void 0,templateUrl:void 0,template:void 0,styleUrls:void 0,styles:void 0,animations:void 0,encapsulation:void 0,interpolation:void 0,entryComponents:void 0},Eo),xo=f("Pipe",{name:void 0,pure:!0}),Po=y("Input",[["bindingPropertyName",void 0]]),To=y("Output",[["bindingPropertyName",void 0]]),Ao=y("HostBinding",[["hostPropertyName",void 0]]),Oo=y("HostListener",[["eventName",void 0],["args",[]]]),Mo={name:"custom-elements"},Ro={name:"no-errors-schema"},ko=f("NgModule",{providers:void 0,declarations:void 0,imports:void 0,exports:void 0,entryComponents:void 0,bootstrap:void 0,schemas:void 0,id:void 0}),No={};No.Emulated=0,No.Native=1,No.None=2,No[No.Emulated]="Emulated",No[No.Native]="Native",No[No.None]="None";var Io=function(){function t(t){var e=void 0===t?{}:t,r=e.templateUrl,n=e.template,o=e.encapsulation,i=e.styles,s=e.styleUrls,a=e.animations,u=e.interpolation;this.templateUrl=r,this.template=n,this.styleUrls=s,this.styles=i,this.encapsulation=o,this.animations=a,this.interpolation=u}return t}(),jo=function(){function t(t){this.full=t}return Object.defineProperty(t.prototype,"major",{get:function(){return this.full.split(".")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minor",{get:function(){return this.full.split(".")[1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"patch",{get:function(){return this.full.split(".").slice(2).join(".")},enumerable:!0,configurable:!0}),t}(),Do=new jo("4.1.3"),Lo=m("Inject",[["token",void 0]]),Vo=m("Optional",[]),Fo=f("Injectable",[]),Uo=m("Self",[]),Bo=m("SkipSelf",[]),Ho=m("Host",[]),qo=new Object,Go=qo,zo=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=qo),e===qo)throw new Error("No provider for "+c(t)+"!");return e},t}(),$o=function(){function t(){}return t.prototype.get=function(t,e){},t.prototype.get=function(t,e){},t}();$o.THROW_IF_NOT_FOUND=qo,$o.NULL=new zo;var Wo="ngDebugContext",Ko="ngOriginalError",Qo="ngErrorLogger",Jo=function(){function t(t){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),r=this._findContext(t),n=C(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),r&&n(this._console,"ERROR CONTEXT",r)},t.prototype._findContext=function(t){return t?b(t)?b(t):this._findContext(w(t)):null},t.prototype._findOriginalError=function(t){for(var e=w(t);e&&w(e);)e=w(e);return e},t}(),Xo=function(){function t(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!")}return Object.defineProperty(t.prototype,"displayName",{get:function(){return c(this.token)},enumerable:!0,configurable:!0}),t.get=function(t){return Zo.get(_(t))},Object.defineProperty(t,"numberOfKeys",{get:function(){return Zo.numberOfKeys},enumerable:!0,configurable:!0}),t}(),Zo=new(function(){function t(){this._allKeys=new Map}return t.prototype.get=function(t){if(t instanceof Xo)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var e=new Xo(t,Xo.numberOfKeys);return this._allKeys.set(t,e),e},Object.defineProperty(t.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),t}()),Yo=Function,ti=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,ei=function(){function t(t){this._reflect=t||co.Reflect}return t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,[void 0].concat(e)))}},t.prototype._zipTypesAndAnnotations=function(t,e){var r;r=void 0===t?new Array(e.length):new Array(t.length);for(var n=0;n<r.length;n++)void 0===t?r[n]=[]:t[n]!=Object?r[n]=[t[n]]:r[n]=[],e&&null!=e[n]&&(r[n]=r[n].concat(e[n]));return r},t.prototype._ownParameters=function(t,e){if(ti.exec(t.toString()))return null;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;var r=t.ctorParameters;if(r&&r!==e.ctorParameters){var n="function"==typeof r?r():r,o=n.map(function(t){return t&&t.type}),i=n.map(function(t){return t&&L(t.decorators)});return this._zipTypesAndAnnotations(o,i)}if(null!=this._reflect&&null!=this._reflect.getOwnMetadata){i=this._reflect.getOwnMetadata("parameters",t);if((o=this._reflect.getOwnMetadata("design:paramtypes",t))||i)return this._zipTypesAndAnnotations(o,i)}return new Array(t.length).fill(void 0)},t.prototype.parameters=function(t){if(!D(t))return[];var e=V(t),r=this._ownParameters(t,e);return r||e===Object||(r=this.parameters(e)),r||[]},t.prototype._ownAnnotations=function(t,e){if(t.annotations&&t.annotations!==e.annotations){var r=t.annotations;return"function"==typeof r&&r.annotations&&(r=r.annotations),r}return t.decorators&&t.decorators!==e.decorators?L(t.decorators):this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("annotations",t):null},t.prototype.annotations=function(t){if(!D(t))return[];var e=V(t),r=this._ownAnnotations(t,e)||[];return(e!==Object?this.annotations(e):[]).concat(r)},t.prototype._ownPropMetadata=function(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){var r=t.propMetadata;return"function"==typeof r&&r.propMetadata&&(r=r.propMetadata),r}if(t.propDecorators&&t.propDecorators!==e.propDecorators){var n=t.propDecorators,o={};return Object.keys(n).forEach(function(t){o[t]=L(n[t])}),o}return this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("propMetadata",t):null},t.prototype.propMetadata=function(t){if(!D(t))return{};var e=V(t),r={};if(e!==Object){var n=this.propMetadata(e);Object.keys(n).forEach(function(t){r[t]=n[t]})}var o=this._ownPropMetadata(t,e);return o&&Object.keys(o).forEach(function(t){var e=[];r.hasOwnProperty(t)&&e.push.apply(e,r[t]),e.push.apply(e,o[t]),r[t]=e}),r},t.prototype.hasLifecycleHook=function(t,e){return t instanceof Yo&&e in t.prototype},t.prototype.getter=function(t){return new Function("o","return o."+t+";")},t.prototype.setter=function(t){return new Function("o","v","return o."+t+" = v;")},t.prototype.method=function(t){var e="if (!o."+t+") throw new Error('\""+t+"\" is undefined');\n        return o."+t+".apply(o, args);";return new Function("o","args",e)},t.prototype.importUri=function(t){return"object"==typeof t&&t.filePath?t.filePath:"./"+c(t)},t.prototype.resourceUri=function(t){return"./"+c(t)},t.prototype.resolveIdentifier=function(t,e,r,n){return n},t.prototype.resolveEnum=function(t,e){return t[e]},t}(),ri=function(){function t(){}return t.prototype.parameters=function(t){},t.prototype.annotations=function(t){},t.prototype.propMetadata=function(t){},t.prototype.importUri=function(t){},t.prototype.resourceUri=function(t){},t.prototype.resolveIdentifier=function(t,e,r,n){},t.prototype.resolveEnum=function(t,e){},t}(),ni=function(t){function e(e){var r=t.call(this)||this;return r.reflectionCapabilities=e,r}return no(e,t),e.prototype.updateCapabilities=function(t){this.reflectionCapabilities=t},e.prototype.factory=function(t){return this.reflectionCapabilities.factory(t)},e.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},e.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},e.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},e.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},e.prototype.getter=function(t){return this.reflectionCapabilities.getter(t)},e.prototype.setter=function(t){return this.reflectionCapabilities.setter(t)},e.prototype.method=function(t){return this.reflectionCapabilities.method(t)},e.prototype.importUri=function(t){return this.reflectionCapabilities.importUri(t)},e.prototype.resourceUri=function(t){return this.reflectionCapabilities.resourceUri(t)},e.prototype.resolveIdentifier=function(t,e,r,n){return this.reflectionCapabilities.resolveIdentifier(t,e,r,n)},e.prototype.resolveEnum=function(t,e){return this.reflectionCapabilities.resolveEnum(t,e)},e}(ri),oi=new ni(new ei),ii=function(){function t(t,e,r){this.key=t,this.optional=e,this.visibility=r}return t.fromKey=function(e){return new t(e,!1,null)},t}(),si=[],ai=function(){function t(t,e,r){this.key=t,this.resolvedFactories=e,this.multiProvider=r}return Object.defineProperty(t.prototype,"resolvedFactory",{get:function(){return this.resolvedFactories[0]},enumerable:!0,configurable:!0}),t}(),ui=function(){function t(t,e){this.factory=t,this.dependencies=e}return t}(),ci=new Object,li=function(){function t(){}return t.resolve=function(t){return B(t)},t.resolveAndCreate=function(e,r){var n=t.resolve(e);return t.fromResolvedProviders(n,r)},t.fromResolvedProviders=function(t,e){return new pi(t,e)},t.prototype.parent=function(){},t.prototype.resolveAndCreateChild=function(t){},t.prototype.createChildFromResolved=function(t){},t.prototype.resolveAndInstantiate=function(t){},t.prototype.instantiateResolved=function(t){},t.prototype.get=function(t,e){},t}(),pi=function(){function t(t,e){this._constructionCounter=0,this._providers=t,this._parent=e||null;var r=t.length;this.keyIds=new Array(r),this.objs=new Array(r);for(var n=0;n<r;n++)this.keyIds[n]=t[n].key.id,this.objs[n]=ci}return t.prototype.get=function(t,e){return void 0===e&&(e=Go),this._getByKey(Xo.get(t),null,e)},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),t.prototype.resolveAndCreateChild=function(t){var e=li.resolve(t);return this.createChildFromResolved(e)},t.prototype.createChildFromResolved=function(e){var r=new t(e);return r._parent=this,r},t.prototype.resolveAndInstantiate=function(t){return this.instantiateResolved(li.resolve([t])[0])},t.prototype.instantiateResolved=function(t){return this._instantiateProvider(t)},t.prototype.getProviderAtIndex=function(t){if(t<0||t>=this._providers.length)throw I(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw M(this,t.key);return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),r=0;r<t.resolvedFactories.length;++r)e[r]=this._instantiate(t,t.resolvedFactories[r]);return e}return this._instantiate(t,t.resolvedFactories[0])},t.prototype._instantiate=function(t,e){var r,n=this,o=e.factory;try{r=e.dependencies.map(function(t){return n._getByReflectiveDependency(t)})}catch(e){throw e.addKey&&e.addKey(this,t.key),e}var i;try{i=o.apply(void 0,r)}catch(e){throw R(this,e,e.stack,t.key)}return i},t.prototype._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:Go)},t.prototype._getByKey=function(t,e,r){return t===hi?this:e instanceof Uo?this._getByKeySelf(t,r):this._getByKeyDefault(t,r,e)},t.prototype._getObjByKeyId=function(t){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===ci&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return ci},t.prototype._throwOrNull=function(t,e){if(e!==Go)return e;throw O(this,t)},t.prototype._getByKeySelf=function(t,e){var r=this._getObjByKeyId(t.id);return r!==ci?r:this._throwOrNull(t,e)},t.prototype._getByKeyDefault=function(e,r,n){var o;for(o=n instanceof Bo?this._parent:this;o instanceof t;){var i=o,s=i._getObjByKeyId(e.id);if(s!==ci)return s;o=i._parent}return null!==o?o.get(e.token,r):this._throwOrNull(e,r)},Object.defineProperty(t.prototype,"displayName",{get:function(){return"ReflectiveInjector(providers: ["+K(this,function(t){return' "'+t.key.displayName+'" '}).join(", ")+"])"},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.displayName},t}(),hi=Xo.get($o),fi=new io("Application Initializer"),di=function(){function t(t){var e=this;this.appInits=t,this.initialized=!1,this._done=!1,this._donePromise=new Promise(function(t,r){e.resolve=t,e.reject=r})}return t.prototype.runInitializers=function(){var t=this;if(!this.initialized){var e=[],r=function(){t._done=!0,t.resolve()};if(this.appInits)for(var n=0;n<this.appInits.length;n++){var o=this.appInits[n]();Q(o)&&e.push(o)}Promise.all(e).then(function(){r()}).catch(function(e){t.reject(e)}),0===e.length&&r(),this.initialized=!0}},Object.defineProperty(t.prototype,"done",{get:function(){return this._done},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"donePromise",{get:function(){return this._donePromise},enumerable:!0,configurable:!0}),t}();di.decorators=[{type:Fo}],di.ctorParameters=function(){return[{type:Array,decorators:[{type:Lo,args:[fi]},{type:Vo}]}]};var mi=new io("AppId"),yi={provide:mi,useFactory:X,deps:[]},vi=new io("Platform Initializer"),gi=new io("Platform ID"),_i=new io("appBootstrapListener"),bi=new io("Application Packages Root URL"),wi=function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t}();wi.decorators=[{type:Fo}],wi.ctorParameters=function(){return[]};var Ci=function(){function t(t,e){this.ngModuleFactory=t,this.componentFactories=e}return t}(),Ei=function(){function t(){}return t.prototype.compileModuleSync=function(t){throw Y()},t.prototype.compileModuleAsync=function(t){throw Y()},t.prototype.compileModuleAndAllComponentsSync=function(t){throw Y()},t.prototype.compileModuleAndAllComponentsAsync=function(t){throw Y()},t.prototype.getNgContentSelectors=function(t){throw Y()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(t){},t}();Ei.decorators=[{type:Fo}],Ei.ctorParameters=function(){return[]};var Si=new io("compilerOptions"),xi=function(){function t(){}return t.prototype.createCompiler=function(t){},t}(),Pi=function(){function t(){}return t.prototype.location=function(){},t.prototype.injector=function(){},t.prototype.instance=function(){},t.prototype.hostView=function(){},t.prototype.changeDetectorRef=function(){},t.prototype.componentType=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(t){},t}(),Ti=function(){function t(){}return t.prototype.selector=function(){},t.prototype.componentType=function(){},t.prototype.ngContentSelectors=function(){},t.prototype.inputs=function(){},t.prototype.outputs=function(){},t.prototype.create=function(t,e,r,n){},t}(),Ai="ngComponent",Oi=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw tt(t)},t}(),Mi=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){},t}();Mi.NULL=new Oi;var Ri,ki,Ni=function(){function t(t,e,r){this._parent=e,this._ngModule=r,this._factories=new Map;for(var n=0;n<t.length;n++){var o=t[n];this._factories.set(o.componentType,o)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t)||this._parent.resolveComponentFactory(t);return new Ii(e,this._ngModule)},t}(),Ii=function(t){function e(e,r){var n=t.call(this)||this;return n.factory=e,n.ngModule=r,n}return no(e,t),Object.defineProperty(e.prototype,"selector",{get:function(){return this.factory.selector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this.factory.componentType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngContentSelectors",{get:function(){return this.factory.ngContentSelectors},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputs",{get:function(){return this.factory.inputs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return this.factory.outputs},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,r,n){return this.factory.create(t,e,r,n||this.ngModule)},e}(Ti),ji=function(){function t(){}return t.prototype.injector=function(){},t.prototype.componentFactoryResolver=function(){},t.prototype.instance=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(t){},t}(),Di=function(){function t(t,e){this._injectorClass=t,this._moduleType=e}return Object.defineProperty(t.prototype,"moduleType",{get:function(){return this._moduleType},enumerable:!0,configurable:!0}),t.prototype.create=function(t){var e=new this._injectorClass(t||$o.NULL);return e.create(),e},t}(),Li=new Object,Vi=function(){function t(t,e,r){var n=this;this.parent=t,this._destroyListeners=[],this._destroyed=!1,this.bootstrapFactories=r.map(function(t){return new Ii(t,n)}),this._cmpFactoryResolver=new Ni(e,t.get(Mi,Mi.NULL),this)}return t.prototype.create=function(){this.instance=this.createInternal()},t.prototype.createInternal=function(){},t.prototype.get=function(t,e){if(void 0===e&&(e=Go),t===$o||t===ji)return this;if(t===Mi)return this._cmpFactoryResolver;var r=this.getInternal(t,Li);return r===Li?this.parent.get(t,e):r},t.prototype.getInternal=function(t,e){},Object.defineProperty(t.prototype,"injector",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this._cmpFactoryResolver},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+c(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,this.destroyInternal(),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t.prototype.destroyInternal=function(){},t}(),Fi=et(),Ui=Fi?rt:function(t,e){return st},Bi=Fi?nt:function(t,e){return e},Hi=Fi?ot:function(t,e){return null},qi=Fi?it:function(t){return null},Gi=function(t){function e(e){void 0===e&&(e=!1);var r=t.call(this)||this;return r.__isAsync=e,r}return no(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,r,n){var o,i=function(t){return null},s=function(){return null};return e&&"object"==typeof e?(o=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(i=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(o=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},r&&(i=this.__isAsync?function(t){setTimeout(function(){return r(t)})}:function(t){r(t)}),n&&(s=this.__isAsync?function(){setTimeout(function(){return n()})}:function(){n()})),t.prototype.subscribe.call(this,o,i,s)},e}(i.Subject),zi=function(){function t(t){var e=t.enableLongStackTrace,r=void 0!==e&&e;if(this._hasPendingMicrotasks=!1,this._hasPendingMacrotasks=!1,this._isStable=!0,this._nesting=0,this._onUnstable=new Gi(!1),this._onMicrotaskEmpty=new Gi(!1),this._onStable=new Gi(!1),this._onErrorEvents=new Gi(!1),"undefined"==typeof Zone)throw new Error("Angular requires Zone.js prolyfill.");Zone.assertZonePatched(),this.outer=this.inner=Zone.current,Zone.wtfZoneSpec&&(this.inner=this.inner.fork(Zone.wtfZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(this.inner=this.inner.fork(Zone.longStackTraceZoneSpec)),this.forkInnerZoneWithAngularBehavior()}return t.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t){return this.inner.run(t)},t.prototype.runGuarded=function(t){return this.inner.runGuarded(t)},t.prototype.runOutsideAngular=function(t){return this.outer.run(t)},Object.defineProperty(t.prototype,"onUnstable",{get:function(){return this._onUnstable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onMicrotaskEmpty",{get:function(){return this._onMicrotaskEmpty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onStable",{get:function(){return this._onStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onError",{get:function(){return this._onErrorEvents},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMicrotasks",{get:function(){return this._hasPendingMicrotasks},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMacrotasks",{get:function(){return this._hasPendingMacrotasks},enumerable:!0,configurable:!0}),t.prototype.checkStable=function(){var t=this;if(0==this._nesting&&!this._hasPendingMicrotasks&&!this._isStable)try{this._nesting++,this._onMicrotaskEmpty.emit(null)}finally{if(this._nesting--,!this._hasPendingMicrotasks)try{this.runOutsideAngular(function(){return t._onStable.emit(null)})}finally{this._isStable=!0}}},t.prototype.forkInnerZoneWithAngularBehavior=function(){var t=this;this.inner=this.inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,r,n,o,i,s){try{return t.onEnter(),e.invokeTask(n,o,i,s)}finally{t.onLeave()}},onInvoke:function(e,r,n,o,i,s,a){try{return t.onEnter(),e.invoke(n,o,i,s,a)}finally{t.onLeave()}},onHasTask:function(e,r,n,o){e.hasTask(n,o),r===n&&("microTask"==o.change?t.setHasMicrotask(o.microTask):"macroTask"==o.change&&t.setHasMacrotask(o.macroTask))},onHandleError:function(e,r,n,o){return e.handleError(n,o),t.triggerError(o),!1}})},t.prototype.onEnter=function(){this._nesting++,this._isStable&&(this._isStable=!1,this._onUnstable.emit(null))},t.prototype.onLeave=function(){this._nesting--,this.checkStable()},t.prototype.setHasMicrotask=function(t){this._hasPendingMicrotasks=t,this.checkStable()},t.prototype.setHasMacrotask=function(t){this._hasPendingMacrotasks=t},t.prototype.triggerError=function(t){this._onErrorEvents.emit(t)},t}(),$i=function(){function t(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents()}return t.prototype._watchAngularEvents=function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.subscribe({next:function(){zi.assertNotInAngularZone(),a(function(){t._isZoneStable=!0,t._runCallbacksIfReady()})}})})},t.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},t.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;this.isStable()?a(function(){for(;0!==t._callbacks.length;)t._callbacks.pop()(t._didWork);t._didWork=!1}):this._didWork=!0},t.prototype.whenStable=function(t){this._callbacks.push(t),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findBindings=function(t,e,r){return[]},t.prototype.findProviders=function(t,e,r){return[]},t}();$i.decorators=[{type:Fo}],$i.ctorParameters=function(){return[{type:zi}]};var Wi=function(){function t(){this._applications=new Map,Qi.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),Qi.findTestabilityInTree(this,t,e)},t}();Wi.decorators=[{type:Fo}],Wi.ctorParameters=function(){return[]};var Ki,Qi=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,r){return null},t}()),Ji=!0,Xi=!1,Zi=new io("AllowMultipleToken"),Yi=function(){function t(t,e){this.name=t,this.token=e}return t}(),ts=function(){function t(){}return t.prototype.bootstrapModuleFactory=function(t){},t.prototype.bootstrapModule=function(t,e){},t.prototype.onDestroy=function(t){},t.prototype.injector=function(){},t.prototype.destroy=function(){},t.prototype.destroyed=function(){},t}(),es=function(t){function e(e){var r=t.call(this)||this;return r._injector=e,r._modules=[],r._destroyListeners=[],r._destroyed=!1,r}return no(e,t),e.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},e.prototype.bootstrapModuleFactory=function(t){return this._bootstrapModuleFactoryWithZone(t)},e.prototype._bootstrapModuleFactoryWithZone=function(t,e){var r=this;return e||(e=new zi({enableLongStackTrace:ct()})),e.run(function(){var n=li.resolveAndCreate([{provide:zi,useValue:e}],r.injector),o=t.create(n),i=o.injector.get(Jo,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.onDestroy(function(){return yt(r._modules,o)}),e.onError.subscribe({next:function(t){i.handleError(t)}}),mt(i,function(){var t=o.injector.get(di);return t.runInitializers(),t.donePromise.then(function(){return r._moduleDoBootstrap(o),o})})})},e.prototype.bootstrapModule=function(t,e){return void 0===e&&(e=[]),this._bootstrapModuleWithZone(t,e)},e.prototype._bootstrapModuleWithZone=function(t,e,r){var n=this;return void 0===e&&(e=[]),this.injector.get(xi).createCompiler(Array.isArray(e)?e:[e]).compileModuleAsync(t).then(function(t){return n._bootstrapModuleFactoryWithZone(t,r)})},e.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(rs);if(t.bootstrapFactories.length>0)t.bootstrapFactories.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+c(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)},e}(ts);es.decorators=[{type:Fo}],es.ctorParameters=function(){return[{type:$o}]};var rs=function(){function t(){}return t.prototype.bootstrap=function(t){},t.prototype.tick=function(){},t.prototype.componentTypes=function(){},t.prototype.components=function(){},t.prototype.attachView=function(t){},t.prototype.detachView=function(t){},t.prototype.viewCount=function(){},t.prototype.isStable=function(){},t}(),ns=function(t){function n(n,i,s,u,c,l){var p=t.call(this)||this;p._zone=n,p._console=i,p._injector=s,p._exceptionHandler=u,p._componentFactoryResolver=c,p._initStatus=l,p._bootstrapListeners=[],p._rootComponents=[],p._rootComponentTypes=[],p._views=[],p._runningTick=!1,p._enforceNoNewChanges=!1,p._stable=!0,p._enforceNoNewChanges=ct(),p._zone.onMicrotaskEmpty.subscribe({next:function(){p._zone.run(function(){p.tick()})}});var h=new e.Observable(function(t){p._stable=p._zone.isStable&&!p._zone.hasPendingMacrotasks&&!p._zone.hasPendingMicrotasks,p._zone.runOutsideAngular(function(){t.next(p._stable),t.complete()})}),f=new e.Observable(function(t){var e=p._zone.onStable.subscribe(function(){zi.assertNotInAngularZone(),a(function(){p._stable||p._zone.hasPendingMacrotasks||p._zone.hasPendingMicrotasks||(p._stable=!0,t.next(!0))})}),r=p._zone.onUnstable.subscribe(function(){zi.assertInAngularZone(),p._stable&&(p._stable=!1,p._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),r.unsubscribe()}});return p._isStable=r.merge(h,o.share.call(f)),p}return no(n,t),n.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},n.prototype.detachView=function(t){var e=t;yt(this._views,e),e.detachFromAppRef()},n.prototype.bootstrap=function(t){var e=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.");var r;r=t instanceof Ti?t:this._componentFactoryResolver.resolveComponentFactory(t),this._rootComponentTypes.push(r.componentType);var n=r instanceof Ii?null:this._injector.get(ji),o=r.create($o.NULL,[],r.selector,n);o.onDestroy(function(){e._unloadComponent(o)});var i=o.injector.get($i,null);return i&&o.injector.get(Wi).registerApplication(o.location.nativeElement,i),this._loadComponent(o),ct()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},n.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this._rootComponents.push(t),this._injector.get(_i,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},n.prototype._unloadComponent=function(t){this.detachView(t.hostView),yt(this._rootComponents,t)},n.prototype.tick=function(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var t=n._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._exceptionHandler.handleError(t)}finally{this._runningTick=!1,Bi(t)}},n.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(n.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),n}(rs);ns._tickScope=Ui("ApplicationRef#tick()"),ns.decorators=[{type:Fo}],ns.ctorParameters=function(){return[{type:zi},{type:wi},{type:$o},{type:Jo},{type:Mi},{type:di}]};var os=function(){function t(t,e,r,n,o,i){this.id=t,this.templateUrl=e,this.slotCount=r,this.encapsulation=n,this.styles=o,this.animations=i}return t}(),is=function(){function t(){}return t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.source=function(){},t}(),ss=function(){function t(){}return t.prototype.selectRootElement=function(t,e){},t.prototype.createElement=function(t,e,r){},t.prototype.createViewRoot=function(t){},t.prototype.createTemplateAnchor=function(t,e){},t.prototype.createText=function(t,e,r){},t.prototype.projectNodes=function(t,e){},t.prototype.attachViewAfter=function(t,e){},t.prototype.detachView=function(t){},t.prototype.destroyView=function(t,e){},t.prototype.listen=function(t,e,r){},t.prototype.listenGlobal=function(t,e,r){},t.prototype.setElementProperty=function(t,e,r){},t.prototype.setElementAttribute=function(t,e,r){},t.prototype.setBindingDebugInfo=function(t,e,r){},t.prototype.setElementClass=function(t,e,r){},t.prototype.setElementStyle=function(t,e,r){},t.prototype.invokeElementMethod=function(t,e,r){},t.prototype.setText=function(t,e){},t.prototype.animate=function(t,e,r,n,o,i,s){},t}(),as=(new io("Renderer2Interceptor"),function(){function t(){}return t.prototype.renderComponent=function(t){},t}()),us=function(){function t(){}return t.prototype.createRenderer=function(t,e){},t}(),cs={};cs.Important=1,cs.DashCase=2,cs[cs.Important]="Important",cs[cs.DashCase]="DashCase";var ls=function(){function t(){}return t.prototype.data=function(){},t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){},t.prototype.createComment=function(t){},t.prototype.createText=function(t){},t.prototype.appendChild=function(t,e){},t.prototype.insertBefore=function(t,e,r){},t.prototype.removeChild=function(t,e){},t.prototype.selectRootElement=function(t){},t.prototype.parentNode=function(t){},t.prototype.nextSibling=function(t){},t.prototype.setAttribute=function(t,e,r,n){},t.prototype.removeAttribute=function(t,e,r){},t.prototype.addClass=function(t,e){},t.prototype.removeClass=function(t,e){},t.prototype.setStyle=function(t,e,r,n){},t.prototype.removeStyle=function(t,e,r){},t.prototype.setProperty=function(t,e,r){},t.prototype.setValue=function(t,e){},t.prototype.listen=function(t,e,r){},t}(),ps=function(){function t(t){this.nativeElement=t}return t}(),hs=function(){function t(){}return t.prototype.load=function(t){},t}(),fs=new Map,ds=function(){function t(){this._dirty=!0,this._results=[],this._emitter=new Gi}return Object.defineProperty(t.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),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=_t(t),this._dirty=!1},t.prototype.notifyOnChanges=function(){this._emitter.emit(this)},t.prototype.setDirty=function(){this._dirty=!0},Object.defineProperty(t.prototype,"dirty",{get:function(){return this._dirty},enumerable:!0,configurable:!0}),t}(),ms=function(){function t(){}return t}(),ys={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},vs=function(){function t(t,e){this._compiler=t,this._config=e||ys}return t.prototype.load=function(t){return this._compiler instanceof Ei?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=t.split("#"),n=r[0],o=r[1];return void 0===o&&(o="default"),System.import(n).then(function(t){return t[o]}).then(function(t){return bt(t,n,o)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split("#"),r=e[0],n=e[1],o="NgFactory";return void 0===n&&(n="default",o=""),System.import(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[n+o]}).then(function(t){return bt(t,r,n)})},t}();vs.decorators=[{type:Fo}],vs.ctorParameters=function(){return[{type:Ei},{type:ms,decorators:[{type:Vo}]}]};var gs=function(){function t(){}return t.prototype.elementRef=function(){},t.prototype.createEmbeddedView=function(t){},t}(),_s=function(){function t(){}return t.prototype.element=function(){},t.prototype.injector=function(){},t.prototype.parentInjector=function(){},t.prototype.clear=function(){},t.prototype.get=function(t){},t.prototype.length=function(){},t.prototype.createEmbeddedView=function(t,e,r){},t.prototype.createComponent=function(t,e,r,n,o){},t.prototype.insert=function(t,e){},t.prototype.move=function(t,e){},t.prototype.indexOf=function(t){},t.prototype.remove=function(t){},t.prototype.detach=function(t){},t}(),bs=function(){function t(){}return t.prototype.markForCheck=function(){},t.prototype.detach=function(){},t.prototype.detectChanges=function(){},t.prototype.checkNoChanges=function(){},t.prototype.reattach=function(){},t}(),ws=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return no(e,t),e.prototype.destroy=function(){},e.prototype.destroyed=function(){},e.prototype.onDestroy=function(t){},e}(bs),Cs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return no(e,t),e.prototype.context=function(){},e.prototype.rootNodes=function(){},e}(ws),Es=function(){function t(t,e){this.name=t,this.callback=e}return t}(),Ss=function(){function t(t,e,r){this._debugContext=r,this.nativeNode=t,e&&e instanceof xs?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}),Object.defineProperty(t.prototype,"source",{get:function(){return"Deprecated since v4"},enumerable:!0,configurable:!0}),t}(),xs=function(t){function e(e,r,n){var o=t.call(this,e,r,n)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return no(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 r=this,n=this.childNodes.indexOf(t);-1!==n&&((o=this.childNodes).splice.apply(o,[n+1,0].concat(e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=r}));var o},e.prototype.insertBefore=function(t,e){var r=this.childNodes.indexOf(t);-1===r?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(r,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return Ct(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return Et(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(r){r.name==t&&r.callback(e)})},e}(Ss),Ps=new Map,Ts=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t}(),As=function(){function t(){this.hasWrappedValue=!1}return t.prototype.unwrap=function(t){return t instanceof Ts?(this.hasWrappedValue=!0,t.wrapped):t},t.prototype.reset=function(){this.hasWrappedValue=!1},t}(),Os=function(){function t(t,e,r){this.previousValue=t,this.currentValue=e,this.firstChange=r}return t.prototype.isFirstChange=function(){return this.firstChange},t}(),Ms=function(){function t(){}return t.prototype.supports=function(t){return At(t)},t.prototype.create=function(t,e){return new ks(e||t)},t}(),Rs=function(t,e){return e},ks=function(){function t(t){this._length=0,this._collection=null,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||Rs}return Object.defineProperty(t.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),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,r=this._removalsHead,n=0,o=null;e||r;){var i=!r||e&&e.currentIndex<kt(r,n,o)?e:r,s=kt(i,n,o),a=i.currentIndex;if(i===r)n--,r=r._nextRemoved;else if(e=e._next,null==i.previousIndex)n++;else{o||(o=[]);var u=s-n,c=a-n;if(u!=c){for(var l=0;l<u;l++){var p=l<o.length?o[l]:o[l]=0,h=p+l;c<=h&&h<u&&(o[l]=p+1)}o[i.previousIndex]=c-u}}s!==a&&t(i,s,a)}},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachMovedItem=function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.forEachIdentityChange=function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)},t.prototype.diff=function(t){if(null==t&&(t=[]),!At(t))throw new Error("Error trying to diff '"+c(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var r,n,o,i=this._itHead,s=!1;if(Array.isArray(t)){this._length=t.length;for(var a=0;a<this._length;a++)n=t[a],o=this._trackByFn(a,n),null!==i&&u(i.trackById,o)?(s&&(i=this._verifyReinsertion(i,n,o,a)),u(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,o,a),s=!0),i=i._next}else r=0,Mt(t,function(t){o=e._trackByFn(r,t),null!==i&&u(i.trackById,o)?(s&&(i=e._verifyReinsertion(i,t,o,r)),u(i.item,t)||e._addIdentityChange(i,t)):(i=e._mismatch(i,t,o,r),s=!0),i=i._next,r++}),this._length=r;return this._truncate(i),this._collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,r,n){var o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),t=null===this._linkedRecords?null:this._linkedRecords.get(r,n),null!==t?(u(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,n)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(u(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,n)):t=this._addAfter(new Ns(e,r),o,n),t},t.prototype._verifyReinsertion=function(t,e,r,n){var o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?t=this._reinsertAfter(o,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,e,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var n=t._prevRemoved,o=t._nextRemoved;return null===n?this._removalsHead=o:n._nextRemoved=o,null===o?this._removalsTail=n:o._prevRemoved=n,this._insertAfter(t,e,r),this._addToMoves(t,r),t},t.prototype._moveAfter=function(t,e,r){return this._unlink(t),this._insertAfter(t,e,r),this._addToMoves(t,r),t},t.prototype._addAfter=function(t,e,r){return this._insertAfter(t,e,r),null===this._additionsTail?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,r){var n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new js),this._linkedRecords.put(t),t.currentIndex=r,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,r=t._next;return null===e?this._itHead=r:e._next=r,null===r?this._itTail=e:r._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e?t:(null===this._movesTail?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new js),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t},t.prototype._addIdentityChange=function(t,e){return t.item=e,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t},t.prototype.toString=function(){var t=[];this.forEachItem(function(e){return t.push(e)});var e=[];this.forEachPreviousItem(function(t){return e.push(t)});var r=[];this.forEachAddedItem(function(t){return r.push(t)});var n=[];this.forEachMovedItem(function(t){return n.push(t)});var o=[];this.forEachRemovedItem(function(t){return o.push(t)});var i=[];return this.forEachIdentityChange(function(t){return i.push(t)}),"collection: "+t.join(", ")+"\nprevious: "+e.join(", ")+"\nadditions: "+r.join(", ")+"\nmoves: "+n.join(", ")+"\nremovals: "+o.join(", ")+"\nidentityChanges: "+i.join(", ")+"\n"},t}(),Ns=function(){function t(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}return t.prototype.toString=function(){return this.previousIndex===this.currentIndex?c(this.item):c(this.item)+"["+c(this.previousIndex)+"->"+c(this.currentIndex)+"]"},t}(),Is=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var r;for(r=this._head;null!==r;r=r._nextDup)if((null===e||e<r.currentIndex)&&u(r.trackById,t))return r;return null},t.prototype.remove=function(t){var e=t._prevDup,r=t._nextDup;return null===e?this._head=r:e._nextDup=r,null===r?this._tail=e:r._prevDup=e,null===this._head},t}(),js=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,r=this.map.get(e);r||(r=new Is,this.map.set(e,r)),r.add(t)},t.prototype.get=function(t,e){var r=t,n=this.map.get(r);return n?n.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t.prototype.toString=function(){return"_DuplicateMap("+c(this.map)+")"},t}(),Ds=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||Rt(t)},t.prototype.create=function(t){return new Ls},t}(),Ls=function(){function t(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||Rt(t)))throw new Error("Error trying to diff '"+c(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var r=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(t,n){if(r&&r.key===n)e._maybeAddToChanges(r,t),e._appendAfter=r,r=r._next;else{var o=e._getOrCreateRecordForKey(n,t);r=e._insertBeforeOrAppend(r,o)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(var n=r;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},t.prototype._insertBeforeOrAppend=function(t,e){if(t){var r=t._prev;return e._next=t,e._prev=r,t._prev=e,r&&(r._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null},t.prototype._getOrCreateRecordForKey=function(t,e){if(this._records.has(t)){var r=this._records.get(t);this._maybeAddToChanges(r,e);var n=r._prev,o=r._next;return n&&(n._next=o),o&&(o._prev=n),r._next=null,r._prev=null,r}var i=new Vs(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},t.prototype._maybeAddToChanges=function(t,e){u(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype.toString=function(){var t=[],e=[],r=[],n=[],o=[];return this.forEachItem(function(e){return t.push(c(e))}),this.forEachPreviousItem(function(t){return e.push(c(t))}),this.forEachChangedItem(function(t){return r.push(c(t))}),this.forEachAddedItem(function(t){return n.push(c(t))}),this.forEachRemovedItem(function(t){return o.push(c(t))}),"map: "+t.join(", ")+"\nprevious: "+e.join(", ")+"\nadditions: "+n.join(", ")+"\nchanges: "+r.join(", ")+"\nremovals: "+o.join(", ")+"\n"},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(r){return e(t[r],r)})},t}(),Vs=function(){function t(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}return t.prototype.toString=function(){return u(this.previousValue,this.currentValue)?c(this.key):c(this.key)+"["+c(this.previousValue)+"->"+c(this.currentValue)+"]"},t}(),Fs=function(){function t(t){this.factories=t}return t.create=function(e,r){if(null!=r){var n=r.factories.slice();return e=e.concat(n),new t(e)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(r){if(!r)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,r)},deps:[[t,new Bo,new Vo]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(null!=e)return e;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+Nt(t)+"'")},t}(),Us=function(){function t(t){this.factories=t}return t.create=function(e,r){if(r){var n=r.factories.slice();e=e.concat(n)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(r){if(!r)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,r)},deps:[[t,new Bo,new Vo]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(e)return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},t}(),Bs=[new Ds],Hs=new Fs([new Ms]),qs=new Us(Bs),Gs=pt(null,"core",[{provide:gi,useValue:"unknown"},es,{provide:ts,useExisting:es},{provide:ni,useFactory:It,deps:[]},{provide:ri,useExisting:ni},Wi,wi]),zs=new io("LocaleId"),$s=new io("Translations"),Ws=new io("TranslationsFormat"),Ks={};Ks.Error=0,Ks.Warning=1,Ks.Ignore=2,Ks[Ks.Error]="Error",Ks[Ks.Warning]="Warning",Ks[Ks.Ignore]="Ignore";var Qs={};Qs.NONE=0,Qs.HTML=1,Qs.STYLE=2,Qs.SCRIPT=3,Qs.URL=4,Qs.RESOURCE_URL=5,Qs[Qs.NONE]="NONE",Qs[Qs.HTML]="HTML",Qs[Qs.STYLE]="STYLE",Qs[Qs.SCRIPT]="SCRIPT",Qs[Qs.URL]="URL",Qs[Qs.RESOURCE_URL]="RESOURCE_URL";var Js=function(){function t(){}return t.prototype.sanitize=function(t,e){},t}(),Xs=function(){function t(){}return t.prototype.view=function(){},t.prototype.nodeIndex=function(){},t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.componentRenderElement=function(){},t.prototype.renderNode=function(){},t.prototype.logError=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r]},t}(),Zs={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},Ys=function(){},ta=new Map,ea="$$undefined",ra="$$empty",na=0,oa=new WeakMap,ia=/^:([^:]+):(.+)$/,sa=[],aa={},ua=new Object,ca=function(t){function e(e,r,n,o,i,s){var a=t.call(this)||this;return a.selector=e,a.componentType=r,a._inputs=o,a._outputs=i,a.ngContentSelectors=s,a.viewDefFactory=n,a}return no(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var r in e){var n=e[r];t.push({propName:r,templateName:n})}return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs){var r=this._outputs[e];t.push({propName:e,templateName:r})}return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,r,n){if(!n)throw new Error("ngModule should be provided");var o=pe(this.viewDefFactory),i=o.nodes[0].element.componentProvider.index,s=Zs.createRootView(t,e||[],r,o,n,ua),a=Lt(s,i).instance;return r&&s.renderer.setAttribute(Dt(s,0).renderElement,"ng-version",Do.full),new la(s,new ha(s),a)},e}(Ti),la=function(t){function e(e,r,n){var o=t.call(this)||this;return o._view=e,o._viewRef=r,o._component=n,o._elDef=o._view.def.nodes[0],o}return no(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new ps(Dt(this._view,this._elDef.index).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new da(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"instance",{get:function(){return this._component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostView",{get:function(){return this._viewRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"changeDetectorRef",{get:function(){return this._viewRef},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}(Pi),pa=function(){function t(t,e,r){this._view=t,this._elDef=e,this._data=r,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new ps(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new da(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=ne(t),t=t.parent;return t?new da(t,e):new da(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Ue(this._data,t);Zs.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var r=new ha(e);return r.attachToViewContainerRef(this),r}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,r){var n=t.createEmbeddedView(e||{});return this.insert(n,r),n},t.prototype.createComponent=function(t,e,r,n,o){var i=r||this.parentInjector;o||t instanceof Ii||(o=i.get(ji));var s=t.create(i,n,void 0,o);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){var r=t,n=r._view;return Le(this._view,this._data,e,n),r.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){var r=this._embeddedViews.indexOf(t._view);return He(this._data,r,e),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Ue(this._data,t);e&&Zs.destroyView(e)},t.prototype.detach=function(t){var e=Ue(this._data,t);return e?new ha(e):null},t}(),ha=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return he(this._view)},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(){Yt(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){Zs.checkAndUpdateView(this._view)},t.prototype.checkNoChanges=function(){Zs.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)),Zs.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Ge(this._view),Zs.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}(),fa=function(t){function e(e,r){var n=t.call(this)||this;return n._parentView=e,n._def=r,n}return no(e,t),e.prototype.createEmbeddedView=function(t){return new ha(Zs.createEmbeddedView(this._parentView,this._def,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new ps(Dt(this._parentView,this._def.index).renderElement)},enumerable:!0,configurable:!0}),e}(gs),da=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){void 0===e&&(e=$o.THROW_IF_NOT_FOUND);var r=!!this.elDef&&0!=(33554432&this.elDef.flags);return Zs.resolveDep(this.view,this.elDef,r,{flags:0,token:t,tokenKey:$t(t)},e)},t}(),ma=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 r=ge(e),n=r[0],o=r[1],i=this.delegate.createElement(o,n);return t&&this.delegate.appendChild(t,i),i},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 r=this.delegate.createText(e);return t&&this.delegate.appendChild(t,r),r},t.prototype.projectNodes=function(t,e){for(var r=0;r<e.length;r++)this.delegate.appendChild(t,e[r])},t.prototype.attachViewAfter=function(t,e){for(var r=this.delegate.parentNode(t),n=this.delegate.nextSibling(t),o=0;o<e.length;o++)this.delegate.insertBefore(r,e[o],n)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var r=t[e],n=this.delegate.parentNode(r);this.delegate.removeChild(n,r)}},t.prototype.destroyView=function(t,e){for(var r=0;r<e.length;r++)this.delegate.destroyNode(e[r])},t.prototype.listen=function(t,e,r){return this.delegate.listen(t,e,r)},t.prototype.listenGlobal=function(t,e,r){return this.delegate.listen(t,e,r)},t.prototype.setElementProperty=function(t,e,r){this.delegate.setProperty(t,e,r)},t.prototype.setElementAttribute=function(t,e,r){var n=ge(e),o=n[0],i=n[1];null!=r?this.delegate.setAttribute(t,i,r,o):this.delegate.removeAttribute(t,i,o)},t.prototype.setBindingDebugInfo=function(t,e,r){},t.prototype.setElementClass=function(t,e,r){r?this.delegate.addClass(t,e):this.delegate.removeClass(t,e)},t.prototype.setElementStyle=function(t,e,r){null!=r?this.delegate.setStyle(t,e,r):this.delegate.removeStyle(t,e)},t.prototype.invokeElementMethod=function(t,e,r){t[e].apply(t,r)},t.prototype.setText=function(t,e){this.delegate.setValue(t,e)},t.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},t}(),ya=$t(ss),va=$t(ls),ga=$t(ps),_a=$t(_s),ba=$t(gs),wa=$t(bs),Ca=$t($o),Ea=new Object,Sa={},xa={};xa.CreateViewNodes=0,xa.CheckNoChanges=1,xa.CheckNoChangesProjectedViews=2,xa.CheckAndUpdate=3,xa.CheckAndUpdateProjectedViews=4,xa.Destroy=5,xa[xa.CreateViewNodes]="CreateViewNodes",xa[xa.CheckNoChanges]="CheckNoChanges",xa[xa.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",xa[xa.CheckAndUpdate]="CheckAndUpdate",xa[xa.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",xa[xa.Destroy]="Destroy";var Pa=!1,Ta={};Ta.create=0,Ta.detectChanges=1,Ta.checkNoChanges=2,Ta.destroy=3,Ta.handleEvent=4,Ta[Ta.create]="create",Ta[Ta.detectChanges]="detectChanges",Ta[Ta.checkNoChanges]="checkNoChanges",Ta[Ta.destroy]="destroy",Ta[Ta.handleEvent]="handleEvent";var Aa,Oa,Ma,Ra=/([A-Z])/g,ka=function(){function t(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];for(var r=this.nodeDef,n=t;r&&0==(1&r.flags);)r=r.parent;if(!r)for(;!r&&n;)r=ne(n),n=n.parent;this.elDef=r,this.elView=n}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return Dt(this.elView,this.elDef.index).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return Ze(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=[];if(this.elDef)for(var e=this.elDef.index+1;e<=this.elDef.index+this.elDef.childCount;e++){var r=this.elView.def.nodes[e];20224&r.flags&&t.push(r.provider.token),e+=r.childCount}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t={};if(this.elDef){In(this.elView,this.elDef,t);for(var e=this.elDef.index+1;e<=this.elDef.index+this.elDef.childCount;e++){var r=this.elView.def.nodes[e];20224&r.flags&&In(this.elView,r,t),e+=r.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=Nn(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?oe(this.view,this.nodeDef):oe(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n,o;2&this.nodeDef.flags?(n=this.view.def,o=this.nodeDef.index):(n=this.elView.def,o=this.elDef.index);var i=kn(n,o),s=-1,a=function(){return s++,s===i?(r=t.error).bind.apply(r,[t].concat(e)):Ys;var r};n.factory(a),s<i&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,e))},t}(),Na=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new Ia(this.delegate.createRenderer(t,e))},t}(),Ia=function(){function t(t){this.delegate=t}return Object.defineProperty(t.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),t.prototype.destroyNode=function(t){Pt(St(t)),this.delegate.destroyNode&&this.delegate.destroyNode(t)},t.prototype.destroy=function(){this.delegate.destroy()},t.prototype.createElement=function(t,e){var r=this.delegate.createElement(t,e),n=Dn();if(n){var o=new xs(r,null,n);o.name=t,xt(o)}return r},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),r=Dn();return r&&xt(new Ss(e,null,r)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),r=Dn();return r&&xt(new Ss(e,null,r)),e},t.prototype.appendChild=function(t,e){var r=St(t),n=St(e);r&&n&&r instanceof xs&&r.addChild(n),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,r){var n=St(t),o=St(e),i=St(r);n&&o&&n instanceof xs&&n.insertBefore(i,o),this.delegate.insertBefore(t,e,r)},t.prototype.removeChild=function(t,e){var r=St(t),n=St(e);r&&n&&r instanceof xs&&r.removeChild(n),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t){var e=this.delegate.selectRootElement(t),r=Dn();return r&&xt(new xs(e,null,r)),e},t.prototype.setAttribute=function(t,e,r,n){var o=St(t);if(o&&o instanceof xs){var i=n?n+":"+e:e;o.attributes[i]=r}this.delegate.setAttribute(t,e,r,n)},t.prototype.removeAttribute=function(t,e,r){var n=St(t);if(n&&n instanceof xs){var o=r?r+":"+e:e;n.attributes[o]=null}this.delegate.removeAttribute(t,e,r)},t.prototype.addClass=function(t,e){var r=St(t);r&&r instanceof xs&&(r.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var r=St(t);r&&r instanceof xs&&(r.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,r,n){var o=St(t);o&&o instanceof xs&&(o.styles[e]=r),this.delegate.setStyle(t,e,r,n)},t.prototype.removeStyle=function(t,e,r){var n=St(t);n&&n instanceof xs&&(n.styles[e]=null),this.delegate.removeStyle(t,e,r)},t.prototype.setProperty=function(t,e,r){var n=St(t);n&&n instanceof xs&&(n.properties[e]=r),this.delegate.setProperty(t,e,r)},t.prototype.listen=function(t,e,r){if("string"!=typeof t){var n=St(t);n&&n.listeners.push(new Es(e,r))}return this.delegate.listen(t,e,r)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setValue=function(t,e){return this.delegate.setValue(t,e)},t}(),ja=function(){function t(t){}return t}();ja.decorators=[{type:ko,args:[{providers:[ns,{provide:rs,useExisting:ns},di,Ei,yi,{provide:Fs,useFactory:Ln},{provide:Us,useFactory:Vn},{provide:zs,useFactory:Fn,deps:[[new Lo(zs),new Vo,new Bo]]},{provide:fi,useValue:Un,multi:!0}]}]}],ja.ctorParameters=function(){return[{type:rs}]};var Da={};Da.OnInit=0,Da.OnDestroy=1,Da.DoCheck=2,Da.OnChanges=3,Da.AfterContentInit=4,Da.AfterContentChecked=5,Da.AfterViewInit=6,Da.AfterViewChecked=7,Da[Da.OnInit]="OnInit",Da[Da.OnDestroy]="OnDestroy",Da[Da.DoCheck]="DoCheck",Da[Da.OnChanges]="OnChanges",Da[Da.AfterContentInit]="AfterContentInit",Da[Da.AfterContentChecked]="AfterContentChecked",Da[Da.AfterViewInit]="AfterViewInit",Da[Da.AfterViewChecked]="AfterViewChecked";var La=[Da.OnInit,Da.OnDestroy,Da.DoCheck,Da.OnChanges,Da.AfterContentInit,Da.AfterContentChecked,Da.AfterViewInit,Da.AfterViewChecked];t.Class=h,t.createPlatform=lt,t.assertPlatform=ht,t.destroyPlatform=ft,t.getPlatform=dt,t.PlatformRef=ts,t.ApplicationRef=rs,t.enableProdMode=ut,t.isDevMode=ct,t.createPlatformFactory=pt,t.NgProbeToken=Yi,t.APP_ID=mi,t.PACKAGE_ROOT_URL=bi,t.PLATFORM_INITIALIZER=vi,t.PLATFORM_ID=gi,t.APP_BOOTSTRAP_LISTENER=_i,t.APP_INITIALIZER=fi,t.ApplicationInitStatus=di,t.DebugElement=xs,t.DebugNode=Ss,t.asNativeElements=wt,t.getDebugNode=St,t.Testability=$i,t.TestabilityRegistry=Wi,t.setTestabilityGetter=at,t.TRANSLATIONS=$s,t.TRANSLATIONS_FORMAT=Ws,t.LOCALE_ID=zs,t.MissingTranslationStrategy=Ks,t.ApplicationModule=ja,t.wtfCreateScope=Ui,t.wtfLeave=Bi,t.wtfStartTimeRange=Hi,t.wtfEndTimeRange=qi,t.Type=Yo,t.EventEmitter=Gi,t.ErrorHandler=Jo,t.Sanitizer=Js,t.SecurityContext=Qs,t.ANALYZE_FOR_ENTRY_COMPONENTS=fo,t.Attribute=mo,t.ContentChild=go,t.ContentChildren=vo,t.Query=yo,t.ViewChild=bo,t.ViewChildren=_o,t.Component=So,t.Directive=Eo,t.HostBinding=Ao,t.HostListener=Oo,t.Input=Po,t.Output=To,t.Pipe=xo,t.CUSTOM_ELEMENTS_SCHEMA=Mo,t.NO_ERRORS_SCHEMA=Ro,t.NgModule=ko,t.ViewEncapsulation=No,t.Version=jo,t.VERSION=Do,t.forwardRef=g,t.resolveForwardRef=_,t.Injector=$o,t.ReflectiveInjector=li,t.ResolvedReflectiveFactory=ui,t.ReflectiveKey=Xo,t.InjectionToken=io,t.OpaqueToken=oo,t.Inject=Lo,t.Optional=Vo,t.Injectable=Fo,t.Self=Uo,t.SkipSelf=Bo,t.Host=Ho,t.NgZone=zi,t.RenderComponentType=os,t.Renderer=ss,t.Renderer2=ls,t.RendererFactory2=us,t.RendererStyleFlags2=cs,t.RootRenderer=as,t.COMPILER_OPTIONS=Si,t.Compiler=Ei,t.CompilerFactory=xi,t.ModuleWithComponentFactories=Ci,t.ComponentFactory=Ti,t.ComponentRef=Pi,t.ComponentFactoryResolver=Mi,t.ElementRef=ps,t.NgModuleFactory=Di,t.NgModuleRef=ji,t.NgModuleFactoryLoader=hs,t.getModuleFactory=gt,t.QueryList=ds,t.SystemJsNgModuleLoader=vs,t.SystemJsNgModuleLoaderConfig=ms,t.TemplateRef=gs,t.ViewContainerRef=_s,t.EmbeddedViewRef=Cs,t.ViewRef=ws,t.ChangeDetectionStrategy=wo,t.ChangeDetectorRef=bs,t.DefaultIterableDiffer=ks,t.IterableDiffers=Fs,t.KeyValueDiffers=Us,t.SimpleChange=Os,t.WrappedValue=Ts,t.platformCore=Gs,t.ɵALLOW_MULTIPLE_PLATFORMS=Zi,t.ɵAPP_ID_RANDOM_PROVIDER=yi,t.ɵValueUnwrapper=As,t.ɵdevModeEqual=Tt,t.ɵisListLikeIterable=At,t.ɵChangeDetectorStatus=Co,t.ɵisDefaultChangeDetectionStrategy=v,t.ɵConsole=wi,t.ɵERROR_COMPONENT_TYPE="ngComponentType",t.ɵComponentFactory=Ti,t.ɵCodegenComponentFactoryResolver=Ni,t.ɵLIFECYCLE_HOOKS_VALUES=La,t.ɵLifecycleHooks=Da,t.ɵViewMetadata=Io,t.ɵReflector=ni,t.ɵreflector=oi,t.ɵReflectionCapabilities=ei,t.ɵReflectorReader=ri,t.ɵRenderDebugInfo=is,t.ɵglobal=co,t.ɵlooseIdentical=u,t.ɵstringify=c,t.ɵmakeDecorator=f,t.ɵisObservable=J,t.ɵisPromise=Q,t.ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR=Sa,t.ɵNgModuleInjector=Vi,t.ɵregisterModuleFactory=vt,t.ɵEMPTY_ARRAY=sa,t.ɵEMPTY_MAP=aa,t.ɵand=Ee,t.ɵccf=We,t.ɵcrt=Kt,t.ɵdid=er,t.ɵeld=Se,t.ɵelementEventFullName=ie,t.ɵgetComponentViewDefinitionFactory=Ke,t.ɵinlineInterpolate=we,t.ɵinterpolate=be,t.ɵncd=je,t.ɵnov=Ye,t.ɵpid=rr,t.ɵprd=nr,t.ɵpad=wr,t.ɵpod=Cr,t.ɵppd=br,t.ɵqud=Tr,t.ɵted=Nr,t.ɵunv=Wt,t.ɵvid=Vr,t.AUTO_STYLE="*",t.trigger=Qn,t.animate=Jn,t.group=Xn,t.sequence=Zn,t.style=Yn,t.state=to,t.keyframes=eo,t.transition=ro,t.ɵba=Hn,t.ɵbb=qn,t.ɵbf=Wn,t.ɵbc=Gn,t.ɵbe=$n,t.ɵbd=zn,t.ɵbg=Kn,t.ɵz=Bn,t.ɵo=Un,t.ɵl=Ln,t.ɵm=Vn,t.ɵn=Fn,t.ɵf=ns,t.ɵg=X,t.ɵh=Hs,t.ɵi=qs,t.ɵj=Ms,t.ɵk=Ds,t.ɵc=pi,t.ɵd=ii,t.ɵe=B,t.ɵp=Fi,t.ɵr=rt,t.ɵq=et,t.ɵu=it,t.ɵs=nt,t.ɵt=ot,t.ɵa=m,t.ɵb=y,t.ɵw=or,t.ɵx=Xs,Object.defineProperty(t,"__esModule",{value:!0})})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"rxjs/Observable":29,"rxjs/Subject":32,"rxjs/observable/merge":49,"rxjs/operator/share":65}],21:[function(t,e,r){!function(n,o){"object"==typeof r&&void 0!==e?o(r,t("@angular/core"),t("rxjs/observable/forkJoin"),t("rxjs/observable/fromPromise"),t("rxjs/operator/map"),t("@angular/platform-browser")):o((n.ng=n.ng||{},n.ng.forms=n.ng.forms||{}),n.ng.core,n.Rx.Observable,n.Rx.Observable,n.Rx.Observable.prototype,n.ng.platformBrowser)}(this,function(t,e,r,n,o,i){"use strict";function s(t){return null==t||0===t.length}function a(t){return null!=t}function u(t){var r=e.ɵisPromise(t)?n.fromPromise(t):t;if(!e.ɵisObservable(r))throw new Error("Expected validator to return Promise or Observable.");return r}function c(t,e){return e.map(function(e){return e(t)})}function l(t,e){return e.map(function(e){return e(t)})}function p(t){var e=t.reduce(function(t,e){return null!=e?F({},t,e):t},{});return 0===Object.keys(e).length?null:e}function h(){var t=i.ɵgetDOM()?i.ɵgetDOM().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}function f(t){return t.validate?function(e){return t.validate(e)}:t}function d(t){return t.validate?function(e){return t.validate(e)}:t}function m(){throw new Error("unimplemented")}function y(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function v(t){return t.split(":")[0]}function g(t,e){return null==t?""+e:("string"==typeof e&&(e="'"+e+"'"),e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function _(t){return t.split(":")[0]}function b(t,e){return e.path.concat([t])}function w(t,e){t||x(e,"Cannot find control with"),e.valueAccessor||x(e,"No value accessor for form control with"),t.validator=q.compose([t.validator,e.validator]),t.asyncValidator=q.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),e.valueAccessor.registerOnChange(function(r){e.viewToModelUpdate(r),t.markAsDirty(),t.setValue(r,{emitModelToViewChange:!1})}),e.valueAccessor.registerOnTouched(function(){return t.markAsTouched()}),t.registerOnChange(function(t,r){e.valueAccessor.writeValue(t),r&&e.viewToModelUpdate(t)}),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function C(t,e){e.valueAccessor.registerOnChange(function(){return S(e)}),e.valueAccessor.registerOnTouched(function(){return S(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}function E(t,e){null==t&&x(e,"Cannot find control with"),t.validator=q.compose([t.validator,e.validator]),t.asyncValidator=q.composeAsync([t.asyncValidator,e.asyncValidator])}function S(t){return x(t,"There is no FormControl instance attached to form control element with")}function x(t,e){var r;throw r=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+r)}function P(t){return null!=t?q.compose(t.map(f)):null}function T(t){return null!=t?q.composeAsync(t.map(d)):null}function A(t,r){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!e.ɵlooseIdentical(r,n.currentValue)}function O(t){return lt.some(function(e){return t.constructor===e})}function M(t,e){if(!e)return null;var r=void 0,n=void 0,o=void 0;return e.forEach(function(e){e.constructor===Q?r=e:O(e)?(n&&x(t,"More than one built-in value accessor matches form control with"),n=e):(o&&x(t,"More than one custom value accessor matches form control with"),o=e)}),o||(n||(r||(x(t,"No valid value accessor for form control with"),null)))}function R(t,e,r){return null==e?null:(e instanceof Array||(e=e.split(r)),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof gt?t.controls[e]||null:t instanceof _t?t.at(e)||null:null},t))}function k(t){return Array.isArray(t)?P(t):t||null}function N(t){return Array.isArray(t)?T(t):t||null}function I(t,e){var r=t.indexOf(e);r>-1&&t.splice(r,1)}function j(t){return!(t instanceof Dt||t instanceof It||t instanceof Vt)}var D=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},L=function(){function t(){}return t.prototype.control=function(){},Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return!!this.control&&this.control.hasError(t,e)},t.prototype.getError=function(t,e){return this.control?this.control.getError(t,e):null},t}(),V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return D(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e}(L),F=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},U=new e.InjectionToken("NgValidators"),B=new e.InjectionToken("NgAsyncValidators"),H=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,q=function(){function t(){}return t.required=function(t){return s(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return H.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(s(e.value))return null;var r=e.value?e.value.length:0;return r<t?{minlength:{requiredLength:t,actualLength:r}}:null}},t.maxLength=function(t){return function(e){var r=e.value?e.value.length:0;return r>t?{maxlength:{requiredLength:t,actualLength:r}}:null}},t.pattern=function(e){if(!e)return t.nullValidator;var r,n;return"string"==typeof e?(n="^"+e+"$",r=new RegExp(n)):(n=e.toString(),r=e),function(t){if(s(t.value))return null;var e=t.value;return r.test(e)?null:{pattern:{requiredPattern:n,actualValue:e}}}},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(a);return 0==e.length?null:function(t){return p(c(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(a);return 0==e.length?null:function(t){var n=l(t,e).map(u);return o.map.call(r.forkJoin(n),p)}},t}(),G=new e.InjectionToken("NgValueAccessor"),z={provide:G,useExisting:e.forwardRef(function(){return $}),multi:!0},$=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();$.decorators=[{type:e.Directive,args:[{selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[z]}]}],$.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]};var W={provide:G,useExisting:e.forwardRef(function(){return Q}),multi:!0},K=new e.InjectionToken("CompositionEventMode"),Q=function(){function t(t,e,r){this._renderer=t,this._elementRef=e,this._compositionMode=r,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!h())}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t}();Q.decorators=[{type:e.Directive,args:[{selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"_handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"_compositionStart()","(compositionend)":"_compositionEnd($event.target.value)"},providers:[W]}]}],Q.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[K]}]}]};var J={provide:G,useExisting:e.forwardRef(function(){return X}),multi:!0},X=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();X.decorators=[{type:e.Directive,args:[{selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[J]}]}],X.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]};var Z=function(t){function e(){var e=t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return D(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return m()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return m()},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){},e}(L),Y={provide:G,useExisting:e.forwardRef(function(){return et}),multi:!0},tt=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(r){e._isSameGroup(r,t)&&r[1]!==t&&r[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&(t[0]._parent===e._control._parent&&t[1].name===e.name)},t}();tt.decorators=[{type:e.Injectable}],tt.ctorParameters=function(){return[]};var et=function(){function t(t,e,r,n){this._renderer=t,this._elementRef=e,this._registry=r,this._injector=n,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(Z),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n      If you define both a name and a formControlName attribute on your radio button, their values\n      must match. Ex: <input type="radio" formControlName="food" name="food">\n    ')},t}();et.decorators=[{type:e.Directive,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[Y]}]}],et.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef},{type:tt},{type:e.Injector}]},et.propDecorators={name:[{type:e.Input}],formControlName:[{type:e.Input}],value:[{type:e.Input}]};var rt={provide:G,useExisting:e.forwardRef(function(){return nt}),multi:!0},nt=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();nt.decorators=[{type:e.Directive,args:[{selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[rt]}]}],nt.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]};var ot={provide:G,useExisting:e.forwardRef(function(){return it}),multi:!0},it=function(){function t(t,r){this._renderer=t,this._elementRef=r,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=e.ɵlooseIdentical}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setElementProperty(this._elementRef.nativeElement,"selectedIndex",-1);var r=y(e,t);this._renderer.setElementProperty(this._elementRef.nativeElement,"value",r)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(r){e.value=r,t(e._getOptionValue(r))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){for(var e=0,r=Array.from(this._optionMap.keys());e<r.length;e++){var n=r[e];if(this._compareWith(this._optionMap.get(n),t))return n}return null},t.prototype._getOptionValue=function(t){var e=v(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}();it.decorators=[{type:e.Directive,args:[{selector:"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]",host:{"(change)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[ot]}]}],it.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]},it.propDecorators={compareWith:[{type:e.Input}]};var st=function(){function t(t,e,r){this._element=t,this._renderer=e,this._select=r,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(y(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setElementProperty(this._element.nativeElement,"value",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t}();st.decorators=[{type:e.Directive,args:[{selector:"option"}]}],st.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer},{type:it,decorators:[{type:e.Optional},{type:e.Host}]}]},st.propDecorators={ngValue:[{type:e.Input,args:["ngValue"]}],value:[{type:e.Input,args:["value"]}]};var at={provide:G,useExisting:e.forwardRef(function(){return ut}),multi:!0},ut=function(){function t(t,r){this._renderer=t,this._elementRef=r,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=e.ɵlooseIdentical}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e=this;this.value=t;var r;if(Array.isArray(t)){var n=t.map(function(t){return e._getOptionId(t)});r=function(t,e){t._setSelected(n.indexOf(e.toString())>-1)}}else r=function(t,e){t._setSelected(!1)};this._optionMap.forEach(r)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(r){var n=[];if(r.hasOwnProperty("selectedOptions"))for(var o=r.selectedOptions,i=0;i<o.length;i++){var s=o.item(i),a=e._getOptionValue(s.value);n.push(a)}else for(var o=r.options,i=0;i<o.length;i++)if((s=o.item(i)).selected){a=e._getOptionValue(s.value);n.push(a)}e.value=n,t(n)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(t){var e=(this._idCounter++).toString();return this._optionMap.set(e,t),e},t.prototype._getOptionId=function(t){for(var e=0,r=Array.from(this._optionMap.keys());e<r.length;e++){var n=r[e];if(this._compareWith(this._optionMap.get(n)._value,t))return n}return null},t.prototype._getOptionValue=function(t){var e=_(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t},t}();ut.decorators=[{type:e.Directive,args:[{selector:"select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]",host:{"(change)":"onChange($event.target)","(blur)":"onTouched()"},providers:[at]}]}],ut.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]},ut.propDecorators={compareWith:[{type:e.Input}]};var ct=function(){function t(t,e,r){this._element=t,this._renderer=e,this._select=r,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._value=t,this._setElementValue(g(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._select?(this._value=t,this._setElementValue(g(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setElementProperty(this._element.nativeElement,"value",t)},t.prototype._setSelected=function(t){this._renderer.setElementProperty(this._element.nativeElement,"selected",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t}();ct.decorators=[{type:e.Directive,args:[{selector:"option"}]}],ct.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer},{type:ut,decorators:[{type:e.Optional},{type:e.Host}]}]},ct.propDecorators={ngValue:[{type:e.Input,args:["ngValue"]}],value:[{type:e.Input,args:["value"]}]};var lt=[$,nt,X,it,ut,et],pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return D(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return b(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return P(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return T(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(V),ht=function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),t}(),ft={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},dt=function(t){function e(e){return t.call(this,e)||this}return D(e,t),e}(ht);dt.decorators=[{type:e.Directive,args:[{selector:"[formControlName],[ngModel],[formControl]",host:ft}]}],dt.ctorParameters=function(){return[{type:Z,decorators:[{type:e.Self}]}]};var mt=function(t){function e(e){return t.call(this,e)||this}return D(e,t),e}(ht);mt.decorators=[{type:e.Directive,args:[{selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:ft}]}],mt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Self}]}]};var yt=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this._pristine=!0,this._touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return"VALID"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return"INVALID"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return"PENDING"==this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return"DISABLED"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return"DISABLED"!==this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this._errors},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this._pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this._valueChanges},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this._statusChanges},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=k(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=N(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){var e=(void 0===t?{}:t).onlySelf;this._touched=!0,this._parent&&!e&&this._parent.markAsTouched({onlySelf:e})},t.prototype.markAsUntouched=function(t){var e=(void 0===t?{}:t).onlySelf;this._touched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!e&&this._parent._updateTouched({onlySelf:e})},t.prototype.markAsDirty=function(t){var e=(void 0===t?{}:t).onlySelf;this._pristine=!1,this._parent&&!e&&this._parent.markAsDirty({onlySelf:e})},t.prototype.markAsPristine=function(t){var e=(void 0===t?{}:t).onlySelf;this._pristine=!0,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!e&&this._parent._updatePristine({onlySelf:e})},t.prototype.markAsPending=function(t){var e=(void 0===t?{}:t).onlySelf;this._status="PENDING",this._parent&&!e&&this._parent.markAsPending({onlySelf:e})},t.prototype.disable=function(t){var e=void 0===t?{}:t,r=e.onlySelf,n=e.emitEvent;this._status="DISABLED",this._errors=null,this._forEachChild(function(t){t.disable({onlySelf:!0})}),this._updateValue(),!1!==n&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._updateAncestors(!!r),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){var e=void 0===t?{}:t,r=e.onlySelf,n=e.emitEvent;this._status="VALID",this._forEachChild(function(t){t.enable({onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n}),this._updateAncestors(!!r),this._onDisabledChange.forEach(function(t){return t(!1)})},t.prototype._updateAncestors=function(t){this._parent&&!t&&(this._parent.updateValueAndValidity(),this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.setValue=function(t,e){},t.prototype.patchValue=function(t,e){},t.prototype.reset=function(t,e){},t.prototype.updateValueAndValidity=function(t){var e=void 0===t?{}:t,r=e.onlySelf,n=e.emitEvent;this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this._errors=this._runValidator(),this._status=this._calculateStatus(),"VALID"!==this._status&&"PENDING"!==this._status||this._runAsyncValidator(n)),!1!==n&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._parent&&!r&&this._parent.updateValueAndValidity({onlySelf:r,emitEvent:n})},t.prototype._updateTreeValidity=function(t){var e=(void 0===t?{emitEvent:!0}:t).emitEvent;this._forEachChild(function(t){return t._updateTreeValidity({emitEvent:e})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e})},t.prototype._setInitialStatus=function(){this._status=this._allControlsDisabled()?"DISABLED":"VALID"},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this._status="PENDING";var r=u(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(function(r){return e.setErrors(r,{emitEvent:t})})}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){var r=(void 0===e?{}:e).emitEvent;this._errors=t,this._updateControlsErrors(!1!==r)},t.prototype.get=function(t){return R(this,t,".")},t.prototype.getError=function(t,e){var r=e?this.get(e):this;return r&&r._errors?r._errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this._status=this._calculateStatus(),t&&this._statusChanges.emit(this._status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this._valueChanges=new e.EventEmitter,this._statusChanges=new e.EventEmitter},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this._errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},t.prototype._updateValue=function(){},t.prototype._forEachChild=function(t){},t.prototype._anyControls=function(t){},t.prototype._allControlsDisabled=function(){},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls(function(e){return e.status===t})},t.prototype._anyControlsDirty=function(){return this._anyControls(function(t){return t.dirty})},t.prototype._anyControlsTouched=function(){return this._anyControls(function(t){return t.touched})},t.prototype._updatePristine=function(t){var e=(void 0===t?{}:t).onlySelf;this._pristine=!this._anyControlsDirty(),this._parent&&!e&&this._parent._updatePristine({onlySelf:e})},t.prototype._updateTouched=function(t){var e=(void 0===t?{}:t).onlySelf;this._touched=this._anyControlsTouched(),this._parent&&!e&&this._parent._updateTouched({onlySelf:e})},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t}(),vt=function(t){function e(e,r,n){void 0===e&&(e=null);var o=t.call(this,k(r),N(n))||this;return o._onChange=[],o._applyFormState(e),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o._initObservables(),o}return D(e,t),e.prototype.setValue=function(t,e){var r=this;void 0===e&&(e={}),this._value=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(function(t){return t(r._value,!1!==e.emitViewToModelChange)}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this._value,e)},e.prototype._updateValue=function(){},e.prototype._anyControls=function(t){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(t){},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this._value=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this._value=t},e}(yt),gt=function(t){function e(e,r,n){var o=t.call(this,r||null,n||null)||this;return o.controls=e,o._initObservables(),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return D(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var r=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),Object.keys(t).forEach(function(n){r._throwIfControlMissing(n),r.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var r=this;void 0===e&&(e={}),Object.keys(t).forEach(function(n){r.controls[n]&&r.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this._forEachChild(function(r,n){r.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},function(t,e,r){return t[r]=e instanceof vt?e.value:e.getRawValue(),t})},e.prototype._throwIfControlMissing=function(t){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[t])throw new Error("Cannot find form control with name: "+t+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach(function(r){return t(e.controls[r],r)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})},e.prototype._updateValue=function(){this._value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,r=!1;return this._forEachChild(function(n,o){r=r||e.contains(o)&&t(n)}),r},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},function(e,r,n){return(r.enabled||t.disabled)&&(e[n]=r.value),e})},e.prototype._reduceChildren=function(t,e){var r=t;return this._forEachChild(function(t,n){r=e(r,t,n)}),r},e.prototype._allControlsDisabled=function(){for(var t=0,e=Object.keys(this.controls);t<e.length;t++){var r=e[t];if(this.controls[r].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,r){if(void 0===t[r])throw new Error("Must supply a value for form control with name: '"+r+"'.")})},e}(yt),_t=function(t){function e(e,r,n){var o=t.call(this,r||null,n||null)||this;return o.controls=e,o._initObservables(),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return D(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var r=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,n){r._throwIfControlMissing(n),r.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var r=this;void 0===e&&(e={}),t.forEach(function(t,n){r.at(n)&&r.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(r,n){r.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof vt?t.value:t.getRawValue()})},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,r){t(e,r)})},e.prototype._updateValue=function(){var t=this;this._value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,r){if(void 0===t[r])throw new Error("Must supply a value for form control at index: "+r+".")})},e.prototype._allControlsDisabled=function(){for(var t=0,e=this.controls;t<e.length;t++)if(e[t].enabled)return!1;return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(yt),bt={provide:V,useExisting:e.forwardRef(function(){return Ct})},wt=Promise.resolve(null),Ct=function(t){function r(r,n){var o=t.call(this)||this;return o._submitted=!1,o.ngSubmit=new e.EventEmitter,o.form=new gt({},P(r),T(n)),o}return D(r,t),Object.defineProperty(r.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),r.prototype.addControl=function(t){var e=this;wt.then(function(){var r=e._findContainer(t.path);t._control=r.registerControl(t.name,t.control),w(t.control,t),t.control.updateValueAndValidity({emitEvent:!1})})},r.prototype.getControl=function(t){return this.form.get(t.path)},r.prototype.removeControl=function(t){var e=this;wt.then(function(){var r=e._findContainer(t.path);r&&r.removeControl(t.name)})},r.prototype.addFormGroup=function(t){var e=this;wt.then(function(){var r=e._findContainer(t.path),n=new gt({});E(n,t),r.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})},r.prototype.removeFormGroup=function(t){var e=this;wt.then(function(){var r=e._findContainer(t.path);r&&r.removeControl(t.name)})},r.prototype.getFormGroup=function(t){return this.form.get(t.path)},r.prototype.updateModel=function(t,e){var r=this;wt.then(function(){r.form.get(t.path).setValue(e)})},r.prototype.setValue=function(t){this.control.setValue(t)},r.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},r.prototype.onReset=function(){this.resetForm()},r.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},r.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},r}(V);Ct.decorators=[{type:e.Directive,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]",providers:[bt],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],Ct.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]}]};var Et={formControlName:'\n    <div [formGroup]="myGroup">\n      <input formControlName="firstName">\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });',formGroupName:'\n    <div [formGroup]="myGroup">\n       <div formGroupName="person">\n          <input formControlName="firstName">\n       </div>\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });',formArrayName:'\n    <div [formGroup]="myGroup">\n      <div formArrayName="cities">\n        <div *ngFor="let city of cityArray.controls; index as i">\n          <input [formControlName]="i">\n        </div>\n      </div>\n    </div>\n\n    In your class:\n\n    this.cityArray = new FormArray([new FormControl(\'SF\')]);\n    this.myGroup = new FormGroup({\n      cities: this.cityArray\n    });',ngModelGroup:'\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>',ngModelWithFormGroup:'\n    <div [formGroup]="myGroup">\n       <input formControlName="firstName">\n       <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n    </div>\n  '},St=function(){function t(){}return t.modelParentException=function(){throw new Error('\n      ngModel cannot be used to register form controls with a parent formGroup directive.  Try using\n      formGroup\'s partner directive "formControlName" instead.  Example:\n\n      '+Et.formControlName+"\n\n      Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n      Example:\n\n      "+Et.ngModelWithFormGroup)},t.formGroupNameException=function(){throw new Error("\n      ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n      Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n      "+Et.formGroupName+"\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      "+Et.ngModelGroup)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n      control must be defined as \'standalone\' in ngModelOptions.\n\n      Example 1: <input [(ngModel)]="person.firstName" name="first">\n      Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},t.modelGroupParentException=function(){throw new Error("\n      ngModelGroup cannot be used with a parent formGroup directive.\n\n      Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n      "+Et.formGroupName+"\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      "+Et.ngModelGroup)},t}(),xt={provide:V,useExisting:e.forwardRef(function(){return Pt})},Pt=function(t){function e(e,r,n){var o=t.call(this)||this;return o._parent=e,o._validators=r,o._asyncValidators=n,o}return D(e,t),e.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof Ct||St.modelGroupParentException()},e}(pt);Pt.decorators=[{type:e.Directive,args:[{selector:"[ngModelGroup]",providers:[xt],exportAs:"ngModelGroup"}]}],Pt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]}]},Pt.propDecorators={name:[{type:e.Input,args:["ngModelGroup"]}]};var Tt={provide:Z,useExisting:e.forwardRef(function(){return Ot})},At=Promise.resolve(null),Ot=function(t){function r(r,n,o,i){var s=t.call(this)||this;return s._control=new vt,s._registered=!1,s.update=new e.EventEmitter,s._parent=r,s._rawValidators=n||[],s._rawAsyncValidators=o||[],s.valueAccessor=M(s,i),s}return D(r,t),r.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),A(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},r.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(r.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"path",{get:function(){return this._parent?b(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"validator",{get:function(){return P(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"asyncValidator",{get:function(){return T(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),r.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},r.prototype._setUpControl=function(){this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},r.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},r.prototype._setUpStandalone=function(){w(this._control,this),this._control.updateValueAndValidity({emitEvent:!1})},r.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},r.prototype._checkParentType=function(){!(this._parent instanceof Pt)&&this._parent instanceof pt?St.formGroupNameException():this._parent instanceof Pt||this._parent instanceof Ct||St.modelParentException()},r.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||St.missingNameException()},r.prototype._updateValue=function(t){var e=this;At.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},r.prototype._updateDisabled=function(t){var e=this,r=t.isDisabled.currentValue,n=""===r||r&&"false"!==r;At.then(function(){n&&!e.control.disabled?e.control.disable():!n&&e.control.disabled&&e.control.enable()})},r}(Z);Ot.decorators=[{type:e.Directive,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[Tt],exportAs:"ngModel"}]}],Ot.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[G]}]}]},Ot.propDecorators={name:[{type:e.Input}],isDisabled:[{type:e.Input,args:["disabled"]}],model:[{type:e.Input,args:["ngModel"]}],options:[{type:e.Input,args:["ngModelOptions"]}],update:[{type:e.Output,args:["ngModelChange"]}]};var Mt=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      "+Et.formControlName)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n       that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n       Option 1:  Update the parent to be formGroupName (reactive form strategy)\n\n        '+Et.formGroupName+"\n\n        Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n        "+Et.ngModelGroup)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n       Example:\n\n       "+Et.formControlName)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive.  You'll want to add a formGroup\n      directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      "+Et.formGroupName)},t.arrayParentException=function(){throw new Error("formArrayName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n        Example:\n\n        "+Et.formArrayName)},t.disabledAttrWarning=function(){console.warn("\n      It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n      when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n      you. We recommend using this approach to avoid 'changed after checked' errors.\n       \n      Example: \n      form = new FormGroup({\n        first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n        last: new FormControl('Drew', Validators.required)\n      });\n    ")},t}(),Rt={provide:Z,useExisting:e.forwardRef(function(){return kt})},kt=function(t){function r(r,n,o){var i=t.call(this)||this;return i.update=new e.EventEmitter,i._rawValidators=r||[],i._rawAsyncValidators=n||[],i.valueAccessor=M(i,o),i}return D(r,t),Object.defineProperty(r.prototype,"isDisabled",{set:function(t){Mt.disabledAttrWarning()},enumerable:!0,configurable:!0}),r.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&(w(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),A(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(r.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"validator",{get:function(){return P(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"asyncValidator",{get:function(){return T(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),r.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},r.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},r}(Z);kt.decorators=[{type:e.Directive,args:[{selector:"[formControl]",providers:[Rt],exportAs:"ngForm"}]}],kt.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[G]}]}]},kt.propDecorators={form:[{type:e.Input,args:["formControl"]}],model:[{type:e.Input,args:["ngModel"]}],update:[{type:e.Output,args:["ngModelChange"]}],isDisabled:[{type:e.Input,args:["disabled"]}]};var Nt={provide:V,useExisting:e.forwardRef(function(){return It})},It=function(t){function r(r,n){var o=t.call(this)||this;return o._validators=r,o._asyncValidators=n,o._submitted=!1,o.directives=[],o.form=null,o.ngSubmit=new e.EventEmitter,o}return D(r,t),r.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(r.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),r.prototype.addControl=function(t){var e=this.form.get(t.path);return w(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},r.prototype.getControl=function(t){return this.form.get(t.path)},r.prototype.removeControl=function(t){I(this.directives,t)},r.prototype.addFormGroup=function(t){var e=this.form.get(t.path);E(e,t),e.updateValueAndValidity({emitEvent:!1})},r.prototype.removeFormGroup=function(t){},r.prototype.getFormGroup=function(t){return this.form.get(t.path)},r.prototype.addFormArray=function(t){var e=this.form.get(t.path);E(e,t),e.updateValueAndValidity({emitEvent:!1})},r.prototype.removeFormArray=function(t){},r.prototype.getFormArray=function(t){return this.form.get(t.path)},r.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},r.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},r.prototype.onReset=function(){this.resetForm()},r.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},r.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var r=t.form.get(e.path);e._control!==r&&(C(e._control,e),r&&w(r,e),e._control=r)}),this.form._updateTreeValidity({emitEvent:!1})},r.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},r.prototype._updateValidators=function(){var t=P(this._validators);this.form.validator=q.compose([this.form.validator,t]);var e=T(this._asyncValidators);this.form.asyncValidator=q.composeAsync([this.form.asyncValidator,e])},r.prototype._checkFormPresent=function(){this.form||Mt.missingFormException()},r}(V);It.decorators=[{type:e.Directive,args:[{selector:"[formGroup]",providers:[Nt],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],It.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]}]},It.propDecorators={form:[{type:e.Input,args:["formGroup"]}],ngSubmit:[{type:e.Output}]};var jt={provide:V,useExisting:e.forwardRef(function(){return Dt})},Dt=function(t){function e(e,r,n){var o=t.call(this)||this;return o._parent=e,o._validators=r,o._asyncValidators=n,o}return D(e,t),e.prototype._checkParentType=function(){j(this._parent)&&Mt.groupParentException()},e}(pt);Dt.decorators=[{type:e.Directive,args:[{selector:"[formGroupName]",providers:[jt]}]}],Dt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]}]},Dt.propDecorators={name:[{type:e.Input,args:["formGroupName"]}]};var Lt={provide:V,useExisting:e.forwardRef(function(){return Vt})},Vt=function(t){function e(e,r,n){var o=t.call(this)||this;return o._parent=e,o._validators=r,o._asyncValidators=n,o}return D(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return b(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return P(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return T(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){j(this._parent)&&Mt.arrayParentException()},e}(V);Vt.decorators=[{type:e.Directive,args:[{selector:"[formArrayName]",providers:[Lt]}]}],Vt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]}]},Vt.propDecorators={name:[{type:e.Input,args:["formArrayName"]}]};var Ft={provide:Z,useExisting:e.forwardRef(function(){return Ut})},Ut=function(t){function r(r,n,o,i){var s=t.call(this)||this;return s._added=!1,s.update=new e.EventEmitter,s._parent=r,s._rawValidators=n||[],s._rawAsyncValidators=o||[],s.valueAccessor=M(s,i),s}return D(r,t),Object.defineProperty(r.prototype,"isDisabled",{set:function(t){Mt.disabledAttrWarning()},enumerable:!0,configurable:!0}),r.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),A(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},r.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},r.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(r.prototype,"path",{get:function(){return b(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"validator",{get:function(){return P(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"asyncValidator",{get:function(){return T(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),r.prototype._checkParentType=function(){!(this._parent instanceof Dt)&&this._parent instanceof pt?Mt.ngModelGroupException():this._parent instanceof Dt||this._parent instanceof It||this._parent instanceof Vt||Mt.controlParentException()},r.prototype._setUpControl=function(){this._checkParentType(),this._control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},r}(Z);Ut.decorators=[{type:e.Directive,args:[{selector:"[formControlName]",providers:[Ft]}]}],Ut.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[G]}]}]},Ut.propDecorators={name:[{type:e.Input,args:["formControlName"]}],model:[{type:e.Input,args:["ngModel"]}],update:[{type:e.Output,args:["ngModelChange"]}],isDisabled:[{type:e.Input,args:["disabled"]}]};var Bt={provide:U,useExisting:e.forwardRef(function(){return qt}),multi:!0},Ht={provide:U,useExisting:e.forwardRef(function(){return Gt}),multi:!0},qt=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?q.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();qt.decorators=[{type:e.Directive,args:[{selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[Bt],host:{"[attr.required]":'required ? "" : null'}}]}],qt.ctorParameters=function(){return[]},qt.propDecorators={required:[{type:e.Input}]};var Gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return D(e,t),e.prototype.validate=function(t){return this.required?q.requiredTrue(t):null},e}(qt);Gt.decorators=[{type:e.Directive,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[Ht],host:{"[attr.required]":'required ? "" : null'}}]}],Gt.ctorParameters=function(){return[]};var zt={provide:U,useExisting:e.forwardRef(function(){return $t}),multi:!0},$t=function(){function t(){}return Object.defineProperty(t.prototype,"email",{set:function(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this._enabled?q.email(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();$t.decorators=[{type:e.Directive,args:[{selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[zt]}]}],$t.ctorParameters=function(){return[]},$t.propDecorators={email:[{type:e.Input}]};var Wt={provide:U,useExisting:e.forwardRef(function(){return Kt}),multi:!0},Kt=function(){function t(){}return t.prototype.ngOnChanges=function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null==this.minlength?null:this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=q.minLength(parseInt(this.minlength,10))},t}();Kt.decorators=[{type:e.Directive,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[Wt],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],Kt.ctorParameters=function(){return[]},Kt.propDecorators={minlength:[{type:e.Input}]};var Qt={provide:U,useExisting:e.forwardRef(function(){return Jt}),multi:!0},Jt=function(){function t(){}return t.prototype.ngOnChanges=function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null!=this.maxlength?this._validator(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=q.maxLength(parseInt(this.maxlength,10))},t}();Jt.decorators=[{type:e.Directive,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[Qt],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],Jt.ctorParameters=function(){return[]},Jt.propDecorators={maxlength:[{type:e.Input}]};var Xt={provide:U,useExisting:e.forwardRef(function(){return Zt}),multi:!0},Zt=function(){function t(){}return t.prototype.ngOnChanges=function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=q.pattern(this.pattern)},t}();Zt.decorators=[{type:e.Directive,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[Xt],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],Zt.ctorParameters=function(){return[]},Zt.propDecorators={pattern:[{type:e.Input}]};var Yt=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var r=this._reduceControls(t),n=null!=e?e.validator:null,o=null!=e?e.asyncValidator:null;return new gt(r,n,o)},t.prototype.control=function(t,e,r){return new vt(t,e,r)},t.prototype.array=function(t,e,r){var n=this,o=t.map(function(t){return n._createControl(t)});return new _t(o,e,r)},t.prototype._reduceControls=function(t){var e=this,r={};return Object.keys(t).forEach(function(n){r[n]=e._createControl(t[n])}),r},t.prototype._createControl=function(t){if(t instanceof vt||t instanceof gt||t instanceof _t)return t;if(Array.isArray(t)){var e=t[0],r=t.length>1?t[1]:null,n=t.length>2?t[2]:null;return this.control(e,r,n)}return this.control(t)},t}();Yt.decorators=[{type:e.Injectable}],Yt.ctorParameters=function(){return[]};var te=new e.Version("4.1.3"),ee=function(){function t(){}return t}();ee.decorators=[{type:e.Directive,args:[{selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}}]}],ee.ctorParameters=function(){return[]};var re=[ee,st,ct,Q,X,nt,$,it,ut,et,dt,mt,qt,Kt,Jt,Zt,Gt,$t],ne=[Ot,Pt,Ct],oe=[kt,It,Ut,Dt,Vt],ie=function(){function t(){}return t}();ie.decorators=[{type:e.NgModule,args:[{declarations:re,exports:re}]}],ie.ctorParameters=function(){return[]};var se=function(){function t(){}return t}();se.decorators=[{type:e.NgModule,args:[{declarations:ne,providers:[tt],exports:[ie,ne]}]}],se.ctorParameters=function(){return[]};var ae=function(){function t(){}return t}();ae.decorators=[{type:e.NgModule,args:[{declarations:[oe],providers:[Yt,tt],exports:[ie,oe]}]}],ae.ctorParameters=function(){return[]},t.AbstractControlDirective=L,t.AbstractFormGroupDirective=pt,t.CheckboxControlValueAccessor=$,t.ControlContainer=V,t.NG_VALUE_ACCESSOR=G,t.COMPOSITION_BUFFER_MODE=K,t.DefaultValueAccessor=Q,t.NgControl=Z,t.NgControlStatus=dt,t.NgControlStatusGroup=mt,t.NgForm=Ct,t.NgModel=Ot,t.NgModelGroup=Pt,t.RadioControlValueAccessor=et,t.FormControlDirective=kt,t.FormControlName=Ut,t.FormGroupDirective=It,t.FormArrayName=Vt,t.FormGroupName=Dt,t.NgSelectOption=st,t.SelectControlValueAccessor=it,t.SelectMultipleControlValueAccessor=ut,t.CheckboxRequiredValidator=Gt,t.EmailValidator=$t,t.MaxLengthValidator=Jt,t.MinLengthValidator=Kt,t.PatternValidator=Zt,t.RequiredValidator=qt,t.FormBuilder=Yt,t.AbstractControl=yt,t.FormArray=_t,t.FormControl=vt,t.FormGroup=gt,t.NG_ASYNC_VALIDATORS=B,t.NG_VALIDATORS=U,t.Validators=q,t.VERSION=te,t.FormsModule=se,t.ReactiveFormsModule=ae,t.ɵba=ie,t.ɵz=oe,t.ɵx=re,t.ɵy=ne,t.ɵa=z,t.ɵb=W,t.ɵc=ht,t.ɵd=ft,t.ɵe=bt,t.ɵf=Tt,t.ɵg=xt,t.ɵbf=ee,t.ɵbb=J,t.ɵbc=X,t.ɵh=Y,t.ɵi=tt,t.ɵbd=rt,t.ɵbe=nt,t.ɵj=Rt,t.ɵk=Ft,t.ɵl=Nt,t.ɵn=Lt,t.ɵm=jt,t.ɵo=ot,t.ɵq=ct,t.ɵp=at,t.ɵs=Ht,t.ɵt=zt,t.ɵv=Qt,t.ɵu=Wt,t.ɵw=Xt,t.ɵr=Bt,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":20,"@angular/platform-browser":24,"rxjs/observable/forkJoin":46,"rxjs/observable/fromPromise":48,"rxjs/operator/map":58}],22:[function(t,e,r){!function(n,o){"object"==typeof r&&void 0!==e?o(r,t("@angular/core"),t("rxjs/Observable"),t("@angular/platform-browser")):o((n.ng=n.ng||{},n.ng.http=n.ng.http||{}),n.ng.core,n.Rx,n.ng.platformBrowser)}(this,function(t,e,r,n){"use strict";function o(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return g.Get;case"POST":return g.Post;case"PUT":return g.Put;case"DELETE":return g.Delete;case"OPTIONS":return g.Options;case"HEAD":return g.Head;case"PATCH":return g.Patch}throw new Error('Invalid request method. The method "'+t+'" is not supported.')}function i(t){return"responseURL"in t?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}function s(t){for(var e=new Uint16Array(t.length),r=0,n=t.length;r<n;r++)e[r]=t.charCodeAt(r);return e.buffer}function a(t){void 0===t&&(t="");var e=new Map;return t.length>0&&t.split("&").forEach(function(t){var r=t.indexOf("="),n=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)],o=n[0],i=n[1],s=e.get(o)||[];s.push(i),e.set(o,s)}),e}function u(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,"/")}function c(){var t="object"==typeof window?window:{};return null===D&&(D=t[j]={}),D}function l(t){var e=new R;return Object.keys(t).forEach(function(r){var n=t[r];n&&Array.isArray(n)?n.forEach(function(t){return e.append(r,t.toString())}):e.append(r,n.toString())}),e}function p(t,e){return t.createConnection(e).response}function h(t,e,r,n){var o=t;return e?o.merge(new K({method:e.method||r,url:e.url||n,search:e.search,params:e.params,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType})):o.merge(new K({method:r,url:n}))}function f(){return new $}function d(t,e){return new rt(t,e)}function m(t,e){return new nt(t,e)}var y=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},v=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}();v.decorators=[{type:e.Injectable}],v.ctorParameters=function(){return[]};var g={};g.Get=0,g.Post=1,g.Put=2,g.Delete=3,g.Options=4,g.Head=5,g.Patch=6,g[g.Get]="Get",g[g.Post]="Post",g[g.Put]="Put",g[g.Delete]="Delete",g[g.Options]="Options",g[g.Head]="Head",g[g.Patch]="Patch";var _={};_.Unsent=0,_.Open=1,_.HeadersReceived=2,_.Loading=3,_.Done=4,_.Cancelled=5,_[_.Unsent]="Unsent",_[_.Open]="Open",_[_.HeadersReceived]="HeadersReceived",_[_.Loading]="Loading",_[_.Done]="Done",_[_.Cancelled]="Cancelled";var b={};b.Basic=0,b.Cors=1,b.Default=2,b.Error=3,b.Opaque=4,b[b.Basic]="Basic",b[b.Cors]="Cors",b[b.Default]="Default",b[b.Error]="Error",b[b.Opaque]="Opaque";var w={};w.NONE=0,w.JSON=1,w.FORM=2,w.FORM_DATA=3,w.TEXT=4,w.BLOB=5,w.ARRAY_BUFFER=6,w[w.NONE]="NONE",w[w.JSON]="JSON",w[w.FORM]="FORM",w[w.FORM_DATA]="FORM_DATA",w[w.TEXT]="TEXT",w[w.BLOB]="BLOB",w[w.ARRAY_BUFFER]="ARRAY_BUFFER";var C={};C.Text=0,C.Json=1,C.ArrayBuffer=2,C.Blob=3,C[C.Text]="Text",C[C.Json]="Json",C[C.ArrayBuffer]="ArrayBuffer",C[C.Blob]="Blob";var E=function(){function t(e){var r=this;this._headers=new Map,this._normalizedNames=new Map,e&&(e instanceof t?e.forEach(function(t,e){t.forEach(function(t){return r.append(e,t)})}):Object.keys(e).forEach(function(t){var n=Array.isArray(e[t])?e[t]:[e[t]];r.delete(t),n.forEach(function(e){return r.append(t,e)})}))}return t.fromResponseHeaderString=function(e){var r=new t;return e.split("\n").forEach(function(t){var e=t.indexOf(":");if(e>0){var n=t.slice(0,e),o=t.slice(e+1).trim();r.set(n,o)}}),r},t.prototype.append=function(t,e){var r=this.getAll(t);null===r?this.set(t,e):r.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(r,n){return t(r,e._normalizedNames.get(n),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(r,n){var o=[];r.forEach(function(t){return o.push.apply(o,t.split(","))}),e[t._normalizedNames.get(n)]=o}),e},t.prototype.getAll=function(t){return this.has(t)?this._headers.get(t.toLowerCase())||null: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}(),S=function(){function t(t){var e=void 0===t?{}:t,r=e.body,n=e.status,o=e.headers,i=e.statusText,s=e.type,a=e.url;this.body=null!=r?r:null,this.status=null!=n?n:null,this.headers=null!=o?o:null,this.statusText=null!=i?i:null,this.type=null!=s?s: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}(),x=function(t){function e(){return t.call(this,{status:200,statusText:"Ok",type:b.Default,headers:new E})||this}return y(e,t),e}(S);x.decorators=[{type:e.Injectable}],x.ctorParameters=function(){return[]};var P=function(){function t(){}return t.prototype.createConnection=function(t){},t}(),T=function(){function t(){}return t}(),A=function(){function t(){}return t.prototype.configureRequest=function(t){},t}(),O=function(t){return t>=200&&t<300},M=function(){function t(){}return t.prototype.encodeKey=function(t){return u(t)},t.prototype.encodeValue=function(t){return u(t)},t}(),R=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=new M),this.rawParams=t,this.queryEncoder=e,this.paramsMap=a(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 r=this.paramsMap.get(t)||[];r.length=0,r.push(e),this.paramsMap.set(t,r)}else this.delete(t)},t.prototype.setAll=function(t){var e=this;t.paramsMap.forEach(function(t,r){var n=e.paramsMap.get(r)||[];n.length=0,n.push(t[0]),e.paramsMap.set(r,n)})},t.prototype.append=function(t,e){if(void 0!==e&&null!==e){var r=this.paramsMap.get(t)||[];r.push(e),this.paramsMap.set(t,r)}},t.prototype.appendAll=function(t){var e=this;t.paramsMap.forEach(function(t,r){for(var n=e.paramsMap.get(r)||[],o=0;o<t.length;++o)n.push(t[o]);e.paramsMap.set(r,n)})},t.prototype.replaceAll=function(t){var e=this;t.paramsMap.forEach(function(t,r){var n=e.paramsMap.get(r)||[];n.length=0;for(var o=0;o<t.length;++o)n.push(t[o]);e.paramsMap.set(r,n)})},t.prototype.toString=function(){var t=this,e=[];return this.paramsMap.forEach(function(r,n){r.forEach(function(r){return e.push(t.queryEncoder.encodeKey(n)+"="+t.queryEncoder.encodeValue(r))})}),e.join("&")},t.prototype.delete=function(t){this.paramsMap.delete(t)},t}(),k=function(){function t(){}return t.prototype.json=function(){return"string"==typeof this._body?JSON.parse(this._body):this._body instanceof ArrayBuffer?JSON.parse(this.text()):this._body},t.prototype.text=function(t){if(void 0===t&&(t="legacy"),this._body instanceof R)return this._body.toString();if(this._body instanceof ArrayBuffer)switch(t){case"legacy":return String.fromCharCode.apply(null,new Uint16Array(this._body));case"iso-8859":return String.fromCharCode.apply(null,new Uint8Array(this._body));default:throw new Error("Invalid value for encodingHint: "+t)}return null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()},t.prototype.arrayBuffer=function(){return this._body instanceof ArrayBuffer?this._body:s(this.text())},t.prototype.blob=function(){if(this._body instanceof Blob)return this._body;if(this._body instanceof ArrayBuffer)return new Blob([this._body]);throw new Error("The request body isn't either a blob or an array buffer")},t}(),N=function(t){function e(e){var r=t.call(this)||this;return r._body=e.body,r.status=e.status,r.ok=r.status>=200&&r.status<=299,r.statusText=e.statusText,r.headers=e.headers,r.type=e.type,r.url=e.url,r}return y(e,t),e.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},e}(k),I=0,j="__ng_jsonp__",D=null,L=function(){function t(){}return t.prototype.build=function(t){var e=document.createElement("script");return e.src=t,e},t.prototype.nextRequestID=function(){return"__req"+I++},t.prototype.requestCallback=function(t){return j+"."+t+".finished"},t.prototype.exposeConnection=function(t,e){c()[t]=e},t.prototype.removeConnection=function(t){c()[t]=null},t.prototype.send=function(t){document.body.appendChild(t)},t.prototype.cleanup=function(t){t.parentNode&&t.parentNode.removeChild(t)},t}();L.decorators=[{type:e.Injectable}],L.ctorParameters=function(){return[]};var V="JSONP injected script did not invoke callback.",F="JSONP requests must use GET request method.",U=function(){function t(){}return t.prototype.finished=function(t){},t}(),B=function(t){function e(e,n,o){var i=t.call(this)||this;if(i._dom=n,i.baseResponseOptions=o,i._finished=!1,e.method!==g.Get)throw new TypeError(F);return i.request=e,i.response=new r.Observable(function(t){i.readyState=_.Loading;var r=i._id=n.nextRequestID();n.exposeConnection(r,i);var s=n.requestCallback(i._id),a=e.url;a.indexOf("=JSONP_CALLBACK&")>-1?a=a.replace("=JSONP_CALLBACK&","="+s+"&"):a.lastIndexOf("=JSONP_CALLBACK")===a.length-"=JSONP_CALLBACK".length&&(a=a.substring(0,a.length-"=JSONP_CALLBACK".length)+"="+s);var u=i._script=n.build(a),c=function(e){if(i.readyState!==_.Cancelled){if(i.readyState=_.Done,n.cleanup(u),!i._finished){var r=new S({body:V,type:b.Error,url:a});return o&&(r=o.merge(r)),void t.error(new N(r))}var s=new S({body:i._responseData,url:a});i.baseResponseOptions&&(s=i.baseResponseOptions.merge(s)),t.next(new N(s)),t.complete()}},l=function(e){if(i.readyState!==_.Cancelled){i.readyState=_.Done,n.cleanup(u);var r=new S({body:e.message,type:b.Error});o&&(r=o.merge(r)),t.error(new N(r))}};return u.addEventListener("load",c),u.addEventListener("error",l),n.send(u),function(){i.readyState=_.Cancelled,u.removeEventListener("load",c),u.removeEventListener("error",l),i._dom.cleanup(u)}}),i}return y(e,t),e.prototype.finished=function(t){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==_.Cancelled&&(this._responseData=t)},e}(U),H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return y(e,t),e}(P),q=function(t){function e(e,r){var n=t.call(this)||this;return n._browserJSONP=e,n._baseResponseOptions=r,n}return y(e,t),e.prototype.createConnection=function(t){return new B(t,this._browserJSONP,this._baseResponseOptions)},e}(H);q.decorators=[{type:e.Injectable}],q.ctorParameters=function(){return[{type:L},{type:S}]};var G=/^\)\]\}',?\n/,z=function(){function t(t,e,n){var o=this;this.request=t,this.response=new r.Observable(function(r){var s=e.build();s.open(g[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(s.withCredentials=t.withCredentials);var a=function(){var e=1223===s.status?204:s.status,o=null;204!==e&&"string"==typeof(o=void 0===s.response?s.responseText:s.response)&&(o=o.replace(G,"")),0===e&&(e=o?200:0);var a=E.fromResponseHeaderString(s.getAllResponseHeaders()),u=i(s)||t.url,c=s.statusText||"OK",l=new S({body:o,status:e,headers:a,statusText:c,url:u});null!=n&&(l=n.merge(l));var p=new N(l);if(p.ok=O(e),p.ok)return r.next(p),void r.complete();r.error(p)},u=function(t){var e=new S({body:t,type:b.Error,status:s.status,statusText:s.statusText});null!=n&&(e=n.merge(e)),r.error(new N(e))};if(o.setDetectedContentType(t,s),null==t.headers&&(t.headers=new E),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach(function(t,e){return s.setRequestHeader(e,t.join(","))}),null!=t.responseType&&null!=s.responseType)switch(t.responseType){case C.ArrayBuffer:s.responseType="arraybuffer";break;case C.Json:s.responseType="json";break;case C.Text:s.responseType="text";break;case C.Blob:s.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return s.addEventListener("load",a),s.addEventListener("error",u),s.send(o.request.getBody()),function(){s.removeEventListener("load",a),s.removeEventListener("error",u),s.abort()}})}return t.prototype.setDetectedContentType=function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case w.NONE:break;case w.JSON:e.setRequestHeader("content-type","application/json");break;case w.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case w.TEXT:e.setRequestHeader("content-type","text/plain");break;case w.BLOB:var r=t.blob();r.type&&e.setRequestHeader("content-type",r.type)}},t}(),$=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=n.ɵgetDOM().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)},t}(),W=function(){function t(t,e,r){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=r}return t.prototype.createConnection=function(t){return this._xsrfStrategy.configureRequest(t),new z(t,this._browserXHR,this._baseResponseOptions)},t}();W.decorators=[{type:e.Injectable}],W.ctorParameters=function(){return[{type:v},{type:S},{type:A}]};var K=function(){function t(t){var e=void 0===t?{}:t,r=e.method,n=e.headers,i=e.body,s=e.url,a=e.search,u=e.params,c=e.withCredentials,l=e.responseType;this.method=null!=r?o(r):null,this.headers=null!=n?n:null,this.body=null!=i?i:null,this.url=null!=s?s:null,this.params=this._mergeSearchParams(u||a),this.withCredentials=null!=c?c:null,this.responseType=null!=l?l: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 E(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 R?t.clone():"string"==typeof t?new R(t):this._parseParams(t):this.params},t.prototype._parseParams=function(t){var e=this;void 0===t&&(t={});var r=new R;return Object.keys(t).forEach(function(n){var o=t[n];Array.isArray(o)?o.forEach(function(t){return e._appendParam(n,t,r)}):e._appendParam(n,o,r)}),r},t.prototype._appendParam=function(t,e,r){"string"!=typeof e&&(e=JSON.stringify(e)),r.append(t,e)},t}(),Q=function(t){function e(){return t.call(this,{method:g.Get,headers:new E})||this}return y(e,t),e}(K);Q.decorators=[{type:e.Injectable}],Q.ctorParameters=function(){return[]};var J=function(t){function e(e){var r=t.call(this)||this,n=e.url;r.url=e.url;var i=e.params||e.search;if(i){var s=void 0;if((s="object"!=typeof i||i instanceof R?i.toString():l(i).toString()).length>0){var a="?";-1!=r.url.indexOf("?")&&(a="&"==r.url[r.url.length-1]?"":"&"),r.url=n+a+s}}return r._body=e.body,r.method=o(e.method),r.headers=new E(e.headers),r.contentType=r.detectContentType(),r.withCredentials=e.withCredentials,r.responseType=e.responseType,r}return y(e,t),e.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return w.JSON;case"application/x-www-form-urlencoded":return w.FORM;case"multipart/form-data":return w.FORM_DATA;case"text/plain":case"text/html":return w.TEXT;case"application/octet-stream":return this._body instanceof et?w.ARRAY_BUFFER:w.BLOB;default:return this.detectContentTypeFromBody()}},e.prototype.detectContentTypeFromBody=function(){return null==this._body?w.NONE:this._body instanceof R?w.FORM:this._body instanceof Y?w.FORM_DATA:this._body instanceof tt?w.BLOB:this._body instanceof et?w.ARRAY_BUFFER:this._body&&"object"==typeof this._body?w.JSON:w.TEXT},e.prototype.getBody=function(){switch(this.contentType){case w.JSON:case w.FORM:return this.text();case w.FORM_DATA:return this._body;case w.TEXT:return this.text();case w.BLOB:return this.blob();case w.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},e}(k),X=function(){},Z="object"==typeof window?window:X,Y=Z.FormData||X,tt=Z.Blob||X,et=Z.ArrayBuffer||X,rt=function(){function t(t,e){this._backend=t,this._defaultOptions=e}return t.prototype.request=function(t,e){var r;if("string"==typeof t)r=p(this._backend,new J(h(this._defaultOptions,e,g.Get,t)));else{if(!(t instanceof J))throw new Error("First argument must be a url string or Request instance.");r=p(this._backend,t)}return r},t.prototype.get=function(t,e){return this.request(new J(h(this._defaultOptions,e,g.Get,t)))},t.prototype.post=function(t,e,r){return this.request(new J(h(this._defaultOptions.merge(new K({body:e})),r,g.Post,t)))},t.prototype.put=function(t,e,r){return this.request(new J(h(this._defaultOptions.merge(new K({body:e})),r,g.Put,t)))},t.prototype.delete=function(t,e){return this.request(new J(h(this._defaultOptions,e,g.Delete,t)))},t.prototype.patch=function(t,e,r){return this.request(new J(h(this._defaultOptions.merge(new K({body:e})),r,g.Patch,t)))},t.prototype.head=function(t,e){return this.request(new J(h(this._defaultOptions,e,g.Head,t)))},t.prototype.options=function(t,e){return this.request(new J(h(this._defaultOptions,e,g.Options,t)))},t}();rt.decorators=[{type:e.Injectable}],rt.ctorParameters=function(){return[{type:P},{type:K}]};var nt=function(t){function e(e,r){return t.call(this,e,r)||this}return y(e,t),e.prototype.request=function(t,e){if("string"==typeof t&&(t=new J(h(this._defaultOptions,e,g.Get,t))),!(t instanceof J))throw new Error("First argument must be a url string or Request instance.");if(t.method!==g.Get)throw new Error("JSONP requests must use GET request method.");return p(this._backend,t)},e}(rt);nt.decorators=[{type:e.Injectable}],nt.ctorParameters=function(){return[{type:P},{type:K}]};var ot=function(){function t(){}return t}();ot.decorators=[{type:e.NgModule,args:[{providers:[{provide:rt,useFactory:d,deps:[W,K]},v,{provide:K,useClass:Q},{provide:S,useClass:x},W,{provide:A,useFactory:f}]}]}],ot.ctorParameters=function(){return[]};var it=function(){function t(){}return t}();it.decorators=[{type:e.NgModule,args:[{providers:[{provide:nt,useFactory:m,deps:[H,K]},L,{provide:K,useClass:Q},{provide:S,useClass:x},{provide:H,useClass:q}]}]}],it.ctorParameters=function(){return[]};var st=new e.Version("4.1.3");t.BrowserXhr=v,t.JSONPBackend=H,t.JSONPConnection=U,t.CookieXSRFStrategy=$,t.XHRBackend=W,t.XHRConnection=z,t.BaseRequestOptions=Q,t.RequestOptions=K,t.BaseResponseOptions=x,t.ResponseOptions=S,t.ReadyState=_,t.RequestMethod=g,t.ResponseContentType=C,t.ResponseType=b,t.Headers=E,t.Http=rt,t.Jsonp=nt,t.HttpModule=ot,t.JsonpModule=it,t.Connection=T,t.ConnectionBackend=P,t.XSRFStrategy=A,t.Request=J,t.Response=N,t.QueryEncoder=M,t.URLSearchParams=R,t.VERSION=st,t.ɵg=L,t.ɵa=q,t.ɵf=k,t.ɵb=f,t.ɵc=d,t.ɵd=m,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":20,"@angular/platform-browser":24,"rxjs/Observable":29}],23:[function(t,e,r){!function(n,o){"object"==typeof r&&void 0!==e?o(r,t("@angular/compiler"),t("@angular/core"),t("@angular/common"),t("@angular/platform-browser")):o((n.ng=n.ng||{},n.ng.platformBrowserDynamic=n.ng.platformBrowserDynamic||{}),n.ng.compiler,n.ng.core,n.ng.common,n.ng.platformBrowser)}(this,function(t,e,r,n,o){"use strict";var i=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.get=function(t){var e,r,n=new Promise(function(t,n){e=t,r=n}),o=new XMLHttpRequest;return o.open("GET",t,!0),o.responseType="text",o.onload=function(){var n=o.response||o.responseText,i=1223===o.status?204:o.status;0===i&&(i=n?200:0),200<=i&&i<=300?e(n):r("Failed to load "+t)},o.onerror=function(){r("Failed to load "+t)},o.send(),n},e}(e.ResourceLoader);s.decorators=[{type:r.Injectable}],s.ctorParameters=function(){return[]};var a=[o.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS,{provide:r.COMPILER_OPTIONS,useValue:{providers:[{provide:e.ResourceLoader,useClass:s}]},multi:!0},{provide:r.PLATFORM_ID,useValue:n.ɵPLATFORM_BROWSER_ID}],u=function(t){function e(){var e=t.call(this)||this;if(e._cache=r.ɵglobal.$templateCache,null==e._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.");return e}return i(e,t),e.prototype.get=function(t){return this._cache.hasOwnProperty(t)?Promise.resolve(this._cache[t]):Promise.reject("CachedResourceLoader: Did not find cached template for "+t)},e}(e.ResourceLoader),c=new r.Version("4.1.3"),l=[{provide:e.ResourceLoader,useClass:u}],p=r.createPlatformFactory(e.platformCoreDynamic,"browserDynamic",a);t.RESOURCE_CACHE_PROVIDER=l,t.platformBrowserDynamic=p,t.VERSION=c,t.ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS=a,t.ɵResourceLoaderImpl=s,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":18,"@angular/compiler":19,"@angular/core":20,"@angular/platform-browser":24}],24:[function(t,e,r){!function(n,o){"object"==typeof r&&void 0!==e?o(r,t("@angular/common"),t("@angular/core")):o((n.ng=n.ng||{},n.ng.platformBrowser=n.ng.platformBrowser||{}),n.ng.common,n.ng.core)}(this,function(t,e,r){"use strict";function n(){return L}function o(t){L||(L=t)}function i(){return z||(z=document.querySelector("base"))?z.getAttribute("href"):null}function s(t){return q||(q=document.createElement("a")),q.setAttribute("href",t),"/"===q.pathname.charAt(0)?q.pathname:"/"+q.pathname}function a(t,e){e=encodeURIComponent(e);for(var r=0,n=t.split(";");r<n.length;r++){var o=n[r],i=o.indexOf("="),s=-1==i?[o,""]:[o.slice(0,i),o.slice(i+1)],a=s[0],u=s[1];if(a.trim()===e)return decodeURIComponent(u)}return null}function u(t,e,r){for(var n=e.split("."),o=t;n.length>1;){var i=n.shift();o=o.hasOwnProperty(i)&&null!=o[i]?o[i]:o[i]={}}void 0!==o&&null!==o||(o={}),o[n.shift()]=r}function c(){return!!window.history.pushState}function l(t,e,o){return function(){o.get(r.ApplicationInitStatus).donePromise.then(function(){var r=n();Array.prototype.slice.apply(r.querySelectorAll(e,"style[ng-transition]")).filter(function(e){return r.getAttribute(e,"ng-transition")===t}).forEach(function(t){return r.remove(t)})})}}function p(t){return r.getDebugNode(t)}function h(t,e){var r=(t||[]).concat(e||[]);return n().setGlobalVar(et,p),n().setGlobalVar(rt,Y({},tt,f(r||[]))),function(){return p}}function f(t){return t.reduce(function(t,e){return t[e.name]=e.token,t},{})}function d(t){return ft.replace(pt,t)}function m(t){return ht.replace(pt,t)}function y(t,e,r){for(var n=0;n<e.length;n++){var o=e[n];Array.isArray(o)?y(t,o,r):(o=o.replace(pt,t),r.push(o))}return r}function v(t){return function(e){!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}function g(t,e){if(t.charCodeAt(0)===yt)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}function _(t){return(t=String(t)).match(Tt)||t.match(At)?t:(r.isDevMode()&&n().log("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function b(t){return(t=String(t)).split(",").map(function(t){return _(t.trim())}).join(", ")}function w(){if(Ot)return Ot;var t=(Mt=n()).createElement("template");if("content"in t)return t;var e=Mt.createHtmlDocument();if(null==(Ot=Mt.querySelector(e,"body"))){var r=Mt.createElement("html",e);Ot=Mt.createElement("body",e),Mt.appendChild(r,Ot),Mt.appendChild(e,r)}return Ot}function C(t){for(var e={},r=0,n=t.split(",");r<n.length;r++)e[n[r]]=!0;return e}function E(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r={},n=0,o=t;n<o.length;n++){var i=o[n];for(var s in i)i.hasOwnProperty(s)&&(r[s]=!0)}return r}function S(t,e){if(e&&Mt.contains(t,e))throw new Error("Failed to sanitize html because the element is clobbered: "+Mt.getOuterHTML(t));return e}function x(t){return t.replace(/&/g,"&amp;").replace(qt,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Gt,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function P(t){Mt.attributeMap(t).forEach(function(e,r){"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||Mt.removeAttribute(t,r)});for(var e=0,r=Mt.childNodesAsList(t);e<r.length;e++){var n=r[e];Mt.isElementNode(n)&&P(n)}}function T(t,e){try{var n=w(),o=e?String(e):"",i=5,s=o;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,o=s,Mt.setInnerHTML(n,o),t.documentMode&&P(n),s=Mt.getInnerHTML(n)}while(o!==s);for(var a=new Ht,u=a.sanitizeChildren(Mt.getTemplateContent(n)||n),c=Mt.getTemplateContent(n)||n,l=0,p=Mt.childNodesAsList(c);l<p.length;l++){var h=p[l];Mt.removeChild(c,h)}return r.isDevMode()&&a.sanitizedSomething&&Mt.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),u}catch(t){throw Ot=null,t}}function A(t){for(var e=!0,r=!0,n=0;n<t.length;n++){var o=t.charAt(n);"'"===o&&r?e=!e:'"'===o&&e&&(r=!r)}return e&&r}function O(t){if(!(t=String(t).trim()))return"";var e=t.match($t);return e&&_(e[1])===e[1]||t.match(zt)&&A(t)?t:(r.isDevMode()&&n().log("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}function M(){G.makeCurrent(),X.init()}function R(){return new r.ErrorHandler}function k(){return document}function N(t){return n().setGlobalVar(ue,new ae(t)),t}function I(){n().setGlobalVar(ue,null)}var j,D=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},L=null,V=function(){function t(){this.resourceLoaderType=null}return t.prototype.hasProperty=function(t,e){},t.prototype.setProperty=function(t,e,r){},t.prototype.getProperty=function(t,e){},t.prototype.invoke=function(t,e,r){},t.prototype.logError=function(t){},t.prototype.log=function(t){},t.prototype.logGroup=function(t){},t.prototype.logGroupEnd=function(){},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t.prototype.contains=function(t,e){},t.prototype.parse=function(t){},t.prototype.querySelector=function(t,e){},t.prototype.querySelectorAll=function(t,e){},t.prototype.on=function(t,e,r){},t.prototype.onAndCancel=function(t,e,r){},t.prototype.dispatchEvent=function(t,e){},t.prototype.createMouseEvent=function(t){},t.prototype.createEvent=function(t){},t.prototype.preventDefault=function(t){},t.prototype.isPrevented=function(t){},t.prototype.getInnerHTML=function(t){},t.prototype.getTemplateContent=function(t){},t.prototype.getOuterHTML=function(t){},t.prototype.nodeName=function(t){},t.prototype.nodeValue=function(t){},t.prototype.type=function(t){},t.prototype.content=function(t){},t.prototype.firstChild=function(t){},t.prototype.nextSibling=function(t){},t.prototype.parentElement=function(t){},t.prototype.childNodes=function(t){},t.prototype.childNodesAsList=function(t){},t.prototype.clearNodes=function(t){},t.prototype.appendChild=function(t,e){},t.prototype.removeChild=function(t,e){},t.prototype.replaceChild=function(t,e,r){},t.prototype.remove=function(t){},t.prototype.insertBefore=function(t,e,r){},t.prototype.insertAllBefore=function(t,e,r){},t.prototype.insertAfter=function(t,e,r){},t.prototype.setInnerHTML=function(t,e){},t.prototype.getText=function(t){},t.prototype.setText=function(t,e){},t.prototype.getValue=function(t){},t.prototype.setValue=function(t,e){},t.prototype.getChecked=function(t){},t.prototype.setChecked=function(t,e){},t.prototype.createComment=function(t){},t.prototype.createTemplate=function(t){},t.prototype.createElement=function(t,e){},t.prototype.createElementNS=function(t,e,r){},t.prototype.createTextNode=function(t,e){},t.prototype.createScriptTag=function(t,e,r){},t.prototype.createStyleElement=function(t,e){},t.prototype.createShadowRoot=function(t){},t.prototype.getShadowRoot=function(t){},t.prototype.getHost=function(t){},t.prototype.getDistributedNodes=function(t){},t.prototype.clone=function(t){},t.prototype.getElementsByClassName=function(t,e){},t.prototype.getElementsByTagName=function(t,e){},t.prototype.classList=function(t){},t.prototype.addClass=function(t,e){},t.prototype.removeClass=function(t,e){},t.prototype.hasClass=function(t,e){},t.prototype.setStyle=function(t,e,r){},t.prototype.removeStyle=function(t,e){},t.prototype.getStyle=function(t,e){},t.prototype.hasStyle=function(t,e,r){},t.prototype.tagName=function(t){},t.prototype.attributeMap=function(t){},t.prototype.hasAttribute=function(t,e){},t.prototype.hasAttributeNS=function(t,e,r){},t.prototype.getAttribute=function(t,e){},t.prototype.getAttributeNS=function(t,e,r){},t.prototype.setAttribute=function(t,e,r){},t.prototype.setAttributeNS=function(t,e,r,n){},t.prototype.removeAttribute=function(t,e){},t.prototype.removeAttributeNS=function(t,e,r){},t.prototype.templateAwareRoot=function(t){},t.prototype.createHtmlDocument=function(){},t.prototype.getBoundingClientRect=function(t){},t.prototype.getTitle=function(t){},t.prototype.setTitle=function(t,e){},t.prototype.elementMatches=function(t,e){},t.prototype.isTemplateElement=function(t){},t.prototype.isTextNode=function(t){},t.prototype.isCommentNode=function(t){},t.prototype.isElementNode=function(t){},t.prototype.hasShadowRoot=function(t){},t.prototype.isShadowRoot=function(t){},t.prototype.importIntoDoc=function(t){},t.prototype.adoptNode=function(t){},t.prototype.getHref=function(t){},t.prototype.getEventKey=function(t){},t.prototype.resolveAndSetHref=function(t,e,r){},t.prototype.supportsDOMEvents=function(){},t.prototype.supportsNativeShadowDOM=function(){},t.prototype.getGlobalEventTarget=function(t,e){},t.prototype.getHistory=function(){},t.prototype.getLocation=function(){},t.prototype.getBaseHref=function(t){},t.prototype.resetBaseElement=function(){},t.prototype.getUserAgent=function(){},t.prototype.setData=function(t,e,r){},t.prototype.getComputedStyle=function(t){},t.prototype.getData=function(t,e){},t.prototype.setGlobalVar=function(t,e){},t.prototype.supportsWebAnimation=function(){},t.prototype.performanceNow=function(){},t.prototype.getAnimationPrefix=function(){},t.prototype.getTransitionEnd=function(){},t.prototype.supportsAnimation=function(){},t.prototype.supportsCookies=function(){},t.prototype.getCookie=function(t){},t.prototype.setCookie=function(t,e){},t}(),F=function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var r=e.createElement("div",document);if(null!=e.getStyle(r,"animationName"))e._animationPrefix="";else for(var n=["Webkit","Moz","O","ms"],o=0;o<n.length;o++)if(null!=e.getStyle(r,n[o]+"AnimationName")){e._animationPrefix="-"+n[o].toLowerCase()+"-";break}var i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(i).forEach(function(t){null!=e.getStyle(r,t)&&(e._transitionEnd=i[t])})}catch(t){e._animationPrefix=null,e._transitionEnd=null}return e}return D(e,t),e.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},e.prototype.resolveAndSetHref=function(t,e,r){t.href=null==r?e:e+"/../"+r},e.prototype.supportsDOMEvents=function(){return!0},e.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},e.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},e.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},e.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},e}(V),U={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},B={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},H={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"};r.ɵglobal.Node&&(j=r.ɵglobal.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var q,G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return D(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){o(new e)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,r){t[e]=r},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,r){t[e].apply(t,r)},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 U},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return j.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,r){t.addEventListener(e,r,!1)},e.prototype.onAndCancel=function(t,e,r){return t.addEventListener(e,r,!1),function(){t.removeEventListener(e,r,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=document.createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=document.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&&t instanceof HTMLTemplateElement?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,r=new Array(e.length),n=0;n<e.length;n++)r[n]=e[n];return r},e.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},e.prototype.appendChild=function(t,e){t.appendChild(e)},e.prototype.removeChild=function(t,e){t.removeChild(e)},e.prototype.replaceChild=function(t,e,r){t.replaceChild(e,r)},e.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},e.prototype.insertBefore=function(t,e,r){t.insertBefore(r,e)},e.prototype.insertAllBefore=function(t,e,r){r.forEach(function(r){return t.insertBefore(r,e)})},e.prototype.insertAfter=function(t,e,r){t.insertBefore(r,e.nextSibling)},e.prototype.setInnerHTML=function(t,e){t.innerHTML=e},e.prototype.getText=function(t){return t.textContent},e.prototype.setText=function(t,e){t.textContent=e},e.prototype.getValue=function(t){return t.value},e.prototype.setValue=function(t,e){t.value=e},e.prototype.getChecked=function(t){return t.checked},e.prototype.setChecked=function(t,e){t.checked=e},e.prototype.createComment=function(t){return document.createComment(t)},e.prototype.createTemplate=function(t){var e=document.createElement("template");return e.innerHTML=t,e},e.prototype.createElement=function(t,e){return void 0===e&&(e=document),e.createElement(t)},e.prototype.createElementNS=function(t,e,r){return void 0===r&&(r=document),r.createElementNS(t,e)},e.prototype.createTextNode=function(t,e){return void 0===e&&(e=document),e.createTextNode(t)},e.prototype.createScriptTag=function(t,e,r){void 0===r&&(r=document);var n=r.createElement("SCRIPT");return n.setAttribute(t,e),n},e.prototype.createStyleElement=function(t,e){void 0===e&&(e=document);var r=e.createElement("style");return this.appendChild(r,this.createTextNode(t)),r},e.prototype.createShadowRoot=function(t){return t.createShadowRoot()},e.prototype.getShadowRoot=function(t){return t.shadowRoot},e.prototype.getHost=function(t){return t.host},e.prototype.clone=function(t){return t.cloneNode(!0)},e.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},e.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},e.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},e.prototype.addClass=function(t,e){t.classList.add(e)},e.prototype.removeClass=function(t,e){t.classList.remove(e)},e.prototype.hasClass=function(t,e){return t.classList.contains(e)},e.prototype.setStyle=function(t,e,r){t.style[e]=r},e.prototype.removeStyle=function(t,e){t.style[e]=""},e.prototype.getStyle=function(t,e){return t.style[e]},e.prototype.hasStyle=function(t,e,r){var n=this.getStyle(t,e)||"";return r?n==r:n.length>0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,r=t.attributes,n=0;n<r.length;n++){var o=r[n];e.set(o.name,o.value)}return e},e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},e.prototype.hasAttributeNS=function(t,e,r){return t.hasAttributeNS(e,r)},e.prototype.getAttribute=function(t,e){return t.getAttribute(e)},e.prototype.getAttributeNS=function(t,e,r){return t.getAttributeNS(e,r)},e.prototype.setAttribute=function(t,e,r){t.setAttribute(e,r)},e.prototype.setAttributeNS=function(t,e,r,n){t.setAttributeNS(e,r,n)},e.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},e.prototype.removeAttributeNS=function(t,e,r){t.removeAttributeNS(e,r)},e.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},e.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},e.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},e.prototype.getTitle=function(t){return document.title},e.prototype.setTitle=function(t,e){document.title=e||""},e.prototype.elementMatches=function(t,e){return t instanceof HTMLElement&&(t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e))},e.prototype.isTemplateElement=function(t){return t instanceof HTMLElement&&"TEMPLATE"==t.nodeName},e.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},e.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},e.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},e.prototype.hasShadowRoot=function(t){return null!=t.shadowRoot&&t instanceof HTMLElement},e.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},e.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},e.prototype.adoptNode=function(t){return document.adoptNode(t)},e.prototype.getHref=function(t){return t.href},e.prototype.getEventKey=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&H.hasOwnProperty(e)&&(e=H[e]))}return B[e]||e},e.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?document:"body"===e?document.body:null},e.prototype.getHistory=function(){return window.history},e.prototype.getLocation=function(){return window.location},e.prototype.getBaseHref=function(t){var e=i();return null==e?null:s(e)},e.prototype.resetBaseElement=function(){z=null},e.prototype.getUserAgent=function(){return window.navigator.userAgent},e.prototype.setData=function(t,e,r){this.setAttribute(t,"data-"+e,r)},e.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},e.prototype.getComputedStyle=function(t){return getComputedStyle(t)},e.prototype.setGlobalVar=function(t,e){u(r.ɵglobal,t,e)},e.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},e.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},e.prototype.supportsCookies=function(){return!0},e.prototype.getCookie=function(t){return a(document.cookie,t)},e.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},e}(F),z=null,$=new r.InjectionToken("DocumentToken"),W=function(t){function e(e){var r=t.call(this)||this;return r._doc=e,r._init(),r}return D(e,t),e.prototype._init=function(){this._location=n().getLocation(),this._history=n().getHistory()},Object.defineProperty(e.prototype,"location",{get:function(){return this._location},enumerable:!0,configurable:!0}),e.prototype.getBaseHrefFromDOM=function(){return n().getBaseHref(this._doc)},e.prototype.onPopState=function(t){n().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){n().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"pathname",{get:function(){return this._location.pathname},set:function(t){this._location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this._location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this._location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,r){c()?this._history.pushState(t,e,r):this._location.hash=r},e.prototype.replaceState=function(t,e,r){c()?this._history.replaceState(t,e,r):this._location.hash=r},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e}(e.PlatformLocation);W.decorators=[{type:r.Injectable}],W.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]}]};var K=function(){function t(t){this._doc=t,this._dom=n()}return t.prototype.addTag=function(t,e){return void 0===e&&(e=!1),t?this._getOrCreateElement(t,e):null},t.prototype.addTags=function(t,e){var r=this;return void 0===e&&(e=!1),t?t.reduce(function(t,n){return n&&t.push(r._getOrCreateElement(n,e)),t},[]):[]},t.prototype.getTag=function(t){return t?this._dom.querySelector(this._doc,"meta["+t+"]"):null},t.prototype.getTags=function(t){if(!t)return[];var e=this._dom.querySelectorAll(this._doc,"meta["+t+"]");return e?[].slice.call(e):[]},t.prototype.updateTag=function(t,e){if(!t)return null;e=e||this._parseSelector(t);var r=this.getTag(e);return r?this._setMetaElementAttributes(t,r):this._getOrCreateElement(t,!0)},t.prototype.removeTag=function(t){this.removeTagElement(this.getTag(t))},t.prototype.removeTagElement=function(t){t&&this._dom.remove(t)},t.prototype._getOrCreateElement=function(t,e){if(void 0===e&&(e=!1),!e){var r=this._parseSelector(t),n=this.getTag(r);if(n&&this._containsAttributes(t,n))return n}var o=this._dom.createElement("meta");this._setMetaElementAttributes(t,o);var i=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(i,o),o},t.prototype._setMetaElementAttributes=function(t,e){var r=this;return Object.keys(t).forEach(function(n){return r._dom.setAttribute(e,n,t[n])}),e},t.prototype._parseSelector=function(t){var e=t.name?"name":"property";return e+'="'+t[e]+'"'},t.prototype._containsAttributes=function(t,e){var r=this;return Object.keys(t).every(function(n){return r._dom.getAttribute(e,n)===t[n]})},t}();K.decorators=[{type:r.Injectable}],K.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]}]};var Q=new r.InjectionToken("TRANSITION_ID"),J=[{provide:r.APP_INITIALIZER,useFactory:l,deps:[Q,$,r.Injector],multi:!0}],X=function(){function t(){}return t.init=function(){r.setTestabilityGetter(new t)},t.prototype.addToWindow=function(t){r.ɵglobal.getAngularTestability=function(e,r){void 0===r&&(r=!0);var n=t.findTestabilityInTree(e,r);if(null==n)throw new Error("Could not find testability for element.");return n},r.ɵglobal.getAllAngularTestabilities=function(){return t.getAllTestabilities()},r.ɵglobal.getAllAngularRootElements=function(){return t.getAllRootElements()};var e=function(t){var e=r.ɵglobal.getAllAngularTestabilities(),n=e.length,o=!1,i=function(e){o=o||e,0==--n&&t(o)};e.forEach(function(t){t.whenStable(i)})};r.ɵglobal.frameworkStabilizers||(r.ɵglobal.frameworkStabilizers=[]),r.ɵglobal.frameworkStabilizers.push(e)},t.prototype.findTestabilityInTree=function(t,e,r){if(null==e)return null;var o=t.getTestability(e);return null!=o?o:r?n().isShadowRoot(e)?this.findTestabilityInTree(t,n().getHost(e),!0):this.findTestabilityInTree(t,n().parentElement(e),!0):null},t}(),Z=function(){function t(t){this._doc=t}return t.prototype.getTitle=function(){return n().getTitle(this._doc)},t.prototype.setTitle=function(t){n().setTitle(this._doc,t)},t}();Z.decorators=[{type:r.Injectable}],Z.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]}]};var Y=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},tt={ApplicationRef:r.ApplicationRef,NgZone:r.NgZone},et="ng.probe",rt="ng.coreTokens",nt=function(){function t(t,e){this.name=t,this.token=e}return t}(),ot=[{provide:r.APP_INITIALIZER,useFactory:h,deps:[[nt,new r.Optional],[r.NgProbeToken,new r.Optional]],multi:!0}],it=new r.InjectionToken("EventManagerPlugins"),st=function(){function t(t,e){var r=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=r}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,r){return this._findPluginFor(e).addEventListener(t,e,r)},t.prototype.addGlobalEventListener=function(t,e,r){return this._findPluginFor(e).addGlobalEventListener(t,e,r)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var r=this._plugins,n=0;n<r.length;n++){var o=r[n];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error("No event manager plugin found for event "+t)},t}();st.decorators=[{type:r.Injectable}],st.ctorParameters=function(){return[{type:Array,decorators:[{type:r.Inject,args:[it]}]},{type:r.NgZone}]};var at=function(){function t(t){this._doc=t}return t.prototype.supports=function(t){},t.prototype.addEventListener=function(t,e,r){},t.prototype.addGlobalEventListener=function(t,e,r){var o=n().getGlobalEventTarget(this._doc,t);if(!o)throw new Error("Unsupported event target "+o+" for event "+e);return this.addEventListener(o,e,r)},t}(),ut=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,r=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),r.add(t))}),this.onStylesAdded(r)},t.prototype.onStylesAdded=function(t){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t}();ut.decorators=[{type:r.Injectable}],ut.ctorParameters=function(){return[]};var ct=function(t){function e(e){var r=t.call(this)||this;return r._doc=e,r._hostNodes=new Set,r._styleNodes=new Set,r._hostNodes.add(e.head),r}return D(e,t),e.prototype._addStylesToHost=function(t,e){var r=this;t.forEach(function(t){var n=r._doc.createElement("style");n.textContent=t,r._styleNodes.add(e.appendChild(n))})},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes.delete(t)},e.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach(function(r){return e._addStylesToHost(t,r)})},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return n().remove(t)})},e}(ut);ct.decorators=[{type:r.Injectable}],ct.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]}]};var lt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},pt=/%COMP%/g,ht="_nghost-%COMP%",ft="_ngcontent-%COMP%",dt=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new mt(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case r.ViewEncapsulation.Emulated:var n=this.rendererByCompId.get(e.id);return n||(n=new vt(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n;case r.ViewEncapsulation.Native:return new gt(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var o=y(e.id,e.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t}();dt.decorators=[{type:r.Injectable}],dt.ctorParameters=function(){return[{type:st},{type:ct}]};var mt=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){return e?document.createElementNS(lt[e],t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,r){t&&t.insertBefore(e,r)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t){var e="string"==typeof t?document.querySelector(t):t;if(!e)throw new Error('The selector "'+t+'" did not match any elements');return e.textContent="",e},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,r,n){if(n){e=n+":"+e;var o=lt[n];o?t.setAttributeNS(o,e,r):t.setAttribute(e,r)}else t.setAttribute(e,r)},t.prototype.removeAttribute=function(t,e,r){if(r){var n=lt[r];n?t.removeAttributeNS(n,e):t.removeAttribute(r+":"+e)}else t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,n,o){o&r.RendererStyleFlags2.DashCase?t.style.setProperty(e,n,o&r.RendererStyleFlags2.Important?"important":""):t.style[e]=n},t.prototype.removeStyle=function(t,e,n){n&r.RendererStyleFlags2.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,r){g(e,"property"),t[e]=r},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,r){return g(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,v(r)):this.eventManager.addEventListener(t,e,v(r))},t}(),yt="@".charCodeAt(0),vt=function(t){function e(e,r,n){var o=t.call(this,e)||this;o.component=n;var i=y(n.id,n.styles,[]);return r.addStyles(i),o.contentAttr=d(n.id),o.hostAttr=m(n.id),o}return D(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,r){var n=t.prototype.createElement.call(this,e,r);return t.prototype.setAttribute.call(this,n,this.contentAttr,""),n},e}(mt),gt=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;i.sharedStylesHost=r,i.hostEl=n,i.component=o,i.shadowRoot=n.createShadowRoot(),i.sharedStylesHost.addHost(i.shadowRoot);for(var s=y(o.id,o.styles,[]),a=0;a<s.length;a++){var u=document.createElement("style");u.textContent=s[a],i.shadowRoot.appendChild(u)}return i}return D(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,r){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),r)},e.prototype.insertBefore=function(e,r,n){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),r,n)},e.prototype.removeChild=function(e,r){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),r)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(mt),_t=function(t){function e(e){return t.call(this,e)||this}return D(e,t),e.prototype.supports=function(t){return!0},e.prototype.addEventListener=function(t,e,r){return t.addEventListener(e,r,!1),function(){return t.removeEventListener(e,r,!1)}},e}(at);_t.decorators=[{type:r.Injectable}],_t.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]}]};var bt={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},wt=new r.InjectionToken("HammerGestureConfig"),Ct=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(var r in this.overrides)e.get(r).set(this.overrides[r]);return e},t}();Ct.decorators=[{type:r.Injectable}],Ct.ctorParameters=function(){return[]};var Et=function(t){function e(e,r){var n=t.call(this,e)||this;return n._config=r,n}return D(e,t),e.prototype.supports=function(t){if(!bt.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t))return!1;if(!window.Hammer)throw new Error("Hammer.js is not loaded, can not bind "+t+" event");return!0},e.prototype.addEventListener=function(t,e,r){var n=this,o=this.manager.getZone();return e=e.toLowerCase(),o.runOutsideAngular(function(){var i=n._config.buildHammer(t),s=function(t){o.runGuarded(function(){r(t)})};return i.on(e,s),function(){return i.off(e,s)}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e}(at);Et.decorators=[{type:r.Injectable}],Et.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]},{type:Ct,decorators:[{type:r.Inject,args:[wt]}]}]};var St=["alt","control","meta","shift"],xt={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Pt=function(t){function e(e){return t.call(this,e)||this}return D(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,r,o){var i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return n().onAndCancel(t,i.domEventName,s)})},e.parseEventName=function(t){var r=t.toLowerCase().split("."),n=r.shift();if(0===r.length||"keydown"!==n&&"keyup"!==n)return null;var o=e._normalizeKey(r.pop()),i="";if(St.forEach(function(t){var e=r.indexOf(t);e>-1&&(r.splice(e,1),i+=t+".")}),i+=o,0!=r.length||0===o.length)return null;var s={};return s.domEventName=n,s.fullKey=i,s},e.getEventFullKey=function(t){var e="",r=n().getEventKey(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),St.forEach(function(n){n!=r&&(0,xt[n])(t)&&(e+=n+".")}),e+=r},e.eventCallback=function(t,r,n){return function(o){e.getEventFullKey(o)===t&&n.runGuarded(function(){return r(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(at);Pt.decorators=[{type:r.Injectable}],Pt.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]}]};var Tt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,At=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,Ot=null,Mt=null,Rt=C("area,br,col,hr,img,wbr"),kt=C("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Nt=C("rp,rt"),It=E(Nt,kt),jt=E(kt,C("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Dt=E(Nt,C("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Lt=E(Rt,jt,Dt,It),Vt=C("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ft=C("srcset"),Ut=C("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Bt=E(Vt,Ft,Ut),Ht=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(Mt.isElementNode(e)?this.startElement(e):Mt.isTextNode(e)?this.chars(Mt.nodeValue(e)):this.sanitizedSomething=!0,Mt.firstChild(e))e=Mt.firstChild(e);else for(;e;){Mt.isElementNode(e)&&this.endElement(e);var r=S(e,Mt.nextSibling(e));if(r){e=r;break}e=S(e,Mt.parentElement(e))}return this.buf.join("")},t.prototype.startElement=function(t){var e=this,r=Mt.nodeName(t).toLowerCase();Lt.hasOwnProperty(r)?(this.buf.push("<"),this.buf.push(r),Mt.attributeMap(t).forEach(function(t,r){var n=r.toLowerCase();Bt.hasOwnProperty(n)?(Vt[n]&&(t=_(t)),Ft[n]&&(t=b(t)),e.buf.push(" "),e.buf.push(r),e.buf.push('="'),e.buf.push(x(t)),e.buf.push('"')):e.sanitizedSomething=!0}),this.buf.push(">")):this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=Mt.nodeName(t).toLowerCase();Lt.hasOwnProperty(e)&&!Rt.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(x(t))},t}(),qt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Gt=/([^\#-~ |!])/g,zt=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"),$t=/^url\(([^)]+)\)$/,Wt=function(){function t(){}return t.prototype.sanitize=function(t,e){},t.prototype.bypassSecurityTrustHtml=function(t){},t.prototype.bypassSecurityTrustStyle=function(t){},t.prototype.bypassSecurityTrustScript=function(t){},t.prototype.bypassSecurityTrustUrl=function(t){},t.prototype.bypassSecurityTrustResourceUrl=function(t){},t}(),Kt=function(t){function e(e){var r=t.call(this)||this;return r._doc=e,r}return D(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case r.SecurityContext.NONE:return e;case r.SecurityContext.HTML:return e instanceof Jt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),T(this._doc,String(e)));case r.SecurityContext.STYLE:return e instanceof Xt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),O(e));case r.SecurityContext.SCRIPT:if(e instanceof Zt)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case r.SecurityContext.URL:return e instanceof te||e instanceof Yt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),_(String(e)));case r.SecurityContext.RESOURCE_URL:if(e instanceof te)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof Qt)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new Jt(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new Xt(t)},e.prototype.bypassSecurityTrustScript=function(t){return new Zt(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new Yt(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new te(t)},e}(Wt);Kt.decorators=[{type:r.Injectable}],Kt.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]}]};var Qt=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.getTypeName=function(){},t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),Jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return D(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(Qt),Xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return D(e,t),e.prototype.getTypeName=function(){return"Style"},e}(Qt),Zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return D(e,t),e.prototype.getTypeName=function(){return"Script"},e}(Qt),Yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return D(e,t),e.prototype.getTypeName=function(){return"URL"},e}(Qt),te=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return D(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(Qt),ee=[{provide:r.PLATFORM_ID,useValue:e.ɵPLATFORM_BROWSER_ID},{provide:r.PLATFORM_INITIALIZER,useValue:M,multi:!0},{provide:e.PlatformLocation,useClass:W},{provide:$,useFactory:k,deps:[]}],re=[{provide:r.Sanitizer,useExisting:Wt},{provide:Wt,useClass:Kt}],ne=r.createPlatformFactory(r.platformCore,"browser",ee),oe=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:r.APP_ID,useValue:e.appId},{provide:Q,useExisting:r.APP_ID},J]}},t}();oe.decorators=[{type:r.NgModule,args:[{providers:[re,{provide:r.ErrorHandler,useFactory:R,deps:[]},{provide:it,useClass:_t,multi:!0},{provide:it,useClass:Pt,multi:!0},{provide:it,useClass:Et,multi:!0},{provide:wt,useClass:Ct},dt,{provide:r.RendererFactory2,useExisting:dt},{provide:ut,useExisting:ct},ct,r.Testability,st,ot,K,Z],exports:[e.CommonModule,r.ApplicationModule]}]}],oe.ctorParameters=function(){return[{type:oe,decorators:[{type:r.Optional},{type:r.SkipSelf}]}]};var ie="undefined"!=typeof window&&window||{},se=function(){function t(t,e){this.msPerTick=t,this.numTicks=e}return t}(),ae=function(){function t(t){this.appRef=t.injector.get(r.ApplicationRef)}return t.prototype.timeChangeDetection=function(t){var e=t&&t.record,r=null!=ie.console.profile;e&&r&&ie.console.profile("Change Detection");for(var o=n().performanceNow(),i=0;i<5||n().performanceNow()-o<500;)this.appRef.tick(),i++;var s=n().performanceNow();e&&r&&ie.console.profileEnd("Change Detection");var a=(s-o)/i;return ie.console.log("ran "+i+" change detection cycles"),ie.console.log(a.toFixed(2)+" ms per check"),new se(a,i)},t}(),ue="ng.profiler",ce=function(){function t(){}return t.all=function(){return function(t){return!0}},t.css=function(t){return function(e){return null!=e.nativeElement&&n().elementMatches(e.nativeElement,t)}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}},t}(),le=new r.Version("4.1.3");t.BrowserModule=oe,t.platformBrowser=ne,t.Meta=K,t.Title=Z,t.disableDebugTools=I,t.enableDebugTools=N,t.By=ce,t.NgProbeToken=nt,t.DOCUMENT=$,t.EVENT_MANAGER_PLUGINS=it,t.EventManager=st,t.HAMMER_GESTURE_CONFIG=wt,t.HammerGestureConfig=Ct,t.DomSanitizer=Wt,t.VERSION=le,t.ɵBROWSER_SANITIZATION_PROVIDERS=re,t.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS=ee,t.ɵinitDomAdapter=M,t.ɵBrowserDomAdapter=G,t.ɵsetValueOnPath=u,t.ɵBrowserPlatformLocation=W,t.ɵTRANSITION_ID=Q,t.ɵBrowserGetTestability=X,t.ɵELEMENT_PROBE_PROVIDERS=ot,t.ɵDomAdapter=V,t.ɵgetDOM=n,t.ɵsetRootDomAdapter=o,t.ɵDomRendererFactory2=dt,t.ɵNAMESPACE_URIS=lt,t.ɵflattenStyles=y,t.ɵshimContentAttribute=d,t.ɵshimHostAttribute=m,t.ɵDomEventsPlugin=_t,t.ɵHammerGesturesPlugin=Et,t.ɵKeyEventsPlugin=Pt,t.ɵDomSharedStylesHost=ct,t.ɵSharedStylesHost=ut,t.ɵb=k,t.ɵa=R,t.ɵh=F,t.ɵg=J,t.ɵf=l,t.ɵc=h,t.ɵd=at,t.ɵe=Kt,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":18,"@angular/core":20}],25:[function(t,e,r){!function(n,o){"object"==typeof r&&void 0!==e?o(r,t("@angular/common"),t("@angular/core"),t("rxjs/BehaviorSubject"),t("rxjs/Subject"),t("rxjs/observable/from"),t("rxjs/observable/of"),t("rxjs/operator/concatMap"),t("rxjs/operator/every"),t("rxjs/operator/first"),t("rxjs/operator/map"),t("rxjs/operator/mergeMap"),t("rxjs/operator/reduce"),t("rxjs/Observable"),t("rxjs/operator/catch"),t("rxjs/operator/concatAll"),t("rxjs/util/EmptyError"),t("rxjs/observable/fromPromise"),t("rxjs/operator/last"),t("rxjs/operator/mergeAll"),t("@angular/platform-browser"),t("rxjs/operator/filter")):o((n.ng=n.ng||{},n.ng.router=n.ng.router||{}),n.ng.common,n.ng.core,n.Rx,n.Rx,n.Rx.Observable,n.Rx.Observable,n.Rx.Observable.prototype,n.Rx.Observable.prototype,n.Rx.Observable.prototype,n.Rx.Observable.prototype,n.Rx.Observable.prototype,n.Rx.Observable.prototype,n.Rx,n.Rx.Observable.prototype,n.Rx.Observable.prototype,n.Rx,n.Rx.Observable,n.Rx.Observable.prototype,n.Rx.Observable.prototype,n.ng.platformBrowser,n.Rx.Observable.prototype)}(this,function(t,e,r,n,o,i,s,a,u,c,l,p,h,f,d,m,y,v,g,_,b,w){"use strict";function C(t){return new Le(t)}function E(t){var e=Error("NavigationCancelingError: "+t);return e[Ve]=!0,e}function S(t){return t[Ve]}function x(t,e,r){var n=r.path.split("/");if(n.length>t.length)return null;if("full"===r.pathMatch&&(e.hasChildren()||n.length<t.length))return null;for(var o={},i=0;i<n.length;i++){var s=n[i],a=t[i];if(s.startsWith(":"))o[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,n.length),posParams:o}}function P(t,e){void 0===e&&(e="");for(var r=0;r<t.length;r++){var n=t[r];T(n,A(e,n))}}function T(t,e){if(!t)throw new Error("\n      Invalid configuration of route '"+e+"': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    ");if(Array.isArray(t))throw new Error("Invalid configuration of route '"+e+"': Array cannot be specified");if(!t.component&&t.outlet&&t.outlet!==De)throw new Error("Invalid configuration of route '"+e+"': a componentless route cannot have a named outlet set");if(t.redirectTo&&t.children)throw new Error("Invalid configuration of route '"+e+"': redirectTo and children cannot be used together");if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': redirectTo and loadChildren cannot be used together");if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': children and loadChildren cannot be used together");if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '"+e+"': redirectTo and component cannot be used together");if(t.path&&t.matcher)throw new Error("Invalid configuration of route '"+e+"': path and matcher cannot be used together");if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error("Invalid configuration of route '"+e+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===t.path&&void 0===t.matcher)throw new Error("Invalid configuration of route '"+e+"': routes must have either a path or a matcher specified");if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error("Invalid configuration of route '"+e+"': path cannot start with a slash");if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch){throw new Error("Invalid configuration of route '{path: \""+e+'", redirectTo: "'+t.redirectTo+"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.")}if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '"+e+"': pathMatch can only be set to 'prefix' or 'full'");t.children&&P(t.children,e)}function A(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function O(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r)if(!M(t[r],e[r]))return!1;return!0}function M(t,e){var r=Object.keys(t),n=Object.keys(e);if(r.length!=n.length)return!1;for(var o,i=0;i<r.length;i++)if(o=r[i],t[o]!==e[o])return!1;return!0}function R(t){return Array.prototype.concat.apply([],t)}function k(t){return t.length>0?t[t.length-1]:null}function N(t,e){for(var r in t)t.hasOwnProperty(r)&&e(t[r],r)}function I(t,e){if(0===Object.keys(t).length)return s.of({});var r=[],n=[],o={};N(t,function(t,i){var s=l.map.call(e(i,t),function(t){return o[i]=t});i===De?r.push(s):n.push(s)});var i=m.concatAll.call(s.of.apply(void 0,r.concat(n))),a=g.last.call(i);return l.map.call(a,function(){return o})}function j(t){var e=_.mergeAll.call(t);return u.every.call(e,function(t){return!0===t})}function D(t){return r.ɵisObservable(t)?t:r.ɵisPromise(t)?v.fromPromise(Promise.resolve(t)):s.of(t)}function L(){return new Ue(new Be([],{}),{},null)}function V(t,e,r){return r?F(t.queryParams,e.queryParams)&&U(t.root,e.root):B(t.queryParams,e.queryParams)&&H(t.root,e.root)}function F(t,e){return M(t,e)}function U(t,e){if(!z(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(var r in e.children){if(!t.children[r])return!1;if(!U(t.children[r],e.children[r]))return!1}return!0}function B(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(r){return e[r]===t[r]})}function H(t,e){return q(t,e,e.segments)}function q(t,e,r){if(t.segments.length>r.length)return!!z(o=t.segments.slice(0,r.length),r)&&!e.hasChildren();if(t.segments.length===r.length){if(!z(t.segments,r))return!1;for(var n in e.children){if(!t.children[n])return!1;if(!H(t.children[n],e.children[n]))return!1}return!0}var o=r.slice(0,t.segments.length),i=r.slice(t.segments.length);return!!z(t.segments,o)&&(!!t.children[De]&&q(t.children[De],e,i))}function G(t,e){return z(t,e)&&t.every(function(t,r){return M(t.parameters,e[r].parameters)})}function z(t,e){return t.length===e.length&&t.every(function(t,r){return t.path===e[r].path})}function $(t,e){var r=[];return N(t.children,function(t,n){n===De&&(r=r.concat(e(t,n)))}),N(t.children,function(t,n){n!==De&&(r=r.concat(e(t,n)))}),r}function W(t){return t.segments.map(function(t){return X(t)}).join("/")}function K(t,e){if(!t.hasChildren())return W(t);if(e){var r=t.children[De]?K(t.children[De],!1):"",n=[];return N(t.children,function(t,e){e!==De&&n.push(e+":"+K(t,!1))}),n.length>0?r+"("+n.join("//")+")":r}var o=$(t,function(e,r){return r===De?[K(t.children[De],!1)]:[r+":"+K(e,!1)]});return W(t)+"/("+o.join("//")+")"}function Q(t){return encodeURIComponent(t)}function J(t){return decodeURIComponent(t)}function X(t){return""+Q(t.path)+Z(t.parameters)}function Z(t){return Object.keys(t).map(function(e){return";"+Q(e)+"="+Q(t[e])}).join("")}function Y(t){var e=Object.keys(t).map(function(e){var r=t[e];return Array.isArray(r)?r.map(function(t){return Q(e)+"="+Q(t)}).join("&"):Q(e)+"="+Q(r)});return e.length?"?"+e.join("&"):""}function tt(t){var e=t.match($e);return e?e[0]:""}function et(t){var e=t.match(We);return e?e[0]:""}function rt(t){var e=t.match(Ke);return e?e[0]:""}function nt(t){return new f.Observable(function(e){return e.error(new Xe(t))})}function ot(t){return new f.Observable(function(e){return e.error(new Ze(t))})}function it(t){return new f.Observable(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}function st(t){return new f.Observable(function(e){return e.error(E("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}function at(t,e,r,n,o){return new Ye(t,e,r,n,o).apply()}function ut(t,e){var r=e.canLoad;return r&&0!==r.length?j(l.map.call(i.from(r),function(r){var n=t.get(r);return D(n.canLoad?n.canLoad(e):n(e))})):s.of(!0)}function ct(t,e,r){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||r.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var n=(e.matcher||x)(r,t,e);return n?{matched:!0,consumedSegments:n.consumed,lastChild:n.consumed.length,positionalParamSegments:n.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function lt(t,e,r,n){if(r.length>0&&dt(t,r,n))return{segmentGroup:pt(o=new Be(e,ft(n,new Be(r,t.children)))),slicedSegments:[]};if(0===r.length&&mt(t,r,n)){var o=new Be(t.segments,ht(t,r,n,t.children));return{segmentGroup:pt(o),slicedSegments:r}}return{segmentGroup:t,slicedSegments:r}}function pt(t){if(1===t.numberOfChildren&&t.children[De]){var e=t.children[De];return new Be(t.segments.concat(e.segments),e.children)}return t}function ht(t,e,r,n){for(var o={},i=0,s=r;i<s.length;i++){var a=s[i];yt(t,e,a)&&!n[vt(a)]&&(o[vt(a)]=new Be([],{}))}return Je({},n,o)}function ft(t,e){var r={};r[De]=e;for(var n=0,o=t;n<o.length;n++){var i=o[n];""===i.path&&vt(i)!==De&&(r[vt(i)]=new Be([],{}))}return r}function dt(t,e,r){return r.some(function(r){return yt(t,e,r)&&vt(r)!==De})}function mt(t,e,r){return r.some(function(r){return yt(t,e,r)})}function yt(t,e,r){return(!(t.hasChildren()||e.length>0)||"full"!==r.pathMatch)&&(""===r.path&&void 0!==r.redirectTo)}function vt(t){return t.outlet||De}function gt(t,e){if(t===e.value)return e;for(var r=0,n=e.children;r<n.length;r++){var o=gt(t,n[r]);if(o)return o}return null}function _t(t,e,r){if(r.push(e),t===e.value)return r;for(var n=0,o=e.children;n<o.length;n++){var i=_t(t,o[n],r.slice(0));if(i.length>0)return i}return[]}function bt(t,e){var r=wt(t,e),o=new n.BehaviorSubject([new He("",{})]),i=new n.BehaviorSubject({}),s=new n.BehaviorSubject({}),a=new n.BehaviorSubject({}),u=new n.BehaviorSubject(""),c=new or(o,i,a,u,s,De,e,r.root);return c.snapshot=r.root,new nr(new er(c,[]),r)}function wt(t,e){var r=new ir([],{},{},"",{},De,e,null,t.root,-1,{});return new sr("",new er(r,[]))}function Ct(t){for(var e=t.pathFromRoot,r=e.length-1;r>=1;){var n=e[r],o=e[r-1];if(n.routeConfig&&""===n.routeConfig.path)r--;else{if(o.component)break;r--}}return e.slice(r).reduce(function(t,e){return{params:rr({},t.params,e.params),data:rr({},t.data,e.data),resolve:rr({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}function Et(t,e){e.value._routerState=t,e.children.forEach(function(e){return Et(t,e)})}function St(t){var e=t.children.length>0?" { "+t.children.map(St).join(", ")+" } ":"";return""+t.value+e}function xt(t){if(t.snapshot){var e=t.snapshot;t.snapshot=t._futureSnapshot,M(e.queryParams,t._futureSnapshot.queryParams)||t.queryParams.next(t._futureSnapshot.queryParams),e.fragment!==t._futureSnapshot.fragment&&t.fragment.next(t._futureSnapshot.fragment),M(e.params,t._futureSnapshot.params)||t.params.next(t._futureSnapshot.params),O(e.url,t._futureSnapshot.url)||t.url.next(t._futureSnapshot.url),M(e.data,t._futureSnapshot.data)||t.data.next(t._futureSnapshot.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Pt(t,e){var r=M(t.params,e.params)&&G(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||Pt(t.parent,e.parent))}function Tt(t,e,r){var n=At(t,e._root,r?r._root:void 0);return new nr(n,e)}function At(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){(o=r.value)._futureSnapshot=e.value;i=Mt(t,e,r);return new er(o,i)}if(t.retrieve(e.value)){var n=t.retrieve(e.value).route;return Ot(e,n),n}var o=Rt(e.value),i=e.children.map(function(e){return At(t,e)});return new er(o,i)}function Ot(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(var r=0;r<t.children.length;++r)Ot(t.children[r],e.children[r])}function Mt(t,e,r){return e.children.map(function(e){for(var n=0,o=r.children;n<o.length;n++){var i=o[n];if(t.shouldReuseRoute(i.value.snapshot,e.value))return At(t,e,i)}return At(t,e)})}function Rt(t){return new or(new n.BehaviorSubject(t.url),new n.BehaviorSubject(t.params),new n.BehaviorSubject(t.queryParams),new n.BehaviorSubject(t.fragment),new n.BehaviorSubject(t.data),t.outlet,t.component,t)}function kt(t,e,r,n,o){if(0===r.length)return It(e.root,e.root,e,n,o);var i=Dt(r);if(i.toRoot())return It(e.root,new Be([],{}),e,n,o);var s=Lt(i,e,t),a=s.processChildren?Ht(s.segmentGroup,s.index,i.commands):Bt(s.segmentGroup,s.index,i.commands);return It(s.segmentGroup,a,e,n,o)}function Nt(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function It(t,e,r,n,o){var i={};return n&&N(n,function(t,e){i[e]=Array.isArray(t)?t.map(function(t){return""+t}):""+t}),r.root===t?new Ue(e,i,o):new Ue(jt(r.root,t,e),i,o)}function jt(t,e,r){var n={};return N(t.children,function(t,o){n[o]=t===e?r:jt(t,e,r)}),new Be(t.segments,n)}function Dt(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ar(!0,0,t);var e=0,r=!1,n=t.reduce(function(t,n,o){if("object"==typeof n&&null!=n){if(n.outlets){var i={};return N(n.outlets,function(t,e){i[e]="string"==typeof t?t.split("/"):t}),t.concat([{outlets:i}])}if(n.segmentPath)return t.concat([n.segmentPath])}return"string"!=typeof n?t.concat([n]):0===o?(n.split("/").forEach(function(n,o){0==o&&"."===n||(0==o&&""===n?r=!0:".."===n?e++:""!=n&&t.push(n))}),t):t.concat([n])},[]);return new ar(r,e,n)}function Lt(t,e,r){if(t.isAbsolute)return new ur(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new ur(r.snapshot._urlSegment,!0,0);var n=Nt(t.commands[0])?0:1,o=r.snapshot._lastPathIndex+n;return Vt(r.snapshot._urlSegment,o,t.numberOfDoubleDots)}function Vt(t,e,r){for(var n=t,o=e,i=r;i>o;){if(i-=o,!(n=n.parent))throw new Error("Invalid number of '../'");o=n.segments.length}return new ur(n,!1,o-i)}function Ft(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[De]:""+t}function Ut(t){return"object"!=typeof t[0]?(e={},e[De]=t,e):void 0===t[0].outlets?(r={},r[De]=t,r):t[0].outlets;var e,r}function Bt(t,e,r){if(t||(t=new Be([],{})),0===t.segments.length&&t.hasChildren())return Ht(t,e,r);var n=qt(t,e,r),o=r.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){var i=new Be(t.segments.slice(0,n.pathIndex),{});return i.children[De]=new Be(t.segments.slice(n.pathIndex),t.children),Ht(i,0,o)}return n.match&&0===o.length?new Be(t.segments,{}):n.match&&!t.hasChildren()?Gt(t,e,r):n.match?Ht(t,0,o):Gt(t,e,r)}function Ht(t,e,r){if(0===r.length)return new Be(t.segments,{});var n=Ut(r),o={};return N(n,function(r,n){null!==r&&(o[n]=Bt(t.children[n],e,r))}),N(t.children,function(t,e){void 0===n[e]&&(o[e]=t)}),new Be(t.segments,o)}function qt(t,e,r){for(var n=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o<t.segments.length;){if(n>=r.length)return i;var s=t.segments[o],a=Ft(r[n]),u=n<r.length-1?r[n+1]:null;if(o>0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!Wt(a,u,s))return i;n+=2}else{if(!Wt(a,{},s))return i;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function Gt(t,e,r){for(var n=t.segments.slice(0,e),o=0;o<r.length;){if("object"==typeof r[o]&&void 0!==r[o].outlets){var i=zt(r[o].outlets);return new Be(n,i)}if(0===o&&Nt(r[0])){var s=t.segments[e];n.push(new He(s.path,r[0])),o++}else{var a=Ft(r[o]),u=o<r.length-1?r[o+1]:null;a&&u&&Nt(u)?(n.push(new He(a,$t(u))),o+=2):(n.push(new He(a,{})),o++)}}return new Be(n,{})}function zt(t){var e={};return N(t,function(t,r){null!==t&&(e[r]=Gt(new Be([],{}),0,t))}),e}function $t(t){var e={};return N(t,function(t,r){return e[r]=""+t}),e}function Wt(t,e,r){return t==r.path&&M(e,r.parameters)}function Kt(t,e,r,n){return new pr(t,e,r,n).recognize()}function Qt(t){t.sort(function(t,e){return t.value.outlet===De?-1:e.value.outlet===De?1:t.value.outlet.localeCompare(e.value.outlet)})}function Jt(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}function Xt(t,e,r){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||r.length>0))throw new lr;return{consumedSegments:[],lastChild:0,parameters:{}}}var n=(e.matcher||x)(r,t,e);if(!n)throw new lr;var o={};N(n.posParams,function(t,e){o[e]=t.path});var i=cr({},o,n.consumed[n.consumed.length-1].parameters);return{consumedSegments:n.consumed,lastChild:n.consumed.length,parameters:i}}function Zt(t){var e={};t.forEach(function(t){var r=e[t.value.outlet];if(r){var n=r.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: '"+n+"' and '"+o+"'.")}e[t.value.outlet]=t.value})}function Yt(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function te(t){for(var e=t,r=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)r+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return r-1}function ee(t,e,r,n){if(r.length>0&&oe(t,r,n)){var o=new Be(e,ne(t,e,n,new Be(r,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===r.length&&ie(t,r,n)){var i=new Be(t.segments,re(t,r,n,t.children));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:r}}var s=new Be(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:r}}function re(t,e,r,n){for(var o={},i=0,s=r;i<s.length;i++){var a=s[i];if(se(t,e,a)&&!n[ae(a)]){var u=new Be([],{});u._sourceSegment=t,u._segmentIndexShift=t.segments.length,o[ae(a)]=u}}return cr({},n,o)}function ne(t,e,r,n){var o={};o[De]=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(var i=0,s=r;i<s.length;i++){var a=s[i];if(""===a.path&&ae(a)!==De){var u=new Be([],{});u._sourceSegment=t,u._segmentIndexShift=e.length,o[ae(a)]=u}}return o}function oe(t,e,r){return r.some(function(r){return se(t,e,r)&&ae(r)!==De})}function ie(t,e,r){return r.some(function(r){return se(t,e,r)})}function se(t,e,r){return(!(t.hasChildren()||e.length>0)||"full"!==r.pathMatch)&&(""===r.path&&void 0===r.redirectTo)}function ae(t){return t.outlet||De}function ue(t){return t.data||{}}function ce(t){return t.resolve||{}}function le(t){throw t}function pe(t){return s.of(null)}function he(t){xt(t.value),t.children.forEach(he)}function fe(t){for(var e=t.parent;e;e=e.parent){var r=e._routeConfig;if(r&&r._loadedConfig)return r._loadedConfig;if(r&&r.component)return null}return null}function de(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var r=e._routeConfig;if(r&&r._loadedConfig)return r._loadedConfig}return null}function me(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}function ye(t,e){var r=t._outlets[e.outlet];if(!r){var n=e.component.name;throw e.outlet===De?new Error("Cannot find primary outlet to load '"+n+"'"):new Error("Cannot find the outlet "+e.outlet+" to load '"+n+"'")}return r}function ve(t){for(var e=0;e<t.length;e++){var r=t[e];if(null==r)throw new Error("The requested path contains "+r+" segment at index "+e)}}function ge(t){return""===t||!!t}function _e(){return new r.NgProbeToken("Router",_r)}function be(t,r,n){return void 0===n&&(n={}),n.useHash?new e.HashLocationStrategy(t,r):new e.PathLocationStrategy(t,r)}function we(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Ce(t){return[{provide:r.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:t},{provide:hr,multi:!0,useValue:t}]}function Ee(t,e,r,n,o,i,s,a,u,c,l){void 0===u&&(u={});var p=new _r(null,e,r,n,o,i,s,R(a));if(c&&(p.urlHandlingStrategy=c),l&&(p.routeReuseStrategy=l),u.errorHandler&&(p.errorHandler=u.errorHandler),u.enableTracing){var h=b.ɵgetDOM();p.events.subscribe(function(t){h.logGroup("Router Event: "+t.constructor.name),h.log(t.toString()),h.log(t),h.logGroupEnd()})}return p}function Se(t){return t.routerState.root}function xe(t){return t.appInitializer.bind(t)}function Pe(t){return t.bootstrapListener.bind(t)}function Te(){return[Fr,{provide:r.APP_INITIALIZER,multi:!0,useFactory:xe,deps:[Fr]},{provide:Ur,useFactory:Pe,deps:[Fr]},{provide:r.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:Ur}]}var Ae=function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Oe=function(){function t(t,e){this.id=t,this.url=e}return t.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},t}(),Me=function(){function t(t,e,r){this.id=t,this.url=e,this.urlAfterRedirects=r}return t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(),Re=function(){function t(t,e,r){this.id=t,this.url=e,this.reason=r}return t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(),ke=function(){function t(t,e,r){this.id=t,this.url=e,this.error=r}return t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(),Ne=function(){function t(t,e,r,n){this.id=t,this.url=e,this.urlAfterRedirects=r,this.state=n}return t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),Ie=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),je=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),De="primary",Le=function(){function t(t){this.params=t||{}}return t.prototype.has=function(t){return this.params.hasOwnProperty(t)},t.prototype.get=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null},t.prototype.getAll=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}(),Ve="ngNavigationCancelingError",Fe=function(){function t(t,e){this.routes=t,this.module=e}return t}(),Ue=function(){function t(t,e,r){this.root=t,this.queryParams=e,this.fragment=r}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=C(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return ze.serialize(this)},t}(),Be=function(){function t(t,e){var r=this;this.segments=t,this.children=e,this.parent=null,N(e,function(t,e){return t.parent=r})}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 W(this)},t}(),He=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=C(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return X(this)},t}(),qe=function(){function t(){}return t.prototype.parse=function(t){},t.prototype.serialize=function(t){},t}(),Ge=function(){function t(){}return t.prototype.parse=function(t){var e=new Qe(t);return new Ue(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){return""+("/"+K(t.root,!0))+Y(t.queryParams)+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),ze=new Ge,$e=/^[^\/()?;=&#]+/,We=/^[^=?&#]+/,Ke=/^[^?&#]+/,Qe=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 Be([],{}):new Be([],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("#")?decodeURI(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 r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(r[De]=new Be(t,e)),r},t.prototype.parseSegment=function(){var t=tt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new He(J(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=tt(this.remaining);if(e){this.capture(e);var r="";if(this.consumeOptional("=")){var n=tt(this.remaining);n&&(r=n,this.capture(r))}t[J(e)]=J(r)}},t.prototype.parseQueryParam=function(t){var e=et(this.remaining);if(e){this.capture(e);var r="";if(this.consumeOptional("=")){var n=rt(this.remaining);n&&(r=n,this.capture(r))}var o=J(e),i=J(r);if(t.hasOwnProperty(o)){var s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var r=tt(this.remaining),n=this.remaining[r.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;r.indexOf(":")>-1?(o=r.substr(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=De);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[De]:new Be([],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}(),Je=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Xe=function(){function t(t){this.segmentGroup=t||null}return t}(),Ze=function(){function t(t){this.urlTree=t}return t}(),Ye=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.NgModuleRef)}return t.prototype.apply=function(){var t=this,e=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,De),r=l.map.call(e,function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)});return d._catch.call(r,function(e){if(e instanceof Ze)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof Xe)throw t.noMatchError(e);throw e})},t.prototype.match=function(t){var e=this,r=this.expandSegmentGroup(this.ngModule,this.config,t.root,De),n=l.map.call(r,function(r){return e.createUrlTree(r,t.queryParams,t.fragment)});return d._catch.call(n,function(t){if(t instanceof Xe)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,r){var n=t.segments.length>0?new Be([],(o={},o[De]=t,o)):t;return new Ue(n,e,r);var o},t.prototype.expandSegmentGroup=function(t,e,r,n){return 0===r.segments.length&&r.hasChildren()?l.map.call(this.expandChildren(t,e,r),function(t){return new Be([],t)}):this.expandSegment(t,r,e,r.segments,n,!0)},t.prototype.expandChildren=function(t,e,r){var n=this;return I(r.children,function(r,o){return n.expandSegmentGroup(t,e,o,r)})},t.prototype.expandSegment=function(t,e,r,n,o,i){var a=this,u=s.of.apply(void 0,r),p=l.map.call(u,function(u){var c=a.expandSegmentAgainstRoute(t,e,r,u,n,o,i);return d._catch.call(c,function(t){if(t instanceof Xe)return s.of(null);throw t})}),h=m.concatAll.call(p),f=c.first.call(h,function(t){return!!t});return d._catch.call(f,function(t,r){if(t instanceof y.EmptyError){if(a.noLeftoversInUrl(e,n,o))return s.of(new Be([],{}));throw new Xe(e)}throw t})},t.prototype.noLeftoversInUrl=function(t,e,r){return 0===e.length&&!t.children[r]},t.prototype.expandSegmentAgainstRoute=function(t,e,r,n,o,i,s){return vt(n)!==i?nt(e):void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,o):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,r,n,o,i):nt(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,r,n,o,i){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,n,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,r,n,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,r,n){var o=this,i=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?ot(i):p.mergeMap.call(this.lineralizeSegments(r,i),function(r){var i=new Be(r,{});return o.expandSegment(t,i,e,r,n,!1)})},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,r,n,o,i){var s=this,a=ct(e,n,o),u=a.matched,c=a.consumedSegments,l=a.lastChild,h=a.positionalParamSegments;if(!u)return nt(e);var f=this.applyRedirectCommands(c,n.redirectTo,h);return n.redirectTo.startsWith("/")?ot(f):p.mergeMap.call(this.lineralizeSegments(n,f),function(n){return s.expandSegment(t,e,r,n.concat(o.slice(l)),i,!1)})},t.prototype.matchSegmentAgainstRoute=function(t,e,r,n){var o=this;if("**"===r.path)return r.loadChildren?l.map.call(this.configLoader.load(t.injector,r),function(t){return r._loadedConfig=t,new Be(n,{})}):s.of(new Be(n,{}));var i=ct(e,r,n),a=i.matched,u=i.consumedSegments,c=i.lastChild;if(!a)return nt(e);var h=n.slice(c),f=this.getChildConfig(t,r);return p.mergeMap.call(f,function(t){var r=t.module,n=t.routes,i=lt(e,u,h,n),a=i.segmentGroup,c=i.slicedSegments;if(0===c.length&&a.hasChildren()){var p=o.expandChildren(r,n,a);return l.map.call(p,function(t){return new Be(u,t)})}if(0===n.length&&0===c.length)return s.of(new Be(u,{}));var f=o.expandSegment(r,a,n,c,De,!0);return l.map.call(f,function(t){return new Be(u.concat(t.segments),t.children)})})},t.prototype.getChildConfig=function(t,e){var r=this;return e.children?s.of(new Fe(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?s.of(e._loadedConfig):p.mergeMap.call(ut(t.injector,e),function(n){return n?l.map.call(r.configLoader.load(t.injector,e),function(t){return e._loadedConfig=t,t}):st(e)}):s.of(new Fe([],t))},t.prototype.lineralizeSegments=function(t,e){for(var r=[],n=e.root;;){if(r=r.concat(n.segments),0===n.numberOfChildren)return s.of(r);if(n.numberOfChildren>1||!n.children[De])return it(t.redirectTo);n=n.children[De]}},t.prototype.applyRedirectCommands=function(t,e,r){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,r)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,r,n){var o=this.createSegmentGroup(t,e.root,r,n);return new Ue(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var r={};return N(t,function(t,n){if("string"==typeof t&&t.startsWith(":")){var o=t.substring(1);r[n]=e[o]}else r[n]=t}),r},t.prototype.createSegmentGroup=function(t,e,r,n){var o=this,i=this.createSegments(t,e.segments,r,n),s={};return N(e.children,function(e,i){s[i]=o.createSegmentGroup(t,e,r,n)}),new Be(i,s)},t.prototype.createSegments=function(t,e,r,n){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,n):o.findOrReturn(e,r)})},t.prototype.findPosParam=function(t,e,r){var n=r[e.path.substring(1)];if(!n)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return n},t.prototype.findOrReturn=function(t,e){for(var r=0,n=0,o=e;n<o.length;n++){var i=o[n];if(i.path===t.path)return e.splice(r),i;r++}return t},t}(),tr=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=gt(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=gt(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=_t(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 _t(t,this._root,[]).map(function(t){return t.value})},t}(),er=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}(),rr=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},nr=function(t){function e(e,r){var n=t.call(this,e)||this;return n.snapshot=r,Et(n,e),n}return Ae(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(tr),or=function(){function t(t,e,r,n,o,i,s,a){this.url=t,this.params=e,this.queryParams=r,this.fragment=n,this.data=o,this.outlet=i,this.component=s,this._futureSnapshot=a}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),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=l.map.call(this.params,function(t){return C(t)})),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=l.map.call(this.queryParams,function(t){return C(t)})),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}(),ir=function(){function t(t,e,r,n,o,i,s,a,u,c,l){this.url=t,this.params=e,this.queryParams=r,this.fragment=n,this.data=o,this.outlet=i,this.component=s,this._routeConfig=a,this._urlSegment=u,this._lastPathIndex=c,this._resolve=l}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._routeConfig},enumerable:!0,configurable:!0}),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=C(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=C(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}(),sr=function(t){function e(e,r){var n=t.call(this,r)||this;return n.url=e,Et(n,r),n}return Ae(e,t),e.prototype.toString=function(){return St(this._root)},e}(tr),ar=function(){function t(t,e,r){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=r,t&&r.length>0&&Nt(r[0]))throw new Error("Root segment cannot have matrix parameters");var n=r.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(n&&n!==k(r))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}(),ur=function(){function t(t,e,r){this.segmentGroup=t,this.processChildren=e,this.index=r}return t}(),cr=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},lr=function(){function t(){}return t}(),pr=function(){function t(t,e,r,n){this.rootComponentType=t,this.config=e,this.urlTree=r,this.url=n}return t.prototype.recognize=function(){try{var t=ee(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,De),r=new ir([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},De,this.rootComponentType,null,this.urlTree.root,-1,{}),n=new er(r,e),o=new sr(this.url,n);return this.inheriteParamsAndData(o._root),s.of(o)}catch(t){return new f.Observable(function(e){return e.error(t)})}},t.prototype.inheriteParamsAndData=function(t){var e=this,r=t.value,n=Ct(r);r.params=Object.freeze(n.params),r.data=Object.freeze(n.data),t.children.forEach(function(t){return e.inheriteParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,r){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,r)},t.prototype.processChildren=function(t,e){var r=this,n=$(e,function(e,n){return r.processSegmentGroup(t,e,n)});return Zt(n),Qt(n),n},t.prototype.processSegment=function(t,e,r,n){for(var o=0,i=t;o<i.length;o++){var s=i[o];try{return this.processSegmentAgainstRoute(s,e,r,n)}catch(t){if(!(t instanceof lr))throw t}}if(this.noLeftoversInUrl(e,r,n))return[];throw new lr},t.prototype.noLeftoversInUrl=function(t,e,r){return 0===e.length&&!t.children[r]},t.prototype.processSegmentAgainstRoute=function(t,e,r,n){if(t.redirectTo)throw new lr;if((t.outlet||De)!==n)throw new lr;if("**"===t.path){var o=r.length>0?k(r).parameters:{},i=new ir(r,o,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ue(t),n,t.component,t,Yt(e),te(e)+r.length,ce(t));return[new er(i,[])]}var s=Xt(e,t,r),a=s.consumedSegments,u=s.parameters,c=s.lastChild,l=r.slice(c),p=Jt(t),h=ee(e,a,l,p),f=h.segmentGroup,d=h.slicedSegments,m=new ir(a,u,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ue(t),n,t.component,t,Yt(e),te(e)+a.length,ce(t));if(0===d.length&&f.hasChildren()){var y=this.processChildren(p,f);return[new er(m,y)]}if(0===p.length&&0===d.length)return[new er(m,[])];var v=this.processSegment(p,f,d,De);return[new er(m,v)]},t}(),hr=new r.InjectionToken("ROUTES"),fr=function(){function t(t,e,r,n){this.loader=t,this.compiler=e,this.onLoadStartListener=r,this.onLoadEndListener=n}return t.prototype.load=function(t,e){var r=this;this.onLoadStartListener&&this.onLoadStartListener(e);var n=this.loadModuleFactory(e.loadChildren);return l.map.call(n,function(n){r.onLoadEndListener&&r.onLoadEndListener(e);var o=n.create(t);return new Fe(R(o.injector.get(hr)),o)})},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?v.fromPromise(this.loader.load(t)):p.mergeMap.call(D(t()),function(t){return t instanceof r.NgModuleFactory?s.of(t):v.fromPromise(e.compiler.compileModuleAsync(t))})},t}(),dr=function(){function t(){this._outlets={}}return t.prototype.registerOutlet=function(t,e){this._outlets[t]=e},t.prototype.removeOutlet=function(t){this._outlets[t]=void 0},t}(),mr=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){},t.prototype.extract=function(t){},t.prototype.merge=function(t,e){},t}(),yr=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}(),vr=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},gr=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}(),_r=function(){function t(t,e,i,s,a,u,c,l){var p=this;this.rootComponentType=t,this.urlSerializer=e,this.outletMap=i,this.location=s,this.config=l,this.navigations=new n.BehaviorSubject(null),this.routerEvents=new o.Subject,this.navigationId=0,this.errorHandler=le,this.navigated=!1,this.hooks={beforePreactivation:pe,afterPreactivation:pe},this.urlHandlingStrategy=new yr,this.routeReuseStrategy=new gr;var h=function(t){return p.triggerEvent(new Ie(t))},f=function(t){return p.triggerEvent(new je(t))};this.ngModule=a.get(r.NgModuleRef),this.resetConfig(l),this.currentUrlTree=L(),this.rawUrlTree=this.currentUrlTree,this.configLoader=new fr(u,c,h,f),this.currentRouterState=bt(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.currentRouterState.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(Zone.current.wrap(function(e){var r=t.urlSerializer.parse(e.url),n="popstate"===e.type?"popstate":"hashchange";setTimeout(function(){t.scheduleNavigation(r,n,{replaceUrl:!0})},0)})))},Object.defineProperty(t.prototype,"routerState",{get:function(){return this.currentRouterState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){return this.routerEvents},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.routerEvents.next(t)},t.prototype.resetConfig=function(t){P(t),this.config=t},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){var n=void 0===e?{}:e,o=n.relativeTo,i=n.queryParams,s=n.fragment,a=n.preserveQueryParams,u=n.queryParamsHandling,c=n.preserveFragment;r.isDevMode()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=o||this.routerState.root,p=c?this.currentUrlTree.fragment:s,h=null;if(u)switch(u){case"merge":h=vr({},this.currentUrlTree.queryParams,i);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=i||null}else h=a?this.currentUrlTree.queryParams:i||null;return kt(l,this.currentUrlTree,t,h,p)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var r=t instanceof Ue?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(n,"imperative",e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),ve(t),"object"==typeof e.queryParams&&null!==e.queryParams&&(e.queryParams=this.removeEmptyProps(e.queryParams)),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){return this.urlSerializer.parse(t)},t.prototype.isActive=function(t,e){if(t instanceof Ue)return V(this.currentUrlTree,t,e);var r=this.urlSerializer.parse(t);return V(this.currentUrlTree,r,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce(function(e,r){var n=t[r];return null!==n&&void 0!==n&&(e[r]=n),e},{})},t.prototype.processNavigations=function(){var t=this;a.concatMap.call(this.navigations,function(e){return e?(t.executeScheduledNavigation(e),e.promise.catch(function(){})):s.of(null)}).subscribe(function(){})},t.prototype.scheduleNavigation=function(t,e,r){var n=this.navigations.value;if(n&&"imperative"!==e&&"imperative"===n.source&&n.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(n&&"hashchange"==e&&"popstate"===n.source&&n.rawUrl.toString()===t.toString())return Promise.resolve(!0);var o=null,i=null,s=new Promise(function(t,e){o=t,i=e}),a=++this.navigationId;return this.navigations.next({id:a,source:e,rawUrl:t,extras:r,resolve:o,reject:i,promise:s}),s.catch(function(t){return Promise.reject(t)})},t.prototype.executeScheduledNavigation=function(t){var e=this,r=t.id,n=t.rawUrl,o=t.extras,i=t.resolve,s=t.reject,a=this.urlHandlingStrategy.extract(n),u=!this.navigated||a.toString()!==this.currentUrlTree.toString();u&&this.urlHandlingStrategy.shouldProcessUrl(n)?(this.routerEvents.next(new Oe(r,this.serializeUrl(a))),Promise.resolve().then(function(t){return e.runNavigate(a,n,!!o.skipLocationChange,!!o.replaceUrl,r,null)}).then(i,s)):u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)?(this.routerEvents.next(new Oe(r,this.serializeUrl(a))),Promise.resolve().then(function(t){return e.runNavigate(a,n,!1,!1,r,bt(a,e.rootComponentType).snapshot)}).then(i,s)):(this.rawUrlTree=n,i(null))},t.prototype.runNavigate=function(t,e,r,n,o,i){var a=this;return o!==this.navigationId?(this.location.go(this.urlSerializer.serialize(this.currentUrlTree)),this.routerEvents.next(new Re(o,this.serializeUrl(t),"Navigation ID "+o+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(u,c){var h;if(i)h=s.of({appliedUrl:t,snapshot:i});else{var f=at(a.ngModule.injector,a.configLoader,a.urlSerializer,t,a.config);h=p.mergeMap.call(f,function(e){return l.map.call(Kt(a.rootComponentType,a.config,e,a.serializeUrl(e)),function(r){return a.routerEvents.next(new Ne(o,a.serializeUrl(t),a.serializeUrl(e),r)),{appliedUrl:e,snapshot:r}})})}var d,m,y=p.mergeMap.call(h,function(t){return l.map.call(a.hooks.beforePreactivation(t.snapshot),function(){return t})}),v=l.map.call(y,function(t){var e=t.appliedUrl,r=t.snapshot,n=a.ngModule.injector;return(d=new Cr(r,a.currentRouterState.snapshot,n)).traverse(a.outletMap),{appliedUrl:e,snapshot:r}}),g=p.mergeMap.call(v,function(t){var e=t.appliedUrl,r=t.snapshot;return a.navigationId!==o?s.of(!1):l.map.call(d.checkGuards(),function(t){return{appliedUrl:e,snapshot:r,shouldActivate:t}})}),_=p.mergeMap.call(g,function(t){return a.navigationId!==o?s.of(!1):t.shouldActivate?l.map.call(d.resolveData(),function(){return t}):s.of(t)}),b=p.mergeMap.call(_,function(t){return l.map.call(a.hooks.afterPreactivation(t.snapshot),function(){return t})}),w=l.map.call(b,function(t){var e=t.appliedUrl,r=t.snapshot,n=t.shouldActivate;return n?{appliedUrl:e,state:Tt(a.routeReuseStrategy,r,a.currentRouterState),shouldActivate:n}:{appliedUrl:e,state:null,shouldActivate:n}}),C=a.currentRouterState,E=a.currentUrlTree;w.forEach(function(t){var i=t.appliedUrl,s=t.state;if(t.shouldActivate&&o===a.navigationId){if(a.currentUrlTree=i,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.currentRouterState=s,!r){var u=a.urlSerializer.serialize(a.rawUrlTree);a.location.isCurrentPathEqualTo(u)||n?a.location.replaceState(u):a.location.go(u)}new Er(a.routeReuseStrategy,s,C).activate(a.outletMap),m=!0}else m=!1}).then(function(){m?(a.navigated=!0,a.routerEvents.next(new Me(o,a.serializeUrl(t),a.serializeUrl(a.currentUrlTree))),u(!0)):(a.resetUrlToCurrentUrlTree(),a.routerEvents.next(new Re(o,a.serializeUrl(t),"")),u(!1))},function(r){if(S(r))a.resetUrlToCurrentUrlTree(),a.navigated=!0,a.routerEvents.next(new Re(o,a.serializeUrl(t),r.message)),u(!1);else{a.routerEvents.next(new ke(o,a.serializeUrl(t),r));try{u(a.errorHandler(r))}catch(t){c(t)}}a.currentRouterState=C,a.currentUrlTree=E,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.location.replaceState(a.serializeUrl(a.rawUrlTree))})})},t.prototype.resetUrlToCurrentUrlTree=function(){var t=this.urlSerializer.serialize(this.rawUrlTree);this.location.replaceState(t)},t}(),br=function(){function t(t){this.path=t}return Object.defineProperty(t.prototype,"route",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t}(),wr=function(){function t(t,e){this.component=t,this.route=e}return t}(),Cr=function(){function t(t,e,r){this.future=t,this.curr=e,this.moduleInjector=r,this.canActivateChecks=[],this.canDeactivateChecks=[]}return t.prototype.traverse=function(t){var e=this.future._root,r=this.curr?this.curr._root:null;this.traverseChildRoutes(e,r,t,[e.value])},t.prototype.checkGuards=function(){var t=this;if(0===this.canDeactivateChecks.length&&0===this.canActivateChecks.length)return s.of(!0);var e=this.runCanDeactivateChecks();return p.mergeMap.call(e,function(e){return e?t.runCanActivateChecks():s.of(!1)})},t.prototype.resolveData=function(){var t=this;if(0===this.canActivateChecks.length)return s.of(null);var e=i.from(this.canActivateChecks),r=a.concatMap.call(e,function(e){return t.runResolve(e.route)});return h.reduce.call(r,function(t,e){return t})},t.prototype.traverseChildRoutes=function(t,e,r,n){var o=this,i=me(e);t.children.forEach(function(t){o.traverseRoutes(t,i[t.value.outlet],r,n.concat([t.value])),delete i[t.value.outlet]}),N(i,function(t,e){return o.deactiveRouteAndItsChildren(t,r._outlets[e])})},t.prototype.traverseRoutes=function(t,e,r,n){var o=t.value,i=e?e.value:null,s=r?r._outlets[t.value.outlet]:null;i&&o._routeConfig===i._routeConfig?(this.shouldRunGuardsAndResolvers(i,o,o._routeConfig.runGuardsAndResolvers)?(this.canActivateChecks.push(new br(n)),this.canDeactivateChecks.push(new wr(s.component,i))):(o.data=i.data,o._resolvedData=i._resolvedData),o.component?this.traverseChildRoutes(t,e,s?s.outletMap:null,n):this.traverseChildRoutes(t,e,r,n)):(i&&this.deactiveRouteAndItsChildren(e,s),this.canActivateChecks.push(new br(n)),o.component?this.traverseChildRoutes(t,null,s?s.outletMap:null,n):this.traverseChildRoutes(t,null,r,n))},t.prototype.shouldRunGuardsAndResolvers=function(t,e,r){switch(r){case"always":return!0;case"paramsOrQueryParamsChange":return!Pt(t,e)||!M(t.queryParams,e.queryParams);case"paramsChange":default:return!Pt(t,e)}},t.prototype.deactiveRouteAndItsChildren=function(t,e){var r=this,n=me(t),o=t.value;N(n,function(t,n){o.component?e?r.deactiveRouteAndItsChildren(t,e.outletMap._outlets[n]):r.deactiveRouteAndItsChildren(t,null):r.deactiveRouteAndItsChildren(t,e)}),o.component&&e&&e.isActivated?this.canDeactivateChecks.push(new wr(e.component,o)):this.canDeactivateChecks.push(new wr(null,o))},t.prototype.runCanDeactivateChecks=function(){var t=this,e=i.from(this.canDeactivateChecks),r=p.mergeMap.call(e,function(e){return t.runCanDeactivate(e.component,e.route)});return u.every.call(r,function(t){return!0===t})},t.prototype.runCanActivateChecks=function(){var t=this,e=i.from(this.canActivateChecks),r=p.mergeMap.call(e,function(e){return j(i.from([t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))});return u.every.call(r,function(t){return!0===t})},t.prototype.runCanActivate=function(t){var e=this,r=t._routeConfig?t._routeConfig.canActivate:null;return r&&0!==r.length?j(l.map.call(i.from(r),function(r){var n,o=e.getToken(r,t);return n=D(o.canActivate?o.canActivate(t,e.future):o(t,e.future)),c.first.call(n)})):s.of(!0)},t.prototype.runCanActivateChild=function(t){var e=this,r=t[t.length-1],n=t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t});return j(l.map.call(i.from(n),function(t){return j(l.map.call(i.from(t.guards),function(n){var o,i=e.getToken(n,t.node);return o=D(i.canActivateChild?i.canActivateChild(r,e.future):i(r,e.future)),c.first.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 r=this,n=e&&e._routeConfig?e._routeConfig.canDeactivate:null;if(!n||0===n.length)return s.of(!0);var o=p.mergeMap.call(i.from(n),function(n){var o,i=r.getToken(n,e);return o=D(i.canDeactivate?i.canDeactivate(t,e,r.curr,r.future):i(t,e,r.curr,r.future)),c.first.call(o)});return u.every.call(o,function(t){return!0===t})},t.prototype.runResolve=function(t){var e=t._resolve;return l.map.call(this.resolveNode(e,t),function(e){return t._resolvedData=e,t.data=vr({},t.data,Ct(t).resolve),null})},t.prototype.resolveNode=function(t,e){var r=this;return I(t,function(t,n){var o=r.getToken(n,e);return D(o.resolve?o.resolve(e,r.future):o(e,r.future))})},t.prototype.getToken=function(t,e){var r=de(e);return(r?r.module.injector:this.moduleInjector).get(t)},t}(),Er=function(){function t(t,e,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=r}return t.prototype.activate=function(t){var e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,t),xt(this.futureState.root),this.activateChildRoutes(e,r,t)},t.prototype.deactivateChildRoutes=function(t,e,r){var n=this,o=me(e);t.children.forEach(function(t){n.deactivateRoutes(t,o[t.value.outlet],r),delete o[t.value.outlet]}),N(o,function(t,e){return n.deactiveRouteAndItsChildren(t,r)})},t.prototype.activateChildRoutes=function(t,e,r){var n=this,o=me(e);t.children.forEach(function(t){n.activateRoutes(t,o[t.value.outlet],r)})},t.prototype.deactivateRoutes=function(t,e,r){var n=t.value,o=e?e.value:null;if(n===o)if(n.component){var i=ye(r,n);this.deactivateChildRoutes(t,e,i.outletMap)}else this.deactivateChildRoutes(t,e,r);else o&&this.deactiveRouteAndItsChildren(e,r)},t.prototype.activateRoutes=function(t,e,r){var n=t.value;if(n===(e?e.value:null))if(xt(n),n.component){o=ye(r,n);this.activateChildRoutes(t,e,o.outletMap)}else this.activateChildRoutes(t,e,r);else if(n.component){xt(n);var o=ye(r,t.value);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){var i=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),o.attach(i.componentRef,i.route.value),he(i.route)}else{var s=new dr;this.placeComponentIntoOutlet(s,n,o),this.activateChildRoutes(t,null,s)}}else xt(n),this.activateChildRoutes(t,null,r)},t.prototype.placeComponentIntoOutlet=function(t,e,r){var n=fe(e.snapshot),o=n?n.module.componentFactoryResolver:null;r.activateWith(e,o,t)},t.prototype.deactiveRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactiveRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var r=ye(e,t.value).detach();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t})},t.prototype.deactiveRouteAndOutlet=function(t,e){var r=this,n=me(t),o=null;try{o=ye(e,t.value)}catch(t){return}var i=o.outletMap;N(n,function(n,o){t.value.component?r.deactiveRouteAndItsChildren(n,i):r.deactiveRouteAndItsChildren(n,e)}),o&&o.isActivated&&o.deactivate()},t}(),Sr=function(){function t(t,e,r,n,o){this.router=t,this.route=e,this.commands=[],null==r&&n.setElementAttribute(o.nativeElement,"tabindex","0")}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){r.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){var t={skipLocationChange:ge(this.skipLocationChange),replaceUrl:ge(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ge(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ge(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();Sr.decorators=[{type:r.Directive,args:[{selector:":not(a)[routerLink]"}]}],Sr.ctorParameters=function(){return[{type:_r},{type:or},{type:void 0,decorators:[{type:r.Attribute,args:["tabindex"]}]},{type:r.Renderer},{type:r.ElementRef}]},Sr.propDecorators={queryParams:[{type:r.Input}],fragment:[{type:r.Input}],queryParamsHandling:[{type:r.Input}],preserveFragment:[{type:r.Input}],skipLocationChange:[{type:r.Input}],replaceUrl:[{type:r.Input}],routerLink:[{type:r.Input}],preserveQueryParams:[{type:r.Input}],onClick:[{type:r.HostListener,args:["click"]}]};var xr=function(){function t(t,e,r){var n=this;this.router=t,this.route=e,this.locationStrategy=r,this.commands=[],this.subscription=t.events.subscribe(function(t){t instanceof Me&&n.updateTargetUrlAndHref()})}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){r.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onClick=function(t,e,r){if(0!==t||e||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var n={skipLocationChange:ge(this.skipLocationChange),replaceUrl:ge(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,n),!1},t.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ge(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ge(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();xr.decorators=[{type:r.Directive,args:[{selector:"a[routerLink]"}]}],xr.ctorParameters=function(){return[{type:_r},{type:or},{type:e.LocationStrategy}]},xr.propDecorators={target:[{type:r.HostBinding,args:["attr.target"]},{type:r.Input}],queryParams:[{type:r.Input}],fragment:[{type:r.Input}],queryParamsHandling:[{type:r.Input}],preserveFragment:[{type:r.Input}],skipLocationChange:[{type:r.Input}],replaceUrl:[{type:r.Input}],href:[{type:r.HostBinding}],routerLink:[{type:r.Input}],preserveQueryParams:[{type:r.Input}],onClick:[{type:r.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey"]]}]};var Pr=function(){function t(t,e,r,n){var o=this;this.router=t,this.element=e,this.renderer=r,this.cdr=n,this.classes=[],this.active=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(function(t){t instanceof Me&&o.update()})}return Object.defineProperty(t.prototype,"isActive",{get:function(){return this.active},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this.links.changes.subscribe(function(e){return t.update()}),this.linksWithHrefs.changes.subscribe(function(e){return t.update()}),this.update()},Object.defineProperty(t.prototype,"routerLinkActive",{set:function(t){var e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(function(t){return!!t})},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.update()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.update=function(){var t=this;if(this.links&&this.linksWithHrefs&&this.router.navigated){var e=this.hasActiveLinks();this.active!==e&&(this.classes.forEach(function(r){return t.renderer.setElementClass(t.element.nativeElement,r,e)}),Promise.resolve(e).then(function(e){return t.active=e}))}},t.prototype.isLinkActive=function(t){var e=this;return function(r){return t.isActive(r.urlTree,e.routerLinkActiveOptions.exact)}},t.prototype.hasActiveLinks=function(){return this.links.some(this.isLinkActive(this.router))||this.linksWithHrefs.some(this.isLinkActive(this.router))},t}();Pr.decorators=[{type:r.Directive,args:[{selector:"[routerLinkActive]",exportAs:"routerLinkActive"}]}],Pr.ctorParameters=function(){return[{type:_r},{type:r.ElementRef},{type:r.Renderer},{type:r.ChangeDetectorRef}]},Pr.propDecorators={links:[{type:r.ContentChildren,args:[Sr,{descendants:!0}]}],linksWithHrefs:[{type:r.ContentChildren,args:[xr,{descendants:!0}]}],routerLinkActiveOptions:[{type:r.Input}],routerLinkActive:[{type:r.Input}]};var Tr=function(){function t(t,e,n,o){this.parentOutletMap=t,this.location=e,this.resolver=n,this.name=o,this.activateEvents=new r.EventEmitter,this.deactivateEvents=new r.EventEmitter,t.registerOutlet(o||De,this)}return t.prototype.ngOnDestroy=function(){this.parentOutletMap.removeOutlet(this.name?this.name:De)},Object.defineProperty(t.prototype,"locationInjector",{get:function(){return this.location.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locationFactoryResolver",{get:function(){return this.resolver},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),t.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t},t.prototype.attach=function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)},t.prototype.deactivate=function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}},t.prototype.activate=function(t,e,n,o,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this.outletMap=i,this._activatedRoute=t;var s=t._futureSnapshot._routeConfig.component,a=e.resolveComponentFactory(s),u=r.ReflectiveInjector.fromResolvedProviders(o,n);this.activated=this.location.createComponent(a,this.location.length,u,[]),this.activated.changeDetectorRef.detectChanges(),this.activateEvents.emit(this.activated.instance)},t.prototype.activateWith=function(t,e,r){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this.outletMap=r,this._activatedRoute=t;var n=t._futureSnapshot._routeConfig.component,o=(e=e||this.resolver).resolveComponentFactory(n),i=new Ar(t,r,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,i,[]),this.activated.changeDetectorRef.detectChanges(),this.activateEvents.emit(this.activated.instance)},t}();Tr.decorators=[{type:r.Directive,args:[{selector:"router-outlet"}]}],Tr.ctorParameters=function(){return[{type:dr},{type:r.ViewContainerRef},{type:r.ComponentFactoryResolver},{type:void 0,decorators:[{type:r.Attribute,args:["name"]}]}]},Tr.propDecorators={activateEvents:[{type:r.Output,args:["activate"]}],deactivateEvents:[{type:r.Output,args:["deactivate"]}]};var Ar=function(){function t(t,e,r){this.route=t,this.map=e,this.parent=r}return t.prototype.get=function(t,e){return t===or?this.route:t===dr?this.map:this.parent.get(t,e)},t}(),Or=function(){function t(){}return t.prototype.shouldDetach=function(t){},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){},t.prototype.retrieve=function(t){},t.prototype.shouldReuseRoute=function(t,e){},t}(),Mr=function(){function t(){}return t.prototype.preload=function(t,e){},t}(),Rr=function(){function t(){}return t.prototype.preload=function(t,e){return d._catch.call(e(),function(){return s.of(null)})},t}(),kr=function(){function t(){}return t.prototype.preload=function(t,e){return s.of(null)},t}(),Nr=function(){function t(t,e,r,n,o){this.router=t,this.injector=n,this.preloadingStrategy=o;var i=function(e){return t.triggerEvent(new Ie(e))},s=function(e){return t.triggerEvent(new je(e))};this.loader=new fr(e,r,i,s)}return t.prototype.setUpPreloading=function(){var t=this,e=w.filter.call(this.router.events,function(t){return t instanceof Me});this.subscription=a.concatMap.call(e,function(){return t.preload()}).subscribe(function(){})},t.prototype.preload=function(){var t=this.injector.get(r.NgModuleRef);return this.processRoutes(t,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){for(var r=[],n=0,o=e;n<o.length;n++){var s=o[n];if(s.loadChildren&&!s.canLoad&&s._loadedConfig){var a=s._loadedConfig;r.push(this.processRoutes(a.module,a.routes))}else s.loadChildren&&!s.canLoad?r.push(this.preloadConfig(t,s)):s.children&&r.push(this.processRoutes(t,s.children))}return _.mergeAll.call(i.from(r))},t.prototype.preloadConfig=function(t,e){var r=this;return this.preloadingStrategy.preload(e,function(){var n=r.loader.load(t.injector,e);return p.mergeMap.call(n,function(t){return e._loadedConfig=t,r.processRoutes(t.module,t.routes)})})},t}();Nr.decorators=[{type:r.Injectable}],Nr.ctorParameters=function(){return[{type:_r},{type:r.NgModuleFactoryLoader},{type:r.Compiler},{type:r.Injector},{type:Mr}]};var Ir=[Tr,Sr,xr,Pr],jr=new r.InjectionToken("ROUTER_CONFIGURATION"),Dr=new r.InjectionToken("ROUTER_FORROOT_GUARD"),Lr=[e.Location,{provide:qe,useClass:Ge},{provide:_r,useFactory:Ee,deps:[r.ApplicationRef,qe,dr,e.Location,r.Injector,r.NgModuleFactoryLoader,r.Compiler,hr,jr,[mr,new r.Optional],[Or,new r.Optional]]},dr,{provide:or,useFactory:Se,deps:[_r]},{provide:r.NgModuleFactoryLoader,useClass:r.SystemJsNgModuleLoader},Nr,kr,Rr,{provide:jr,useValue:{enableTracing:!1}}],Vr=function(){function t(t,e){}return t.forRoot=function(n,o){return{ngModule:t,providers:[Lr,Ce(n),{provide:Dr,useFactory:we,deps:[[_r,new r.Optional,new r.SkipSelf]]},{provide:jr,useValue:o||{}},{provide:e.LocationStrategy,useFactory:be,deps:[e.PlatformLocation,[new r.Inject(e.APP_BASE_HREF),new r.Optional],jr]},{provide:Mr,useExisting:o&&o.preloadingStrategy?o.preloadingStrategy:kr},{provide:r.NgProbeToken,multi:!0,useFactory:_e},Te()]}},t.forChild=function(e){return{ngModule:t,providers:[Ce(e)]}},t}();Vr.decorators=[{type:r.NgModule,args:[{declarations:Ir,exports:Ir}]}],Vr.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Optional},{type:r.Inject,args:[Dr]}]},{type:_r,decorators:[{type:r.Optional}]}]};var Fr=function(){function t(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new o.Subject}return t.prototype.appInitializer=function(){var t=this;return this.injector.get(e.LOCATION_INITIALIZED,Promise.resolve(null)).then(function(){var e=null,r=new Promise(function(t){return e=t}),n=t.injector.get(_r),o=t.injector.get(jr);if(t.isLegacyDisabled(o)||t.isLegacyEnabled(o))e(!0);else if("disabled"===o.initialNavigation)n.setUpLocationChangeListener(),e(!0);else{if("enabled"!==o.initialNavigation)throw new Error("Invalid initialNavigation options: '"+o.initialNavigation+"'");n.hooks.afterPreactivation=function(){return t.initNavigation?s.of(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},n.initialNavigation()}return r})},t.prototype.bootstrapListener=function(t){var e=this.injector.get(jr),n=this.injector.get(Nr),o=this.injector.get(_r),i=this.injector.get(r.ApplicationRef);t===i.components[0]&&(this.isLegacyEnabled(e)?o.initialNavigation():this.isLegacyDisabled(e)&&o.setUpLocationChangeListener(),n.setUpPreloading(),o.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},t.prototype.isLegacyEnabled=function(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation},t.prototype.isLegacyDisabled=function(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation},t}();Fr.decorators=[{type:r.Injectable}],Fr.ctorParameters=function(){return[{type:r.Injector}]};var Ur=new r.InjectionToken("Router Initializer"),Br=new r.Version("4.1.3");t.RouterLink=Sr,t.RouterLinkWithHref=xr,t.RouterLinkActive=Pr,t.RouterOutlet=Tr,t.NavigationCancel=Re,t.NavigationEnd=Me,t.NavigationError=ke,t.NavigationStart=Oe,t.RouteConfigLoadEnd=je,t.RouteConfigLoadStart=Ie,t.RoutesRecognized=Ne,t.RouteReuseStrategy=Or,t.Router=_r,t.ROUTES=hr,t.ROUTER_CONFIGURATION=jr,t.ROUTER_INITIALIZER=Ur,t.RouterModule=Vr,t.provideRoutes=Ce,t.RouterOutletMap=dr,t.NoPreloading=kr,t.PreloadAllModules=Rr,t.PreloadingStrategy=Mr,t.RouterPreloader=Nr,t.ActivatedRoute=or,t.ActivatedRouteSnapshot=ir,t.RouterState=nr,t.RouterStateSnapshot=sr,t.PRIMARY_OUTLET=De,t.convertToParamMap=C,t.UrlHandlingStrategy=mr,t.DefaultUrlSerializer=Ge,t.UrlSegment=He,t.UrlSegmentGroup=Be,t.UrlSerializer=qe,t.UrlTree=Ue,t.VERSION=Br,t.ɵROUTER_PROVIDERS=Lr,t.ɵflatten=R,t.ɵa=Dr,t.ɵg=Fr,t.ɵh=xe,t.ɵi=Pe,t.ɵd=we,t.ɵc=be,t.ɵj=Te,t.ɵf=Se,t.ɵb=_e,t.ɵe=Ee,t.ɵk=tr,t.ɵl=er,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":18,"@angular/core":20,"@angular/platform-browser":24,"rxjs/BehaviorSubject":26,"rxjs/Observable":29,"rxjs/Subject":32,"rxjs/observable/from":47,"rxjs/observable/fromPromise":48,"rxjs/observable/of":50,"rxjs/operator/catch":51,"rxjs/operator/concatAll":52,"rxjs/operator/concatMap":53,"rxjs/operator/every":54,"rxjs/operator/filter":55,"rxjs/operator/first":56,"rxjs/operator/last":57,"rxjs/operator/map":58,"rxjs/operator/mergeAll":60,"rxjs/operator/mergeMap":61,"rxjs/operator/reduce":64,"rxjs/util/EmptyError":69}],26:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("./Subject"),i=t("./util/ObjectUnsubscribedError"),s=function(t){function e(e){t.call(this),this._value=e}return n(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var r=t.prototype._subscribe.call(this,e);return r&&!r.closed&&e.next(this._value),r},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.ObjectUnsubscribedError;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(o.Subject);r.BehaviorSubject=s},{"./Subject":32,"./util/ObjectUnsubscribedError":70}],27:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=function(t){function e(e,r,n){t.call(this),this.parent=e,this.outerValue=r,this.outerIndex=n,this.index=0}return n(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(t("./Subscriber").Subscriber);r.InnerSubscriber=o},{"./Subscriber":34}],28:[function(t,e,r){"use strict";var n=t("./Observable"),o=function(){function t(t,e,r){this.kind=t,this.value=e,this.error=r,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,r){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return r&&r()}},t.prototype.accept=function(t,e,r){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,r)},t.prototype.toObservable=function(){switch(this.kind){case"N":return n.Observable.of(this.value);case"E":return n.Observable.throw(this.error);case"C":return n.Observable.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):this.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return this.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();r.Notification=o},{"./Observable":29}],29:[function(t,e,r){"use strict";var n=t("./util/root"),o=t("./util/toSubscriber"),i=t("./symbol/observable"),s=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,i=o.toSubscriber(t,e,r);if(n?n.call(i,this.source):i.add(this._trySubscribe(i)),i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var r=this;if(e||(n.root.Rx&&n.root.Rx.config&&n.root.Rx.config.Promise?e=n.root.Rx.config.Promise:n.root.Promise&&(e=n.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,n){var o=r.subscribe(function(e){if(o)try{t(e)}catch(t){n(t),o.unsubscribe()}else t(e)},n,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[i.$$observable]=function(){return this},t.create=function(e){return new t(e)},t}();r.Observable=s},{"./symbol/observable":67,"./util/root":79,"./util/toSubscriber":81}],30:[function(t,e,r){"use strict";r.empty={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},{}],31:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=function(t){function e(){t.apply(this,arguments)}return n(e,t),e.prototype.notifyNext=function(t,e,r,n,o){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(t("./Subscriber").Subscriber);r.OuterSubscriber=o},{"./Subscriber":34}],32:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("./Observable"),i=t("./Subscriber"),s=t("./Subscription"),a=t("./util/ObjectUnsubscribedError"),u=t("./SubjectSubscription"),c=t("./symbol/rxSubscriber"),l=function(t){function e(e){t.call(this,e),this.destination=e}return n(e,t),e}(i.Subscriber);r.SubjectSubscriber=l;var p=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return n(e,t),e.prototype[c.$$rxSubscriber]=function(){return new l(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,r=e.length,n=e.slice(),o=0;o<r;o++)n[o].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,r=e.length,n=e.slice(),o=0;o<r;o++)n[o].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,r=t.slice(),n=0;n<e;n++)r[n].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new u.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new o.Observable;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(o.Observable);r.Subject=p;var h=function(t){function e(e,r){t.call(this),this.destination=e,this.source=r}return n(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):s.Subscription.EMPTY},e}(p);r.AnonymousSubject=h},{"./Observable":29,"./SubjectSubscription":33,"./Subscriber":34,"./Subscription":35,"./symbol/rxSubscriber":68,"./util/ObjectUnsubscribedError":70}],33:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=function(t){function e(e,r){t.call(this),this.subject=e,this.subscriber=r,this.closed=!1}return n(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var r=e.indexOf(this.subscriber);-1!==r&&e.splice(r,1)}}},e}(t("./Subscription").Subscription);r.SubjectSubscription=o},{"./Subscription":35}],34:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("./util/isFunction"),i=t("./Subscription"),s=t("./Observer"),a=t("./symbol/rxSubscriber"),u=function(t){function e(r,n,o){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!r){this.destination=s.empty;break}if("object"==typeof r){r instanceof e?(this.destination=r,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,r));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,r,n,o)}}return n(e,t),e.prototype[a.$$rxSubscriber]=function(){return this},e.create=function(t,r,n){var o=new e(t,r,n);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,e=t._parent,r=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=r,this},e}(i.Subscription);r.Subscriber=u;var c=function(t){function e(e,r,n,i){t.call(this),this._parentSubscriber=e;var s,a=this;o.isFunction(r)?s=r:r&&(a=r,s=r.next,n=r.error,i=r.complete,o.isFunction(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this)),this._context=a,this._next=s,this._error=n,this._complete=i}return n(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){if(!this.isStopped){var t=this._parentSubscriber;this._complete?t.syncErrorThrowable?(this.__tryOrSetError(t,this._complete),this.unsubscribe()):(this.__tryOrUnsub(this._complete),this.unsubscribe()):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,r){try{e.call(this._context,r)}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}(u)},{"./Observer":30,"./Subscription":35,"./symbol/rxSubscriber":68,"./util/isFunction":75}],35:[function(t,e,r){"use strict";function n(t){return t.reduce(function(t,e){return t.concat(e instanceof c.UnsubscriptionError?e.errors:e)},[])}var o=t("./util/isArray"),i=t("./util/isObject"),s=t("./util/isFunction"),a=t("./util/tryCatch"),u=t("./util/errorObject"),c=t("./util/UnsubscriptionError"),l=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var r=this,l=r._parent,p=r._parents,h=r._unsubscribe,f=r._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var d=-1,m=p?p.length:0;l;)l.remove(this),l=++d<m&&p[d]||null;if(s.isFunction(h)&&(v=a.tryCatch(h).call(this))===u.errorObject&&(e=!0,t=t||(u.errorObject.e instanceof c.UnsubscriptionError?n(u.errorObject.e.errors):[u.errorObject.e])),o.isArray(f))for(d=-1,m=f.length;++d<m;){var y=f[d];if(i.isObject(y)){var v=a.tryCatch(y.unsubscribe).call(y);if(v===u.errorObject){e=!0,t=t||[];var g=u.errorObject.e;g instanceof c.UnsubscriptionError?t=t.concat(n(g.errors)):t.push(g)}}}if(e)throw new c.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var r=e;switch(typeof e){case"function":r=new t(e);case"object":if(r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if("function"!=typeof r._addParent){var n=r;(r=new t)._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(r),r._addParent(this),r},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},t.prototype._addParent=function(t){var e=this,r=e._parent,n=e._parents;r&&r!==t?n?-1===n.indexOf(t)&&n.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();r.Subscription=l},{"./util/UnsubscriptionError":71,"./util/errorObject":72,"./util/isArray":73,"./util/isFunction":75,"./util/isObject":76,"./util/tryCatch":82}],36:[function(t,e,r){"use strict";var n=t("../../Observable"),o=t("../../operator/map");n.Observable.prototype.map=o.map},{"../../Observable":29,"../../operator/map":58}],37:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Observable"),i=t("./ScalarObservable"),s=t("./EmptyObservable"),a=function(t){function e(e,r){t.call(this),this.arrayLike=e,this.scheduler=r,r||1!==e.length||(this._isScalar=!0,this.value=e[0])}return n(e,t),e.create=function(t,r){var n=t.length;return 0===n?new s.EmptyObservable:1===n?new i.ScalarObservable(t[0],r):new e(t,r)},e.dispatch=function(t){var e=t.arrayLike,r=t.index,n=t.length,o=t.subscriber;o.closed||(r>=n?o.complete():(o.next(e[r]),t.index=r+1,this.schedule(t)))},e.prototype._subscribe=function(t){var r=this,n=r.arrayLike,o=r.scheduler,i=n.length;if(o)return o.schedule(e.dispatch,0,{arrayLike:n,index:0,length:i,subscriber:t});for(var s=0;s<i&&!t.closed;s++)t.next(n[s]);t.complete()},e}(o.Observable);r.ArrayLikeObservable=a},{"../Observable":29,"./EmptyObservable":40,"./ScalarObservable":45}],38:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Observable"),i=t("./ScalarObservable"),s=t("./EmptyObservable"),a=t("../util/isScheduler"),u=function(t){function e(e,r){t.call(this),this.array=e,this.scheduler=r,r||1!==e.length||(this._isScalar=!0,this.value=e[0])}return n(e,t),e.create=function(t,r){return new e(t,r)},e.of=function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];var n=t[t.length-1];a.isScheduler(n)?t.pop():n=null;var o=t.length;return o>1?new e(t,n):1===o?new i.ScalarObservable(t[0],n):new s.EmptyObservable(n)},e.dispatch=function(t){var e=t.array,r=t.index,n=t.count,o=t.subscriber;r>=n?o.complete():(o.next(e[r]),o.closed||(t.index=r+1,this.schedule(t)))},e.prototype._subscribe=function(t){var r=this.array,n=r.length,o=this.scheduler;if(o)return o.schedule(e.dispatch,0,{array:r,index:0,count:n,subscriber:t});for(var i=0;i<n&&!t.closed;i++)t.next(r[i]);t.complete()},e}(o.Observable);r.ArrayObservable=u},{"../Observable":29,"../util/isScheduler":78,"./EmptyObservable":40,"./ScalarObservable":45}],39:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subject"),i=t("../Observable"),s=t("../Subscriber"),a=t("../Subscription"),u=function(t){function e(e,r){t.call(this),this.source=e,this.subjectFactory=r,this._refCount=0}return n(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||((t=this._connection=new a.Subscription).add(this.source.subscribe(new c(this.getSubject(),this))),t.closed?(this._connection=null,t=a.Subscription.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return this.lift(new l(this))},e}(i.Observable);r.ConnectableObservable=u,r.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subscribe:{value:u.prototype._subscribe},getSubject:{value:u.prototype.getSubject},connect:{value:u.prototype.connect},refCount:{value:u.prototype.refCount}};var c=function(t){function e(e,r){t.call(this,e),this.connectable=r}return n(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){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.SubjectSubscriber),l=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var r=this.connectable;r._refCount++;var n=new p(t,r),o=e.subscribe(n);return n.closed||(n.connection=r.connect()),o},t}(),p=function(t){function e(e,r){t.call(this,e),this.connectable=r}return n(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 r=this.connection,n=t._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null},e}(s.Subscriber)},{"../Observable":29,"../Subject":32,"../Subscriber":34,"../Subscription":35}],40:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=function(t){function e(e){t.call(this),this.scheduler=e}return n(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(t("../Observable").Observable);r.EmptyObservable=o},{"../Observable":29}],41:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Observable"),i=t("./EmptyObservable"),s=t("../util/isArray"),a=t("../util/subscribeToResult"),u=t("../OuterSubscriber"),c=function(t){function e(e,r){t.call(this),this.sources=e,this.resultSelector=r}return n(e,t),e.create=function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];if(null===t||0===arguments.length)return new i.EmptyObservable;var n=null;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&s.isArray(t[0])&&(t=t[0]),0===t.length?new i.EmptyObservable:new e(t,n)},e.prototype._subscribe=function(t){return new l(t,this.sources,this.resultSelector)},e}(o.Observable);r.ForkJoinObservable=c;var l=function(t){function e(e,r,n){t.call(this,e),this.sources=r,this.resultSelector=n,this.completed=0,this.haveValues=0;var o=r.length;this.total=o,this.values=new Array(o);for(var i=0;i<o;i++){var s=r[i],u=a.subscribeToResult(this,s,null,i);u&&(u.outerIndex=i,this.add(u))}}return n(e,t),e.prototype.notifyNext=function(t,e,r,n,o){this.values[r]=e,o._hasValue||(o._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,r=this,n=r.haveValues,o=r.resultSelector,i=r.values,s=i.length;if(t._hasValue){if(++this.completed===s){if(n===s){var a=o?o.apply(this,i):i;e.next(a)}e.complete()}}else e.complete()},e}(u.OuterSubscriber)},{"../Observable":29,"../OuterSubscriber":31,"../util/isArray":73,"../util/subscribeToResult":80,"./EmptyObservable":40}],42:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../util/isArray"),i=t("../util/isArrayLike"),s=t("../util/isPromise"),a=t("./PromiseObservable"),u=t("./IteratorObservable"),c=t("./ArrayObservable"),l=t("./ArrayLikeObservable"),p=t("../symbol/iterator"),h=t("../Observable"),f=t("../operator/observeOn"),d=t("../symbol/observable"),m=function(t){function e(e,r){t.call(this,null),this.ish=e,this.scheduler=r}return n(e,t),e.create=function(t,r){if(null!=t){if("function"==typeof t[d.$$observable])return t instanceof h.Observable&&!r?t:new e(t,r);if(o.isArray(t))return new c.ArrayObservable(t,r);if(s.isPromise(t))return new a.PromiseObservable(t,r);if("function"==typeof t[p.$$iterator]||"string"==typeof t)return new u.IteratorObservable(t,r);if(i.isArrayLike(t))return new l.ArrayLikeObservable(t,r)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")},e.prototype._subscribe=function(t){var e=this.ish,r=this.scheduler;return null==r?e[d.$$observable]().subscribe(t):e[d.$$observable]().subscribe(new f.ObserveOnSubscriber(t,r,0))},e}(h.Observable);r.FromObservable=m},{"../Observable":29,"../operator/observeOn":63,"../symbol/iterator":66,"../symbol/observable":67,"../util/isArray":73,"../util/isArrayLike":74,"../util/isPromise":77,"./ArrayLikeObservable":37,"./ArrayObservable":38,"./IteratorObservable":43,"./PromiseObservable":44}],43:[function(t,e,r){"use strict";function n(t){var e=t[l.$$iterator];if(!e&&"string"==typeof t)return new h(t);if(!e&&void 0!==t.length)return new f(t);if(!e)throw new TypeError("object is not iterable");return t[l.$$iterator]()}function o(t){var e=+t.length;return isNaN(e)?0:0!==e&&i(e)?(e=s(e)*Math.floor(Math.abs(e)),e<=0?0:e>d?d:e):e}function i(t){return"number"==typeof t&&u.root.isFinite(t)}function s(t){var e=+t;return 0===e?e:isNaN(e)?e:e<0?-1:1}var a=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},u=t("../util/root"),c=t("../Observable"),l=t("../symbol/iterator"),p=function(t){function e(e,r){if(t.call(this),this.scheduler=r,null==e)throw new Error("iterator cannot be null.");this.iterator=n(e)}return a(e,t),e.create=function(t,r){return new e(t,r)},e.dispatch=function(t){var e=t.index,r=t.hasError,n=t.iterator,o=t.subscriber;if(r)o.error(t.error);else{var i=n.next();i.done?o.complete():(o.next(i.value),t.index=e+1,o.closed?"function"==typeof n.return&&n.return():this.schedule(t))}},e.prototype._subscribe=function(t){var r=this,n=r.iterator,o=r.scheduler;if(o)return o.schedule(e.dispatch,0,{index:0,iterator:n,subscriber:t});for(;;){var i=n.next();if(i.done){t.complete();break}if(t.next(i.value),t.closed){"function"==typeof n.return&&n.return();break}}},e}(c.Observable);r.IteratorObservable=p;var h=function(){function t(t,e,r){void 0===e&&(e=0),void 0===r&&(r=t.length),this.str=t,this.idx=e,this.len=r}return t.prototype[l.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},t}(),f=function(){function t(t,e,r){void 0===e&&(e=0),void 0===r&&(r=o(t)),this.arr=t,this.idx=e,this.len=r}return t.prototype[l.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},t}(),d=Math.pow(2,53)-1},{"../Observable":29,"../symbol/iterator":66,"../util/root":79}],44:[function(t,e,r){"use strict";function n(t){var e=t.value,r=t.subscriber;r.closed||(r.next(e),r.complete())}function o(t){var e=t.err,r=t.subscriber;r.closed||r.error(e)}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},s=t("../util/root"),a=function(t){function e(e,r){t.call(this),this.promise=e,this.scheduler=r}return i(e,t),e.create=function(t,r){return new e(t,r)},e.prototype._subscribe=function(t){var e=this,r=this.promise,i=this.scheduler;if(null==i)this._isScalar?t.closed||(t.next(this.value),t.complete()):r.then(function(r){e.value=r,e._isScalar=!0,t.closed||(t.next(r),t.complete())},function(e){t.closed||t.error(e)}).then(null,function(t){s.root.setTimeout(function(){throw t})});else if(this._isScalar){if(!t.closed)return i.schedule(n,0,{value:this.value,subscriber:t})}else r.then(function(r){e.value=r,e._isScalar=!0,t.closed||t.add(i.schedule(n,0,{value:r,subscriber:t}))},function(e){t.closed||t.add(i.schedule(o,0,{err:e,subscriber:t}))}).then(null,function(t){s.root.setTimeout(function(){throw t})})},e}(t("../Observable").Observable);r.PromiseObservable=a},{"../Observable":29,"../util/root":79}],45:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=function(t){function e(e,r){t.call(this),this.value=e,this.scheduler=r,this._isScalar=!0,r&&(this._isScalar=!1)}return n(e,t),e.create=function(t,r){return new e(t,r)},e.dispatch=function(t){var e=t.done,r=t.value,n=t.subscriber;e?n.complete():(n.next(r),n.closed||(t.done=!0,this.schedule(t)))},e.prototype._subscribe=function(t){var r=this.value,n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{done:!1,value:r,subscriber:t});t.next(r),t.closed||t.complete()},e}(t("../Observable").Observable);r.ScalarObservable=o},{"../Observable":29}],46:[function(t,e,r){"use strict";var n=t("./ForkJoinObservable");r.forkJoin=n.ForkJoinObservable.create},{"./ForkJoinObservable":41}],47:[function(t,e,r){"use strict";var n=t("./FromObservable");r.from=n.FromObservable.create},{"./FromObservable":42}],48:[function(t,e,r){"use strict";var n=t("./PromiseObservable");r.fromPromise=n.PromiseObservable.create},{"./PromiseObservable":44}],49:[function(t,e,r){"use strict";var n=t("../operator/merge");r.merge=n.mergeStatic},{"../operator/merge":59}],50:[function(t,e,r){"use strict";var n=t("./ArrayObservable");r.of=n.ArrayObservable.of},{"./ArrayObservable":38}],51:[function(t,e,r){"use strict";function n(t){var e=new a(t),r=this.lift(e);return e.caught=r}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../OuterSubscriber"),s=t("../util/subscribeToResult");r._catch=n;var a=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.selector,this.caught))},t}(),u=function(t){function e(e,r,n){t.call(this,e),this.selector=r,this.caught=n}return o(e,t),e.prototype.error=function(e){if(!this.isStopped){var r=void 0;try{r=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(s.subscribeToResult(this,r))}},e}(i.OuterSubscriber)},{"../OuterSubscriber":31,"../util/subscribeToResult":80}],52:[function(t,e,r){"use strict";function n(){return this.lift(new o.MergeAllOperator(1))}var o=t("./mergeAll");r.concatAll=n},{"./mergeAll":60}],53:[function(t,e,r){"use strict";function n(t,e){return this.lift(new o.MergeMapOperator(t,e,1))}var o=t("./mergeMap");r.concatMap=n},{"./mergeMap":61}],54:[function(t,e,r){"use strict";function n(t,e){return this.lift(new s(t,e,this))}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");r.every=n;var s=function(){function t(t,e,r){this.predicate=t,this.thisArg=e,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg,this.source))},t}(),a=function(t){function e(e,r,n,o){t.call(this,e),this.predicate=r,this.thisArg=n,this.source=o,this.index=0,this.thisArg=n||this}return o(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(i.Subscriber)},{"../Subscriber":34}],55:[function(t,e,r){"use strict";function n(t,e){return this.lift(new s(t,e))}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");r.filter=n;var s=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg))},t}(),a=function(t){function e(e,r,n){t.call(this,e),this.predicate=r,this.thisArg=n,this.count=0,this.predicate=r}return o(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(i.Subscriber)},{"../Subscriber":34}],56:[function(t,e,r){"use strict";function n(t,e,r){return this.lift(new a(t,e,r,this))}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),s=t("../util/EmptyError");r.first=n;var a=function(){function t(t,e,r,n){this.predicate=t,this.resultSelector=e,this.defaultValue=r,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,r,n,o,i){t.call(this,e),this.predicate=r,this.resultSelector=n,this.defaultValue=o,this.source=i,this.index=0,this.hasCompleted=!1,this._emitted=!1}return o(e,t),e.prototype._next=function(t){var e=this.index++;this.predicate?this._tryPredicate(t,e):this._emit(t,e)},e.prototype._tryPredicate=function(t,e){var r;try{r=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}r&&this._emit(t,e)},e.prototype._emit=function(t,e){this.resultSelector?this._tryResultSelector(t,e):this._emitFinal(t)},e.prototype._tryResultSelector=function(t,e){var r;try{r=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this._emitFinal(r)},e.prototype._emitFinal=function(t){var e=this.destination;this._emitted||(this._emitted=!0,e.next(t),e.complete(),this.hasCompleted=!0)},e.prototype._complete=function(){var t=this.destination;this.hasCompleted||void 0===this.defaultValue?this.hasCompleted||t.error(new s.EmptyError):(t.next(this.defaultValue),t.complete())},e}(i.Subscriber)},{"../Subscriber":34,"../util/EmptyError":69}],57:[function(t,e,r){"use strict";function n(t,e,r){return this.lift(new a(t,e,r,this))}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),s=t("../util/EmptyError");r.last=n;var a=function(){function t(t,e,r,n){this.predicate=t,this.resultSelector=e,this.defaultValue=r,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,r,n,o,i){t.call(this,e),this.predicate=r,this.resultSelector=n,this.defaultValue=o,this.source=i,this.hasValue=!1,this.index=0,void 0!==o&&(this.lastValue=o,this.hasValue=!0)}return o(e,t),e.prototype._next=function(t){var e=this.index++;if(this.predicate)this._tryPredicate(t,e);else{if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryPredicate=function(t,e){var r;try{r=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}if(r){if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryResultSelector=function(t,e){var r;try{r=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this.lastValue=r,this.hasValue=!0},e.prototype._complete=function(){var t=this.destination;this.hasValue?(t.next(this.lastValue),t.complete()):t.error(new s.EmptyError)},e}(i.Subscriber)},{"../Subscriber":34,"../util/EmptyError":69}],58:[function(t,e,r){"use strict";function n(t,e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new s(t,e))}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");r.map=n;var s=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.thisArg))},t}();r.MapOperator=s;var a=function(t){function e(e,r,n){t.call(this,e),this.project=r,this.count=0,this.thisArg=n||this}return o(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.Subscriber)},{"../Subscriber":34}],59:[function(t,e,r){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return this.lift.call(o.apply(void 0,[this].concat(t)))}function o(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=Number.POSITIVE_INFINITY,n=null,o=t[t.length-1];return u.isScheduler(o)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof o&&(r=t.pop()),null===n&&1===t.length&&t[0]instanceof i.Observable?t[0]:new s.ArrayObservable(t,n).lift(new a.MergeAllOperator(r))}var i=t("../Observable"),s=t("../observable/ArrayObservable"),a=t("./mergeAll"),u=t("../util/isScheduler");r.merge=n,r.mergeStatic=o},{"../Observable":29,"../observable/ArrayObservable":38,"../util/isScheduler":78,"./mergeAll":60}],60:[function(t,e,r){"use strict";function n(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),this.lift(new a(t))}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../OuterSubscriber"),s=t("../util/subscribeToResult");r.mergeAll=n;var a=function(){function t(t){this.concurrent=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.concurrent))},t}();r.MergeAllOperator=a;var u=function(t){function e(e,r){t.call(this,e),this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0}return o(e,t),e.prototype._next=function(t){this.active<this.concurrent?(this.active++,this.add(s.subscribeToResult(this,t))):this.buffer.push(t)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(i.OuterSubscriber);r.MergeAllSubscriber=u},{"../OuterSubscriber":31,"../util/subscribeToResult":80}],61:[function(t,e,r){"use strict";function n(t,e,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"number"==typeof e&&(r=e,e=null),this.lift(new a(t,e,r))}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/subscribeToResult"),s=t("../OuterSubscriber");r.mergeMap=n;var a=function(){function t(t,e,r){void 0===r&&(r=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector,this.concurrent))},t}();r.MergeMapOperator=a;var u=function(t){function e(e,r,n,o){void 0===o&&(o=Number.POSITIVE_INFINITY),t.call(this,e),this.project=r,this.resultSelector=n,this.concurrent=o,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return o(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,r)},e.prototype._innerSub=function(t,e,r){this.add(i.subscribeToResult(this,t,e,r))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,r,n,o){this.resultSelector?this._notifyResultSelector(t,e,r,n):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,r,n){var o;try{o=this.resultSelector(t,e,r,n)}catch(t){return void this.destination.error(t)}this.destination.next(o)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(s.OuterSubscriber);r.MergeMapSubscriber=u},{"../OuterSubscriber":31,"../util/subscribeToResult":80}],62:[function(t,e,r){"use strict";function n(t,e){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return this.lift(new i(r,e));var n=Object.create(this,o.connectableObservableDescriptor);return n.source=this,n.subjectFactory=r,n}var o=t("../observable/ConnectableObservable");r.multicast=n;var i=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var r=this.selector,n=this.subjectFactory(),o=r(n).subscribe(t);return o.add(e.subscribe(n)),o},t}();r.MulticastOperator=i},{"../observable/ConnectableObservable":39}],63:[function(t,e,r){"use strict";function n(t,e){return void 0===e&&(e=0),this.lift(new a(t,e))}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),s=t("../Notification");r.observeOn=n;var a=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.scheduler,this.delay))},t}();r.ObserveOnOperator=a;var u=function(t){function e(e,r,n){void 0===n&&(n=0),t.call(this,e),this.scheduler=r,this.delay=n}return o(e,t),e.dispatch=function(t){var e=t.notification,r=t.destination;e.observe(r),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new c(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(s.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(s.Notification.createError(t))},e.prototype._complete=function(){this.scheduleMessage(s.Notification.createComplete())},e}(i.Subscriber);r.ObserveOnSubscriber=u;var c=function(){function t(t,e){this.notification=t,this.destination=e}return t}();r.ObserveOnMessage=c},{"../Notification":28,"../Subscriber":34}],64:[function(t,e,r){"use strict";function n(t,e){var r=!1;return arguments.length>=2&&(r=!0),this.lift(new s(t,e,r))}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");r.reduce=n;var s=function(){function t(t,e,r){void 0===r&&(r=!1),this.accumulator=t,this.seed=e,this.hasSeed=r}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.accumulator,this.seed,this.hasSeed))},t}();r.ReduceOperator=s;var a=function(t){function e(e,r,n,o){t.call(this,e),this.accumulator=r,this.hasSeed=o,this.index=0,this.hasValue=!1,this.acc=n,this.hasSeed||this.index++}return o(e,t),e.prototype._next=function(t){this.hasValue||(this.hasValue=this.hasSeed)?this._tryReduce(t):(this.acc=t,this.hasValue=!0)},e.prototype._tryReduce=function(t){var e;try{e=this.accumulator(this.acc,t,this.index++)}catch(t){return void this.destination.error(t)}this.acc=e},e.prototype._complete=function(){(this.hasValue||this.hasSeed)&&this.destination.next(this.acc),this.destination.complete()},e}(i.Subscriber);r.ReduceSubscriber=a},{"../Subscriber":34}],65:[function(t,e,r){"use strict";function n(){return new s.Subject}function o(){return i.multicast.call(this,n).refCount()}var i=t("./multicast"),s=t("../Subject");r.share=o},{"../Subject":32,"./multicast":62}],66:[function(t,e,r){"use strict";function n(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var r=t.Set;if(r&&"function"==typeof(new r)["@@iterator"])return"@@iterator";var n=t.Map;if(n)for(var o=Object.getOwnPropertyNames(n.prototype),i=0;i<o.length;++i){var s=o[i];if("entries"!==s&&"size"!==s&&n.prototype[s]===n.prototype.entries)return s}return"@@iterator"}var o=t("../util/root");r.symbolIteratorPonyfill=n,r.$$iterator=n(o.root)},{"../util/root":79}],67:[function(t,e,r){"use strict";function n(t){var e,r=t.Symbol;return"function"==typeof r?r.observable?e=r.observable:(e=r("observable"),r.observable=e):e="@@observable",e}var o=t("../util/root");r.getSymbolObservable=n,r.$$observable=n(o.root)},{"../util/root":79}],68:[function(t,e,r){"use strict";var n=t("../util/root").root.Symbol;r.$$rxSubscriber="function"==typeof n&&"function"==typeof n.for?n.for("rxSubscriber"):"@@rxSubscriber"},{"../util/root":79}],69:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=function(t){function e(){var e=t.call(this,"no elements in sequence");this.name=e.name="EmptyError",this.stack=e.stack,this.message=e.message}return n(e,t),e}(Error);r.EmptyError=o},{}],70:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},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 n(e,t),e}(Error);r.ObjectUnsubscribedError=o},{}],71:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=function(t){function e(e){t.call(this),this.errors=e;var r=Error.call(this,e?e.length+" errors occurred during unsubscription:\n  "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n  "):"");this.name=r.name="UnsubscriptionError",this.stack=r.stack,this.message=r.message}return n(e,t),e}(Error);r.UnsubscriptionError=o},{}],72:[function(t,e,r){"use strict";r.errorObject={e:{}}},{}],73:[function(t,e,r){"use strict";r.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},{}],74:[function(t,e,r){"use strict";r.isArrayLike=function(t){return t&&"number"==typeof t.length}},{}],75:[function(t,e,r){"use strict";function n(t){return"function"==typeof t}r.isFunction=n},{}],76:[function(t,e,r){"use strict";function n(t){return null!=t&&"object"==typeof t}r.isObject=n},{}],77:[function(t,e,r){"use strict";function n(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}r.isPromise=n},{}],78:[function(t,e,r){"use strict";function n(t){return t&&"function"==typeof t.schedule}r.isScheduler=n},{}],79:[function(t,e,r){(function(t){"use strict";if(r.root="object"==typeof window&&window.window===window&&window||"object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t,!r.root)throw new Error("RxJS could not find any global context (window, self, global)")}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],80:[function(t,e,r){"use strict";function n(t,e,r,n){var h=new l.InnerSubscriber(t,r,n);if(h.closed)return null;if(e instanceof u.Observable)return e._isScalar?(h.next(e.value),h.complete(),null):e.subscribe(h);if(i.isArrayLike(e)){for(var f=0,d=e.length;f<d&&!h.closed;f++)h.next(e[f]);h.closed||h.complete()}else{if(s.isPromise(e))return e.then(function(t){h.closed||(h.next(t),h.complete())},function(t){return h.error(t)}).then(null,function(t){o.root.setTimeout(function(){throw t})}),h;if(e&&"function"==typeof e[c.$$iterator])for(var m=e[c.$$iterator]();;){var y=m.next();if(y.done){h.complete();break}if(h.next(y.value),h.closed)break}else if(e&&"function"==typeof e[p.$$observable]){var v=e[p.$$observable]();if("function"==typeof v.subscribe)return v.subscribe(new l.InnerSubscriber(t,r,n));h.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var g="You provided "+(a.isObject(e)?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";h.error(new TypeError(g))}}return null}var o=t("./root"),i=t("./isArrayLike"),s=t("./isPromise"),a=t("./isObject"),u=t("../Observable"),c=t("../symbol/iterator"),l=t("../InnerSubscriber"),p=t("../symbol/observable");r.subscribeToResult=n},{"../InnerSubscriber":27,"../Observable":29,"../symbol/iterator":66,"../symbol/observable":67,"./isArrayLike":74,"./isObject":76,"./isPromise":77,"./root":79}],81:[function(t,e,r){"use strict";function n(t,e,r){if(t){if(t instanceof o.Subscriber)return t;if(t[i.$$rxSubscriber])return t[i.$$rxSubscriber]()}return t||e||r?new o.Subscriber(t,e,r):new o.Subscriber(s.empty)}var o=t("../Subscriber"),i=t("../symbol/rxSubscriber"),s=t("../Observer");r.toSubscriber=n},{"../Observer":30,"../Subscriber":34,"../symbol/rxSubscriber":68}],82:[function(t,e,r){"use strict";function n(){try{return i.apply(this,arguments)}catch(t){return s.errorObject.e=t,s.errorObject}}function o(t){return i=t,n}var i,s=t("./errorObject");r.tryCatch=o},{"./errorObject":72}]},{},[17])(17)});
\ No newline at end of file
diff --git a/apps/maarch_entreprise/js/angularFunctions.js b/apps/maarch_entreprise/js/angularFunctions.js
index eb56da4e505..35cedc9929e 100644
--- a/apps/maarch_entreprise/js/angularFunctions.js
+++ b/apps/maarch_entreprise/js/angularFunctions.js
@@ -13,8 +13,8 @@ function triggerAngular(prodmode, locationToGo) {
         'signature-book',
         'parameter-administration',
         'parameters-administration',
-        'priorities',
-        'priority',
+        'priorities-administration',
+        'priority-administration',
         'parameter'
     ];
 
diff --git a/core/Controllers/PrioritiesController.php b/core/Controllers/PrioritiesController.php
deleted file mode 100644
index fd553ac3333..00000000000
--- a/core/Controllers/PrioritiesController.php
+++ /dev/null
@@ -1,136 +0,0 @@
-<?php
-
-namespace Core\Controllers;
-
-use Psr\Http\Message\RequestInterface;
-use Psr\Http\Message\ResponseInterface;
-use Respect\Validation\Validator;
-use Core\Models\PrioritiesModel;
-
-//require_once 'core/class/class_db_pdo.php';
-//require_once 'modules/notes/Models/NotesModel.php';
-
-class PrioritiesController
-{
-
-    public function getList(RequestInterface $request, ResponseInterface $response)
-    {
-
-        $obj =[
-                    'prioritiesList'    =>  PrioritiesModel::getList(),
-                    'lang'              =>  null
-            ];
-        return $response->withJson($obj);
-    }
-
-    public function getLang(RequestInterface $request, ResponseInterface $response){
-        $obj = PrioritiesModel::getPrioritiesLang();
-        return $response->withJson($obj);
-    }
-
-    public function getById(RequestInterface $request, ResponseInterface $response, $aArgs)
-    {                    
-        $obj = PrioritiesModel::getById(['id' => $aArgs['id']]);
-        if(empty($obj)){            
-            return $response->withJson( ['errors' => 'Aucune priorité trouvée']);
-        }
-        return $response->withJson($obj);             
-    }
-
-    public function create(RequestInterface $request, ResponseInterface $response)
-    {        
-        $errors = $this->control($request, 'create');
-
-        if (!empty($errors)) {
-            return $response
-                ->withJson(['errors' => $errors]);
-        }           
-        
-        $datas = $request->getParams();
-        unset($datas['id']);
-        $return = PrioritiesModel::create($datas);
-        if ($return) {
-            $obj = PrioritiesModel::getById(['id' => $return]);
-        } else {
-            return $response
-                ->withStatus(500)
-                ->withJson(['errors' => _NOT_CREATE]);
-        }
-        return $response->withJson($obj);
-    }
-
-    public function update(RequestInterface $request, ResponseInterface $response, $aArgs){
-        $errors = $this->control($request, 'update');
-
-        if (!empty($errors)) {
-            return $response
-                ->withJson(['errors' => $errors]);
-        }
-
-           
-        $aArgs = $request->getParams();
-        $checkExist = PrioritiesModel::getById([
-                'id'    => $aArgs['id']
-            ]);
-            if($checkExist){
-                $return = PrioritiesModel::update($aArgs);
-                if($return) {
-                    $obj = PrioritiesModel::getById([
-                        'id'    => $aArgs['id']
-                    ]);
-                } else {
-                    return $response
-                        ->withStatus(500)
-                        ->withJson(['errors'    => _NOT_UPDATE]);
-                }
-            } else {
-                array_push($errors,'Cette priorité n\'existe pas');
-                return $response
-                    ->withJson(['errors' => $errors]);
-            }
-        $return = PrioritiesModel::update($aArgs);
-        return $response->withJson($obj);
-    }
-
-    public function delete(RequestInterface $request, ResponseInterface $response, $aArgs)
-    {
-        
-        $obj = PrioritiesModel::delete(['id' => $aArgs['id']]);
-        return $response->withJson($obj);
-    }
-
-    protected static function control( $request, $mode){
-        $errors = [];
-        if (empty($request))
-            array_push($errors,'Tableau d\'arguments vide');
-        
-        if (!Validator::notEmpty()->validate($request->getParam('label_priority'))){
-            array_push($errors,'Valeur label vide');
-        }
-        if (!Validator::notEmpty()->validate($request->getParam('color_priority'))) {
-            array_push($errors, 'Aucune Couleur assignée');
-        }
-        else if(!Validator::regex('/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/')->validate($request->getParam('color_priority')) && Validator::notEmpty()->validate($request->getParam('color_priority')) || $request->getParam('color_priority')=='#ffffff'){
-            array_push($errors,'Format couleur invalide');
-        }
-        if (!Validator::notEmpty()->validate($request->getParam('delays'))){
-            array_push($errors,'Delai vide');
-        }
-        if (!Validator::notEmpty()->validate($request->getParam('working_days'))){
-            array_push($errors,'jours vide');
-        }
-        else if ($request->getParam('working_days')!= 'Y' && $request->getParam('working_days') != 'N') {
-            array_push($errors,'Valeur working_days invalide');
-            //return false;
-        }
-        if ($request->getParam('delays') !== '*' &&!ctype_digit($request->getParam('delays'))&&Validator::notEmpty()->validate($request->getParam('delays'))) {
-            array_push($errors,'Valeur delays invalide');
-        }
-        if ((int)$request->getParam('delays') < 0) {
-            array_push($errors,'Valeur négative');
-        }
-        return $errors;
-    }
-}
-
-?>
\ No newline at end of file
diff --git a/core/Controllers/PriorityController.php b/core/Controllers/PriorityController.php
new file mode 100644
index 00000000000..9b435bdbc5b
--- /dev/null
+++ b/core/Controllers/PriorityController.php
@@ -0,0 +1,149 @@
+<?php
+
+namespace Core\Controllers;
+
+use Core\Models\ServiceModel;
+use Psr\Http\Message\RequestInterface;
+use Psr\Http\Message\ResponseInterface;
+use Respect\Validation\Validator;
+use Core\Models\PriorityModel;
+
+class PriorityController
+{
+
+    public function getPrioritiesForAdministration(RequestInterface $request, ResponseInterface $response)
+    {
+        if (!ServiceModel::hasService(['id' => 'admin_priorities', 'userId' => $_SESSION['user']['UserId'], 'location' => 'apps', 'type' => 'admin'])) {
+            return $response->withStatus(403)->withJson(['errors' => 'Service forbidden']);
+        }
+
+        $return = [
+            'priorities'    =>  PriorityModel::get(),
+            'lang'          =>  []
+        ];
+
+        return $response->withJson($return);
+    }
+
+    public function getPriorityForAdministration(RequestInterface $request, ResponseInterface $response, $aArgs)
+    {
+        if (!ServiceModel::hasService(['id' => 'admin_priorities', 'userId' => $_SESSION['user']['UserId'], 'location' => 'apps', 'type' => 'admin'])) {
+            return $response->withStatus(403)->withJson(['errors' => 'Service forbidden']);
+        }
+
+        $priotity = PriorityModel::getById(['id' => $aArgs['id']]);
+
+        if(empty($priotity)){
+            return $response->withStatus(400)->withJson(['errors' => 'Priority not found']);
+        }
+
+        return $response->withJson([
+            'priority'  => $priotity,
+            'lang'      =>  []
+        ]);
+    }
+
+    public function getNewPriorityForAdministration(RequestInterface $request, ResponseInterface $response)
+    {
+        if (!ServiceModel::hasService(['id' => 'admin_priorities', 'userId' => $_SESSION['user']['UserId'], 'location' => 'apps', 'type' => 'admin'])) {
+            return $response->withStatus(403)->withJson(['errors' => 'Service forbidden']);
+        }
+
+        $priority = [];
+        $priority['lang'] = [];
+
+        return $response->withJson($priority);
+    }
+
+    public function create(RequestInterface $request, ResponseInterface $response)
+    {
+        if (!ServiceModel::hasService(['id' => 'admin_priorities', 'userId' => $_SESSION['user']['UserId'], 'location' => 'apps', 'type' => 'admin'])) {
+            return $response->withStatus(403)->withJson(['errors' => 'Service forbidden']);
+        }
+
+        $data = $request->getParams();
+        $data['working_days'] = $data['working_days'] ? 'true' : 'false';
+
+        $id = PriorityModel::create($data);
+
+        return $response->withJson([
+            'success'   => _USER_ADDED,
+            'priority'  => $id
+        ]);
+    }
+
+//    public function update(RequestInterface $request, ResponseInterface $response, $aArgs){
+//        $errors = $this->control($request, 'update');
+//
+//        if (!empty($errors)) {
+//            return $response
+//                ->withJson(['errors' => $errors]);
+//        }
+//
+//
+//        $aArgs = $request->getParams();
+//        $checkExist = PrioritiesModel::getById([
+//                'id'    => $aArgs['id']
+//            ]);
+//            if($checkExist){
+//                $return = PrioritiesModel::update($aArgs);
+//                if($return) {
+//                    $obj = PrioritiesModel::getById([
+//                        'id'    => $aArgs['id']
+//                    ]);
+//                } else {
+//                    return $response
+//                        ->withStatus(500)
+//                        ->withJson(['errors'    => _NOT_UPDATE]);
+//                }
+//            } else {
+//                array_push($errors,'Cette priorité n\'existe pas');
+//                return $response
+//                    ->withJson(['errors' => $errors]);
+//            }
+//        $return = PrioritiesModel::update($aArgs);
+//        return $response->withJson($obj);
+//    }
+//
+//    public function delete(RequestInterface $request, ResponseInterface $response, $aArgs)
+//    {
+//
+//        $obj = PrioritiesModel::delete(['id' => $aArgs['id']]);
+//        return $response->withJson($obj);
+//    }
+//
+//    protected static function control( $request, $mode){
+//        $errors = [];
+//        if (empty($request))
+//            array_push($errors,'Tableau d\'arguments vide');
+//
+//        if (!Validator::notEmpty()->validate($request->getParam('label_priority'))){
+//            array_push($errors,'Valeur label vide');
+//        }
+//        if (!Validator::notEmpty()->validate($request->getParam('color_priority'))) {
+//            array_push($errors, 'Aucune Couleur assignée');
+//        }
+//        else if(!Validator::regex('/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/')->validate($request->getParam('color_priority')) && Validator::notEmpty()->validate($request->getParam('color_priority')) || $request->getParam('color_priority')=='#ffffff'){
+//            array_push($errors,'Format couleur invalide');
+//        }
+//        if (!Validator::notEmpty()->validate($request->getParam('delays'))){
+//            array_push($errors,'Delai vide');
+//        }
+//        if (!Validator::notEmpty()->validate($request->getParam('working_days'))){
+//            array_push($errors,'jours vide');
+//        }
+//        else if ($request->getParam('working_days')!= 'Y' && $request->getParam('working_days') != 'N') {
+//            array_push($errors,'Valeur working_days invalide');
+//            //return false;
+//        }
+//        if ($request->getParam('delays') !== '*' &&!ctype_digit($request->getParam('delays'))&&Validator::notEmpty()->validate($request->getParam('delays'))) {
+//            array_push($errors,'Valeur delays invalide');
+//        }
+//        if ((int)$request->getParam('delays') < 0) {
+//            array_push($errors,'Valeur négative');
+//        }
+//        return $errors;
+//    }
+}
+
+?>
\ No newline at end of file
diff --git a/core/Models/DatabaseModel.php b/core/Models/DatabaseModel.php
index 6fecdb4402e..86440404212 100644
--- a/core/Models/DatabaseModel.php
+++ b/core/Models/DatabaseModel.php
@@ -20,6 +20,28 @@ require_once 'core/class/class_db_pdo.php';
 class DatabaseModel
 {
 
+    /**
+     * Database Unique Id Function
+     *
+     * @return string $uniqueId
+     */
+    public static function uniqueId()
+    {
+        $parts = explode('.', microtime(true));
+        $sec = $parts[0];
+        if (!isset($parts[1])) {
+            $msec = 0;
+        } else {
+            $msec = $parts[1];
+        }
+
+        $uniqueId = str_pad(base_convert($sec, 10, 36), 6, '0', STR_PAD_LEFT);
+        $uniqueId .= str_pad(base_convert($msec, 10, 16), 4, '0', STR_PAD_LEFT);
+        $uniqueId .= str_pad(base_convert(mt_rand(), 10, 36), 6, '0', STR_PAD_LEFT);
+
+        return $uniqueId;
+    }
+
     /**
     * Database Select Function
     * @param array $args
diff --git a/core/Models/PrioritiesModel.php b/core/Models/PrioritiesModel.php
deleted file mode 100644
index ad509f3221b..00000000000
--- a/core/Models/PrioritiesModel.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-/*
-*    Copyright 2008-2016 Maarch
-*
-*  This file is part of Maarch Framework.
-*
-*   Maarch Framework is free software: you can redistribute it and/or modify
-*   it under the terms of the GNU General Public License as published by
-*   the Free Software Foundation, either version 3 of the License, or
-*   (at your option) any later version.
-*
-*   Maarch Framework is distributed in the hope that it will be useful,
-*   but WITHOUT ANY WARRANTY; without even the implied warranty of
-*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-*   GNU General Public License for more details.
-*
-*   You should have received a copy of the GNU General Public License
-*    along with Maarch Framework.  If not, see <http://www.gnu.org/licenses/>.
-*/
-namespace Core\Models;
-use Core\Models\PrioritiesModelAbstract;
-
-//require_once 'apps/maarch_entreprise/admin/priorities/class_priorities_Abstract.php';
-
-class PrioritiesModel extends PrioritiesModelAbstract
-{
-    // custom
-}
\ No newline at end of file
diff --git a/core/Models/PrioritiesModelAbstract.php b/core/Models/PrioritiesModelAbstract.php
deleted file mode 100644
index 6081b555220..00000000000
--- a/core/Models/PrioritiesModelAbstract.php
+++ /dev/null
@@ -1,243 +0,0 @@
-<?php
-/*
-*    Copyright 2008-2016 Maarch
-*
-*  This file is part of Maarch Framework.
-*
-*   Maarch Framework is free software: you can redistribute it and/or modify
-*   it under the terms of the GNU General Public License as published by
-*   the Free Software Foundation, either version 3 of the License, or
-*   (at your option) any later version.
-*
-*   Maarch Framework is distributed in the hope that it will be useful,
-*   but WITHOUT ANY WARRANTY; without even the implied warranty of
-*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-*   GNU General Public License for more details.
-*
-*   You should have received a copy of the GNU General Public License
-*    along with Maarch Framework.  If not, see <http://www.gnu.org/licenses/>.
-*/
-
-/*abstract class PrioritiesAbstract extends Database
-{
-
-    protected function  getXMLPath() {
-        if (file_exists(
-            $_SESSION['config']['corepath'] . 'custom' . DIRECTORY_SEPARATOR
-            . $_SESSION['custom_override_id'] . DIRECTORY_SEPARATOR
-            . 'apps'.DIRECTORY_SEPARATOR . $_SESSION['config']['app_id']
-            . DIRECTORY_SEPARATOR . 'xml' . DIRECTORY_SEPARATOR
-            . 'entreprise.xml')
-        ) {
-            $path = $_SESSION['config']['corepath'] . 'custom'
-                . DIRECTORY_SEPARATOR . $_SESSION['custom_override_id']
-                . DIRECTORY_SEPARATOR . 'apps' . DIRECTORY_SEPARATOR
-                . $_SESSION['config']['app_id'] . DIRECTORY_SEPARATOR . 'xml'
-                . DIRECTORY_SEPARATOR . 'entreprise.xml';
-        } else {
-            $path = 'apps' . DIRECTORY_SEPARATOR . $_SESSION['config']['app_id']
-                . DIRECTORY_SEPARATOR . 'xml' . DIRECTORY_SEPARATOR
-                . 'entreprise.xml';
-        }
-
-        return $path;
-    }
-
-    protected function  setXML($priorities) {
-        $path = $this->getXMLPath();
-
-        $xmlfile = simplexml_load_file($path);
-        $mailPriorities = $xmlfile->priorities;
-        for ($i = 0; $priorities[$i]; $i++) {
-            if (empty($priorities[$i]['add'])) {
-                $mailPriorities->priority[$i] = $priorities[$i]['label'];
-                if ($priorities[$i]['number'] === '*')
-                    $mailPriorities->priority[$i]['with_delay'] = 'false';
-                else
-                    $mailPriorities->priority[$i]['with_delay'] = $priorities[$i]['number'];
-                $mailPriorities->priority[$i]['working_days'] = $priorities[$i]['wdays'];
-                $mailPriorities->priority[$i]['color'] = $priorities[$i]['color'];
-            } else {
-                $newPriority = $mailPriorities->addChild('priority', $priorities[$i]['label']);
-                if ($priorities[$i]['number'] === '*')
-                    $newPriority->addAttribute('with_delay', 'false');
-                else
-                    $newPriority->addAttribute('with_delay', $priorities[$i]['number']);
-                $newPriority->addAttribute('working_days', $priorities[$i]['wdays']);
-                $newPriority->addAttribute('color', $priorities[$i]['color']);
-            }
-        }
-
-        $res = $xmlfile->asXML();
-        $fp = @fopen($path, "w+");
-        if ($fp) {
-            fwrite($fp,$res);
-        }
-    }
-
-    protected function  updateSession() {
-        $path = $this->getXMLPath();
-
-        $xmlfile = simplexml_load_file($path);
-        $mailPriorities = $xmlfile->priorities;
-
-        unset($_SESSION['mail_priorities'], $_SESSION['mail_priorities_attribute'], $_SESSION['mail_priorities_wdays']);
-        $_SESSION['mail_priorities'] = [];
-        $_SESSION['mail_priorities_attribute'] = [];
-        $_SESSION['mail_priorities_wdays'] = [];
-        $_SESSION['mail_priorities_color'] = [];
-
-        for ($i = 0; $mailPriorities->priority[$i]; $i++) {
-            $label = (string) $mailPriorities->priority[$i];
-            $attribute = (string) $mailPriorities->priority[$i]['with_delay'];
-            $workingDays = (string) $mailPriorities->priority[$i]['working_days'];
-            $color = (string) $mailPriorities->priority[$i]['color'];
-            if (!empty($label) && defined($label) && constant($label) != NULL) {
-                $label = constant($label);
-            }
-            $_SESSION['mail_priorities'][$i] = $label;
-            $_SESSION['mail_priorities_attribute'][$i] = $attribute;
-            $_SESSION['mail_priorities_wdays'][$i] = ($workingDays != 'false' ? 'true' : 'false');
-            $_SESSION['mail_priorities_color'][$i] = $color;
-        }
-    }
-
-    protected function  checkPriorities($array) {
-        if (empty($array))
-            return false;
-        foreach ($array as $value) {
-            if (empty($value['label']) || empty($value['number']) || empty($value['wdays'])) {
-                return false;
-            } elseif ($value['wdays'] != 'true' && $value['wdays'] != 'false') {
-                return false;
-            } elseif ($value['number'] === '*') {
-            } elseif (!ctype_digit($value['number'])) {
-                return false;
-            } elseif ((int)$value['number'] < 0) {
-                return false;
-            }
-        }
-        return true;
-    }
-
-    public function updatePriorities() {
-        $priorities = [];
-       
-        for ($i = 0; isset($_REQUEST[('label_' . $i)]) && isset($_REQUEST[('priority_' . $i)]) && isset($_REQUEST[('working_' . $i)]) && isset($_REQUEST[('color_' . $i)]); $i++) {
-            $priorities[] = ['label' => $_REQUEST[('label_' . $i)], 'number' => $_REQUEST[('priority_' . $i)], 'wdays' => $_REQUEST[('working_' . $i)], 'color' => $_REQUEST[('color_' . $i)]];
-        }
-        for ($i = 0; !empty($_REQUEST[('label_new' . $i)]) && !empty($_REQUEST[('priority_new' . $i)]) && !empty($_REQUEST[('working_new' . $i)]) && !empty($_REQUEST[('color_new' . $i)]); $i++) {
-            $priorities[] = ['add' => 'add', 'label' => $_REQUEST[('label_new' . $i)], 'number' => $_REQUEST[('priority_new' . $i)], 'wdays' => $_REQUEST[('working_new' . $i)], 'color' => $_REQUEST[('color_new' . $i)]];
-        }
-        if ($this->checkPriorities($priorities)) {
-            $this->setXML($priorities);
-            $this->updateSession();
-            $_SESSION['info'] = _PRIORITIES_UPDATED;
-        } else {
-            $_SESSION['error'] = _PRIORITIES_ERROR;
-        }
-    }
-
-    public function deletePriority() {
-        if (isset($_REQUEST['indexToDelete']) && ctype_digit($_REQUEST['indexToDelete'])) {
-            $indexToDelete = (int) $_REQUEST['indexToDelete'];
-
-            $db = new Database();
-
-            $stmt = $db->query("SELECT priority FROM res_letterbox WHERE priority = ? ",
-                [$indexToDelete]
-            );
-
-            if ($stmt->rowCount() == 0) {
-                $path = $this->getXMLPath();
-
-                $xmlfile = simplexml_load_file($path);
-                $mailPriorities = $xmlfile->priorities;
-                unset($mailPriorities->priority[$indexToDelete]);
-                $res = $xmlfile->asXML();
-                $fp = @fopen($path, "w+");
-                if ($fp) {
-                    fwrite($fp,$res);
-                }
-                $this->updateSession();
-            } else {
-                $_SESSION['error'] = _PRIORITIES_ERROR_TAKEN;
-            }
-
-        }
-
-    }
-}*/
-namespace Core\Models;
-
-require_once 'apps/maarch_entreprise/services/Table.php';
-
-abstract class PrioritiesModelAbstract extends \Apps_Table_Service
-{
-
-    public static function getList(){
-
-        $aReturn = static::select([
-            'select'    => empty($aArgs['select']) ? ['*'] : $aArgs['select'],
-            'table'     => ['priorities'],
-        ]);
-
-        return $aReturn;
-    }
-
-    public static function getById(array $aArgs = []){
-        static::checkRequired($aArgs, ['id']);
-        static::checkNumeric($aArgs, ['id']);
-        
-        $aReturn = static::select([
-                'select'    => empty($aArgs['select']) ? ['*'] : $aArgs['select'],
-                'table'     =>['priorities'],
-                'where'     => ['id = ?'],
-                'data'      => [$aArgs['id']]
-            ]);
-        return $aReturn;
-    }
-
-    public static function create(array $aArgs = []){
-
-        $aReturn = static::insertInto($aArgs,'priorities');
-        $priorities = static::select([
-            'select'    => empty($aArgs['']) ?  ['*'] : $aArgs['select'],
-            'table'     => ['priorities'],
-            'orderby'      => 'id'
-        ]);
-        end($priorities);
-        $key =key($priorities);
-        $id = $priorities[$key]['id'];
-        return (string)$id;
-    }
-
-    public static function update(array $aArgs = []){
-        static::checkRequired($aArgs, ['id']);
-        static::checkNumeric($aArgs, ['id']);
-
-        $where['id'] = $aArgs['id'];
-
-        $aReturn = static::updateTable(
-            $aArgs,
-            'priorities',
-            $where
-        );
-        return $aReturn;
-    }
-
-    public static function delete(array $aArgs = []){
-        static::checkRequired($aArgs, ['id']);
-        static::checkNumeric($aArgs, ['id']);
-
-        $aReturn = static::deleteFrom([
-                'table' => 'priorities',
-                'where' => ['id = ?'],
-                'data'  => [$aArgs['id']]
-            ]);
-        
-        return $aReturn;
-    }   
-    
-}
-
diff --git a/core/Models/PriorityModel.php b/core/Models/PriorityModel.php
new file mode 100644
index 00000000000..9549075ca3a
--- /dev/null
+++ b/core/Models/PriorityModel.php
@@ -0,0 +1,21 @@
+<?php
+
+/**
+ * Copyright Maarch since 2008 under licence GPLv3.
+ * See LICENCE.txt file at the root folder for more details.
+ * This file is part of Maarch software.
+ *
+ */
+
+/**
+ * @brief Priority Model
+ * @author dev@maarch.org
+ * @ingroup core
+ */
+
+namespace Core\Models;
+
+class PriorityModel extends PriorityModelAbstract
+{
+    // Do your stuff in this class
+}
\ No newline at end of file
diff --git a/core/Models/PriorityModelAbstract.php b/core/Models/PriorityModelAbstract.php
new file mode 100644
index 00000000000..228cdc3c2c6
--- /dev/null
+++ b/core/Models/PriorityModelAbstract.php
@@ -0,0 +1,101 @@
+<?php
+/**
+ * Copyright Maarch since 2008 under licence GPLv3.
+ * See LICENCE.txt file at the root folder for more details.
+ * This file is part of Maarch software.
+ *
+ */
+
+/**
+ * @brief Priority Abstract Model
+ * @author dev@maarch.org
+ * @ingroup core
+ */
+
+namespace Core\Models;
+
+abstract class PriorityModelAbstract
+{
+    public static function get(array $aArgs = [])
+    {
+        $aReturn = DatabaseModel::select([
+            'select'    => empty($aArgs['select']) ? ['*'] : $aArgs['select'],
+            'table'     => ['priorities'],
+        ]);
+
+        return $aReturn;
+    }
+
+    public static function getById(array $aArgs)
+    {
+        ValidatorModel::notEmpty($aArgs, ['id']);
+        ValidatorModel::intVal($aArgs, ['id']);
+
+        $aPriority = DatabaseModel::select([
+            'select'    => empty($aArgs['select']) ? ['*'] : $aArgs['select'],
+            'table'     => ['priorities'],
+            'where'     => ['id = ?'],
+            'data'      => [$aArgs['id']]
+        ]);
+
+        if (empty($aPriority[0])) {
+            return [];
+        }
+
+        return $aPriority[0];
+    }
+
+    public static function create(array $aArgs)
+    {
+        ValidatorModel::notEmpty($aArgs, ['label', 'color', 'delays', 'working_days']);
+        ValidatorModel::stringType($aArgs, ['label', 'color', 'working_days']);
+        ValidatorModel::intVal($aArgs, ['delays']);
+
+        $id = DatabaseModel::uniqueId();
+        DatabaseModel::insert([
+            'table'         => 'priorities',
+            'columnsValues' => [
+                'id'            => $id,
+                'label'         => $aArgs['label'],
+                'color'         => $aArgs['color'],
+                'working_days'  => $aArgs['working_days'],
+                'delays'        => $aArgs['delays'],
+            ]
+        ]);
+
+        return $id;
+    }
+
+    public static function update(array $aArgs)
+    {
+        ValidatorModel::notEmpty($aArgs, ['id']);
+        ValidatorModel::intVal($aArgs, ['id']);
+
+        DatabaseModel::update([
+            'table'     => 'priorities',
+            'set'       => [
+            ],
+            'where'     => ['id = ?'],
+            'data'      => [$aArgs['id']]
+        ]);
+
+        return true;
+    }
+
+    public static function delete(array $aArgs)
+    {
+        ValidatorModel::notEmpty($aArgs, ['id']);
+        ValidatorModel::intVal($aArgs, ['id']);
+
+
+        DatabaseModel::deleteFrom([
+            'table' => 'priorities',
+            'where' => ['id = ?'],
+            'data'  => [$aArgs['id']]
+        ]);
+        
+        return true;
+    }   
+    
+}
+
diff --git a/rest/index.php b/rest/index.php
index 7822fa41328..a1166faf1ef 100644
--- a/rest/index.php
+++ b/rest/index.php
@@ -85,17 +85,13 @@ if ($_SESSION['error']) {
     exit();
 }
 
-//$lifetime = 3600;
-//setcookie(session_name(),session_id(),time()+$lifetime);
-
-//exit;
-
 $app = new \Slim\App([
     'settings' => [
         'displayErrorDetails' => true
     ]
 ]);
 
+
 //Initialize
 $app->post('/initialize', \Core\Controllers\CoreController::class . ':initialize');
 
@@ -104,11 +100,15 @@ $app->get('/administration', \Core\Controllers\CoreController::class . ':getAdmi
 $app->get('/administration/users', \Core\Controllers\UserController::class . ':getUsersForAdministration');
 $app->get('/administration/users/new', \Core\Controllers\UserController::class . ':getNewUserForAdministration');
 $app->get('/administration/users/{id}', \Core\Controllers\UserController::class . ':getUserForAdministration');
-
-//status
 $app->get('/administration/status', \Core\Controllers\StatusController::class . ':getList');
 $app->get('/administration/status/new', \Core\Controllers\StatusController::class . ':getNewInformations');
 $app->get('/administration/status/{identifier}', \Core\Controllers\StatusController::class . ':getByIdentifier');
+$app->get('/administration/priorities', \Core\Controllers\PriorityController::class . ':getPrioritiesForAdministration');
+$app->get('/administration/priorities/new', \Core\Controllers\PriorityController::class . ':getNewPriorityForAdministration');
+$app->get('/administration/priorities/{id}', \Core\Controllers\PriorityController::class . ':getPriorityForAdministration');
+
+
+//status
 $app->post('/status', \Core\Controllers\StatusController::class . ':create');
 $app->put('/status/{identifier}', \Core\Controllers\StatusController::class . ':update');
 $app->delete('/status/{identifier}', \Core\Controllers\StatusController::class . ':delete');
@@ -190,12 +190,10 @@ $app->post('/parameters', \Core\Controllers\ParametersController::class . ':crea
 $app->put('/parameters/{id}', \Core\Controllers\ParametersController::class . ':update');
 $app->delete('/parameters/{id}', \Core\Controllers\ParametersController::class . ':delete');
 
-//priorities
-$app->get('/priorities', \Core\Controllers\PrioritiesController::class . ':getList');
-$app->get('/priorities/{id}', \Core\Controllers\PrioritiesController::class . ':getById');
-$app->post('/priorities', \Core\Controllers\PrioritiesController::class . ':create');
-$app->put('/priorities/{id}', \Core\Controllers\PrioritiesController::class . ':update');
-$app->delete('/priorities/{id}', \Core\Controllers\PrioritiesController::class . ':delete');
+//Priorities
+$app->post('/priorities', \Core\Controllers\PriorityController::class . ':create');
+$app->put('/priorities/{id}', \Core\Controllers\PriorityController::class . ':update');
+$app->delete('/priorities/{id}', \Core\Controllers\PriorityController::class . ':delete');
 
 //actions
 $app->get('/administration/actions', \Core\Controllers\ActionsController::class . ':getForAdministration');
diff --git a/sql/17_xx.sql b/sql/17_xx.sql
index 31697363183..79d47e0734e 100644
--- a/sql/17_xx.sql
+++ b/sql/17_xx.sql
@@ -7,21 +7,15 @@
 -- *************************************************************************--
 
 DROP SEQUENCE IF EXISTS priorities_seq CASCADE;
-CREATE SEQUENCE priorities_seq
-  INCREMENT 1
-  MINVALUE 1
-  MAXVALUE 9223372036854775807
-  START 1
-  CACHE 1;
 
 DROP TABLE IF EXISTS priorities;
 CREATE TABLE priorities
 (
-  id bigint NOT NULL DEFAULT nextval('priorities_seq'::regclass),
-  label_priority character varying(128) NOT NULL,
-  color_priority character varying(255) DEFAULT NULL::character varying,
-  working_days character varying(1) DEFAULT NULL::character varying,
-  delays character varying(10) DEFAULT NULL::character varying,
+  id character varying(16) NOT NULL,
+  label character varying(128) NOT NULL,
+  color character varying(128) NOT NULL,
+  working_days boolean NOT NULL,
+  delays integer NOT NULL,
   CONSTRAINT priorities_pkey PRIMARY KEY (id)
 )
 WITH (OIDS=FALSE);
-- 
GitLab