diff --git a/apps/maarch_entreprise/Views/basket-administration-groupList-modal.component.html b/apps/maarch_entreprise/Views/basket-administration-groupList-modal.component.html
new file mode 100644
index 0000000000000000000000000000000000000000..e98b5bdb231103b235cbebf77a245cdb4b354522
--- /dev/null
+++ b/apps/maarch_entreprise/Views/basket-administration-groupList-modal.component.html
@@ -0,0 +1,96 @@
+<h2 mat-dialog-title color="primary">{{lang.linkGroup}}</h2>
+
+<mat-dialog-content>
+    <mat-horizontal-stepper linear="true" #stepper="matHorizontalStepper">
+        <ng-template matStepperIcon="create">
+            <mat-icon class="fa fa-paw"></mat-icon>
+        </ng-template>
+        <ng-template matStepperIcon="edit">
+            <mat-icon class="fa fa-paw"></mat-icon>
+        </ng-template>
+        <mat-step [stepControl]="firstFormGroup">
+            <form>
+                <ng-template matStepLabel>{{lang.chooseGroup}}</ng-template>
+                <mat-form-field [formGroup]="firstFormGroup">
+                    <mat-select placeholder="{{lang.availableGroups}}" [(ngModel)]="this.groupId" formControlName="firstCtrl" required>
+                        <span *ngFor="let group of data.groups">
+                            <mat-option  *ngIf="group.isUsed == false" [value]="group.group_id">
+                                {{group.group_desc}}
+                            </mat-option>
+                        </span>
+                    </mat-select>
+                </mat-form-field>
+                <div style="margin-top:10px;">
+                    <button style="float:right;" mat-raised-button color="primary" matStepperNext>{{lang.next}} <mat-icon class="fa fa-chevron-right"></mat-icon></button>
+                </div>
+            </form>
+        </mat-step>
+        <mat-step>
+            <form #defaultActionForm="ngForm">
+                <ng-template matStepLabel>{{lang.chooseDefaultAction}}</ng-template>
+                <div class="example-container">
+                    <mat-paginator #paginator [length]="100" [pageSize]="5"></mat-paginator>
+                    <div class="col-md-6">
+                        <mat-button-toggle-group (change)="initAction($event)">
+                            <mat-button-toggle name="filterType" value="process" matTooltip="{{lang.processAction}}">
+                                <mat-icon class="fa fa-check fa-2x"></mat-icon>
+                            </mat-button-toggle>
+                            <mat-button-toggle name="filterType" value="validate_mail" matTooltip="{{lang.validateAction}}">
+                                <mat-icon class="fa fa-edit fa-2x"></mat-icon>
+                            </mat-button-toggle>
+                            <mat-button-toggle name="filterType" value="" matTooltip="{{lang.allActions}}" checked="true">
+                                <mat-icon class="fa fa-list fa-2x"></mat-icon>
+                            </mat-button-toggle>
+                        </mat-button-toggle-group>
+                    </div>
+                    <div class="col-md-6">
+                        <mat-form-field>
+                            <input matInput (keyup)="applyFilter($event.target.value)" placeholder="{{lang.filterBy}}">
+                        </mat-form-field>
+                    </div>
+                    <mat-table #table [dataSource]="dataSource" matSort matSortActive="label_action" matSortDirection="asc">
+                        <ng-container matColumnDef="label_action">
+                            <mat-header-cell *matHeaderCellDef></mat-header-cell>
+                            <mat-cell *matCellDef="let element" style="flex:6;">
+                                <mat-radio-button name="actionsList" color="primary" required (change)="selectDefaultAction(element)">{{element.label_action}}</mat-radio-button>
+                                <small>({{element.origin}})</small>
+                            </mat-cell>
+                        </ng-container>
+                        <mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
+                    </mat-table>
+                </div>
+                <div style="margin-top:10px;">
+                    <button style="float:left;" color="primary" mat-raised-button matStepperPrevious><mat-icon class="fa fa-chevron-left"></mat-icon> {{lang.previous}}</button>
+                    <button style="float:right;" color="primary" mat-raised-button matStepperNext [disabled]="!defaultActionForm.form.valid">{{lang.next}} <mat-icon class="fa fa-chevron-right"></mat-icon></button>
+                </div>
+            </form>
+        </mat-step>
+        <mat-step>
+            <ng-template matStepLabel>{{lang.otherActions}}</ng-template>
+            <div class="example-container">
+                <div class="col-md-6">
+                    <mat-paginator #paginator2 [length]="100" [pageSize]="5"></mat-paginator>
+                </div>
+                <div class="col-md-6">
+                    <mat-form-field>
+                        <input matInput (keyup)="applyFilter2($event.target.value)" placeholder="{{lang.filterBy}}">
+                    </mat-form-field>
+                </div>
+                <mat-table #table [dataSource]="dataSource2" matSort matSortActive="label_action" matSortDirection="asc">
+                    <ng-container matColumnDef="label_action">
+                        <mat-header-cell *matHeaderCellDef></mat-header-cell>
+                        <mat-cell *matCellDef="let element" style="flex:6;">
+                            <mat-checkbox name="actionsList" color="primary" required (change)="selectAction($event,element)" [disabled]="element.action_page == 'process' || element.action_page == 'validate_mail' || element.action_page == 'index_mlb' || element.default_action_list == true">{{element.label_action}}</mat-checkbox>
+                            <small>({{element.origin}})</small>
+                        </mat-cell>
+                    </ng-container>
+                    <mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
+                </mat-table>
+            </div>
+            <div style="margin-top:10px;">
+                <button style="float:left;" color="primary" mat-raised-button matStepperPrevious><mat-icon class="fa fa-chevron-left"></mat-icon> {{lang.previous}}</button>
+                <button style="float:right;" color="primary" mat-raised-button (click)="validateForm();">{{lang.validate}}</button>
+            </div>
+        </mat-step>
+    </mat-horizontal-stepper>
+</mat-dialog-content>
\ No newline at end of file
diff --git a/apps/maarch_entreprise/Views/basket-administration-settings-modal.component.html b/apps/maarch_entreprise/Views/basket-administration-settings-modal.component.html
new file mode 100644
index 0000000000000000000000000000000000000000..889aee96f7ec9a35156f666fe2ad12cbd5fbac81
--- /dev/null
+++ b/apps/maarch_entreprise/Views/basket-administration-settings-modal.component.html
@@ -0,0 +1,85 @@
+<h2 mat-dialog-title color="primary">{{lang.actionParameters}}
+    <small>{{data.action.label_action}} ({{data.action.id}})</small>
+</h2>
+<mat-dialog-content>
+    <form #settingGroupsBasket="ngForm">
+        <div class="container-fluid">
+            <div class="col-md-6">
+                <mat-checkbox [disabled]="data.action.default_action_list == true" id="usedInActionPage" name="usedInActionPage" color="primary"
+                    [(ngModel)]="data.action.used_in_action_page">{{lang.usedInActionPage}}</mat-checkbox>
+            </div>
+            <div class="col-md-6">
+                <mat-checkbox [disabled]="data.action.default_action_list == true" id="usedInBasketlist" name="usedInBasketlist" color="primary"
+                    [(ngModel)]="data.action.used_in_basketlist">{{lang.usedInBasketlist}}</mat-checkbox>
+            </div>
+        </div>
+        <mat-form-field style="margin-top:5px;">
+            <mat-select id="actionPages" name="actionPages" placeholder="{{lang.resultPages}}" [(ngModel)]="data.group.result_page">
+                <mat-option *ngFor="let page of data.pages" [value]="page.id">
+                    {{page.label}}
+                </mat-option>
+            </mat-select>
+        </mat-form-field>
+        <mat-tab-group [(selectedIndex)]="selectedTabIndex_1">
+            <mat-tab *ngIf="data.action.keyword == 'redirect'||data.action.keyword == 'indexing'">
+                <ng-template mat-tab-label *ngIf="data.action.keyword == 'redirect'">
+                    {{lang.redirects}}
+                </ng-template>
+                <ng-template mat-tab-label *ngIf="data.action.keyword == 'indexing'">
+                    {{lang.indexing}}
+                </ng-template>
+                <mat-accordion>
+                    <mat-expansion-panel (opened)="initService()">
+                        <mat-expansion-panel-header>
+                            <mat-panel-title>
+                                {{lang.toEntities}}
+                            </mat-panel-title>
+                        </mat-expansion-panel-header>
+                        <mat-form-field>
+                            <input matInput id="jstree_search" name="jstree_search" type="text" placeholder="{{lang.searchEntities}}">
+                        </mat-form-field>
+                        <div id="jstree"></div>
+                    </mat-expansion-panel>
+                    <mat-expansion-panel *ngIf="data.action.keyword == 'indexing'" [disabled]="data.action.id_status != '_NOSTATUS_'">
+                            <mat-expansion-panel-header>
+                                <mat-panel-title>
+                                    {{lang.toStatuses}} &nbsp;<mat-icon *ngIf="data.action.id_status != '_NOSTATUS_'" color="warn" class="fa fa-exclamation-circle" matTooltip="{{lang.toStatusesDesc}}"
+                                    style="cursor:help"></mat-icon>
+                                </mat-panel-title>
+    
+                            </mat-expansion-panel-header>
+                            <mat-form-field>
+                                    <mat-select id="statuses" [(ngModel)]="data.action.statuses" name="statuses" placeholder="{{lang.availableStatuses}}" multiple>
+                                        <mat-option *ngFor="let status of this.statuses" [value]="status.id">
+                                            {{status.label_status}}
+                                        </mat-option>
+                                    </mat-select>
+                                </mat-form-field>
+
+                        </mat-expansion-panel>
+                    <mat-expansion-panel (opened)="initService2()" *ngIf="data.action.keyword == 'redirect'">
+                        <mat-expansion-panel-header>
+                            <mat-panel-title>
+                                {{lang.toUsersEntities}}
+                            </mat-panel-title>
+                        </mat-expansion-panel-header>
+                        <mat-form-field>
+                            <input matInput id="jstree_search2" name="jstree_search2" type="text" placeholder="{{lang.searchEntities}}">
+                        </mat-form-field>
+                        <div id="jstree2"></div>
+                    </mat-expansion-panel>
+                </mat-accordion>
+            </mat-tab>
+            <mat-tab label="{{lang.otherParameters}}">
+                <mat-form-field>
+                    <textarea matInput name="clause" title="{{lang.whereClauseAction}}" placeholder="{{lang.whereClauseAction}}"
+                        [(ngModel)]="data.action.where_clause" matTextareaAutosize matAutosizeMinRows="1"></textarea>
+                </mat-form-field>
+            </mat-tab>
+        </mat-tab-group>
+    </form>
+</mat-dialog-content>
+<mat-dialog-actions>
+    <button mat-raised-button type="submit" [disabled]="!settingGroupsBasket.form.valid" color="primary" style="margin:auto;"
+        (click)="dialogRef.close(data)">{{lang.validate}}</button>
+</mat-dialog-actions>
\ No newline at end of file
diff --git a/apps/maarch_entreprise/Views/basket-administration.component.html b/apps/maarch_entreprise/Views/basket-administration.component.html
index ad8ffdd430708a37faf9f8d4c0bb8a1ea7c1be2b..85583576d60ea8103b42704649eb7dd641015af7 100644
--- a/apps/maarch_entreprise/Views/basket-administration.component.html
+++ b/apps/maarch_entreprise/Views/basket-administration.component.html
@@ -1,63 +1,194 @@
 <div class="page-header">
+    <h1 *ngIf="!creationMode">{{lang.basketModification}}
+        <small>{{basket.basket_name}} ({{basket.basket_id}})</small>
+    </h1>
+    <h1 *ngIf="creationMode">{{lang.basketCreation}}
+        <small>{{basket.basket_name}} ({{basket.basket_id}})</small>
+    </h1>
 </div>
 <div *ngIf="loading">
     <mat-spinner style="margin:auto;"></mat-spinner>
 </div>
 <div *ngIf="!loading" class="container-fluid">
-    <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()" #basketForm="ngForm">
-                <div class="form-group">
-                    <div class="col-sm-12">
-                        <div class="input-group">
-                            <input *ngIf="creationMode" type="text" class="form-control" name="identifier" placeholder="{{lang.id}}" [(ngModel)]="basket.id" (blur)="isAvailable()" pattern="^[\w-]*$" maxlength="30" required>
-                            <i *ngIf="creationMode" class="fa fa-bullseye" aria-hidden="true" [ngStyle]="{'color': basketIdAvailable ? 'green' : 'red'}"></i>
-                            <input *ngIf="!creationMode" type="text" class="form-control" name="identifier" title="{{lang.id}}" [(ngModel)]="basket.id" disabled>
-                        </div>
+    <div class="col-md-6">
+        <mat-tab-group [(selectedIndex)]="selectedTabIndex_1">
+            <mat-tab label="{{lang.informations}}">
+                <form class="form-horizontal" (ngSubmit)="onSubmit()" #basketForm="ngForm">
+                    <mat-form-field>
+                        <input matInput *ngIf="creationMode" name="identifier" placeholder="{{lang.id}}" [(ngModel)]="basket.basket_id" required>
+                        <input matInput *ngIf="!creationMode" name="identifier" placeholder="{{lang.id}}" title="{{lang.id}}" [(ngModel)]="basket.basket_id"
+                            required disabled>
+                    </mat-form-field>
+                    <div class="col-md-11">
+                        <mat-form-field>
+                            <input matInput name="label" title="{{lang.label}}" placeholder="{{lang.label}}" [(ngModel)]="basket.basket_name" [ngStyle]="{'color': basket.color}"
+                                required>
+                        </mat-form-field>
                     </div>
-                    <div class="col-sm-12">
-                        <div class="input-group">
-                            <input type="text" class="form-control" name="comment" title="{{lang.basket}}" placeholder="{{lang.basket}}" [(ngModel)]="basket.name" required>
-                        </div>
+                    <div class="col-md-1">
+                        <mat-form-field>
+                            <input matInput type="color" name="color" [(ngModel)]="basket.color">
+                        </mat-form-field>
                     </div>
-                    <div class="col-sm-12">
-                        <div class="input-group" style="width :30%">
-                            <input type="color" class="form-control" name="color" [(ngModel)]="basket.color" required>
-                        </div>
+                    <mat-form-field>
+                        <input matInput name="description" title="{{lang.description}}" placeholder="{{lang.description}}" [(ngModel)]="basket.basket_desc"
+                            required>
+                    </mat-form-field>
+                    <mat-form-field>
+                        <textarea matInput name="clause" title="{{lang.clause}}" placeholder="{{lang.clause}}" [(ngModel)]="basket.clause" matTextareaAutosize
+                            matAutosizeMinRows="1"></textarea>
+                        <mat-icon style="cursor:pointer;" color="primary" matSuffix class="fa fa-info-circle" matTooltip="{{lang.keywordHelper}}"
+                            (click)="toggleKeywordHelp()"></mat-icon>
+                    </mat-form-field>
+                    <div class="col-md-4 text-center">
+                        <mat-slide-toggle color="primary" matTooltip="{{lang.isSearchBasket}}" name="isSearchBasket" [(ngModel)]="basket.isSearchBasket">
+                            &nbsp;
+                            <mat-icon color="primary" [ngStyle]="{'opacity': basket.isSearchBasket ? '' : '0.5'}" class="fa fa-search fa-2x"></mat-icon>
+                        </mat-slide-toggle>
+
                     </div>
-                    <div class="col-sm-12">
-                        <div class="input-group">
-                            <input type="text" class="form-control" name="description" title="{{lang.description}}" placeholder="{{lang.description}}" [(ngModel)]="basket.description" required>
-                        </div>
+                    <div class="col-md-4 text-center">
+                        <mat-slide-toggle color="primary" matTooltip="{{lang.isFolderBasket}}" name="isFolderBasket" [(ngModel)]="basket.isFolderBasket">
+                            &nbsp;
+                            <mat-icon [ngStyle]="{'opacity': basket.isFolderBasket ? '' : '0.5'}" class="fa fa-folder fa-2x"></mat-icon>
+                        </mat-slide-toggle>
                     </div>
-                    <div class="col-sm-12">
-                        <div class="input-group">
-                            <input type="text" class="form-control" name="clause" title="{{lang.clause}}" placeholder="{{lang.clause}}" [(ngModel)]="basket.clause" required>
-                        </div>
+                    <div class="col-md-4 text-center">
+                        <mat-slide-toggle color="primary" matTooltip="{{lang.basketNotification}}" name="flagNotif" [(ngModel)]="basket.flagNotif">
+                            &nbsp;
+                            <mat-icon [ngStyle]="{'opacity': basket.flagNotif ? '' : '0.5'}" class="fa fa-bell fa-2x"></mat-icon>
+                        </mat-slide-toggle>
                     </div>
-                    <div class="col-sm-12">
-                        <div class="input-group">
-                            <input type="checkbox" class="form-control" name="isSearchBasket" title="Bannette de recherche uniquement" [(ngModel)]="basket.isSearchBasket">
-                        </div>
-                    </div>
-                    <div class="col-sm-12">
-                        <div class="input-group">
-                            <input type="checkbox" class="form-control" name="isFolderBasket" title="Bannette de dossier" [(ngModel)]="basket.isFolderBasket">
-                        </div>
-                    </div>
-                    <div class="col-sm-12">
-                        <div class="input-group">
-                            <input type="checkbox" class="form-control" name="flagNotif" title="Activer les notifications" [(ngModel)]="basket.flagNotif">
-                        </div>
+                    <div class="col-md-12 text-center" style="padding:10px;">
+                        <button mat-raised-button [disabled]="!basketForm.form.valid" color="primary">{{lang.save}}</button>
+                        <button mat-raised-button routerLink="/administration/baskets">{{lang.cancel}}</button>
                     </div>
+                </form>
+            </mat-tab>
+        </mat-tab-group>
+    </div>
+    <div class="col-md-6">
+        <mat-card class="example-card" id="keywordHelp" [ngStyle]="{'display': creationMode ? '' : 'none'}" style="margin-top:10px;position:absolute;z-index:3;">
+            <mat-card-header>
+                <mat-card-title color="primary" style="font-size: 20px;font-weight: bold;">
+                    {{lang.keywordHelp}}
+                </mat-card-title>
+            </mat-card-header>
+            <mat-card-content>
+                <mat-list>
+                    <mat-list-item style="height:40px;">
+                        <h4 mat-line style="font-weight:bold;font-size:10px;">@user :</h4>
+                        <p mat-line style="font-size:10px;">{{lang.keywordHelpDesc_1}}</p>
+                    </mat-list-item>
+                    <mat-list-item style="height:40px;">
+                        <h4 mat-line style="font-weight:bold;font-size:10px;">@email :</h4>
+                        <p mat-line style="font-size:10px;">{{lang.keywordHelpDesc_2}}</p>
+                    </mat-list-item>
+                    <mat-list-item style="height:40px;">
+                        <h4 mat-line style="font-weight:bold;font-size:10px;">@my_entities :</h4>
+                        <p mat-line style="font-size:10px;">{{lang.keywordHelpDesc_3}}</p>
+                    </mat-list-item>
+                    <mat-list-item style="height:40px;">
+                        <h4 mat-line style="font-weight:bold;font-size:10px;">@my_primary_entity :</h4>
+                        <p mat-line style="font-size:10px;">{{lang.keywordHelpDesc_4}}</p>
+                    </mat-list-item>
+                    <mat-list-item style="height:40px;">
+                        <h4 mat-line style="font-weight:bold;font-size:10px;">@subentities[('entity_1',...,'entity_n')] :</h4>
+                        <p mat-line style="font-size:10px;">{{lang.keywordHelpDesc_5}}</p>
+                    </mat-list-item>
+                    <mat-list-item style="height:40px;">
+                        <h4 mat-line style="font-weight:bold;font-size:10px;">@parent_entity['entity_id'] :</h4>
+                        <p mat-line style="font-size:10px;">{{lang.keywordHelpDesc_6}}</p>
+                    </mat-list-item>
+                    <mat-list-item style="height:40px;">
+                        <h4 mat-line style="font-weight:bold;font-size:10px;">@sisters_entities['entity_id'] :</h4>
+                        <p mat-line style="font-size:10px;">{{lang.keywordHelpDesc_7}}</p>
+                    </mat-list-item>
+                    <mat-list-item style="height:40px;">
+                        <h4 mat-line style="font-weight:bold;font-size:10px;">@entity_type['type'] :</h4>
+                        <p mat-line style="font-size:10px;">{{lang.keywordHelpDesc_8}}</p>
+                    </mat-list-item>
+                    <mat-list-item style="height:40px;">
+                        <h4 mat-line style="font-weight:bold;font-size:10px;">@all_entities :</h4>
+                        <p mat-line style="font-size:10px;">{{lang.keywordHelpDesc_9}}</p>
+                    </mat-list-item>
+                    <mat-list-item style="height:40px;">
+                        <h4 mat-line style="font-weight:bold;font-size:10px;">@immediate_children['entity_1',..., 'entity_id'] :</h4>
+                        <p mat-line style="font-size:10px;">{{lang.keywordHelpDesc_10}}</p>
+                    </mat-list-item>
+                </mat-list>
+                <p style="font-size:10px;">
+                    {{lang.keywordHelpDesc_11}}
+                </p>
+                <div style="border:1px black solid; padding:3px;font-size:10px;">
+                    <b>where_clause : (DESTINATION = @my_primary_entity or DESTINATION in (@subentities[@my_primary_entity]))</b>
                 </div>
-                <div class="form-group">
-                    <div style="text-align:center;">
-                        <button type="submit" class="btn btn-default" [disabled]="!basketForm.form.valid || !basketIdAvailable">{{lang.save}}</button>
+            </mat-card-content>
+        </mat-card>
+        <mat-tab-group [(selectedIndex)]="selectedTabIndex_2" *ngIf="!creationMode">
+            <mat-tab *ngFor="let group of basketGroups;let i = index" label="{{group.group_id}}">
+                <ng-template mat-tab-label>
+                    <span>{{group.group_id}}</span><mat-icon color="warn" class="fa fa-unlink" matTooltip="dissocier le groupe de la bannette" (click)="unlinkGroup(i)"></mat-icon>
+                </ng-template>
+                <mat-form-field class="demo-chip-list">
+                    <mat-chip-list #chipList>
+                        <span *ngFor="let action of group.groupActions">
+                            <mat-chip color="primary" [ngStyle]="{'font-weight': action.default_action_list == true ? 'bold' : ''}" style="cursor:pointer;margin:5px;" matTooltip="accéder aux paramètres" *ngIf="action.checked == true"
+                                selectable="false" removable="false" (click)="openSettings(group,action)">
+                                {{action.id}} <i class="fa fa-circle" style="font-size:4px;padding:0 5px"></i> {{action.label_action}}&nbsp;<small *ngIf="action.default_action_list == true">({{lang.default}})</small>
+                            </mat-chip>
+                        </span>
+                        
+                        <input placeholder="Action choisie" [matChipInputFor]="chipList" disabled />
+                    </mat-chip-list>
+                </mat-form-field>
+                <mat-accordion>
+                <mat-expansion-panel (opened)="initAction(i)">
+                    <mat-expansion-panel-header>
+                        <mat-panel-title>
+                            {{lang.actionAvailable}}
+                        </mat-panel-title>
+                    </mat-expansion-panel-header>
+                    <div class="example-container">
+                            <mat-form-field>
+                                <input matInput (keyup)="applyFilter($event.target.value)" placeholder="{{lang.filterBy}}">
+                            </mat-form-field>
+
+                        <mat-table #table [dataSource]="dataSource" matSort matSortActive="label_action" matSortDirection="asc">
+                            <ng-container matColumnDef="label_action">
+                                <mat-header-cell *matHeaderCellDef></mat-header-cell>
+                                <mat-cell *matCellDef="let element" style="flex:6;">
+                                    <mat-checkbox color="primary" (change)="addAction(group)" [(ngModel)]="element.checked">{{element.label_action}}</mat-checkbox> <small>({{element.origin}})</small>
+                                </mat-cell>
+                            </ng-container>
+                            <ng-container matColumnDef="actions">
+                                <mat-header-cell *matHeaderCellDef></mat-header-cell>
+                                <mat-cell *matCellDef="let element" style="text-align:right">
+                                    <button mat-icon-button [matMenuTriggerFor]="menu" [disabled]="!element.checked">
+                                        <mat-icon class="fa fa-bars"></mat-icon>
+                                    </button>
+                                    <mat-menu #menu="matMenu">
+                                        <button mat-menu-item [disabled]="element.default_action_list==true" (click)="setDefaultAction(group,element)">
+                                            <mat-icon class="fa fa-check-circle"></mat-icon>
+                                            <span>{{lang.defaultAction}}</span>
+                                        </button>
+                                        <button mat-menu-item (click)="openSettings(group,element)">
+                                            <mat-icon class="fa fa-cogs"></mat-icon>
+                                            <span>{{lang.moreOptions}}</span>
+                                        </button>
+                                    </mat-menu>
+                                </mat-cell>
+                            </ng-container>
+                            <mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
+                        </mat-table>
                     </div>
-                </div>
-            </form>
+                </mat-expansion-panel>
+            </mat-accordion>
+            </mat-tab>
+        </mat-tab-group>
+        <div class="col-md-12 text-center" *ngIf="!creationMode">
+            <button mat-raised-button color="primary" (click)="linkGroup()">{{lang.linkGroup}}</button>
         </div>
+        
     </div>
-</div>
+</div>
\ No newline at end of file
diff --git a/apps/maarch_entreprise/Views/baskets-administration.component.html b/apps/maarch_entreprise/Views/baskets-administration.component.html
index 4a618ff9448d12f038c56d28a12ba7b624123e76..d99c64444ca8c907a7a7c77567f1afa1b632bd63 100644
--- a/apps/maarch_entreprise/Views/baskets-administration.component.html
+++ b/apps/maarch_entreprise/Views/baskets-administration.component.html
@@ -1,51 +1,60 @@
+<div class="page-header">
+    <h1>{{lang.administration}} {{lang.baskets}}
+        <small>{{baskets.length}} {{lang.baskets}}</small>
+    </h1>
+</div>
 <div *ngIf="loading">
-    <i class="fa fa-spinner fa-spin fa-5x" style="margin-left: 50%;margin-top: 16%;font-size: 8em"></i>
+    <mat-spinner style="margin:auto;"></mat-spinner>
 </div>
 <div *ngIf="!loading" class="container-fluid">
-    <h1 style="margin-top: 0"><i class="fa fa-inbox fa-2x"></i> {{lang.administration}}</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/baskets/new">
-                        <a title="{{lang.newElement}}"><i class="fa fa-user-plus"></i></a>
-                    </li>
-                </ul>
-            </div>
+    <div class="col-md-12">
+        <div class="example-container">
+            <mat-grid-list cols="3" rowHeight="100px">
+                <mat-grid-tile>
+                    <mat-paginator #paginator [length]="100" [pageSize]="10" [pageSizeOptions]="[10, 25, 50, 100]">
+                    </mat-paginator>
+                </mat-grid-tile>
+                <mat-grid-tile></mat-grid-tile>
+                <mat-grid-tile>
+                    <mat-form-field>
+                        <input matInput (keyup)="applyFilter($event.target.value)" placeholder="{{lang.filterBy}}">
+                    </mat-form-field>
+                </mat-grid-tile>
+            </mat-grid-list>
+            <mat-table #table [dataSource]="dataSource" matSort matSortActive="basket_id" matSortDirection="asc">
+                <ng-container matColumnDef="basket_id">
+                    <mat-header-cell *matHeaderCellDef mat-sort-header>{{lang.id}}</mat-header-cell>
+                    <mat-cell *matCellDef="let element"> {{element.basket_id}} </mat-cell>
+                </ng-container>
+                <ng-container matColumnDef="basket_name">
+                    <mat-header-cell *matHeaderCellDef mat-sort-header>{{lang.label}}</mat-header-cell>
+                    <mat-cell *matCellDef="let element"> {{element.basket_name}} </mat-cell>
+                </ng-container>
+                <ng-container matColumnDef="basket_desc">
+                    <mat-header-cell *matHeaderCellDef mat-sort-header>{{lang.description}}</mat-header-cell>
+                    <mat-cell *matCellDef="let element"> {{element.basket_desc}} </mat-cell>
+                </ng-container>
+                <ng-container matColumnDef="actions">
+                    <mat-header-cell *matHeaderCellDef style="text-align: right;padding: 10px">
+                        <button mat-mini-fab color="default" matTooltip="{{lang.basketsOrder}}">
+                            <mat-icon class="fa fa-list-ol" aria-hidden="true"></mat-icon>
+                        </button>
+                        <button mat-mini-fab color="accent" matTooltip="{{lang.add}}" routerLink="/administration/baskets/new">
+                            <mat-icon class="fa fa-plus" aria-hidden="true"></mat-icon>
+                        </button>
+                    </mat-header-cell>
+                    <mat-cell *matCellDef="let element" style="text-align: right;">
+                        <button mat-icon-button color="primary" matTooltip="{{lang.update}}" routerLink="/administration/baskets/{{element.basket_id}}">
+                            <mat-icon class="fa fa-edit fa-2x" aria-hidden="true"></mat-icon>
+                        </button>
+                        <button mat-icon-button color="warn" matTooltip="{{lang.delete}}" (click)="delete(element)">
+                            <mat-icon class="fa fa-trash fa-2x" aria-hidden="true"></mat-icon>
+                        </button>
+                    </mat-cell>
+                </ng-container>
+                <mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
+                <mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
+            </mat-table>
         </div>
-    </nav>
-    <div class="col-md-12" style="margin-top: 1%">
-        <table id="usersTable" class="display" style="width: 100%" cellspacing="0" border="0">
-            <thead>
-                <tr>
-                    <th style="width:15%;" valign="bottom" align="left"><span>{{lang.id}}</span></th>
-                    <th style="width:20%;" valign="bottom" align="left"><span>{{lang.basket}}</span></th>
-                    <th style="width:20%;" valign="bottom" align="left"><span>{{lang.description}}</span></th>
-                    <th style="width:20%;"><span>&nbsp;</span></th>
-                </tr>
-            </thead>
-            <tbody>
-                <tr *ngFor="let basket of baskets">
-                    <td>{{basket.basket_id}}</td>
-                    <td>{{basket.basket_name}}</td>
-                    <td>{{basket.basket_desc}}</td>
-                    <td style="text-align:right;">
-                        <div class="btn-group" role="group" aria-label="...">
-                            <button routerLink="/administration/baskets/{{basket.basket_id}}" type="button" class="btn btn-default" title="{{lang.edit}}">
-                                <a><i style="cursor:pointer" class="fa fa-edit"></i></a>
-                            </button>
-                            <button (click)="delete(basket)" type="button" class="btn btn-danger" title="{{lang.delete}}">
-                                <a><i style="cursor:pointer" class="fa fa-times"></i></a>
-                            </button>
-                        </div>
-                    </td>
-                </tr>
-            </tbody>
-        </table>
     </div>
-</div>
+</div>
\ No newline at end of file
diff --git a/apps/maarch_entreprise/css/engine.css b/apps/maarch_entreprise/css/engine.css
index d24591f6e441288b7d1900d1e54ff7a5617fdc02..03dba44c4fa010c07139ec717d04de1c4ea8769f 100755
--- a/apps/maarch_entreprise/css/engine.css
+++ b/apps/maarch_entreprise/css/engine.css
@@ -1,3 +1,26 @@
+/*@font-face {
+    font-family: 'Material Icons';
+    font-style: normal;
+    font-weight: 400;
+    src: url(https://fonts.gstatic.com/s/materialicons/v36/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');
+  }
+  
+  .material-icons {
+    font-family: 'Material Icons';
+    font-weight: normal;
+    font-style: normal;
+    font-size: 24px;
+    line-height: 1;
+    letter-spacing: normal;
+    text-transform: none;
+    display: inline-block;
+    white-space: nowrap;
+    word-wrap: normal;
+    direction: ltr;
+    -moz-font-feature-settings: 'liga';
+    -moz-osx-font-smoothing: grayscale;
+  }*/
+  
 /******* CORECTION BUG CSS WITH V1 (A SUPPRIMER A LA FIN) *********/
 .page-header h1{
     margin-top: 10px !important;
@@ -102,6 +125,16 @@ table tr:not(.filters) .mat-input-container{
 .jstree-clicked {
     background: #135f7f;
 }
+mat-header-row{
+    box-shadow: 0 4px 2px -2px gray;
+}
+mat-row:nth-child(even){
+    background: rgba(19, 95, 127, 0.1);
+    }
+
+/*mat-row:nth-child(odd){
+    background-color:black;
+    }*/
 
 /*** FIX BUG EXPANSION PANEL MATERIAL WITH TABS (DELETE AFTER CORRECTION) ***/
 div.mat-expansion-panel-content:not(.mat-expanded) {
@@ -127,6 +160,16 @@ div.mat-expansion-panel-content:not(.mat-expanded) {
 }
 /*********************************/
 
+
+/*** FIX FA ICON INSIDE MAT BUTTON ***/
+
+button .mat-icon{
+    height: auto;
+}
+
+/*********************************/
+
+
 .example-headers-align .mat-expansion-panel-header-title, 
 .example-headers-align .mat-expansion-panel-header-description {
   /*flex-basis: 0;*/
diff --git a/apps/maarch_entreprise/js/angular/app/administration/administration.module.js b/apps/maarch_entreprise/js/angular/app/administration/administration.module.js
index 8e803ce36bbf826e69c8464bedba24e15eb5ee3a..778e69b99606c5edb7fdb109067364fa93842794 100644
--- a/apps/maarch_entreprise/js/angular/app/administration/administration.module.js
+++ b/apps/maarch_entreprise/js/angular/app/administration/administration.module.js
@@ -77,11 +77,15 @@ var AdministrationModule = /** @class */ (function () {
                 notifications_schedule_administration_component_1.NotificationsScheduleAdministrationComponent,
                 notification_administration_component_1.NotificationAdministrationComponent,
                 users_administration_component_1.UsersAdministrationRedirectModalComponent,
-                groups_administration_component_1.GroupsAdministrationRedirectModalComponent
+                groups_administration_component_1.GroupsAdministrationRedirectModalComponent,
+                basket_administration_component_1.BasketAdministrationSettingsModalComponent,
+                basket_administration_component_1.BasketAdministrationGroupListModalComponent
             ],
             entryComponents: [
                 users_administration_component_1.UsersAdministrationRedirectModalComponent,
-                groups_administration_component_1.GroupsAdministrationRedirectModalComponent
+                groups_administration_component_1.GroupsAdministrationRedirectModalComponent,
+                basket_administration_component_1.BasketAdministrationSettingsModalComponent,
+                basket_administration_component_1.BasketAdministrationGroupListModalComponent
             ],
         })
     ], AdministrationModule);
diff --git a/apps/maarch_entreprise/js/angular/app/administration/administration.module.ts b/apps/maarch_entreprise/js/angular/app/administration/administration.module.ts
index b0c86c5ef61a76ba6aa4bb9dcfbb6e0c26d2bd79..bbf049b46a07955aa9cfb85e74a5d7841f053337 100755
--- a/apps/maarch_entreprise/js/angular/app/administration/administration.module.ts
+++ b/apps/maarch_entreprise/js/angular/app/administration/administration.module.ts
@@ -13,7 +13,7 @@ import { UserAdministrationComponent }                  from './user-administrat
 import { GroupAdministrationComponent }                 from './group-administration.component';
 import { BasketsAdministrationComponent }               from './baskets-administration.component';
 import { BasketsOrderAdministrationComponent }          from './baskets-order-administration.component';
-import { BasketAdministrationComponent }                from './basket-administration.component';
+import { BasketAdministrationComponent, BasketAdministrationSettingsModalComponent, BasketAdministrationGroupListModalComponent }                from './basket-administration.component';
 import { EntitiesAdministrationComponent }              from './entities-administration.component';
 import { EntityAdministrationComponent }                from './entity-administration.component';
 import { StatusesAdministrationComponent }              from './statuses-administration.component';
@@ -69,11 +69,15 @@ import { NotificationAdministrationComponent }          from './notification-adm
         NotificationsScheduleAdministrationComponent,
         NotificationAdministrationComponent,
         UsersAdministrationRedirectModalComponent,
-        GroupsAdministrationRedirectModalComponent
+        GroupsAdministrationRedirectModalComponent,
+        BasketAdministrationSettingsModalComponent,
+        BasketAdministrationGroupListModalComponent
     ],
     entryComponents: [
         UsersAdministrationRedirectModalComponent,
-        GroupsAdministrationRedirectModalComponent
+        GroupsAdministrationRedirectModalComponent,
+        BasketAdministrationSettingsModalComponent,
+        BasketAdministrationGroupListModalComponent
     ],
 })
 export class AdministrationModule { }
\ No newline at end of file
diff --git a/apps/maarch_entreprise/js/angular/app/administration/basket-administration.component.js b/apps/maarch_entreprise/js/angular/app/administration/basket-administration.component.js
index d57f924ed20d29ab726eea2c9b5ff4c091b8037b..1e2a1f1955e5291901e39531499dd1c04e132017 100644
--- a/apps/maarch_entreprise/js/angular/app/administration/basket-administration.component.js
+++ b/apps/maarch_entreprise/js/angular/app/administration/basket-administration.component.js
@@ -1,4 +1,14 @@
 "use strict";
+var __extends = (this && this.__extends) || (function () {
+    var extendStatics = Object.setPrototypeOf ||
+        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
+        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
+    return function (d, b) {
+        extendStatics(d, b);
+        function __() { this.constructor = d; }
+        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
+    };
+})();
 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);
@@ -8,41 +18,63 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
 var __metadata = (this && this.__metadata) || function (k, v) {
     if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
 };
+var __param = (this && this.__param) || function (paramIndex, decorator) {
+    return function (target, key) { decorator(target, key, paramIndex); }
+};
 Object.defineProperty(exports, "__esModule", { value: true });
 var core_1 = require("@angular/core");
 var http_1 = require("@angular/common/http");
 var router_1 = require("@angular/router");
 var translate_component_1 = require("../translate.component");
 var notification_service_1 = require("../notification.service");
+var material_1 = require("@angular/material");
+var autocomplete_plugin_1 = require("../../plugins/autocomplete.plugin");
 var BasketAdministrationComponent = /** @class */ (function () {
-    function BasketAdministrationComponent(http, route, router, notify) {
+    function BasketAdministrationComponent(http, route, router, notify, dialog) {
         this.http = http;
         this.route = route;
         this.router = router;
         this.notify = notify;
+        this.dialog = dialog;
         this.lang = translate_component_1.LANG;
+        this.config = {};
         this.basket = {};
         this.basketGroups = [];
+        this.allGroups = [];
+        this.actionsList = [];
+        this.resultPages = [];
         this.loading = false;
+        this.displayedColumns = ['label_action', 'actions'];
     }
+    BasketAdministrationComponent.prototype.applyFilter = function (filterValue) {
+        filterValue = filterValue.trim(); // Remove whitespace
+        filterValue = filterValue.toLowerCase(); // MatTableDataSource defaults to lowercase matches
+        this.dataSource.filter = filterValue;
+    };
     BasketAdministrationComponent.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/baskets\"' style='cursor: pointer'>Bannettes</a>";
+        var breadCrumb = "<a href='index.php?reinit=true'>" + applicationName + "</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>" + this.lang.administration + "</a> > <a onclick='location.hash = \"/administration/baskets\"' style='cursor: pointer'>" + this.lang.baskets + "</a> > ";
+        if (this.creationMode == true) {
+            breadCrumb += this.lang.basketCreation;
         }
+        else {
+            breadCrumb += this.lang.basketModification;
+        }
+        $j('#ariane')[0].innerHTML = breadCrumb;
     };
     BasketAdministrationComponent.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.updateBreadcrumb(angularGlobals.applicationName);
                 _this.basketIdAvailable = false;
                 _this.loading = false;
             }
             else {
                 _this.creationMode = false;
+                _this.updateBreadcrumb(angularGlobals.applicationName);
                 _this.basketIdAvailable = true;
                 _this.id = params['id'];
                 _this.http.get(_this.coreUrl + "rest/baskets/" + _this.id)
@@ -57,7 +89,24 @@ var BasketAdministrationComponent = /** @class */ (function () {
                     _this.basket.flagNotif = data.basket.flag_notif == "Y";
                     _this.http.get(_this.coreUrl + "rest/baskets/" + _this.id + "/groups")
                         .subscribe(function (data) {
+                        _this.allGroups = data.allGroups;
+                        _this.allGroups.forEach(function (tmpAllGroup) {
+                            tmpAllGroup.isUsed = false;
+                            data.groups.forEach(function (tmpGroup) {
+                                if (tmpAllGroup.group_id == tmpGroup.group_id) {
+                                    tmpAllGroup.isUsed = true;
+                                }
+                            });
+                        });
+                        data.groups.forEach(function (tmpGroup) {
+                            tmpGroup.groupActions.forEach(function (tmpAction) {
+                                tmpAction.used_in_basketlist = tmpAction.used_in_basketlist == "Y";
+                                tmpAction.used_in_action_page = tmpAction.used_in_action_page == "Y";
+                                tmpAction.default_action_list = tmpAction.default_action_list == "Y";
+                            });
+                        });
                         _this.basketGroups = data.groups;
+                        _this.resultPages = data.pages;
                         _this.loading = false;
                     }, function () {
                         location.href = "index.php";
@@ -68,6 +117,23 @@ var BasketAdministrationComponent = /** @class */ (function () {
             }
         });
     };
+    BasketAdministrationComponent.prototype.openSettings = function (group, action) {
+        var _this = this;
+        this.config = { data: { group: group, action: action, pages: this.resultPages } };
+        this.dialogRef = this.dialog.open(BasketAdministrationSettingsModalComponent, this.config);
+        this.dialogRef.afterClosed().subscribe(function (result) {
+            if (result) {
+                _this.http.put(_this.coreUrl + "rest/baskets/" + _this.id + "/groups/" + result.group.group_id, { 'result_page': result.group.result_page, 'groupActions': result.group.groupActions })
+                    .subscribe(function (data) {
+                    //this.basketGroups.push(data);
+                    _this.notify.success(_this.lang.basketUpdated);
+                }, function (err) {
+                    _this.notify.error(err.error.errors);
+                });
+            }
+            _this.dialogRef = null;
+        });
+    };
     BasketAdministrationComponent.prototype.isAvailable = function () {
         var _this = this;
         if (this.basket.id) {
@@ -106,13 +172,405 @@ var BasketAdministrationComponent = /** @class */ (function () {
             });
         }
     };
+    BasketAdministrationComponent.prototype.toggleKeywordHelp = function () {
+        $j('#keywordHelp').toggle("slow");
+    };
+    BasketAdministrationComponent.prototype.initAction = function (groupIndex) {
+        this.dataSource = new material_1.MatTableDataSource(this.basketGroups[groupIndex].groupActions);
+        this.dataSource.sort = this.sort;
+    };
+    BasketAdministrationComponent.prototype.setDefaultAction = function (group, action) {
+        group.groupActions.forEach(function (tmpAction) {
+            if (action.id == tmpAction.id) {
+                tmpAction.default_action_list = true;
+            }
+            else {
+                tmpAction.default_action_list = false;
+            }
+        });
+    };
+    BasketAdministrationComponent.prototype.unlinkGroup = function (groupIndex) {
+        var _this = this;
+        var r = confirm(this.lang.unlinkGroup + ' ?');
+        if (r) {
+            this.http.delete(this.coreUrl + "rest/baskets/" + this.id + "/groups/" + this.basketGroups[groupIndex].group_id)
+                .subscribe(function (data) {
+                _this.allGroups.forEach(function (tmpGroup) {
+                    if (tmpGroup.group_id == _this.basketGroups[groupIndex].group_id) {
+                        tmpGroup.isUsed = false;
+                    }
+                });
+                _this.basketGroups.splice(groupIndex, 1);
+                _this.notify.success(_this.lang.basketUpdated);
+            }, function (err) {
+                _this.notify.error(err.error.errors);
+            });
+        }
+    };
+    BasketAdministrationComponent.prototype.linkGroup = function () {
+        var _this = this;
+        this.config = { data: { basketId: this.basket.basket_id, groups: this.allGroups, linkedGroups: this.basketGroups } };
+        this.dialogRef = this.dialog.open(BasketAdministrationGroupListModalComponent, this.config);
+        this.dialogRef.afterClosed().subscribe(function (result) {
+            if (result) {
+                _this.http.post(_this.coreUrl + "rest/baskets/" + _this.id + "/groups", result)
+                    .subscribe(function (data) {
+                    _this.basketGroups.push(result);
+                    _this.allGroups.forEach(function (tmpGroup) {
+                        if (tmpGroup.group_id == result.group_id) {
+                            tmpGroup.isUsed = true;
+                        }
+                    });
+                    _this.notify.success(_this.lang.basketUpdated);
+                }, function (err) {
+                    _this.notify.error(err.error.errors);
+                });
+            }
+            _this.dialogRef = null;
+        });
+    };
+    BasketAdministrationComponent.prototype.addAction = function (group) {
+        var _this = this;
+        this.http.put(this.coreUrl + "rest/baskets/" + this.id + "/groups/" + group.group_id, { 'result_page': group.result_page, 'groupActions': group.groupActions })
+            .subscribe(function (data) {
+            //this.basketGroups.push(data);
+            _this.notify.success(_this.lang.basketUpdated);
+        }, function (err) {
+            _this.notify.error(err.error.errors);
+        });
+    };
+    __decorate([
+        core_1.ViewChild(material_1.MatPaginator),
+        __metadata("design:type", material_1.MatPaginator)
+    ], BasketAdministrationComponent.prototype, "paginator", void 0);
+    __decorate([
+        core_1.ViewChild(material_1.MatSort),
+        __metadata("design:type", material_1.MatSort)
+    ], BasketAdministrationComponent.prototype, "sort", void 0);
     BasketAdministrationComponent = __decorate([
         core_1.Component({
             templateUrl: angularGlobals["basket-administrationView"],
             providers: [notification_service_1.NotificationService]
         }),
-        __metadata("design:paramtypes", [http_1.HttpClient, router_1.ActivatedRoute, router_1.Router, notification_service_1.NotificationService])
+        __metadata("design:paramtypes", [http_1.HttpClient, router_1.ActivatedRoute, router_1.Router, notification_service_1.NotificationService, material_1.MatDialog])
     ], BasketAdministrationComponent);
     return BasketAdministrationComponent;
 }());
 exports.BasketAdministrationComponent = BasketAdministrationComponent;
+var BasketAdministrationSettingsModalComponent = /** @class */ (function (_super) {
+    __extends(BasketAdministrationSettingsModalComponent, _super);
+    function BasketAdministrationSettingsModalComponent(http, data, dialogRef) {
+        var _this = _super.call(this, http, 'users') || this;
+        _this.http = http;
+        _this.data = data;
+        _this.dialogRef = dialogRef;
+        _this.lang = translate_component_1.LANG;
+        _this.allEntities = [];
+        return _this;
+    }
+    BasketAdministrationSettingsModalComponent.prototype.ngOnInit = function () {
+        var _this = this;
+        this.http.get(this.coreUrl + "rest/entities")
+            .subscribe(function (entities) {
+            var keywordEntities = [{
+                    id: 'ALL_ENTITIES',
+                    keyword: 'ALL_ENTITIES',
+                    parent: '#',
+                    icon: 'fa fa-hashtag',
+                    allowed: true,
+                    text: 'Toute les entités'
+                }, {
+                    id: 'ENTITIES_JUST_BELOW',
+                    keyword: 'ENTITIES_JUST_BELOW',
+                    parent: '#',
+                    icon: 'fa fa-hashtag',
+                    allowed: true,
+                    text: "Immédiatement inférieur à mon entité primaire"
+                }, {
+                    id: 'ENTITIES_BELOW',
+                    keyword: 'ENTITIES_BELOW',
+                    parent: '#',
+                    icon: 'fa fa-hashtag',
+                    allowed: true,
+                    text: "Inférieur à toutes mes entités"
+                }, {
+                    id: 'ALL_ENTITIES_BELOW',
+                    keyword: 'ALL_ENTITIES_BELOW',
+                    parent: '#',
+                    icon: 'fa fa-hashtag',
+                    allowed: true,
+                    text: "Inférieur à mon entité primaire"
+                }, {
+                    id: 'MY_ENTITIES',
+                    keyword: 'MY_ENTITIES',
+                    parent: '#',
+                    icon: 'fa fa-hashtag',
+                    allowed: true,
+                    text: "Mes entités"
+                }, {
+                    id: 'MY_PRIMARY_ENTITY',
+                    keyword: 'MY_PRIMARY_ENTITY',
+                    parent: '#',
+                    icon: 'fa fa-hashtag',
+                    allowed: true,
+                    text: "Mon entité primaire"
+                }, {
+                    id: 'SAME_LEVEL_ENTITIES',
+                    keyword: 'SAME_LEVEL_ENTITIES',
+                    parent: '#',
+                    icon: 'fa fa-hashtag',
+                    allowed: true,
+                    text: "Même niveau de mon entité primaire"
+                }];
+            keywordEntities.forEach(function (keyword) {
+                _this.allEntities.push(keyword);
+            });
+            entities.entities.forEach(function (entity) {
+                _this.allEntities.push(entity);
+            });
+        }, function () {
+            location.href = "index.php";
+        });
+        this.http.get(this.coreUrl + 'rest/statuses')
+            .subscribe(function (data) {
+            _this.statuses = data.statuses;
+        });
+    };
+    BasketAdministrationSettingsModalComponent.prototype.initService = function () {
+        var _this = this;
+        this.allEntities.forEach(function (entity) {
+            entity.state = { "opened": false, "selected": false };
+            _this.data.action.redirects.forEach(function (keyword) {
+                if (entity.id == keyword.keyword && keyword.redirect_mode == 'ENTITY') {
+                    entity.state = { "opened": true, "selected": true };
+                }
+            });
+        });
+        $j('#jstree').jstree({
+            "checkbox": {
+                "three_state": false //no cascade selection
+            },
+            'core': {
+                'themes': {
+                    'name': 'proton',
+                    'responsive': true
+                },
+                'data': this.allEntities
+            },
+            "plugins": ["checkbox", "search"]
+        });
+        $j('#jstree')
+            .on('select_node.jstree', function (e, data) {
+            if (data.node.original.keyword) {
+                _this.data.action.redirects.push({ action_id: _this.data.action.id, entity_id: '', keyword: data.node.id, redirect_mode: 'ENTITY' });
+            }
+            else {
+                _this.data.action.redirects.push({ action_id: _this.data.action.id, entity_id: data.node.id, keyword: '', redirect_mode: 'ENTITY' });
+            }
+        }).on('deselect_node.jstree', function (e, data) {
+            _this.data.action.redirects.forEach(function (redirect) {
+                if (data.node.original.keyword) {
+                    if (redirect.keyword == data.node.original.keyword) {
+                        var index = _this.data.action.redirects.indexOf(redirect);
+                        _this.data.action.redirects.splice(index, 1);
+                    }
+                }
+                else {
+                    if (redirect.entity_id == data.node.id) {
+                        var index = _this.data.action.redirects.indexOf(redirect);
+                        _this.data.action.redirects.splice(index, 1);
+                    }
+                }
+            });
+        })
+            .jstree();
+        var to = false;
+        $j('#jstree_search').keyup(function () {
+            if (to) {
+                clearTimeout(to);
+            }
+            to = setTimeout(function () {
+                var v = $j('#jstree_search').val();
+                $j('#jstree').jstree(true).search(v);
+            }, 250);
+        });
+    };
+    BasketAdministrationSettingsModalComponent.prototype.initService2 = function () {
+        var _this = this;
+        this.allEntities.forEach(function (entity) {
+            entity.state = { "opened": false, "selected": false };
+            _this.data.action.redirects.forEach(function (keyword) {
+                if (entity.id == keyword.keyword && keyword.redirect_mode == 'USERS') {
+                    entity.state = { "opened": true, "selected": true };
+                }
+            });
+        });
+        $j('#jstree2').jstree({
+            "checkbox": {
+                "three_state": false //no cascade selection
+            },
+            'core': {
+                'themes': {
+                    'name': 'proton',
+                    'responsive': true
+                },
+                'data': this.allEntities
+            },
+            "plugins": ["checkbox", "search"]
+        });
+        $j('#jstree2')
+            .on('select_node.jstree', function (e, data) {
+            if (data.node.original.keyword) {
+                _this.data.action.redirects.push({ action_id: _this.data.action.id, entity_id: '', keyword: data.node.id, redirect_mode: 'USERS' });
+            }
+            else {
+                _this.data.action.redirects.push({ action_id: _this.data.action.id, entity_id: data.node.id, keyword: '', redirect_mode: 'USERS' });
+            }
+        }).on('deselect_node.jstree', function (e, data) {
+            _this.data.action.redirects.forEach(function (redirect) {
+                if (data.node.original.keyword) {
+                    if (redirect.keyword == data.node.original.keyword) {
+                        var index = _this.data.action.redirects.indexOf(redirect);
+                        _this.data.action.redirects.splice(index, 1);
+                    }
+                }
+                else {
+                    if (redirect.entity_id == data.node.id) {
+                        var index = _this.data.action.redirects.indexOf(redirect);
+                        _this.data.action.redirects.splice(index, 1);
+                    }
+                }
+            });
+        })
+            .jstree();
+        var to = false;
+        $j('#jstree_search2').keyup(function () {
+            if (to) {
+                clearTimeout(to);
+            }
+            to = setTimeout(function () {
+                var v = $j('#jstree_search2').val();
+                $j('#jstree2').jstree(true).search(v);
+            }, 250);
+        });
+    };
+    BasketAdministrationSettingsModalComponent = __decorate([
+        core_1.Component({
+            templateUrl: angularGlobals["basket-administration-settings-modalView"],
+            styles: [".mat-dialog-content{height: 65vh;}"]
+        }),
+        __param(1, core_1.Inject(material_1.MAT_DIALOG_DATA)),
+        __metadata("design:paramtypes", [http_1.HttpClient, Object, material_1.MatDialogRef])
+    ], BasketAdministrationSettingsModalComponent);
+    return BasketAdministrationSettingsModalComponent;
+}(autocomplete_plugin_1.AutoCompletePlugin));
+exports.BasketAdministrationSettingsModalComponent = BasketAdministrationSettingsModalComponent;
+var forms_1 = require("@angular/forms");
+var BasketAdministrationGroupListModalComponent = /** @class */ (function () {
+    function BasketAdministrationGroupListModalComponent(http, data, dialogRef, _formBuilder) {
+        this.http = http;
+        this.data = data;
+        this.dialogRef = dialogRef;
+        this._formBuilder = _formBuilder;
+        this.lang = translate_component_1.LANG;
+        this.displayedColumns = ['label_action'];
+        this.actionAll = [];
+        this.newBasketGroup = {};
+    }
+    BasketAdministrationGroupListModalComponent.prototype.applyFilter = function (filterValue) {
+        filterValue = filterValue.trim(); // Remove whitespace
+        filterValue = filterValue.toLowerCase(); // MatTableDataSource defaults to lowercase matches
+        this.dataSource.filter = filterValue;
+    };
+    BasketAdministrationGroupListModalComponent.prototype.applyFilter2 = function (filterValue) {
+        filterValue = filterValue.trim(); // Remove whitespace
+        filterValue = filterValue.toLowerCase(); // MatTableDataSource defaults to lowercase matches
+        this.dataSource2.filter = filterValue;
+    };
+    BasketAdministrationGroupListModalComponent.prototype.ngOnInit = function () {
+        var _this = this;
+        this.coreUrl = angularGlobals.coreUrl;
+        this.http.get(this.coreUrl + "rest/actions")
+            .subscribe(function (data) {
+            data.actions.forEach(function (tmpAction) {
+                tmpAction.where_clause = "";
+                tmpAction.used_in_basketlist = false;
+                tmpAction.default_action_list = false;
+                tmpAction.used_in_action_page = true;
+                tmpAction.statuses = [];
+                tmpAction.redirects = [];
+                tmpAction.checked = false;
+                _this.actionAll.push(tmpAction);
+            });
+            _this.dataSource = new material_1.MatTableDataSource(_this.actionAll);
+            _this.dataSource.sort = _this.sort;
+            _this.dataSource.paginator = _this.paginator;
+            _this.dataSource2 = new material_1.MatTableDataSource(_this.actionAll);
+            _this.dataSource2.sort = _this.sort;
+            _this.dataSource2.paginator = _this.paginator2;
+        }, function (err) {
+            location.href = "index.php";
+        });
+        this.firstFormGroup = this._formBuilder.group({
+            firstCtrl: ['', forms_1.Validators.required]
+        });
+        this.secondFormGroup = this._formBuilder.group({
+            secondCtrl: ['', forms_1.Validators.required]
+        });
+        this.data.groups.forEach(function (tmpGroup) {
+            _this.data.linkedGroups.forEach(function (tmpLinkedGroup) {
+                if (tmpGroup.group_id == tmpLinkedGroup.group_id) {
+                    var index = _this.data.groups.indexOf(tmpGroup);
+                    _this.data.groups.splice(index, 1);
+                }
+            });
+        });
+    };
+    BasketAdministrationGroupListModalComponent.prototype.initAction = function (actionType) {
+        this.dataSource.filter = actionType.value;
+    };
+    BasketAdministrationGroupListModalComponent.prototype.selectDefaultAction = function (action) {
+        this.actionAll.forEach(function (tmpAction) {
+            if (action.id == tmpAction.id) {
+                tmpAction.checked = true;
+                tmpAction.default_action_list = true;
+            }
+            else {
+                tmpAction.checked = false;
+                tmpAction.default_action_list = false;
+            }
+        });
+    };
+    BasketAdministrationGroupListModalComponent.prototype.selectAction = function (e, action) {
+        action.checked = e.checked;
+    };
+    BasketAdministrationGroupListModalComponent.prototype.validateForm = function () {
+        this.newBasketGroup.group_id = this.groupId;
+        this.newBasketGroup.basket_id = this.data.basketId;
+        this.newBasketGroup.result_page = 'list_with_attachments';
+        this.newBasketGroup.groupActions = this.actionAll;
+        this.dialogRef.close(this.newBasketGroup);
+    };
+    __decorate([
+        core_1.ViewChild(material_1.MatSort),
+        __metadata("design:type", material_1.MatSort)
+    ], BasketAdministrationGroupListModalComponent.prototype, "sort", void 0);
+    __decorate([
+        core_1.ViewChild('paginator'),
+        __metadata("design:type", material_1.MatPaginator)
+    ], BasketAdministrationGroupListModalComponent.prototype, "paginator", void 0);
+    __decorate([
+        core_1.ViewChild('paginator2'),
+        __metadata("design:type", material_1.MatPaginator)
+    ], BasketAdministrationGroupListModalComponent.prototype, "paginator2", void 0);
+    BasketAdministrationGroupListModalComponent = __decorate([
+        core_1.Component({
+            templateUrl: angularGlobals["basket-administration-groupList-modalView"],
+            styles: [".mat-dialog-content{height: 65vh;}"]
+        }),
+        __param(1, core_1.Inject(material_1.MAT_DIALOG_DATA)),
+        __metadata("design:paramtypes", [http_1.HttpClient, Object, material_1.MatDialogRef, forms_1.FormBuilder])
+    ], BasketAdministrationGroupListModalComponent);
+    return BasketAdministrationGroupListModalComponent;
+}());
+exports.BasketAdministrationGroupListModalComponent = BasketAdministrationGroupListModalComponent;
diff --git a/apps/maarch_entreprise/js/angular/app/administration/basket-administration.component.ts b/apps/maarch_entreprise/js/angular/app/administration/basket-administration.component.ts
index 16f993d8e3d41931f41b8630eba5a235dace92d1..aa0997e57d16970fcfa713f423aa9e822d2c32f4 100644
--- a/apps/maarch_entreprise/js/angular/app/administration/basket-administration.component.ts
+++ b/apps/maarch_entreprise/js/angular/app/administration/basket-administration.component.ts
@@ -1,44 +1,64 @@
-import { Component, OnInit} from '@angular/core';
+import { Component, OnInit, Inject, TemplateRef, ViewChild } from '@angular/core';
 import { HttpClient } from '@angular/common/http';
 import { Router, ActivatedRoute } from '@angular/router';
 import { LANG } from '../translate.component';
 import { NotificationService } from '../notification.service';
+import { MatPaginator, MatTableDataSource, MatSort, MatDialog, MatDialogConfig, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
 
-declare function $j(selector: any) : any;
+import { AutoCompletePlugin } from '../../plugins/autocomplete.plugin';
 
-declare var angularGlobals : any;
+declare function $j(selector: any): any;
+
+declare var angularGlobals: any;
 
 
 @Component({
-    templateUrl : angularGlobals["basket-administrationView"],
-    providers   : [NotificationService]
+    templateUrl: angularGlobals["basket-administrationView"],
+    providers: [NotificationService]
 })
 export class BasketAdministrationComponent implements OnInit {
 
-    coreUrl             : string;
-    lang                : any       = LANG;
+    coreUrl: string;
+    lang: any = LANG;
+    dialogRef: MatDialogRef<any>;
+    config: any = {};
 
-    id                  : string;
-    creationMode        : boolean;
+    id: string;
+    creationMode: boolean;
 
-    basket              : any       = {};
-    basketGroups        : any[]     = [];
-    basketIdAvailable   : boolean;
+    basket: any = {};
+    basketGroups: any[] = [];
+    allGroups: any[] = [];
+    basketIdAvailable: boolean;
+    actionsList: any[] = [];
+    resultPages: any[] = [];
 
-    loading             : boolean   = false;
+    loading: boolean = false;
 
+    displayedColumns = ['label_action', 'actions'];
+    dataSource: any;
+    @ViewChild(MatPaginator) paginator: MatPaginator;
+    @ViewChild(MatSort) sort: MatSort;
+    applyFilter(filterValue: string) {
+        filterValue = filterValue.trim(); // Remove whitespace
+        filterValue = filterValue.toLowerCase(); // MatTableDataSource defaults to lowercase matches
+        this.dataSource.filter = filterValue;
+    }
 
-    constructor(public http: HttpClient, private route: ActivatedRoute, private router: Router, private notify: NotificationService) {
+    constructor(public http: HttpClient, private route: ActivatedRoute, private router: Router, private notify: NotificationService, public dialog: MatDialog) {
     }
 
     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/baskets\"' style='cursor: pointer'>Bannettes</a>";
+        var breadCrumb = "<a href='index.php?reinit=true'>" + applicationName + "</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>" + this.lang.administration + "</a> > <a onclick='location.hash = \"/administration/baskets\"' style='cursor: pointer'>" + this.lang.baskets + "</a> > ";
+        if (this.creationMode == true) {
+            breadCrumb += this.lang.basketCreation;
+        } else {
+            breadCrumb += this.lang.basketModification;
         }
+        $j('#ariane')[0].innerHTML = breadCrumb;
     }
 
     ngOnInit(): void {
-        this.updateBreadcrumb(angularGlobals.applicationName);
         this.coreUrl = angularGlobals.coreUrl;
 
         this.loading = true;
@@ -46,14 +66,16 @@ export class BasketAdministrationComponent implements OnInit {
         this.route.params.subscribe((params) => {
             if (typeof params['id'] == "undefined") {
                 this.creationMode = true;
+                this.updateBreadcrumb(angularGlobals.applicationName);
                 this.basketIdAvailable = false;
                 this.loading = false;
             } else {
                 this.creationMode = false;
+                this.updateBreadcrumb(angularGlobals.applicationName);
                 this.basketIdAvailable = true;
                 this.id = params['id'];
                 this.http.get(this.coreUrl + "rest/baskets/" + this.id)
-                    .subscribe((data : any) => {
+                    .subscribe((data: any) => {
                         this.basket = data.basket;
                         this.basket.id = data.basket.basket_id;
                         this.basket.name = data.basket.basket_name;
@@ -64,8 +86,27 @@ export class BasketAdministrationComponent implements OnInit {
                         this.basket.flagNotif = data.basket.flag_notif == "Y";
 
                         this.http.get(this.coreUrl + "rest/baskets/" + this.id + "/groups")
-                            .subscribe((data : any) => {
+                            .subscribe((data: any) => {
+                                this.allGroups = data.allGroups;
+
+                                this.allGroups.forEach((tmpAllGroup: any) => {
+                                    tmpAllGroup.isUsed = false;
+                                    data.groups.forEach((tmpGroup: any) => {
+                                        if (tmpAllGroup.group_id == tmpGroup.group_id) {
+                                            tmpAllGroup.isUsed = true
+                                        }
+                                    });
+                                });
+
+                                data.groups.forEach((tmpGroup: any) => {
+                                    tmpGroup.groupActions.forEach((tmpAction: any) => {
+                                        tmpAction.used_in_basketlist = tmpAction.used_in_basketlist == "Y";
+                                        tmpAction.used_in_action_page = tmpAction.used_in_action_page == "Y";
+                                        tmpAction.default_action_list = tmpAction.default_action_list == "Y";
+                                    });
+                                });
                                 this.basketGroups = data.groups;
+                                this.resultPages = data.pages;
 
                                 this.loading = false;
                             }, () => {
@@ -78,6 +119,23 @@ export class BasketAdministrationComponent implements OnInit {
         });
     }
 
+    openSettings(group: any, action: any) {
+        this.config = { data: { group: group, action: action, pages: this.resultPages } };
+        this.dialogRef = this.dialog.open(BasketAdministrationSettingsModalComponent, this.config);
+        this.dialogRef.afterClosed().subscribe((result: any) => {
+            if (result) {
+                this.http.put(this.coreUrl + "rest/baskets/" + this.id + "/groups/" + result.group.group_id, { 'result_page': result.group.result_page, 'groupActions': result.group.groupActions })
+                    .subscribe((data: any) => {
+                        //this.basketGroups.push(data);
+                        this.notify.success(this.lang.basketUpdated);
+                    }, (err) => {
+                        this.notify.error(err.error.errors);
+                    });
+            }
+            this.dialogRef = null;
+        });
+    }
+
     isAvailable() {
         if (this.basket.id) {
             this.http.get(this.coreUrl + "rest/baskets/" + this.basket.id)
@@ -97,7 +155,7 @@ export class BasketAdministrationComponent implements OnInit {
     onSubmit() {
         if (this.creationMode) {
             this.http.post(this.coreUrl + "rest/baskets", this.basket)
-                .subscribe((data : any) => {
+                .subscribe((data: any) => {
                     this.notify.success(this.lang.basketAdded);
                     this.router.navigate(["/administration/baskets"]);
                 }, (err) => {
@@ -105,7 +163,7 @@ export class BasketAdministrationComponent implements OnInit {
                 });
         } else {
             this.http.put(this.coreUrl + "rest/baskets/" + this.id, this.basket)
-                .subscribe((data : any) => {
+                .subscribe((data: any) => {
                     this.notify.success(this.lang.basketUpdated);
                     this.router.navigate(["/administration/baskets"]);
                 }, (err) => {
@@ -114,4 +172,380 @@ export class BasketAdministrationComponent implements OnInit {
         }
     }
 
+    toggleKeywordHelp() {
+        $j('#keywordHelp').toggle("slow");
+    }
+
+    initAction(groupIndex: number) {
+        this.dataSource = new MatTableDataSource(this.basketGroups[groupIndex].groupActions);
+        this.dataSource.sort = this.sort;
+    }
+
+    setDefaultAction(group: any, action: any) {
+        group.groupActions.forEach((tmpAction: any) => {
+            if (action.id == tmpAction.id) {
+                tmpAction.default_action_list = true;
+            } else {
+                tmpAction.default_action_list = false;
+            }
+        });
+    }
+
+    unlinkGroup(groupIndex: any) {
+        let r = confirm(this.lang.unlinkGroup+' ?');
+
+        if (r) {
+            this.http.delete(this.coreUrl + "rest/baskets/" + this.id + "/groups/" + this.basketGroups[groupIndex].group_id)
+                .subscribe((data: any) => {
+                    this.allGroups.forEach((tmpGroup: any) => {
+                        if (tmpGroup.group_id == this.basketGroups[groupIndex].group_id) {
+                            tmpGroup.isUsed = false;
+                        }
+                    });
+                    this.basketGroups.splice(groupIndex, 1);
+                    this.notify.success(this.lang.basketUpdated);
+                }, (err) => {
+                    this.notify.error(err.error.errors);
+                });
+        }
+    }
+
+    linkGroup() {
+        this.config = { data: { basketId: this.basket.basket_id, groups: this.allGroups, linkedGroups: this.basketGroups } };
+        this.dialogRef = this.dialog.open(BasketAdministrationGroupListModalComponent, this.config);
+        this.dialogRef.afterClosed().subscribe((result: any) => {
+            if (result) {
+                this.http.post(this.coreUrl + "rest/baskets/" + this.id + "/groups", result)
+                    .subscribe((data: any) => {
+                        this.basketGroups.push(result);
+                        this.allGroups.forEach((tmpGroup: any) => {
+                            if (tmpGroup.group_id == result.group_id) {
+                                tmpGroup.isUsed = true;
+                            }
+                        });
+                        this.notify.success(this.lang.basketUpdated);
+                    }, (err) => {
+                        this.notify.error(err.error.errors);
+                    });
+            }
+            this.dialogRef = null;
+        });
+    }
+
+    addAction(group: any) {
+        this.http.put(this.coreUrl + "rest/baskets/" + this.id + "/groups/" + group.group_id, { 'result_page': group.result_page, 'groupActions': group.groupActions })
+            .subscribe((data: any) => {
+                //this.basketGroups.push(data);
+                this.notify.success(this.lang.basketUpdated);
+            }, (err) => {
+                this.notify.error(err.error.errors);
+            });
+    }
+
+}
+@Component({
+    templateUrl: angularGlobals["basket-administration-settings-modalView"],
+    styles: [".mat-dialog-content{height: 65vh;}"]
+})
+export class BasketAdministrationSettingsModalComponent extends AutoCompletePlugin {
+    lang: any = LANG;
+    allEntities: any[] = [];
+    statuses: any;
+    constructor(public http: HttpClient, @Inject(MAT_DIALOG_DATA) public data: any, public dialogRef: MatDialogRef<BasketAdministrationSettingsModalComponent>) {
+        super(http, 'users');
+    }
+    ngOnInit(): void {
+        this.http.get(this.coreUrl + "rest/entities")
+            .subscribe((entities: any) => {
+                var keywordEntities = [{
+                    id: 'ALL_ENTITIES',
+                    keyword: 'ALL_ENTITIES',
+                    parent: '#',
+                    icon: 'fa fa-hashtag',
+                    allowed: true,
+                    text: 'Toute les entités'
+                }, {
+                    id: 'ENTITIES_JUST_BELOW',
+                    keyword: 'ENTITIES_JUST_BELOW',
+                    parent: '#',
+                    icon: 'fa fa-hashtag',
+                    allowed: true,
+                    text: "Immédiatement inférieur à mon entité primaire"
+                }, {
+                    id: 'ENTITIES_BELOW',
+                    keyword: 'ENTITIES_BELOW',
+                    parent: '#',
+                    icon: 'fa fa-hashtag',
+                    allowed: true,
+                    text: "Inférieur à toutes mes entités"
+                }, {
+                    id: 'ALL_ENTITIES_BELOW',
+                    keyword: 'ALL_ENTITIES_BELOW',
+                    parent: '#',
+                    icon: 'fa fa-hashtag',
+                    allowed: true,
+                    text: "Inférieur à mon entité primaire"
+                }, {
+                    id: 'MY_ENTITIES',
+                    keyword: 'MY_ENTITIES',
+                    parent: '#',
+                    icon: 'fa fa-hashtag',
+                    allowed: true,
+                    text: "Mes entités"
+                }, {
+                    id: 'MY_PRIMARY_ENTITY',
+                    keyword: 'MY_PRIMARY_ENTITY',
+                    parent: '#',
+                    icon: 'fa fa-hashtag',
+                    allowed: true,
+                    text: "Mon entité primaire"
+                }, {
+                    id: 'SAME_LEVEL_ENTITIES',
+                    keyword: 'SAME_LEVEL_ENTITIES',
+                    parent: '#',
+                    icon: 'fa fa-hashtag',
+                    allowed: true,
+                    text: "Même niveau de mon entité primaire"
+                }];
+
+                keywordEntities.forEach((keyword: any) => {
+                    this.allEntities.push(keyword);
+                });
+                entities.entities.forEach((entity: any) => {
+                    this.allEntities.push(entity);
+                });
+            }, () => {
+                location.href = "index.php";
+            })
+        this.http.get(this.coreUrl + 'rest/statuses')
+            .subscribe((data: any) => {
+                this.statuses = data.statuses;
+            });
+    }
+    initService() {
+        this.allEntities.forEach((entity: any) => {
+            entity.state = { "opened": false, "selected": false };
+            this.data.action.redirects.forEach((keyword: any) => {
+                if (entity.id == keyword.keyword && keyword.redirect_mode == 'ENTITY') {
+                    entity.state = { "opened": true, "selected": true };
+                }
+            });
+        });
+
+
+        $j('#jstree').jstree({
+            "checkbox": {
+                "three_state": false //no cascade selection
+            },
+            'core': {
+                'themes': {
+                    'name': 'proton',
+                    'responsive': true
+                },
+                'data': this.allEntities
+            },
+            "plugins": ["checkbox", "search"]
+        });
+        $j('#jstree')
+            // listen for event
+            .on('select_node.jstree', (e: any, data: any) => {
+                if (data.node.original.keyword) {
+                    this.data.action.redirects.push({ action_id: this.data.action.id, entity_id: '', keyword: data.node.id, redirect_mode: 'ENTITY' })
+                } else {
+                    this.data.action.redirects.push({ action_id: this.data.action.id, entity_id: data.node.id, keyword: '', redirect_mode: 'ENTITY' })
+                }
+
+            }).on('deselect_node.jstree', (e: any, data: any) => {
+                this.data.action.redirects.forEach((redirect: any) => {
+                    if (data.node.original.keyword) {
+                        if (redirect.keyword == data.node.original.keyword) {
+                            var index = this.data.action.redirects.indexOf(redirect);
+                            this.data.action.redirects.splice(index, 1);
+                        }
+                    } else {
+                        if (redirect.entity_id == data.node.id) {
+                            var index = this.data.action.redirects.indexOf(redirect);
+                            this.data.action.redirects.splice(index, 1);
+                        }
+                    }
+
+                });
+            })
+            // create the instance
+            .jstree();
+
+        var to: any = false;
+        $j('#jstree_search').keyup(function () {
+            if (to) { clearTimeout(to); }
+            to = setTimeout(function () {
+                var v = $j('#jstree_search').val();
+                $j('#jstree').jstree(true).search(v);
+            }, 250);
+        });
+
+    }
+
+    initService2() {
+        this.allEntities.forEach((entity: any) => {
+            entity.state = { "opened": false, "selected": false };
+            this.data.action.redirects.forEach((keyword: any) => {
+                if (entity.id == keyword.keyword && keyword.redirect_mode == 'USERS') {
+                    entity.state = { "opened": true, "selected": true };
+                }
+            });
+        });
+        $j('#jstree2').jstree({
+            "checkbox": {
+                "three_state": false //no cascade selection
+            },
+            'core': {
+                'themes': {
+                    'name': 'proton',
+                    'responsive': true
+                },
+                'data': this.allEntities
+            },
+            "plugins": ["checkbox", "search"]
+        });
+        $j('#jstree2')
+            // listen for event
+            .on('select_node.jstree', (e: any, data: any) => {
+                if (data.node.original.keyword) {
+                    this.data.action.redirects.push({ action_id: this.data.action.id, entity_id: '', keyword: data.node.id, redirect_mode: 'USERS' })
+                } else {
+                    this.data.action.redirects.push({ action_id: this.data.action.id, entity_id: data.node.id, keyword: '', redirect_mode: 'USERS' })
+                }
+
+            }).on('deselect_node.jstree', (e: any, data: any) => {
+                this.data.action.redirects.forEach((redirect: any) => {
+                    if (data.node.original.keyword) {
+                        if (redirect.keyword == data.node.original.keyword) {
+                            var index = this.data.action.redirects.indexOf(redirect);
+                            this.data.action.redirects.splice(index, 1);
+                        }
+                    } else {
+                        if (redirect.entity_id == data.node.id) {
+                            var index = this.data.action.redirects.indexOf(redirect);
+                            this.data.action.redirects.splice(index, 1);
+                        }
+                    }
+
+                });
+            })
+            // create the instance
+            .jstree();
+
+        var to: any = false;
+        $j('#jstree_search2').keyup(function () {
+            if (to) { clearTimeout(to); }
+            to = setTimeout(function () {
+                var v = $j('#jstree_search2').val();
+                $j('#jstree2').jstree(true).search(v);
+            }, 250);
+        });
+    }
+}
+
+import { FormBuilder, FormGroup, Validators } from '@angular/forms';
+@Component({
+    templateUrl: angularGlobals["basket-administration-groupList-modalView"],
+    styles: [".mat-dialog-content{height: 65vh;}"]
+})
+export class BasketAdministrationGroupListModalComponent {
+    lang: any = LANG;
+    coreUrl: string;
+    groupId: any;
+    firstFormGroup: FormGroup;
+    secondFormGroup: FormGroup;
+    displayedColumns = ['label_action'];
+    dataSource: any;
+    dataSource2: any;
+    actionAll: any = [];
+    newBasketGroup: any = {};
+
+
+    @ViewChild(MatSort) sort: MatSort;
+    @ViewChild('paginator') paginator: MatPaginator;
+    @ViewChild('paginator2') paginator2: MatPaginator;
+    applyFilter(filterValue: string) {
+        filterValue = filterValue.trim(); // Remove whitespace
+        filterValue = filterValue.toLowerCase(); // MatTableDataSource defaults to lowercase matches
+        this.dataSource.filter = filterValue;
+    }
+    applyFilter2(filterValue: string) {
+        filterValue = filterValue.trim(); // Remove whitespace
+        filterValue = filterValue.toLowerCase(); // MatTableDataSource defaults to lowercase matches
+        this.dataSource2.filter = filterValue;
+    }
+
+
+    constructor(public http: HttpClient, @Inject(MAT_DIALOG_DATA) public data: any, public dialogRef: MatDialogRef<BasketAdministrationGroupListModalComponent>, private _formBuilder: FormBuilder) { }
+    ngOnInit(): void {
+        this.coreUrl = angularGlobals.coreUrl;
+        this.http.get(this.coreUrl + "rest/actions")
+            .subscribe((data: any) => {
+                data.actions.forEach((tmpAction: any) => {
+                    tmpAction.where_clause = "";
+                    tmpAction.used_in_basketlist = false;
+                    tmpAction.default_action_list = false;
+                    tmpAction.used_in_action_page = true;
+                    tmpAction.statuses = [];
+                    tmpAction.redirects = [];
+                    tmpAction.checked = false;
+                    this.actionAll.push(tmpAction);
+                });
+                this.dataSource = new MatTableDataSource(this.actionAll);
+                this.dataSource.sort = this.sort;
+                this.dataSource.paginator = this.paginator;
+
+                this.dataSource2 = new MatTableDataSource(this.actionAll);
+                this.dataSource2.sort = this.sort;
+                this.dataSource2.paginator = this.paginator2;
+
+            }, (err) => {
+                location.href = "index.php";
+            });
+
+        this.firstFormGroup = this._formBuilder.group({
+            firstCtrl: ['', Validators.required]
+        });
+        this.secondFormGroup = this._formBuilder.group({
+            secondCtrl: ['', Validators.required]
+        });
+        this.data.groups.forEach((tmpGroup: any) => {
+            this.data.linkedGroups.forEach((tmpLinkedGroup: any) => {
+                if (tmpGroup.group_id == tmpLinkedGroup.group_id) {
+                    var index = this.data.groups.indexOf(tmpGroup);
+                    this.data.groups.splice(index, 1);
+                }
+            });
+        });
+    }
+
+    initAction(actionType: any) {
+        this.dataSource.filter = actionType.value;
+    }
+
+    selectDefaultAction(action: any) {
+        this.actionAll.forEach((tmpAction: any) => {
+            if (action.id == tmpAction.id) {
+                tmpAction.checked = true;
+                tmpAction.default_action_list = true
+            } else {
+                tmpAction.checked = false;
+                tmpAction.default_action_list = false
+            }
+        });
+    }
+    selectAction(e: any, action: any) {
+        action.checked = e.checked;
+    }
+
+    validateForm() {
+        this.newBasketGroup.group_id = this.groupId;
+        this.newBasketGroup.basket_id = this.data.basketId;
+        this.newBasketGroup.result_page = 'list_with_attachments';
+        this.newBasketGroup.groupActions = this.actionAll;
+        this.dialogRef.close(this.newBasketGroup);
+    }
 }
\ No newline at end of file
diff --git a/apps/maarch_entreprise/js/angular/app/administration/baskets-administration.component.js b/apps/maarch_entreprise/js/angular/app/administration/baskets-administration.component.js
index bd735e83f9e78c72835ea9089c1f97b7b3ce0beb..c220a092b13bdc046c6ae235d248627e1bb451bc 100644
--- a/apps/maarch_entreprise/js/angular/app/administration/baskets-administration.component.js
+++ b/apps/maarch_entreprise/js/angular/app/administration/baskets-administration.component.js
@@ -13,6 +13,7 @@ var core_1 = require("@angular/core");
 var http_1 = require("@angular/common/http");
 var translate_component_1 = require("../translate.component");
 var notification_service_1 = require("../notification.service");
+var material_1 = require("@angular/material");
 var BasketsAdministrationComponent = /** @class */ (function () {
     function BasketsAdministrationComponent(http, notify) {
         this.http = http;
@@ -20,7 +21,13 @@ var BasketsAdministrationComponent = /** @class */ (function () {
         this.lang = translate_component_1.LANG;
         this.baskets = [];
         this.loading = false;
+        this.displayedColumns = ['basket_id', 'basket_name', 'basket_desc', 'actions'];
     }
+    BasketsAdministrationComponent.prototype.applyFilter = function (filterValue) {
+        filterValue = filterValue.trim(); // Remove whitespace
+        filterValue = filterValue.toLowerCase(); // MatTableDataSource defaults to lowercase matches
+        this.dataSource.filter = filterValue;
+    };
     BasketsAdministrationComponent.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> > Bannettes";
@@ -35,6 +42,11 @@ var BasketsAdministrationComponent = /** @class */ (function () {
             .subscribe(function (data) {
             _this.baskets = data['baskets'];
             _this.loading = false;
+            setTimeout(function () {
+                _this.dataSource = new material_1.MatTableDataSource(_this.baskets);
+                _this.dataSource.paginator = _this.paginator;
+                _this.dataSource.sort = _this.sort;
+            }, 0);
         }, function () {
             location.href = "index.php";
         });
@@ -49,10 +61,17 @@ var BasketsAdministrationComponent = /** @class */ (function () {
             _this.notify.error(err.error.errors);
         });
     };
+    __decorate([
+        core_1.ViewChild(material_1.MatPaginator),
+        __metadata("design:type", material_1.MatPaginator)
+    ], BasketsAdministrationComponent.prototype, "paginator", void 0);
+    __decorate([
+        core_1.ViewChild(material_1.MatSort),
+        __metadata("design:type", material_1.MatSort)
+    ], BasketsAdministrationComponent.prototype, "sort", void 0);
     BasketsAdministrationComponent = __decorate([
         core_1.Component({
             templateUrl: angularGlobals["baskets-administrationView"],
-            styleUrls: ['../../node_modules/bootstrap/dist/css/bootstrap.min.css'],
             providers: [notification_service_1.NotificationService]
         }),
         __metadata("design:paramtypes", [http_1.HttpClient, notification_service_1.NotificationService])
diff --git a/apps/maarch_entreprise/js/angular/app/administration/baskets-administration.component.ts b/apps/maarch_entreprise/js/angular/app/administration/baskets-administration.component.ts
index 023f6b5942df0a2e2a916d5be6d4510801d56dea..cdc64581a30ff9d2349c0938e78c56406ccf3820 100644
--- a/apps/maarch_entreprise/js/angular/app/administration/baskets-administration.component.ts
+++ b/apps/maarch_entreprise/js/angular/app/administration/baskets-administration.component.ts
@@ -1,7 +1,9 @@
-import { Component, OnInit } from '@angular/core';
+import { Component, OnInit, ViewChild } from '@angular/core';
 import { HttpClient } from '@angular/common/http';
 import { LANG } from '../translate.component';
 import { NotificationService } from '../notification.service';
+import { MatPaginator, MatTableDataSource, MatSort} from '@angular/material';
+
 
 declare function $j(selector: any) : any;
 
@@ -10,7 +12,6 @@ declare var angularGlobals : any;
 
 @Component({
     templateUrl : angularGlobals["baskets-administrationView"],
-    styleUrls   : ['../../node_modules/bootstrap/dist/css/bootstrap.min.css'],
     providers   : [NotificationService]
 })
 export class BasketsAdministrationComponent implements OnInit {
@@ -22,6 +23,15 @@ export class BasketsAdministrationComponent implements OnInit {
 
     loading                     : boolean   = false;
 
+    displayedColumns = ['basket_id', 'basket_name', 'basket_desc', 'actions'];
+    dataSource      : any;
+    @ViewChild(MatPaginator) paginator: MatPaginator;
+    @ViewChild(MatSort) sort: MatSort;
+    applyFilter(filterValue: string) {
+        filterValue = filterValue.trim(); // Remove whitespace
+        filterValue = filterValue.toLowerCase(); // MatTableDataSource defaults to lowercase matches
+        this.dataSource.filter = filterValue;
+    }
 
     constructor(public http: HttpClient, private notify: NotificationService) {
     }
@@ -41,8 +51,12 @@ export class BasketsAdministrationComponent implements OnInit {
         this.http.get(this.coreUrl + "rest/baskets")
             .subscribe((data : any) => {
                 this.baskets = data['baskets'];
-
                 this.loading = false;
+                setTimeout(() => {
+                    this.dataSource = new MatTableDataSource(this.baskets);
+                    this.dataSource.paginator = this.paginator;
+                    this.dataSource.sort = this.sort;
+                }, 0);
             }, () => {
                 location.href = "index.php";
             });
diff --git a/apps/maarch_entreprise/js/angular/app/app-material.module.js b/apps/maarch_entreprise/js/angular/app/app-material.module.js
index 6a5d4a383178e67b21000147d50b8cc0e3f040ec..e94bc7084f968998d53188e23f39c64415f6d899 100644
--- a/apps/maarch_entreprise/js/angular/app/app-material.module.js
+++ b/apps/maarch_entreprise/js/angular/app/app-material.module.js
@@ -39,7 +39,10 @@ var AppMaterialModule = /** @class */ (function () {
                 material_1.MatSnackBarModule,
                 material_1.MatIconModule,
                 material_1.MatDialogModule,
-                material_1.MatListModule
+                material_1.MatListModule,
+                material_1.MatChipsModule,
+                material_1.MatStepperModule,
+                material_1.MatRadioModule
             ],
             exports: [
                 material_1.MatCheckboxModule,
@@ -66,7 +69,10 @@ var AppMaterialModule = /** @class */ (function () {
                 material_1.MatSnackBarModule,
                 material_1.MatIconModule,
                 material_1.MatDialogModule,
-                material_1.MatListModule
+                material_1.MatListModule,
+                material_1.MatChipsModule,
+                material_1.MatStepperModule,
+                material_1.MatRadioModule
             ],
             providers: [
                 { provide: material_1.MatPaginatorIntl, useValue: french_paginator_intl_1.getFrenchPaginatorIntl() }
diff --git a/apps/maarch_entreprise/js/angular/app/app-material.module.ts b/apps/maarch_entreprise/js/angular/app/app-material.module.ts
index fa0dec4d0e02c83f8386b6c600bc1cdb539efa5c..449db8186b6427ae50fc3f2408b0d4a0b29c140d 100644
--- a/apps/maarch_entreprise/js/angular/app/app-material.module.ts
+++ b/apps/maarch_entreprise/js/angular/app/app-material.module.ts
@@ -28,7 +28,10 @@ import {
     MatIconModule,
     MatDialogActions,
     MatDialogModule,
-    MatListModule
+    MatListModule,
+    MatChipsModule,
+    MatStepperModule,
+    MatRadioModule
 } from '@angular/material';
 
 import { CdkTableModule } from '@angular/cdk/table';
@@ -60,7 +63,10 @@ import { getFrenchPaginatorIntl } from './french-paginator-intl';
         MatSnackBarModule,
         MatIconModule,
         MatDialogModule,
-        MatListModule
+        MatListModule,
+        MatChipsModule,
+        MatStepperModule,
+        MatRadioModule
     ],
     exports: [
         MatCheckboxModule,
@@ -87,7 +93,10 @@ import { getFrenchPaginatorIntl } from './french-paginator-intl';
         MatSnackBarModule,
         MatIconModule,
         MatDialogModule,
-        MatListModule
+        MatListModule,
+        MatChipsModule,
+        MatStepperModule,
+        MatRadioModule
     ],
     providers: [
         { provide: MatPaginatorIntl, useValue: getFrenchPaginatorIntl() }
diff --git a/apps/maarch_entreprise/js/angular/lang/lang-en.js b/apps/maarch_entreprise/js/angular/lang/lang-en.js
index d8825947aeae65952323e3b69a21baa2d5f32d70..eb47ad33e45c9f4ab82b823a7cd703d3c02927ef 100755
--- a/apps/maarch_entreprise/js/angular/lang/lang-en.js
+++ b/apps/maarch_entreprise/js/angular/lang/lang-en.js
@@ -4,6 +4,7 @@ exports.LANG_EN = {
     "abs": "Absent",
     "action": "Action",
     "actionAdded": "Action added",
+    "actionAvailable": "Availables actions",
     "actionCreation": "Action creation",
     "actionDeleted": "Action deleted",
     "actionHistory": "Log action in history",
@@ -11,6 +12,7 @@ exports.LANG_EN = {
     "actionModification": "Action modification",
     "actionName": "Action name",
     "actionPage": "Result page of the action",
+    "actionParameters": "Action parameters",
     "actions": "Action(s)",
     "actionUpdated": "Action updated",
     "activateAbsence": "Activate absence",
@@ -19,17 +21,25 @@ exports.LANG_EN = {
     "addStatus": "Add a status",
     "administration": "Administration",
     "administrationServices": "Administration services",
+    "allActions": "All actions",
     "application": "Application",
     "associatedStatus": "Associated status",
     "attachments": "Attachments",
     "authorize": "Authorize",
     "autoLogoutAbsence": "You are going to be automaticaly disconnected after your redirections",
+    "available": "available",
+    "availableGroups": "Available groups",
+    "availableStatuses": "Available statuses",
     "avis": "Avis circuit",
     "back": "Back",
     "basket": "Basket",
     "basketAdded": "Basket added",
+    "basketCreation": "Basket creation",
     "basketDeleted": "Basket deleted",
+    "basketModification": "Basket modification",
+    "basketNotification": "Toggle notification for this basket",
     "baskets": "Baskets",
+    "basketsOrder": "Manage baskets order",
     "basketUpdated": "Basket updated",
     "canBeModified": "Index modification",
     "canBeSearched": "Searchable",
@@ -38,6 +48,7 @@ exports.LANG_EN = {
     "changeMyPassword": "Change my password",
     "chooseBasket": "Choose a basket",
     "chooseCategoryAssociation": "Choose one or some associatedd categories",
+    "chooseDefaultAction": "Choose main action",
     "chooseEntity": "Choose a entity",
     "chooseGroup": "Choose a group",
     "chooseRedirectGroup": "Choose another group",
@@ -45,10 +56,13 @@ exports.LANG_EN = {
     "clickOn": "Click on",
     "color": "Color",
     "content_management": "Ressource revision",
+    "createScriptNotification": "Create the script",
     "currentPsw": "Current password",
-    "deactivateAbsence": "Deactivate absence",
+    "default": "default",
+    "defaultAction": "Default action",
     "delete": "Delete",
     "deleteMsg": "Do you really want to delete this element",
+    "desactivateAbsence": "Deactivate absence",
     "description": "Description",
     "doNotModifyUnlessExpert": "Do not edit this section unless you know what you are doing. Incorrect settings can cause the application to malfunction !",
     "email": "Email",
@@ -78,12 +92,15 @@ exports.LANG_EN = {
     "id": "Login",
     "imgRelated": "Associated image",
     "inactive": "Inactive",
+    "indexing": "Indexing",
     "informations": "Informations",
     "initials": "Initials",
     "isAssociatedTo": "is associated to",
     "isFolderAction": "Folder action",
     "isFolderActionDesc": "Use this action in a folder folder",
+    "isFolderBasket": "Folder basket",
     "isFolderStatus": "Folder status",
+    "isSearchBasket": "Only search basket",
     "isSytemAction": "System action",
     "keyword": "Keyword",
     "keywordHelp": "Keyword help",
@@ -102,6 +119,7 @@ exports.LANG_EN = {
     "label": "Label",
     "lastname": "Lastname",
     "life_cycle": "Life cycle",
+    "linkGroup": "Link a group",
     "maarchApplication": "Maarch App",
     "manageAbsences": "Manage absences",
     "manageSignatures": "Manage signatures",
@@ -109,6 +127,7 @@ exports.LANG_EN = {
     "modificationSaved": "Modification has been saved",
     "module": "Module",
     "modules": "Modules",
+    "moreOptions": "More options",
     "myProfile": "My profile",
     "newAction": "New action",
     "newElement": "New element",
@@ -133,6 +152,10 @@ exports.LANG_EN = {
     "notificationsSchedule": "Notifications schedule",
     "NotificationToEnable": "To enable",
     "notificationUpdated": "Notification updated",
+    "otherActions": "Other(s) action(s)",
+    "otherParameters": "Other(s) parameter(s)",
+    "outOf": "of",
+    "page": "Page",
     "parameter": "Parameter",
     "parameterAdded": "Parameter added",
     "parameterDeleted": "Parameter deleted",
@@ -143,14 +166,24 @@ exports.LANG_EN = {
     "priorityAdded": "Priority added",
     "priorityDeleted": "Priority deleted",
     "priorityUpdated": "Priority updated",
+    "processAction": "Process action(s)",
     "processDelay": "Process delay",
+    "pswReseted": "Password reseted",
+    "record": "element(s)",
+    "records": "result(s)",
+    "recordsPerPage": "result per page",
+    "redirects": "Redirections",
     "reinitPassword": "Reset password",
     "relatedUsers": "Related users",
     "renewPsw": "Enter the password again",
     "reports": "Reports",
+    "resultPages": "Rseult pages",
     "role": "Role",
     "save": "Save",
     "sbSignatures": "Signature Book Signatures",
+    "ScriptCreated": "Script created",
+    "search": "Search",
+    "searchEntities": "Search entity",
     "secondaryEntity": "Secondary entity",
     "selectAll": "Select all",
     "sendmail": "Sendmail",
@@ -168,23 +201,34 @@ exports.LANG_EN = {
     "templates": "Templates",
     "thesaurus": "Thesaurus",
     "to": "to",
+    "toDefault": "default",
+    "toEntities": "To entities",
     "tooltipFolderStatus": "If checked, status can be used for folder baskets",
     "tooltipIndexStatus": "If checked, you can edit metadatas of the documents having this status",
     "tooltipSearchStatus": "If checked, the status will be offered in the search criteria STATUS of the advanced search",
     "toSchedule": "To schedule",
+    "toStatuses": "To statuses",
+    "toStatusesDesc": "You cannot choose a status, a default status has been chosen for this action.",
+    "totalErrors": "Errors element(s)",
+    "totalProcessed": "Processed element(s)",
+    "toUsersEntities": "To users in entities",
+    "type": "Type",
+    "unlinkGroup": "Unlink group",
     "unselectAll": "Unselect all",
     "update": "Update",
     "updateStatus": "Document status modification",
     "updateStatusInformations": "When typing the chrono or the GED number of a document, you will modify its status. The document will be present in the basket depending of the status you have chosen.",
+    "usedInActionPage": "Used in action page",
+    "usedInBasketlist": "Used in basket list",
     "user": "user",
     "userCreation": "User Creation",
     "userModification": "User Modification",
     "validate": "Validate",
+    "validateAction": "Validate action(s)",
     "value": "value",
     "view": "View",
     "visa": "Visa circuit",
+    "whereClauseAction": "Where clause condition of action display",
     "workingDays": "Working days",
     "yes": "Yes",
-    "createScriptNotification": "Create the script",
-    "ScriptCreated": "Script created",
 };
diff --git a/apps/maarch_entreprise/js/angular/lang/lang-en.ts b/apps/maarch_entreprise/js/angular/lang/lang-en.ts
index ce6db8b6126cce8e51565640030f3b95452d782a..34b5a44ffd28b59a657c5c0e77b2b0ffaac1d6cc 100755
--- a/apps/maarch_entreprise/js/angular/lang/lang-en.ts
+++ b/apps/maarch_entreprise/js/angular/lang/lang-en.ts
@@ -2,6 +2,7 @@ export const LANG_EN = {
     "abs"                       : "Absent",
     "action"                    : "Action",
     "actionAdded"               : "Action added",
+    "actionAvailable"           : "Availables actions",
     "actionCreation"            : "Action creation",
     "actionDeleted"             : "Action deleted",
     "actionHistory"             : "Log action in history",
@@ -9,6 +10,7 @@ export const LANG_EN = {
     "actionModification"        : "Action modification",
     "actionName"                : "Action name",
     "actionPage"                : "Result page of the action",
+    "actionParameters"          : "Action parameters",
     "actions"                   : "Action(s)",
     "actionUpdated"             : "Action updated",
     "activateAbsence"           : "Activate absence",
@@ -17,17 +19,25 @@ export const LANG_EN = {
     "addStatus"                 : "Add a status",
     "administration"            : "Administration",
     "administrationServices"    : "Administration services",
+    "allActions"                : "All actions",
     "application"               : "Application",
-    "associatedStatus"            : "Associated status",
-    "attachments"                : "Attachments",
+    "associatedStatus"          : "Associated status",
+    "attachments"               : "Attachments",
     "authorize"                 : "Authorize",
     "autoLogoutAbsence"         : "You are going to be automaticaly disconnected after your redirections",
+    "available"                 : "available",
+    "availableGroups"           : "Available groups",
+    "availableStatuses"         : "Available statuses",
     "avis"                      : "Avis circuit",
     "back"                      : "Back",
     "basket"                    : "Basket",
     "basketAdded"               : "Basket added",
+    "basketCreation"            : "Basket creation",
     "basketDeleted"             : "Basket deleted",
+    "basketModification"        : "Basket modification",
+    "basketNotification"        : "Toggle notification for this basket",
     "baskets"                   : "Baskets",
+    "basketsOrder"              : "Manage baskets order",
     "basketUpdated"             : "Basket updated",
     "canBeModified"             : "Index modification",
     "canBeSearched"             : "Searchable",
@@ -35,7 +45,8 @@ export const LANG_EN = {
     "cases"                     : "Cases",
     "changeMyPassword"          : "Change my password",
     "chooseBasket"              : "Choose a basket",
-    "chooseCategoryAssociation"    : "Choose one or some associatedd categories",
+    "chooseCategoryAssociation" : "Choose one or some associatedd categories",
+    "chooseDefaultAction"       : "Choose main action",
     "chooseEntity"              : "Choose a entity",
     "chooseGroup"               : "Choose a group",
     "chooseRedirectGroup"       : "Choose another group",
@@ -43,12 +54,15 @@ export const LANG_EN = {
     "clickOn"                   : "Click on",
     "color"                     : "Color",
     "content_management"        : "Ressource revision",
+    "createScriptNotification"  : "Create the script",
     "currentPsw"                : "Current password",
-    "deactivateAbsence"         : "Deactivate absence",
+    "default"                   : "default",
+    "defaultAction"             : "Default action",
     "delete"                    : "Delete",
     "deleteMsg"                 : "Do you really want to delete this element",
+    "desactivateAbsence"        : "Deactivate absence",
     "description"               : "Description",
-    "doNotModifyUnlessExpert"    : "Do not edit this section unless you know what you are doing. Incorrect settings can cause the application to malfunction !",
+    "doNotModifyUnlessExpert"   : "Do not edit this section unless you know what you are doing. Incorrect settings can cause the application to malfunction !",
     "email"                     : "Email",
     "emailSignatures"           : "Email signatures",
     "entities"                  : "Entities",
@@ -76,12 +90,15 @@ export const LANG_EN = {
     "id"                        : "Login",
     "imgRelated"                : "Associated image",
     "inactive"                  : "Inactive",
+    "indexing"                 : "Indexing",
     "informations"              : "Informations",
     "initials"                  : "Initials",
     "isAssociatedTo"            : "is associated to",
     "isFolderAction"            : "Folder action",
     "isFolderActionDesc"        : "Use this action in a folder folder",
+    "isFolderBasket"            : "Folder basket",
     "isFolderStatus"            : "Folder status",
+    "isSearchBasket"            : "Only search basket",
     "isSytemAction"             : "System action",
     "keyword"                   : "Keyword",
     "keywordHelp"               : "Keyword help",
@@ -100,6 +117,7 @@ export const LANG_EN = {
     "label"                     : "Label",
     "lastname"                  : "Lastname",
     "life_cycle"                : "Life cycle",
+    "linkGroup"                 : "Link a group",
     "maarchApplication"         : "Maarch App",
     "manageAbsences"            : "Manage absences",
     "manageSignatures"          : "Manage signatures",
@@ -107,6 +125,7 @@ export const LANG_EN = {
     "modificationSaved"         : "Modification has been saved",
     "module"                    : "Module",
     "modules"                   : "Modules",
+    "moreOptions"               : "More options",
     "myProfile"                 : "My profile",
     "newAction"                 : "New action",
     "newElement"                : "New element",
@@ -131,6 +150,10 @@ export const LANG_EN = {
     "notificationsSchedule"         : "Notifications schedule",
     "NotificationToEnable"          : "To enable",
     "notificationUpdated"           : "Notification updated",
+    "otherActions"              : "Other(s) action(s)",
+    "otherParameters"           : "Other(s) parameter(s)",
+    "outOf"                     : "of",
+    "page"                      : "Page",
     "parameter"                 : "Parameter",
     "parameterAdded"            : "Parameter added",
     "parameterDeleted"          : "Parameter deleted",
@@ -141,14 +164,24 @@ export const LANG_EN = {
     "priorityAdded"             : "Priority added",
     "priorityDeleted"           : "Priority deleted",
     "priorityUpdated"           : "Priority updated",
+    "processAction"             : "Process action(s)",
     "processDelay"              : "Process delay",
+    "pswReseted"                : "Password reseted",
+    "record"                    : "element(s)",
+    "records"                   : "result(s)",
+    "recordsPerPage"            : "result per page",
+    "redirects"                 : "Redirections",
     "reinitPassword"            : "Reset password",
     "relatedUsers"              : "Related users",
     "renewPsw"                  : "Enter the password again",
     "reports"                   : "Reports",
+    "resultPages"               : "Rseult pages",
     "role"                      : "Role",
     "save"                      : "Save",
     "sbSignatures"              : "Signature Book Signatures",
+    "ScriptCreated"             : "Script created",
+    "search"                    : "Search",
+    "searchEntities"            : "Search entity",
     "secondaryEntity"           : "Secondary entity",
     "selectAll"                 : "Select all",
     "sendmail"                  : "Sendmail",
@@ -166,24 +199,34 @@ export const LANG_EN = {
     "templates"                 : "Templates",
     "thesaurus"                 : "Thesaurus",
     "to"                        : "to",
+    "toDefault"                 : "default",
+    "toEntities"                : "To entities",
     "tooltipFolderStatus"       : "If checked, status can be used for folder baskets",
     "tooltipIndexStatus"        : "If checked, you can edit metadatas of the documents having this status",
     "tooltipSearchStatus"       : "If checked, the status will be offered in the search criteria STATUS of the advanced search",
     "toSchedule"                : "To schedule",
+    "toStatuses"                : "To statuses",
+    "toStatusesDesc"            : "You cannot choose a status, a default status has been chosen for this action.",
+    "totalErrors"               : "Errors element(s)",
+    "totalProcessed"            : "Processed element(s)",
+    "toUsersEntities"           : "To users in entities",
+    "type"                      : "Type",
+    "unlinkGroup"               : "Unlink group",
     "unselectAll"               : "Unselect all",
     "update"                    : "Update",
     "updateStatus"              : "Document status modification",
     "updateStatusInformations"  : "When typing the chrono or the GED number of a document, you will modify its status. The document will be present in the basket depending of the status you have chosen.",
+    "usedInActionPage"          : "Used in action page",
+    "usedInBasketlist"          : "Used in basket list",
     "user"                      : "user",
     "userCreation"              : "User Creation",
     "userModification"          : "User Modification",
     "validate"                  : "Validate",
+    "validateAction"            : "Validate action(s)",
     "value"                     : "value",
     "view"                      : "View",
     "visa"                      : "Visa circuit",
+    "whereClauseAction"         : "Where clause condition of action display",
     "workingDays"               : "Working days",
     "yes"                       : "Yes",
-    "createScriptNotification"  : "Create the script",
-    "ScriptCreated"             : "Script created",
-
 };
diff --git a/apps/maarch_entreprise/js/angular/lang/lang-fr.js b/apps/maarch_entreprise/js/angular/lang/lang-fr.js
index b0fe27fa6de4ff3b48da46d6efe5cf1bdef7c83a..9a5be77b84b52a84e0335f39e303730911e05480 100755
--- a/apps/maarch_entreprise/js/angular/lang/lang-fr.js
+++ b/apps/maarch_entreprise/js/angular/lang/lang-fr.js
@@ -6,6 +6,7 @@ exports.LANG_FR = {
     "absOn": "Absence activée",
     "action": "Action",
     "actionAdded": "Action ajoutée",
+    "actionAvailable": "Actions disponibles",
     "actionCreation": "Création d'une action",
     "actionDeleted": "Action supprimée",
     "actionHistory": "Tracer l'action",
@@ -13,6 +14,7 @@ exports.LANG_FR = {
     "actionModification": "Modification de l'action",
     "actionName": "Nom de l'action",
     "actionPage": "Page de résultat de l'action",
+    "actionParameters": "Paramétrage d'action",
     "actions": "Action(s)",
     "actionUpdated": "Action modifiée",
     "activateAbs": "Activer l'absence",
@@ -22,18 +24,25 @@ exports.LANG_FR = {
     "addStatus": "Ajouter un statut",
     "administration": "Administration",
     "administrationServices": "Services d'administration",
+    "allActions": "Toutes les actions",
     "application": "Application",
     "associatedStatus": "Statut associé",
     "attachments": "Attachments",
     "authorize": "Autoriser",
     "autoLogoutAbsence": "Vous allez être automatiquement déconnecté après avoir défini vos redirections de bannettes",
     "available": "disponible",
+    "availableGroups": "Groupes disponibles",
+    "availableStatuses": "Statuts disponibles",
     "avis": "Circuit d'avis",
     "back": "Retour",
     "basket": "Bannette",
     "basketAdded": "Bannette ajoutée",
+    "basketCreation": "Création d'une bannette",
     "basketDeleted": "Bannette supprimée",
+    "basketModification": "Modification d'une bannette",
+    "basketNotification": "Activer / désactiver la notification de cette bannette",
     "baskets": "Bannettes",
+    "basketsOrder": "Gerer l'ordre des bannettes",
     "basketUpdated": "Bannette modifiée",
     "canBeModified": "Modification des index",
     "canBeSearched": "Recherche",
@@ -43,6 +52,7 @@ exports.LANG_FR = {
     "chooseBasket": "Choisissez une banette",
     "chooseCategoryAssociation": "Choisissez une ou plusieurs catégories associée",
     "chooseCategoryAssociationHelp": "Si aucune catégorie sélectionnée alors l'action est valable pour toute les catégories",
+    "chooseDefaultAction": "Choisissez une action principale",
     "chooseEntity": "Choisissez une entité",
     "chooseGroup": "Choisissez un groupe",
     "chooseRedirectGroup": "Choisissez un groupe de remplacement",
@@ -51,9 +61,12 @@ exports.LANG_FR = {
     "color": "Couleur",
     "confirmAction": "Voulez-vous vraiment effectuer cette action ?",
     "content_management": "Versionning de document",
+    "createScriptNotification": "Créer le script",
     "currentPsw": "Mot de passe actuel",
     "dataOfMonth": "Données du mois",
     "date": "Date",
+    "default": "par défaut",
+    "defaultAction": "Action par défaut",
     "delete": "Supprimer",
     "deleteMsg": "Voulez-vous vraiment supprimer cet élément ?",
     "desactivateAbsence": "Désactiver l'absence",
@@ -91,6 +104,7 @@ exports.LANG_FR = {
     "id": "Identifiant",
     "imgRelated": "Image associée",
     "inactive": "Inactif",
+    "indexing": "Indexations",
     "informations": "Informations",
     "infosActions": "Vous devez choisir au moins un statut et / ou un script.",
     "initials": "Initiales",
@@ -99,7 +113,9 @@ exports.LANG_FR = {
     "isAssociatedTo": "est associé à",
     "isFolderAction": "Action de dossier",
     "isFolderActionDesc": "Permet d'utiliser cette action dans une bannette de dossier",
+    "isFolderBasket": "Bannette de dossier",
     "isFolderStatus": "Statut de dossier",
+    "isSearchBasket": "Bannette de recherche uniquement",
     "isSytemAction": "Action système",
     "keyword": "Mot-clé",
     "keywordHelp": "Aide sur les mots-clés",
@@ -119,6 +135,7 @@ exports.LANG_FR = {
     "last": "dernier",
     "lastname": "Nom",
     "life_cycle": "Cycle de vie",
+    "linkGroup": "Associer un groupe",
     "maarchApplication": "Application Maarch",
     "manageAbsences": "Rediriger mes bannettes",
     "manageSignatures": "Gérer les signatures",
@@ -126,6 +143,7 @@ exports.LANG_FR = {
     "modificationSaved": "Modification enregistrée",
     "module": "Module",
     "modules": "Modules",
+    "moreOptions": "Plus d'options",
     "myProfile": "Mon profil",
     "newAction": "Nouvelle action",
     "newElement": "Nouvel élément",
@@ -153,6 +171,8 @@ exports.LANG_FR = {
     "notificationsSchedule": "Planification des notifications",
     "NotificationToEnable": "Activer",
     "notificationUpdated": "Notification mise à jour",
+    "otherActions": "Action(s) supplémentaire(s)",
+    "otherParameters": "Autre(s) paramètre(s)",
     "outOf": "sur",
     "page": "Page",
     "parameter": "Paramètre",
@@ -166,20 +186,25 @@ exports.LANG_FR = {
     "priorityAdded": "Priorité ajoutée",
     "priorityDeleted": "Priorité supprimée",
     "priorityUpdated": "Priorité modifiée",
+    "processAction": "Action(s) de traitement",
     "processDelay": "Délai de traitement",
     "pswReseted": "Mot de passe réinitialisé",
     "record": "élément(s)",
     "records": "résultats",
     "recordsPerPage": "résultats par page",
+    "redirects": "Redirections",
     "reinitPassword": "Réinitialiser le mot de passe",
     "relatedUsers": "Utilisateurs associés",
     "renewPsw": "Retaper le mot de passe",
     "reports": "Etats et éditions",
     "resetPsw": "Réinitialiser le mot de passe",
+    "resultPages": "Pages de résultat",
     "role": "Rôle",
     "save": "Enregistrer",
     "sbSignatures": "Signatures de parapheur",
+    "ScriptCreated": "Script créé",
     "search": "Chercher",
+    "searchEntities": "Rechercher un service",
     "secondaryEntity": "Entitté secondaire",
     "selectAll": "Sélectionner tout",
     "sendmail": "Envoi de mails",
@@ -202,17 +227,25 @@ exports.LANG_FR = {
     "templates": "Modèles de documents",
     "thesaurus": "Thésaurus",
     "to": "vers",
+    "toDefault": "par défaut",
+    "toEntities": "Vers les services",
     "tooltipFolderStatus": "Si coché, le statut pourra être utilisé pour des bannettes de dossiers",
     "tooltipIndexStatus": "Si coché, vous pourrez modifier les meta-données des documents ayant ce statut",
     "tooltipSearchStatus": "Si coché, le statut vous sera proposé dans le critère de recherche STATUTS de la recherche avancée",
     "toSchedule": "Planifier",
+    "toStatuses": "Vers les statuts",
+    "toStatusesDesc": "Vous ne pouvez pas choisir de statut, un statut est dèja pré-définit pour cette action.",
     "totalErrors": "Élément(s) en erreur",
     "totalProcessed": "Élément(s) analysé(s)",
+    "toUsersEntities": "Vers les utilisateurs des services",
     "type": "Type",
+    "unlinkGroup": "Dissocier le groupe",
     "unselectAll": "Tout désélectionner",
     "update": "Modifier",
     "updateStatus": "Changement de statut de courrier",
     "updateStatusInformations": "En saisissant le n° chrono ou le n° GED du document, vous modifierez le statut du courrier. Le courrier sera disponible dans la bannette des utilisateurs auquel il était affecté suivant le statut que vous aurez défini.",
+    "usedInActionPage": "Action sur la page d'action",
+    "usedInBasketlist": "Action sur la liste de résultat",
     "user": "utilisateur",
     "userAdded": "Utilisateur ajouté",
     "userAuthorized": "Utilisateur autorisé",
@@ -223,11 +256,11 @@ exports.LANG_FR = {
     "userSuspended": "Utilisateur suspendu",
     "userUpdated": "Utilisateur modifié",
     "validate": "Valider",
+    "validateAction": "Action(s) de qualification",
     "value": "valeur",
     "view": "Consulter",
     "visa": "Circuit de visa",
+    "whereClauseAction": "Condition d'apparition de l'action (where clause)",
     "workingDays": "Jours ouvrés",
     "yes": "Oui",
-    "createScriptNotification": "Créer le script",
-    "ScriptCreated": "Script créé",
 };
diff --git a/apps/maarch_entreprise/js/angular/lang/lang-fr.ts b/apps/maarch_entreprise/js/angular/lang/lang-fr.ts
index 6e6c764d603a855d40f0d92c0f1a49d50b535a6c..cb6e3f0d94e55e30e1c929ecca6e0816633e9f4e 100755
--- a/apps/maarch_entreprise/js/angular/lang/lang-fr.ts
+++ b/apps/maarch_entreprise/js/angular/lang/lang-fr.ts
@@ -4,6 +4,7 @@ export const LANG_FR = {
     "absOn"                         : "Absence activée",
     "action"                        : "Action",
     "actionAdded"                   : "Action ajoutée",
+    "actionAvailable"               : "Actions disponibles",
     "actionCreation"                : "Création d'une action",
     "actionDeleted"                 : "Action supprimée",
     "actionHistory"                 : "Tracer l'action",
@@ -11,6 +12,7 @@ export const LANG_FR = {
     "actionModification"            : "Modification de l'action",
     "actionName"                    : "Nom de l'action",
     "actionPage"                    : "Page de résultat de l'action",
+    "actionParameters"              : "Paramétrage d'action",
     "actions"                       : "Action(s)",
     "actionUpdated"                 : "Action modifiée",
     "activateAbs"                   : "Activer l'absence",
@@ -18,20 +20,27 @@ export const LANG_FR = {
     "active"                        : "Actif",
     "add"                           : "Ajouter",
     "addStatus"                     : "Ajouter un statut",
-    "administration"               : "Administration",
+    "administration"                : "Administration",
     "administrationServices"        : "Services d'administration",
-    "application"                  : "Application",
-    "associatedStatus"             : "Statut associé",
+    "allActions"                    : "Toutes les actions",
+    "application"                   : "Application",
+    "associatedStatus"              : "Statut associé",
     "attachments"                   : "Attachments",
     "authorize"                    : "Autoriser",
     "autoLogoutAbsence"            : "Vous allez être automatiquement déconnecté après avoir défini vos redirections de bannettes",
     "available"                    : "disponible",
+    "availableGroups"              : "Groupes disponibles",
+    "availableStatuses"            : "Statuts disponibles",
     "avis"                         : "Circuit d'avis",
     "back"                         : "Retour",
     "basket"                       : "Bannette",
     "basketAdded"                  : "Bannette ajoutée",
+    "basketCreation"               : "Création d'une bannette",
     "basketDeleted"                : "Bannette supprimée",
+    "basketModification"           : "Modification d'une bannette",
+    "basketNotification"           : "Activer / désactiver la notification de cette bannette",
     "baskets"                      : "Bannettes",
+    "basketsOrder"                  : "Gerer l'ordre des bannettes",
     "basketUpdated"                : "Bannette modifiée",
     "canBeModified"                : "Modification des index",
     "canBeSearched"                : "Recherche",
@@ -41,6 +50,7 @@ export const LANG_FR = {
     "chooseBasket"                 : "Choisissez une banette",
     "chooseCategoryAssociation"    : "Choisissez une ou plusieurs catégories associée",
     "chooseCategoryAssociationHelp" : "Si aucune catégorie sélectionnée alors l'action est valable pour toute les catégories",
+    "chooseDefaultAction"          : "Choisissez une action principale",
     "chooseEntity"                 : "Choisissez une entité",
     "chooseGroup"                  : "Choisissez un groupe",
     "chooseRedirectGroup"          : "Choisissez un groupe de remplacement",
@@ -49,9 +59,12 @@ export const LANG_FR = {
     "color"                        : "Couleur",
     "confirmAction"                : "Voulez-vous vraiment effectuer cette action ?",
     "content_management"           : "Versionning de document",
+    "createScriptNotification"      : "Créer le script",
     "currentPsw"                   : "Mot de passe actuel",
     "dataOfMonth"                  : "Données du mois",
     "date"                         : "Date",
+    "default"                      : "par défaut",
+    "defaultAction"                : "Action par défaut",
     "delete"                       : "Supprimer",
     "deleteMsg"                    : "Voulez-vous vraiment supprimer cet élément ?",
     "desactivateAbsence"           : "Désactiver l'absence",
@@ -89,6 +102,7 @@ export const LANG_FR = {
     "id"                           : "Identifiant",
     "imgRelated"                   : "Image associée",
     "inactive"                     : "Inactif",
+    "indexing"                    : "Indexations",
     "informations"                 : "Informations",
     "infosActions"                 : "Vous devez choisir au moins un statut et / ou un script.",
     "initials"                     : "Initiales",
@@ -97,7 +111,9 @@ export const LANG_FR = {
     "isAssociatedTo"               : "est associé à",
     "isFolderAction"               : "Action de dossier",
     "isFolderActionDesc"           : "Permet d'utiliser cette action dans une bannette de dossier",
+    "isFolderBasket"               : "Bannette de dossier",
     "isFolderStatus"               : "Statut de dossier",
+    "isSearchBasket"               : "Bannette de recherche uniquement",
     "isSytemAction"                : "Action système",
     "keyword"                      : "Mot-clé",
     "keywordHelp"                  : "Aide sur les mots-clés",
@@ -117,6 +133,7 @@ export const LANG_FR = {
     "last"                         : "dernier",
     "lastname"                     : "Nom",
     "life_cycle"                   : "Cycle de vie",
+    "linkGroup"                    : "Associer un groupe",
     "maarchApplication"            : "Application Maarch",
     "manageAbsences"               : "Rediriger mes bannettes",
     "manageSignatures"             : "Gérer les signatures",
@@ -124,6 +141,7 @@ export const LANG_FR = {
     "modificationSaved"            : "Modification enregistrée",
     "module"                       : "Module",
     "modules"                      : "Modules",
+    "moreOptions"                  : "Plus d'options",
     "myProfile"                    : "Mon profil",
     "newAction"                    : "Nouvelle action",
     "newElement"                   : "Nouvel élément",
@@ -151,6 +169,8 @@ export const LANG_FR = {
     "notificationsSchedule"        : "Planification des notifications",
     "NotificationToEnable"         : "Activer",
     "notificationUpdated"          : "Notification mise à jour",
+    "otherActions"                 : "Action(s) supplémentaire(s)",
+    "otherParameters"              : "Autre(s) paramètre(s)",
     "outOf"                        : "sur",
     "page"                         : "Page",
     "parameter"                     : "Paramètre",
@@ -164,20 +184,25 @@ export const LANG_FR = {
     "priorityAdded"                 : "Priorité ajoutée",
     "priorityDeleted"               : "Priorité supprimée",
     "priorityUpdated"               : "Priorité modifiée",
+    "processAction"                 : "Action(s) de traitement",
     "processDelay"                  : "Délai de traitement",
     "pswReseted"                   : "Mot de passe réinitialisé",
     "record"                       : "élément(s)",
     "records"                      : "résultats",
     "recordsPerPage"               : "résultats par page",
+    "redirects"                    : "Redirections",
     "reinitPassword"               : "Réinitialiser le mot de passe",
     "relatedUsers"                 : "Utilisateurs associés",
     "renewPsw"                     : "Retaper le mot de passe",
     "reports"                      : "Etats et éditions",
     "resetPsw"                     : "Réinitialiser le mot de passe",
+    "resultPages"                  : "Pages de résultat",
     "role"                         : "Rôle",
     "save"                         : "Enregistrer",
     "sbSignatures"                 : "Signatures de parapheur",
+    "ScriptCreated"                 : "Script créé",
     "search"                       : "Chercher",
+    "searchEntities"               : "Rechercher un service",
     "secondaryEntity"              : "Entitté secondaire",
     "selectAll"                    : "Sélectionner tout",
     "sendmail"                     : "Envoi de mails",
@@ -200,17 +225,25 @@ export const LANG_FR = {
     "templates"                    : "Modèles de documents",
     "thesaurus"                    : "Thésaurus",
     "to"                           : "vers",
+    "toDefault"                    : "par défaut",
+    "toEntities"                   : "Vers les services",
     "tooltipFolderStatus"          : "Si coché, le statut pourra être utilisé pour des bannettes de dossiers",
     "tooltipIndexStatus"           : "Si coché, vous pourrez modifier les meta-données des documents ayant ce statut",
     "tooltipSearchStatus"          : "Si coché, le statut vous sera proposé dans le critère de recherche STATUTS de la recherche avancée",
     "toSchedule"                   : "Planifier",
+    "toStatuses"                   : "Vers les statuts",
+    "toStatusesDesc"               : "Vous ne pouvez pas choisir de statut, un statut est dèja pré-définit pour cette action.",
     "totalErrors"                  : "Élément(s) en erreur",
     "totalProcessed"               : "Élément(s) analysé(s)",
+    "toUsersEntities"              : "Vers les utilisateurs des services",
     "type"                         : "Type",
+    "unlinkGroup"                  : "Dissocier le groupe",
     "unselectAll"                  : "Tout désélectionner",
     "update"                        : "Modifier",
     "updateStatus"                  : "Changement de statut de courrier",
     "updateStatusInformations"      : "En saisissant le n° chrono ou le n° GED du document, vous modifierez le statut du courrier. Le courrier sera disponible dans la bannette des utilisateurs auquel il était affecté suivant le statut que vous aurez défini.",
+    "usedInActionPage"             : "Action sur la page d'action",
+    "usedInBasketlist"             : "Action sur la liste de résultat",
     "user"                          : "utilisateur",
     "userAdded"                     : "Utilisateur ajouté",
     "userAuthorized"                : "Utilisateur autorisé",
@@ -221,11 +254,11 @@ export const LANG_FR = {
     "userSuspended"                 : "Utilisateur suspendu",
     "userUpdated"                   : "Utilisateur modifié",
     "validate"                      : "Valider",
+    "validateAction"               : "Action(s) de qualification",
     "value"                         : "valeur",
     "view"                          : "Consulter",
     "visa"                          : "Circuit de visa",
+    "whereClauseAction"            : "Condition d'apparition de l'action (where clause)",
     "workingDays"                   : "Jours ouvrés",
     "yes"                           : "Oui",
-    "createScriptNotification"      : "Créer le script",
-    "ScriptCreated"                 : "Script créé",
 };
\ 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 4adfa91ce574d5ed85bda2eb72511adebe3578f7..b31323ec690165e8ae089dd8d3ab53ab4052753e 100755
--- 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 i(a,s){if(!n[a]){if(!e[a]){var c="function"==typeof require&&require;if(!s&&c)return c(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[a]={exports:{}};e[a][0].call(u.exports,function(t){var n=e[a][1][t];return i(n||t)},u,u.exports,t,e,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("@angular/router"),c=t("../translate.component"),l=t("../notification.service"),u=function(){function t(t,e,n,r){this.http=t,this.route=e,this.router=n,this.notify=r,this.lang=c.LANG,this.action={},this.statuses=[],this.actionPagesList=[],this.categoriesList=[],this.keywordsList=[],this.loading=!1}return 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.administration+"</a> > <a onclick='location.hash = \"/administration/actions\"' style='cursor: pointer'>"+this.lang.actions+"</a> > ";1==this.creationMode?e+=this.lang.actionCreation:e+=this.lang.actionModification,$j("#ariane")[0].innerHTML=e},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.creationMode=!0,t.http.get(t.coreUrl+"rest/initAction").subscribe(function(e){t.action=e.action,t.categoriesList=e.categoriesList,t.statuses=e.statuses,t.actionPagesList=e.action_pagesList,t.keywordsList=e.keywordsList,t.loading=!1})):(t.creationMode=!1,t.http.get(t.coreUrl+"rest/actions/"+e.id).subscribe(function(e){t.action=e.action,t.categoriesList=e.categoriesList,t.statuses=e.statuses,t.actionPagesList=e.action_pagesList,t.keywordsList=e.keywordsList,t.loading=!1}))})},t.prototype.onSubmit=function(){var t=this;this.creationMode?this.http.post(this.coreUrl+"rest/actions",this.action).subscribe(function(e){t.router.navigate(["/administration/actions"]),t.notify.success(t.lang.actionAdded)},function(e){t.notify.error(JSON.parse(e._body).errors)}):this.http.put(this.coreUrl+"rest/actions/"+this.action.id,this.action).subscribe(function(e){t.router.navigate(["/administration/actions"]),t.notify.success(t.lang.actionUpdated)},function(e){t.notify.error(JSON.parse(e._body).errors)})},t=r([o.Component({templateUrl:angularGlobals["action-administrationView"],providers:[l.NotificationService]}),i("design:paramtypes",[a.HttpClient,s.ActivatedRoute,s.Router,l.NotificationService])],t)}();n.ActionAdministrationComponent=u},{"../notification.service":30,"../translate.component":33,"@angular/common/http":54,"@angular/core":57,"@angular/router":63}],2:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("../translate.component"),c=t("../notification.service"),l=t("@angular/material"),u=function(){function t(t,e){this.http=t,this.notify=e,this.lang=s.LANG,this.search=null,this.actions=[],this.titles=[],this.loading=!1,this.displayedColumns=["id","label_action","history","is_folder_action","actions"],this.dataSource=new l.MatTableDataSource(this.actions)}return t.prototype.applyFilter=function(t){t=(t=t.trim()).toLowerCase(),this.dataSource.filter=t},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'>"+this.lang.administration+"</a> > "+this.lang.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/actions").subscribe(function(e){t.actions=e.actions,t.loading=!1,setTimeout(function(){t.dataSource=new l.MatTableDataSource(t.actions),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort},0)},function(t){console.log(t),location.href="index.php"})},t.prototype.deleteAction=function(t){var e=this;confirm(this.lang.confirmAction+" "+this.lang.delete+" « "+t.label_action+" »")&&this.http.delete(this.coreUrl+"rest/actions/"+t.id).subscribe(function(t){e.actions=t.action,e.dataSource=new l.MatTableDataSource(e.actions),e.dataSource.paginator=e.paginator,e.dataSource.sort=e.sort,e.notify.success(e.lang.actionDeleted)},function(t){e.notify.error(JSON.parse(t._body).errors)})},r([o.ViewChild(l.MatPaginator),i("design:type",l.MatPaginator)],t.prototype,"paginator",void 0),r([o.ViewChild(l.MatSort),i("design:type",l.MatSort)],t.prototype,"sort",void 0),t=r([o.Component({templateUrl:angularGlobals["actions-administrationView"],providers:[c.NotificationService]}),i("design:paramtypes",[a.HttpClient,c.NotificationService])],t)}();n.ActionsAdministrationComponent=u},{"../notification.service":30,"../translate.component":33,"@angular/common/http":54,"@angular/core":57,"@angular/material":59}],3:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),o=t("@angular/router"),a=t("./administration.component"),s=t("./users-administration.component"),c=t("./user-administration.component"),l=t("./groups-administration.component"),u=t("./group-administration.component"),p=t("./baskets-administration.component"),h=t("./baskets-order-administration.component"),d=t("./basket-administration.component"),f=t("./statuses-administration.component"),m=t("./status-administration.component"),g=t("./actions-administration.component"),y=t("./action-administration.component"),v=t("./parameter-administration.component"),b=t("./parameters-administration.component"),_=t("./priorities-administration.component"),w=t("./priority-administration.component"),C=t("./reports-administration.component"),x=t("./notifications-administration.component"),E=t("./notification-administration.component"),S=t("./history-administration.component"),k=t("./historyBatch-administration.component"),O=t("./update-status-administration.component"),P=function(){function t(){}return t=r([i.NgModule({imports:[o.RouterModule.forChild([{path:"administration",component:a.AdministrationComponent},{path:"administration/users",component:s.UsersAdministrationComponent},{path:"administration/users/new",component:c.UserAdministrationComponent},{path:"administration/users/:id",component:c.UserAdministrationComponent},{path:"administration/groups",component:l.GroupsAdministrationComponent},{path:"administration/groups/new",component:u.GroupAdministrationComponent},{path:"administration/groups/:id",component:u.GroupAdministrationComponent},{path:"administration/baskets",component:p.BasketsAdministrationComponent},{path:"administration/baskets-sorted",component:h.BasketsOrderAdministrationComponent},{path:"administration/baskets/new",component:d.BasketAdministrationComponent},{path:"administration/baskets/:id",component:d.BasketAdministrationComponent},{path:"administration/statuses",component:f.StatusesAdministrationComponent},{path:"administration/statuses/new",component:m.StatusAdministrationComponent},{path:"administration/statuses/:identifier",component:m.StatusAdministrationComponent},{path:"administration/parameters",component:b.ParametersAdministrationComponent},{path:"administration/parameters/new",component:v.ParameterAdministrationComponent},{path:"administration/parameters/:id",component:v.ParameterAdministrationComponent},{path:"administration/reports",component:C.ReportsAdministrationComponent},{path:"administration/priorities",component:_.PrioritiesAdministrationComponent},{path:"administration/priorities/new",component:w.PriorityAdministrationComponent},{path:"administration/priorities/:id",component:w.PriorityAdministrationComponent},{path:"administration/actions",component:g.ActionsAdministrationComponent},{path:"administration/actions/new",component:y.ActionAdministrationComponent},{path:"administration/actions/:id",component:y.ActionAdministrationComponent},{path:"administration/notifications",component:x.NotificationsAdministrationComponent},{path:"administration/notifications/new",component:E.NotificationAdministrationComponent},{path:"administration/notifications/:identifier",component:E.NotificationAdministrationComponent},{path:"administration/history",component:S.HistoryAdministrationComponent},{path:"administration/historyBatch",component:k.HistoryBatchAdministrationComponent},{path:"administration/update-status",component:O.UpdateStatusAdministrationComponent}])],exports:[o.RouterModule]})],t)}();n.AdministrationRoutingModule=P},{"./action-administration.component":1,"./actions-administration.component":2,"./administration.component":4,"./basket-administration.component":6,"./baskets-administration.component":7,"./baskets-order-administration.component":8,"./group-administration.component":9,"./groups-administration.component":10,"./history-administration.component":11,"./historyBatch-administration.component":12,"./notification-administration.component":13,"./notifications-administration.component":14,"./parameter-administration.component":15,"./parameters-administration.component":16,"./priorities-administration.component":17,"./priority-administration.component":18,"./reports-administration.component":19,"./status-administration.component":20,"./statuses-administration.component":21,"./update-status-administration.component":22,"./user-administration.component":23,"./users-administration.component":24,"@angular/core":57,"@angular/router":63}],4:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("@angular/router"),c=t("../translate.component"),l=function(){function t(t,e){this.http=t,this.router=e,this.lang=c.LANG,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").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=r([o.Component({templateUrl:angularGlobals.administrationView,styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"]}),i("design:paramtypes",[a.HttpClient,s.Router])],t)}();n.AdministrationComponent=l},{"../translate.component":33,"@angular/common/http":54,"@angular/core":57,"@angular/router":63}],5:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),o=t("@angular/common"),a=t("@angular/forms"),s=t("@angular/common/http"),c=t("../app-material.module"),l=t("./administration-routing.module"),u=t("./administration.component"),p=t("./users-administration.component"),h=t("./user-administration.component"),d=t("./groups-administration.component"),f=t("./group-administration.component"),m=t("./baskets-administration.component"),g=t("./baskets-order-administration.component"),y=t("./basket-administration.component"),v=t("./statuses-administration.component"),b=t("./status-administration.component"),_=t("./actions-administration.component"),w=t("./action-administration.component"),C=t("./parameters-administration.component"),x=t("./parameter-administration.component"),E=t("./priorities-administration.component"),S=t("./priority-administration.component"),k=t("./reports-administration.component"),O=t("./history-administration.component"),P=t("./historyBatch-administration.component"),A=t("./update-status-administration.component"),T=t("./notifications-administration.component"),M=t("./notification-administration.component"),I=function(){function t(){}return t=r([i.NgModule({imports:[o.CommonModule,a.FormsModule,a.ReactiveFormsModule,s.HttpClientModule,c.AppMaterialModule,l.AdministrationRoutingModule],declarations:[u.AdministrationComponent,p.UsersAdministrationComponent,h.UserAdministrationComponent,d.GroupsAdministrationComponent,f.GroupAdministrationComponent,m.BasketsAdministrationComponent,g.BasketsOrderAdministrationComponent,y.BasketAdministrationComponent,v.StatusesAdministrationComponent,b.StatusAdministrationComponent,_.ActionsAdministrationComponent,w.ActionAdministrationComponent,C.ParametersAdministrationComponent,x.ParameterAdministrationComponent,E.PrioritiesAdministrationComponent,S.PriorityAdministrationComponent,k.ReportsAdministrationComponent,O.HistoryAdministrationComponent,P.HistoryBatchAdministrationComponent,A.UpdateStatusAdministrationComponent,T.NotificationsAdministrationComponent,M.NotificationAdministrationComponent,p.UsersAdministrationRedirectModalComponent],entryComponents:[p.UsersAdministrationRedirectModalComponent]})],t)}();n.AdministrationModule=I},{"../app-material.module":25,"./action-administration.component":1,"./actions-administration.component":2,"./administration-routing.module":3,"./administration.component":4,"./basket-administration.component":6,"./baskets-administration.component":7,"./baskets-order-administration.component":8,"./group-administration.component":9,"./groups-administration.component":10,"./history-administration.component":11,"./historyBatch-administration.component":12,"./notification-administration.component":13,"./notifications-administration.component":14,"./parameter-administration.component":15,"./parameters-administration.component":16,"./priorities-administration.component":17,"./priority-administration.component":18,"./reports-administration.component":19,"./status-administration.component":20,"./statuses-administration.component":21,"./update-status-administration.component":22,"./user-administration.component":23,"./users-administration.component":24,"@angular/common":55,"@angular/common/http":54,"@angular/core":57,"@angular/forms":58}],6:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("@angular/router"),c=t("../translate.component"),l=t("../notification.service"),u=function(){function t(t,e,n,r){this.http=t,this.route=e,this.router=n,this.notify=r,this.lang=c.LANG,this.basket={},this.basketGroups=[],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/baskets\"' style='cursor: pointer'>Bannettes</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.basketIdAvailable=!1,t.loading=!1):(t.creationMode=!1,t.basketIdAvailable=!0,t.id=e.id,t.http.get(t.coreUrl+"rest/baskets/"+t.id).subscribe(function(e){t.basket=e.basket,t.basket.id=e.basket.basket_id,t.basket.name=e.basket.basket_name,t.basket.description=e.basket.basket_desc,t.basket.clause=e.basket.basket_clause,t.basket.isSearchBasket="Y"!=e.basket.is_visible,t.basket.isFolderBasket="Y"==e.basket.is_folder_basket,t.basket.flagNotif="Y"==e.basket.flag_notif,t.http.get(t.coreUrl+"rest/baskets/"+t.id+"/groups").subscribe(function(e){t.basketGroups=e.groups,t.loading=!1},function(){location.href="index.php"})},function(){location.href="index.php"}))})},t.prototype.isAvailable=function(){var t=this;this.basket.id?this.http.get(this.coreUrl+"rest/baskets/"+this.basket.id).subscribe(function(){t.basketIdAvailable=!1},function(e){t.basketIdAvailable=!1,"Basket not found"==e.error.errors&&(t.basketIdAvailable=!0)}):this.basketIdAvailable=!1},t.prototype.onSubmit=function(){var t=this;this.creationMode?this.http.post(this.coreUrl+"rest/baskets",this.basket).subscribe(function(e){t.notify.success(t.lang.basketAdded),t.router.navigate(["/administration/baskets"])},function(e){t.notify.error(e.error.errors)}):this.http.put(this.coreUrl+"rest/baskets/"+this.id,this.basket).subscribe(function(e){t.notify.success(t.lang.basketUpdated),t.router.navigate(["/administration/baskets"])},function(e){t.notify.error(e.error.errors)})},t=r([o.Component({templateUrl:angularGlobals["basket-administrationView"],providers:[l.NotificationService]}),i("design:paramtypes",[a.HttpClient,s.ActivatedRoute,s.Router,l.NotificationService])],t)}();n.BasketAdministrationComponent=u},{"../notification.service":30,"../translate.component":33,"@angular/common/http":54,"@angular/core":57,"@angular/router":63}],7:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("../translate.component"),c=t("../notification.service"),l=function(){function t(t,e){this.http=t,this.notify=e,this.lang=s.LANG,this.baskets=[],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> > Bannettes")},t.prototype.ngOnInit=function(){var t=this;this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/baskets").subscribe(function(e){t.baskets=e.baskets,t.loading=!1},function(){location.href="index.php"})},t.prototype.delete=function(t){var e=this;this.http.delete(this.coreUrl+"rest/baskets/"+t.basket_id).subscribe(function(t){e.notify.success(e.lang.basketDeleted),e.baskets=t.baskets},function(t){e.notify.error(t.error.errors)})},t=r([o.Component({templateUrl:angularGlobals["baskets-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"],providers:[c.NotificationService]}),i("design:paramtypes",[a.HttpClient,c.NotificationService])],t)}();n.BasketsAdministrationComponent=l},{"../notification.service":30,"../translate.component":33,"@angular/common/http":54,"@angular/core":57}],8:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("../translate.component"),c=t("../notification.service"),l=function(){function t(t,e){this.http=t,this.notify=e,this.lang=s.LANG,this.baskets=[],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> > Ordre des bannettes")},t.prototype.ngOnInit=function(){var t=this;this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/sortedBaskets").subscribe(function(e){t.baskets=e.baskets,t.loading=!1},function(){location.href="index.php"})},t.prototype.updateOrder=function(t,e,n){var r=this;this.http.put(this.coreUrl+"rest/sortedBaskets/"+t,{method:e,power:n}).subscribe(function(t){r.baskets=t.baskets,r.notify.success(r.lang.modificationSaved)},function(t){r.notify.error(t.error.errors)})},t=r([o.Component({templateUrl:angularGlobals["baskets-order-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"],providers:[c.NotificationService]}),i("design:paramtypes",[a.HttpClient,c.NotificationService])],t)}();n.BasketsOrderAdministrationComponent=l},{"../notification.service":30,"../translate.component":33,"@angular/common/http":54,"@angular/core":57}],9:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("@angular/router"),c=t("../translate.component"),l=t("../notification.service"),u=function(){function t(t,e,n,r){this.http=t,this.route=e,this.router=n,this.notify=r,this.lang=c.LANG,this.group={security:{}},this.loading=!1}return 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.administration+"</a> > <a onclick='location.hash = \"/administration/groups\"' style='cursor: pointer'>"+this.lang.groups+"</a> > ";1==this.creationMode?e+=this.lang.groupCreation:e+=this.lang.groupModification,$j("#ariane")[0].innerHTML=e},t.prototype.ngOnInit=function(){var t=this;this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.route.params.subscribe(function(e){void 0===e.id?(t.creationMode=!0,t.loading=!1,t.updateBreadcrumb(angularGlobals.applicationName)):(t.creationMode=!1,t.http.get(t.coreUrl+"rest/groups/"+e.id+"/details").subscribe(function(e){t.updateBreadcrumb(angularGlobals.applicationName),t.group=e.group,t.loading=!1},function(){location.href="index.php"}))})},t.prototype.onSubmit=function(){var t=this;this.creationMode?this.http.post(this.coreUrl+"rest/groups",this.group).subscribe(function(e){t.notify.success(t.lang.groupAdded),t.router.navigate(["/administration/groups/"+e.group.id])},function(e){t.notify.error(e.error.errors)}):this.http.put(this.coreUrl+"rest/groups/"+this.group.id,{description:this.group.group_desc,security:this.group.security}).subscribe(function(e){t.notify.success(t.lang.groupUpdated)},function(e){t.notify.error(e.error.errors)})},t.prototype.updateService=function(t){var e=this;this.http.put(this.coreUrl+"rest/groups/"+this.group.id+"/services/"+t.id,t).subscribe(function(t){e.notify.success(e.lang.groupUpdated)},function(n){t.checked=!t.checked,e.notify.error(n.error.errors)})},t=r([o.Component({templateUrl:angularGlobals["group-administrationView"],providers:[l.NotificationService]}),i("design:paramtypes",[a.HttpClient,s.ActivatedRoute,s.Router,l.NotificationService])],t)}();n.GroupAdministrationComponent=u},{"../notification.service":30,"../translate.component":33,"@angular/common/http":54,"@angular/core":57,"@angular/router":63}],10:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("../translate.component"),c=t("../notification.service"),l=t("@angular/material"),u=function(){function t(t,e){this.http=t,this.notify=e,this.lang=s.LANG,this.groups=[],this.groupsForAssign=[],this.loading=!1,this.displayedColumns=["group_id","group_desc","actions"],this.dataSource=new l.MatTableDataSource(this.groups)}return t.prototype.applyFilter=function(t){t=(t=t.trim()).toLowerCase(),this.dataSource.filter=t},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> > Groupes")},t.prototype.ngOnInit=function(){var t=this;this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/groups").subscribe(function(e){t.groups=e.groups,t.loading=!1,setTimeout(function(){t.dataSource=new l.MatTableDataSource(t.groups),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort},0)},function(){location.href="index.php"})},t.prototype.preDelete=function(t){var e=this;confirm("Etes vous sûr de vouloir supprimer ce groupe ?")&&(0==t.users.length?this.deleteGroup(t):(this.groupsForAssign.push("Aucun remplacement"),this.groups.forEach(function(n){t.group_id!=n.group_id&&e.groupsForAssign.push(n.group_id)})))},t.prototype.reassignUsers=function(t,e){var n=this;this.groupsForAssign=[],"Aucun remplacement"==e?this.deleteGroup(t):this.http.get(this.coreUrl+"rest/groups/"+t.id+"/reassign/"+e).subscribe(function(e){n.deleteGroup(t)},function(t){n.notify.error(t.error.errors)})},t.prototype.deleteGroup=function(t){var e=this;this.http.delete(this.coreUrl+"rest/groups/"+t.id).subscribe(function(t){setTimeout(function(){e.groups=t.groups,e.dataSource=new l.MatTableDataSource(e.groups),e.dataSource.paginator=e.paginator,e.dataSource.sort=e.sort},0),e.notify.success(e.lang.groupDeleted)},function(t){e.notify.error(t.error.errors)})},r([o.ViewChild(l.MatPaginator),i("design:type",l.MatPaginator)],t.prototype,"paginator",void 0),r([o.ViewChild(l.MatSort),i("design:type",l.MatSort)],t.prototype,"sort",void 0),t=r([o.Component({templateUrl:angularGlobals["groups-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"],providers:[c.NotificationService]}),i("design:paramtypes",[a.HttpClient,c.NotificationService])],t)}();n.GroupsAdministrationComponent=u},{"../notification.service":30,"../translate.component":33,"@angular/common/http":54,"@angular/core":57,"@angular/material":59}],11:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("../translate.component"),c=t("../notification.service"),l=t("@angular/material"),u=function(){function t(t,e){this.http=t,this.notify=e,this.lang=s.LANG,this.loading=!1,this.data=[],this.CurrentYear=(new Date).getFullYear(),this.currentMonth=(new Date).getMonth()+1,this.minDate=new Date,this.displayedColumns=["event_date","event_type","user_id","info","remote_ip"],this.dataSource=new l.MatTableDataSource(this.data)}return t.prototype.applyFilter=function(t){t=(t=t.trim()).toLowerCase(),this.dataSource.filter=t},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'>"+this.lang.administration+"</a> > "+this.lang.history)},t.prototype.ngOnInit=function(){var t=this;this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.updateBreadcrumb(angularGlobals.applicationName),$j("#inner_content").remove(),this.minDate=new Date(this.CurrentYear+"-"+this.currentMonth+"-01"),this.http.get(this.coreUrl+"rest/administration/history/eventDate/"+this.minDate.toJSON()).subscribe(function(e){t.data=e.historyList,t.loading=!1,setTimeout(function(){t.dataSource=new l.MatTableDataSource(t.data),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort},0)},function(t){console.log(t),location.href="index.php"})},t.prototype.refreshHistory=function(t){var e=this;this.http.get(this.coreUrl+"rest/administration/history/eventDate/"+this.minDate.toJSON()).subscribe(function(t){e.data=t.historyList,e.dataSource=new l.MatTableDataSource(e.data),e.dataSource.paginator=e.paginator,e.dataSource.sort=e.sort},function(t){console.log(t),location.href="index.php"})},r([o.ViewChild(l.MatPaginator),i("design:type",l.MatPaginator)],t.prototype,"paginator",void 0),r([o.ViewChild(l.MatSort),i("design:type",l.MatSort)],t.prototype,"sort",void 0),t=r([o.Component({templateUrl:angularGlobals["history-administrationView"],styleUrls:[],providers:[c.NotificationService]}),i("design:paramtypes",[a.HttpClient,c.NotificationService])],t)}();n.HistoryAdministrationComponent=u},{"../notification.service":30,"../translate.component":33,"@angular/common/http":54,"@angular/core":57,"@angular/material":59}],12:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("../translate.component"),c=t("../notification.service"),l=t("@angular/material"),u=function(){function t(t,e){this.http=t,this.notify=e,this.lang=s.LANG,this.loading=!1,this.data=[],this.CurrentYear=(new Date).getFullYear(),this.currentMonth=(new Date).getMonth()+1,this.minDate=new Date,this.displayedColumns=["batch_id","event_date","total_processed","total_errors","info","module_name"],this.dataSource=new l.MatTableDataSource(this.data)}return t.prototype.applyFilter=function(t){t=(t=t.trim()).toLowerCase(),this.dataSource.filter=t},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'>"+this.lang.administration+"</a> > "+this.lang.historyBatch)},t.prototype.ngOnInit=function(){var t=this;this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.updateBreadcrumb(angularGlobals.applicationName),$j("#inner_content").remove(),this.minDate=new Date(this.CurrentYear+"-"+this.currentMonth+"-01"),this.http.get(this.coreUrl+"rest/administration/historyBatch/eventDate/"+this.minDate.toJSON()).subscribe(function(e){t.data=e.historyList,t.loading=!1,setTimeout(function(){t.dataSource=new l.MatTableDataSource(t.data),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort},0)},function(t){console.log(t),location.href="index.php"})},t.prototype.refreshHistory=function(){var t=this;this.http.get(this.coreUrl+"rest/administration/historyBatch/eventDate/"+this.minDate.toJSON()).subscribe(function(e){t.data=e.historyList,t.dataSource=new l.MatTableDataSource(t.data),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort},function(t){console.log(t),location.href="index.php"})},r([o.ViewChild(l.MatPaginator),i("design:type",l.MatPaginator)],t.prototype,"paginator",void 0),r([o.ViewChild(l.MatSort),i("design:type",l.MatSort)],t.prototype,"sort",void 0),t=r([o.Component({templateUrl:angularGlobals["historyBatch-administrationView"],styleUrls:[],providers:[c.NotificationService]}),i("design:paramtypes",[a.HttpClient,c.NotificationService])],t)}();n.HistoryBatchAdministrationComponent=u},{"../notification.service":30,"../translate.component":33,"@angular/common/http":54,"@angular/core":57,"@angular/material":59}],13:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("../translate.component"),c=t("@angular/router"),l=t("../notification.service"),u=function(){function t(t,e,n,r){this.http=t,this.route=e,this.router=n,this.notify=r,this.notification={diffusionType_label:null},this.loading=!1,this.lang=s.LANG}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/notifications\"' style='cursor: pointer'>notifications</a>")},t.prototype.ngOnInit=function(){var t=this;this.updateBreadcrumb(angularGlobals.applicationName),this.loading=!0,this.coreUrl=angularGlobals.coreUrl,this.route.params.subscribe(function(e){void 0===e.identifier?(t.creationMode=!0,t.http.get(t.coreUrl+"rest/administration/notifications/new").subscribe(function(e){t.notification=e.notification,t.loading=!1},function(e){t.notify.error(e.error.errors)})):(t.creationMode=!1,t.http.get(t.coreUrl+"rest/administration/notifications/"+e.identifier).subscribe(function(e){t.notification=e.notification,t.loading=!1},function(e){t.notify.error(e.error.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.prototype.onSubmit=function(){var t=this;$j("#groupslist").val()?this.notification.diffusion_properties=$j("#groupslist").val():$j("#entitieslist").val()?this.notification.diffusion_properties=$j("#entitieslist").val():$j("#statuseslist").val()?this.notification.diffusion_properties=$j("#statuseslist").val():$j("#userslist").val()&&(this.notification.diffusion_properties=$j("#userslist").val()),null==$j("#joinDocJd").val()?this.notification.attachfor_properties="":$j("#groupslistJd").val()?this.notification.attachfor_properties=$j("#groupslistJd").val():$j("#entitieslistJd").val()?this.notification.attachfor_properties=$j("#entitieslistJd").val():$j("#statuseslistJd").val()?this.notification.attachfor_properties=$j("#statuseslistJd").val():$j("#userslistJd").val()&&(this.notification.attachfor_properties=$j("#userslistJd").val()),this.creationMode?this.http.post(this.coreUrl+"rest/notifications",this.notification).subscribe(function(e){t.router.navigate(["/administration/notifications"]),t.notify.success(t.lang.newNotificationAdded+" « "+t.notification.notification_id+" »")},function(e){t.notify.error(e.error.errors)}):this.http.put(this.coreUrl+"rest/notifications/"+this.notification.notification_sid,this.notification).subscribe(function(e){t.router.navigate(["/administration/notifications"]),t.notify.success(t.lang.notificationUpdated+" « "+t.notification.notification_id+" »")},function(e){t.notify.error(e.error.errors)})},t=r([o.Component({templateUrl:angularGlobals["notification-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"],providers:[l.NotificationService]}),i("design:paramtypes",[a.HttpClient,c.ActivatedRoute,c.Router,l.NotificationService])],t)}();n.NotificationAdministrationComponent=u},{"../notification.service":30,"../translate.component":33,"@angular/common/http":54,"@angular/core":57,"@angular/router":63}],14:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("../translate.component"),c=t("../notification.service"),l=function(){function t(t,e){this.http=t,this.notify=e,this.notifications=[],this.loading=!1,this.lang=s.LANG}return t.prototype.ngOnInit=function(){var t=this;this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/notifications").subscribe(function(e){t.notifications=e.notifications,t.loading=!1},function(e){t.notify.error(e.error.errors)})},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.administration+"</a> > "+this.lang.admin_notifications},t.prototype.deleteNotification=function(t){var e=this;confirm(this.lang.deleteMsg)&&this.http.delete(this.coreUrl+"rest/notifications/"+t.notification_sid).subscribe(function(t){e.notifications=t.notifications,e.notify.success(t.success)},function(t){e.notify.error(t.error.errors)})},t=r([o.Component({templateUrl:angularGlobals["notifications-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"],providers:[c.NotificationService]}),i("design:paramtypes",[a.HttpClient,c.NotificationService])],t)}();n.NotificationsAdministrationComponent=l},{"../notification.service":30,"../translate.component":33,"@angular/common/http":54,"@angular/core":57}],15:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("@angular/router"),c=t("../translate.component"),l=t("../notification.service"),u=function(){function t(t,e,n,r){this.http=t,this.route=e,this.router=n,this.notify=r,this.lang=c.LANG,this.parameter={},this.loading=!1}return 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.administration+"</a> > <a onclick='location.hash = \"/administration/parameters\"' style='cursor: pointer'>"+this.lang.parameters+"</a>"},t.prototype.ngOnInit=function(){var t=this;this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.route.params.subscribe(function(e){void 0===e.id?(t.creationMode=!0,t.updateBreadcrumb(angularGlobals.applicationName),t.loading=!1):(t.creationMode=!1,t.http.get(t.coreUrl+"rest/parameters/"+e.id).subscribe(function(e){t.parameter=e.parameter,t.updateBreadcrumb(angularGlobals.applicationName),t.parameter.param_value_int?t.type="int":t.parameter.param_value_date?t.type="date":t.type="string",t.loading=!1},function(){location.href="index.php"}))})},t.prototype.onSubmit=function(){var t=this;"date"==this.type?(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).subscribe(function(e){t.router.navigate(["administration/parameters"]),t.notify.success(t.lang.parameterAdded)},function(e){t.notify.error(e.error.errors)}):0==this.creationMode&&this.http.put(this.coreUrl+"rest/parameters/"+this.parameter.id,this.parameter).subscribe(function(e){t.router.navigate(["administration/parameters"]),t.notify.success(t.lang.parameterUpdated)},function(e){t.notify.error(e.error.errors)})},t=r([o.Component({templateUrl:angularGlobals["parameter-administrationView"],providers:[l.NotificationService]}),i("design:paramtypes",[a.HttpClient,s.ActivatedRoute,s.Router,l.NotificationService])],t)}();n.ParameterAdministrationComponent=u},{"../notification.service":30,"../translate.component":33,"@angular/common/http":54,"@angular/core":57,"@angular/router":63}],16:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("../translate.component"),c=t("../notification.service"),l=t("@angular/material"),u=function(){function t(t,e){this.http=t,this.notify=e,this.lang=s.LANG,this.parameters={},this.loading=!1,this.displayedColumns=["id","description","value","actions"]}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'>"+this.lang.administration+"</a> > "+this.lang.parameters)},t.prototype.applyFilter=function(t){t=(t=t.trim()).toLowerCase(),this.dataSource.filter=t},t.prototype.ngOnInit=function(){var t=this;this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/parameters").subscribe(function(e){t.parameters=e.parameters,setTimeout(function(){t.dataSource=new l.MatTableDataSource(t.parameters),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort},0),t.loading=!1})},t.prototype.deleteParameter=function(t){var e=this;confirm(this.lang.deleteMsg)&&this.http.delete(this.coreUrl+"rest/parameters/"+t).subscribe(function(t){e.parameters=t.parameters,e.dataSource=new l.MatTableDataSource(e.parameters),e.dataSource.paginator=e.paginator,e.dataSource.sort=e.sort,e.notify.success(e.lang.parameterDeleted)},function(t){e.notify.error(t.error.errors)})},r([o.ViewChild(l.MatPaginator),i("design:type",l.MatPaginator)],t.prototype,"paginator",void 0),r([o.ViewChild(l.MatSort),i("design:type",l.MatSort)],t.prototype,"sort",void 0),t=r([o.Component({templateUrl:angularGlobals["parameters-administrationView"],providers:[c.NotificationService]}),i("design:paramtypes",[a.HttpClient,c.NotificationService])],t)}();n.ParametersAdministrationComponent=u},{"../notification.service":30,"../translate.component":33,"@angular/common/http":54,"@angular/core":57,"@angular/material":59}],17:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("../translate.component"),c=t("../notification.service"),l=function(){function t(t,e){this.http=t,this.notify=e,this.lang=s.LANG,this.loading=!1,this.priorities=[]}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/priorities").subscribe(function(e){t.priorities=e.priorities,t.loading=!1},function(){location.href="index.php"})},t.prototype.deletePriority=function(t){var e=this;confirm(this.lang.deleteMsg)&&this.http.delete(this.coreUrl+"rest/priorities/"+t).subscribe(function(t){e.priorities=t.priorities,e.notify.success(e.lang.priorityDeleted)},function(t){e.notify.error(t.error.errors)})},t=r([o.Component({templateUrl:angularGlobals["priorities-administrationView"],providers:[c.NotificationService]}),i("design:paramtypes",[a.HttpClient,c.NotificationService])],t)}();n.PrioritiesAdministrationComponent=l},{"../notification.service":30,"../translate.component":33,"@angular/common/http":54,"@angular/core":57}],18:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("@angular/router"),c=t("../translate.component"),l=t("../notification.service"),u=function(){function t(t,e,n,r){this.http=t,this.route=e,this.router=n,this.notify=r,this.lang=c.LANG,this.loading=!1,this.priority={working_days:!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.loading=!1):(t.creationMode=!1,t.id=e.id,t.http.get(t.coreUrl+"rest/priorities/"+t.id).subscribe(function(e){t.priority=e.priority,t.loading=!1},function(){location.href="index.php"}))})},t.prototype.onSubmit=function(){var t=this;this.creationMode?this.http.post(this.coreUrl+"rest/priorities",this.priority).subscribe(function(){t.notify.success(t.lang.priorityAdded),t.router.navigate(["/administration/priorities"])},function(e){t.notify.error(e.error.errors)}):this.http.put(this.coreUrl+"rest/priorities/"+this.id,this.priority).subscribe(function(){t.notify.success(t.lang.priorityUpdated),t.router.navigate(["/administration/priorities"])},function(e){t.notify.error(e.error.errors)})},t=r([o.Component({templateUrl:angularGlobals["priority-administrationView"],providers:[l.NotificationService]}),i("design:paramtypes",[a.HttpClient,s.ActivatedRoute,s.Router,l.NotificationService])],t)}();n.PriorityAdministrationComponent=u},{"../notification.service":30,"../translate.component":33,"@angular/common/http":54,"@angular/core":57,"@angular/router":63}],19:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("../translate.component"),c=t("../notification.service"),l=function(){function t(t,e){this.http=t,this.notify=e,this.lang=s.LANG,this.groups=[],this.reports=[],this.selectedGroup="",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> > Etats et edition")},t.prototype.ngOnInit=function(){var t=this;this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/reports/groups").subscribe(function(e){t.groups=e.groups,t.loading=!1},function(){location.href="index.php"})},t.prototype.loadReports=function(){var t=this;this.http.get(this.coreUrl+"rest/reports/groups/"+this.selectedGroup).subscribe(function(e){t.reports=e.reports},function(e){t.notify.error(e.error.errors)})},t.prototype.onSubmit=function(){var t=this;this.http.put(this.coreUrl+"rest/reports/groups/"+this.selectedGroup,this.reports).subscribe(function(){t.notify.success(t.lang.modificationSaved)},function(e){t.notify.error(e.error.errors)})},t=r([o.Component({templateUrl:angularGlobals["reports-administrationView"],providers:[c.NotificationService]}),i("design:paramtypes",[a.HttpClient,c.NotificationService])],t)}();n.ReportsAdministrationComponent=l},{"../notification.service":30,"../translate.component":33,"@angular/common/http":54,"@angular/core":57}],20:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("@angular/router"),c=t("../translate.component"),l=t("../notification.service"),u=function(){function t(t,e,n,r){this.http=t,this.route=e,this.router=n,this.notify=r,this.lang=c.LANG,this.status={id:null,label_status:null,can_be_searched:null,can_be_modified:null,is_folder_status:null,img_filename:null},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/statuses/new").subscribe(function(e){t.status.img_filename="fm-letter",t.status.can_be_searched=!0,t.status.can_be_modified=!0,t.statusImages=e.statusImages,t.creationMode=!0,t.updateBreadcrumb(angularGlobals.applicationName),t.loading=!1}):(t.creationMode=!1,t.statusIdentifier=e.identifier,t.getStatusInfos(t.statusIdentifier),t.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.administration+"</a> > <a onclick='location.hash = \"/administration/statuses\"' style='cursor: pointer'>"+this.lang.statuses+"</a> > ";1==this.creationMode?e+=this.lang.statusCreation:e+=this.lang.statusModification,$j("#ariane")[0].innerHTML=e},t.prototype.getStatusInfos=function(t){var e=this;this.http.get(this.coreUrl+"rest/statuses/"+t).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.statusImages=t.statusImages,e.updateBreadcrumb(angularGlobals.applicationName)},function(t){e.notify.error(JSON.parse(t._body).errors)})},t.prototype.submitStatus=function(){var t=this;1==this.creationMode?this.http.post(this.coreUrl+"rest/statuses",this.status).subscribe(function(e){t.notify.success(t.lang.statusAdded),t.router.navigate(["administration/statuses"])},function(e){t.notify.error(JSON.parse(e._body).errors)}):0==this.creationMode&&this.http.put(this.coreUrl+"rest/statuses/"+this.statusIdentifier,this.status).subscribe(function(e){t.notify.success(t.lang.statusUpdated),t.router.navigate(["administration/statuses"])},function(e){t.notify.error(JSON.parse(e._body).errors)})},t=r([o.Component({templateUrl:angularGlobals["status-administrationView"],styleUrls:["css/status-administration.component.css"],providers:[l.NotificationService]}),i("design:paramtypes",[a.HttpClient,s.ActivatedRoute,s.Router,l.NotificationService])],t)}();n.StatusAdministrationComponent=u},{"../notification.service":30,"../translate.component":33,"@angular/common/http":54,"@angular/core":57,"@angular/router":63}],21:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("../translate.component"),c=t("../notification.service"),l=t("@angular/material"),u=function(){function t(t,e){this.http=t,this.notify=e,this.lang=s.LANG,this.statuses=[],this.loading=!1,this.displayedColumns=["img_filename","id","label_status","identifier"],this.dataSource=new l.MatTableDataSource(this.statuses)}return t.prototype.applyFilter=function(t){t=(t=t.trim()).toLowerCase(),this.dataSource.filter=t},t.prototype.ngOnInit=function(){var t=this;this.coreUrl=angularGlobals.coreUrl,this.prepareStatus(),this.loading=!0,this.http.get(this.coreUrl+"rest/statuses").subscribe(function(e){t.statuses=e.statuses,t.updateBreadcrumb(angularGlobals.applicationName),t.loading=!1,setTimeout(function(){t.dataSource=new l.MatTableDataSource(t.statuses),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort},0)},function(e){t.notify.error(JSON.parse(e._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.administration+"</a> > "+this.lang.statuses},t.prototype.deleteStatus=function(t){var e=this;confirm(this.lang.confirmAction+" "+this.lang.delete+" « "+t.id+" »")&&this.http.delete(this.coreUrl+"rest/statuses/"+t.identifier).subscribe(function(t){e.statuses=t.statuses,e.notify.success(e.lang.statusDeleted)},function(t){e.notify.error(JSON.parse(t._body).errors)})},r([o.ViewChild(l.MatPaginator),i("design:type",l.MatPaginator)],t.prototype,"paginator",void 0),r([o.ViewChild(l.MatSort),i("design:type",l.MatSort)],t.prototype,"sort",void 0),t=r([o.Component({templateUrl:angularGlobals["statuses-administrationView"],styleUrls:[],providers:[c.NotificationService]}),i("design:paramtypes",[a.HttpClient,c.NotificationService])],t)}();n.StatusesAdministrationComponent=u},{"../notification.service":30,"../translate.component":33,"@angular/common/http":54,"@angular/core":57,"@angular/material":59}],22:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("../translate.component"),c=t("../notification.service"),l=function(){function t(t,e){this.http=t,this.notify=e,this.lang=s.LANG,this.statuses=[],this.resId="",this.chrono="",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> > Changement du statut")},t.prototype.ngOnInit=function(){var t=this;this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/statuses").subscribe(function(e){t.statuses=e.statuses,t.loading=!1},function(){location.href="index.php"})},t.prototype.onSubmit=function(){var t=this,e={status:$j("#statuses option:selected")[0].value};""!=this.resId?e.resId=this.resId:""!=this.chrono&&(e.chrono=this.chrono),this.http.put(this.coreUrl+"rest/res/resource/status",e).subscribe(function(){t.resId="",t.chrono="",$j("#statuses").prop("selectedIndex",0),t.notify.success(t.lang.modificationSaved)},function(e){t.notify.error(e.error.errors)})},t=r([o.Component({templateUrl:angularGlobals["update-status-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"],providers:[c.NotificationService]}),i("design:paramtypes",[a.HttpClient,c.NotificationService])],t)}();n.UpdateStatusAdministrationComponent=l},{"../notification.service":30,"../translate.component":33,"@angular/common/http":54,"@angular/core":57}],23:[function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},a=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 s=t("@angular/core"),c=t("@angular/common/http"),l=t("@angular/router"),u=t("../translate.component"),p=t("../notification.service"),h=t("@angular/material"),d=function(t){function e(e,n,r,i,o){var a=t.call(this,e,"users")||this;return a.http=e,a.route=n,a.router=r,a.zone=i,a.notify=o,a.lang=u.LANG,a._search="",a.user={},a.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},a.userAbsenceModel=[],a.userList=[],a.selectedSignature=-1,a.selectedSignatureLabel="",a.data=[],a.CurrentYear=(new Date).getFullYear(),a.currentMonth=(new Date).getMonth()+1,a.minDate=new Date,a.loading=!1,a.displayedColumns=["event_date","event_type","user_id","info","remote_ip"],a.dataSource=new h.MatTableDataSource(a.data),window.angularUserAdministrationComponent={componentAfterUpload:function(t){return a.processAfterUpload(t)}},a}return i(e,t),e.prototype.applyFilter=function(t){t=(t=t.trim()).toLowerCase(),this.dataSource.filter=t},e.prototype.updateBreadcrumb=function(t){var e="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>"+this.lang.administration+"</a> > <a onclick='location.hash = \"/administration/users\"' style='cursor: pointer'>"+this.lang.users+"</a> > ";1==this.creationMode?e+=this.lang.userCreation:e+=this.lang.userModification,$j("#ariane")[0].innerHTML=e},e.prototype.ngOnInit=function(){var t=this;this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.route.params.subscribe(function(e){void 0===e.id?(t.creationMode=!0,t.loading=!1,t.updateBreadcrumb(angularGlobals.applicationName)):(t.creationMode=!1,t.serialId=e.id,t.http.get(t.coreUrl+"rest/users/"+t.serialId+"/details").subscribe(function(e){t.user=e,t.data=e.history,t.userId=e.user_id,t.updateBreadcrumb(angularGlobals.applicationName),t.minDate=new Date(t.CurrentYear+"-"+t.currentMonth+"-01"),t.loading=!1,setTimeout(function(){t.dataSource=new h.MatTableDataSource(t.data),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort},0)},function(){location.href="index.php"}))})},e.prototype.toogleRedirect=function(t){$j("#redirectUser_"+t.group_id+"_"+t.basket_id).toggle(),this.http.get(this.coreUrl+"rest/administration/users").subscribe(function(t){},function(){location.href="index.php"})},e.prototype.initService=function(){var t=this;if(0==$j(".jstree-container-ul").length){$j("#jstree").jstree({checkbox:{three_state:!1},core:{themes:{name:"proton",responsive:!0},data:this.user.allEntities},plugins:["checkbox","search"]}),$j("#jstree").on("select_node.jstree",function(e,n){t.addEntity(n.node.id)}).on("deselect_node.jstree",function(e,n){t.deleteEntity(n.node.id)}).jstree();var e=!1;$j("#jstree_search").keyup(function(){e&&clearTimeout(e),e=setTimeout(function(){var t=$j("#jstree_search").val();$j("#jstree").jstree(!0).search(t)},250)})}},e.prototype.processAfterUpload=function(t){var e=this;this.zone.run(function(){return e.resfreshUpload(t)})},e.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="",this.notify.error("Taille maximum de fichier dépassée (2 MB)"))},e.prototype.clickOnUploader=function(t){$j("#"+t).click()},e.prototype.uploadSignatureTrigger=function(t){var e=this;if(t.target.files&&t.target.files[0]){var n=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),n.readAsDataURL(t.target.files[0]),n.onload=function(t){window.angularUserAdministrationComponent.componentAfterUpload(t.target.result),e.submitSignature()}}},e.prototype.displaySignatureEditionForm=function(t){this.selectedSignature=t,this.selectedSignatureLabel=this.user.signatures[t].signature_label},e.prototype.resetPassword=function(t){var e=this;confirm(this.lang.confirmAction+" "+this.lang.resetPsw)&&this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/password",{}).subscribe(function(n){e.notify.success(e.lang.pswReseted+" "+e.lang.for+" « "+t.user_id+" »")},function(t){e.notify.error(t.error.errors)})},e.prototype.toggleGroup=function(t){var e=this;if(1==$j("#"+t.group_id+"-input").is(":checked")){var n={groupId:t.group_id,role:t.role};this.http.post(this.coreUrl+"rest/users/"+this.serialId+"/groups",n).subscribe(function(n){e.user.groups=n.groups,e.user.allGroups=n.allGroups,e.user.baskets=n.baskets,e.notify.success(e.lang.groupAdded+" « "+t.group_id+" »")},function(t){e.notify.error(t.error.errors)})}else this.http.delete(this.coreUrl+"rest/users/"+this.serialId+"/groups/"+t.group_id).subscribe(function(n){e.user.groups=n.groups,e.user.allGroups=n.allGroups,e.notify.success(e.lang.groupDeleted+" « "+t.group_id+" »")},function(t){e.notify.error(t.error.errors)})},e.prototype.updateGroup=function(t){var e=this;this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/groups/"+t.group_id,t).subscribe(function(n){e.notify.success(e.lang.groupUpdated+" « "+t.group_id+" »")},function(t){e.notify.error(t.error.errors)})},e.prototype.addEntity=function(t){var e=this,n={entityId:t,role:""};this.http.post(this.coreUrl+"rest/users/"+this.serialId+"/entities",n).subscribe(function(n){e.user.entities=n.entities,e.user.allEntities=n.allEntities,e.notify.success(e.lang.entityAdded+" « "+t+" »")},function(t){e.notify.error(t.error.errors)})},e.prototype.updateEntity=function(t){var e=this;this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/entities/"+t.entity_id,t).subscribe(function(n){e.notify.success(e.lang.entityUpdated+" « "+t.entity_id+" »")},function(t){e.notify.error(t.error.errors)})},e.prototype.updatePrimaryEntity=function(t){var e=this;this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/entities/"+t.entity_id+"/primaryEntity",{}).subscribe(function(n){e.user.entities=n.entities,e.notify.success(e.lang.entityTooglePrimary+" « "+t.entity_id+" »")},function(t){e.notify.error(t.error.errors)})},e.prototype.deleteEntity=function(t){var e=this;this.http.delete(this.coreUrl+"rest/users/"+this.serialId+"/entities/"+t).subscribe(function(n){e.user.entities=n.entities,e.user.allEntities=n.allEntities,e.notify.success(e.lang.entityDeleted+" « "+t+" »")},function(t){e.notify.error(t.error.errors)})},e.prototype.submitSignature=function(){var t=this;this.http.post(this.coreUrl+"rest/users/"+this.serialId+"/signatures",this.signatureModel).subscribe(function(e){t.user.signatures=e.signatures,t.notify.success(t.lang.signAdded+" « "+t.signatureModel.name+" »"),t.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""}},function(e){t.notify.error(e.error.errors)})},e.prototype.updateSignature=function(t){var e=this,n=this.user.signatures[t].id,r=this.user.signatures[t].signature_label;this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/signatures/"+n,{label:r}).subscribe(function(n){e.user.signatures[t].signature_label=n.signature.signature_label,e.notify.success(e.lang.signUpdated+" « "+n.signature.signature_label+" »")},function(t){e.notify.error(t.error.errors)})},e.prototype.deleteSignature=function(t){var e=this;confirm(this.lang.confirmAction+" "+this.lang.delete+" « "+t.signature_label+" »")&&this.http.delete(this.coreUrl+"rest/users/"+this.serialId+"/signatures/"+t.id).subscribe(function(n){e.user.signatures=n.signatures,e.notify.success(e.lang.signDeleted+" « "+t.signature_label+" »")},function(t){e.notify.error(t.error.errors)})},e.prototype.addBasketRedirection=function(t,e){if("ABS"!=this.user.status)confirm(this.lang.confirmAction+" "+this.lang.activateAbs);"ABS"==this.user.status&&(this.userAbsenceModel.push({basketId:this.user.baskets[t].basket_id,basketName:this.user.baskets[t].basket_name,virtual:this.user.baskets[t].is_virtual,basketOwner:this.user.baskets[t].basket_owner,newUser:this.user.baskets[t].userToDisplay}),this.activateAbsence())},e.prototype.delBasketRedirection=function(t){this.user.baskets[t].userToDisplay=""},e.prototype.activateAbsence=function(){var t=this;this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/status",{status:"ABS"}).subscribe(function(e){t.user.status=e.user.status,t.userAbsenceModel=[],t.notify.success(t.lang.absOn+" "+t.lang.for+" « "+t.user.user_id+" »")},function(e){t.notify.error(e.error.errors)})},e.prototype.desactivateAbsence=function(){var t=this;this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/status",{status:"OK"}).subscribe(function(e){t.user.status=e.user.status;for(var n in t.user.baskets)t.user.baskets[n].userToDisplay="";t.notify.success(t.lang.absOff+" "+t.lang.for+" « "+t.user.user_id+" »")},function(e){t.notify.error(e.error.errors)})},e.prototype.onSubmit=function(){var t=this;this.creationMode?this.http.post(this.coreUrl+"rest/users",this.user).subscribe(function(e){t.notify.success(t.lang.userAdded+" « "+e.user.user_id+" »"),t.router.navigate(["/administration/users/"+e.user.id])},function(e){t.notify.error(e.error.errors)}):this.http.put(this.coreUrl+"rest/users/"+this.serialId,this.user).subscribe(function(e){t.notify.success(t.lang.userUpdated+" « "+t.user.user_id+" »")},function(e){t.notify.error(e.error.errors)})},o([s.ViewChild(h.MatPaginator),a("design:type",h.MatPaginator)],e.prototype,"paginator",void 0),o([s.ViewChild(h.MatSort),a("design:type",h.MatSort)],e.prototype,"sort",void 0),e=o([s.Component({templateUrl:angularGlobals["user-administrationView"],styleUrls:["css/user-administration.component.css"],providers:[p.NotificationService]}),a("design:paramtypes",[c.HttpClient,l.ActivatedRoute,l.Router,s.NgZone,p.NotificationService])],e)}(t("../../plugins/autocomplete.plugin").AutoCompletePlugin);n.UserAdministrationComponent=d},{"../../plugins/autocomplete.plugin":37,"../notification.service":30,"../translate.component":33,"@angular/common/http":54,"@angular/core":57,"@angular/material":59,"@angular/router":63}],24:[function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(n,r){e(n,r,t)}};Object.defineProperty(n,"__esModule",{value:!0});var c=t("@angular/core"),l=t("@angular/common/http"),u=t("../translate.component"),p=t("../notification.service"),h=t("@angular/material"),d=t("../../plugins/autocomplete.plugin"),f=function(t){function e(e,n,r){var i=t.call(this,e,"users")||this;return i.http=e,i.notify=n,i.dialog=r,i.search=null,i.users=[],i.userDestRedirect={},i.userDestRedirectModels=[],i.lang=u.LANG,i.loading=!1,i.data=[],i.config={},i.displayedColumns=["user_id","lastname","firstname","status","mail","actions"],i.dataSource=new h.MatTableDataSource(i.data),i}return i(e,t),e.prototype.applyFilter=function(t){t=(t=t.trim()).toLowerCase(),this.dataSource.filter=t},e.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'>"+this.lang.administration+"</a> > "+this.lang.users)},e.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").subscribe(function(e){t.users=e.users,t.data=t.users,t.loading=!1,setTimeout(function(){t.dataSource=new h.MatTableDataSource(t.data),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort},0)},function(){location.href="index.php"})},e.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").subscribe(function(n){e.userDestRedirectModels=n.listModels,e.config={data:{userDestRedirect:e.userDestRedirect,userDestRedirectModels:e.userDestRedirectModels}},e.dialogRef=e.dialog.open(m,e.config),e.dialogRef.afterClosed().subscribe(function(n){console.log(n),n&&(t.enabled="N",t.redirectListModels=n,e.http.put(e.coreUrl+"rest/listModels/itemId/"+t.user_id+"/itemMode/dest/objectType/entity_id",t).subscribe(function(n){n.errors?(t.enabled="Y",e.notify.error(n.errors)):e.http.put(e.coreUrl+"rest/users/"+t.id,t).subscribe(function(n){t.inDiffListDest="N",e.notify.success(e.lang.userSuspended+" « "+t.user_id+" »")},function(n){t.enabled="Y",e.notify.error(JSON.parse(n._body).errors)})},function(t){e.notify.error(JSON.parse(t._body).errors)})),e.dialogRef=null})},function(t){console.log(t),location.href="index.php"})):confirm(this.lang.confirmAction+" "+this.lang.suspend+" « "+t.user_id+" »")&&(t.enabled="N",this.http.put(this.coreUrl+"rest/users/"+t.id,t).subscribe(function(n){e.notify.success(e.lang.userSuspended+" « "+t.user_id+" »")},function(n){t.enabled="Y",e.notify.error(JSON.parse(n._body).errors)}))},e.prototype.activateUser=function(t){var e=this;confirm(this.lang.confirmAction+" "+this.lang.authorize+" « "+t.user_id+" »")&&(t.enabled="Y",this.http.put(this.coreUrl+"rest/users/"+t.id,t).subscribe(function(n){e.notify.success(e.lang.userAuthorized+" « "+t.user_id+" »")},function(n){t.enabled="N",e.notify.error(JSON.parse(n._body).errors)}))},e.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").subscribe(function(n){e.userDestRedirectModels=n.listModels,e.config={data:{userDestRedirect:e.userDestRedirect,userDestRedirectModels:e.userDestRedirectModels}},e.dialogRef=e.dialog.open(m,e.config),e.dialogRef.afterClosed().subscribe(function(n){n&&(t.redirectListModels=n,e.http.put(e.coreUrl+"rest/listModels/itemId/"+t.user_id+"/itemMode/dest/objectType/entity_id",t).subscribe(function(n){n.errors?e.notify.error(n.errors):e.http.delete(e.coreUrl+"rest/users/"+t.id).subscribe(function(n){t.inDiffListDest="N",e.data=n.users,e.dataSource=new h.MatTableDataSource(e.data),e.dataSource.paginator=e.paginator,e.dataSource.sort=e.sort,e.notify.success(e.lang.userDeleted+" « "+t.user_id+" »")},function(t){e.notify.error(JSON.parse(t._body).errors)})},function(t){e.notify.error(JSON.parse(t._body).errors)}))})},function(t){e.notify.error(JSON.parse(t._body).errors)})):confirm(this.lang.confirmAction+" "+this.lang.delete+" « "+t.user_id+" »")&&this.http.delete(this.coreUrl+"rest/users/"+t.id,t).subscribe(function(n){e.data=n.users,e.dataSource=new h.MatTableDataSource(e.data),e.dataSource.paginator=e.paginator,e.dataSource.sort=e.sort,e.notify.success(e.lang.userDeleted+" « "+t.user_id+" »")},function(t){e.notify.error(JSON.parse(t._body).errors)})},o([c.ViewChild(h.MatPaginator),a("design:type",h.MatPaginator)],e.prototype,"paginator",void 0),o([c.ViewChild(h.MatSort),a("design:type",h.MatSort)],e.prototype,"sort",void 0),e=o([c.Component({templateUrl:angularGlobals["users-administrationView"],styleUrls:["css/users-administration.component.css"],providers:[p.NotificationService]}),a("design:paramtypes",[l.HttpClient,p.NotificationService,h.MatDialog])],e)}(d.AutoCompletePlugin);n.UsersAdministrationComponent=f;var m=function(t){function e(e,n,r){var i=t.call(this,e,"users")||this;return i.http=e,i.data=n,i.dialogRef=r,i.lang=u.LANG,i}return i(e,t),e.prototype.sendFunction=function(){var t=!0;return this.data.userDestRedirectModels.each(function(e){e.redirectUserId||(t=!1)}),t},e=o([c.Component({templateUrl:angularGlobals["users-administration-redirect-modalView"]}),s(1,c.Inject(h.MAT_DIALOG_DATA)),a("design:paramtypes",[l.HttpClient,Object,h.MatDialogRef])],e)}(d.AutoCompletePlugin);n.UsersAdministrationRedirectModalComponent=m},{"../../plugins/autocomplete.plugin":37,"../notification.service":30,"../translate.component":33,"@angular/common/http":54,"@angular/core":57,"@angular/material":59}],25:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),o=t("@angular/material"),a=t("./french-paginator-intl"),s=function(){function t(){}return t=r([i.NgModule({imports:[o.MatCheckboxModule,o.MatSelectModule,o.MatSlideToggleModule,o.MatInputModule,o.MatTooltipModule,o.MatTabsModule,o.MatSidenavModule,o.MatButtonModule,o.MatCardModule,o.MatButtonToggleModule,o.MatProgressSpinnerModule,o.MatToolbarModule,o.MatMenuModule,o.MatGridListModule,o.MatTableModule,o.MatPaginatorModule,o.MatSortModule,o.MatDatepickerModule,o.MatNativeDateModule,o.MatExpansionModule,o.MatAutocompleteModule,o.MatSnackBarModule,o.MatIconModule,o.MatDialogModule,o.MatListModule],exports:[o.MatCheckboxModule,o.MatSelectModule,o.MatSlideToggleModule,o.MatInputModule,o.MatTooltipModule,o.MatTabsModule,o.MatSidenavModule,o.MatButtonModule,o.MatCardModule,o.MatButtonToggleModule,o.MatProgressSpinnerModule,o.MatToolbarModule,o.MatMenuModule,o.MatGridListModule,o.MatTableModule,o.MatPaginatorModule,o.MatSortModule,o.MatDatepickerModule,o.MatNativeDateModule,o.MatExpansionModule,o.MatAutocompleteModule,o.MatSnackBarModule,o.MatIconModule,o.MatDialogModule,o.MatListModule],providers:[{provide:o.MatPaginatorIntl,useValue:a.getFrenchPaginatorIntl()}]})],t)}();n.AppMaterialModule=s},{"./french-paginator-intl":29,"@angular/core":57,"@angular/material":59}],26:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),o=t("@angular/router"),a=t("./profile.component"),s=t("./signature-book.component"),c=function(){function t(){}return t=r([i.NgModule({imports:[o.RouterModule.forRoot([{path:"profile",component:a.ProfileComponent},{path:"groups/:groupId/baskets/:basketId/signatureBook/:resId",component:s.SignatureBookComponent},{path:"**",redirectTo:"",pathMatch:"full"}],{useHash:!0})],exports:[o.RouterModule]})],t)}();n.AppRoutingModule=c},{"./profile.component":31,"./signature-book.component":32,"@angular/core":57,"@angular/router":63}],27:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),o=function(){function t(){}return t=r([i.Component({selector:"my-app",template:"<router-outlet></router-outlet>",encapsulation:i.ViewEncapsulation.None,styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","css/maarch-material.css","css/engine.css","css/jstree-custom.min.css"]})],t)}();n.AppComponent=o},{"@angular/core":57}],28:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),o=t("@angular/platform-browser"),a=t("@angular/platform-browser/animations"),s=t("@angular/forms"),c=t("@angular/common/http"),l=t("./app-material.module"),u=t("./notification.service"),p=t("./app.component"),h=t("./app-routing.module"),d=t("./administration/administration.module"),f=t("./profile.component"),m=t("./signature-book.component"),g=function(){function t(){}return t=r([i.NgModule({imports:[o.BrowserModule,a.BrowserAnimationsModule,s.FormsModule,c.HttpClientModule,d.AdministrationModule,h.AppRoutingModule,l.AppMaterialModule],declarations:[p.AppComponent,f.ProfileComponent,m.SignatureBookComponent,m.SafeUrlPipe,u.CustomSnackbarComponent],entryComponents:[u.CustomSnackbarComponent],bootstrap:[p.AppComponent]})],t)}();n.AppModule=g},{"./administration/administration.module":5,"./app-material.module":25,"./app-routing.module":26,"./app.component":27,"./notification.service":30,"./profile.component":31,"./signature-book.component":32,"@angular/common/http":54,"@angular/core":57,"@angular/forms":58,"@angular/platform-browser":62,"@angular/platform-browser/animations":61}],29:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("@angular/material"),i=function(t,e,n){if(0==n||0==e)return"0 de "+n;var r=t*e;r<(n=Math.max(n,0))&&Math.min(r+e,n);return"Page "+(t+1)+" / "+Math.ceil(n/e)};n.getFrenchPaginatorIntl=function(){var t=new r.MatPaginatorIntl;return t.itemsPerPageLabel="Afficher:",t.nextPageLabel="Page suivante",t.previousPageLabel="Page précédente",t.getRangeLabel=i,t}},{"@angular/material":59}],30:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},o=this&&this.__param||function(t,e){return function(n,r){e(n,r,t)}};Object.defineProperty(n,"__esModule",{value:!0});var a=t("@angular/material"),s=t("@angular/core"),c=t("@angular/material"),l=function(){function t(t){this.data=t}return t=r([s.Component({selector:"custom-snackbar",template:'<mat-grid-list cols="4" rowHeight="1:1"><mat-grid-tile colspan="1"><mat-icon class="fa fa-{{data.icon}} fa-2x"></mat-icon></mat-grid-tile><mat-grid-tile colspan="3">{{data.message}}</mat-grid-tile></mat-grid-list>'}),o(0,s.Inject(c.MAT_SNACK_BAR_DATA)),i("design:paramtypes",[Object])],t)}();n.CustomSnackbarComponent=l;var u=function(){function t(t){this.snackBar=t}return t.prototype.success=function(t){this.snackBar.openFromComponent(l,{duration:2e3,data:{message:t,icon:"info-circle"}})},t.prototype.error=function(t){this.snackBar.openFromComponent(l,{duration:2e3,data:{message:t,icon:"exclamation-triangle"}})},t=r([s.Injectable(),i("design:paramtypes",[a.MatSnackBar])],t)}();n.NotificationService=u},{"@angular/core":57,"@angular/material":59}],31:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("./translate.component"),c=t("./notification.service"),l=t("@angular/material"),u=function(){function t(t,e,n){var r=this;this.http=t,this.zone=e,this.notify=n,this.lang=s.LANG,this.user={baskets:[]},this.histories=[],this.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},this.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},this.mailSignatureModel={selected:0,htmlBody:"",title:""},this.userAbsenceModel=[],this.basketsToRedirect=[],this.showPassword=!1,this.selectedSignature=-1,this.selectedSignatureLabel="",this.loading=!1,this.displayAbsenceButton=!1,this.displayedColumns=["event_date","info"],this.dataSource=new l.MatTableDataSource(this.histories),window.angularProfileComponent={componentAfterUpload:function(t){return r.processAfterUpload(t)}}}return t.prototype.applyFilter=function(t){t=(t=t.trim()).toLowerCase(),this.dataSource.filter=t},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/currentUser/profile").subscribe(function(e){t.user=e,t.user.baskets.forEach(function(e,n){t.user.baskets[n].disabled=!1,t.user.redirectedBaskets.forEach(function(r){e.basket_id==r.basket_id&&e.basket_owner==r.basket_owner&&(t.user.baskets[n].disabled=!0)})}),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=this;if(void 0!==this.basketsToRedirect[0]&&$j("#absenceUser")[0].value){var e=[];this.basketsToRedirect.forEach(function(n){e.push({basketId:t.user.baskets[n].basket_id,basketName:t.user.baskets[n].basket_name,virtual:t.user.baskets[n].is_virtual,basketOwner:t.user.baskets[n].basket_owner,newUser:$j("#absenceUser")[0].value})}),this.http.post(this.coreUrl+"rest/users/"+this.user.id+"/redirectedBaskets",e).subscribe(function(e){$j("#selectBasketAbsenceUser option").prop("selected",!1),$j("#absenceUser")[0].value="",t.basketsToRedirect=[],t.user.redirectedBaskets=e.redirectedBaskets,t.user.baskets.forEach(function(e,n){t.user.baskets[n].disabled=!1,t.user.redirectedBaskets.forEach(function(r){e.basket_id==r.basket_id&&e.basket_owner==r.basket_owner&&(t.user.baskets[n].disabled=!0)})})},function(e){t.notify.error(e.error.errors)})}else this.notify.error("Veuillez sélectionner au moins une bannette et un utilisateur")},t.prototype.delBasketRedirection=function(t){var e=this;this.http.delete(this.coreUrl+"rest/users/"+this.user.id+"/redirectedBaskets/"+t.basket_id).subscribe(function(t){e.user.redirectedBaskets=t.redirectedBaskets,e.user.baskets.forEach(function(t,n){e.user.baskets[n].disabled=!1,e.user.redirectedBaskets.forEach(function(r){t.basket_id==r.basket_id&&t.basket_owner==r.basket_owner&&(e.user.baskets[n].disabled=!0)})}),e.notify.success(e.lang.modificationSaved)},function(t){e.notify.error(t.error.errors)})},t.prototype.updateBasketColor=function(t,e){var n=this;this.http.put(this.coreUrl+"rest/currentUser/groups/"+this.user.regroupedBaskets[t].groupId+"/baskets/"+this.user.regroupedBaskets[t].baskets[e].basket_id,{color:this.user.regroupedBaskets[t].baskets[e].color}).subscribe(function(t){n.user.regroupedBaskets=t.userBaskets},function(t){n.notify.error(t.error.errors)})},t.prototype.activateAbsence=function(){var t=this;confirm("Voulez-vous vraiment activer votre absence ? Vous serez automatiquement déconnecté.")&&this.http.put(this.coreUrl+"rest/users/"+this.user.id+"/status",{status:"ABS"}).subscribe(function(){location.hash="",location.search="?display=true&page=logout&abs_mode"},function(e){t.notify.error(e.error.errors)})},t.prototype.askRedirectBasket=function(){confirm("Voulez-vous rediriger vos bannettes avant de vous mettre en absence ?")?(this.displayAbsenceButton=!0,$j("#redirectBasketCard").click()):this.activateAbsence()},t.prototype.updatePassword=function(){var t=this;this.http.put(this.coreUrl+"rest/currentUser/password",this.passwordModel).subscribe(function(e){t.showPassword=!1,t.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},successNotification(e.success)},function(t){errorNotification(t.error.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).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).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).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).subscribe(function(e){t.user.signatures=e.signatures,t.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},successNotification(e.success)},function(t){errorNotification(t.error.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}).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(t.error.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).subscribe(function(t){e.user.signatures=t.signatures,successNotification(t.success)},function(t){errorNotification(t.error.errors)})},t.prototype.getHistories=function(){var t=this;0==this.histories.length&&this.http.get(this.coreUrl+"rest/histories/users/"+this.user.id).subscribe(function(e){t.histories=e.histories,setTimeout(function(){t.dataSource=new l.MatTableDataSource(t.histories),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort},0)},function(e){t.notify.error(e.error.errors)})},t.prototype.onSubmit=function(){var t=this;this.http.put(this.coreUrl+"rest/currentUser/profile",this.user).subscribe(function(){t.notify.success(t.lang.modificationSaved)},function(e){t.notify.error(e.error.errors)})},r([o.ViewChild(l.MatPaginator),i("design:type",l.MatPaginator)],t.prototype,"paginator",void 0),r([o.ViewChild(l.MatSort),i("design:type",l.MatSort)],t.prototype,"sort",void 0),t=r([o.Component({templateUrl:angularGlobals.profileView,styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","css/profile.component.css"],providers:[c.NotificationService]}),i("design:paramtypes",[a.HttpClient,o.NgZone,c.NotificationService])],t)}();n.ProfileComponent=u},{"./notification.service":30,"./translate.component":33,"@angular/common/http":54,"@angular/core":57,"@angular/material":59}],32:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("@angular/platform-browser"),c=t("@angular/router"),l=function(){function t(t){this.sanitizer=t}return t.prototype.transform=function(t){return this.sanitizer.bypassSecurityTrustResourceUrl(t)},t=r([o.Pipe({name:"safeUrl"}),i("design:paramtypes",[s.DomSanitizer])],t)}();n.SafeUrlPipe=l;var u=function(){function t(t,e,n,r){var i=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 i.processAfterAttach(t)},componentAfterAction:function(){return i.processAfterAction()},componentAfterNotes:function(){return i.processAfterNotes()},componentAfterLinks:function(){return i.processAfterLinks()}}}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.groupId=e.groupId,t.signatureBook.resList=[],lockDocument(t.resId),setInterval(function(){lockDocument(t.resId)},5e4),t.http.get(t.coreUrl+"rest/groups/"+t.groupId+"/baskets/"+t.basketId+"/signatureBook/"+t.resId).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.processAfterLinks=function(){var t=this;this.zone.run(function(){return t.refreshLinks()})},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").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").subscribe(function(t){e.signatureBook.documents=t}):this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/attachments").subscribe(function(n){var r=0;if("add"==t){var i=!1;n.forEach(function(t,n){i||e.signatureBook.attachments[n]&&t.res_id==e.signatureBook.attachments[n].res_id||(r=n,i=!0)})}else if("edit"==t){var o=e.signatureBook.attachments[e.rightSelectedThumbnail].res_id;n.forEach(function(t,e){t.res_id==o&&(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){var e;t.canModify&&"SIGN"!=t.status&&(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)var n=confirm("Attention, ceci est votre dernière pièce jointe pour ce courrier, voulez-vous vraiment la supprimer ?");else n=confirm("Voulez-vous vraiment supprimer la pièce jointe ?");var r;if(n)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").subscribe(function(e){t.signatureBook.nbNotes=e})},t.prototype.refreshLinks=function(){var t=this;this.http.get(this.coreUrl+"rest/links/resId/"+this.resId).subscribe(function(e){t.signatureBook.nbLinks=e.length})},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).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),3==n.headerTab&&(n.changeSignatureBookLeftContent(0),setTimeout(function(){n.changeSignatureBookLeftContent(3)},0))}else alert(t.error);n.showSignaturesPanel=!1,n.loadingSign=!1})}},t.prototype.unsignFile=function(t){var e,n,r,i=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",{}).subscribe(function(){i.rightViewerLink="index.php?display=true&module=attachments&page=view_attachment&res_id_master="+i.resId+"&id="+t.viewerNoSignId+"&isVersion="+r,i.signatureBook.attachments[i.rightSelectedThumbnail].viewerLink=i.rightViewerLink,i.signatureBook.attachments[i.rightSelectedThumbnail].status="A_TRA",i.signatureBook.attachments[i.rightSelectedThumbnail].idToDl=n,i.signatureBook.resList.length>0&&(i.signatureBook.resList[i.signatureBook.resListIndex].allSigned=!1),3==i.headerTab&&(i.changeSignatureBookLeftContent(0),setTimeout(function(){i.changeSignatureBookLeftContent(3)},0))})},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").subscribe(function(r){if(r.lock)"view"==e?alert("Courrier verrouillé par "+r.lockBy):"action"==e&&(alert("Courrier suivant verrouillé par "+r.lockBy),n.backToBasket());else{var i="/groups/"+n.groupId+"/baskets/"+n.basketId+"/signatureBook/"+t;n.router.navigate([i])}})},t.prototype.validForm=function(){var t=this;""!=$j("#signatureBookActions option:selected")[0].value?1==this.signatureBook.listinstance.requested_signature?this.http.get(this.coreUrl+"rest/listinstance/"+this.signatureBook.listinstance.listinstance_id).subscribe(function(e){var n=!0;0==e.signatory&&(n=confirm("Vous n’avez signé aucun document. Êtes-vous sûr de vouloir continuer ?")),n&&t.sendActionForm()}):this.sendActionForm():alert("Aucune action choisie")},t.prototype.sendActionForm=function(){var t=this;unlockDocument(this.resId),0==this.signatureBook.resList.length?this.http.get(this.coreUrl+"rest/"+this.basketId+"/signatureBook/resList").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])},t=r([o.Component({templateUrl:angularGlobals["signature-bookView"]}),i("design:paramtypes",[a.HttpClient,c.ActivatedRoute,c.Router,o.NgZone])],t)}();n.SignatureBookComponent=u},{"@angular/common/http":54,"@angular/core":57,"@angular/platform-browser":62,"@angular/router":63}],33:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("../lang/lang-en"),i=t("../lang/lang-fr"),o={};"en"==angularGlobals.lang?o=r.LANG_EN:"fr"==angularGlobals.lang&&(o=i.LANG_FR),n.LANG=o},{"../lang/lang-en":34,"../lang/lang-fr":35}],34:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LANG_EN={abs:"Absent",action:"Action",actionAdded:"Action added",actionCreation:"Action creation",actionDeleted:"Action deleted",actionHistory:"Log action in history",actionHistoryDesc:"Lets you plot this action in the document history. It is strongly recommended to check this option",actionModification:"Action modification",actionName:"Action name",actionPage:"Result page of the action",actions:"Action(s)",actionUpdated:"Action updated",activateAbsence:"Activate absence",active:"Active",add:"Add",addStatus:"Add a status",administration:"Administration",application:"Application",associatedStatus:"Associated status",attachments:"Attachments",authorize:"Authorize",autoLogoutAbsence:"You are going to be automaticaly disconnected after your redirections",avis:"Avis circuit",back:"Back",basket:"Basket",basketAdded:"Basket added",basketDeleted:"Basket deleted",baskets:"Baskets",basketUpdated:"Basket updated",canBeModified:"Index modification",canBeSearched:"Searchable",cancel:"Cancel",cases:"Cases",changeMyPassword:"Change my password",chooseBasket:"Choose a basket",chooseCategoryAssociation:"Choose one or some associatedd categories",chooseEntity:"Choose a entity",chooseGroup:"Choose a group",clause:"Clause",clickOn:"Click on",color:"Color",content_management:"Ressource revision",currentPsw:"Current password",deactivateAbsence:"Deactivate absence",delete:"Delete",deleteMsg:"Do you really want to delete this element",description:"Description",doNotModifyUnlessExpert:"Do not edit this section unless you know what you are doing. Incorrect settings can cause the application to malfunction !",email:"Email",emailSignatures:"Email signatures",entities:"Entities",entityAdded:"Entité added",entityDeleted:"Entité deleted",entityTooglePrimary:"Pass to primary entity",entityUpdated:"Entité updated",export_seda:"Seda export",fileplan:"Fileplan",filterBy:"Filter by",fingerprint:"Digital fingerprint",firstname:"Firstname",folder:"Folder",folders:"Folders",for:"for",groupAdded:"Group added",groupCreation:"Create group",groupDeleted:"Group deleted",groupModification:"Modify group",groups:"Groups",groupUpdated:"Group updated",history:"Historique",id:"Login",imgRelated:"Associated image",inactive:"Inactive",informations:"Informations",initials:"Initials",isFolderAction:"Folder action",isFolderActionDesc:"Use this action in a folder folder",isFolderStatus:"Folder status",isSytemAction:"System action",keyword:"Keyword",label:"Label",lastname:"Lastname",life_cycle:"Life cycle",maarchApplication:"Maarch App",manageAbsences:"Manage absences",manageSignatures:"Manage signatures",modificationSaved:"Modification has been saved",module:"Module",modules:"Modules",myProfile:"My profile",newAction:"New action",newElement:"New element",newPsw:"New password",newSignature:"New signature",notes:"Notes",notifications:"Notifications",no:"No",parameter:"Parameter",parameterAdded:"Parameter added",parameterDeleted:"Parameter deleted",parameters:"Parameters",parameterUpdated:"Parameter updated",phoneNumber:"Phone number",primaryEntity:"Primary entity",priorityAdded:"Priority added",priorityDeleted:"Priority deleted",priorityUpdated:"Priority updated",processDelay:"Process delay",reinitPassword:"Reset password",renewPsw:"Enter the password again",reports:"Reports",role:"Role",save:"Save",sbSignatures:"Signature Book Signatures",secondaryEntity:"Secondary entity",selectAll:"Select all",sendmail:"Sendmail",statusAdded:"Status added",statusCreation:"Status creation",statusDeleted:"Status deleted",statuses:"Statuses",statusModification:"Status modification",statusName:"Status name",statusUpdated:"Status updated",suspend:"Suspend",system:"System",systemParameters:"System parameters",tags:"Tags",templates:"Templates",thesaurus:"Thesaurus",to:"to",tooltipFolderStatus:"If checked, status can be used for folder baskets",tooltipIndexStatus:"If checked, you can edit metadatas of the documents having this status",tooltipSearchStatus:"If checked, the status will be offered in the search criteria STATUS of the advanced search",unselectAll:"Unselect all",update:"Update",updateStatus:"Document status modification",updateStatusInformations:"When typing the chrono or the GED number of a document, you will modify its status. The document will be present in the basket depending of the status you have chosen.",user:"user",userCreation:"User Creation",userModification:"User Modification",validate:"Validate",value:"value",visa:"Visa circuit",workingDays:"Working days",yes:"Yes"}},{}],35:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LANG_FR={abs:"Absent",absOff:"Absence désactivé",absOn:"Absence activé",action:"Action",actionAdded:"Action ajoutée",actionCreation:"Création d'une action",actionDeleted:"Action supprimée",actionHistory:"Tracer l'action",actionHistoryDesc:"Permet tracer cette action dans l'historique du document. Il est fortement recommandé de cocher cette option.",actionModification:"Modification de l'action",actionName:"Nom de l'action",actionPage:"Page de résultat de l'action",actions:"Action(s)",actionUpdated:"Action modifiée",activateAbs:"Activer l'absence",activateAbsence:"Activer l'absence",active:"Actif",add:"Ajouter",addStatus:"Ajouter un statut",administration:"Administration",application:"Application",associatedStatus:"Statut associé",attachments:"Attachments",authorize:"Autoriser",autoLogoutAbsence:"Vous allez être automatiquement déconnecté après avoir défini vos redirections de bannettes",available:"disponible",avis:"Circuit d'avis",back:"Retour",basket:"Bannette",basketAdded:"Bannette ajoutée",basketDeleted:"Bannette supprimée",baskets:"Bannettes",basketUpdated:"Bannette modifiée",canBeModified:"Modification des index",canBeSearched:"Recherche",cancel:"Annuler",cases:"Affaires",changeMyPassword:"Modifier mon mot de passe",chooseBasket:"Choisissez une banette",chooseCategoryAssociation:"Choisissez une ou plusieurs catégories associée",chooseCategoryAssociationHelp:"Si aucune catégorie sélectionnée alors l'action est valable pour toute les catégories",chooseEntity:"Choisissez une entité",chooseGroup:"Choisissez un groupe",clause:"Clause",clickOn:"Cliquez sur",color:"Couleur",confirmAction:"Voulez-vous vraiment effectuer cette action ?",content_management:"Versionning de document",currentPsw:"Mot de passe actuel",dataOfMonth:"Données du mois",date:"Date",delete:"Supprimer",deleteMsg:"Voulez-vous vraiment supprimer cet élément ?",desactivateAbsence:"Désactiver l'absence",description:"Description",display:"affichage",doNotModifyUnlessExpert:"Ne pas modifier cette section à moins de savoir ce que vous faites. Un mauvais paramètrage peut entrainer des dysfonctionnements de l'application!",email:"Email",emailSignatures:"Signatures de mail",entities:"Entités",entityAdded:"Entité ajoutée",entityDeleted:"Entité supprimée",entityTooglePrimary:"Passage en entité primaire",entityUpdated:"Entité modifiée",entries:"entrée(s)",event:"Événement",export_seda:"Export seda",fileplan:"Plan de classement personnel",filterBy:"Filtrer",filteredFrom:"filtré sur un ensemble de",fingerprint:"Empreinte numérique",firstname:"Prénom",folder:"Dossier",folders:"Dossiers",for:"pour",groupAdded:"Groupe ajouté",groupCreation:"Création d'un groupe",groupModification:"Modification d'un groupe",groupDeleted:"Groupe supprimé",groups:"Groupes",groupUpdated:"Groupe modifié",history:"Historique",historyBatch:"Historique des batchs",id:"Identifiant",imgRelated:"Image associée",inactive:"Inactif",informations:"Informations",infosActions:"Vous devez choisir au moins un statut et / ou un script.",initials:"Initiales",integer:"Entier",ip:"Adresse IP",isFolderAction:"Action de dossier",isFolderActionDesc:"Permet d'utiliser cette action dans une bannette de dossier",isFolderStatus:"Statut de dossier",isSytemAction:"Action système",keyword:"Mot clé",label:"Label",last:"dernier",lastname:"Nom",life_cycle:"Cycle de vie",maarchApplication:"Application Maarch",manageAbsences:"Rediriger mes bannettes",manageSignatures:"Gérer les signatures",modificationSaved:"Modification enregistrée",module:"Module",modules:"Modules",myProfile:"Mon profil",newAction:"Nouvelle action",newElement:"Nouvel élément",newPsw:"Nouveau mot de passe",newSignature:"Nouvelle signature",next:"Suivant",no:"Non",noRecord:"Aucun élément",noResult:"Aucun résultat",notes:"Annotations",notifications:"Notifications",outOf:"sur",page:"Page",parameter:"Paramètre",parameterAdded:"Paramètre ajouté",parameterDeleted:"Paramètre supprimé",parameters:"Paramètres",parameterUpdated:"Paramètre modifié",phoneNumber:"Numéro de téléphone",previous:"Précecdent",primaryEntity:"Entité primaire",priorityAdded:"Priorité ajoutée",priorityDeleted:"Priorité supprimée",priorityUpdated:"Priorité modifiée",processDelay:"Délai de traitement",pswReseted:"Mot de passe réinitialisé",record:"élément(s)",records:"résultats",recordsPerPage:"résultats par page",reinitPassword:"Réinitialiser le mot de passe",renewPsw:"Retaper le mot de passe",reports:"Etats et éditions",resetPsw:"Réinitialiser le mot de passe",role:"Rôle",save:"Enregistrer",sbSignatures:"Signatures de parapheur",search:"Chercher",secondaryEntity:"Entitté secondaire",selectAll:"Sélectionner tout",sendmail:"Envoi de mails",signAdded:"Signature ajoutée",signDeleted:"Signature supprimée",signUpdated:"Signature modifiée",status:"Statut",statusAdded:"Statut ajouté",statusCreation:"Création d'un statut",statusDeleted:"Statut supprimé",statuses:"Statut(s)",statusModification:"Modification du statut",statusName:"Nom du statut",statusUpdated:"Statut mis à jour",string:"Chaine de caratère",suspend:"Suspendre",system:"Système",systemParameters:"paramètres système",tags:"Mots clés",templates:"Modèles de documents",thesaurus:"Thésaurus",to:"vers",tooltipFolderStatus:"Si coché, le statut pourra être utilisé pour des bannettes de dossiers",tooltipIndexStatus:"Si coché, vous pourrez modifier les meta-données des documents ayant ce statut",tooltipSearchStatus:"Si coché, le statut vous sera proposé dans le critère de recherche STATUTS de la recherche avancée",totalErrors:"Élément(s) en erreur",totalProcessed:"Élément(s) analysé(s)",type:"Type",unselectAll:"Tout désélectionner",update:"Modifier",updateStatus:"Changement de statut de courrier",updateStatusInformations:"En saisissant le n° chrono ou le n° GED du document, vous modifierez le statut du courrier. Le courrier sera disponible dans la bannette des utilisateurs auquel il était affecté suivant le statut que vous aurez défini.",user:"utilisateur",userAdded:"Utilisateur ajouté",userAuthorized:"Utilisateur autorisé",userCreation:"Création d'un utilisateur",userDeleted:"Utilisateur supprimé",userModification:"Modification de l'utilisateur",users:"Utilisateur(s)",userSuspended:"Utilisateur suspendu",userUpdated:"Utilisateur modifié",validate:"Valider",value:"valeur",visa:"Circuit de visa",workingDays:"Jours ouvrés",yes:"Oui"}},{}],36:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("@angular/platform-browser-dynamic"),i=t("@angular/core"),o=t("./app/app.module");i.enableProdMode(),r.platformBrowserDynamic().bootstrapModule(o.AppModule)},{"./app/app.module":28,"@angular/core":57,"@angular/platform-browser-dynamic":60}],37:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("@angular/forms"),i=t("rxjs/operators/startWith"),o=t("rxjs/operators/map"),a=function(){function t(t,e){var n=this;this.http=t,this.userList=[],this.coreUrl=angularGlobals.coreUrl,this.userCtrl=new r.FormControl,"users"==e&&this.http.get(this.coreUrl+"rest/users/autocompleter").subscribe(function(t){n.userList=t},function(){location.href="index.php"}),this.filteredUsers=this.userCtrl.valueChanges.pipe(i.startWith(""),o.map(function(t){return t?n.autocompleteFilter(t):n.userList.slice()}))}return t.prototype.autocompleteFilter=function(t){return this.userList.filter(function(e){return 0===e.formattedUser.toLowerCase().indexOf(t.toLowerCase())})},t}();n.AutoCompletePlugin=a},{"@angular/forms":58,"rxjs/operators/map":128,"rxjs/operators/startWith":137}],38:[function(t,e,n){var r,i;r=this,i=function(t,e){"use strict";var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function r(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t};function o(t){switch(t.length){case 0:return new e.NoopAnimationPlayer;case 1:return t[0];default:return new e.ɵAnimationGroupPlayer(t)}}function a(t,n,r,i,o,a){void 0===o&&(o={}),void 0===a&&(a={});var s=[],c=[],l=-1,u=null;if(i.forEach(function(t){var r=t.offset,i=r==l,p=i&&u||{};Object.keys(t).forEach(function(r){var i=r,c=t[r];if("offset"!==r)switch(i=n.normalizePropertyName(i,s),c){case e.ɵPRE_STYLE:c=o[r];break;case e.AUTO_STYLE:c=a[r];break;default:c=n.normalizeStyleValue(r,i,c,s)}p[i]=c}),i||c.push(p),u=p,l=r}),s.length){throw new Error("Unable to animate due to the following errors:\n - "+s.join("\n - "))}return c}function s(t,e,n,r){switch(e){case"start":t.onStart(function(){return r(n&&c(n,"start",t.totalTime))});break;case"done":t.onDone(function(){return r(n&&c(n,"done",t.totalTime))});break;case"destroy":t.onDestroy(function(){return r(n&&c(n,"destroy",t.totalTime))})}}function c(t,e,n){var r=l(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,void 0==n?t.totalTime:n),i=t._data;return null!=i&&(r._data=i),r}function l(t,e,n,r,i,o){return void 0===i&&(i=""),void 0===o&&(o=0),{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o}}function u(t,e,n){var r;return t instanceof Map?(r=t.get(e))||t.set(e,r=n):(r=t[e])||(r=t[e]=n),r}function p(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var h=function(t,e){return!1},d=function(t,e){return!1},f=function(t,e,n){return[]};if("undefined"!=typeof Element){if(h=function(t,e){return t.contains(e)},Element.prototype.matches)d=function(t,e){return t.matches(e)};else{var m=Element.prototype,g=m.matchesSelector||m.mozMatchesSelector||m.msMatchesSelector||m.oMatchesSelector||m.webkitMatchesSelector;g&&(d=function(t,e){return g.apply(t,[e])})}f=function(t,e,n){var r=[];if(n)r.push.apply(r,t.querySelectorAll(e));else{var i=t.querySelector(e);i&&r.push(i)}return r}}var y=null,v=!1;function b(t){y||(y=_()||{},v=!!y.style&&"WebkitAppearance"in y.style);var e=!0;y.style&&"ebkit"!=t.substring(1,6)&&(!(e=t in y.style)&&v&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in y.style));return e}function _(){return"undefined"!=typeof document?document.body:null}var w=d,C=h,x=f,E=function(){function t(){}return t.prototype.validateStyleProperty=function(t){return b(t)},t.prototype.matchesElement=function(t,e){return w(t,e)},t.prototype.containsElement=function(t,e){return C(t,e)},t.prototype.query=function(t,e,n){return x(t,e,n)},t.prototype.computeStyle=function(t,e,n){return n||""},t.prototype.animate=function(t,n,r,i,o,a){return void 0===a&&(a=[]),new e.NoopAnimationPlayer},t}(),S=function(){function t(){}return t.NOOP=new E,t}(),k=1e3,O="ng-enter",P="ng-leave",A="ng-trigger",T=".ng-trigger",M="ng-animating",I=".ng-animating";function R(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:D(parseFloat(e[1]),e[2])}function D(t,e){switch(e){case"s":return t*k;default:return t}}function N(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var r,i=0,o="";if("string"==typeof t){var a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push('The provided timing value "'+t+'" is invalid.'),{duration:0,delay:0,easing:""};r=D(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(i=D(Math.floor(parseFloat(s)),a[4]));var c=a[5];c&&(o=c)}else r=t;if(!n){var l=!1,u=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),l=!0),i<0&&(e.push("Delay values below 0 are not allowed for this animation step."),l=!0),l&&e.splice(u,0,'The provided timing value "'+t+'" is invalid.')}return{duration:r,delay:i,easing:o}}(t,e,n)}function L(t,e){return void 0===e&&(e={}),Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function j(t){var e={};return Array.isArray(t)?t.forEach(function(t){return F(t,!1,e)}):F(t,!1,e),e}function F(t,e,n){if(void 0===n&&(n={}),e)for(var r in t)n[r]=t[r];else L(t,n);return n}function V(t,e){t.style&&Object.keys(e).forEach(function(n){var r=Y(n);t.style[r]=e[n]})}function B(t,e){t.style&&Object.keys(e).forEach(function(e){var n=Y(e);t.style[n]=""})}function U(t){return Array.isArray(t)?1==t.length?t[0]:e.sequence(t):t}var H=new RegExp("{{\\s*(.+?)\\s*}}","g");function z(t){var e=[];if("string"==typeof t){for(var n=t.toString(),r=void 0;r=H.exec(n);)e.push(r[1]);H.lastIndex=0}return e}function W(t,e,n){var r=t.toString(),i=r.replace(H,function(t,r){var i=e[r];return e.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),i=""),i.toString()});return i==r?t:i}function G(t){for(var e=[],n=t.next();!n.done;)e.push(n.value),n=t.next();return e}var q=/-+([a-z0-9])/g;function Y(t){return t.replace(q,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function K(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}var $="*";function X(t,e){var n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(function(t){return function(t,e,n){if(":"==t[0]){var r=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e)<parseFloat(t)};default:return e.push('The transition alias value "'+t+'" is not supported'),"* => *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}var i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var o=i[1],a=i[2],s=i[3];e.push(J(o,s));var c=o==$&&s==$;"<"!=a[0]||c||e.push(J(s,o))}(t,n,e)}):n.push(t),n}var Q=new Set(["true","1"]),Z=new Set(["false","0"]);function J(t,e){var n=Q.has(t)||Z.has(t),r=Q.has(e)||Z.has(e);return function(i,o){var a=t==$||t==i,s=e==$||e==o;return!a&&n&&"boolean"==typeof i&&(a=i?Q.has(t):Z.has(t)),!s&&r&&"boolean"==typeof o&&(s=o?Q.has(e):Z.has(e)),a&&s}}var tt=":self",et=new RegExp("s*"+tt+"s*,?","g");function nt(t,e,n){return new rt(t).build(e,n)}var rt=function(){function t(t){this._driver=t}return t.prototype.build=function(t,e){var n=new it(e);return this._resetContextStyleTimingState(n),K(this,U(t),n)},t.prototype._resetContextStyleTimingState=function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0},t.prototype.visitTrigger=function(t,e){var n=this,r=e.queryCount=0,i=e.depCount=0,o=[],a=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(function(t){if(n._resetContextStyleTimingState(e),0==t.type){var s=t,c=s.name;c.split(/\s*,\s*/).forEach(function(t){s.name=t,o.push(n.visitState(s,e))}),s.name=c}else if(1==t.type){var l=n.visitTransition(t,e);r+=l.queryCount,i+=l.depCount,a.push(l)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:o,transitions:a,queryCount:r,depCount:i,options:null}},t.prototype.visitState=function(t,e){var n=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){var i=new Set,o=r||{};if(n.styles.forEach(function(t){if(ot(t)){var e=t;Object.keys(e).forEach(function(t){z(e[t]).forEach(function(t){o.hasOwnProperty(t)||i.add(t)})})}}),i.size){var a=G(i.values());e.errors.push('state("'+t.name+'", ...) must define default values for all the following style substitutions: '+a.join(", "))}}return{type:0,name:t.name,style:n,options:r?{params:r}:null}},t.prototype.visitTransition=function(t,e){e.queryCount=0,e.depCount=0;var n=K(this,U(t.animation),e);return{type:1,matchers:X(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:at(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return K(n,t,e)}),options:at(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,r=e.currentTime,i=0,o=t.steps.map(function(t){e.currentTime=r;var o=K(n,t,e);return i=Math.max(i,e.currentTime),o});return e.currentTime=i,{type:3,steps:o,options:at(t.options)}},t.prototype.visitAnimate=function(t,n){var r,i=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t){var r=N(t,e).duration;return st(r,0,"")}var i=t;if(i.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var o=st(0,0,"");return o.dynamic=!0,o.strValue=i,o}return st((n=n||N(i,e)).duration,n.delay,n.easing)}(t.timings,n.errors);n.currentAnimateTimings=i;var o=t.styles?t.styles:e.style({});if(5==o.type)r=this.visitKeyframes(o,n);else{var a=t.styles,s=!1;if(!a){s=!0;var c={};i.easing&&(c.easing=i.easing),a=e.style(c)}n.currentTime+=i.duration+i.delay;var l=this.visitStyle(a,n);l.isEmptyStep=s,r=l}return n.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,n){var r=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==e.AUTO_STYLE?r.push(t):n.errors.push("The provided style string value "+t+" is not allowed."):r.push(t)}):r.push(t.styles);var i=!1,o=null;return r.forEach(function(t){if(ot(t)){var e=t,n=e.easing;if(n&&(o=n,delete e.easing),!i)for(var r in e){if(e[r].toString().indexOf("{{")>=0){i=!0;break}}}}),{type:6,styles:r,easing:o,offset:t.offset,containsDynamicStyles:i,options:null}},t.prototype._validateStyleAst=function(t,e){var n=this,r=e.currentAnimateTimings,i=e.currentTime,o=e.currentTime;r&&o>0&&(o-=r.duration+r.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(r){if(n._driver.validateStyleProperty(r)){var a,s,c,l,u,p=e.collectedStyles[e.currentQuerySelector],h=p[r],d=!0;h&&(o!=i&&o>=h.startTime&&i<=h.endTime&&(e.errors.push('The CSS property "'+r+'" that exists between the times of "'+h.startTime+'ms" and "'+h.endTime+'ms" is also being animated in a parallel animation between the times of "'+o+'ms" and "'+i+'ms"'),d=!1),o=h.startTime),d&&(p[r]={startTime:o,endTime:i}),e.options&&(a=t[r],s=e.options,c=e.errors,l=s.params||{},(u=z(a)).length&&u.forEach(function(t){l.hasOwnProperty(t)||c.push("Unable to resolve the local animation param "+t+" in the given list of values")}))}else e.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')})})},t.prototype.visitKeyframes=function(t,e){var n=this,r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],a=!1,s=!1,c=0,l=t.steps.map(function(t){var r=n._makeStyleAst(t,e),l=null!=r.offset?r.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(ot(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(ot(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(r.styles),u=0;return null!=l&&(i++,u=r.offset=l),s=s||u<0||u>1,a=a||u<c,c=u,o.push(u),r});s&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&e.errors.push("Please ensure that all keyframe offsets are in order");var u=t.steps.length,p=0;i>0&&i<u?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(p=1/(u-1));var h=u-1,d=e.currentTime,f=e.currentAnimateTimings,m=f.duration;return l.forEach(function(t,i){var a=p>0?i==h?1:p*i:o[i],s=a*m;e.currentTime=d+f.delay+s,f.duration=s,n._validateStyleAst(t,e),t.offset=a,r.styles.push(t)}),r},t.prototype.visitReference=function(t,e){return{type:8,animation:K(this,U(t.animation),e),options:at(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:at(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:at(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;var i=function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return t==tt});e&&(t=t.replace(et,""));return[t=t.replace(/@\*/g,T).replace(/@\w+/g,function(t){return T+"-"+t.substr(1)}).replace(/:animating/g,I),e]}(t.selector),o=i[0],a=i[1];e.currentQuerySelector=n.length?n+" "+o:o,u(e.collectedStyles,e.currentQuerySelector,{});var s=K(this,U(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:t.selector,options:at(t.options)}},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:N(t.timings,e.errors,!0);return{type:12,animation:K(this,U(t.animation),e),timings:n,options:null}},t}();var it=function(){return function(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}();function ot(t){return!Array.isArray(t)&&"object"==typeof t}function at(t){var e;return t?(t=L(t)).params&&(t.params=(e=t.params)?L(e):null):t={},t}function st(t,e,n){return{duration:t,delay:e,easing:n}}function ct(t,e,n,r,i,o,a,s){return void 0===a&&(a=null),void 0===s&&(s=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:a,subTimeline:s}}var lt=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,e)},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),ut=new RegExp(":enter","g"),pt=new RegExp(":leave","g");function ht(t,e,n,r,i,o,a,s,c,l){return void 0===o&&(o={}),void 0===a&&(a={}),void 0===l&&(l=[]),(new dt).buildKeyframes(t,e,n,r,i,o,a,s,c,l)}var dt=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,r,i,o,a,s,c,l){void 0===l&&(l=[]),c=c||new lt;var u=new mt(t,e,c,r,i,l,[]);u.options=s,u.currentTimeline.setStyles([o],null,u.errors,s),K(this,n,u);var p=u.timelines.filter(function(t){return t.containsAnimation()});if(p.length&&Object.keys(a).length){var h=p[p.length-1];h.allowOnlyTimelineStyles()||h.setStyles([a],null,u.errors,s)}return p.length?p.map(function(t){return t.buildKeyframes()}):[ct(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var r=e.createSubContext(t.options),i=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var r=e.currentTimeline.currentTime,i=null!=n.duration?R(n.duration):null,o=null!=n.delay?R(n.delay):null;return 0!==i&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,i,o);r=Math.max(r,n.duration+n.delay)}),r},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),K(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,r=e.subContextCount,i=e,o=t.options;if(o&&(o.params||o.delay)&&((i=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ft);var a=R(o.delay);i.delayNextStep(a)}t.steps.length&&(t.steps.forEach(function(t){return K(n,t,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,r=[],i=e.currentTimeline.currentTime,o=t.options&&t.options.delay?R(t.options.delay):0;t.steps.forEach(function(a){var s=e.createSubContext(t.options);o&&s.delayNextStep(o),K(n,a,s),i=Math.max(i,s.currentTimeline.currentTime),r.push(s.currentTimeline)}),r.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(i),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return N(e.params?W(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());var i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,i=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(function(t){var n=t.offset||0;o.forwardTime(n*i),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+i),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,r=e.currentTimeline.currentTime,i=t.options||{},o=i.delay?R(i.delay):0;o&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ft);var a=r,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=s.length;var c=null;s.forEach(function(r,i){e.currentQueryIndex=i;var s=e.createSubContext(t.options,r);o&&s.delayNextStep(o),r===e.element&&(c=s.currentTimeline),K(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe();var l=s.currentTimeline.currentTime;a=Math.max(a,l)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,r=e.currentTimeline,i=t.timings,o=Math.abs(i.duration),a=o*(e.currentQueryTotal-1),s=o*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var c=e.currentTimeline;s&&c.delayNextStep(s);var l=c.currentTime;K(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-l+(r.startTime-n.currentTimeline.startTime)},t}(),ft={},mt=function(){function t(t,e,n,r,i,o,a,s){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ft,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new gt(this._driver,e,0),a.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var r=t,i=this.options;null!=r.duration&&(i.duration=R(r.duration)),null!=r.delay&&(i.delay=R(r.delay));var o=r.params;if(o){var a=i.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(t){e&&a.hasOwnProperty(t)||(a[t]=W(o[t],a,n.errors))})}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t},t.prototype.createSubContext=function(e,n,r){void 0===e&&(e=null);var i=n||this.element,o=new t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=ft,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new yt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,e,n,r,i,o){var a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(ut,"."+this._enterClassName)).replace(pt,"."+this._leaveClassName);var s=1!=n,c=this._driver.query(this.element,t,s);0!==n&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push.apply(a,c)}return i||0!=a.length||o.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),a},t}(),gt=function(){function t(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)},t.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var n=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){n._backFill[t]=n._globalTimelineStyles[t]||e.AUTO_STYLE,n._currentKeyframe[t]=e.AUTO_STYLE}),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,n,r,i){var o=this;n&&(this._previousKeyframe.easing=n);var a,s,c,l,u=i&&i.params||{},p=(a=t,s=this._globalTimelineStyles,l={},a.forEach(function(t){"*"===t?(c=c||Object.keys(s)).forEach(function(t){l[t]=e.AUTO_STYLE}):F(t,!1,l)}),l);Object.keys(p).forEach(function(t){var n=W(p[t],u,r);o._pendingStyles[t]=n,o._localTimelineStyles.hasOwnProperty(t)||(o._backFill[t]=o._globalTimelineStyles.hasOwnProperty(t)?o._globalTimelineStyles[t]:e.AUTO_STYLE),o._updateStyle(t,n)})},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){var r=e[n];t._currentKeyframe[n]=r}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var r=e._styleSummary[n],i=t._styleSummary[n];(!r||i.time>r.time)&&e._updateStyle(n,i.value)})},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var n=new Set,r=new Set,i=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(a,s){var c=F(a,!0);Object.keys(c).forEach(function(t){var i=c[t];i==e.ɵPRE_STYLE?n.add(t):i==e.AUTO_STYLE&&r.add(t)}),i||(c.offset=s/t.duration),o.push(c)});var a=n.size?G(n.values()):[],s=r.size?G(r.values()):[];if(i){var c=o[0],l=L(c);c.offset=0,l.offset=1,o=[c,l]}return ct(this.element,o,a,s,this.duration,this.startTime,this.easing,!1)},t}(),yt=function(t){function e(e,n,r,i,o,a,s){void 0===s&&(s=!1);var c=t.call(this,e,n,a.delay)||this;return c.element=n,c.keyframes=r,c.preStyleProps=i,c.postStyleProps=o,c._stretchStartingKeyframe=s,c.timings={duration:a.duration,delay:a.delay,easing:a.easing},c}return r(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,r=e.duration,i=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=r+n,s=n/a,c=F(t[0],!1);c.offset=0,o.push(c);var l=F(t[0],!1);l.offset=vt(s),o.push(l);for(var u=t.length-1,p=1;p<=u;p++){var h=F(t[p],!1),d=n+h.offset*r;h.offset=vt(d/a),o.push(h)}r=a,n=0,i="",t=o}return ct(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)},e}(gt);function vt(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}var bt,_t,wt=function(){function t(t,e){this._driver=t;var n=[],r=nt(t,e,n);if(n.length){var i="animation validation failed:\n"+n.join("\n");throw new Error(i)}this._animationAst=r}return t.prototype.buildTimelines=function(t,e,n,r,i){var o=Array.isArray(e)?j(e):e,a=Array.isArray(n)?j(n):n,s=[];i=i||new lt;var c=ht(this._driver,t,this._animationAst,O,P,o,a,r,i,s);if(s.length){var l="animation building failed:\n"+s.join("\n");throw new Error(l)}return c},t}(),Ct=function(){return function(){}}(),xt=function(){function t(){}return t.prototype.normalizePropertyName=function(t,e){return t},t.prototype.normalizeStyleValue=function(t,e,n,r){return n},t}(),Et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.normalizePropertyName=function(t,e){return Y(t)},e.prototype.normalizeStyleValue=function(t,e,n,r){var i="",o=n.toString().trim();if(St[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push("Please provide a CSS unit value for "+t+":"+n)}return o+i},e}(Ct),St=(bt="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),_t={},bt.forEach(function(t){return _t[t]=!0}),_t);function kt(t,e,n,r,i,o,a,s,c,l,u,p){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:a,timelines:s,queriedElements:c,preStyleProps:l,postStyleProps:u,errors:p}}var Ot={},Pt=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e){return n=this.ast.matchers,r=t,i=e,n.some(function(t){return t(r,i)});var n,r,i},t.prototype.buildStyles=function(t,e,n){var r=this._stateStyles["*"],i=this._stateStyles[t],o=r?r.buildStyles(e,n):{};return i?i.buildStyles(e,n):o},t.prototype.build=function(t,e,n,r,o,a,s,c,l){var p=[],h=this.ast.options&&this.ast.options.params||Ot,d=s&&s.params||Ot,f=this.buildStyles(n,d,p),m=c&&c.params||Ot,g=this.buildStyles(r,m,p),y=new Set,v=new Map,b=new Map,_="void"===r,w={params:i({},h,m)},C=ht(t,e,this.ast.animation,o,a,f,g,w,l,p);if(p.length)return kt(e,this._triggerName,n,r,_,f,g,[],[],v,b,p);C.forEach(function(t){var n=t.element,r=u(v,n,{});t.preStyleProps.forEach(function(t){return r[t]=!0});var i=u(b,n,{});t.postStyleProps.forEach(function(t){return i[t]=!0}),n!==e&&y.add(n)});var x=G(y.values());return kt(e,this._triggerName,n,r,_,f,g,C,x,v,b)},t}();var At=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},r=L(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var i=t;Object.keys(i).forEach(function(t){var o=i[t];o.length>1&&(o=W(o,r,e)),n[t]=o})}}),n},t}();var Tt=function(){function t(t,e){var n,r,i=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(function(t){var e=t.options&&t.options.params||{};i.states[t.name]=new At(t.style,e)}),Mt(this.states,"true","1"),Mt(this.states,"false","0"),e.transitions.forEach(function(e){i.transitionFactories.push(new Pt(t,e,i.states))}),this.fallbackTransition=(n=t,r=this.states,new Pt(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},r))}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,e){return this.transitionFactories.find(function(n){return n.match(t,e)})||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}();function Mt(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var It=new lt,Rt=function(){function t(t,e){this._driver=t,this._normalizer=e,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],r=nt(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r},t.prototype._buildPlayer=function(t,e,n){var r=t.element,i=a(this._driver,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,i,t.duration,t.delay,t.easing,[])},t.prototype.create=function(t,n,r){var i=this;void 0===r&&(r={});var a,s=[],c=this._animations[t],l=new Map;if(c?(a=ht(this._driver,n,c,O,P,{},{},r,It,s)).forEach(function(t){var e=u(l,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(s.push("The requested animation doesn't exist or has already been destroyed"),a=[]),s.length)throw new Error("Unable to create the animation due to the following errors: "+s.join("\n"));l.forEach(function(t,n){Object.keys(t).forEach(function(r){t[r]=i._driver.computeStyle(n,r,e.AUTO_STYLE)})});var p=o(a.map(function(t){var e=l.get(t.element);return i._buildPlayer(t,{},e)}));return this._playersById[t]=p,p.onDestroy(function(){return i.destroy(t)}),this.players.push(p),p},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,r){var i=l(e,"","","");return s(this._getPlayer(t),n,i,r),function(){}},t.prototype.command=function(t,e,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(t);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}else{var o=r[0]||{};this.create(t,e,o)}else this.register(t,r[0])},t}(),Dt="ng-animate-queued",Nt="ng-animate-disabled",Lt=".ng-animate-disabled",jt=[],Ft={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!1},Vt={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!0},Bt="__ng_removed",Ut=function(){function t(t,e){void 0===e&&(e=""),this.namespaceId=e;var n,r=t&&t.hasOwnProperty("value"),i=r?t.value:t;if(this.value=null!=(n=i)?n:null,r){var o=L(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.absorbOptions=function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}},t}(),Ht="void",zt=new Ut(Ht),Wt=new Ut("DELETED"),Gt=function(){function t(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Jt(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var a=u(this._elementListeners,t,[]),s={name:e,phase:n,callback:r};a.push(s);var c=u(this._engine.statesByElement,t,{});return c.hasOwnProperty(e)||(Jt(t,A),Jt(t,A+"-"+e),c[e]=zt),function(){o._engine.afterFlush(function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),o._triggers[e]||delete c[e]})}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,r){var i=this;void 0===r&&(r=!0);var o=this._getTrigger(e),a=new Yt(this.id,e,t),s=this._engine.statesByElement.get(t);s||(Jt(t,A),Jt(t,A+"-"+e),this._engine.statesByElement.set(t,s={}));var c=s[e],l=new Ut(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),s[e]=l,c){if(c===Wt)return a}else c=zt;if(l.value===Ht||c.value!==l.value){var p=u(this._engine.playersByElement,t,[]);p.forEach(function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()});var h=o.matchTransition(c.value,l.value),d=!1;if(!h){if(!r)return;h=o.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:c,toState:l,player:a,isFallbackTransition:d}),d||(Jt(t,Dt),a.onStart(function(){te(t,Dt)})),a.onDone(function(){var e=i.players.indexOf(a);e>=0&&i.players.splice(e,1);var n=i._engine.playersByElement.get(t);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),p.push(a),a}if(!function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(!e.hasOwnProperty(o)||t[o]!==e[o])return!1}return!0}(c.params,l.params)){var f=[],m=o.matchStyles(c.value,c.params,f),g=o.matchStyles(l.value,l.params,f);f.length?this._engine.reportError(f):this._engine.afterFlush(function(){B(t,m),V(t,g)})}},t.prototype.deregister=function(t){var e=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(e,n){delete e[t]}),this._elementListeners.forEach(function(n,r){e._elementListeners.set(r,n.filter(function(e){return e.name!=t}))})},t.prototype.clearElementCache=function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var e=this._engine.playersByElement.get(t);e&&(e.forEach(function(t){return t.destroy()}),this._engine.playersByElement.delete(t))},t.prototype._signalRemovalForInnerTriggers=function(t,e,n){var r=this;void 0===n&&(n=!1),this._engine.driver.query(t,T,!0).forEach(function(t){if(!t[Bt]){var n=r._engine.fetchNamespacesByElement(t);n.size?n.forEach(function(n){return n.triggerLeaveAnimation(t,e,!1,!0)}):r.clearElementCache(t)}})},t.prototype.triggerLeaveAnimation=function(t,e,n,r){var i=this,a=this._engine.statesByElement.get(t);if(a){var s=[];if(Object.keys(a).forEach(function(e){if(i._triggers[e]){var n=i.trigger(t,e,Ht,r);n&&s.push(n)}}),s.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&o(s).onDone(function(){return i._engine.processLeaveNode(t)}),!0}return!1},t.prototype.prepareLeaveAnimationListeners=function(t){var e=this,n=this._elementListeners.get(t);if(n){var r=new Set;n.forEach(function(n){var i=n.name;if(!r.has(i)){r.add(i);var o=e._triggers[i].fallbackTransition,a=e._engine.statesByElement.get(t)[i]||zt,s=new Ut(Ht),c=new Yt(e.id,i,t);e._engine.totalQueuedPlayers++,e._queue.push({element:t,triggerName:i,transition:o,fromState:a,toState:s,player:c,isFallbackTransition:!0})}})}},t.prototype.removeNode=function(t,e){var n=this,r=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e,!0),!this.triggerLeaveAnimation(t,e,!0)){var i=!1;if(r.totalAnimations){var o=r.players.length?r.playersByQueriedElement.get(t):[];if(o&&o.length)i=!0;else for(var a=t;a=a.parentNode;){if(r.statesByElement.get(a)){i=!0;break}}}this.prepareLeaveAnimationListeners(t),i?r.markElementAsRemoved(this.id,t,!1,e):(r.afterFlush(function(){return n.clearElementCache(t)}),r.destroyInnerAnimations(t),r._onRemovalComplete(t,e))}},t.prototype.insertNode=function(t,e){Jt(t,this._hostClassName)},t.prototype.drainQueuedTransitions=function(t){var e=this,n=[];return this._queue.forEach(function(r){var i=r.player;if(!i.destroyed){var o=r.element,a=e._elementListeners.get(o);a&&a.forEach(function(e){if(e.name==r.triggerName){var n=l(o,r.triggerName,r.fromState.value,r.toState.value);n._data=t,s(r.player,e.phase,n,e.callback)}}),i.markedForDestroy?e._engine.afterFlush(function(){i.destroy()}):n.push(r)}}),this._queue=[],n.sort(function(t,n){var r=t.transition.ast.depCount,i=n.transition.ast.depCount;return 0==r||0==i?r-i:e._engine.driver.containsElement(t.element,n.element)?1:-1})},t.prototype.destroy=function(t){this.players.forEach(function(t){return t.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)},t.prototype.elementContainsData=function(t){var e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(function(e){return e.element===t})||e},t}(),qt=function(){function t(t,e){this.driver=t,this._normalizer=e,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(t,e){}}return t.prototype._onRemovalComplete=function(t,e){this.onRemovalComplete(t,e)},Object.defineProperty(t.prototype,"queuedPlayers",{get:function(){var t=[];return this._namespaceList.forEach(function(e){e.players.forEach(function(e){e.queued&&t.push(e)})}),t},enumerable:!0,configurable:!0}),t.prototype.createNamespace=function(t,e){var n=new Gt(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n},t.prototype._balanceNamespaceList=function(t,e){var n=this._namespaceList.length-1;if(n>=0){for(var r=!1,i=n;i>=0;i--){var o=this._namespaceList[i];if(this.driver.containsElement(o.hostElement,e)){this._namespaceList.splice(i+1,0,t),r=!0;break}}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var r=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(r);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(e)})}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.fetchNamespacesByElement=function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var r=Object.keys(n),i=0;i<r.length;i++){var o=n[r[i]].namespaceId;if(o){var a=this._fetchNamespace(o);a&&e.add(a)}}return e},t.prototype.trigger=function(t,e,n,r){return!!Kt(e)&&(this._fetchNamespace(t).trigger(e,n,r),!0)},t.prototype.insertNode=function(t,e,n,r){if(Kt(e)){var i=e[Bt];i&&i.setForRemoval&&(i.setForRemoval=!1),t&&this._fetchNamespace(t).insertNode(e,n),r&&this.collectEnterElement(e)}},t.prototype.collectEnterElement=function(t){this.collectedEnterElements.push(t)},t.prototype.markElementAsDisabled=function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Jt(t,Nt)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),te(t,Nt))},t.prototype.removeNode=function(t,e,n){if(Kt(e)){var r=t?this._fetchNamespace(t):null;r?r.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n)}else this._onRemovalComplete(e,n)},t.prototype.markElementAsRemoved=function(t,e,n,r){this.collectedLeaveElements.push(e),e[Bt]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},t.prototype.listen=function(t,e,n,r,i){return Kt(e)?this._fetchNamespace(t).listen(e,n,r,i):function(){}},t.prototype._buildInstruction=function(t,e,n,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e)},t.prototype.destroyInnerAnimations=function(t){var e=this,n=this.driver.query(t,T,!0);n.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,I,!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})},t.prototype.destroyActiveAnimationsForElement=function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()});var n=this.statesByElement.get(t);n&&Object.keys(n).forEach(function(t){return n[t]=Wt})},t.prototype.finishActiveQueriedAnimationOnElement=function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})},t.prototype.whenRenderingDone=function(){var t=this;return new Promise(function(e){if(t.players.length)return o(t.players).onDone(function(){return e()});e()})},t.prototype.processLeaveNode=function(t){var e=this,n=t[Bt];if(n&&n.setForRemoval){if(t[Bt]=Ft,n.namespaceId){this.destroyInnerAnimations(t);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,Lt)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Lt,!0).forEach(function(n){e.markElementAsDisabled(t,!1)})},t.prototype.flush=function(t){var e=this;void 0===t&&(t=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r<this.collectedEnterElements.length;r++){Jt(this.collectedEnterElements[r],"ng-star-inserted")}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var i=[];try{n=this._flushAnimations(i,t)}finally{for(r=0;r<i.length;r++)i[r]()}}else for(r=0;r<this.collectedLeaveElements.length;r++){var a=this.collectedLeaveElements[r];this.processLeaveNode(a)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(t){return t()}),this._flushFns=[],this._whenQuietFns.length){var s=this._whenQuietFns;this._whenQuietFns=[],n.length?o(n).onDone(function(){s.forEach(function(t){return t()})}):s.forEach(function(t){return t()})}},t.prototype.reportError=function(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))},t.prototype._flushAnimations=function(t,n){var r=this,a=new lt,s=[],c=new Map,l=[],p=new Map,h=new Map,d=new Map,f=new Set;this.disabledNodes.forEach(function(t){f.add(t);for(var e=r.driver.query(t,".ng-animate-queued",!0),n=0;n<e.length;n++)f.add(e[n])});var m=_(),g=Array.from(this.statesByElement.keys()),y=Qt(g,this.collectedEnterElements),v=new Map,b=0;y.forEach(function(t,e){var n=O+b++;v.set(e,n),t.forEach(function(t){return Jt(t,n)})});for(var w=[],C=new Set,x=new Set,E=0;E<this.collectedLeaveElements.length;E++){(q=(G=this.collectedLeaveElements[E])[Bt])&&q.setForRemoval&&(w.push(G),C.add(G),q.hasAnimation?this.driver.query(G,".ng-star-inserted",!0).forEach(function(t){return C.add(t)}):x.add(G))}var S=new Map,k=Qt(g,Array.from(C));k.forEach(function(t,e){var n=P+b++;S.set(e,n),t.forEach(function(t){return Jt(t,n)})}),t.push(function(){y.forEach(function(t,e){var n=v.get(e);t.forEach(function(t){return te(t,n)})}),k.forEach(function(t,e){var n=S.get(e);t.forEach(function(t){return te(t,n)})}),w.forEach(function(t){r.processLeaveNode(t)})});for(var A=[],T=[],M=this._namespaceList.length-1;M>=0;M--){this._namespaceList[M].drainQueuedTransitions(n).forEach(function(t){var e=t.player;A.push(e);var n=t.element;if(m&&r.driver.containsElement(m,n)){var i=S.get(n),o=v.get(n),c=r._buildInstruction(t,a,o,i);if(c.errors&&c.errors.length)T.push(c);else{if(t.isFallbackTransition)return e.onStart(function(){return B(n,c.fromStyles)}),e.onDestroy(function(){return V(n,c.toStyles)}),void s.push(e);c.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),a.append(n,c.timelines);var f={instruction:c,player:e,element:n};l.push(f),c.queriedElements.forEach(function(t){return u(p,t,[]).push(e)}),c.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var r=h.get(e);r||h.set(e,r=new Set),n.forEach(function(t){return r.add(t)})}}),c.postStyleProps.forEach(function(t,e){var n=Object.keys(t),r=d.get(e);r||d.set(e,r=new Set),n.forEach(function(t){return r.add(t)})})}}else e.destroy()})}if(T.length){var R=[];T.forEach(function(t){R.push("@"+t.triggerName+" has failed due to:\n"),t.errors.forEach(function(t){return R.push("- "+t+"\n")})}),A.forEach(function(t){return t.destroy()}),this.reportError(R)}var D=new Map,N=new Map;l.forEach(function(t){var e=t.element;a.has(e)&&(N.set(e,e),r._beforeAnimationBuild(t.player.namespaceId,t.instruction,D))}),s.forEach(function(t){var e=t.element;r._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){u(D,e,[]).push(t),t.destroy()})});var L=w.filter(function(t){return ne(t,h,d)}),j=new Map;Xt(j,this.driver,x,d,e.AUTO_STYLE).forEach(function(t){ne(t,h,d)&&L.push(t)});var F=new Map;y.forEach(function(t,n){Xt(F,r.driver,new Set(t),h,e.ɵPRE_STYLE)}),L.forEach(function(t){var e=j.get(t),n=F.get(t);j.set(t,i({},e,n))});var U=[],H=[],z={};l.forEach(function(t){var e=t.element,n=t.player,i=t.instruction;if(a.has(e)){if(f.has(e))return n.onDestroy(function(){return V(e,i.toStyles)}),void s.push(n);var l=z;if(N.size>1){for(var u=e,p=[];u=u.parentNode;){var h=N.get(u);if(h){l=h;break}p.push(u)}p.forEach(function(t){return N.set(t,l)})}var d=r._buildAnimation(n.namespaceId,i,D,c,F,j);if(n.setRealPlayer(d),l===z)U.push(n);else{var m=r.playersByElement.get(l);m&&m.length&&(n.parentPlayer=o(m)),s.push(n)}}else B(e,i.fromStyles),n.onDestroy(function(){return V(e,i.toStyles)}),H.push(n),f.has(e)&&s.push(n)}),H.forEach(function(t){var e=c.get(t.element);if(e&&e.length){var n=o(e);t.setRealPlayer(n)}}),s.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var W=0;W<w.length;W++){var G,q=(G=w[W])[Bt];if(te(G,P),!q||!q.hasAnimation){var Y=[];if(p.size){var K=p.get(G);K&&K.length&&Y.push.apply(Y,K);for(var $=this.driver.query(G,I,!0),X=0;X<$.length;X++){var Q=p.get($[X]);Q&&Q.length&&Y.push.apply(Y,Q)}}var Z=Y.filter(function(t){return!t.destroyed});Z.length?ee(this,G,Z):this.processLeaveNode(G)}}return w.length=0,U.forEach(function(t){r.players.push(t),t.onDone(function(){t.destroy();var e=r.players.indexOf(t);r.players.splice(e,1)}),t.play()}),U},t.prototype.elementContainsData=function(t,e){var n=!1,r=e[Bt];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n},t.prototype.afterFlush=function(t){this._flushFns.push(t)},t.prototype.afterFlushAnimationsDone=function(t){this._whenQuietFns.push(t)},t.prototype._getPreviousPlayers=function(t,e,n,r,i){var o=[];if(e){var a=this.playersByQueriedElement.get(t);a&&(o=a)}else{var s=this.playersByElement.get(t);if(s){var c=!i||i==Ht;s.forEach(function(t){t.queued||(c||t.triggerName==r)&&o.push(t)})}}return(n||r)&&(o=o.filter(function(t){return(!n||n==t.namespaceId)&&(!r||r==t.triggerName)})),o},t.prototype._beforeAnimationBuild=function(t,e,n){for(var r=e.triggerName,i=e.element,o=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:r,s=function(t){var r=t.element,s=r!==i,l=u(n,r,[]);c._getPreviousPlayers(r,s,o,a,e.toState).forEach(function(t){var e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})},c=this,l=0,p=e.timelines;l<p.length;l++){s(p[l])}B(i,e.fromStyles)},t.prototype._buildAnimation=function(t,n,r,i,s,c){var l=this,p=n.triggerName,h=n.element,d=[],f=new Set,m=new Set,g=n.timelines.map(function(n){var o=n.element;f.add(o);var u=o[Bt];if(u&&u.removedBeforeQueried)return new e.NoopAnimationPlayer;var g,y,v=o!==h,b=(g=(r.get(o)||jt).map(function(t){return t.getRealPlayer()}),y=[],function t(n,r){for(var i=0;i<n.length;i++){var o=n[i];o instanceof e.ɵAnimationGroupPlayer?t(o.players,r):r.push(o)}}(g,y),y).filter(function(t){var e=t;return!!e.element&&e.element===o}),_=s.get(o),w=c.get(o),C=a(l.driver,l._normalizer,0,n.keyframes,_,w),x=l._buildPlayer(n,C,b);if(n.subTimeline&&i&&m.add(o),v){var E=new Yt(t,p,o);E.setRealPlayer(x),d.push(E)}return x});d.forEach(function(t){u(l.playersByQueriedElement,t.element,[]).push(t),t.onDone(function(){return function(t,e,n){var r;if(t instanceof Map){if(r=t.get(e)){if(r.length){var i=r.indexOf(n);r.splice(i,1)}0==r.length&&t.delete(e)}}else if(r=t[e]){if(r.length){var i=r.indexOf(n);r.splice(i,1)}0==r.length&&delete t[e]}return r}(l.playersByQueriedElement,t.element,t)})}),f.forEach(function(t){return Jt(t,M)});var y=o(g);return y.onDestroy(function(){f.forEach(function(t){return te(t,M)}),V(h,n.toStyles)}),m.forEach(function(t){u(i,t,[]).push(y)}),y},t.prototype._buildPlayer=function(t,n,r){return n.length>0?this.driver.animate(t.element,n,t.duration,t.delay,t.easing,r):new e.NoopAnimationPlayer},t}(),Yt=function(){function t(t,n,r){this.namespaceId=t,this.triggerName=n,this.element=r,this._player=new e.NoopAnimationPlayer,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.queued=!0}return t.prototype.setRealPlayer=function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return s(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.queued=!1)},t.prototype.getRealPlayer=function(){return this._player},t.prototype.syncPlayerEvents=function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})},t.prototype._queueEvent=function(t,e){u(this._queuedCallbacks,t,[]).push(e)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._player.totalTime},enumerable:!0,configurable:!0}),t.prototype.triggerCallback=function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)},t}();function Kt(t){return t&&1===t.nodeType}function $t(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function Xt(t,e,n,r,i){var o=[];n.forEach(function(t){return o.push($t(t))});var a=[];r.forEach(function(n,r){var o={};n.forEach(function(t){var n=o[t]=e.computeStyle(r,t,i);n&&0!=n.length||(r[Bt]=Vt,a.push(r))}),t.set(r,o)});var s=0;return n.forEach(function(t){return $t(t,o[s++])}),a}function Qt(t,e){var n=new Map;if(t.forEach(function(t){return n.set(t,[])}),0==e.length)return n;var r=1,i=new Set(e),o=new Map;return e.forEach(function(t){var e=function t(e){if(!e)return r;var a=o.get(e);if(a)return a;var s=e.parentNode;return a=n.has(s)?s:i.has(s)?r:t(s),o.set(e,a),a}(t);e!==r&&n.get(e).push(t)}),n}var Zt="$$classes";function Jt(t,e){if(t.classList)t.classList.add(e);else{var n=t[Zt];n||(n=t[Zt]={}),n[e]=!0}}function te(t,e){if(t.classList)t.classList.remove(e);else{var n=t[Zt];n&&delete n[e]}}function ee(t,e,n){o(n).onDone(function(){return t.processLeaveNode(e)})}function ne(t,e,n){var r=n.get(t);if(!r)return!1;var i=e.get(t);return i?r.forEach(function(t){return i.add(t)}):e.set(t,r),n.delete(t),!0}var re=function(){function t(t,e){var n=this;this._driver=t,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new qt(t,e),this._timelineEngine=new Rt(t,e),this._transitionEngine.onRemovalComplete=function(t,e){return n.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,r,i){var o=t+"-"+r,a=this._triggerCache[o];if(!a){var s=[],c=nt(this._driver,i,s);if(s.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+s.join("\n - "));a=new Tt(r,c),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)},t.prototype.onRemove=function(t,e,n){this._transitionEngine.removeNode(t,e,n)},t.prototype.disableAnimations=function(t,e){this._transitionEngine.markElementAsDisabled(t,e)},t.prototype.process=function(t,e,n,r){if("@"==n.charAt(0)){var i=p(n),o=i[0],a=i[1],s=r;this._timelineEngine.command(o,e,a,s)}else this._transitionEngine.trigger(t,e,n,r)},t.prototype.listen=function(t,e,n,r,i){if("@"==n.charAt(0)){var o=p(n),a=o[0],s=o[1];return this._timelineEngine.listen(a,e,s,i)}return this._transitionEngine.listen(t,e,n,r,i)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}(),ie=function(){function t(t,e,n,r){void 0===r&&(r=[]);var i,o,a=this;this.element=t,this.keyframes=e,this.options=n,this.previousPlayers=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.previousStyles={},this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay,i=this._duration,o=this._delay,(0===i||0===o)&&r.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return a.previousStyles[t]=e[t]})})}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes.map(function(t){return F(t,!1)}),n=Object.keys(this.previousStyles);if(n.length&&e.length){var r=e[0],i=[];if(n.forEach(function(e){r.hasOwnProperty(e)||i.push(e),r[e]=t.previousStyles[e]}),i.length)for(var o=this,a=function(){var t=e[s];i.forEach(function(e){t[e]=oe(o.element,e)})},s=1;s<e.length;s++)a()}this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}},t.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},t.prototype._triggerWebAnimation=function(t,e,n){return t.animate(e,n)},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this.domPlayer.play()},t.prototype.pause=function(){this.init(),this.domPlayer.pause()},t.prototype.finish=function(){this.init(),this._onFinish(),this.domPlayer.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.setPosition=function(t){this.domPlayer.currentTime=t*this.time},t.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),t.prototype.beforeDestroy=function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:oe(t.element,n))}),this.currentSnapshot=e},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}();function oe(t,e){return window.getComputedStyle(t)[e]}var ae=function(){function t(){}return t.prototype.validateStyleProperty=function(t){return b(t)},t.prototype.matchesElement=function(t,e){return w(t,e)},t.prototype.containsElement=function(t,e){return C(t,e)},t.prototype.query=function(t,e,n){return x(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.animate=function(t,e,n,r,i,o){void 0===o&&(o=[]);var a={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(a.easing=i);var s=o.filter(function(t){return t instanceof ie});return new ie(t,e,a,s)},t}();t.AnimationDriver=S,t.ɵAnimation=wt,t.ɵAnimationStyleNormalizer=Ct,t.ɵNoopAnimationStyleNormalizer=xt,t.ɵWebAnimationsStyleNormalizer=Et,t.ɵNoopAnimationDriver=E,t.ɵAnimationEngine=re,t.ɵWebAnimationsDriver=ae,t.ɵsupportsWebAnimations=function(){return"undefined"!=typeof Element&&"function"==typeof Element.prototype.animate},t.ɵWebAnimationsPlayer=ie,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/animations")):i((r.ng=r.ng||{},r.ng.animations=r.ng.animations||{},r.ng.animations.browser={}),r.ng.animations)},{"@angular/animations":39}],39:[function(t,e,n){var r;r=this,function(t){"use strict";var e=function(){return function(){}}(),n=function(){return function(){}}();function r(t){Promise.resolve(null).then(t)}var i=function(){function t(){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=0}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.init=function(){},t.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},t.prototype.triggerMicrotask=function(){var t=this;r(function(){return t._onFinish()})},t.prototype._onStart=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){this._onFinish()},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){},t.prototype.setPosition=function(t){},t.prototype.getPosition=function(){return 0},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),o=function(){function t(t){var e=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var n=0,i=0,o=0,a=this.players.length;0==a?r(function(){return e._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++n==a&&e._onFinish()}),t.onDestroy(function(){++i==a&&e._onDestroy()}),t.onStart(function(){++o==a&&e._onStart()})}),this.totalTime=this.players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this.players.forEach(function(t){return t.init()})},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})},t.prototype.pause=function(){this.players.forEach(function(t){return t.pause()})},t.prototype.restart=function(){this.players.forEach(function(t){return t.restart()})},t.prototype.finish=function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})},t.prototype.destroy=function(){this._onDestroy()},t.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.setPosition=function(t){var e=t*this.totalTime;this.players.forEach(function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})},t.prototype.getPosition=function(){var t=0;return this.players.forEach(function(e){var n=e.getPosition();t=Math.min(n,t)}),t},t.prototype.beforeDestroy=function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}();t.AnimationBuilder=e,t.AnimationFactory=n,t.AUTO_STYLE="*",t.animate=function(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}},t.animateChild=function(t){return void 0===t&&(t=null),{type:9,options:t}},t.animation=function(t,e){return void 0===e&&(e=null),{type:8,animation:t,options:e}},t.group=function(t,e){return void 0===e&&(e=null),{type:3,steps:t,options:e}},t.keyframes=function(t){return{type:5,steps:t}},t.query=function(t,e,n){return void 0===n&&(n=null),{type:11,selector:t,animation:e,options:n}},t.sequence=function(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}},t.stagger=function(t,e){return{type:12,timings:t,animation:e}},t.state=function(t,e,n){return{type:0,name:t,styles:e,options:n}},t.style=function(t){return{type:6,styles:t,offset:null}},t.transition=function(t,e,n){return void 0===n&&(n=null),{type:1,expr:t,animation:e,options:n}},t.trigger=function(t,e){return{type:7,name:t,definitions:e,options:{}}},t.useAnimation=function(t,e){return void 0===e&&(e=null),{type:10,animation:t,options:e}},t.NoopAnimationPlayer=i,t.ɵAnimationGroupPlayer=o,t.ɵPRE_STYLE="!",Object.defineProperty(t,"__esModule",{value:!0})}("object"==typeof n&&void 0!==e?n:(r.ng=r.ng||{},r.ng.animations={}))},{}],40:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i,o,a,s,c,l,u,p,h,d){"use strict";var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function m(t,e){function n(){this.constructor=t}f(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var g=function(){function t(t){this._platform=t}return t.prototype.isDisabled=function(t){return t.hasAttribute("disabled")},t.prototype.isVisible=function(t){return!!((e=t).offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)&&"visible"===getComputedStyle(t).visibility;var e},t.prototype.isTabbable=function(t){if(!this._platform.isBrowser)return!1;var e,n=(e=t,e.ownerDocument.defaultView||window).frameElement;if(n){var r=n&&n.nodeName.toLowerCase();if(-1===v(n))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===r)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(n))return!1}var i,o,a,s=t.nodeName.toLowerCase(),c=v(t);if(t.hasAttribute("contenteditable"))return-1!==c;if("iframe"===s)return!1;if("audio"===s){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===s){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==s||!this._platform.BLINK&&!this._platform.WEBKIT)&&((!this._platform.WEBKIT||!this._platform.IOS||(o=(i=t).nodeName.toLowerCase(),"text"===(a="input"===o&&i.type)||"password"===a||"select"===o||"textarea"===o))&&t.tabIndex>=0)},t.prototype.isFocusable=function(t){return function(t){if(e=t,n=e,"input"==n.nodeName.toLowerCase()&&"hidden"==e.type)return!1;var e,n;return o=t,a=o.nodeName.toLowerCase(),"input"===a||"select"===a||"button"===a||"textarea"===a||(r=t,i=r,"a"==i.nodeName.toLowerCase()&&r.hasAttribute("href"))||t.hasAttribute("contenteditable")||y(t);var r,i;var o,a}(t)&&!this.isDisabled(t)&&this.isVisible(t)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:i.Platform}]},t}();function y(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function v(t){if(!y(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var b=function(){function t(t,e,n,r,i){void 0===i&&(i=!1),this._element=t,this._checker=e,this._ngZone=n,this._document=r,this._enabled=!0,i||this.attachAnchors()}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._startAnchor.tabIndex=this._endAnchor.tabIndex=this._enabled?0:-1)},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._startAnchor&&this._startAnchor.parentNode&&this._startAnchor.parentNode.removeChild(this._startAnchor),this._endAnchor&&this._endAnchor.parentNode&&this._endAnchor.parentNode.removeChild(this._endAnchor),this._startAnchor=this._endAnchor=null},t.prototype.attachAnchors=function(){var t=this;this._startAnchor||(this._startAnchor=this._createAnchor()),this._endAnchor||(this._endAnchor=this._createAnchor()),this._ngZone.runOutsideAngular(function(){t._startAnchor.addEventListener("focus",function(){t.focusLastTabbableElement()}),t._endAnchor.addEventListener("focus",function(){t.focusFirstTabbableElement()}),t._element.parentNode&&(t._element.parentNode.insertBefore(t._startAnchor,t._element),t._element.parentNode.insertBefore(t._endAnchor,t._element.nextSibling))})},t.prototype.focusInitialElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusInitialElement())})})},t.prototype.focusFirstTabbableElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusFirstTabbableElement())})})},t.prototype.focusLastTabbableElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusLastTabbableElement())})})},t.prototype._getRegionBoundary=function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-"+t+"], [cdkFocusRegion"+t+"], [cdk-focus-"+t+"]"),n=0;n<e.length;n++)e[n].hasAttribute("cdk-focus-"+t)?console.warn("Found use of deprecated attribute 'cdk-focus-"+t+"', use 'cdkFocusRegion"+t+"' instead.",e[n]):e[n].hasAttribute("cdk-focus-region-"+t)&&console.warn("Found use of deprecated attribute 'cdk-focus-region-"+t+"', use 'cdkFocusRegion"+t+"' instead.",e[n]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)},t.prototype.focusInitialElement=function(){var t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return this._element.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead.",this._element),t?(t.focus(),!0):this.focusFirstTabbableElement()},t.prototype.focusFirstTabbableElement=function(){var t=this._getRegionBoundary("start");return t&&t.focus(),!!t},t.prototype.focusLastTabbableElement=function(){var t=this._getRegionBoundary("end");return t&&t.focus(),!!t},t.prototype._getFirstTabbableElement=function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var e=t.children||t.childNodes,n=0;n<e.length;n++){var r=1===e[n].nodeType?this._getFirstTabbableElement(e[n]):null;if(r)return r}return null},t.prototype._getLastTabbableElement=function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var e=t.children||t.childNodes,n=e.length-1;n>=0;n--){var r=1===e[n].nodeType?this._getLastTabbableElement(e[n]):null;if(r)return r}return null},t.prototype._createAnchor=function(){var t=this._document.createElement("div");return t.tabIndex=this._enabled?0:-1,t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t},t.prototype._executeOnStable=function(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(r.take(1)).subscribe(t)},t}(),_=function(){function t(t,e,n){this._checker=t,this._ngZone=e,this._document=n}return t.prototype.create=function(t,e){return void 0===e&&(e=!1),new b(t,this._checker,this._ngZone,this._document,e)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:g},{type:e.NgZone},{type:void 0,decorators:[{type:e.Inject,args:[o.DOCUMENT]}]}]},t}(),w=function(){function t(t,e){this._elementRef=t,this._focusTrapFactory=e,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return Object.defineProperty(t.prototype,"disabled",{get:function(){return!this.focusTrap.enabled},set:function(t){this.focusTrap.enabled=!n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.focusTrap.destroy()},t.prototype.ngAfterContentInit=function(){this.focusTrap.attachAnchors()},t.decorators=[{type:e.Directive,args:[{selector:"cdk-focus-trap"}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:_}]},t.propDecorators={disabled:[{type:e.Input}]},t}(),C=function(){function t(t,e,n){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this._document=n,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this.focusTrap.enabled},set:function(t){this.focusTrap.enabled=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoCapture",{get:function(){return this._autoCapture},set:function(t){this._autoCapture=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)},t.prototype.ngAfterContentInit=function(){this.focusTrap.attachAnchors(),this.autoCapture&&(this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady())},t.decorators=[{type:e.Directive,args:[{selector:"[cdkTrapFocus]",exportAs:"cdkTrapFocus"}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:_},{type:void 0,decorators:[{type:e.Inject,args:[o.DOCUMENT]}]}]},t.propDecorators={enabled:[{type:e.Input,args:["cdkTrapFocus"]}],autoCapture:[{type:e.Input,args:["cdkTrapFocusAutoCapture"]}]},t}(),x=function(){function t(t){this._items=t,this._activeItemIndex=-1,this._wrap=!1,this._letterKeyStream=new a.Subject,this._typeaheadSubscription=s.Subscription.EMPTY,this._pressedLetters=[],this.tabOut=new a.Subject,this.change=new a.Subject}return t.prototype.withWrap=function(){return this._wrap=!0,this},t.prototype.withTypeAhead=function(t){var e=this;if(void 0===t&&(t=200),this._items.length&&this._items.some(function(t){return"function"!=typeof t.getLabel}))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(h.tap(function(t){return e._pressedLetters.push(t)}),l.debounceTime(t),u.filter(function(){return e._pressedLetters.length>0}),p.map(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._items.toArray(),r=1;r<n.length+1;r++){var i=(e._activeItemIndex+r)%n.length,o=n[i];if(!o.disabled&&0===o.getLabel().toUpperCase().trim().indexOf(t)){e.setActiveItem(i);break}}e._pressedLetters=[]}),this},t.prototype.setActiveItem=function(t){var e=this._activeItemIndex;this._activeItemIndex=t,this._activeItem=this._items.toArray()[t],this._activeItemIndex!==e&&this.change.next(t)},t.prototype.onKeydown=function(t){switch(t.keyCode){case c.DOWN_ARROW:this.setNextItemActive();break;case c.UP_ARROW:this.setPreviousItemActive();break;case c.TAB:return void this.tabOut.next();default:var e=t.keyCode;return void(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=c.A&&e<=c.Z||e>=c.ZERO&&e<=c.NINE)&&this._letterKeyStream.next(String.fromCharCode(e)))}this._pressedLetters=[],t.preventDefault()},Object.defineProperty(t.prototype,"activeItemIndex",{get:function(){return this._activeItemIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeItem",{get:function(){return this._activeItem},enumerable:!0,configurable:!0}),t.prototype.setFirstItemActive=function(){this._setActiveItemByIndex(0,1)},t.prototype.setLastItemActive=function(){this._setActiveItemByIndex(this._items.length-1,-1)},t.prototype.setNextItemActive=function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)},t.prototype.setPreviousItemActive=function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)},t.prototype.updateActiveItemIndex=function(t){this._activeItemIndex=t},t.prototype._setActiveItemByDelta=function(t,e){void 0===e&&(e=this._items.toArray()),this._wrap?this._setActiveInWrapMode(t,e):this._setActiveInDefaultMode(t,e)},t.prototype._setActiveInWrapMode=function(t,e){this._activeItemIndex=(this._activeItemIndex+t+e.length)%e.length,e[this._activeItemIndex].disabled?this._setActiveInWrapMode(t,e):this.setActiveItem(this._activeItemIndex)},t.prototype._setActiveInDefaultMode=function(t,e){this._setActiveItemByIndex(this._activeItemIndex+t,t,e)},t.prototype._setActiveItemByIndex=function(t,e,n){if(void 0===n&&(n=this._items.toArray()),n[t]){for(;n[t].disabled;)if(!n[t+=e])return;this.setActiveItem(t)}},t}(),E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.setActiveItem=function(e){this.activeItem&&this.activeItem.setInactiveStyles(),t.prototype.setActiveItem.call(this,e),this.activeItem&&this.activeItem.setActiveStyles()},e}(x),S=" ";function k(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var O="cdk-describedby-message-container",P="cdk-describedby-message",A="cdk-describedby-host",T=0,M=new Map,I=null,R=function(){function t(t){this._document=t}return t.prototype.describe=function(t,e){e.trim()&&(M.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))},t.prototype.removeDescription=function(t,e){if(e.trim()){this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e);var n=M.get(e);n&&0===n.referenceCount&&this._deleteMessageElement(e),I&&0===I.childNodes.length&&this._deleteMessagesContainer()}},t.prototype.ngOnDestroy=function(){for(var t=this._document.querySelectorAll("["+A+"]"),e=0;e<t.length;e++)this._removeCdkDescribedByReferenceIds(t[e]),t[e].removeAttribute(A);I&&this._deleteMessagesContainer(),M.clear()},t.prototype._createMessageElement=function(t){var e=this._document.createElement("div");e.setAttribute("id",P+"-"+T++),e.appendChild(this._document.createTextNode(t)),I||this._createMessagesContainer(),I.appendChild(e),M.set(t,{messageElement:e,referenceCount:0})},t.prototype._deleteMessageElement=function(t){var e=M.get(t),n=e&&e.messageElement;I&&n&&I.removeChild(n),M.delete(t)},t.prototype._createMessagesContainer=function(){(I=this._document.createElement("div")).setAttribute("id",O),I.setAttribute("aria-hidden","true"),I.style.display="none",this._document.body.appendChild(I)},t.prototype._deleteMessagesContainer=function(){I&&I.parentNode&&(I.parentNode.removeChild(I),I=null)},t.prototype._removeCdkDescribedByReferenceIds=function(t){var e=k(t,"aria-describedby").filter(function(t){return 0!=t.indexOf(P)});t.setAttribute("aria-describedby",e.join(" "))},t.prototype._addMessageReference=function(t,e){var n,r,i,o,a=M.get(e);n=t,r="aria-describedby",i=a.messageElement.id,(o=k(n,r)).some(function(t){return t.trim()==i.trim()})||(o.push(i.trim()),n.setAttribute(r,o.join(S))),t.setAttribute(A,""),a.referenceCount++},t.prototype._removeMessageReference=function(t,e){var n,r,i,o,a=M.get(e);a.referenceCount--,n=t,r="aria-describedby",i=a.messageElement.id,o=k(n,r).filter(function(t){return t!=i.trim()}),n.setAttribute(r,o.join(S)),t.removeAttribute(A)},t.prototype._isElementDescribedByMessage=function(t,e){var n=k(t,"aria-describedby"),r=M.get(e),i=r&&r.messageElement.id;return!!i&&-1!=n.indexOf(i)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[o.DOCUMENT]}]}]},t}();function D(t,e){return t||new R(e)}var N={provide:R,deps:[[new e.Optional,new e.SkipSelf,R],o.DOCUMENT],useFactory:D};var L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.setActiveItem=function(e){t.prototype.setActiveItem.call(this,e),this.activeItem&&this.activeItem.focus()},e}(x),j=new e.InjectionToken("liveAnnouncerElement"),F=function(){function t(t,e){this._document=e,this._liveElement=t||this._createLiveElement()}return t.prototype.announce=function(t,e){var n=this;void 0===e&&(e="polite"),this._liveElement.textContent="",this._liveElement.setAttribute("aria-live",e),setTimeout(function(){return n._liveElement.textContent=t},100)},t.prototype.ngOnDestroy=function(){this._liveElement&&this._liveElement.parentNode&&this._liveElement.parentNode.removeChild(this._liveElement)},t.prototype._createLiveElement=function(){var t=this._document.createElement("div");return t.classList.add("cdk-visually-hidden"),t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),t},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[j]}]},{type:void 0,decorators:[{type:e.Inject,args:[o.DOCUMENT]}]}]},t}();function V(t,e,n){return t||new F(e,n)}var B={provide:F,deps:[[new e.Optional,new e.SkipSelf,F],[new e.Optional,new e.Inject(j)],o.DOCUMENT],useFactory:V},U=function(){function t(t,e){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new WeakMap,this._unregisterGlobalListeners=function(){},this._monitoredElementCount=0}return t.prototype.monitor=function(t,n,r){var i=this;if(n instanceof e.Renderer2||(r=n),r=!!r,!this._platform.isBrowser)return d.of(null);if(this._elementInfo.has(t)){var o=this._elementInfo.get(t);return o.checkChildren=r,o.subject.asObservable()}var s={unlisten:function(){},checkChildren:r,subject:new a.Subject};this._elementInfo.set(t,s),this._incrementMonitoredElementCount();var c=function(e){return i._onFocus(e,t)},l=function(e){return i._onBlur(e,t)};return this._ngZone.runOutsideAngular(function(){t.addEventListener("focus",c,!0),t.addEventListener("blur",l,!0)}),s.unlisten=function(){t.removeEventListener("focus",c,!0),t.removeEventListener("blur",l,!0)},s.subject.asObservable()},t.prototype.stopMonitoring=function(t){var e=this._elementInfo.get(t);e&&(e.unlisten(),e.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._decrementMonitoredElementCount())},t.prototype.focusVia=function(t,e){this._setOriginForCurrentEventQueue(e),t.focus()},t.prototype._registerGlobalListeners=function(){var t=this;if(this._platform.isBrowser){var e=function(){t._lastTouchTarget=null,t._setOriginForCurrentEventQueue("keyboard")},n=function(){t._lastTouchTarget||t._setOriginForCurrentEventQueue("mouse")},r=function(e){null!=t._touchTimeout&&clearTimeout(t._touchTimeout),t._lastTouchTarget=e.target,t._touchTimeout=setTimeout(function(){return t._lastTouchTarget=null},650)},o=function(){t._windowFocused=!0,setTimeout(function(){return t._windowFocused=!1},0)};this._ngZone.runOutsideAngular(function(){document.addEventListener("keydown",e,!0),document.addEventListener("mousedown",n,!0),document.addEventListener("touchstart",r,!i.supportsPassiveEventListeners()||{passive:!0,capture:!0}),window.addEventListener("focus",o)}),this._unregisterGlobalListeners=function(){document.removeEventListener("keydown",e,!0),document.removeEventListener("mousedown",n,!0),document.removeEventListener("touchstart",r,!i.supportsPassiveEventListeners()||{passive:!0,capture:!0}),window.removeEventListener("focus",o)}}},t.prototype._toggleClass=function(t,e,n){n?t.classList.add(e):t.classList.remove(e)},t.prototype._setClasses=function(t,e){this._elementInfo.get(t)&&(this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e))},t.prototype._setOriginForCurrentEventQueue=function(t){var e=this;this._origin=t,setTimeout(function(){return e._origin=null},0)},t.prototype._wasCausedByTouch=function(t){var e=t.target;return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))},t.prototype._onFocus=function(t,e){var n=this._elementInfo.get(e);n&&(n.checkChildren||e===t.target)&&(this._origin||(this._windowFocused&&this._lastFocusOrigin?this._origin=this._lastFocusOrigin:this._wasCausedByTouch(t)?this._origin="touch":this._origin="program"),this._setClasses(e,this._origin),n.subject.next(this._origin),this._lastFocusOrigin=this._origin,this._origin=null)},t.prototype._onBlur=function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),n.subject.next(null))},t.prototype._incrementMonitoredElementCount=function(){1==++this._monitoredElementCount&&this._registerGlobalListeners()},t.prototype._decrementMonitoredElementCount=function(){--this._monitoredElementCount||(this._unregisterGlobalListeners(),this._unregisterGlobalListeners=function(){})},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:e.NgZone},{type:i.Platform}]},t}(),H=function(){function t(t,n){var r=this;this._elementRef=t,this._focusMonitor=n,this.cdkFocusChange=new e.EventEmitter,this._monitorSubscription=this._focusMonitor.monitor(this._elementRef.nativeElement,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(t){return r.cdkFocusChange.emit(t)})}return t.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef.nativeElement),this._monitorSubscription.unsubscribe()},t.decorators=[{type:e.Directive,args:[{selector:"[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]"}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:U}]},t.propDecorators={cdkFocusChange:[{type:e.Output}]},t}();function z(t,e,n){return t||new U(e,n)}var W={provide:U,deps:[[new e.Optional,new e.SkipSelf,U],e.NgZone,i.Platform],useFactory:z},G=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[o.CommonModule,i.PlatformModule],declarations:[C,w,H],exports:[C,w,H],providers:[g,_,R,B,N,W]}]}],t.ctorParameters=function(){return[]},t}();t.FocusTrapDirective=C,t.ActiveDescendantKeyManager=E,t.MESSAGES_CONTAINER_ID=O,t.CDK_DESCRIBEDBY_ID_PREFIX=P,t.CDK_DESCRIBEDBY_HOST_ATTRIBUTE=A,t.AriaDescriber=R,t.ARIA_DESCRIBER_PROVIDER_FACTORY=D,t.ARIA_DESCRIBER_PROVIDER=N,t.isFakeMousedownFromScreenReader=function(t){return 0===t.buttons},t.FocusKeyManager=L,t.FocusTrap=b,t.FocusTrapFactory=_,t.FocusTrapDeprecatedDirective=w,t.CdkTrapFocus=C,t.InteractivityChecker=g,t.ListKeyManager=x,t.LIVE_ANNOUNCER_ELEMENT_TOKEN=j,t.LiveAnnouncer=F,t.LIVE_ANNOUNCER_PROVIDER_FACTORY=V,t.LIVE_ANNOUNCER_PROVIDER=B,t.TOUCH_BUFFER_MS=650,t.FocusMonitor=U,t.CdkMonitorFocus=H,t.FOCUS_MONITOR_PROVIDER_FACTORY=z,t.FOCUS_MONITOR_PROVIDER=W,t.A11yModule=G,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("@angular/cdk/coercion"),t("rxjs/operators/take"),t("@angular/cdk/platform"),t("@angular/common"),t("rxjs/Subject"),t("rxjs/Subscription"),t("@angular/cdk/keycodes"),t("rxjs/operators/debounceTime"),t("rxjs/operators/filter"),t("rxjs/operators/map"),t("rxjs/operators/tap"),t("rxjs/observable/of")):i((r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{},r.ng.cdk.a11y=r.ng.cdk.a11y||{}),r.ng.core,r.ng.cdk.coercion,r.Rx.operators,r.ng.cdk.platform,r.ng.common,r.Rx,r.Rx,r.ng.cdk.keycodes,r.Rx.operators,r.Rx.operators,r.Rx.operators,r.Rx.operators,r.Rx.Observable)},{"@angular/cdk/coercion":43,"@angular/cdk/keycodes":45,"@angular/cdk/platform":49,"@angular/common":55,"@angular/core":57,"rxjs/Subject":71,"rxjs/Subscription":74,"rxjs/observable/of":99,"rxjs/operators/debounceTime":120,"rxjs/operators/filter":124,"rxjs/operators/map":128,"rxjs/operators/take":139,"rxjs/operators/tap":142}],41:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r){"use strict";var i=0,o=function(){function t(){this.id="cdk-accordion-"+i++,this._multi=!1}return Object.defineProperty(t.prototype,"multi",{get:function(){return this._multi},set:function(t){this._multi=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.decorators=[{type:e.Directive,args:[{selector:"cdk-accordion, [cdkAccordion]",exportAs:"cdkAccordion"}]}],t.ctorParameters=function(){return[]},t.propDecorators={multi:[{type:e.Input}]},t}(),a=0,s=function(){function t(t,n,r){var i=this;this.accordion=t,this._changeDetectorRef=n,this._expansionDispatcher=r,this.closed=new e.EventEmitter,this.opened=new e.EventEmitter,this.destroyed=new e.EventEmitter,this.id="cdk-accordion-child-"+a++,this._expanded=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=r.listen(function(t,e){i.accordion&&!i.accordion.multi&&i.accordion.id===e&&i.id!==t&&(i.expanded=!1)})}return Object.defineProperty(t.prototype,"expanded",{get:function(){return this._expanded},set:function(t){if(t=r.coerceBooleanProperty(t),this._expanded!==t){if(this._expanded=t,t){this.opened.emit();var e=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,e)}else this.closed.emit();this._changeDetectorRef.markForCheck()}},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.destroyed.emit(),this._removeUniqueSelectionListener()},t.prototype.toggle=function(){this.expanded=!this.expanded},t.prototype.close=function(){this.expanded=!1},t.prototype.open=function(){this.expanded=!0},t.decorators=[{type:e.Directive,args:[{selector:"cdk-accordion-item",exportAs:"cdkAccordionItem"}]}],t.ctorParameters=function(){return[{type:o,decorators:[{type:e.Optional}]},{type:e.ChangeDetectorRef},{type:n.UniqueSelectionDispatcher}]},t.propDecorators={closed:[{type:e.Output}],opened:[{type:e.Output}],destroyed:[{type:e.Output}],expanded:[{type:e.Input}]},t}(),c=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{exports:[o,s],declarations:[o,s],providers:[n.UNIQUE_SELECTION_DISPATCHER_PROVIDER]}]}],t.ctorParameters=function(){return[]},t}();t.CdkAccordionItem=s,t.CdkAccordion=o,t.CdkAccordionModule=c,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("@angular/cdk/collections"),t("@angular/cdk/coercion")):i((r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{},r.ng.cdk.accordion=r.ng.cdk.accordion||{}),r.ng.core,r.ng.cdk.collections,r.ng.cdk.coercion)},{"@angular/cdk/coercion":43,"@angular/cdk/collections":44,"@angular/core":57}],42:[function(t,e,n){var r,i;r=this,i=function(t,e,n){"use strict";var r=new e.InjectionToken("cdk-dir-doc"),i=function(){function t(t){if(this.value="ltr",this.change=new e.EventEmitter,t){var n=t.body?t.body.dir:null,r=t.documentElement?t.documentElement.dir:null;this.value=n||r||"ltr"}}return t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[r]}]}]},t}(),o=function(){function t(){this._dir="ltr",this._isInitialized=!1,this.change=new e.EventEmitter}return Object.defineProperty(t.prototype,"dir",{get:function(){return this._dir},set:function(t){var e=this._dir;this._dir=t,e!==this._dir&&this._isInitialized&&this.change.emit(this._dir)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.dir},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._isInitialized=!0},t.prototype.ngOnDestroy=function(){this.change.complete()},t.decorators=[{type:e.Directive,args:[{selector:"[dir]",providers:[{provide:i,useExisting:t}],host:{"[dir]":"dir"},exportAs:"dir"}]}],t.ctorParameters=function(){return[]},t.propDecorators={change:[{type:e.Output,args:["dirChange"]}],dir:[{type:e.Input,args:["dir"]}]},t}(),a=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{exports:[o],declarations:[o],providers:[{provide:r,useExisting:n.DOCUMENT},i]}]}],t.ctorParameters=function(){return[]},t}();t.Directionality=i,t.DIR_DOCUMENT=r,t.Dir=o,t.BidiModule=a,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("@angular/common")):i((r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{},r.ng.cdk.bidi=r.ng.cdk.bidi||{}),r.ng.core,r.ng.common)},{"@angular/common":55,"@angular/core":57}],43:[function(t,e,n){var r;r=this,function(t){"use strict";t.coerceBooleanProperty=function(t){return null!=t&&""+t!="false"},t.coerceNumberProperty=function(t,e){return void 0===e&&(e=0),isNaN(parseFloat(t))||isNaN(Number(t))?e:Number(t)},t.coerceArray=function(t){return Array.isArray(t)?t:[t]},Object.defineProperty(t,"__esModule",{value:!0})}("object"==typeof n&&void 0!==e?n:(r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{},r.ng.cdk.coercion=r.ng.cdk.coercion||{}))},{}],44:[function(t,e,n){var r,i;r=this,i=function(t,e,n){"use strict";var r=function(){return function(){}}(),i=function(){function t(t,n,r){void 0===t&&(t=!1),void 0===r&&(r=!0);var i=this;this._isMulti=t,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.onChange=this._emitChanges?new e.Subject:null,n&&(t?n.forEach(function(t){return i._markSelected(t)}):this._markSelected(n[0]),this._selectedToEmit.length=0)}return Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected},enumerable:!0,configurable:!0}),t.prototype.select=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._verifyValueAssignment(e),e.forEach(function(e){return t._markSelected(e)}),this._emitChangeEvent()},t.prototype.deselect=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._verifyValueAssignment(e),e.forEach(function(e){return t._unmarkSelected(e)}),this._emitChangeEvent()},t.prototype.toggle=function(t){this.isSelected(t)?this.deselect(t):this.select(t)},t.prototype.clear=function(){this._unmarkAll(),this._emitChangeEvent()},t.prototype.isSelected=function(t){return this._selection.has(t)},t.prototype.isEmpty=function(){return 0===this._selection.size},t.prototype.hasValue=function(){return!this.isEmpty()},t.prototype.sort=function(t){this._isMulti&&this._selected&&this._selected.sort(t)},t.prototype._emitChangeEvent=function(){if(this._selected=null,this._selectedToEmit.length||this._deselectedToEmit.length){var t=new o(this._selectedToEmit,this._deselectedToEmit);this.onChange&&this.onChange.next(t),this._deselectedToEmit=[],this._selectedToEmit=[]}},t.prototype._markSelected=function(t){this.isSelected(t)||(this._isMulti||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))},t.prototype._unmarkSelected=function(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))},t.prototype._unmarkAll=function(){var t=this;this.isEmpty()||this._selection.forEach(function(e){return t._unmarkSelected(e)})},t.prototype._verifyValueAssignment=function(t){if(t.length>1&&!this._isMulti)throw a()},t}(),o=function(){return function(t,e){this.added=t,this.removed=e}}();function a(){return Error("Cannot pass multiple values into SelectionModel with single-value mode.")}var s=function(){function t(){this._listeners=[]}return t.prototype.notify=function(t,e){for(var n=0,r=this._listeners;n<r.length;n++){(0,r[n])(t,e)}},t.prototype.listen=function(t){var e=this;return this._listeners.push(t),function(){e._listeners=e._listeners.filter(function(e){return t!==e})}},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[]},t}();function c(t){return t||new s}var l={provide:s,deps:[[new n.Optional,new n.SkipSelf,s]],useFactory:c};t.UniqueSelectionDispatcher=s,t.UNIQUE_SELECTION_DISPATCHER_PROVIDER=l,t.DataSource=r,t.SelectionModel=i,t.SelectionChange=o,t.getMultipleValuesInSingleSelectionError=a,t.ɵa=c,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("rxjs/Subject"),t("@angular/core")):i((r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{},r.ng.cdk.collections=r.ng.cdk.collections||{}),r.Rx,r.ng.core)},{"@angular/core":57,"rxjs/Subject":71}],45:[function(t,e,n){var r;r=this,function(t){"use strict";t.UP_ARROW=38,t.DOWN_ARROW=40,t.RIGHT_ARROW=39,t.LEFT_ARROW=37,t.PAGE_UP=33,t.PAGE_DOWN=34,t.HOME=36,t.END=35,t.ENTER=13,t.SPACE=32,t.TAB=9,t.ESCAPE=27,t.BACKSPACE=8,t.DELETE=46,t.A=65,t.Z=90,t.ZERO=48,t.NINE=91,t.COMMA=188,Object.defineProperty(t,"__esModule",{value:!0})}("object"==typeof n&&void 0!==e?n:(r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{},r.ng.cdk.keycodes=r.ng.cdk.keycodes||{}))},{}],46:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i,o,a,s,c,l){"use strict";var u=new Map,p=function(){function t(t){this.platform=t,this._matchMedia=this.platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):h}return t.prototype.matchMedia=function(t){return this.platform.WEBKIT&&function(t){if(!u.has(t))try{var e=document.createElement("style");if(e.setAttribute("type","text/css"),!e.sheet){var n="@media "+t+" {.fx-query-test{ }}";e.appendChild(document.createTextNode(n))}document.getElementsByTagName("head")[0].appendChild(e),u.set(t,e)}catch(t){console.error(t)}}(t),this._matchMedia(t)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:n.Platform}]},t}();function h(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var d=function(){function t(t,e){this.mediaMatcher=t,this.zone=e,this._queries=new Map,this._destroySubject=new r.Subject}return t.prototype.ngOnDestroy=function(){this._destroySubject.next(),this._destroySubject.complete()},t.prototype.isMatched=function(t){var e=this;return s.coerceArray(t).some(function(t){return e._registerQuery(t).mql.matches})},t.prototype.observe=function(t){var e=this,n=s.coerceArray(t).map(function(t){return e._registerQuery(t).observable});return c.combineLatest(n,function(t,e){return{matches:!!(t&&t.matches||e&&e.matches)}})},t.prototype._registerQuery=function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var n=this.mediaMatcher.matchMedia(t),r={observable:l.fromEventPattern(function(t){n.addListener(function(n){return e.zone.run(function(){return t(n)})})},function(t){n.removeListener(function(n){return e.zone.run(function(){return t(n)})})}).pipe(a.takeUntil(this._destroySubject),o.startWith(n),i.map(function(t){return{matches:t.matches}})),mql:n};return this._queries.set(t,r),r},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:p},{type:e.NgZone}]},t}(),f=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{providers:[d,p],imports:[n.PlatformModule]}]}],t.ctorParameters=function(){return[]},t}();t.LayoutModule=f,t.BreakpointObserver=d,t.Breakpoints={Handset:"(max-width: 599px) and (orientation: portrait), (max-width: 959px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"},t.MediaMatcher=p,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("@angular/cdk/platform"),t("rxjs/Subject"),t("rxjs/operators/map"),t("rxjs/operators/startWith"),t("rxjs/operators/takeUntil"),t("@angular/cdk/coercion"),t("rxjs/observable/combineLatest"),t("rxjs/observable/fromEventPattern")):i((r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{},r.ng.cdk.layout=r.ng.cdk.layout||{}),r.ng.core,r.ng.cdk.platform,r.Rx,r.Rx.operators,r.Rx.operators,r.Rx.operators,r.ng.cdk.coercion,r.Rx.Observable,r.Rx.Observable)},{"@angular/cdk/coercion":43,"@angular/cdk/platform":49,"@angular/core":57,"rxjs/Subject":71,"rxjs/observable/combineLatest":89,"rxjs/observable/fromEventPattern":96,"rxjs/operators/map":128,"rxjs/operators/startWith":137,"rxjs/operators/takeUntil":141}],47:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r){"use strict";var i=function(){function t(){}return t.prototype.create=function(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}(),o=function(){function t(t,r,i){this._mutationObserverFactory=t,this._elementRef=r,this._ngZone=i,this.event=new e.EventEmitter,this._debouncer=new n.Subject}return t.prototype.ngAfterContentInit=function(){var t=this;this.debounce>0?this._ngZone.runOutsideAngular(function(){t._debouncer.pipe(r.debounceTime(t.debounce)).subscribe(function(e){return t.event.emit(e)})}):this._debouncer.subscribe(function(e){return t.event.emit(e)}),this._observer=this._ngZone.runOutsideAngular(function(){return t._mutationObserverFactory.create(function(e){t._debouncer.next(e)})}),this._observer&&this._observer.observe(this._elementRef.nativeElement,{characterData:!0,childList:!0,subtree:!0})},t.prototype.ngOnDestroy=function(){this._observer&&this._observer.disconnect(),this._debouncer.complete()},t.decorators=[{type:e.Directive,args:[{selector:"[cdkObserveContent]",exportAs:"cdkObserveContent"}]}],t.ctorParameters=function(){return[{type:i},{type:e.ElementRef},{type:e.NgZone}]},t.propDecorators={event:[{type:e.Output,args:["cdkObserveContent"]}],debounce:[{type:e.Input}]},t}(),a=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{exports:[o],declarations:[o],providers:[i]}]}],t.ctorParameters=function(){return[]},t}();t.ObserveContent=o,t.MutationObserverFactory=i,t.CdkObserveContent=o,t.ObserversModule=a,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("rxjs/Subject"),t("rxjs/operators/debounceTime")):i((r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{},r.ng.cdk.observers=r.ng.cdk.observers||{}),r.ng.core,r.Rx,r.Rx.operators)},{"@angular/core":57,"rxjs/Subject":71,"rxjs/operators/debounceTime":120}],48:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i,o,a,s,c,l,u,p,h){"use strict";var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};var f=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},m=function(){function t(){}return t.prototype.enable=function(){},t.prototype.disable=function(){},t.prototype.attach=function(){},t}(),g=function(){return function(t){var e=this;this.scrollStrategy=new m,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.direction="ltr",t&&Object.keys(t).forEach(function(n){return e[n]=t[n]})}}(),y=function(){return function(t,e,n,r){this.offsetX=n,this.offsetY=r,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}(),v=function(){return function(){}}(),b=function(){function t(t,e){this.connectionPair=t,this.scrollableViewProperties=e}return t.ctorParameters=function(){return[{type:y},{type:v,decorators:[{type:e.Optional}]}]},t}();function _(){return Error("Scroll strategy has already been attached.")}var w=function(){function t(t,e,n,r){var i=this;this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=function(){i.disable(),i._overlayRef.hasAttached()&&i._ngZone.run(function(){return i._overlayRef.detach()})}}return t.prototype.attach=function(t){if(this._overlayRef)throw _();this._overlayRef=t},t.prototype.enable=function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t}(),C=function(){function t(t){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1}return t.prototype.attach=function(){},t.prototype.enable=function(){if(this._canBeEnabled()){var t=document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=-this._previousScrollPosition.left+"px",t.style.top=-this._previousScrollPosition.top+"px",t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}},t.prototype.disable=function(){if(this._isEnabled){var t=document.documentElement,e=document.body,n=t.style.scrollBehavior||"",r=e.style.scrollBehavior||"";this._isEnabled=!1,t.style.left=this._previousHTMLStyles.left,t.style.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),t.style.scrollBehavior=e.style.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),t.style.scrollBehavior=n,e.style.scrollBehavior=r}},t.prototype._canBeEnabled=function(){if(document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width},t}();function x(t,e){return e.some(function(e){var n=t.bottom<e.top,r=t.top>e.bottom,i=t.right<e.left,o=t.left>e.right;return n||r||i||o})}function E(t,e){return e.some(function(e){var n=t.top<e.top,r=t.bottom>e.bottom,i=t.left<e.left,o=t.right>e.right;return n||r||i||o})}var S=function(){function t(t,e,n,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=r,this._scrollSubscription=null}return t.prototype.attach=function(t){if(this._overlayRef)throw _();this._overlayRef=t},t.prototype.enable=function(){var t=this;if(!this._scrollSubscription){var e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),r=n.width,i=n.height;x(e,[{width:r,height:i,bottom:i,right:r,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}})}},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t}(),k=function(){function t(t,e,n){var r=this;this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=function(){return new m},this.close=function(t){return new w(r._scrollDispatcher,r._ngZone,r._viewportRuler,t)},this.block=function(){return new C(r._viewportRuler)},this.reposition=function(t){return new S(r._scrollDispatcher,r._viewportRuler,r._ngZone,t)}}return t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:n.ScrollDispatcher},{type:n.ViewportRuler},{type:e.NgZone}]},t}(),O=function(){function t(t,e,n,r,i){this._portalOutlet=t,this._pane=e,this._config=n,this._ngZone=r,this._keyboardDispatcher=i,this._backdropElement=null,this._backdropClick=new a.Subject,this._attachments=new a.Subject,this._detachments=new a.Subject,this._keydownEvents=new a.Subject,n.scrollStrategy&&n.scrollStrategy.attach(this)}return Object.defineProperty(t.prototype,"overlayElement",{get:function(){return this._pane},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){var e=this,n=this._portalOutlet.attach(t);return this._config.positionStrategy&&this._config.positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._config.scrollStrategy&&this._config.scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(o.take(1)).subscribe(function(){e.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&(Array.isArray(this._config.panelClass)?this._config.panelClass.forEach(function(t){return e._pane.classList.add(t)}):this._pane.classList.add(this._config.panelClass)),this._attachments.next(),this._keyboardDispatcher.add(this),n},t.prototype.detach=function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._config.positionStrategy&&this._config.positionStrategy.detach&&this._config.positionStrategy.detach(),this._config.scrollStrategy&&this._config.scrollStrategy.disable();var t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),t}},t.prototype.dispose=function(){var t=this.hasAttached();this._config.positionStrategy&&this._config.positionStrategy.dispose(),this._config.scrollStrategy&&this._config.scrollStrategy.disable(),this.detachBackdrop(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),t&&this._detachments.next(),this._detachments.complete()},t.prototype.hasAttached=function(){return this._portalOutlet.hasAttached()},t.prototype.backdropClick=function(){return this._backdropClick.asObservable()},t.prototype.attachments=function(){return this._attachments.asObservable()},t.prototype.detachments=function(){return this._detachments.asObservable()},t.prototype.keydownEvents=function(){return this._keydownEvents.asObservable()},t.prototype.getConfig=function(){return this._config},t.prototype.updatePosition=function(){this._config.positionStrategy&&this._config.positionStrategy.apply()},t.prototype.updateSize=function(t){this._config=f({},this._config,t),this._updateElementSize()},t.prototype.setDirection=function(t){this._config=f({},this._config,{direction:t}),this._updateElementDirection()},t.prototype._updateElementDirection=function(){this._pane.setAttribute("dir",this._config.direction)},t.prototype._updateElementSize=function(){(this._config.width||0===this._config.width)&&(this._pane.style.width=P(this._config.width)),(this._config.height||0===this._config.height)&&(this._pane.style.height=P(this._config.height)),(this._config.minWidth||0===this._config.minWidth)&&(this._pane.style.minWidth=P(this._config.minWidth)),(this._config.minHeight||0===this._config.minHeight)&&(this._pane.style.minHeight=P(this._config.minHeight)),(this._config.maxWidth||0===this._config.maxWidth)&&(this._pane.style.maxWidth=P(this._config.maxWidth)),(this._config.maxHeight||0===this._config.maxHeight)&&(this._pane.style.maxHeight=P(this._config.maxHeight))},t.prototype._togglePointerEvents=function(t){this._pane.style.pointerEvents=t?"auto":"none"},t.prototype._attachBackdrop=function(){var t=this;this._backdropElement=document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._backdropElement.classList.add(this._config.backdropClass),this._pane.parentElement.insertBefore(this._backdropElement,this._pane),this._backdropElement.addEventListener("click",function(){return t._backdropClick.next(null)}),this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){t._backdropElement&&t._backdropElement.classList.add("cdk-overlay-backdrop-showing")})})},t.prototype._updateStackingOrder=function(){this._pane.nextSibling&&this._pane.parentNode.appendChild(this._pane)},t.prototype.detachBackdrop=function(){var t=this,e=this._backdropElement;if(e){var n=function(){e&&e.parentNode&&e.parentNode.removeChild(e),t._backdropElement==e&&(t._backdropElement=null)};e.classList.remove("cdk-overlay-backdrop-showing"),this._config.backdropClass&&e.classList.remove(this._config.backdropClass),e.addEventListener("transitionend",n),e.style.pointerEvents="none",this._ngZone.runOutsideAngular(function(){setTimeout(n,500)})}},t}();function P(t){return"string"==typeof t?t:t+"px"}var A=function(){function t(t,e,n,r,i){this._connectedTo=n,this._viewportRuler=r,this._document=i,this._dir="ltr",this._offsetX=0,this._offsetY=0,this.scrollables=[],this._resizeSubscription=s.Subscription.EMPTY,this._preferredPositions=[],this._applied=!1,this._positionLocked=!1,this._onPositionChange=new a.Subject,this._origin=this._connectedTo.nativeElement,this.withFallbackPosition(t,e)}return Object.defineProperty(t.prototype,"_isRtl",{get:function(){return"rtl"===this._dir},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onPositionChange",{get:function(){return this._onPositionChange.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"positions",{get:function(){return this._preferredPositions},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){var e=this;this._overlayRef=t,this._pane=t.overlayElement,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){return e.apply()})},t.prototype.dispose=function(){this._applied=!1,this._resizeSubscription.unsubscribe()},t.prototype.detach=function(){this._applied=!1,this._resizeSubscription.unsubscribe()},t.prototype.apply=function(){if(this._applied&&this._positionLocked&&this._lastConnectedPosition)this.recalculateLastPosition();else{this._applied=!0;for(var t,e,n=this._pane,r=this._origin.getBoundingClientRect(),i=n.getBoundingClientRect(),o=this._viewportRuler.getViewportSize(),a=0,s=this._preferredPositions;a<s.length;a++){var c=s[a],l=this._getOriginConnectionPoint(r,c),u=this._getOverlayPoint(l,i,o,c);if(u.fitsInViewport)return this._setElementPosition(n,i,u,c),void(this._lastConnectedPosition=c);(!t||t.visibleArea<u.visibleArea)&&(t=u,e=c)}this._setElementPosition(n,i,t,e)}},t.prototype.recalculateLastPosition=function(){if(this._lastConnectedPosition){var t=this._origin.getBoundingClientRect(),e=this._pane.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),r=this._lastConnectedPosition||this._preferredPositions[0],i=this._getOriginConnectionPoint(t,r),o=this._getOverlayPoint(i,e,n,r);this._setElementPosition(this._pane,e,o,r)}},t.prototype.withScrollableContainers=function(t){this.scrollables=t},t.prototype.withFallbackPosition=function(t,e,n,r){var i=new y(t,e,n,r);return this._preferredPositions.push(i),this},t.prototype.withDirection=function(t){return this._dir=t,this},t.prototype.withOffsetX=function(t){return this._offsetX=t,this},t.prototype.withOffsetY=function(t){return this._offsetY=t,this},t.prototype.withLockedPosition=function(t){return this._positionLocked=t,this},t.prototype.withPositions=function(t){return this._preferredPositions=t.slice(),this},t.prototype._getStartX=function(t){return this._isRtl?t.right:t.left},t.prototype._getEndX=function(t){return this._isRtl?t.left:t.right},t.prototype._getOriginConnectionPoint=function(t,e){var n=this._getStartX(t),r=this._getEndX(t);return{x:"center"==e.originX?n+t.width/2:"start"==e.originX?n:r,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}},t.prototype._getOverlayPoint=function(t,e,n,r){var i,o;i="center"==r.overlayX?-e.width/2:"start"===r.overlayX?this._isRtl?-e.width:0:this._isRtl?0:-e.width,o="center"==r.overlayY?-e.height/2:"top"==r.overlayY?0:-e.height;var a=void 0===r.offsetX?this._offsetX:r.offsetX,s=void 0===r.offsetY?this._offsetY:r.offsetY,c=t.x+i+a,l=t.y+o+s,u=0-c,p=c+e.width-n.width,h=0-l,d=l+e.height-n.height,f=this._subtractOverflows(e.width,u,p)*this._subtractOverflows(e.height,h,d);return{x:c,y:l,fitsInViewport:e.width*e.height===f,visibleArea:f}},t.prototype._getScrollVisibility=function(t){var e=this._origin.getBoundingClientRect(),n=t.getBoundingClientRect(),r=this.scrollables.map(function(t){return t.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:E(e,r),isOriginOutsideView:x(e,r),isOverlayClipped:E(n,r),isOverlayOutsideView:x(n,r)}},t.prototype._setElementPosition=function(t,e,n,r){var i,o="bottom"===r.overlayY?"bottom":"top",a="top"===o?n.y:this._document.documentElement.clientHeight-(n.y+e.height),s="left"===(i="rtl"===this._dir?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left")?n.x:this._document.documentElement.clientWidth-(n.x+e.width);["top","bottom","left","right"].forEach(function(e){return t.style[e]=null}),t.style[o]=a+"px",t.style[i]=s+"px";var c=this._getScrollVisibility(t),l=new b(r,c);this._onPositionChange.next(l)},t.prototype._subtractOverflows=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(t,e){return t-Math.max(e,0)},t)},t}(),T=function(){function t(t){this._document=t,this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height="",this._wrapper=null}return t.prototype.attach=function(t){this._overlayRef=t},t.prototype.top=function(t){return void 0===t&&(t=""),this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this},t.prototype.left=function(t){return void 0===t&&(t=""),this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this},t.prototype.bottom=function(t){return void 0===t&&(t=""),this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this},t.prototype.right=function(t){return void 0===t&&(t=""),this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this},t.prototype.width=function(t){return void 0===t&&(t=""),this._width=t,"100%"===t&&this.left("0px"),this},t.prototype.height=function(t){return void 0===t&&(t=""),this._height=t,"100%"===t&&this.top("0px"),this},t.prototype.centerHorizontally=function(t){return void 0===t&&(t=""),this.left(t),this._justifyContent="center",this},t.prototype.centerVertically=function(t){return void 0===t&&(t=""),this.top(t),this._alignItems="center",this},t.prototype.apply=function(){if(this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement;!this._wrapper&&t.parentNode&&(this._wrapper=this._document.createElement("div"),this._wrapper.classList.add("cdk-global-overlay-wrapper"),t.parentNode.insertBefore(this._wrapper,t),this._wrapper.appendChild(t));var e=t.style,n=t.parentNode.style;e.position=this._cssPosition,e.marginTop=this._topOffset,e.marginLeft=this._leftOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,e.width=this._width,e.height=this._height,n.justifyContent=this._justifyContent,n.alignItems=this._alignItems}},t.prototype.dispose=function(){this._wrapper&&this._wrapper.parentNode&&(this._wrapper.parentNode.removeChild(this._wrapper),this._wrapper=null)},t}(),M=function(){function t(t,e){this._viewportRuler=t,this._document=e}return t.prototype.global=function(){return new T(this._document)},t.prototype.connectedTo=function(t,e,n){return new A(e,n,t,this._viewportRuler,this._document)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:n.ViewportRuler},{type:void 0,decorators:[{type:e.Inject,args:[c.DOCUMENT]}]}]},t}(),I=function(){function t(t){this._document=t,this._attachedOverlays=[]}return t.prototype.ngOnDestroy=function(){this._unsubscribeFromKeydownEvents()},t.prototype.add=function(t){this._keydownEventSubscription||this._subscribeToKeydownEvents(),this._attachedOverlays.push(t)},t.prototype.remove=function(t){var e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._unsubscribeFromKeydownEvents()},t.prototype._subscribeToKeydownEvents=function(){var t=this,e=u.fromEvent(this._document.body,"keydown");this._keydownEventSubscription=e.pipe(l.filter(function(){return!!t._attachedOverlays.length})).subscribe(function(e){t._selectOverlayFromEvent(e)._keydownEvents.next(e)})},t.prototype._unsubscribeFromKeydownEvents=function(){this._keydownEventSubscription&&(this._keydownEventSubscription.unsubscribe(),this._keydownEventSubscription=null)},t.prototype._selectOverlayFromEvent=function(t){return this._attachedOverlays.find(function(e){return e.overlayElement===t.target||e.overlayElement.contains(t.target)})||this._attachedOverlays[this._attachedOverlays.length-1]},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[c.DOCUMENT]}]}]},t}();function R(t,e){return t||new I(e)}var D={provide:I,deps:[[new e.Optional,new e.SkipSelf,I],c.DOCUMENT],useFactory:R},N=function(){function t(t){this._document=t}return t.prototype.ngOnDestroy=function(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)},t.prototype.getContainerElement=function(){return this._containerElement||this._createContainer(),this._containerElement},t.prototype._createContainer=function(){var t=this._document.createElement("div");t.classList.add("cdk-overlay-container"),this._document.body.appendChild(t),this._containerElement=t},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[c.DOCUMENT]}]}]},t}();function L(t,e){return t||new N(e)}var j={provide:N,deps:[[new e.Optional,new e.SkipSelf,N],c.DOCUMENT],useFactory:L},F=0,V=new g,B=function(){function t(t,e,n,r,i,o,a,s,c){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=r,this._keyboardDispatcher=i,this._appRef=o,this._injector=a,this._ngZone=s,this._document=c}return t.prototype.create=function(t){void 0===t&&(t=V);var e=this._createPaneElement(),n=this._createPortalOutlet(e);return new O(n,e,t,this._ngZone,this._keyboardDispatcher)},t.prototype.position=function(){return this._positionBuilder},t.prototype._createPaneElement=function(){var t=this._document.createElement("div");return t.id="cdk-overlay-"+F++,t.classList.add("cdk-overlay-pane"),this._overlayContainer.getContainerElement().appendChild(t),t},t.prototype._createPortalOutlet=function(t){return new i.DomPortalOutlet(t,this._componentFactoryResolver,this._appRef,this._injector)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:k},{type:N},{type:e.ComponentFactoryResolver},{type:M},{type:I},{type:e.ApplicationRef},{type:e.Injector},{type:e.NgZone},{type:void 0,decorators:[{type:e.Inject,args:[c.DOCUMENT]}]}]},t}(),U=[new y({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new y({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new y({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new y({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"})],H=new e.InjectionToken("cdk-connected-overlay-scroll-strategy");function z(t){return function(){return t.scrollStrategies.reposition()}}var W={provide:H,deps:[B],useFactory:z},G=function(){function t(t){this.elementRef=t}return t.decorators=[{type:e.Directive,args:[{selector:"[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]",exportAs:"cdkOverlayOrigin"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t}(),q=function(){function t(t,n,r,o,a){this._overlay=t,this._scrollStrategy=o,this._dir=a,this._hasBackdrop=!1,this._backdropSubscription=s.Subscription.EMPTY,this._positionSubscription=s.Subscription.EMPTY,this._offsetX=0,this._offsetY=0,this.scrollStrategy=this._scrollStrategy(),this.open=!1,this.backdropClick=new e.EventEmitter,this.positionChange=new e.EventEmitter,this.attach=new e.EventEmitter,this.detach=new e.EventEmitter,this._templatePortal=new i.TemplatePortal(n,r)}return Object.defineProperty(t.prototype,"offsetX",{get:function(){return this._offsetX},set:function(t){this._offsetX=t,this._position&&this._position.withOffsetX(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offsetY",{get:function(){return this._offsetY},set:function(t){this._offsetY=t,this._position&&this._position.withOffsetY(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasBackdrop",{get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=p.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_deprecatedOrigin",{get:function(){return this.origin},set:function(t){this.origin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_deprecatedPositions",{get:function(){return this.positions},set:function(t){this.positions=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_deprecatedOffsetX",{get:function(){return this.offsetX},set:function(t){this.offsetX=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_deprecatedOffsetY",{get:function(){return this.offsetY},set:function(t){this.offsetY=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_deprecatedWidth",{get:function(){return this.width},set:function(t){this.width=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_deprecatedHeight",{get:function(){return this.height},set:function(t){this.height=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_deprecatedMinWidth",{get:function(){return this.minWidth},set:function(t){this.minWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_deprecatedMinHeight",{get:function(){return this.minHeight},set:function(t){this.minHeight=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_deprecatedBackdropClass",{get:function(){return this.backdropClass},set:function(t){this.backdropClass=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_deprecatedScrollStrategy",{get:function(){return this.scrollStrategy},set:function(t){this.scrollStrategy=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_deprecatedOpen",{get:function(){return this.open},set:function(t){this.open=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_deprecatedHasBackdrop",{get:function(){return this.hasBackdrop},set:function(t){this.hasBackdrop=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overlayRef",{get:function(){return this._overlayRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this._dir?this._dir.value:"ltr"},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._destroyOverlay()},t.prototype.ngOnChanges=function(t){(t.open||t._deprecatedOpen)&&(this.open?this._attachOverlay():this._detachOverlay())},t.prototype._createOverlay=function(){this.positions&&this.positions.length||(this.positions=U),this._overlayRef=this._overlay.create(this._buildConfig())},t.prototype._buildConfig=function(){var t=this._position=this._createPositionStrategy(),e=new g({positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),e},t.prototype._createPositionStrategy=function(){var t=this.positions[0],e={originX:t.originX,originY:t.originY},n={overlayX:t.overlayX,overlayY:t.overlayY},r=this._overlay.position().connectedTo(this.origin.elementRef,e,n).withOffsetX(this.offsetX).withOffsetY(this.offsetY);return this._handlePositionChanges(r),r},t.prototype._handlePositionChanges=function(t){for(var e=this,n=1;n<this.positions.length;n++)t.withFallbackPosition({originX:this.positions[n].originX,originY:this.positions[n].originY},{overlayX:this.positions[n].overlayX,overlayY:this.positions[n].overlayY});this._positionSubscription=t.onPositionChange.subscribe(function(t){return e.positionChange.emit(t)})},t.prototype._attachOverlay=function(){var t=this;this._overlayRef||(this._createOverlay(),this._overlayRef.keydownEvents().subscribe(function(e){e.keyCode===h.ESCAPE&&t._detachOverlay()})),this._position.withDirection(this.dir),this._overlayRef.setDirection(this.dir),this._overlayRef.hasAttached()||(this._overlayRef.attach(this._templatePortal),this.attach.emit()),this.hasBackdrop&&(this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(){t.backdropClick.emit()}))},t.prototype._detachOverlay=function(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription.unsubscribe()},t.prototype._destroyOverlay=function(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()},t.decorators=[{type:e.Directive,args:[{selector:"[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]",exportAs:"cdkConnectedOverlay"}]}],t.ctorParameters=function(){return[{type:B},{type:e.TemplateRef},{type:e.ViewContainerRef},{type:void 0,decorators:[{type:e.Inject,args:[H]}]},{type:r.Directionality,decorators:[{type:e.Optional}]}]},t.propDecorators={origin:[{type:e.Input,args:["cdkConnectedOverlayOrigin"]}],positions:[{type:e.Input,args:["cdkConnectedOverlayPositions"]}],offsetX:[{type:e.Input,args:["cdkConnectedOverlayOffsetX"]}],offsetY:[{type:e.Input,args:["cdkConnectedOverlayOffsetY"]}],width:[{type:e.Input,args:["cdkConnectedOverlayWidth"]}],height:[{type:e.Input,args:["cdkConnectedOverlayHeight"]}],minWidth:[{type:e.Input,args:["cdkConnectedOverlayMinWidth"]}],minHeight:[{type:e.Input,args:["cdkConnectedOverlayMinHeight"]}],backdropClass:[{type:e.Input,args:["cdkConnectedOverlayBackdropClass"]}],scrollStrategy:[{type:e.Input,args:["cdkConnectedOverlayScrollStrategy"]}],open:[{type:e.Input,args:["cdkConnectedOverlayOpen"]}],hasBackdrop:[{type:e.Input,args:["cdkConnectedOverlayHasBackdrop"]}],_deprecatedOrigin:[{type:e.Input,args:["origin"]}],_deprecatedPositions:[{type:e.Input,args:["positions"]}],_deprecatedOffsetX:[{type:e.Input,args:["offsetX"]}],_deprecatedOffsetY:[{type:e.Input,args:["offsetY"]}],_deprecatedWidth:[{type:e.Input,args:["width"]}],_deprecatedHeight:[{type:e.Input,args:["height"]}],_deprecatedMinWidth:[{type:e.Input,args:["minWidth"]}],_deprecatedMinHeight:[{type:e.Input,args:["minHeight"]}],_deprecatedBackdropClass:[{type:e.Input,args:["backdropClass"]}],_deprecatedScrollStrategy:[{type:e.Input,args:["scrollStrategy"]}],_deprecatedOpen:[{type:e.Input,args:["open"]}],_deprecatedHasBackdrop:[{type:e.Input,args:["hasBackdrop"]}],backdropClick:[{type:e.Output}],positionChange:[{type:e.Output}],attach:[{type:e.Output}],detach:[{type:e.Output}]},t}(),Y=[B,M,D,n.VIEWPORT_RULER_PROVIDER,j,W],K=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[r.BidiModule,i.PortalModule,n.ScrollDispatchModule],exports:[q,G,n.ScrollDispatchModule],declarations:[q,G],providers:[Y,k]}]}],t.ctorParameters=function(){return[]},t}(),$=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return function(t,e){function n(){this.constructor=t}d(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(n,t),n.prototype._createContainer=function(){var e=this;t.prototype._createContainer.call(this),this._adjustParentForFullscreenChange(),this._addFullscreenChangeListener(function(){return e._adjustParentForFullscreenChange()})},n.prototype._adjustParentForFullscreenChange=function(){this._containerElement&&(this.getFullscreenElement()||document.body).appendChild(this._containerElement)},n.prototype._addFullscreenChangeListener=function(t){document.fullscreenEnabled?document.addEventListener("fullscreenchange",t):document.webkitFullscreenEnabled?document.addEventListener("webkitfullscreenchange",t):document.mozFullScreenEnabled?document.addEventListener("mozfullscreenchange",t):document.msFullscreenEnabled&&document.addEventListener("MSFullscreenChange",t)},n.prototype.getFullscreenElement=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||null},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[]},n}(N);t.Overlay=B,t.OverlayContainer=N,t.CdkOverlayOrigin=G,t.CdkConnectedOverlay=q,t.FullscreenOverlayContainer=$,t.OverlayRef=O,t.ViewportRuler=n.ViewportRuler,t.OverlayKeyboardDispatcher=I,t.GlobalPositionStrategy=T,t.ConnectedPositionStrategy=A,t.VIEWPORT_RULER_PROVIDER=n.VIEWPORT_RULER_PROVIDER,t.ConnectedOverlayDirective=q,t.OverlayOrigin=G,t.OverlayConfig=g,t.ConnectionPositionPair=y,t.ScrollingVisibility=v,t.ConnectedOverlayPositionChange=b,t.CdkScrollable=n.CdkScrollable,t.ScrollDispatcher=n.ScrollDispatcher,t.ScrollStrategyOptions=k,t.RepositionScrollStrategy=S,t.CloseScrollStrategy=w,t.NoopScrollStrategy=m,t.BlockScrollStrategy=C,t.OVERLAY_PROVIDERS=Y,t.OverlayModule=K,t.ɵg=D,t.ɵf=R,t.ɵb=j,t.ɵa=L,t.ɵc=H,t.ɵe=W,t.ɵd=z,t.ɵh=M,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("@angular/cdk/scrolling"),t("@angular/cdk/bidi"),t("@angular/cdk/portal"),t("rxjs/operators/take"),t("rxjs/Subject"),t("rxjs/Subscription"),t("@angular/common"),t("rxjs/operators/filter"),t("rxjs/observable/fromEvent"),t("@angular/cdk/coercion"),t("@angular/cdk/keycodes")):i((r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{},r.ng.cdk.overlay=r.ng.cdk.overlay||{}),r.ng.core,r.ng.cdk.scrolling,r.ng.cdk.bidi,r.ng.cdk.portal,r.Rx.operators,r.Rx,r.Rx,r.ng.common,r.Rx.operators,r.Rx.Observable,r.ng.cdk.coercion,r.ng.cdk.keycodes)},{"@angular/cdk/bidi":42,"@angular/cdk/coercion":43,"@angular/cdk/keycodes":45,"@angular/cdk/portal":50,"@angular/cdk/scrolling":51,"@angular/common":55,"@angular/core":57,"rxjs/Subject":71,"rxjs/Subscription":74,"rxjs/observable/fromEvent":95,"rxjs/operators/filter":124,"rxjs/operators/take":139}],49:[function(t,e,n){var r,i;r=this,i=function(t,e){"use strict";var n,r,i="undefined"!=typeof Intl&&Intl.v8BreakIterator,o=function(){function t(){this.isBrowser="object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!i)&&!!CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}return t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}();var a=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];var s=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{providers:[o]}]}],t.ctorParameters=function(){return[]},t}();t.Platform=o,t.supportsPassiveEventListeners=function(){if(null==n&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return n=!0}}))}finally{n=n||!1}return n},t.getSupportedInputTypes=function(){if(r)return r;if("object"!=typeof document||!document)return r=new Set(a);var t=document.createElement("input");return r=new Set(a.filter(function(e){return t.setAttribute("type",e),t.type===e}))},t.PlatformModule=s,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core")):i((r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{},r.ng.cdk.platform=r.ng.cdk.platform||{}),r.ng.core)},{"@angular/core":57}],50:[function(t,e,n){var r,i;r=this,i=function(t,e){"use strict";var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function r(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function i(){throw Error("Host already has a portal attached")}var o=function(){function t(){}return t.prototype.attach=function(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&i(),this._attachedHost=t,t.attach(this)},t.prototype.detach=function(){var t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())},Object.defineProperty(t.prototype,"isAttached",{get:function(){return null!=this._attachedHost},enumerable:!0,configurable:!0}),t.prototype.setAttachedHost=function(t){this._attachedHost=t},t}(),a=function(t){function e(e,n,r){var i=t.call(this)||this;return i.component=e,i.viewContainerRef=n,i.injector=r,i}return r(e,t),e}(o),s=function(t){function e(e,n,r){var i=t.call(this)||this;return i.templateRef=e,i.viewContainerRef=n,r&&(i.context=r),i}return r(e,t),Object.defineProperty(e.prototype,"origin",{get:function(){return this.templateRef.elementRef},enumerable:!0,configurable:!0}),e.prototype.attach=function(e,n){return void 0===n&&(n=this.context),this.context=n,t.prototype.attach.call(this,e)},e.prototype.detach=function(){return this.context=void 0,t.prototype.detach.call(this)},e}(o),c=function(){function t(){this._isDisposed=!1}return t.prototype.hasAttached=function(){return!!this._attachedPortal},t.prototype.attach=function(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&i(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof a?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof s?(this._attachedPortal=t,this.attachTemplatePortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()},t.prototype.detach=function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()},t.prototype.dispose=function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0},t.prototype.setDisposeFn=function(t){this._disposeFn=t},t.prototype._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)},t}(),l=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o._hostDomElement=e,o._componentFactoryResolver=n,o._appRef=r,o._defaultInjector=i,o}return r(e,t),e.prototype.attachComponentPortal=function(t){var e,n=this,r=this._componentFactoryResolver.resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(r,t.viewContainerRef.length,t.injector||t.viewContainerRef.parentInjector),this.setDisposeFn(function(){return e.destroy()})):(e=r.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn(function(){n._appRef.detachView(e.hostView),e.destroy()})),this._hostDomElement.appendChild(this._getComponentRootNode(e)),e},e.prototype.attachTemplatePortal=function(t){var e=this,n=t.viewContainerRef,r=n.createEmbeddedView(t.templateRef,t.context);return r.detectChanges(),r.rootNodes.forEach(function(t){return e._hostDomElement.appendChild(t)}),this.setDisposeFn(function(){var t=n.indexOf(r);-1!==t&&n.remove(t)}),r},e.prototype.dispose=function(){t.prototype.dispose.call(this),null!=this._hostDomElement.parentNode&&this._hostDomElement.parentNode.removeChild(this._hostDomElement)},e.prototype._getComponentRootNode=function(t){return t.hostView.rootNodes[0]},e}(c),u=function(t){function n(e,n){return t.call(this,e,n)||this}return r(n,t),n.decorators=[{type:e.Directive,args:[{selector:"[cdk-portal], [cdkPortal], [portal]",exportAs:"cdkPortal"}]}],n.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef}]},n}(s),p=function(t){function n(e,n){var r=t.call(this)||this;return r._componentFactoryResolver=e,r._viewContainerRef=n,r._isInitialized=!1,r}return r(n,t),Object.defineProperty(n.prototype,"_deprecatedPortal",{get:function(){return this.portal},set:function(t){this.portal=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_deprecatedPortalHost",{get:function(){return this.portal},set:function(t){this.portal=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"portal",{get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&t.prototype.detach.call(this),e&&t.prototype.attach.call(this,e),this._attachedPortal=e)},enumerable:!0,configurable:!0}),n.prototype.ngOnInit=function(){this._isInitialized=!0},n.prototype.ngOnDestroy=function(){t.prototype.dispose.call(this),this._attachedPortal=null},n.prototype.attachComponentPortal=function(e){e.setAttachedHost(this);var n=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,r=this._componentFactoryResolver.resolveComponentFactory(e.component),i=n.createComponent(r,n.length,e.injector||n.parentInjector);return t.prototype.setDisposeFn.call(this,function(){return i.destroy()}),this._attachedPortal=e,i},n.prototype.attachTemplatePortal=function(e){var n=this;e.setAttachedHost(this);var r=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return t.prototype.setDisposeFn.call(this,function(){return n._viewContainerRef.clear()}),this._attachedPortal=e,r},n.decorators=[{type:e.Directive,args:[{selector:"[cdkPortalOutlet], [cdkPortalHost], [portalHost]",exportAs:"cdkPortalOutlet, cdkPortalHost",inputs:["portal: cdkPortalOutlet"]}]}],n.ctorParameters=function(){return[{type:e.ComponentFactoryResolver},{type:e.ViewContainerRef}]},n.propDecorators={_deprecatedPortal:[{type:e.Input,args:["portalHost"]}],_deprecatedPortalHost:[{type:e.Input,args:["cdkPortalHost"]}]},n}(c),h=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{exports:[u,p],declarations:[u,p]}]}],t.ctorParameters=function(){return[]},t}(),d=function(){function t(t,e){this._parentInjector=t,this._customTokens=e}return t.prototype.get=function(t,e){var n=this._customTokens.get(t);return void 0!==n?n:this._parentInjector.get(t,e)},t}();t.DomPortalHost=l,t.PortalHostDirective=p,t.TemplatePortalDirective=u,t.BasePortalHost=c,t.Portal=o,t.ComponentPortal=a,t.TemplatePortal=s,t.BasePortalOutlet=c,t.DomPortalOutlet=l,t.CdkPortal=u,t.CdkPortalOutlet=p,t.PortalModule=h,t.PortalInjector=d,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core")):i((r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{},r.ng.cdk.portal=r.ng.cdk.portal||{}),r.ng.core)},{"@angular/core":57}],51:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i,o,a,s,c,l){"use strict";var u=function(){function t(t,e){this._ngZone=t,this._platform=e,this._scrolled=new r.Subject,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}return t.prototype.register=function(t){var e=this,n=t.elementScrolled().subscribe(function(){return e._scrolled.next(t)});this.scrollContainers.set(t,n)},t.prototype.deregister=function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))},t.prototype.scrolled=function(t){var e=this;return void 0===t&&(t=20),this._platform.isBrowser?i.Observable.create(function(n){e._globalSubscription||e._addGlobalListener();var r=t>0?e._scrolled.pipe(s.auditTime(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){r.unsubscribe(),e._scrolledCount--,e._globalSubscription&&!e._scrolledCount&&(e._globalSubscription.unsubscribe(),e._globalSubscription=null)}}):o.of()},t.prototype.ancestorScrolled=function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(c.filter(function(t){return!t||n.indexOf(t)>-1}))},t.prototype.getAncestorScrollContainers=function(t){var e=this,n=[];return this.scrollContainers.forEach(function(r,i){e._scrollableContainsElement(i,t)&&n.push(i)}),n},t.prototype._scrollableContainsElement=function(t,e){var n=e.nativeElement,r=t.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1},t.prototype._addGlobalListener=function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return a.fromEvent(window.document,"scroll").subscribe(function(){return t._scrolled.next()})})},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:e.NgZone},{type:n.Platform}]},t}();function p(t,e,n){return t||new u(e,n)}var h={provide:u,deps:[[new e.Optional,new e.SkipSelf,u],e.NgZone,n.Platform],useFactory:p},d=function(){function t(t,e,n){var i=this;this._elementRef=t,this._scroll=e,this._ngZone=n,this._elementScrolled=new r.Subject,this._scrollListener=function(t){return i._elementScrolled.next(t)}}return t.prototype.ngOnInit=function(){var t=this;this._ngZone.runOutsideAngular(function(){t.getElementRef().nativeElement.addEventListener("scroll",t._scrollListener)}),this._scroll.register(this)},t.prototype.ngOnDestroy=function(){this._scroll.deregister(this),this._scrollListener&&this.getElementRef().nativeElement.removeEventListener("scroll",this._scrollListener)},t.prototype.elementScrolled=function(){return this._elementScrolled.asObservable()},t.prototype.getElementRef=function(){return this._elementRef},t.decorators=[{type:e.Directive,args:[{selector:"[cdk-scrollable], [cdkScrollable]"}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:u},{type:e.NgZone}]},t}(),f=function(){function t(t,e){var n=this;this._change=t.isBrowser?e.runOutsideAngular(function(){return l.merge(a.fromEvent(window,"resize"),a.fromEvent(window,"orientationchange"))}):o.of(),this._invalidateCache=this.change().subscribe(function(){return n._updateViewportSize()})}return t.prototype.ngOnDestroy=function(){this._invalidateCache.unsubscribe()},t.prototype.getViewportSize=function(){return this._viewportSize||this._updateViewportSize(),{width:this._viewportSize.width,height:this._viewportSize.height}},t.prototype.getViewportRect=function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,r=e.height;return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+n,height:r,width:n}},t.prototype.getViewportScrollPosition=function(){var t=document.documentElement.getBoundingClientRect();return{top:-t.top||document.body.scrollTop||window.scrollY||document.documentElement.scrollTop||0,left:-t.left||document.body.scrollLeft||window.scrollX||document.documentElement.scrollLeft||0}},t.prototype.change=function(t){return void 0===t&&(t=20),t>0?this._change.pipe(s.auditTime(t)):this._change},t.prototype._updateViewportSize=function(){this._viewportSize={width:window.innerWidth,height:window.innerHeight}},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:n.Platform},{type:e.NgZone}]},t}();function m(t,e,n){return t||new f(e,n)}var g={provide:f,deps:[[new e.Optional,new e.SkipSelf,f],n.Platform,e.NgZone],useFactory:m},y=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[n.PlatformModule],exports:[d],declarations:[d],providers:[h]}]}],t.ctorParameters=function(){return[]},t}();t.DEFAULT_SCROLL_TIME=20,t.ScrollDispatcher=u,t.SCROLL_DISPATCHER_PROVIDER_FACTORY=p,t.SCROLL_DISPATCHER_PROVIDER=h,t.CdkScrollable=d,t.DEFAULT_RESIZE_TIME=20,t.ViewportRuler=f,t.VIEWPORT_RULER_PROVIDER_FACTORY=m,t.VIEWPORT_RULER_PROVIDER=g,t.ScrollDispatchModule=y,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("@angular/cdk/platform"),t("rxjs/Subject"),t("rxjs/Observable"),t("rxjs/observable/of"),t("rxjs/observable/fromEvent"),t("rxjs/operators/auditTime"),t("rxjs/operators/filter"),t("rxjs/observable/merge")):i((r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{},r.ng.cdk.scrolling=r.ng.cdk.scrolling||{}),r.ng.core,r.ng.cdk.platform,r.Rx,r.Rx,r.Rx.Observable,r.Rx.Observable,r.Rx.operators,r.Rx.operators,r.Rx.Observable)},{"@angular/cdk/platform":49,"@angular/core":57,"rxjs/Observable":67,"rxjs/Subject":71,"rxjs/observable/fromEvent":95,"rxjs/observable/merge":98,"rxjs/observable/of":99,"rxjs/operators/auditTime":115,"rxjs/operators/filter":124}],52:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i,o,a,s){"use strict";var c=function(){function t(t){this.template=t}return t.decorators=[{type:e.Directive,args:[{selector:"[cdkStepLabel]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}(),l=0,u=function(){return function(){}}(),p=function(){function t(t){this._stepper=t,this.interacted=!1,this._editable=!0,this._optional=!1,this._customCompleted=null}return Object.defineProperty(t.prototype,"editable",{get:function(){return this._editable},set:function(t){this._editable=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"optional",{get:function(){return this._optional},set:function(t){this._optional=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completed",{get:function(){return null==this._customCompleted?this._defaultCompleted:this._customCompleted},set:function(t){this._customCompleted=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_defaultCompleted",{get:function(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted},enumerable:!0,configurable:!0}),t.prototype.select=function(){this._stepper.selected=this},t.prototype.ngOnChanges=function(){this._stepper._stateChanged()},t.decorators=[{type:e.Component,args:[{selector:"cdk-step",exportAs:"cdkStep",template:"<ng-template><ng-content></ng-content></ng-template>",encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:h,decorators:[{type:e.Inject,args:[e.forwardRef(function(){return h})]}]}]},t.propDecorators={stepLabel:[{type:e.ContentChild,args:[c]}],content:[{type:e.ViewChild,args:[e.TemplateRef]}],stepControl:[{type:e.Input}],label:[{type:e.Input}],editable:[{type:e.Input}],optional:[{type:e.Input}],completed:[{type:e.Input}]},t}(),h=function(){function t(t,n){this._dir=t,this._changeDetectorRef=n,this._destroyed=new a.Subject,this._linear=!1,this._selectedIndex=0,this.selectionChange=new e.EventEmitter,this._focusIndex=0,this._orientation="horizontal",this._groupId=l++}return Object.defineProperty(t.prototype,"linear",{get:function(){return this._linear},set:function(t){this._linear=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(t){this._steps?this._anyControlsInvalidOrPending(t)||t<this._selectedIndex&&!this._steps.toArray()[t].editable?this._stepHeader.toArray()[t].nativeElement.blur():this._selectedIndex!=t&&(this._emitStepperSelectionEvent(t),this._focusIndex=this._selectedIndex):this._selectedIndex=this._focusIndex=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._steps.toArray()[this.selectedIndex]},set:function(t){this.selectedIndex=this._steps.toArray().indexOf(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},t.prototype.next=function(){this.selectedIndex=Math.min(this._selectedIndex+1,this._steps.length-1)},t.prototype.previous=function(){this.selectedIndex=Math.max(this._selectedIndex-1,0)},t.prototype._getStepLabelId=function(t){return"cdk-step-label-"+this._groupId+"-"+t},t.prototype._getStepContentId=function(t){return"cdk-step-content-"+this._groupId+"-"+t},t.prototype._stateChanged=function(){this._changeDetectorRef.markForCheck()},t.prototype._getAnimationDirection=function(t){var e=t-this._selectedIndex;return e<0?"rtl"===this._layoutDirection()?"next":"previous":e>0?"rtl"===this._layoutDirection()?"previous":"next":"current"},t.prototype._getIndicatorType=function(t){var e=this._steps.toArray()[t];return e.completed&&this._selectedIndex!=t?e.editable?"edit":"done":"number"},t.prototype._emitStepperSelectionEvent=function(t){var e=this._steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:e[t],previouslySelectedStep:e[this._selectedIndex]}),this._selectedIndex=t,this._stateChanged()},t.prototype._onKeydown=function(t){var e=t.keyCode;e===n.RIGHT_ARROW&&("rtl"===this._layoutDirection()?this._focusPreviousStep():this._focusNextStep(),t.preventDefault()),e===n.LEFT_ARROW&&("rtl"===this._layoutDirection()?this._focusNextStep():this._focusPreviousStep(),t.preventDefault()),"vertical"!==this._orientation||e!==n.UP_ARROW&&e!==n.DOWN_ARROW||(e===n.UP_ARROW?this._focusPreviousStep():this._focusNextStep(),t.preventDefault()),e!==n.SPACE&&e!==n.ENTER||(this.selectedIndex=this._focusIndex,t.preventDefault())},t.prototype._focusNextStep=function(){this._focusStep((this._focusIndex+1)%this._steps.length)},t.prototype._focusPreviousStep=function(){this._focusStep((this._focusIndex+this._steps.length-1)%this._steps.length)},t.prototype._focusStep=function(t){this._focusIndex=t,this._stepHeader.toArray()[this._focusIndex].nativeElement.focus()},t.prototype._anyControlsInvalidOrPending=function(t){var e=this._steps.toArray();return e[this._selectedIndex].interacted=!0,!!(this._linear&&t>=0)&&e.slice(0,t).some(function(t){var e=t.stepControl;return e?e.invalid||e.pending:!t.completed})},t.prototype._layoutDirection=function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},t.decorators=[{type:e.Directive,args:[{selector:"[cdkStepper]",exportAs:"cdkStepper"}]}],t.ctorParameters=function(){return[{type:o.Directionality,decorators:[{type:e.Optional}]},{type:e.ChangeDetectorRef}]},t.propDecorators={_steps:[{type:e.ContentChildren,args:[p]}],linear:[{type:e.Input}],selectedIndex:[{type:e.Input}],selected:[{type:e.Input}],selectionChange:[{type:e.Output}]},t}(),d=function(){function t(t){this._stepper=t}return t.decorators=[{type:e.Directive,args:[{selector:"button[cdkStepperNext]",host:{"(click)":"_stepper.next()"}}]}],t.ctorParameters=function(){return[{type:h}]},t}(),f=function(){function t(t){this._stepper=t}return t.decorators=[{type:e.Directive,args:[{selector:"button[cdkStepperPrevious]",host:{"(click)":"_stepper.previous()"}}]}],t.ctorParameters=function(){return[{type:h}]},t}(),m=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[o.BidiModule,s.CommonModule],exports:[p,h,c,d,f],declarations:[p,h,c,d,f]}]}],t.ctorParameters=function(){return[]},t}();t.StepperSelectionEvent=u,t.CdkStep=p,t.CdkStepper=h,t.CdkStepLabel=c,t.CdkStepperNext=d,t.CdkStepperPrevious=f,t.CdkStepperModule=m,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("@angular/cdk/keycodes"),t("@angular/cdk/coercion"),t("@angular/forms"),t("@angular/cdk/bidi"),t("rxjs/Subject"),t("@angular/common")):i((r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{},r.ng.cdk.stepper=r.ng.cdk.stepper||{}),r.ng.core,r.ng.cdk.keycodes,r.ng.cdk.coercion,r.ng.forms,r.ng.cdk.bidi,r.Rx,r.ng.common)},{"@angular/cdk/bidi":42,"@angular/cdk/coercion":43,"@angular/cdk/keycodes":45,"@angular/common":55,"@angular/core":57,"@angular/forms":58,"rxjs/Subject":71}],53:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i,o,a){"use strict";var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function c(t,e){function n(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var l="<ng-container cdkCellOutlet></ng-container>",u=function(){function t(t,e){this.template=t,this._differs=e}return t.prototype.ngOnChanges=function(t){var e=t.columns.currentValue||[];this._columnsDiffer||(this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e))},t.prototype.getColumnsDiff=function(){return this._columnsDiffer.diff(this.columns)},t}(),p=function(t){function n(e,n){return t.call(this,e,n)||this}return c(n,t),n.decorators=[{type:e.Directive,args:[{selector:"[cdkHeaderRowDef]",inputs:["columns: cdkHeaderRowDef"]}]}],n.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.IterableDiffers}]},n}(u),h=function(t){function n(e,n){return t.call(this,e,n)||this}return c(n,t),n.decorators=[{type:e.Directive,args:[{selector:"[cdkRowDef]",inputs:["columns: cdkRowDefColumns","when: cdkRowDefWhen"]}]}],n.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.IterableDiffers}]},n}(u),d=function(){function t(e){this._viewContainer=e,t.mostRecentCellOutlet=this}return t.mostRecentCellOutlet=null,t.decorators=[{type:e.Directive,args:[{selector:"[cdkCellOutlet]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef}]},t}(),f=function(){function t(){}return t.decorators=[{type:e.Component,args:[{selector:"cdk-header-row",template:l,host:{class:"cdk-header-row",role:"row"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],t.ctorParameters=function(){return[]},t}(),m=function(){function t(){}return t.decorators=[{type:e.Component,args:[{selector:"cdk-row",template:l,host:{class:"cdk-row",role:"row"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],t.ctorParameters=function(){return[]},t}(),g=function(){function t(t){this.template=t}return t.decorators=[{type:e.Directive,args:[{selector:"[cdkCellDef]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}(),y=function(){function t(t){this.template=t}return t.decorators=[{type:e.Directive,args:[{selector:"[cdkHeaderCellDef]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}(),v=function(){function t(){}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"))},enumerable:!0,configurable:!0}),t.decorators=[{type:e.Directive,args:[{selector:"[cdkColumnDef]"}]}],t.ctorParameters=function(){return[]},t.propDecorators={name:[{type:e.Input,args:["cdkColumnDef"]}],cell:[{type:e.ContentChild,args:[g]}],headerCell:[{type:e.ContentChild,args:[y]}]},t}(),b=function(){function t(t,e){e.nativeElement.classList.add("cdk-column-"+t.cssClassFriendlyName)}return t.decorators=[{type:e.Directive,args:[{selector:"cdk-header-cell",host:{class:"cdk-header-cell",role:"columnheader"}}]}],t.ctorParameters=function(){return[{type:v},{type:e.ElementRef}]},t}(),_=function(){function t(t,e){e.nativeElement.classList.add("cdk-column-"+t.cssClassFriendlyName)}return t.decorators=[{type:e.Directive,args:[{selector:"cdk-cell",host:{class:"cdk-cell",role:"gridcell"}}]}],t.ctorParameters=function(){return[{type:v},{type:e.ElementRef}]},t}();function w(t){return Error('Could not find column with id "'+t+'".')}var C=function(){function t(t){this.viewContainer=t}return t.decorators=[{type:e.Directive,args:[{selector:"[rowPlaceholder]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef}]},t}(),x=function(){function t(t){this.viewContainer=t}return t.decorators=[{type:e.Directive,args:[{selector:"[headerRowPlaceholder]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef}]},t}(),E="\n  <ng-container headerRowPlaceholder></ng-container>\n  <ng-container rowPlaceholder></ng-container>",S=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}c(e,t)}(e.EmbeddedViewRef),function(){function t(t,e,n,r){this._differs=t,this._changeDetectorRef=e,this._onDestroy=new o.Subject,this._data=[],this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._headerRowDefChanged=!1,this.viewChange=new i.BehaviorSubject({start:0,end:Number.MAX_VALUE}),r||n.nativeElement.setAttribute("role","grid")}return Object.defineProperty(t.prototype,"trackBy",{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)+"."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataSource",{get:function(){return this._dataSource},set:function(t){this._dataSource!==t&&this._switchDataSource(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._dataDiffer=this._differs.find([]).create(this._trackByFn),this._headerRowDef&&(this._headerRowDefChanged=!0)},t.prototype.ngAfterContentChecked=function(){if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDef&&!this._rowDefs.length)throw Error("Missing definitions for header and row, cannot determine which columns should be rendered.");this._renderUpdatedColumns(),this._headerRowDefChanged&&(this._renderHeaderRow(),this._headerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription&&this._observeRenderChanges()},t.prototype.ngOnDestroy=function(){this._rowPlaceholder.viewContainer.clear(),this._headerRowPlaceholder.viewContainer.clear(),this._onDestroy.next(),this._onDestroy.complete(),this.dataSource&&this.dataSource.disconnect(this)},t.prototype.setHeaderRowDef=function(t){this._headerRowDef=t,this._headerRowDefChanged=!0},t.prototype.addColumnDef=function(t){this._customColumnDefs.add(t)},t.prototype.removeColumnDef=function(t){this._customColumnDefs.delete(t)},t.prototype.addRowDef=function(t){this._customRowDefs.add(t)},t.prototype.removeRowDef=function(t){this._customRowDefs.delete(t)},t.prototype._cacheColumnDefs=function(){var t=this;this._columnDefsByName.clear();var e=this._contentColumnDefs?this._contentColumnDefs.toArray():[];this._customColumnDefs.forEach(function(t){return e.push(t)}),e.forEach(function(e){if(t._columnDefsByName.has(e.name))throw n=e.name,Error('Duplicate column definition name provided: "'+n+'".');var n;t._columnDefsByName.set(e.name,e)})},t.prototype._cacheRowDefs=function(){var t=this;this._rowDefs=this._contentRowDefs?this._contentRowDefs.toArray():[],this._customRowDefs.forEach(function(e){return t._rowDefs.push(e)});var e=this._rowDefs.filter(function(t){return!t.when});if(e.length>1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=e[0]},t.prototype._renderUpdatedColumns=function(){var t=this;this._rowDefs.forEach(function(e){e.getColumnsDiff()&&(t._dataDiffer.diff([]),t._rowPlaceholder.viewContainer.clear(),t._renderRowChanges())}),this._headerRowDef&&this._headerRowDef.getColumnsDiff()&&this._renderHeaderRow()},t.prototype._switchDataSource=function(t){this._data=[],this.dataSource&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||this._rowPlaceholder.viewContainer.clear(),this._dataSource=t},t.prototype._observeRenderChanges=function(){var t=this;this._renderChangeSubscription=this.dataSource.connect(this).pipe(r.takeUntil(this._onDestroy)).subscribe(function(e){t._data=e,t._renderRowChanges()})},t.prototype._renderHeaderRow=function(){this._headerRowPlaceholder.viewContainer.length>0&&this._headerRowPlaceholder.viewContainer.clear();var t=this._getHeaderCellTemplatesForRow(this._headerRowDef);t.length&&(this._headerRowPlaceholder.viewContainer.createEmbeddedView(this._headerRowDef.template,{cells:t}),t.forEach(function(t){d.mostRecentCellOutlet&&d.mostRecentCellOutlet._viewContainer.createEmbeddedView(t.template,{})}),this._changeDetectorRef.markForCheck())},t.prototype._renderRowChanges=function(){var t=this,e=this._dataDiffer.diff(this._data);if(e){var n=this._rowPlaceholder.viewContainer;e.forEachOperation(function(e,r,i){if(null==e.previousIndex)t._insertRow(e.item,i);else if(null==i)n.remove(r);else{var o=n.get(r);n.move(o,i)}}),this._updateRowIndexContext(),e.forEachIdentityChange(function(t){n.get(t.currentIndex).context.$implicit=t.item})}},t.prototype._getRowDef=function(t,e){if(1==this._rowDefs.length)return this._rowDefs[0];var n=this._rowDefs.find(function(n){return n.when&&n.when(e,t)})||this._defaultRowDef;if(!n)throw Error("Could not find a matching row definition for the provided row data.");return n},t.prototype._insertRow=function(t,e){var n=this._getRowDef(t,e),r={$implicit:t};this._rowPlaceholder.viewContainer.createEmbeddedView(n.template,r,e),this._getCellTemplatesForRow(n).forEach(function(t){d.mostRecentCellOutlet&&d.mostRecentCellOutlet._viewContainer.createEmbeddedView(t.template,r)}),this._changeDetectorRef.markForCheck()},t.prototype._updateRowIndexContext=function(){for(var t=this._rowPlaceholder.viewContainer,e=0,n=t.length;e<n;e++){var r=t.get(e);r.context.index=e,r.context.count=n,r.context.first=0===e,r.context.last=e===n-1,r.context.even=e%2==0,r.context.odd=!r.context.even}},t.prototype._getHeaderCellTemplatesForRow=function(t){var e=this;return t&&t.columns?t.columns.map(function(t){var n=e._columnDefsByName.get(t);if(!n)throw w(t);return n.headerCell}):[]},t.prototype._getCellTemplatesForRow=function(t){var e=this;return t.columns?t.columns.map(function(t){var n=e._columnDefsByName.get(t);if(!n)throw w(t);return n.cell}):[]},t.decorators=[{type:e.Component,args:[{selector:"cdk-table",exportAs:"cdkTable",template:E,host:{class:"cdk-table"},encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:e.IterableDiffers},{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:void 0,decorators:[{type:e.Attribute,args:["role"]}]}]},t.propDecorators={trackBy:[{type:e.Input}],dataSource:[{type:e.Input}],_rowPlaceholder:[{type:e.ViewChild,args:[C]}],_headerRowPlaceholder:[{type:e.ViewChild,args:[x]}],_contentColumnDefs:[{type:e.ContentChildren,args:[v]}],_contentRowDefs:[{type:e.ContentChildren,args:[h]}],_headerRowDef:[{type:e.ContentChild,args:[p]}]},t}()),k=[S,h,g,d,y,v,_,m,b,f,p,C,x],O=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule],exports:[k],declarations:[k]}]}],t.ctorParameters=function(){return[]},t}();t.DataSource=n.DataSource,t.RowPlaceholder=C,t.HeaderRowPlaceholder=x,t.CDK_TABLE_TEMPLATE=E,t.CdkTable=S,t.CdkCellDef=g,t.CdkHeaderCellDef=y,t.CdkColumnDef=v,t.CdkHeaderCell=b,t.CdkCell=_,t.CDK_ROW_TEMPLATE=l,t.BaseRowDef=u,t.CdkHeaderRowDef=p,t.CdkRowDef=h,t.CdkCellOutlet=d,t.CdkHeaderRow=f,t.CdkRow=m,t.CdkTableModule=O,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("@angular/cdk/collections"),t("rxjs/operators/takeUntil"),t("rxjs/BehaviorSubject"),t("rxjs/Subject"),t("@angular/common")):i((r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{},r.ng.cdk.table=r.ng.cdk.table||{}),r.ng.core,r.ng.cdk.collections,r.Rx.operators,r.Rx,r.Rx,r.ng.common)},{"@angular/cdk/collections":44,"@angular/common":55,"@angular/core":57,"rxjs/BehaviorSubject":64,"rxjs/Subject":71,"rxjs/operators/takeUntil":141}],54:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i,o,a,s,c){"use strict";var l=function(){return function(){}}(),u=function(){return function(){}}(),p=function(){function t(t){var e=this;this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){e.headers=new Map,t.split("\n").forEach(function(t){var n=t.indexOf(":");if(n>0){var r=t.slice(0,n),i=r.toLowerCase(),o=t.slice(n+1).trim();e.maybeSetNormalizedName(r,i),e.headers.has(i)?e.headers.get(i).push(o):e.headers.set(i,[o])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var r=t[n],i=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(i,r),e.maybeSetNormalizedName(n,i))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,n),this.headers.set(e,r);break;case"d":var i=t.value;if(i){var o=this.headers.get(e);if(!o)return;0===(o=o.filter(function(t){return-1===i.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),h=function(){function t(){}return t.prototype.encodeKey=function(t){return d(t)},t.prototype.encodeValue=function(t){return d(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function d(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var f=function(){function t(t){void 0===t&&(t={});var e,n,r,i=this;if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new h,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,r=new Map,e.length>0&&e.split("&").forEach(function(t){var e=t.indexOf("="),i=-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],o=i[0],a=i[1],s=r.get(o)||[];s.push(a),r.set(o,s)}),r)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(e){var n=t.fromObject[e];i.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],i=r.indexOf(e.value);-1!==i&&r.splice(i,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=null)},t}();function m(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function g(t){return"undefined"!=typeof Blob&&t instanceof Blob}function y(t){return"undefined"!=typeof FormData&&t instanceof FormData}var v=function(){function t(t,e,n,r){var i;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new p),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{var a=e.indexOf("?"),s=-1===a?"?":a<e.length-1?"&":"";this.urlWithParams=e+s+o}}else this.params=new f,this.urlWithParams=e}return t.prototype.serializeBody=function(){return null===this.body?null:m(this.body)||g(this.body)||y(this.body)||"string"==typeof this.body?this.body:this.body instanceof f?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()},t.prototype.detectContentTypeHeader=function(){return null===this.body?null:y(this.body)?null:g(this.body)?this.body.type||null:m(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof f?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null},t.prototype.clone=function(e){void 0===e&&(e={});var n=e.method||this.method,r=e.url||this.url,i=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,s=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,c=e.headers||this.headers,l=e.params||this.params;return void 0!==e.setHeaders&&(c=Object.keys(e.setHeaders).reduce(function(t,n){return t.set(n,e.setHeaders[n])},c)),e.setParams&&(l=Object.keys(e.setParams).reduce(function(t,n){return t.set(n,e.setParams[n])},l)),new t(n,r,o,{params:l,headers:c,reportProgress:s,responseType:i,withCredentials:a})},t}(),b={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};b[b.Sent]="Sent",b[b.UploadProgress]="UploadProgress",b[b.ResponseHeader]="ResponseHeader",b[b.DownloadProgress]="DownloadProgress",b[b.Response]="Response",b[b.User]="User";var _=function(){return function(t,e,n){void 0===e&&(e=200),void 0===n&&(n="OK"),this.headers=t.headers||new p,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}(),w=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=b.ResponseHeader,n}return a.__extends(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(_),C=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=b.Response,n.body=void 0!==e.body?e.body:null,n}return a.__extends(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(_),x=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.status>=200&&n.status<300?n.message="Http failure during parsing for "+(e.url||"(unknown url)"):n.message="Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return a.__extends(e,t),e}(_);function E(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var S=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,a){var s,c=this;if(void 0===a&&(a={}),t instanceof v)s=t;else{var l=void 0;l=a.headers instanceof p?a.headers:new p(a.headers);var u=void 0;a.params&&(u=a.params instanceof f?a.params:new f({fromObject:a.params})),s=new v(t,e,void 0!==a.body?a.body:null,{headers:l,params:u,reportProgress:a.reportProgress,responseType:a.responseType||"json",withCredentials:a.withCredentials})}var h=r.concatMap.call(n.of(s),function(t){return c.handler.handle(t)});if(t instanceof v||"events"===a.observe)return h;var d=i.filter.call(h,function(t){return t instanceof C});switch(a.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return o.map.call(d,function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body});case"blob":return o.map.call(d,function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body});case"text":return o.map.call(d,function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body});case"json":default:return o.map.call(d,function(t){return t.body})}case"response":return d;default:throw new Error("Unreachable: unhandled observe type "+a.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new f).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,E(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,E(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,E(n,e))},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:l}]},t}(),k=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),O=new e.InjectionToken("HTTP_INTERCEPTORS"),P=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}(),A=0,T=function(){return function(){}}(),M=function(){function t(t,e){this.callbackMap=t,this.document=e}return t.prototype.nextCallback=function(){return"ng_jsonp_callback_"+A++},t.prototype.handle=function(t){var e=this;if("JSONP"!==t.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==t.responseType)throw new Error("JSONP requests must use Json response type.");return new c.Observable(function(n){var r=e.nextCallback(),i=t.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,"="+r+"$1"),o=e.document.createElement("script");o.src=i;var a=null,s=!1,c=!1;e.callbackMap[r]=function(t){delete e.callbackMap[r],c||(a=t,s=!0)};var l=function(){o.parentNode&&o.parentNode.removeChild(o),delete e.callbackMap[r]},u=function(t){c||(l(),s?(n.next(new C({body:a,status:200,statusText:"OK",url:i})),n.complete()):n.error(new x({url:i,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")})))},p=function(t){c||(l(),n.error(new x({error:t,status:0,statusText:"JSONP Error",url:i})))};return o.addEventListener("load",u),o.addEventListener("error",p),e.document.body.appendChild(o),n.next({type:b.Sent}),function(){c=!0,o.removeEventListener("load",u),o.removeEventListener("error",p),l()}})},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:T},{type:void 0,decorators:[{type:e.Inject,args:[s.DOCUMENT]}]}]},t}(),I=function(){function t(t){this.jsonp=t}return t.prototype.intercept=function(t,e){return"JSONP"===t.method?this.jsonp.handle(t):e.handle(t)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:M}]},t}(),R=/^\)\]\}',?\n/;var D=function(){return function(){}}(),N=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}(),L=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new c.Observable(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var i=t.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(t.responseType){var o=t.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=t.serializeBody(),s=null,c=function(){if(null!==s)return s;var e,n=1223===r.status?204:r.status,i=r.statusText||"OK",o=new p(r.getAllResponseHeaders()),a=("responseURL"in(e=r)&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null)||t.url;return s=new w({headers:o,status:n,statusText:i,url:a})},l=function(){var e=c(),i=e.headers,o=e.status,a=e.statusText,s=e.url,l=null;204!==o&&(l=void 0===r.response?r.responseText:r.response),0===o&&(o=l?200:0);var u=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof l){var p=l;l=l.replace(R,"");try{l=""!==l?JSON.parse(l):null}catch(t){l=p,u&&(u=!1,l={error:t,text:l})}}u?(n.next(new C({body:l,headers:i,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new x({error:l,headers:i,status:o,statusText:a,url:s||void 0}))},u=function(t){var e=new x({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error"});n.error(e)},h=!1,d=function(e){h||(n.next(c()),h=!0);var i={type:b.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(i.total=e.total),"text"===t.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},f=function(t){var e={type:b.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",l),r.addEventListener("error",u),t.reportProgress&&(r.addEventListener("progress",d),null!==a&&r.upload&&r.upload.addEventListener("progress",f)),r.send(a),n.next({type:b.Sent}),function(){r.removeEventListener("error",u),r.removeEventListener("load",l),t.reportProgress&&(r.removeEventListener("progress",d),null!==a&&r.upload&&r.upload.removeEventListener("progress",f)),r.abort()}})},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:D}]},t}(),j=new e.InjectionToken("XSRF_COOKIE_NAME"),F=new e.InjectionToken("XSRF_HEADER_NAME"),V=function(){return function(){}}(),B=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=s.ɵparseCookieValue(t,this.cookieName),this.lastCookieString=t),this.lastToken},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[s.DOCUMENT]}]},{type:void 0,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:void 0,decorators:[{type:e.Inject,args:[j]}]}]},t}(),U=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:V},{type:void 0,decorators:[{type:e.Inject,args:[F]}]}]},t}();function H(t,e){return void 0===e&&(e=[]),e?e.reduceRight(function(t,e){return new k(t,e)},t):t}function z(){return"object"==typeof window?window:{}}var W=function(){function t(){}return t.disable=function(){return{ngModule:t,providers:[{provide:U,useClass:P}]}},t.withOptions=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[e.cookieName?{provide:j,useValue:e.cookieName}:[],e.headerName?{provide:F,useValue:e.headerName}:[]]}},t.decorators=[{type:e.NgModule,args:[{providers:[U,{provide:O,useExisting:U,multi:!0},{provide:V,useClass:B},{provide:j,useValue:"XSRF-TOKEN"},{provide:F,useValue:"X-XSRF-TOKEN"}]}]}],t.ctorParameters=function(){return[]},t}(),G=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[W.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})],providers:[S,{provide:l,useFactory:H,deps:[u,[new e.Optional,new e.Inject(O)]]},L,{provide:u,useExisting:L},N,{provide:D,useExisting:N}]}]}],t.ctorParameters=function(){return[]},t}(),q=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{providers:[M,{provide:T,useFactory:z},{provide:O,useClass:I,multi:!0}]}]}],t.ctorParameters=function(){return[]},t}();t.HttpBackend=u,t.HttpHandler=l,t.HttpClient=S,t.HttpHeaders=p,t.HTTP_INTERCEPTORS=O,t.JsonpClientBackend=M,t.JsonpInterceptor=I,t.HttpClientJsonpModule=q,t.HttpClientModule=G,t.HttpClientXsrfModule=W,t.ɵinterceptingHandler=H,t.HttpParams=f,t.HttpUrlEncodingCodec=h,t.HttpRequest=v,t.HttpErrorResponse=x,t.HttpEventType=b,t.HttpHeaderResponse=w,t.HttpResponse=C,t.HttpResponseBase=_,t.HttpXhrBackend=L,t.XhrFactory=D,t.HttpXsrfTokenExtractor=V,t.ɵa=P,t.ɵb=T,t.ɵc=z,t.ɵd=N,t.ɵg=B,t.ɵh=U,t.ɵe=j,t.ɵf=F,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("rxjs/observable/of"),t("rxjs/operator/concatMap"),t("rxjs/operator/filter"),t("rxjs/operator/map"),t("tslib"),t("@angular/common"),t("rxjs/Observable")):i((r.ng=r.ng||{},r.ng.common=r.ng.common||{},r.ng.common.http={}),r.ng.core,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.tslib,r.ng.common,r.Rx)},{"@angular/common":55,"@angular/core":57,"rxjs/Observable":67,"rxjs/observable/of":99,"rxjs/operator/concatMap":104,"rxjs/operator/filter":106,"rxjs/operator/map":109,tslib:170}],55:[function(t,e,n){var r,i;r=this,i=function(t,e){"use strict";var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function r(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},o=function(){return function(){}}(),a=new e.InjectionToken("Location Initialized"),s=function(){return function(){}}(),c=new e.InjectionToken("appBaseHref"),l=function(){function t(n){var r=this;this._subject=new e.EventEmitter,this._platformStrategy=n;var i=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(u(i)),this._platformStrategy.onPopState(function(t){r._subject.emit({url:r.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=u(e),n&&r.startsWith(n)?r.substring(n.length):r));var n,r},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){var e=t.match(/#|\?|$/),n=e&&e.index||t.length,r=n-("/"===t[n-1]?1:0);return t.slice(0,r)+t.slice(n)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:s}]},t}();function u(t){return t.replace(/\/index.html$/,"")}var p=function(t){function n(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return r(n,t),n.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},n.prototype.getBaseHref=function(){return this._baseHref},n.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},n.prototype.prepareExternalUrl=function(t){var e=l.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},n.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},n.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},n.prototype.forward=function(){this._platformLocation.forward()},n.prototype.back=function(){this._platformLocation.back()},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:o},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[c]}]}]},n}(s),h=function(t){function n(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(n,t),n.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},n.prototype.getBaseHref=function(){return this._baseHref},n.prototype.prepareExternalUrl=function(t){return l.joinWithSlash(this._baseHref,t)},n.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+l.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},n.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));this._platformLocation.pushState(t,e,i)},n.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,i)},n.prototype.forward=function(){this._platformLocation.forward()},n.prototype.back=function(){this._platformLocation.back()},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:o},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[c]}]}]},n}(s),d={AOA:[,"Kz"],ARS:[,"$"],AUD:["A$","$"],BAM:[,"KM"],BBD:[,"$"],BDT:[,"৳"],BMD:[,"$"],BND:[,"$"],BOB:[,"Bs"],BRL:["R$"],BSD:[,"$"],BWP:[,"P"],BYN:[,"р."],BZD:[,"$"],CAD:["CA$","$"],CLP:[,"$"],CNY:["CN¥","¥"],COP:[,"$"],CRC:[,"₡"],CUC:[,"$"],CUP:[,"$"],CZK:[,"Kč"],DKK:[,"kr"],DOP:[,"$"],EGP:[,"E£"],ESP:[,"₧"],EUR:["€"],FJD:[,"$"],FKP:[,"£"],GBP:["£"],GEL:[,"₾"],GIP:[,"£"],GNF:[,"FG"],GTQ:[,"Q"],GYD:[,"$"],HKD:["HK$","$"],HNL:[,"L"],HRK:[,"kn"],HUF:[,"Ft"],IDR:[,"Rp"],ILS:["₪"],INR:["₹"],ISK:[,"kr"],JMD:[,"$"],JPY:["¥"],KHR:[,"៛"],KMF:[,"CF"],KPW:[,"₩"],KRW:["₩"],KYD:[,"$"],KZT:[,"₸"],LAK:[,"₭"],LBP:[,"L£"],LKR:[,"Rs"],LRD:[,"$"],LTL:[,"Lt"],LVL:[,"Ls"],MGA:[,"Ar"],MMK:[,"K"],MNT:[,"₮"],MUR:[,"Rs"],MXN:["MX$","$"],MYR:[,"RM"],NAD:[,"$"],NGN:[,"₦"],NIO:[,"C$"],NOK:[,"kr"],NPR:[,"Rs"],NZD:["NZ$","$"],PHP:[,"₱"],PKR:[,"Rs"],PLN:[,"zł"],PYG:[,"₲"],RON:[,"lei"],RUB:[,"₽"],RUR:[,"р."],RWF:[,"RF"],SBD:[,"$"],SEK:[,"kr"],SGD:[,"$"],SHP:[,"£"],SRD:[,"$"],SSP:[,"£"],STD:[,"Db"],SYP:[,"£"],THB:[,"฿"],TOP:[,"T$"],TRY:[,"₺"],TTD:[,"$"],TWD:["NT$","$"],UAH:[,"₴"],USD:["$"],UYU:[,"$"],VEF:[,"Bs"],VND:["₫"],XAF:["FCFA"],XCD:["EC$","$"],XOF:["CFA"],XPF:["CFPF"],ZAR:[,"R"],ZMW:[,"ZK"]};var f=["en",[["a","p"],["AM","PM"]],[["AM","PM"],,],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",,"{1} 'at' {0}"],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"$","US Dollar",function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],m={};function g(t,e,n){"string"!=typeof e&&(n=e,e=t[0]),e=e.toLowerCase().replace(/_/g,"-"),m[e]=t,n&&(m[e][18]=n)}var y={Decimal:0,Percent:1,Currency:2,Scientific:3};y[y.Decimal]="Decimal",y[y.Percent]="Percent",y[y.Currency]="Currency",y[y.Scientific]="Scientific";var v={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};v[v.Zero]="Zero",v[v.One]="One",v[v.Two]="Two",v[v.Few]="Few",v[v.Many]="Many",v[v.Other]="Other";var b={Format:0,Standalone:1};b[b.Format]="Format",b[b.Standalone]="Standalone";var _={Narrow:0,Abbreviated:1,Wide:2,Short:3};_[_.Narrow]="Narrow",_[_.Abbreviated]="Abbreviated",_[_.Wide]="Wide",_[_.Short]="Short";var w={Short:0,Medium:1,Long:2,Full:3};w[w.Short]="Short",w[w.Medium]="Medium",w[w.Long]="Long",w[w.Full]="Full";var C={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};C[C.Decimal]="Decimal",C[C.Group]="Group",C[C.List]="List",C[C.PercentSign]="PercentSign",C[C.PlusSign]="PlusSign",C[C.MinusSign]="MinusSign",C[C.Exponential]="Exponential",C[C.SuperscriptingExponent]="SuperscriptingExponent",C[C.PerMille]="PerMille",C[C.Infinity]="Infinity",C[C.NaN]="NaN",C[C.TimeSeparator]="TimeSeparator",C[C.CurrencyDecimal]="CurrencyDecimal",C[C.CurrencyGroup]="CurrencyGroup";var x={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6};function E(t){return B(t)[0]}function S(t,e,n){var r=B(t);return F(F([r[1],r[2]],e),n)}function k(t,e,n){var r=B(t);return F(F([r[3],r[4]],e),n)}function O(t,e,n){var r=B(t);return F(F([r[5],r[6]],e),n)}function P(t,e){return F(B(t)[7],e)}function A(t,e){return B(t)[10][e]}function T(t,e){return B(t)[11][e]}function M(t,e){return F(B(t)[12],e)}function I(t,e){var n=B(t),r=n[13][e];if(void 0===r){if(e===C.CurrencyDecimal)return n[13][C.Decimal];if(e===C.CurrencyGroup)return n[13][C.Group]}return r}function R(t,e){return B(t)[14][e]}function D(t){return B(t)[17]}function N(t){if(!t[18])throw new Error('Missing extra locale data for the locale "'+t[0]+'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.')}function L(t){var e=B(t);return N(e),(e[18][2]||[]).map(function(t){return"string"==typeof t?V(t):[V(t[0]),V(t[1])]})}function j(t,e,n){var r=B(t);return N(r),F(F([r[18][0],r[18][1]],e)||[],n)||[]}function F(t,e){for(var n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function V(t){var e=t.split(":");return{hours:+e[0],minutes:+e[1]}}function B(t){var e=t.toLowerCase().replace(/_/g,"-"),n=m[e];if(n)return n;var r=e.split("-")[0];if(n=m[r])return n;if("en"===r)return f;throw new Error('Missing locale data for the locale "'+t+'".')}function U(t,e){var n=d[t]||[],r=n[1];return"narrow"===e&&"string"==typeof r?r:n[0]||t}x[x.Sunday]="Sunday",x[x.Monday]="Monday",x[x.Tuesday]="Tuesday",x[x.Wednesday]="Wednesday",x[x.Thursday]="Thursday",x[x.Friday]="Friday",x[x.Saturday]="Saturday";var H=new e.InjectionToken("UseV4Plurals"),z=function(){return function(){}}();function W(t,e,n,r){var i="="+t;if(e.indexOf(i)>-1)return i;if(i=n.getPluralCategory(t,r),e.indexOf(i)>-1)return i;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}var G=function(t){function n(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return r(n,t),n.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):D(e||this.locale)(t)){case v.Zero:return"zero";case v.One:return"one";case v.Two:return"two";case v.Few:return"few";case v.Many:return"many";default:return"other"}},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[H]}]}]},n}(z);function q(t,e){"string"==typeof e&&(e=parseInt(e,10));var n=e,r=n.toString().replace(/^[^.]*\.?/,""),i=Math.floor(Math.abs(n)),o=r.length,a=parseInt(r,10),s=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(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?v.One:v.Other;case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?v.One:v.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===n?v.One:v.Other;case"ar":return 0===n?v.Zero:1===n?v.One:2===n?v.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?v.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?v.Many:v.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===i&&0===o?v.One:v.Other;case"be":return n%10==1&&n%100!=11?v.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?v.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?v.Many:v.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?v.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?v.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?v.Few:0!==n&&n%1e6==0?v.Many:v.Other;case"bs":case"hr":case"sr":return 0===o&&i%10==1&&i%100!=11||a%10==1&&a%100!=11?v.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)||a%10===Math.floor(a%10)&&a%10>=2&&a%10<=4&&!(a%100>=12&&a%100<=14)?v.Few:v.Other;case"cs":case"sk":return 1===i&&0===o?v.One:i===Math.floor(i)&&i>=2&&i<=4&&0===o?v.Few:0!==o?v.Many:v.Other;case"cy":return 0===n?v.Zero:1===n?v.One:2===n?v.Two:3===n?v.Few:6===n?v.Many:v.Other;case"da":return 1===n||0!==s&&(0===i||1===i)?v.One:v.Other;case"dsb":case"hsb":return 0===o&&i%100==1||a%100==1?v.One:0===o&&i%100==2||a%100==2?v.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||a%100===Math.floor(a%100)&&a%100>=3&&a%100<=4?v.Few:v.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?v.One:v.Other;case"fil":return 0===o&&(1===i||2===i||3===i)||0===o&&i%10!=4&&i%10!=6&&i%10!=9||0!==o&&a%10!=4&&a%10!=6&&a%10!=9?v.One:v.Other;case"ga":return 1===n?v.One:2===n?v.Two:n===Math.floor(n)&&n>=3&&n<=6?v.Few:n===Math.floor(n)&&n>=7&&n<=10?v.Many:v.Other;case"gd":return 1===n||11===n?v.One:2===n||12===n?v.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?v.Few:v.Other;case"gv":return 0===o&&i%10==1?v.One:0===o&&i%10==2?v.Two:0!==o||i%100!=0&&i%100!=20&&i%100!=40&&i%100!=60&&i%100!=80?0!==o?v.Many:v.Other:v.Few;case"he":return 1===i&&0===o?v.One:2===i&&0===o?v.Two:0!==o||n>=0&&n<=10||n%10!=0?v.Other:v.Many;case"is":return 0===s&&i%10==1&&i%100!=11||0!==s?v.One:v.Other;case"ksh":return 0===n?v.Zero:1===n?v.One:v.Other;case"kw":case"naq":case"se":case"smn":return 1===n?v.One:2===n?v.Two:v.Other;case"lag":return 0===n?v.Zero:0!==i&&1!==i||0===n?v.Other:v.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?v.Few:0!==a?v.Many:v.Other:v.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===o&&a%100===Math.floor(a%100)&&a%100>=11&&a%100<=19?v.Zero:n%10==1&&n%100!=11||2===o&&a%10==1&&a%100!=11||2!==o&&a%10==1?v.One:v.Other;case"mk":return 0===o&&i%10==1||a%10==1?v.One:v.Other;case"mt":return 1===n?v.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?v.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?v.Many:v.Other;case"pl":return 1===i&&0===o?v.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?v.Few:0===o&&1!==i&&i%10===Math.floor(i%10)&&i%10>=0&&i%10<=1||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=12&&i%100<=14?v.Many:v.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?v.One:v.Other;case"ro":return 1===i&&0===o?v.One:0!==o||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?v.Few:v.Other;case"ru":case"uk":return 0===o&&i%10==1&&i%100!=11?v.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?v.Few:0===o&&i%10==0||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=11&&i%100<=14?v.Many:v.Other;case"shi":return 0===i||1===n?v.One:n===Math.floor(n)&&n>=2&&n<=10?v.Few:v.Other;case"si":return 0===n||1===n||0===i&&1===a?v.One:v.Other;case"sl":return 0===o&&i%100==1?v.One:0===o&&i%100==2?v.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||0!==o?v.Few:v.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?v.One:v.Other;default:return v.Other}}var Y=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){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)})},t.decorators=[{type:e.Directive,args:[{selector:"[ngClass]"}]}],t.ctorParameters=function(){return[{type:e.IterableDiffers},{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer2}]},t.propDecorators={klass:[{type:e.Input,args:["class"]}],ngClass:[{type:e.Input}]},t}(),K=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 i=(this._moduleRef?this._moduleRef.componentFactoryResolver:n.get(e.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,n,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},t.decorators=[{type:e.Directive,args:[{selector:"[ngComponentOutlet]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef}]},t.propDecorators={ngComponentOutlet:[{type:e.Input}],ngComponentOutletInjector:[{type:e.Input}],ngComponentOutletContent:[{type:e.Input}],ngComponentOutletNgModuleFactory:[{type:e.Input}]},t}(),$=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}(),X=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 '"+((n=e).name||typeof n)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var n},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,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new $(null,e.ngForOf,-1,-1),i),a=new Q(t,o);n.push(a)}else if(null==i)e._viewContainer.remove(r);else{o=e._viewContainer.get(r);e._viewContainer.move(o,i);a=new Q(t,o);n.push(a)}});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);r=0;for(var i=this._viewContainer.length;r<i;r++){var o=this._viewContainer.get(r);o.context.index=r,o.context.count=i}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.decorators=[{type:e.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:e.IterableDiffers}]},t.propDecorators={ngForOf:[{type:e.Input}],ngForTrackBy:[{type:e.Input}],ngForTemplate:[{type:e.Input}]},t}(),Q=function(){return function(t,e){this.record=t,this.view=e}}();var Z=function(){function t(t,e){this._viewContainer=t,this._context=new J,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.decorators=[{type:e.Directive,args:[{selector:"[ngIf]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef}]},t.propDecorators={ngIf:[{type:e.Input}],ngIfThen:[{type:e.Input}],ngIfElse:[{type:e.Input}]},t}(),J=function(){return function(){this.$implicit=null,this.ngIf=null}}(),tt=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}(),et=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._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.decorators=[{type:e.Directive,args:[{selector:"[ngSwitch]"}]}],t.ctorParameters=function(){return[]},t.propDecorators={ngSwitch:[{type:e.Input}]},t}(),nt=function(){function t(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new tt(t,e)}return t.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},t.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchCase]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:et,decorators:[{type:e.Host}]}]},t.propDecorators={ngSwitchCase:[{type:e.Input}]},t}(),rt=function(){function t(t,e,n){n._addDefault(new tt(t,e))}return t.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchDefault]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:et,decorators:[{type:e.Host}]}]},t}(),it=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=W(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.decorators=[{type:e.Directive,args:[{selector:"[ngPlural]"}]}],t.ctorParameters=function(){return[{type:z}]},t.propDecorators={ngPlural:[{type:e.Input}]},t}(),ot=function(){function t(t,e,n,r){this.value=t;var i=!isNaN(Number(t));r.addCase(i?"="+t:t,new tt(n,e))}return t.decorators=[{type:e.Directive,args:[{selector:"[ngPluralCase]"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Attribute,args:["ngPluralCase"]}]},{type:e.TemplateRef},{type:e.ViewContainerRef},{type:it,decorators:[{type:e.Host}]}]},t}(),at=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],i=n[1];e=null!=e&&i?""+e+i:e,this._renderer.setStyle(this._ngEl.nativeElement,r,e)},t.decorators=[{type:e.Directive,args:[{selector:"[ngStyle]"}]}],t.ctorParameters=function(){return[{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer2}]},t.propDecorators={ngStyle:[{type:e.Input}]},t}(),st=function(){function t(t){this._viewContainerRef=t}return t.prototype.ngOnChanges=function(t){this._shouldRecreateView(t)?(this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))):this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)},t.prototype._shouldRecreateView=function(t){var e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)},t.prototype._hasContextShapeChanged=function(t){var e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(var r=0,i=n;r<i.length;r++){var o=i[r];if(-1===e.indexOf(o))return!0}return!1}return!0},t.prototype._updateExistingContext=function(t){for(var e=0,n=Object.keys(t);e<n.length;e++){var r=n[e];this._viewRef.context[r]=this.ngTemplateOutletContext[r]}},t.decorators=[{type:e.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef}]},t.propDecorators={ngTemplateOutletContext:[{type:e.Input}],ngTemplateOutlet:[{type:e.Input}]},t}(),ct=[Y,K,X,Z,st,at,et,nt,rt,it,ot],lt={},ut=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,pt={Short:0,ShortGMT:1,Long:2,Extended:3};pt[pt.Short]="Short",pt[pt.ShortGMT]="ShortGMT",pt[pt.Long]="Long",pt[pt.Extended]="Extended";var ht={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,Milliseconds:6,Day:7};ht[ht.FullYear]="FullYear",ht[ht.Month]="Month",ht[ht.Date]="Date",ht[ht.Hours]="Hours",ht[ht.Minutes]="Minutes",ht[ht.Seconds]="Seconds",ht[ht.Milliseconds]="Milliseconds",ht[ht.Day]="Day";var dt={DayPeriods:0,Days:1,Months:2,Eras:3};function ft(t,e,n,r){e=function t(e,n){var r=E(e);lt[r]=lt[r]||{};if(lt[r][n])return lt[r][n];var i="";switch(n){case"shortDate":i=A(e,w.Short);break;case"mediumDate":i=A(e,w.Medium);break;case"longDate":i=A(e,w.Long);break;case"fullDate":i=A(e,w.Full);break;case"shortTime":i=T(e,w.Short);break;case"mediumTime":i=T(e,w.Medium);break;case"longTime":i=T(e,w.Long);break;case"fullTime":i=T(e,w.Full);break;case"short":var o=t(e,"shortTime"),a=t(e,"shortDate");i=mt(M(e,w.Short),[o,a]);break;case"medium":var s=t(e,"mediumTime"),c=t(e,"mediumDate");i=mt(M(e,w.Medium),[s,c]);break;case"long":var l=t(e,"longTime"),u=t(e,"longDate");i=mt(M(e,w.Long),[l,u]);break;case"full":var p=t(e,"fullTime"),h=t(e,"fullDate");i=mt(M(e,w.Full),[p,h])}i&&(lt[r][n]=i);return i}(n,e)||e;for(var i,o=[];e;){if(!(i=ut.exec(e))){o.push(e);break}var a=(o=o.concat(i.slice(1))).pop();if(!a)break;e=a}var s,c,l,u,p,h,d,f=t.getTimezoneOffset();r&&(f=Et(r,f),s=t,c=r,l=!0?-1:1,u=s.getTimezoneOffset(),p=Et(c,u),h=s,d=l*(p-u),(h=new Date(h.getTime())).setMinutes(h.getMinutes()+d),t=h);var m="";return o.forEach(function(e){var r=function(t){if(xt[t])return xt[t];var e;switch(t){case"G":case"GG":case"GGG":e=vt(dt.Eras,_.Abbreviated);break;case"GGGG":e=vt(dt.Eras,_.Wide);break;case"GGGGG":e=vt(dt.Eras,_.Narrow);break;case"y":e=yt(ht.FullYear,1,0,!1,!0);break;case"yy":e=yt(ht.FullYear,2,0,!0,!0);break;case"yyy":e=yt(ht.FullYear,3,0,!1,!0);break;case"yyyy":e=yt(ht.FullYear,4,0,!1,!0);break;case"M":case"L":e=yt(ht.Month,1,1);break;case"MM":case"LL":e=yt(ht.Month,2,1);break;case"MMM":e=vt(dt.Months,_.Abbreviated);break;case"MMMM":e=vt(dt.Months,_.Wide);break;case"MMMMM":e=vt(dt.Months,_.Narrow);break;case"LLL":e=vt(dt.Months,_.Abbreviated,b.Standalone);break;case"LLLL":e=vt(dt.Months,_.Wide,b.Standalone);break;case"LLLLL":e=vt(dt.Months,_.Narrow,b.Standalone);break;case"w":e=Ct(1);break;case"ww":e=Ct(2);break;case"W":e=Ct(1,!0);break;case"d":e=yt(ht.Date,1);break;case"dd":e=yt(ht.Date,2);break;case"E":case"EE":case"EEE":e=vt(dt.Days,_.Abbreviated);break;case"EEEE":e=vt(dt.Days,_.Wide);break;case"EEEEE":e=vt(dt.Days,_.Narrow);break;case"EEEEEE":e=vt(dt.Days,_.Short);break;case"a":case"aa":case"aaa":e=vt(dt.DayPeriods,_.Abbreviated);break;case"aaaa":e=vt(dt.DayPeriods,_.Wide);break;case"aaaaa":e=vt(dt.DayPeriods,_.Narrow);break;case"b":case"bb":case"bbb":e=vt(dt.DayPeriods,_.Abbreviated,b.Standalone,!0);break;case"bbbb":e=vt(dt.DayPeriods,_.Wide,b.Standalone,!0);break;case"bbbbb":e=vt(dt.DayPeriods,_.Narrow,b.Standalone,!0);break;case"B":case"BB":case"BBB":e=vt(dt.DayPeriods,_.Abbreviated,b.Format,!0);break;case"BBBB":e=vt(dt.DayPeriods,_.Wide,b.Format,!0);break;case"BBBBB":e=vt(dt.DayPeriods,_.Narrow,b.Format,!0);break;case"h":e=yt(ht.Hours,1,-12);break;case"hh":e=yt(ht.Hours,2,-12);break;case"H":e=yt(ht.Hours,1);break;case"HH":e=yt(ht.Hours,2);break;case"m":e=yt(ht.Minutes,1);break;case"mm":e=yt(ht.Minutes,2);break;case"s":e=yt(ht.Seconds,1);break;case"ss":e=yt(ht.Seconds,2);break;case"S":e=yt(ht.Milliseconds,1);break;case"SS":e=yt(ht.Milliseconds,2);break;case"SSS":e=yt(ht.Milliseconds,3);break;case"Z":case"ZZ":case"ZZZ":e=bt(pt.Short);break;case"ZZZZZ":e=bt(pt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=bt(pt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=bt(pt.Long);break;default:return null}return xt[t]=e,e}(e);m+=r?r(t,n,f):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),m}function mt(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function gt(t,e,n,r,i){void 0===n&&(n="-");var o="";(t<0||i&&t<=0)&&(i?t=1-t:(t=-t,o=n));for(var a=""+t;a.length<e;)a="0"+a;return r&&(a=a.substr(a.length-e)),o+a}function yt(t,e,n,r,i){return void 0===n&&(n=0),void 0===r&&(r=!1),void 0===i&&(i=!1),function(o,a){var s=function(t,e,n){switch(t){case ht.FullYear:return e.getFullYear();case ht.Month:return e.getMonth();case ht.Date:return e.getDate();case ht.Hours:return e.getHours();case ht.Minutes:return e.getMinutes();case ht.Seconds:return e.getSeconds();case ht.Milliseconds:var r=1===n?100:2===n?10:1;return Math.round(e.getMilliseconds()/r);case ht.Day:return e.getDay();default:throw new Error('Unknown DateType value "'+t+'".')}}(t,o,e);return(n>0||s>-n)&&(s+=n),t===ht.Hours&&0===s&&-12===n&&(s=12),gt(s,e,I(a,C.MinusSign),r,i)}}function vt(t,e,n,r){return void 0===n&&(n=b.Format),void 0===r&&(r=!1),function(i,o){return function(t,e,n,r,i,o){switch(n){case dt.Months:return O(e,i,r)[t.getMonth()];case dt.Days:return k(e,i,r)[t.getDay()];case dt.DayPeriods:var a=t.getHours(),s=t.getMinutes();if(o){var c,l=L(e),u=j(e,i,r);if(l.forEach(function(t,e){if(Array.isArray(t)){var n=t[0],r=n.hours,i=n.minutes,o=t[1],l=o.hours,p=o.minutes;a>=r&&s>=i&&(a<l||a===l&&s<p)&&(c=u[e])}else{var h=t.hours,d=t.minutes;h===a&&d===s&&(c=u[e])}}),c)return c}return S(e,i,r)[a<12?0:1];case dt.Eras:return P(e,r)[t.getFullYear()<=0?0:1];default:var p=n;throw new Error("unexpected translation type "+p)}}(i,o,t,e,n,r)}}function bt(t){return function(e,n,r){var i=-1*r,o=I(n,C.MinusSign),a=i>0?Math.floor(i/60):Math.ceil(i/60);switch(t){case pt.Short:return(i>=0?"+":"")+gt(a,2,o)+gt(Math.abs(i%60),2,o);case pt.ShortGMT:return"GMT"+(i>=0?"+":"")+gt(a,1,o);case pt.Long:return"GMT"+(i>=0?"+":"")+gt(a,2,o)+":"+gt(Math.abs(i%60),2,o);case pt.Extended:return 0===r?"Z":(i>=0?"+":"")+gt(a,2,o)+":"+gt(Math.abs(i%60),2,o);default:throw new Error('Unknown zone width "'+t+'"')}}}dt[dt.DayPeriods]="DayPeriods",dt[dt.Days]="Days",dt[dt.Months]="Months",dt[dt.Eras]="Eras";var _t=0,wt=4;function Ct(t,e){return void 0===e&&(e=!1),function(n,r){var i,o,a,s;if(e){var c=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,l=n.getDate();i=1+Math.floor((l+c)/7)}else{var u=(a=n.getFullYear(),s=new Date(a,_t,1).getDay(),new Date(a,0,1+(s<=wt?wt:wt+7)-s)),p=(o=n,new Date(o.getFullYear(),o.getMonth(),o.getDate()+(wt-o.getDay()))).getTime()-u.getTime();i=1+Math.round(p/6048e5)}return gt(i,t,I(r,C.MinusSign))}}var xt={};function Et(t,e){t=t.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function St(t,n){return Error("InvalidPipeArgument: '"+n+"' for pipe '"+e.ɵstringify(t)+"'")}var kt=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ot=function(){function t(t){this.locale=t}return t.prototype.transform=function(e,n,r,i){if(void 0===n&&(n="mediumDate"),null==e||""===e||e!=e)return null;var o;if("string"==typeof e&&(e=e.trim()),At(e))o=e;else if(isNaN(e-parseFloat(e)))if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var a=e.split("-").map(function(t){return+t}),s=a[0],c=a[1],l=a[2];o=new Date(s,c-1,l)}else o=new Date(e);else o=new Date(parseFloat(e));if(!At(o)){var u=void 0;if("string"!=typeof e||!(u=e.match(kt)))throw St(t,e);o=Pt(u)}return ft(o,n,i||this.locale,r)},t.decorators=[{type:e.Pipe,args:[{name:"date",pure:!0}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}();function Pt(t){var e=new Date(0),n=0,r=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=+(t[9]+t[10]),r=+(t[9]+t[11])),i.call(e,+t[1],+t[2]-1,+t[3]);var a=+(t[4]||"0")-n,s=+(t[5]||"0")-r,c=+(t[6]||"0"),l=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,a,s,c,l),e}function At(t){return t instanceof Date&&!isNaN(t.valueOf())}var Tt,Mt=function(){function t(){}return t.format=function(t,e,n,r){void 0===r&&(r={});var i=r.minimumIntegerDigits,o=r.minimumFractionDigits,a=r.maximumFractionDigits,s=r.currency,c=r.currencyAsSymbol,l=void 0!==c&&c,u={minimumIntegerDigits:i,minimumFractionDigits:o,maximumFractionDigits:a,style:y[n].toLowerCase()};return n==y.Currency&&(u.currency="string"==typeof s?s:void 0,u.currencyDisplay=l?"symbol":"code"),new Intl.NumberFormat(e,u).format(t)},t}(),It=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,Rt={yMMMdjms:zt(Ht([Bt("year",1),Ut("month",3),Bt("day",1),Bt("hour",1),Bt("minute",1),Bt("second",1)])),yMdjm:zt(Ht([Bt("year",1),Bt("month",1),Bt("day",1),Bt("hour",1),Bt("minute",1)])),yMMMMEEEEd:zt(Ht([Bt("year",1),Ut("month",4),Ut("weekday",4),Bt("day",1)])),yMMMMd:zt(Ht([Bt("year",1),Ut("month",4),Bt("day",1)])),yMMMd:zt(Ht([Bt("year",1),Ut("month",3),Bt("day",1)])),yMd:zt(Ht([Bt("year",1),Bt("month",1),Bt("day",1)])),jms:zt(Ht([Bt("hour",1),Bt("second",1),Bt("minute",1)])),jm:zt(Ht([Bt("hour",1),Bt("minute",1)]))},Dt={yyyy:zt(Bt("year",4)),yy:zt(Bt("year",2)),y:zt(Bt("year",1)),MMMM:zt(Ut("month",4)),MMM:zt(Ut("month",3)),MM:zt(Bt("month",2)),M:zt(Bt("month",1)),LLLL:zt(Ut("month",4)),L:zt(Ut("month",1)),dd:zt(Bt("day",2)),d:zt(Bt("day",1)),HH:Nt(Lt(zt(Vt(Bt("hour",2),!1)))),H:Lt(zt(Vt(Bt("hour",1),!1))),hh:Nt(Lt(zt(Vt(Bt("hour",2),!0)))),h:Lt(zt(Vt(Bt("hour",1),!0))),jj:zt(Bt("hour",2)),j:zt(Bt("hour",1)),mm:Nt(zt(Bt("minute",2))),m:zt(Bt("minute",1)),ss:Nt(zt(Bt("second",2))),s:zt(Bt("second",1)),sss:zt(Bt("second",3)),EEEE:zt(Ut("weekday",4)),EEE:zt(Ut("weekday",3)),EE:zt(Ut("weekday",2)),E:zt(Ut("weekday",1)),a:(Tt=zt(Vt(Bt("hour",1),!0)),function(t,e){return Tt(t,e).split(" ")[1]}),Z:Ft("short"),z:Ft("long"),ww:zt({}),w:zt({}),G:zt(Ut("era",1)),GG:zt(Ut("era",2)),GGG:zt(Ut("era",3)),GGGG:zt(Ut("era",4))};function Nt(t){return function(e,n){var r=t(e,n);return 1==r.length?"0"+r:r}}function Lt(t){return function(e,n){return t(e,n).split(" ")[0]}}function jt(t,e,n){return new Intl.DateTimeFormat(e,n).format(t).replace(/[\u200e\u200f]/g,"")}function Ft(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,n){var r=jt(t,n,e);return r?r.substring(3):""}}function Vt(t,e){return t.hour12=e,t}function Bt(t,e){var n={};return n[t]=2===e?"2-digit":"numeric",n}function Ut(t,e){var n={};return n[t]=e<4?e>1?"short":"narrow":"long",n}function Ht(t){return t.reduce(function(t,e){return i({},t,e)},{})}function zt(t){return function(e,n){return jt(e,n,t)}}var Wt=new Map;var Gt=function(){function t(){}return t.format=function(t,e,n){return function(t,e,n){var r=Rt[t];if(r)return r(e,n);var i=t,o=Wt.get(i);if(!o){o=[];var a=void 0;It.exec(t);for(var s=t;s;)(a=It.exec(s))?s=(o=o.concat(a.slice(1))).pop():(o.push(s),s=null);Wt.set(i,o)}return o.reduce(function(t,r){var i,o=Dt[r];return t+(o?o(e,n):"''"===(i=r)?"'":i.replace(/(^'|'$)/g,"").replace(/''/g,"'"))},"")}(n,t,e)},t}(),qt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){if(void 0===n&&(n="mediumDate"),null==e||""===e||e!=e)return null;var r;if("string"==typeof e&&(e=e.trim()),Yt(e))r=e;else if(isNaN(e-parseFloat(e)))if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var i=e.split("-").map(function(t){return parseInt(t,10)}),o=i[0],a=i[1],s=i[2];r=new Date(o,a-1,s)}else r=new Date(e);else r=new Date(parseFloat(e));if(!Yt(r)){var c=void 0;if("string"!=typeof e||!(c=e.match(kt)))throw St(t,e);r=Pt(c)}return Gt.format(r,this._locale,t._ALIASES[n]||n)},t._ALIASES={medium:"yMMMdjms",short:"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},t.decorators=[{type:e.Pipe,args:[{name:"date",pure:!0}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}();function Yt(t){return t instanceof Date&&!isNaN(t.valueOf())}var Kt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,$t=22,Xt=".",Qt="0",Zt=";",Jt=",",te="#",ee="¤",ne="%";function re(t,e,n,r,i){void 0===i&&(i=null);var o,a={str:null},s=R(e,n);if("string"!=typeof t||isNaN(+t-parseFloat(t))){if("number"!=typeof t)return a.error=t+" is not a number",a;o=t}else o=+t;var c=function(t,e){void 0===e&&(e="-");var n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=t.split(Zt),i=r[0],o=r[1],a=-1!==i.indexOf(Xt)?i.split(Xt):[i.substring(0,i.lastIndexOf(Qt)+1),i.substring(i.lastIndexOf(Qt)+1)],s=a[0],c=a[1]||"";n.posPre=s.substr(0,s.indexOf(te));for(var l=0;l<c.length;l++){var u=c.charAt(l);u===Qt?n.minFrac=n.maxFrac=l+1:u===te?n.maxFrac=l+1:n.posSuf+=u}var p=s.split(Jt);if(n.gSize=p[1]?p[1].length:0,n.lgSize=p[2]||p[1]?(p[2]||p[1]).length:0,o){var h=i.length-n.posPre.length-n.posSuf.length,d=o.indexOf(te);n.negPre=o.substr(0,d).replace(/'/g,""),n.negSuf=o.substr(d+h).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}(s,I(e,C.MinusSign)),l="",u=!1;if(isFinite(o)){var p=function(t){var e,n,r,i,o,a=Math.abs(t)+"",s=0;(n=a.indexOf(Xt))>-1&&(a=a.replace(Xt,""));(r=a.search(/e/i))>0?(n<0&&(n=r),n+=+a.slice(r+1),a=a.substring(0,r)):n<0&&(n=a.length);for(r=0;a.charAt(r)===Qt;r++);if(r===(o=a.length))e=[0],n=1;else{for(o--;a.charAt(o)===Qt;)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=+a.charAt(r)}n>$t&&(e=e.splice(0,$t-1),s=n-1,n=1);return{digits:e,exponent:s,integerLen:n}}(o);n===y.Percent&&(p=function(t){if(0===t.digits[0])return t;var e=t.digits.length-t.integerLen;t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2);return t}(p));var h=c.minInt,d=c.minFrac,f=c.maxFrac;if(r){var m=r.match(Kt);if(null===m)return a.error=r+" is not a valid digit info",a;var g=m[1],v=m[3],b=m[5];null!=g&&(h=ie(g)),null!=v&&(d=ie(v)),null!=b?f=ie(b):null!=v&&d>f&&(f=d)}!function(t,e,n){if(e>n)throw new Error("The minimum number of digits after fraction ("+e+") is higher than the maximum ("+n+").");var r=t.digits,i=r.length-t.integerLen,o=Math.min(Math.max(e,i),n),a=o+t.integerLen,s=r[a];if(a>0){r.splice(Math.max(t.integerLen,a));for(var c=a;c<r.length;c++)r[c]=0}else{i=Math.max(0,i),t.integerLen=1,r.length=Math.max(1,a=o+1),r[0]=0;for(var l=1;l<a;l++)r[l]=0}if(s>=5)if(a-1<0){for(var u=0;u>a;u--)r.unshift(0),t.integerLen++;r.unshift(1),t.integerLen++}else r[a-1]++;for(;i<Math.max(0,o);i++)r.push(0);var p=0!==o,h=e+t.integerLen,d=r.reduceRight(function(t,e,n,r){return e+=t,r[n]=e<10?e:e-10,p&&(0===r[n]&&n>=h?r.pop():p=!1),e>=10?1:0},0);d&&(r.unshift(d),t.integerLen++)}(p,d,f);var _=p.digits,w=p.integerLen,x=p.exponent,E=[];for(u=_.every(function(t){return!t});w<h;w++)_.unshift(0);for(;w<0;w++)_.unshift(0);w>0?E=_.splice(w,_.length):(E=_,_=[0]);var S=[];for(_.length>=c.lgSize&&S.unshift(_.splice(-c.lgSize,_.length).join(""));_.length>c.gSize;)S.unshift(_.splice(-c.gSize,_.length).join(""));_.length&&S.unshift(_.join(""));var k=i?C.CurrencyGroup:C.Group;if(l=S.join(I(e,k)),E.length)l+=I(e,i?C.CurrencyDecimal:C.Decimal)+E.join("");x&&(l+=I(e,C.Exponential)+"+"+x)}else l=I(e,C.Infinity);return l=o<0&&!u?c.negPre+l+c.negSuf:c.posPre+l+c.posSuf,n===y.Currency&&null!==i?(a.str=l.replace(ee,i).replace(ee,""),a):n===y.Percent?(a.str=l.replace(new RegExp(ne,"g"),I(e,C.PercentSign)),a):(a.str=l,a)}function ie(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function oe(t,e,n,r,i,o,a){if(void 0===o&&(o=null),void 0===a&&(a=!1),null==n)return null;if("number"!=typeof(n="string"!=typeof n||isNaN(+n-parseFloat(n))?n:+n))throw St(t,n);var s,c,l;if(r!==y.Currency&&(s=1,c=0,l=3),i){var u=i.match(Kt);if(null===u)throw new Error(i+" is not a valid digit info for number pipes");null!=u[1]&&(s=ie(u[1])),null!=u[3]&&(c=ie(u[3])),null!=u[5]&&(l=ie(u[5]))}return Mt.format(n,e,r,{minimumIntegerDigits:s,minimumFractionDigits:c,maximumFractionDigits:l,currency:o,currencyAsSymbol:a})}var ae=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return oe(t,this._locale,e,y.Decimal,n)},t.decorators=[{type:e.Pipe,args:[{name:"number"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),se=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return oe(t,this._locale,e,y.Percent,n)},t.decorators=[{type:e.Pipe,args:[{name:"percent"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),ce=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n,r,i){return void 0===n&&(n="USD"),void 0===r&&(r=!1),oe(t,this._locale,e,y.Currency,i,n,r)},t.decorators=[{type:e.Pipe,args:[{name:"currency"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),le=[ae,se,ce,qt],ue=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}(),pe=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}()),he=new ue,de=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 pe;if(e.ɵisObservable(n))return he;throw St(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.decorators=[{type:e.Pipe,args:[{name:"async",pure:!1}]}],t.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]},t}(),fe=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw St(t,e);return e.toLowerCase()},t.decorators=[{type:e.Pipe,args:[{name:"lowercase"}]}],t.ctorParameters=function(){return[]},t}();var me=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw St(t,e);return e.split(/\b/g).map(function(t){return(e=t)?e[0].toUpperCase()+e.substr(1).toLowerCase():e;var e}).join("")},t.decorators=[{type:e.Pipe,args:[{name:"titlecase"}]}],t.ctorParameters=function(){return[]},t}(),ge=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw St(t,e);return e.toUpperCase()},t.decorators=[{type:e.Pipe,args:[{name:"uppercase"}]}],t.ctorParameters=function(){return[]},t}(),ye=/#/g,ve=function(){function t(t){this._localization=t}return t.prototype.transform=function(e,n,r){if(null==e)return"";if("object"!=typeof n||null===n)throw St(t,n);return n[W(e,Object.keys(n),this._localization,r)].replace(ye,e.toString())},t.decorators=[{type:e.Pipe,args:[{name:"i18nPlural",pure:!0}]}],t.ctorParameters=function(){return[{type:z}]},t}(),be=function(){function t(){}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw St(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""},t.decorators=[{type:e.Pipe,args:[{name:"i18nSelect",pure:!0}]}],t.ctorParameters=function(){return[]},t}(),_e=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t.decorators=[{type:e.Pipe,args:[{name:"json",pure:!1}]}],t.ctorParameters=function(){return[]},t}(),we=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n,r){if(Ee(e))return null;var i=re(e,r=r||this._locale,y.Decimal,n),o=i.str,a=i.error;if(a)throw St(t,a);return o},t.decorators=[{type:e.Pipe,args:[{name:"number"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),Ce=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n,r){if(Ee(e))return null;var i=re(e,r=r||this._locale,y.Percent,n),o=i.str,a=i.error;if(a)throw St(t,a);return o},t.decorators=[{type:e.Pipe,args:[{name:"percent"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),xe=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n,r,i,o){if(void 0===r&&(r="symbol"),Ee(e))return null;o=o||this._locale,"boolean"==typeof r&&(console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),r=r?"symbol":"code");var a=n||"USD";"code"!==r&&(a=U(a,"symbol"===r?"wide":"narrow"));var s=re(e,o,y.Currency,i,a),c=s.str,l=s.error;if(l)throw St(t,l);return c},t.decorators=[{type:e.Pipe,args:[{name:"currency"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}();function Ee(t){return null==t||""===t||t!=t}var Se=function(){function t(){}return t.prototype.transform=function(e,n,r){if(null==e)return e;if(!this.supports(e))throw St(t,e);return e.slice(n,r)},t.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},t.decorators=[{type:e.Pipe,args:[{name:"slice",pure:!1}]}],t.ctorParameters=function(){return[]},t}(),ke=[de,ge,fe,_e,Se,we,Ce,me,xe,Ot,ve,be],Oe=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[ct,ke],exports:[ct,ke],providers:[{provide:z,useClass:G}]}]}],t.ctorParameters=function(){return[]},t}(),Pe=q,Ae=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[le],exports:[le],providers:[{provide:H,useValue:Pe}]}]}],t.ctorParameters=function(){return[]},t}(),Te=new e.InjectionToken("DocumentToken"),Me="browser",Ie="server",Re="browserWorkerApp",De="browserWorkerUi";var Ne=new e.Version("5.2.0");t.ɵregisterLocaleData=g,t.NgLocaleLocalization=G,t.NgLocalization=z,t.registerLocaleData=g,t.Plural=v,t.NumberFormatStyle=y,t.FormStyle=b,t.TranslationWidth=_,t.FormatWidth=w,t.NumberSymbol=C,t.WeekDay=x,t.getCurrencySymbol=U,t.getLocaleDayPeriods=S,t.getLocaleDayNames=k,t.getLocaleMonthNames=O,t.getLocaleId=E,t.getLocaleEraNames=P,t.getLocaleWeekEndRange=function(t){return B(t)[9]},t.getLocaleFirstDayOfWeek=function(t){return B(t)[8]},t.getLocaleDateFormat=A,t.getLocaleDateTimeFormat=M,t.getLocaleExtraDayPeriodRules=L,t.getLocaleExtraDayPeriods=j,t.getLocalePluralCase=D,t.getLocaleTimeFormat=T,t.getLocaleNumberSymbol=I,t.getLocaleNumberFormat=R,t.getLocaleCurrencyName=function(t){return B(t)[16]||null},t.getLocaleCurrencySymbol=function(t){return B(t)[15]||null},t.ɵparseCookieValue=function(t,e){e=encodeURIComponent(e);for(var n=0,r=t.split(";");n<r.length;n++){var i=r[n],o=i.indexOf("="),a=-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],s=a[1];if(a[0].trim()===e)return decodeURIComponent(s)}return null},t.CommonModule=Oe,t.DeprecatedI18NPipesModule=Ae,t.NgClass=Y,t.NgForOf=X,t.NgForOfContext=$,t.NgIf=Z,t.NgIfContext=J,t.NgPlural=it,t.NgPluralCase=ot,t.NgStyle=at,t.NgSwitch=et,t.NgSwitchCase=nt,t.NgSwitchDefault=rt,t.NgTemplateOutlet=st,t.NgComponentOutlet=K,t.DOCUMENT=Te,t.AsyncPipe=de,t.DatePipe=Ot,t.I18nPluralPipe=ve,t.I18nSelectPipe=be,t.JsonPipe=_e,t.LowerCasePipe=fe,t.CurrencyPipe=xe,t.DecimalPipe=we,t.PercentPipe=Ce,t.SlicePipe=Se,t.UpperCasePipe=ge,t.TitleCasePipe=me,t.DeprecatedDatePipe=qt,t.DeprecatedCurrencyPipe=ce,t.DeprecatedDecimalPipe=ae,t.DeprecatedPercentPipe=se,t.ɵPLATFORM_BROWSER_ID=Me,t.ɵPLATFORM_SERVER_ID=Ie,t.ɵPLATFORM_WORKER_APP_ID=Re,t.ɵPLATFORM_WORKER_UI_ID=De,t.isPlatformBrowser=function(t){return t===Me},t.isPlatformServer=function(t){return t===Ie},t.isPlatformWorkerApp=function(t){return t===Re},t.isPlatformWorkerUi=function(t){return t===De},t.VERSION=Ne,t.PlatformLocation=o,t.LOCATION_INITIALIZED=a,t.LocationStrategy=s,t.APP_BASE_HREF=c,t.HashLocationStrategy=p,t.PathLocationStrategy=h,t.Location=l,t.ɵe=ct,t.ɵd=B,t.ɵa=H,t.ɵb=q,t.ɵg=le,t.ɵf=ke,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core")):i((r.ng=r.ng||{},r.ng.common={}),r.ng.core)},{"@angular/core":57}],56:[function(t,e,n){var r;r=this,function(t){"use strict";var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function n(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t};var i=M("Inject",function(t){return{token:t}}),o=M("InjectionToken",function(t){return{_desc:t}});var a=M("Attribute",function(t){return{attributeName:t}});var s=M("ContentChildren",function(t,e){return void 0===e&&(e={}),r({selector:t,first:!1,isViewQuery:!1,descendants:!1},e)}),c=M("ContentChild",function(t,e){return void 0===e&&(e={}),r({selector:t,first:!0,isViewQuery:!1,descendants:!0},e)}),l=M("ViewChildren",function(t,e){return void 0===e&&(e={}),r({selector:t,first:!1,isViewQuery:!0,descendants:!0},e)}),u=M("ViewChild",function(t,e){return r({selector:t,first:!0,isViewQuery:!0,descendants:!0},e)});var p=M("Directive",function(t){return void 0===t&&(t={}),t});var h={Emulated:0,Native:1,None:2};h[h.Emulated]="Emulated",h[h.Native]="Native",h[h.None]="None";var d={OnPush:0,Default:1};d[d.OnPush]="OnPush",d[d.Default]="Default";var f=M("Component",function(t){return void 0===t&&(t={}),r({changeDetection:d.Default},t)});var m=M("Pipe",function(t){return r({pure:!0},t)});var g=M("Input",function(t){return{bindingPropertyName:t}});var y=M("Output",function(t){return{bindingPropertyName:t}});var v=M("HostBinding",function(t){return{hostPropertyName:t}});var b=M("HostListener",function(t,e){return{eventName:t,args:e}});var _=M("NgModule",function(t){return t});var w={name:"custom-elements"},C={name:"no-errors-schema"},x=M("Optional"),E=M("Injectable"),S=M("Self"),k=M("SkipSelf"),O=M("Host"),P=Function,A={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};A[A.NONE]="NONE",A[A.HTML]="HTML",A[A.STYLE]="STYLE",A[A.SCRIPT]="SCRIPT",A[A.URL]="URL",A[A.RESOURCE_URL]="RESOURCE_URL";var T={Error:0,Warning:1,Ignore:2};function M(t,e){var n=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=e?e.apply(void 0,n):{};return r({ngMetadataName:t},o)};return n.isTypeOf=function(e){return e&&e.ngMetadataName===t},n.ngMetadataName=t,n}T[T.Error]="Error",T[T.Warning]="Warning",T[T.Ignore]="Ignore";var I=Object.freeze({Inject:function(){},createInject:i,createInjectionToken:o,Attribute:function(){},createAttribute:a,Query:function(){},createContentChildren:s,createContentChild:c,createViewChildren:l,createViewChild:u,Directive:function(){},createDirective:p,Component:function(){},ViewEncapsulation:h,ChangeDetectionStrategy:d,createComponent:f,Pipe:function(){},createPipe:m,Input:function(){},createInput:g,Output:function(){},createOutput:y,HostBinding:function(){},createHostBinding:v,HostListener:function(){},createHostListener:b,NgModule:function(){},createNgModule:_,ModuleWithProviders:function(){},SchemaMetadata:function(){},CUSTOM_ELEMENTS_SCHEMA:w,NO_ERRORS_SCHEMA:C,createOptional:x,createInjectable:E,createSelf:S,createSkipSelf:k,createHost:O,Type:P,SecurityContext:A,NodeFlags:{None:0,TypeElement:1,TypeText:2,ProjectedTemplate:4,CatRenderNode:3,TypeNgContent:8,TypePipe:16,TypePureArray:32,TypePureObject:64,TypePurePipe:128,CatPureExpression:224,TypeValueProvider:256,TypeClassProvider:512,TypeFactoryProvider:1024,TypeUseExistingProvider:2048,LazyProvider:4096,PrivateProvider:8192,TypeDirective:16384,Component:32768,CatProviderNoDirective:3840,CatProvider:20224,OnInit:65536,OnDestroy:131072,DoCheck:262144,OnChanges:524288,AfterContentInit:1048576,AfterContentChecked:2097152,AfterViewInit:4194304,AfterViewChecked:8388608,EmbeddedViews:16777216,ComponentView:33554432,TypeContentQuery:67108864,TypeViewQuery:134217728,StaticQuery:268435456,DynamicQuery:536870912,CatQuery:201326592,Types:201347067},DepFlags:{None:0,SkipSelf:1,Optional:2,Value:8},ArgumentType:{Inline:0,Dynamic:1},BindingFlags:{TypeElementAttribute:1,TypeElementClass:2,TypeElementStyle:4,TypeProperty:8,SyntheticProperty:16,SyntheticHostProperty:32,CatSyntheticProperty:48,Types:15},QueryBindingType:{First:0,All:1},QueryValueType:{ElementRef:0,RenderElement:1,TemplateRef:2,ViewContainerRef:3,Provider:4},ViewFlags:{None:0,OnPush:2},MissingTranslationStrategy:T,MetadataFactory:function(){},Route:function(){}}),R=/-+([a-z0-9])/g;function D(t,e){return N(t,":",e)}function N(t,e,n){var r=t.indexOf(e);return-1==r?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function L(t,e,n){return Array.isArray(t)?e.visitArray(t,n):"object"==typeof(r=t)&&null!==r&&Object.getPrototypeOf(r)===Y?e.visitStringMap(t,n):null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t?e.visitPrimitive(t,n):e.visitOther(t,n);var r}function j(t){return null!==t&&void 0!==t}function F(t){return void 0===t?null:t}var V=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return t.map(function(t){return L(t,n,e)})},t.prototype.visitStringMap=function(t,e){var n=this,r={};return Object.keys(t).forEach(function(i){r[i]=L(t[i],n,e)}),r},t.prototype.visitPrimitive=function(t,e){return t},t.prototype.visitOther=function(t,e){return t},t}(),B=function(t){if(Q(t))throw new Error("Illegal state: value cannot be a promise");return t},U=function(t,e){return Q(t)?t.then(e):e(t)},H=function(t){return t.some(Q)?Promise.all(t):t};function z(t,e){var n=Error(t);return n[W]=!0,e&&(n[G]=e),n}var W="ngSyntaxError",G="ngParseErrors";function q(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}var Y=Object.getPrototypeOf({});function K(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 i=t.charCodeAt(n+1);i>=56320&&i<=57343&&(n++,r=(r-55296<<10)+i-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 $(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map($).join(", ")+"]";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 X(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")?t():t}function Q(t){return!!t&&"function"==typeof t.then}var Z=function(){return function(t){this.full=t;var e=t.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}}(),J=new Z("5.2.0"),tt=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}(),et=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}(),nt=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}(),rt=function(){function t(t,e,n,r,i,o){this.name=t,this.type=e,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o,this.isAnimation=this.type===ft.Animation}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},t}(),it=function(){function t(e,n,r,i,o){this.name=e,this.target=n,this.phase=r,this.handler=i,this.sourceSpan=o,this.fullName=t.calcFullName(this.name,this.target,this.phase),this.isAnimation=!!this.phase}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)},t}(),ot=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}(),at=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}(),st=function(){function t(t,e,n,r,i,o,a,s,c,l,u,p,h){this.name=t,this.attrs=e,this.inputs=n,this.outputs=r,this.references=i,this.directives=o,this.providers=a,this.hasViewContainer=s,this.queryMatches=c,this.children=l,this.ngContentIndex=u,this.sourceSpan=p,this.endSourceSpan=h}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),ct=function(){function t(t,e,n,r,i,o,a,s,c,l,u){this.attrs=t,this.outputs=e,this.references=n,this.variables=r,this.directives=i,this.providers=o,this.hasViewContainer=a,this.queryMatches=s,this.children=c,this.ngContentIndex=l,this.sourceSpan=u}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}(),lt=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}(),ut=function(){function t(t,e,n,r,i,o){this.directive=t,this.inputs=e,this.hostProperties=n,this.hostEvents=r,this.contentQueryStartId=i,this.sourceSpan=o}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),pt=function(){function t(t,e,n,r,i,o,a){this.token=t,this.multiProvider=e,this.eager=n,this.providers=r,this.providerType=i,this.lifecycleHooks=o,this.sourceSpan=a}return t.prototype.visit=function(t,e){return null},t}(),ht={PublicService:0,PrivateService:1,Component:2,Directive:3,Builtin:4};ht[ht.PublicService]="PublicService",ht[ht.PrivateService]="PrivateService",ht[ht.Component]="Component",ht[ht.Directive]="Directive",ht[ht.Builtin]="Builtin";var dt=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}(),ft={Property:0,Attribute:1,Class:2,Style:3,Animation:4};ft[ft.Property]="Property",ft[ft.Attribute]="Attribute",ft[ft.Class]="Class",ft[ft.Style]="Style",ft[ft.Animation]="Animation";var mt=function(){function t(){}return t.prototype.visitNgContent=function(t,e){},t.prototype.visitEmbeddedTemplate=function(t,e){},t.prototype.visitElement=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.prototype.visitBoundText=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitDirective=function(t,e){},t.prototype.visitDirectiveProperty=function(t,e){},t}(),gt=function(t){function e(){return t.call(this)||this}return n(e,t),e.prototype.visitEmbeddedTemplate=function(t,e){return this.visitChildren(e,function(e){e(t.attrs),e(t.references),e(t.variables),e(t.directives),e(t.providers),e(t.children)})},e.prototype.visitElement=function(t,e){return this.visitChildren(e,function(e){e(t.attrs),e(t.inputs),e(t.outputs),e(t.references),e(t.directives),e(t.providers),e(t.children)})},e.prototype.visitDirective=function(t,e){return this.visitChildren(e,function(e){e(t.inputs),e(t.hostProperties),e(t.hostEvents)})},e.prototype.visitChildren=function(t,e){var n=[],r=this;return e(function(e){e&&e.length&&n.push(yt(r,e,t))}),[].concat.apply([],n)},e}(mt);function yt(t,e,n){void 0===n&&(n=null);var r=[],i=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=i(t);e&&r.push(e)}),r}var vt=function(){return function(t){var e=void 0===t?{}:t,n=e.defaultEncapsulation,r=void 0===n?h.Emulated:n,i=e.useJit,o=void 0===i||i,a=e.jitDevMode,s=void 0!==a&&a,c=e.missingTranslation,l=void 0===c?null:c,u=e.enableLegacyTemplate,p=e.preserveWhitespaces,d=e.strictInjectionParameters;this.defaultEncapsulation=r,this.useJit=!!o,this.jitDevMode=!!s,this.missingTranslation=l,this.enableLegacyTemplate=!0===u,this.preserveWhitespaces=bt(F(p)),this.strictInjectionParameters=!0===d}}();function bt(t,e){return void 0===e&&(e=!0),null===t?e:t}var _t=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}(),wt=function(){function t(){this.cache=new Map}return t.prototype.get=function(t,e,n){var r='"'+t+'".'+e+((n=n||[]).length?"."+n.join("."):""),i=this.cache.get(r);return i||(i=new _t(t,e,n),this.cache.set(r,i)),i},t}(),Ct=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function xt(t){return t.replace(/\W/g,"_")}var Et=0;function St(t){if(!t||!t.reference)return null;var e=t.reference;if(e instanceof _t)return e.name;if(e.__anonymousType)return e.__anonymousType;var n=$(e);return n.indexOf("(")>=0?(n="anonymous_"+Et++,e.__anonymousType=n):n=xt(n),n}function kt(t){var e=t.reference;return e instanceof _t?e.filePath:"./"+$(e)}function Ot(t,e){return"View_"+St({reference:t})+"_"+e}function Pt(t){return"RenderType_"+St({reference:t})}function At(t){return"HostView_"+St({reference:t})}function Tt(t){return St({reference:t})+"NgFactory"}var Mt={Pipe:0,Directive:1,NgModule:2,Injectable:3};function It(t){return null!=t.value?xt(t.value):St(t.identifier)}function Rt(t){return null!=t.identifier?t.identifier.reference:t.value}Mt[Mt.Pipe]="Pipe",Mt[Mt.Directive]="Directive",Mt[Mt.NgModule]="NgModule",Mt[Mt.Injectable]="Injectable";var Dt=function(){return function(t){var e=void 0===t?{}:t,n=e.moduleUrl,r=e.styles,i=e.styleUrls;this.moduleUrl=n||null,this.styles=Bt(r),this.styleUrls=Bt(i)}}(),Nt=function(){function t(t){var e=t.encapsulation,n=t.template,r=t.templateUrl,i=t.htmlAst,o=t.styles,a=t.styleUrls,s=t.externalStylesheets,c=t.animations,l=t.ngContentSelectors,u=t.interpolation,p=t.isInline,h=t.preserveWhitespaces;if(this.encapsulation=e,this.template=n,this.templateUrl=r,this.htmlAst=i,this.styles=Bt(o),this.styleUrls=Bt(a),this.externalStylesheets=Bt(s),this.animations=c?Ht(c):[],this.ngContentSelectors=l||[],u&&2!=u.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=u,this.isInline=p,this.preserveWhitespaces=h}return t.prototype.toSummary=function(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},t}(),Lt=function(){function t(t){var e=t.isHost,n=t.type,r=t.isComponent,i=t.selector,o=t.exportAs,a=t.changeDetection,s=t.inputs,c=t.outputs,l=t.hostListeners,u=t.hostProperties,p=t.hostAttributes,h=t.providers,d=t.viewProviders,f=t.queries,m=t.guards,g=t.viewQueries,y=t.entryComponents,v=t.template,b=t.componentViewType,_=t.rendererType,w=t.componentFactory;this.isHost=!!e,this.type=n,this.isComponent=r,this.selector=i,this.exportAs=o,this.changeDetection=a,this.inputs=s,this.outputs=c,this.hostListeners=l,this.hostProperties=u,this.hostAttributes=p,this.providers=Bt(h),this.viewProviders=Bt(d),this.queries=Bt(f),this.guards=m,this.viewQueries=Bt(g),this.entryComponents=Bt(y),this.template=v,this.componentViewType=b,this.rendererType=_,this.componentFactory=w}return t.create=function(e){var n=e.isHost,r=e.type,i=e.isComponent,o=e.selector,a=e.exportAs,s=e.changeDetection,c=e.inputs,l=e.outputs,u=e.host,p=e.providers,h=e.viewProviders,d=e.queries,f=e.guards,m=e.viewQueries,g=e.entryComponents,y=e.template,v=e.componentViewType,b=e.rendererType,_=e.componentFactory,w={},C={},x={};null!=u&&Object.keys(u).forEach(function(t){var e=u[t],n=t.match(Ct);null===n?x[t]=e:null!=n[1]?C[n[1]]=e:null!=n[2]&&(w[n[2]]=e)});var E={};null!=c&&c.forEach(function(t){var e=D(t,[t,t]);E[e[0]]=e[1]});var S={};return null!=l&&l.forEach(function(t){var e=D(t,[t,t]);S[e[0]]=e[1]}),new t({isHost:n,type:r,isComponent:!!i,selector:o,exportAs:a,changeDetection:s,inputs:E,outputs:S,hostListeners:w,hostProperties:C,hostAttributes:x,providers:p,viewProviders:h,queries:d,guards:f,viewQueries:m,entryComponents:g,template:y,componentViewType:v,rendererType:b,componentFactory:_})},t.prototype.toSummary=function(){return{summaryKind:Mt.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,guards:this.guards,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}(),jt=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:Mt.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),Ft=function(){function t(t){var e=t.type,n=t.providers,r=t.declaredDirectives,i=t.exportedDirectives,o=t.declaredPipes,a=t.exportedPipes,s=t.entryComponents,c=t.bootstrapComponents,l=t.importedModules,u=t.exportedModules,p=t.schemas,h=t.transitiveModule,d=t.id;this.type=e||null,this.declaredDirectives=Bt(r),this.exportedDirectives=Bt(i),this.declaredPipes=Bt(o),this.exportedPipes=Bt(a),this.providers=Bt(n),this.entryComponents=Bt(s),this.bootstrapComponents=Bt(c),this.importedModules=Bt(l),this.exportedModules=Bt(u),this.schemas=Bt(p),this.id=d||null,this.transitiveModule=h||null}return t.prototype.toSummary=function(){var t=this.transitiveModule;return{summaryKind:Mt.NgModule,type:this.type,entryComponents:t.entryComponents,providers:t.providers,modules:t.modules,exportedDirectives:t.exportedDirectives,exportedPipes:t.exportedPipes}},t}(),Vt=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}();function Bt(t){return t||[]}var Ut=function(){return function(t,e){var n=e.useClass,r=e.useValue,i=e.useExisting,o=e.useFactory,a=e.deps,s=e.multi;this.token=t,this.useClass=n||null,this.useValue=r,this.useExisting=i,this.useFactory=o||null,this.dependencies=a||null,this.multi=!!s}}();function Ht(t){return t.reduce(function(t,e){var n=Array.isArray(e)?Ht(e):e;return t.concat(n)},[])}function zt(t){return t.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function Wt(t,e,n){var r;return r=n.isInline?e.type.reference instanceof _t?e.type.reference.filePath+"."+e.type.reference.name+".html":St(t)+"/"+St(e.type)+".html":n.templateUrl,e.type.reference instanceof _t?r:zt(r)}function Gt(t,e){var n=t.moduleUrl.split(/\/\\/g);return zt("css/"+e+n[n.length-1]+".ngstyle.js")}function qt(t){return zt(St(t.type)+"/module.ngfactory.js")}function Yt(t,e){return zt(St(t)+"/"+St(e.type)+".ngfactory.js")}var Kt=function(){function t(t,e){void 0===e&&(e=-1),this.path=t,this.position=e}return Object.defineProperty(t.prototype,"empty",{get:function(){return!this.path||!this.path.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"head",{get:function(){return this.path[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tail",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t.prototype.parentOf=function(t){return t&&this.path[this.path.indexOf(t)-1]},t.prototype.childOf=function(t){return this.path[this.path.indexOf(t)+1]},t.prototype.first=function(t){for(var e=this.path.length-1;e>=0;e--){var n=this.path[e];if(n instanceof t)return n}},t.prototype.push=function(t){this.path.push(t)},t.prototype.pop=function(){return this.path.pop()},t}(),$t=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Xt=function(){function t(t,e,n,r,i){this.switchValue=t,this.type=e,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansion(this,e)},t}(),Qt=function(){function t(t,e,n,r,i){this.value=t,this.expression=e,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansionCase(this,e)},t}(),Zt=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}(),Jt=function(){function t(t,e,n,r,i,o){void 0===i&&(i=null),void 0===o&&(o=null),this.name=t,this.attrs=e,this.children=n,this.sourceSpan=r,this.startSourceSpan=i,this.endSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),te=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}();function ee(t,e,n){void 0===n&&(n=null);var r=[],i=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=i(t);e&&r.push(e)}),r}var ne=function(){function t(){}return t.prototype.visitElement=function(t,e){this.visitChildren(e,function(e){e(t.attrs),e(t.children)})},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){return this.visitChildren(e,function(e){e(t.cases)})},t.prototype.visitExpansionCase=function(t,e){},t.prototype.visitChildren=function(t,e){var n=[],r=this;return e(function(e){e&&n.push(ee(r,e,t))}),[].concat.apply([],n)},t}();function re(t,e){if(null!=e){if(!Array.isArray(e))throw new Error("Expected '"+t+"' to be an array of strings.");for(var n=0;n<e.length;n+=1)if("string"!=typeof e[n])throw new Error("Expected '"+t+"' to be an array of strings.")}}var ie=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function oe(t,e){if(!(null==e||Array.isArray(e)&&2==e.length))throw new Error("Expected '"+t+"' to be an array, [start, end].");if(null!=e){var n=e[0],r=e[1];ie.forEach(function(t){if(t.test(n)||t.test(r))throw new Error("['"+n+"', '"+r+"'] contains unusable interpolation symbol.")})}}var ae=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(oe("interpolation",e),new t(e[0],e[1])):se},t}(),se=new ae("{{","}}"),ce=function(){return function(t,e){this.style=t,this.styleUrls=e}}();function le(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(he);return null===e||"package"==e[1]||"asset"==e[1]}var ue=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,pe=/\/\*(?!#\s*(?:sourceURL|sourceMappingURL)=)[\s\S]+?\*\//g,he=/^([^:/?#]+):/,de={RAW_TEXT:0,ESCAPABLE_RAW_TEXT:1,PARSABLE_DATA:2};function fe(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 me(t){return"ng-container"===fe(t)[1]}function ge(t){return"ng-content"===fe(t)[1]}function ye(t){return"ng-template"===fe(t)[1]}function ve(t){return null===t?null:fe(t)[0]}function be(t,e){return t?":"+t+":"+e:e}de[de.RAW_TEXT]="RAW_TEXT",de[de.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",de[de.PARSABLE_DATA]="PARSABLE_DATA";var _e={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:"‌"},we="";_e.ngsp=we;var Ce="select",xe="link",Ee="rel",Se="href",ke="stylesheet",Oe="style",Pe="script",Ae="ngNonBindable",Te="ngProjectAs";function Me(t){var e=null,n=null,r=null,i=!1,o=null;t.attrs.forEach(function(t){var a=t.name.toLowerCase();a==Ce?e=t.value:a==Se?n=t.value:a==Ee?r=t.value:t.name==Ae?i=!0:t.name==Te&&t.value.length>0&&(o=t.value)}),e=function(t){if(null===t||0===t.length)return"*";return t}(e);var a=t.name.toLowerCase(),s=Ie.OTHER;return ge(a)?s=Ie.NG_CONTENT:a==Oe?s=Ie.STYLE:a==Pe?s=Ie.SCRIPT:a==xe&&r==ke&&(s=Ie.STYLESHEET),new Re(s,e,n,i,o)}var Ie={NG_CONTENT:0,STYLE:1,STYLESHEET:2,SCRIPT:3,OTHER:4};Ie[Ie.NG_CONTENT]="NG_CONTENT",Ie[Ie.STYLE]="STYLE",Ie[Ie.STYLESHEET]="STYLESHEET",Ie[Ie.SCRIPT]="SCRIPT",Ie[Ie.OTHER]="OTHER";var Re=function(){return function(t,e,n,r,i){this.type=t,this.selectAttr=e,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i}}();var De=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 e=this;if(j(t.template)){if(j(t.templateUrl))throw z("'"+$(t.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof t.template)throw z("The template specified for component "+$(t.componentType)+" is not a string")}else{if(!j(t.templateUrl))throw z("No template specified for component "+$(t.componentType));if("string"!=typeof t.templateUrl)throw z("The templateUrl specified for component "+$(t.componentType)+" is not a string")}if(j(t.preserveWhitespaces)&&"boolean"!=typeof t.preserveWhitespaces)throw z("The preserveWhitespaces option for component "+$(t.componentType)+" must be a boolean");return U(this._preParseTemplate(t),function(n){return e._normalizeTemplateMetadata(t,n)})},t.prototype._preParseTemplate=function(t){var e,n,r=this;return null!=t.template?(e=t.template,n=t.moduleUrl):(n=this._urlResolver.resolve(t.moduleUrl,t.templateUrl),e=this._fetch(n)),U(e,function(e){return r._preparseLoadedTemplate(t,e,n)})},t.prototype._preparseLoadedTemplate=function(t,e,n){var r=!!t.template,i=ae.fromArray(t.interpolation),o=this._htmlParser.parse(e,Wt({reference:t.ngModuleType},{type:{reference:t.componentType}},{isInline:r,templateUrl:n}),!0,i);if(o.errors.length>0)throw z("Template parse errors:\n"+o.errors.join("\n"));var a=this._normalizeStylesheet(new Dt({styles:t.styles,moduleUrl:t.moduleUrl})),s=new Ne;ee(s,o.rootNodes);var c=this._normalizeStylesheet(new Dt({styles:s.styles,styleUrls:s.styleUrls,moduleUrl:n}));return{template:e,templateUrl:n,isInline:r,htmlAst:o,styles:a.styles.concat(c.styles),inlineStyleUrls:a.styleUrls.concat(c.styleUrls),styleUrls:this._normalizeStylesheet(new Dt({styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})).styleUrls,ngContentSelectors:s.ngContentSelectors}},t.prototype._normalizeTemplateMetadata=function(t,e){var n=this;return U(this._loadMissingExternalStylesheets(e.styleUrls.concat(e.inlineStyleUrls)),function(r){return n._normalizeLoadedTemplateMetadata(t,e,r)})},t.prototype._normalizeLoadedTemplateMetadata=function(t,e,n){var r=this,i=e.styles.slice();this._inlineStyles(e.inlineStyleUrls,n,i);var o=e.styleUrls,a=o.map(function(t){var e=n.get(t),i=e.styles.slice();return r._inlineStyles(e.styleUrls,n,i),new Dt({moduleUrl:t,styles:i})}),s=t.encapsulation;return null==s&&(s=this._config.defaultEncapsulation),s===h.Emulated&&0===i.length&&0===o.length&&(s=h.None),new Nt({encapsulation:s,template:e.template,templateUrl:e.templateUrl,htmlAst:e.htmlAst,styles:i,styleUrls:o,ngContentSelectors:e.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:e.isInline,externalStylesheets:a,preserveWhitespaces:bt(t.preserveWhitespaces,this._config.preserveWhitespaces)})},t.prototype._inlineStyles=function(t,e,n){var r=this;t.forEach(function(t){var i=e.get(t);i.styles.forEach(function(t){return n.push(t)}),r._inlineStyles(i.styleUrls,e,n)})},t.prototype._loadMissingExternalStylesheets=function(t,e){var n=this;return void 0===e&&(e=new Map),U(H(t.filter(function(t){return!e.has(t)}).map(function(t){return U(n._fetch(t),function(r){var i=n._normalizeStylesheet(new Dt({styles:[r],moduleUrl:t}));return e.set(t,i),n._loadMissingExternalStylesheets(i.styleUrls,e)})})),function(t){return e})},t.prototype._normalizeStylesheet=function(t){var e=this,n=t.moduleUrl,r=t.styleUrls.filter(le).map(function(t){return e._urlResolver.resolve(n,t)}),i=t.styles.map(function(t){var i,o,a,s,c=(i=e._urlResolver,o=n,a=[],s=t.replace(pe,"").replace(ue,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[1]||t[2];return le(n)?(a.push(i.resolve(o,n)),""):t[0]}),new ce(s,a));return r.push.apply(r,c.styleUrls),c.style});return new Dt({styles:i,styleUrls:r,moduleUrl:n})},t}(),Ne=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 Ie.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case Ie.STYLE:var r="";t.children.forEach(function(t){t instanceof $t&&(r+=t.value)}),this.styles.push(r);break;case Ie.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,ee(this,t.children),n.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t,e){ee(this,t.cases)},t.prototype.visitExpansionCase=function(t,e){ee(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}(),Le=[u,l,c,s],je=function(){function t(t){this._reflector=t}return t.prototype.isDirective=function(t){var e=this._reflector.annotations(X(t));return e&&e.some(Fe)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=this._reflector.annotations(X(t));if(n){var r=Ve(n,Fe);if(r){var i=this._reflector.propMetadata(t),o=this._reflector.guards(t);return this._mergeWithPropertyMetadata(r,i,o,t)}}if(e)throw new Error("No Directive annotation found on "+$(t));return null},t.prototype._mergeWithPropertyMetadata=function(t,e,n,r){var i=[],o=[],a={},s={};return Object.keys(e).forEach(function(t){var n=Ve(e[t],function(t){return g.isTypeOf(t)});n&&(n.bindingPropertyName?i.push(t+": "+n.bindingPropertyName):i.push(t));var r=Ve(e[t],function(t){return y.isTypeOf(t)});r&&(r.bindingPropertyName?o.push(t+": "+r.bindingPropertyName):o.push(t)),e[t].filter(function(t){return v.isTypeOf(t)}).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>'.");a["["+e.hostPropertyName+"]"]=t}else a["["+t+"]"]=t}),e[t].filter(function(t){return b.isTypeOf(t)}).forEach(function(e){var n=e.args||[];a["("+e.eventName+")"]=t+"("+n.join(",")+")"});var c=Ve(e[t],function(t){return Le.some(function(e){return e.isTypeOf(t)})});c&&(s[t]=c)}),this._merge(t,i,o,a,s,n,r)},t.prototype._extractPublicName=function(t){return D(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,n=new Set,r=[],i=t.length-1;i>=0;i--){var o=t[i],a=this._extractPublicName(o);n.add(a),e.has(a)||(e.add(a),r.push(o))}return r.reverse()},t.prototype._merge=function(t,e,n,i,o,a,s){var c=this._dedupeBindings(t.inputs?t.inputs.concat(e):e),l=this._dedupeBindings(t.outputs?t.outputs.concat(n):n),u=t.host?r({},t.host,i):i,h=t.queries?r({},t.queries,o):o;if(f.isTypeOf(t)){var d=t;return f({selector:d.selector,inputs:c,outputs:l,host:u,exportAs:d.exportAs,moduleId:d.moduleId,queries:h,changeDetection:d.changeDetection,providers:d.providers,viewProviders:d.viewProviders,entryComponents:d.entryComponents,template:d.template,templateUrl:d.templateUrl,styles:d.styles,styleUrls:d.styleUrls,encapsulation:d.encapsulation,animations:d.animations,interpolation:d.interpolation,preserveWhitespaces:t.preserveWhitespaces})}return p({selector:t.selector,inputs:c,outputs:l,host:u,exportAs:t.exportAs,queries:h,providers:t.providers,guards:a})},t}();function Fe(t){return p.isTypeOf(t)||f.isTypeOf(t)}function Ve(t,e){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return t[n];return null}var Be=0,Ue=9,He=10,ze=11,We=12,Ge=13,qe=32,Ye=34,Ke=36,$e=39,Xe=43,Qe=45,Ze=47,Je=59,tn=61,en=62,nn=48,rn=57,on=65,an=69,sn=70,cn=90,ln=95,un=97,pn=101,hn=102,dn=110,fn=114,mn=116,gn=118,yn=122,vn=123,bn=160,_n=96;function wn(t){return t>=Ue&&t<=qe||t==bn}function Cn(t){return nn<=t&&t<=rn}function xn(t){return t>=un&&t<=yn||t>=on&&t<=cn}var En={Character:0,Identifier:1,Keyword:2,String:3,Operator:4,Number:5,Error:6};En[En.Character]="Character",En[En.Identifier]="Identifier",En[En.Keyword]="Keyword",En[En.String]="String",En[En.Operator]="Operator",En[En.Number]="Number",En[En.Error]="Error";var Sn=["var","let","as","null","undefined","true","false","if","else","this"],kn=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new Mn(t),n=[],r=e.scanToken();null!=r;)n.push(r),r=e.scanToken();return n},t}(),On=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==En.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==En.Number},t.prototype.isString=function(){return this.type==En.String},t.prototype.isOperator=function(t){return this.type==En.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==En.Identifier},t.prototype.isKeyword=function(){return this.type==En.Keyword},t.prototype.isKeywordLet=function(){return this.type==En.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==En.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==En.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==En.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==En.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==En.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==En.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==En.Error},t.prototype.toNumber=function(){return this.type==En.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case En.Character:case En.Identifier:case En.Keyword:case En.Operator:case En.String:case En.Error:return this.strValue;case En.Number:return this.numValue.toString();default:return null}},t}();function Pn(t,e){return new On(t,En.Character,e,String.fromCharCode(e))}function An(t,e){return new On(t,En.Operator,0,e)}var Tn=new On(-1,En.Character,0,""),Mn=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?Be:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,n=this.peek,r=this.index;n<=qe;){if(++r>=e){n=Be;break}n=t.charCodeAt(r)}if(this.peek=n,this.index=r,r>=e)return null;if(In(n))return this.scanIdentifier();if(Cn(n))return this.scanNumber(r);var i=r;switch(n){case 46:return this.advance(),Cn(this.peek)?this.scanNumber(i):Pn(i,46);case 40:case 41:case vn:case 125:case 91:case 93:case 44:case 58:case Je:return this.scanCharacter(i,n);case $e:case Ye:return this.scanString();case 35:case Xe:case Qe:case 42:case Ze:case 37:case 94:return this.scanOperator(i,String.fromCharCode(n));case 63:return this.scanComplexOperator(i,"?",46,".");case 60:case en:return this.scanComplexOperator(i,String.fromCharCode(n),tn,"=");case 33:case tn:return this.scanComplexOperator(i,String.fromCharCode(n),tn,"=",tn,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case bn:for(;wn(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(),Pn(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),An(t,e)},t.prototype.scanComplexOperator=function(t,e,n,r,i,o){this.advance();var a=e;return this.peek==n&&(this.advance(),a+=r),null!=i&&this.peek==i&&(this.advance(),a+=o),An(t,a)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();Dn(this.peek);)this.advance();var e,n,r=this.input.substring(t,this.index);return Sn.indexOf(r)>-1?(n=r,new On(t,En.Keyword,0,n)):(e=r,new On(t,En.Identifier,0,e))},t.prototype.scanNumber=function(t){var e,n,r=this.index===t;for(this.advance();;){if(Cn(this.peek));else if(46==this.peek)r=!1;else{if((n=this.peek)!=pn&&n!=an)break;if(this.advance(),((e=this.peek)==Qe||e==Xe)&&this.advance(),!Cn(this.peek))return this.error("Invalid exponent",-1);r=!1}this.advance()}var i,o=this.input.substring(t,this.index),a=r?function(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}(o):parseFloat(o);return i=a,new On(t,En.Number,i,"")},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var n="",r=this.index,i=this.input;this.peek!=e;)if(92==this.peek){n+=i.substring(r,this.index),this.advance();var o=void 0;if(this.peek=this.peek,117==this.peek){var a=i.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(a))return this.error("Invalid unicode escape [\\u"+a+"]",0);o=parseInt(a,16);for(var s=0;s<5;s++)this.advance()}else o=Ln(this.peek),this.advance();n+=String.fromCharCode(o),r=this.index}else{if(this.peek==Be)return this.error("Unterminated quote",0);this.advance()}var c,l=i.substring(r,this.index);return this.advance(),c=n+l,new On(t,En.String,0,c)},t.prototype.error=function(t,e){var n,r,i=this.index+e;return n=i,r="Lexer Error: "+t+" at column "+i+" in expression ["+this.input+"]",new On(n,En.Error,0,r)},t}();function In(t){return un<=t&&t<=yn||on<=t&&t<=cn||t==ln||t==Ke}function Rn(t){if(0==t.length)return!1;var e=new Mn(t);if(!In(e.peek))return!1;for(e.advance();e.peek!==Be;){if(!Dn(e.peek))return!1;e.advance()}return!0}function Dn(t){return xn(t)||Cn(t)||t==ln||t==Ke}function Nn(t){return t===$e||t===Ye||t===_n}function Ln(t){switch(t){case dn:return He;case hn:return We;case fn:return Ge;case mn:return Ue;case gn:return ze;default:return t}}var jn=function(){return function(t,e,n,r){this.input=e,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+t+" "+n+" ["+e+"] in "+r}}(),Fn=function(){return function(t,e){this.start=t,this.end=e}}(),Vn=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}(),Bn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.prefix=n,o.uninterpretedExpression=r,o.location=i,o}return n(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}(Vn),Un=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(Vn),Hn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(Vn),zn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(Vn),Wn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.condition=n,o.trueExp=r,o.falseExp=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(Vn),Gn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(Vn),qn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.value=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(Vn),Yn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(Vn),Kn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.obj=n,i.key=r,i}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(Vn),$n=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.obj=n,o.key=r,o.value=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(Vn),Xn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.exp=n,o.name=r,o.args=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(Vn),Qn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(Vn),Zn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(Vn),Jn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keys=n,i.values=r,i}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(Vn),tr=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.strings=n,i.expressions=r,i}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(Vn),er=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.operation=n,o.left=r,o.right=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(Vn),nr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(Vn),rr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitNonNullAssert(this,e)},e}(Vn),ir=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.args=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(Vn),or=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.args=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(Vn),ar=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.target=n,i.args=r,i}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(Vn),sr=function(t){function e(e,n,r,i){var o=t.call(this,new Fn(0,null==n?0:n.length))||this;return o.ast=e,o.source=n,o.location=r,o.errors=i,o}return n(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}(Vn),cr=function(){return function(t,e,n,r,i){this.span=t,this.key=e,this.keyIsVar=n,this.name=r,this.expression=i}}(),lr=function(){function t(){}return t.prototype.visitBinary=function(t,e){},t.prototype.visitChain=function(t,e){},t.prototype.visitConditional=function(t,e){},t.prototype.visitFunctionCall=function(t,e){},t.prototype.visitImplicitReceiver=function(t,e){},t.prototype.visitInterpolation=function(t,e){},t.prototype.visitKeyedRead=function(t,e){},t.prototype.visitKeyedWrite=function(t,e){},t.prototype.visitLiteralArray=function(t,e){},t.prototype.visitLiteralMap=function(t,e){},t.prototype.visitLiteralPrimitive=function(t,e){},t.prototype.visitMethodCall=function(t,e){},t.prototype.visitPipe=function(t,e){},t.prototype.visitPrefixNot=function(t,e){},t.prototype.visitNonNullAssert=function(t,e){},t.prototype.visitPropertyRead=function(t,e){},t.prototype.visitPropertyWrite=function(t,e){},t.prototype.visitQuote=function(t,e){},t.prototype.visitSafeMethodCall=function(t,e){},t.prototype.visitSafePropertyRead=function(t,e){},t}(),ur=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.visitNonNullAssert=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}(),pr=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t,e){return t},t.prototype.visitInterpolation=function(t,e){return new tr(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t,e){return new Qn(t.span,t.value)},t.prototype.visitPropertyRead=function(t,e){return new Gn(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t,e){return new qn(t.span,t.receiver.visit(this),t.name,t.value.visit(this))},t.prototype.visitSafePropertyRead=function(t,e){return new Yn(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t,e){return new ir(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t,e){return new or(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t,e){return new ar(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t,e){return new Zn(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t,e){return new Jn(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t,e){return new er(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t,e){return new nr(t.span,t.expression.visit(this))},t.prototype.visitNonNullAssert=function(t,e){return new rr(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t,e){return new Wn(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t,e){return new Xn(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t,e){return new Kn(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t,e){return new $n(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 zn(t.span,this.visitAll(t.expressions))},t.prototype.visitQuote=function(t,e){return new Bn(t.span,t.prefix,t.uninterpretedExpression,t.location)},t}();var hr=function(){return function(t,e,n){this.strings=t,this.expressions=e,this.offsets=n}}(),dr=function(){return function(t,e,n){this.templateBindings=t,this.warnings=e,this.errors=n}}();function fr(t){var e=q(t.start)+"([\\s\\S]*?)"+q(t.end);return new RegExp(e,"g")}var mr=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,n){void 0===n&&(n=se),this._checkNoInterpolation(t,e,n);var r=this._stripComments(t),i=this._lexer.tokenize(this._stripComments(t)),o=new gr(t,e,i,r.length,!0,this.errors,t.length-r.length).parseChain();return new sr(o,t,e,this.errors)},t.prototype.parseBinding=function(t,e,n){void 0===n&&(n=se);var r=this._parseBindingAst(t,e,n);return new sr(r,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,n){void 0===n&&(n=se);var r=this._parseBindingAst(t,e,n),i=yr.check(r);return i.length>0&&this._reportError("Host binding expression cannot contain "+i.join(" "),t,e),new sr(r,t,e,this.errors)},t.prototype._reportError=function(t,e,n,r){this.errors.push(new jn(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 i=this._stripComments(t),o=this._lexer.tokenize(i);return new gr(t,e,o,i.length,!1,this.errors,t.length-i.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(!Rn(r))return null;var i=t.substring(n+1);return new Bn(new Fn(0,t.length),r,i,e)},t.prototype.parseTemplateBindings=function(t,e,n){var r=this._lexer.tokenize(e);if(t){var i=this._lexer.tokenize(t).map(function(t){return t.index=0,t});r.unshift.apply(r,i)}return new gr(e,n,r,e.length,!1,this.errors,0).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,n){void 0===n&&(n=se);var r=this.splitInterpolation(t,e,n);if(null==r)return null;for(var i=[],o=0;o<r.expressions.length;++o){var a=r.expressions[o],s=this._stripComments(a),c=this._lexer.tokenize(s),l=new gr(t,e,c,s.length,!1,this.errors,r.offsets[o]+(a.length-s.length)).parseChain();i.push(l)}return new sr(new tr(new Fn(0,null==t?0:t.length),r.strings,i),t,e,this.errors)},t.prototype.splitInterpolation=function(t,e,n){void 0===n&&(n=se);var r=fr(n),i=t.split(r);if(i.length<=1)return null;for(var o=[],a=[],s=[],c=0,l=0;l<i.length;l++){var u=i[l];l%2==0?(o.push(u),c+=u.length):u.trim().length>0?(c+=n.start.length,a.push(u),s.push(c),c+=u.length+n.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",t,"at column "+this._findInterpolationErrorColumn(i,l,n)+" in",e),a.push("$implict"),s.push(c))}return new hr(o,a,s)},t.prototype.wrapLiteralPrimitive=function(t,e){return new sr(new Qn(new Fn(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),i=t.charCodeAt(n+1);if(r===Ze&&i==Ze&&null==e)return n;e===r?e=null:null==e&&Nn(r)&&(e=r)}return null},t.prototype._checkNoInterpolation=function(t,e,n){var r=fr(n),i=t.split(r);i.length>1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(i,1,n)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,n){for(var r="",i=0;i<e;i++)r+=i%2==0?t[i]:""+n.start+t[i]+n.end;return r.length},t}(),gr=function(){function t(t,e,n,r,i,o,a){this.input=t,this.location=e,this.tokens=n,this.inputLength=r,this.parseAction=i,this.errors=o,this.offset=a,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]:Tn},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 Fn(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(Je))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(Je););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==t.length?new Un(this.span(e)):1==t.length?t[0]:new zn(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 Xn(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 i=this.inputIndex,o=this.input.substring(t,i);this.error("Conditional expression "+o+" requires all 3 expressions"),r=new Un(this.span(t))}return new Wn(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 er(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 er(this.span(t.span.start),"&&",t,e)}return t},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==En.Operator;){var e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();var n=this.parseRelational();t=new er(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==En.Operator;){var e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();var n=this.parseAdditive();t=new er(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==En.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var n=this.parseMultiplicative();t=new er(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==En.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();t=new er(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==En.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 er(this.span(t),e,new Qn(new Fn(t,t),0),n);case"!":return this.advance(),n=this.parsePrefix(),new nr(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 $n(this.span(t.span.start),t,e,n)}else t=new Kn(this.span(t.span.start),t,e)}else if(this.optionalCharacter(40)){this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(41),t=new ar(this.span(t.span.start),t,r)}else{if(!this.optionalOperator("!"))return t;t=new rr(this.span(t.span.start),t)}},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 Qn(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new Qn(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new Qn(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new Qn(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new Hn(this.span(t));if(this.optionalCharacter(91)){this.rbracketsExpected++;var n=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new Zn(this.span(t),n)}if(this.next.isCharacter(vn))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new Hn(this.span(t)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new Qn(this.span(t),r)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new Qn(this.span(t),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new Un(this.span(t))):(this.error("Unexpected token "+this.next),new Un(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(vn),!this.optionalCharacter(125)){this.rbracesExpected++;do{var r=this.next.isString(),i=this.expectIdentifierOrKeywordOrString();t.push({key:i,quoted:r}),this.expectCharacter(58),e.push(this.parsePipe())}while(this.optionalCharacter(44));this.rbracesExpected--,this.expectCharacter(125)}return new Jn(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 i=this.parseCallArguments();this.expectCharacter(41),this.rparensExpected--;var o=this.span(n);return e?new or(o,t,r,i):new ir(o,t,r,i)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new Un(this.span(n))):new Yn(this.span(n),t,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new Un(this.span(n));var a=this.parseConditional();return new qn(this.span(n),t,r,a)}return new Gn(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;this.index<this.tokens.length;){var n=this.inputIndex,r=this.peekKeywordLet();r&&this.advance();var i=this.expectTemplateBindingKey(),o=i;r||(null==e?e=o:o=e+o[0].toUpperCase()+o.substring(1)),this.optionalCharacter(58);var a=null,s=null;if(r)a=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.peekKeywordAs()){var c=this.inputIndex;this.advance(),a=i,o=this.expectTemplateBindingKey(),r=!0}else if(this.next!==Tn&&!this.peekKeywordLet()){var l=this.inputIndex,u=this.parsePipe(),p=this.input.substring(l-this.offset,this.inputIndex-this.offset);s=new sr(u,p,this.location,this.errors)}if(t.push(new cr(this.span(n),o,r,a,s)),this.peekKeywordAs()&&!r){c=this.inputIndex;this.advance();var h=this.expectTemplateBindingKey();t.push(new cr(this.span(c),h,!0,o,null))}this.optionalCharacter(Je)||this.optionalCharacter(44)}return new dr(t,[],this.errors)},t.prototype.error=function(t,e){void 0===e&&(e=null),this.errors.push(new jn(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(Je)&&(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 jn(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next},t}(),yr=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.visitNonNullAssert=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}(),vr=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,i=this.offset,o=this.line,a=this.col;i>0&&e<0;){if(i--,e++,(c=n.charCodeAt(i))==He){o--;var s=n.substr(0,i-1).lastIndexOf(String.fromCharCode(He));a=s>0?i-s:i}else a--}for(;i<r&&e>0;){var c=n.charCodeAt(i);i++,e--,c==He?(o++,a=0):a++}return new t(this.file,i,o,a)},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 i=r,o=0,a=0;o<t&&r>0&&(o++,"\n"!=n[--r]||++a!=e););for(o=0,a=0;o<t&&i<n.length-1&&(o++,"\n"!=n[++i]||++a!=e););return{before:n.substring(r,this.offset),after:n.substring(this.offset,i+1)}}return null},t}(),br=function(){return function(t,e){this.content=t,this.url=e}}(),_r=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}(),wr={WARNING:0,ERROR:1};wr[wr.WARNING]="WARNING",wr[wr.ERROR]="ERROR";var Cr=function(){function t(t,e,n){void 0===n&&(n=wr.ERROR),this.span=t,this.msg=e,this.level=n}return t.prototype.contextualMessage=function(){var t=this.span.start.getContext(100,3);return t?this.msg+' ("'+t.before+"["+wr[this.level]+" ->]"+t.after+'")':this.msg},t.prototype.toString=function(){var t=this.span.details?", "+this.span.details:"";return this.contextualMessage()+": "+this.span.start+t},t}();function xr(t,e){var n=kt(e),r=null!=n?"in "+t+" "+St(e)+" in "+n:"in "+t+" "+St(e),i=new br("",r);return new _r(new vr(i,-1,-1,-1),new vr(i,-1,-1,-1))}var Er={TAG_OPEN_START:0,TAG_OPEN_END:1,TAG_OPEN_END_VOID:2,TAG_CLOSE:3,TEXT:4,ESCAPABLE_RAW_TEXT:5,RAW_TEXT:6,COMMENT_START:7,COMMENT_END:8,CDATA_START:9,CDATA_END:10,ATTR_NAME:11,ATTR_VALUE:12,DOC_TYPE:13,EXPANSION_FORM_START:14,EXPANSION_CASE_VALUE:15,EXPANSION_CASE_EXP_START:16,EXPANSION_CASE_EXP_END:17,EXPANSION_FORM_END:18,EOF:19};Er[Er.TAG_OPEN_START]="TAG_OPEN_START",Er[Er.TAG_OPEN_END]="TAG_OPEN_END",Er[Er.TAG_OPEN_END_VOID]="TAG_OPEN_END_VOID",Er[Er.TAG_CLOSE]="TAG_CLOSE",Er[Er.TEXT]="TEXT",Er[Er.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",Er[Er.RAW_TEXT]="RAW_TEXT",Er[Er.COMMENT_START]="COMMENT_START",Er[Er.COMMENT_END]="COMMENT_END",Er[Er.CDATA_START]="CDATA_START",Er[Er.CDATA_END]="CDATA_END",Er[Er.ATTR_NAME]="ATTR_NAME",Er[Er.ATTR_VALUE]="ATTR_VALUE",Er[Er.DOC_TYPE]="DOC_TYPE",Er[Er.EXPANSION_FORM_START]="EXPANSION_FORM_START",Er[Er.EXPANSION_CASE_VALUE]="EXPANSION_CASE_VALUE",Er[Er.EXPANSION_CASE_EXP_START]="EXPANSION_CASE_EXP_START",Er[Er.EXPANSION_CASE_EXP_END]="EXPANSION_CASE_EXP_END",Er[Er.EXPANSION_FORM_END]="EXPANSION_FORM_END",Er[Er.EOF]="EOF";var Sr=function(){return function(t,e,n){this.type=t,this.parts=e,this.sourceSpan=n}}(),kr=function(t){function e(e,n,r){var i=t.call(this,r,e)||this;return i.tokenType=n,i}return n(e,t),e}(Cr),Or=function(){return function(t,e){this.tokens=t,this.errors=e}}();var Pr=/\r\n?/g;function Ar(t){return'Unexpected character "'+(t===Be?"EOF":String.fromCharCode(t))+'"'}function Tr(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or  "&#x<hex>;" syntax'}var Mr=function(){return function(t){this.error=t}}(),Ir=function(){function t(t,e,n,r){void 0===r&&(r=se),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(Pr,"\n")},t.prototype.tokenize=function(){for(;this._peek!==Be;){var t=this._getLocation();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(t):this._attemptCharCode(Qe)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(Ze)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(t){if(!(t instanceof Mr))throw t;this.errors.push(t.error)}}return this._beginToken(Er.EOF),this._endToken([]),new Or(function(t){for(var e=[],n=void 0,r=0;r<t.length;r++){var i=t[r];n&&n.type==Er.TEXT&&i.type==Er.TEXT?(n.parts[0]+=i.parts[0],n.sourceSpan.end=i.sourceSpan.end):(n=i,e.push(n))}return e}(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(jr(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(((t=this._peek)===tn||xn(t)||Cn(t))&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;var t;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 vr(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 _r(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 Sr(this._currentTokenType,t,new _r(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 kr(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new Mr(n)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(Ar(Be),this._getSpan());this._peek===He?(this._line++,this._column=0):this._peek!==He&&this._peek!==Ge&&this._column++,this._index++,this._peek=this._index>=this._length?Be:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?Be:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t&&(this._advance(),!0)},t.prototype._attemptCharCodeCaseInsensitive=function(t){return e=this._peek,n=t,Fr(e)==Fr(n)&&(this._advance(),!0);var e,n},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(Ar(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(Ar(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(Ar(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(Lr),this._peek!=Je)return this._restorePosition(e),"&";this._advance();var n=this._input.substring(t.offset+1,this._index-1),r=_e[n];if(!r)throw this._createError(Tr(n),this._getSpan(t));return r}var i=this._attemptCharCode(120)||this._attemptCharCode(88),o=this._getLocation().offset;if(this._attemptCharCodeUntilFn(Nr),this._peek!=Je)throw this._createError(Ar(this._peek),this._getSpan());this._advance();var a=this._input.substring(o,this._index-1);try{var s=parseInt(a,i?16:10);return String.fromCharCode(s)}catch(e){var c=this._input.substring(t.offset+1,this._index-1);throw this._createError(Tr(c),this._getSpan(t))}},t.prototype._consumeRawText=function(t,e,n){var r,i=this._getLocation();this._beginToken(t?Er.ESCAPABLE_RAW_TEXT:Er.RAW_TEXT,i);for(var o=[];r=this._getLocation(),!this._attemptCharCode(e)||!n();)for(this._index>r.offset&&o.push(this._input.substring(r.offset,this._index));this._peek!==e;)o.push(this._readChar(t));return this._endToken([this._processCarriageReturns(o.join(""))],r)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(Er.COMMENT_START,t),this._requireCharCode(Qe),this._endToken([]);var n=this._consumeRawText(!1,Qe,function(){return e._attemptStr("->")});this._beginToken(Er.COMMENT_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(Er.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,93,function(){return e._attemptStr("]>")});this._beginToken(Er.CDATA_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(Er.DOC_TYPE,t),this._attemptUntilChar(en),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t,e,n=this._index,r=null;58!==this._peek&&!(((t=this._peek)<un||yn<t)&&(t<on||cn<t)&&(t<nn||t>rn));)this._advance();return 58===this._peek?(this._advance(),r=this._input.substring(n,this._index-1),e=this._index):e=n,this._requireCharCodeUntilFn(Dr,this._index===e?1:0),[r,this._input.substring(e,this._index)]},t.prototype._consumeTagOpen=function(t){var e,n,r=this._savePosition();try{if(!xn(this._peek))throw this._createError(Ar(this._peek),this._getSpan());var i=this._index;for(this._consumeTagOpenStart(t),n=(e=this._input.substring(i,this._index)).toLowerCase(),this._attemptCharCodeUntilFn(Rr);this._peek!==Ze&&this._peek!==en;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(Rr),this._attemptCharCode(tn)&&(this._attemptCharCodeUntilFn(Rr),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Rr);this._consumeTagOpenEnd()}catch(e){if(e instanceof Mr)return this._restorePosition(r),this._beginToken(Er.TEXT,t),void this._endToken(["<"]);throw e}var o=this._getTagDefinition(e).contentType;o===de.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):o===de.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(Ze)&&(n._attemptCharCodeUntilFn(Rr),!!n._attemptStrCaseInsensitive(t)&&(n._attemptCharCodeUntilFn(Rr),n._attemptCharCode(en)))});this._beginToken(Er.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(Er.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(Er.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){var t;if(this._beginToken(Er.ATTR_VALUE),this._peek===$e||this._peek===Ye){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(Dr,1),t=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(Ze)?Er.TAG_OPEN_END_VOID:Er.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(en),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(Er.TAG_CLOSE,t),this._attemptCharCodeUntilFn(Rr);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Rr),this._requireCharCode(en),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(Er.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(vn),this._endToken([]),this._expansionCaseStack.push(Er.EXPANSION_FORM_START),this._beginToken(Er.RAW_TEXT,this._getLocation());var t=this._readUntil(44);this._endToken([t],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(Rr),this._beginToken(Er.RAW_TEXT,this._getLocation());var e=this._readUntil(44);this._endToken([e],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(Rr)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(Er.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(vn).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(Rr),this._beginToken(Er.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(vn),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(Rr),this._expansionCaseStack.push(Er.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(Er.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(125),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(Rr),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(Er.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(Er.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===Be)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(jr(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]===Er.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Er.EXPANSION_FORM_START},t}();function Rr(t){return!wn(t)||t===Be}function Dr(t){return wn(t)||t===en||t===Ze||t===$e||t===Ye||t===tn}function Nr(t){return t==Je||t==Be||!((e=t)>=un&&e<=hn||e>=on&&e<=sn||Cn(e));var e}function Lr(t){return t==Je||t==Be||!xn(t)}function jr(t,e,n){var r=!!n&&t.indexOf(n.start,e)==e;return t.charCodeAt(e)==vn&&!r}function Fr(t){return t>=un&&t<=yn?t-un+on:t}var Vr=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.elementName=e,i}return n(e,t),e.create=function(t,n,r){return new e(t,n,r)},e}(Cr),Br=function(){return function(t,e){this.rootNodes=t,this.errors=e}}(),Ur=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=se);var i,o,a,s,c,l=(i=t,o=e,a=this.getTagDefinition,c=r,void 0===(s=n)&&(s=!1),void 0===c&&(c=se),new Ir(new br(i,o),a,s,c).tokenize()),u=new Hr(l.tokens,this.getTagDefinition).build();return new Br(u.rootNodes,l.errors.concat(u.errors))},t}(),Hr=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!==Er.EOF;)this._peek.type===Er.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===Er.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===Er.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===Er.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===Er.TEXT||this._peek.type===Er.RAW_TEXT||this._peek.type===Er.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===Er.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new Br(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(Er.CDATA_END)},t.prototype._consumeComment=function(t){var e=this._advanceIf(Er.RAW_TEXT);this._advanceIf(Er.COMMENT_END);var n=null!=e?e.parts[0].trim():null;this._addToParent(new te(n,t.sourceSpan))},t.prototype._consumeExpansion=function(t){for(var e=this._advance(),n=this._advance(),r=[];this._peek.type===Er.EXPANSION_CASE_VALUE;){var i=this._parseExpansionCase();if(!i)return;r.push(i)}if(this._peek.type===Er.EXPANSION_FORM_END){var o=new _r(t.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new Xt(e.parts[0],n.parts[0],r,o,e.sourceSpan)),this._advance()}else this._errors.push(Vr.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."))},t.prototype._parseExpansionCase=function(){var e=this._advance();if(this._peek.type!==Er.EXPANSION_CASE_EXP_START)return this._errors.push(Vr.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var n=this._advance(),r=this._collectExpansionExpTokens(n);if(!r)return null;var i=this._advance();r.push(new Sr(Er.EOF,[],i.sourceSpan));var o=new t(r,this.getTagDefinition).build();if(o.errors.length>0)return this._errors=this._errors.concat(o.errors),null;var a=new _r(e.sourceSpan.start,i.sourceSpan.end),s=new _r(n.sourceSpan.start,i.sourceSpan.end);return new Qt(e.parts[0],o.rootNodes,a,e.sourceSpan,s)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],n=[Er.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==Er.EXPANSION_FORM_START&&this._peek.type!==Er.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===Er.EXPANSION_CASE_EXP_END){if(!zr(n,Er.EXPANSION_CASE_EXP_START))return this._errors.push(Vr.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return e}if(this._peek.type===Er.EXPANSION_FORM_END){if(!zr(n,Er.EXPANSION_FORM_START))return this._errors.push(Vr.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===Er.EOF)return this._errors.push(Vr.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 $t(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){var t=this._getParentElement();t&&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===Er.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(e,n,this._getParentElement()),o=!1;if(this._peek.type===Er.TAG_OPEN_END_VOID){this._advance(),o=!0;var a=this.getTagDefinition(i);a.canSelfClose||null!==ve(i)||a.isVoid||this._errors.push(Vr.create(i,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===Er.TAG_OPEN_END&&(this._advance(),o=!1);var s=this._peek.sourceSpan.start,c=new _r(t.sourceSpan.start,s),l=new Jt(i,r,[],c,c,void 0);this._pushElement(l),o&&(this._popElement(i),l.endSourceSpan=c)},t.prototype._pushElement=function(t){var e=this._getParentElement();e&&this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop();var n=this.getTagDefinition(t.name),r=this._getParentElementSkippingContainers(),i=r.parent,o=r.container;if(i&&n.requireExtraParent(i.name)){var a=new Jt(n.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(i,o,a)}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(Vr.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(Vr.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=be(t.parts[0],t.parts[1]),n=t.sourceSpan.end,r="",i=void 0;if(this._peek.type===Er.ATTR_VALUE){var o=this._advance();r=o.parts[0],n=o.sourceSpan.end,i=o.sourceSpan}return new Zt(e,r,new _r(t.sourceSpan.start,n),i)},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(!me(this._elementStack[e].name))return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:null,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=ve(n.name)),be(t,e)},t}();function zr(t,e){return t.length>0&&t[t.length-1]===e}function Wr(t){return t.id||function(t){var e,n,r=K(t),i=function(t,e){for(var n=Array(t.length+3>>>2),r=0;r<n.length;r++)n[r]=oi(t,4*r,e);return n}(r,Jr.Big),o=8*r.length,a=new Array(80),s=[1732584193,4023233417,2562383102,271733878,3285377520],c=s[0],l=s[1],u=s[2],p=s[3],h=s[4];i[o>>5]|=128<<24-o%32,i[15+(o+64>>9<<4)]=o;for(var d=0;d<i.length;d+=16){for(var f=[c,l,u,p,h],m=f[0],g=f[1],y=f[2],v=f[3],b=f[4],_=0;_<80;_++){a[_]=_<16?i[d+_]:ri(a[_-3]^a[_-8]^a[_-14]^a[_-16],1);var w=$r(_,l,u,p),C=w[0],x=w[1],E=[ri(c,5),C,h,x,a[_]].reduce(ti);e=[p,u,ri(l,30),c,E],h=e[0],p=e[1],u=e[2],l=e[3],c=e[4]}n=[ti(c,m),ti(l,g),ti(u,y),ti(p,v),ti(h,b)],c=n[0],l=n[1],u=n[2],p=n[3],h=n[4]}return function(t){for(var e="",n=0;n<t.length;n++){var r=ii(t,n);e+=(r>>>4).toString(16)+(15&r).toString(16)}return e.toLowerCase()}(ai([c,l,u,p,h]))}((e=t.nodes,e.map(function(t){return t.visit(Yr,null)})).join("")+"["+t.meaning+"]");var e}function Gr(t){if(t.id)return t.id;var e=new Kr;return function(t,e){var n,r=Xr(t),i=r[0],o=r[1];if(e){var a=Xr(e),s=a[0],c=a[1];b=1,_=(v=[i,o])[0],w=v[1],u=[s,c],p=(l=[_<<b|w>>>32-b,w<<b|_>>>32-b])[0],h=l[1],d=u[0],f=u[1],m=ei(h,f),g=m[0],y=m[1],n=[ti(ti(p,d),g),y],i=n[0],o=n[1]}var l,u,p,h,d,f,m,g,y;var v,b,_,w;return function(t){for(var e="",n="1",r=t.length-1;r>=0;r--)e=si(e,ci(ii(t,r),n)),n=ci(256,n);return e.split("").reverse().join("")}(ai([2147483647&i,o]))}(t.nodes.map(function(t){return t.visit(e,null)}).join(""),t.meaning)}var qr=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}(),Yr=new qr;var Kr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(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}(qr);function $r(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 Xr(t){var e=K(t),n=[Qr(e,0),Qr(e,102072)],r=n[0],i=n[1];return 0!=r||0!=i&&1!=i||(r^=319790063,i^=-1801410264),[r,i]}function Qr(t,e){var n,r,i=[2654435769,2654435769],o=i[0],a=i[1],s=t.length;for(n=0;n+12<=s;n+=12)o=(r=Zr([o=ti(o,oi(t,n,Jr.Little)),a=ti(a,oi(t,n+4,Jr.Little)),e=ti(e,oi(t,n+8,Jr.Little))]))[0],a=r[1],e=r[2];return Zr([o=ti(o,oi(t,n,Jr.Little)),a=ti(a,oi(t,n+4,Jr.Little)),e=ti(e=ti(e,s),oi(t,n+8,Jr.Little)<<8)])[2]}function Zr(t){var e=t[0],n=t[1],r=t[2];return e=ni(e=ni(e,n),r),e^=r>>>13,n=ni(n=ni(n,r),e),n^=e<<8,r=ni(r=ni(r,e),n),r^=n>>>13,e=ni(e=ni(e,n),r),e^=r>>>12,n=ni(n=ni(n,r),e),n^=e<<16,r=ni(r=ni(r,e),n),r^=n>>>5,e=ni(e=ni(e,n),r),e^=r>>>3,n=ni(n=ni(n,r),e),n^=e<<10,r=ni(r=ni(r,e),n),[e,n,r^=n>>>15]}var Jr={Little:0,Big:1};function ti(t,e){return ei(t,e)[1]}function ei(t,e){var n=(65535&t)+(65535&e),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function ni(t,e){var n=(65535&t)-(65535&e);return(t>>16)-(e>>16)+(n>>16)<<16|65535&n}function ri(t,e){return t<<e|t>>>32-e}function ii(t,e){return e>=t.length?0:255&t.charCodeAt(e)}function oi(t,e,n){var r=0;if(n===Jr.Big)for(var i=0;i<4;i++)r+=ii(t,e+i)<<24-8*i;else for(i=0;i<4;i++)r+=ii(t,e+i)<<8*i;return r}function ai(t){return t.reduce(function(t,e){return t+function(t){for(var e="",n=0;n<4;n++)e+=String.fromCharCode(t>>>8*(3-n)&255);return e}(e)},"")}function si(t,e){for(var n="",r=Math.max(t.length,e.length),i=0,o=0;i<r||o;i++){var a=o+ +(t[i]||0)+ +(e[i]||0);a>=10?(o=1,n+=a-10):(o=0,n+=a)}return n}function ci(t,e){for(var n="",r=e;0!==t;t>>>=1)1&t&&(n=si(n,r)),r=si(r,r);return n}Jr[Jr.Little]="Little",Jr[Jr.Big]="Big";var li=function(){return function(t,e,n,r,i,o){this.nodes=t,this.placeholders=e,this.placeholderToMessage=n,this.meaning=r,this.description=i,this.id=o,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=[]}}(),ui=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),pi=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),hi=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}(),di=function(){function t(t,e,n,r,i,o,a){this.tag=t,this.attrs=e,this.startName=n,this.closeName=r,this.children=i,this.isVoid=o,this.sourceSpan=a}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),fi=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}(),mi=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}(),gi=function(){function t(){}return t.prototype.visitText=function(t,e){return new ui(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 pi(r,t.sourceSpan)},t.prototype.visitIcu=function(t,e){var n=this,r={};Object.keys(t.cases).forEach(function(i){return r[i]=t.cases[i].visit(n,e)});var i=new hi(t.expression,t.type,r,t.sourceSpan);return i.expressionPlaceholder=t.expressionPlaceholder,i},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new di(t.tag,t.attrs,t.startName,t.closeName,r,t.isVoid,t.sourceSpan)},t.prototype.visitPlaceholder=function(t,e){return new fi(t.value,t.name,t.sourceSpan)},t.prototype.visitIcuPlaceholder=function(t,e){return new mi(t.value,t.name,t.sourceSpan)},t}(),yi=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}(),vi=function(){function t(t){var e=void 0===t?{}:t,n=e.closedByChildren,r=e.requiredParents,i=e.implicitNamespacePrefix,o=e.contentType,a=void 0===o?de.PARSABLE_DATA:o,s=e.closedByParent,c=void 0!==s&&s,l=e.isVoid,u=void 0!==l&&l,p=e.ignoreFirstLf,h=void 0!==p&&p,d=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,n&&n.length>0&&n.forEach(function(t){return d.closedByChildren[t]=!0}),this.isVoid=u,this.closedByParent=c||u,r&&r.length>0&&(this.requiredParents={},this.parentToAdd=r[0],r.forEach(function(t){return d.requiredParents[t]=!0})),this.implicitNamespacePrefix=i||null,this.contentType=a,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}(),bi={base:new vi({isVoid:!0}),meta:new vi({isVoid:!0}),area:new vi({isVoid:!0}),embed:new vi({isVoid:!0}),link:new vi({isVoid:!0}),img:new vi({isVoid:!0}),input:new vi({isVoid:!0}),param:new vi({isVoid:!0}),hr:new vi({isVoid:!0}),br:new vi({isVoid:!0}),source:new vi({isVoid:!0}),track:new vi({isVoid:!0}),wbr:new vi({isVoid:!0}),p:new vi({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 vi({closedByChildren:["tbody","tfoot"]}),tbody:new vi({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new vi({closedByChildren:["tbody"],closedByParent:!0}),tr:new vi({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new vi({closedByChildren:["td","th"],closedByParent:!0}),th:new vi({closedByChildren:["td","th"],closedByParent:!0}),col:new vi({requiredParents:["colgroup"],isVoid:!0}),svg:new vi({implicitNamespacePrefix:"svg"}),math:new vi({implicitNamespacePrefix:"math"}),li:new vi({closedByChildren:["li"],closedByParent:!0}),dt:new vi({closedByChildren:["dt","dd"]}),dd:new vi({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new vi({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new vi({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new vi({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new vi({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new vi({closedByChildren:["optgroup"],closedByParent:!0}),option:new vi({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new vi({ignoreFirstLf:!0}),listing:new vi({ignoreFirstLf:!0}),style:new vi({contentType:de.RAW_TEXT}),script:new vi({contentType:de.RAW_TEXT}),title:new vi({contentType:de.ESCAPABLE_RAW_TEXT}),textarea:new vi({contentType:de.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},_i=new vi;function wi(t){return bi[t.toLowerCase()]||_i}var Ci={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"},xi=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 i=t.toUpperCase(),o=Ci[i]||"TAG_"+i,a=this._generateUniqueName(n?o:"START_"+o);return this._signatureToName[r]=a,a},t.prototype.getCloseTagPlaceholderName=function(t){var e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];var n=t.toUpperCase(),r=Ci[n]||"TAG_"+n,i=this._generateUniqueName("CLOSE_"+r);return this._signatureToName[e]=i,i},t.prototype.getPlaceholderName=function(t,e){var n=t.toUpperCase(),r="PH: "+n+"="+e;if(this._signatureToName[r])return this._signatureToName[r];var i=this._generateUniqueName(n);return this._signatureToName[r]=i,i},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}(),Ei=new mr(new kn);var Si=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 Xt,this._icuDepth=0,this._placeholderRegistry=new xi,this._placeholderToContent={},this._placeholderToMessage={};var i=ee(this,t,{});return new li(i,this._placeholderToContent,this._placeholderToMessage,e,n,r)},t.prototype.visitElement=function(t,e){var n=ee(this,t.children),r={};t.attrs.forEach(function(t){r[t.name]=t.value});var i=wi(t.name).isVoid,o=this._placeholderRegistry.getStartTagPlaceholderName(t.name,r,i);this._placeholderToContent[o]=t.sourceSpan.toString();var a="";return i||(a=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[a]="</"+t.name+">"),new di(t.name,r,o,a,n,i,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 i={},o=new hi(e.switchValue,e.type,i,e.sourceSpan);if(e.cases.forEach(function(t){i[t.value]=new pi(t.expression.map(function(t){return t.visit(r,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var a=this._placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return o.expressionPlaceholder=a,this._placeholderToContent[a]=e.switchValue,o}var s=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),c=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[s]=c.toI18nMessage([e],"","",""),new mi(o,s,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 ui(t,e);for(var r=[],i=new pi(r,e),o=this._interpolationConfig,a=o.start,s=o.end,c=0;c<n.strings.length-1;c++){var l=n.expressions[c],u=l.split(ki)[2]||"INTERPOLATION",p=this._placeholderRegistry.getPlaceholderName(u,l);n.strings[c].length&&r.push(new ui(n.strings[c],e)),r.push(new fi(l,p,e)),this._placeholderToContent[p]=a+l+s}var h=n.strings.length-1;return n.strings[h].length&&r.push(new ui(n.strings[h],e)),i},t}(),ki=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;var Oi=function(t){function e(e,n){return t.call(this,e,n)||this}return n(e,t),e}(Cr),Pi="i18n",Ai="i18n-",Ti=/^i18n:?/,Mi="|",Ii="@@",Ri=!1;var Di=function(){return function(t,e){this.messages=t,this.errors=e}}(),Ni={Extract:0,Merge:1};Ni[Ni.Extract]="Extract",Ni[Ni.Merge]="Merge";var Li=function(){function t(t,e){this._implicitTags=t,this._implicitAttrs=e}return t.prototype.extract=function(t,e){var n=this;return this._init(Ni.Extract,e),t.forEach(function(t){return t.visit(n,null)}),this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Di(this._messages,this._errors)},t.prototype.merge=function(t,e,n){this._init(Ni.Merge,n),this._translations=e;var r=new Jt("wrapper",[],t,void 0,void 0,void 0).visit(this,null);return this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Br(r.children,this._errors)},t.prototype.visitExpansionCase=function(t,e){var n=ee(this,t.expression,e);if(this._mode===Ni.Merge)return new Qt(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=ee(this,t.cases,e);return this._mode===Ni.Merge&&(t=new Xt(t.switchValue,t.type,r,t.sourceSpan,t.switchValueSourceSpan)),this._inIcu=n,t},t.prototype.visitComment=function(t,e){var n,r=!!((n=t)instanceof te&&n.value&&n.value.startsWith("i18n"));if(r&&this._isInTranslatableSection)this._reportError(t,"Could not start a block inside a translatable section");else{var i,o=!!((i=t)instanceof te&&i.value&&"/i18n"===i.value);if(!o||this._inI18nBlock){if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(o){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(t,this._blockChildren),this._inI18nBlock=!1;var a=this._addMessage(this._blockChildren,this._blockMeaningAndDesc);return ee(this,this._translateMessage(t,a))}return void this._reportError(t,"I18N blocks should not cross element boundaries")}}else if(r){if(!Ri&&console&&console.warn){Ri=!0;var s=t.sourceSpan.details?", "+t.sourceSpan.details:"";console.warn("I18n comments are deprecated, use an <ng-container> element instead ("+t.sourceSpan.start+s+")")}this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(Ti,"").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,i=this._inImplicitNode,o=[],a=void 0,s=t.attrs.find(function(t){return t.name===Pi})||null,c=s?s.value:"",l=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,u=!i&&l;if(this._inImplicitNode=i||l,this._isInTranslatableSection||this._inIcu)(s||u)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==Ni.Extract&&ee(this,t.children);else{if(s||u){this._inI18nNode=!0;var p=this._addMessage(t.children,c);a=this._translateMessage(t,p)}if(this._mode==Ni.Extract){var h=s||u;h&&this._openTranslatableSection(t),ee(this,t.children),h&&this._closeTranslatableSection(t,t.children)}}this._mode===Ni.Merge&&(a||t.children).forEach(function(t){var r=t.visit(n,e);r&&!n._isInTranslatableSection&&(o=o.concat(r))});if(this._visitAttributesOf(t),this._depth--,this._inI18nNode=r,this._inImplicitNode=i,this._mode===Ni.Merge){var d=this._translateAttributes(t);return new Jt(t.name,d,o,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){var n;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=(n=new Si(Ei,e),function(t,e,r,i){return n.toI18nMessage(t,e,r,i)})},t.prototype._visitAttributesOf=function(t){var e=this,n={},r=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith(Ai)}).forEach(function(t){return n[t.name.slice(Ai.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 Zt&&!t[0].value)return null;var n=ji(e),r=n.meaning,i=n.description,o=n.id,a=this._createI18nMessage(t,r,i,o);return this._messages.push(a),a},t.prototype._translateMessage=function(t,e){if(e&&this._mode===Ni.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(Ai)&&(r[t.name.slice(Ai.length)]=ji(t.value))});var i=[];return n.forEach(function(n){if(n.name!==Pi&&!n.name.startsWith(Ai))if(n.value&&""!=n.value&&r.hasOwnProperty(n.name)){var o=r[n.name],a=o.meaning,s=o.description,c=o.id,l=e._createI18nMessage([n],a,s,c),u=e._translations.get(l);if(u)if(0==u.length)i.push(new Zt(n.name,"",n.sourceSpan));else if(u[0]instanceof $t){var p=u[0].value;i.push(new Zt(n.name,p,n.sourceSpan))}else e._reportError(t,'Unexpected translation for attribute "'+n.name+'" (id="'+(c||e._translations.digest(l))+'")');else e._reportError(t,'Translation unavailable for attribute "'+n.name+'" (id="'+(c||e._translations.digest(l))+'")')}else i.push(n)}),i},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 te?0:1)},0))for(var r=this._messages.length-1;r>=n;r--){var i=this._messages[r].nodes;if(!(1==i.length&&i[0]instanceof ui)){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 Oi(t.sourceSpan,e))},t}();function ji(t){if(!t)return{meaning:"",description:"",id:""};var e=t.indexOf(Ii),n=t.indexOf(Mi),r=e>-1?[t.slice(0,e),t.slice(e+2)]:[t,""],i=r[0],o=r[1],a=n>-1?[i.slice(0,n),i.slice(n+1)]:["",i];return{meaning:a[0],description:a[1],id:o}}var Fi=new(function(){function t(){this.closedByParent=!1,this.contentType=de.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}());function Vi(t){return Fi}var Bi=function(t){function e(){return t.call(this,Vi)||this}return n(e,t),e.prototype.parse=function(e,n,r){return void 0===r&&(r=!1),t.prototype.parse.call(this,e,n,r)},e}(Ur),Ui=function(){function t(){}return t.prototype.createNameMapper=function(t){return null},t}(),Hi=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 n(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}(yi),zi=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}());function Wi(t){return t.map(function(t){return t.visit(zi)}).join("")}var Gi=function(){function t(t){var e=this;this.attrs={},Object.keys(t).forEach(function(n){e.attrs[n]=Qi(t[n])})}return t.prototype.visit=function(t){return t.visitDeclaration(this)},t}(),qi=function(){function t(t,e){this.rootTag=t,this.dtd=e}return t.prototype.visit=function(t){return t.visitDoctype(this)},t}(),Yi=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]=Qi(e[t])})}return t.prototype.visit=function(t){return t.visitTag(this)},t}(),Ki=function(){function t(t){this.value=Qi(t)}return t.prototype.visit=function(t){return t.visitText(this)},t}(),$i=function(t){function e(e){return void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))||this}return n(e,t),e}(Ki),Xi=[[/&/g,"&amp;"],[/"/g,"&quot;"],[/'/g,"&apos;"],[/</g,"&lt;"],[/>/g,"&gt;"]];function Qi(t){return Xi.reduce(function(t,e){return t.replace(e[0],e[1])},t)}var Zi="trans-unit",Ji=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.write=function(t,e){var n=new to,r=[];t.forEach(function(t){var e=[];t.sources.forEach(function(t){var n=new Yi("context-group",{purpose:"location"});n.children.push(new $i(10),new Yi("context",{"context-type":"sourcefile"},[new Ki(t.filePath)]),new $i(10),new Yi("context",{"context-type":"linenumber"},[new Ki(""+t.startLine)]),new $i(8)),e.push(new $i(8),n)});var i,o=new Yi(Zi,{id:t.id,datatype:"html"});(i=o.children).push.apply(i,[new $i(8),new Yi("source",{},n.serialize(t.nodes))].concat(e)),t.description&&o.children.push(new $i(8),new Yi("note",{priority:"1",from:"description"},[new Ki(t.description)])),t.meaning&&o.children.push(new $i(8),new Yi("note",{priority:"1",from:"meaning"},[new Ki(t.meaning)])),o.children.push(new $i(6)),r.push(new $i(6),o)});var i=new Yi("body",{},r.concat([new $i(4)])),o=new Yi("file",{"source-language":e||"en",datatype:"plaintext",original:"ng2.template"},[new $i(4),i,new $i(2)]),a=new Yi("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new $i(2),o,new $i]);return Wi([new Gi({version:"1.0",encoding:"UTF-8"}),new $i,a,new $i])},e.prototype.load=function(t,e){var n=(new eo).parse(t,e),r=n.locale,i=n.msgIdToHtml,o=n.errors,a={},s=new no;if(Object.keys(i).forEach(function(t){var n=s.convert(i[t],e),r=n.i18nNodes,c=n.errors;o.push.apply(o,c),a[t]=r}),o.length)throw new Error("xliff parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Wr(t)},e}(Ui),to=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Ki(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 Ki("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new Ki(e+" {")].concat(t.cases[e].visit(n),[new Ki("} ")]))}),r.push(new Ki("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=function(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}(t.tag);if(t.isVoid)return[new Yi("x",{id:t.startName,ctype:n,"equiv-text":"<"+t.tag+"/>"})];var r=new Yi("x",{id:t.startName,ctype:n,"equiv-text":"<"+t.tag+">"}),i=new Yi("x",{id:t.closeName,ctype:n,"equiv-text":"</"+t.tag+">"});return[r].concat(this.serialize(t.children),[i])},t.prototype.visitPlaceholder=function(t,e){return[new Yi("x",{id:t.name,"equiv-text":"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(t,e){var n="{"+t.value.expression+", "+t.value.type+", "+Object.keys(t.value.cases).map(function(t){return t+" {...}"}).join(" ")+"}";return[new Yi("x",{id:t.name,"equiv-text":n})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),eo=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new Bi).parse(t,e,!1);return this._errors=n.errors,ee(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case Zi: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):(ee(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,"<"+Zi+'> misses the "id" attribute');break;case"source":break;case"target":var i=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,a=t.startSourceSpan.start.file.content.slice(i,o);this._unitMlString=a;break;case"file":var s=t.attrs.find(function(t){return"target-language"===t.name});s&&(this._locale=s.value),ee(this,t.children,null);break;default:ee(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 Oi(t.sourceSpan,e))},t}(),no=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Bi).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:ee(this,n.rootNodes),errors:this._errors}},t.prototype.visitText=function(t,e){return new ui(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 fi("",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 ee(this,t.cases).forEach(function(e){n[e.value]=new pi(e.nodes,t.sourceSpan)}),new hi(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:ee(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 Oi(t.sourceSpan,e))},t}();var ro=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.write=function(t,e){var n=new io,r=[];t.forEach(function(t){var e=new Yi("unit",{id:t.id}),i=new Yi("notes");(t.description||t.meaning)&&(t.description&&i.children.push(new $i(8),new Yi("note",{category:"description"},[new Ki(t.description)])),t.meaning&&i.children.push(new $i(8),new Yi("note",{category:"meaning"},[new Ki(t.meaning)]))),t.sources.forEach(function(t){i.children.push(new $i(8),new Yi("note",{category:"location"},[new Ki(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),i.children.push(new $i(6)),e.children.push(new $i(6),i);var o=new Yi("segment");o.children.push(new $i(8),new Yi("source",{},n.serialize(t.nodes)),new $i(6)),e.children.push(new $i(6),o,new $i(4)),r.push(new $i(4),e)});var i=new Yi("file",{original:"ng.template",id:"ngi18n"},r.concat([new $i(2)])),o=new Yi("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:e||"en"},[new $i(2),i,new $i]);return Wi([new Gi({version:"1.0",encoding:"UTF-8"}),new $i,o,new $i])},e.prototype.load=function(t,e){var n=(new oo).parse(t,e),r=n.locale,i=n.msgIdToHtml,o=n.errors,a={},s=new ao;if(Object.keys(i).forEach(function(t){var n=s.convert(i[t],e),r=n.i18nNodes,c=n.errors;o.push.apply(o,c),a[t]=r}),o.length)throw new Error("xliff2 parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Gr(t)},e}(Ui),io=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Ki(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 Ki("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new Ki(e+" {")].concat(t.cases[e].visit(n),[new Ki("} ")]))}),r.push(new Ki("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=function(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"}}(t.tag);if(t.isVoid)return[new Yi("ph",{id:(this._nextPlaceholderId++).toString(),equiv:t.startName,type:r,disp:"<"+t.tag+"/>"})];var i=new Yi("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:t.startName,equivEnd:t.closeName,type:r,dispStart:"<"+t.tag+">",dispEnd:"</"+t.tag+">"}),o=[].concat.apply([],t.children.map(function(t){return t.visit(n)}));return o.length?o.forEach(function(t){return i.children.push(t)}):i.children.push(new Ki("")),[i]},t.prototype.visitPlaceholder=function(t,e){var n=(this._nextPlaceholderId++).toString();return[new Yi("ph",{id:n,equiv:t.name,disp:"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(t,e){var n=Object.keys(t.value.cases).map(function(t){return t+" {...}"}).join(" "),r=(this._nextPlaceholderId++).toString();return[new Yi("ph",{id:r,equiv:t.name,disp:"{"+t.value.expression+", "+t.value.type+", "+n+"}"})]},t.prototype.serialize=function(t){var e=this;return this._nextPlaceholderId=0,[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),oo=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new Bi).parse(t,e,!1);return this._errors=n.errors,ee(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):(ee(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 i=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,a=t.startSourceSpan.start.file.content.slice(i,o);this._unitMlString=a;break;case"xliff":var s=t.attrs.find(function(t){return"trgLang"===t.name});s&&(this._locale=s.value);var c=t.attrs.find(function(t){return"version"===t.name});if(c){var l=c.value;"2.0"!==l?this._addError(t,"The XLIFF file version "+l+" is not compatible with XLIFF 2.0 serializer"):ee(this,t.children,null)}break;default:ee(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 Oi(t.sourceSpan,e))},t}(),ao=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Bi).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],ee(this,n.rootNodes)),errors:this._errors}},t.prototype.visitText=function(t,e){return new ui(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 fi("",r.value,t.sourceSpan)];this._addError(t,'<ph> misses the "equiv" attribute');break;case"pc":var i=t.attrs.find(function(t){return"equivStart"===t.name}),o=t.attrs.find(function(t){return"equivEnd"===t.name});if(i){if(o){var a=i.value,s=o.value,c=[];return c.concat.apply(c,[new fi("",a,t.sourceSpan)].concat(t.children.map(function(t){return t.visit(n,null)}),[new fi("",s,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 ee(this,t.cases).forEach(function(e){n[e.value]=new pi(e.nodes,t.sourceSpan)}),new hi(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:[].concat.apply([],ee(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 Oi(t.sourceSpan,e))},t}();var so="messagebundle",co=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.write=function(t,e){var n=new po,r=new lo,i=new Yi(so);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 Yi("source",{},[new Ki(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),i.children.push(new $i(2),new Yi("msg",e,n.concat(r.serialize(t.nodes))))}),i.children.push(new $i),Wi([new Gi({version:"1.0",encoding:"UTF-8"}),new $i,new qi(so,'<!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 $i,n.addDefaultExamples(i),new $i])},e.prototype.load=function(t,e){throw new Error("Unsupported")},e.prototype.digest=function(t){return uo(t)},e.prototype.createNameMapper=function(t){return new Hi(t,ho)},e}(Ui),lo=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Ki(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 Ki("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new Ki(e+" {")].concat(t.cases[e].visit(n),[new Ki("} ")]))}),r.push(new Ki("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=new Yi("ex",{},[new Ki("<"+t.tag+">")]),r=new Yi("ph",{name:t.startName},[n]);if(t.isVoid)return[r];var i=new Yi("ex",{},[new Ki("</"+t.tag+">")]),o=new Yi("ph",{name:t.closeName},[i]);return[r].concat(this.serialize(t.children),[o])},t.prototype.visitPlaceholder=function(t,e){var n=new Yi("ex",{},[new Ki("{{"+t.value+"}}")]);return[new Yi("ph",{name:t.name},[n])]},t.prototype.visitIcuPlaceholder=function(t,e){var n=new Yi("ex",{},[new Ki("{"+t.value.expression+", "+t.value.type+", "+Object.keys(t.value.cases).map(function(t){return t+" {...}"}).join(" ")+"}")]);return[new Yi("ph",{name:t.name},[n])]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}();function uo(t){return Gr(t)}var po=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 Ki(t.attrs.name||"...");t.children=[new Yi("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}();function ho(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var fo="translationbundle",mo="translation",go=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.write=function(t,e){throw new Error("Unsupported")},e.prototype.load=function(t,e){var n=(new yo).parse(t,e),r=n.locale,i=n.msgIdToHtml,o=n.errors,a={},s=new vo;if(Object.keys(i).forEach(function(t){var n,r,o;n=a,r=t,o=function(){var n=s.convert(i[t],e),r=n.i18nNodes,o=n.errors;if(o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return r},Object.defineProperty(n,r,{configurable:!0,enumerable:!0,get:function(){var t=o();return Object.defineProperty(n,r,{enumerable:!0,value:t}),t},set:function(t){throw new Error("Could not overwrite an XTB translation")}})}),o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return uo(t)},e.prototype.createNameMapper=function(t){return new Hi(t,ho)},e}(Ui);var yo=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._bundleDepth=0,this._msgIdToHtml={};var n=(new Bi).parse(t,e,!1);return this._errors=n.errors,ee(this,n.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case fo:this._bundleDepth++,this._bundleDepth>1&&this._addError(t,"<"+fo+"> elements can not be nested");var n=t.attrs.find(function(t){return"lang"===t.name});n&&(this._locale=n.value),ee(this,t.children,null),this._bundleDepth--;break;case mo:var r=t.attrs.find(function(t){return"id"===t.name});if(r){var i=r.value;if(this._msgIdToHtml.hasOwnProperty(i))this._addError(t,"Duplicated translations for msg "+i);else{var o=t.startSourceSpan.end.offset,a=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content.slice(o,a);this._msgIdToHtml[i]=s}}else this._addError(t,"<"+mo+'> 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 Oi(t.sourceSpan,e))},t}(),vo=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Bi).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:ee(this,n.rootNodes),errors:this._errors}},t.prototype.visitText=function(t,e){return new ui(t.value,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){var n={};return ee(this,t.cases).forEach(function(e){n[e.value]=new pi(e.nodes,t.sourceSpan)}),new hi(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:ee(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 fi("",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 Oi(t.sourceSpan,e))},t}(),bo=function(t){function e(){return t.call(this,wi)||this}return n(e,t),e.prototype.parse=function(e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=se),t.prototype.parse.call(this,e,n,r,i)},e}(Ur),_o=function(){function t(t,e,n,r,i,o){void 0===t&&(t={}),void 0===i&&(i=T.Warning),this._i18nNodesByMsgId=t,this.digest=n,this.mapperFactory=r,this._i18nToHtml=new wo(t,e,n,r,i,o)}return t.load=function(e,n,r,i,o){var a=r.load(e,n),s=a.locale;return new t(a.i18nNodesByMsgId,s,function(t){return r.digest(t)},function(t){return r.createNameMapper(t)},i,o)},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}(),wo=function(){function t(t,e,n,r,i,o){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this._locale=e,this._digest=n,this._mapperFactory=r,this._missingTranslationStrategy=i,this._console=o,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 bo).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,i=Object.keys(t.attrs).map(function(e){return e+'="'+t.attrs[e]+'"'}).join(" ");return t.isVoid?"<"+r+" "+i+"/>":"<"+r+" "+i+">"+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 e,n=this,r=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(r))e=this._i18nNodesByMsgId[r],this._mapper=function(t){return i?i.toInternalName(t):t};else{if(this._missingTranslationStrategy===T.Error){var o=this._locale?' for locale "'+this._locale+'"':"";this._addError(t.nodes[0],'Missing translation for message "'+r+'"'+o)}else if(this._console&&this._missingTranslationStrategy===T.Warning){o=this._locale?' for locale "'+this._locale+'"':"";this._console.warn('Missing translation for message "'+r+'"'+o)}e=t.nodes,this._mapper=function(t){return t}}var a=e.map(function(t){return t.visit(n)}).join(""),s=this._contextStack.pop();return this._srcMsg=s.msg,this._mapper=s.mapper,a},t.prototype._addError=function(t,e){this._errors.push(new Oi(t.sourceSpan,e))},t}(),Co=function(){function t(t,e,n,r,i){if(void 0===r&&(r=T.Warning),this._htmlParser=t,e){var o=function(t){switch(t=(t||"xlf").toLowerCase()){case"xmb":return new co;case"xtb":return new go;case"xliff2":case"xlf2":return new ro;case"xliff":case"xlf":default:return new Ji}}(n);this._translationBundle=_o.load(e,"i18n",o,r,i)}else this._translationBundle=new _o({},null,Wr,void 0,r,i)}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=se);var i,o,a,s=this._htmlParser.parse(t,e,n,r);return s.errors.length?new Br(s.rootNodes,s.errors):(i=s.rootNodes,o=this._translationBundle,a=r,new Li([],{}).merge(i,o,a))},t}();var xo=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,Eo=/\.ngfactory\.|\.ngsummary\./,So=/\.ngsummary\./,ko=/NgSummary$/;function Oo(t,e){void 0===e&&(e=!1);var n=Ao(t,e);return n[0]+".ngfactory"+To(n[1])}function Po(t){return t.replace(Eo,".")}function Ao(t,e){if(void 0===e&&(e=!1),t.endsWith(".d.ts"))return[t.slice(0,-5),e?".ts":".d.ts"];var n=t.lastIndexOf(".");return-1!==n?[t.substring(0,n),t.substring(n)]:[t,""]}function To(t){return".tsx"===t?".ts":t}function Mo(t){return t.replace(xo,"")+".ngsummary.json"}function Io(t,e){void 0===e&&(e=!1);var n=Ao(Po(t),e);return n[0]+".ngsummary"+n[1]}function Ro(t){return t+"NgSummary"}var Do=/\u0275\d+/;function No(t){return Do.test(t)}var Lo="@angular/core",jo=function(){function t(){}return t.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleName:Lo},t.ElementRef={name:"ElementRef",moduleName:Lo},t.NgModuleRef={name:"NgModuleRef",moduleName:Lo},t.ViewContainerRef={name:"ViewContainerRef",moduleName:Lo},t.ChangeDetectorRef={name:"ChangeDetectorRef",moduleName:Lo},t.QueryList={name:"QueryList",moduleName:Lo},t.TemplateRef={name:"TemplateRef",moduleName:Lo},t.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleName:Lo},t.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleName:Lo},t.ComponentFactory={name:"ComponentFactory",moduleName:Lo},t.ComponentRef={name:"ComponentRef",moduleName:Lo},t.NgModuleFactory={name:"NgModuleFactory",moduleName:Lo},t.createModuleFactory={name:"ɵcmf",moduleName:Lo},t.moduleDef={name:"ɵmod",moduleName:Lo},t.moduleProviderDef={name:"ɵmpd",moduleName:Lo},t.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleName:Lo},t.Injector={name:"Injector",moduleName:Lo},t.ViewEncapsulation={name:"ViewEncapsulation",moduleName:Lo},t.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:Lo},t.SecurityContext={name:"SecurityContext",moduleName:Lo},t.LOCALE_ID={name:"LOCALE_ID",moduleName:Lo},t.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleName:Lo},t.inlineInterpolate={name:"ɵinlineInterpolate",moduleName:Lo},t.interpolate={name:"ɵinterpolate",moduleName:Lo},t.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleName:Lo},t.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleName:Lo},t.Renderer={name:"Renderer",moduleName:Lo},t.viewDef={name:"ɵvid",moduleName:Lo},t.elementDef={name:"ɵeld",moduleName:Lo},t.anchorDef={name:"ɵand",moduleName:Lo},t.textDef={name:"ɵted",moduleName:Lo},t.directiveDef={name:"ɵdid",moduleName:Lo},t.providerDef={name:"ɵprd",moduleName:Lo},t.queryDef={name:"ɵqud",moduleName:Lo},t.pureArrayDef={name:"ɵpad",moduleName:Lo},t.pureObjectDef={name:"ɵpod",moduleName:Lo},t.purePipeDef={name:"ɵppd",moduleName:Lo},t.pipeDef={name:"ɵpid",moduleName:Lo},t.nodeValue={name:"ɵnov",moduleName:Lo},t.ngContentDef={name:"ɵncd",moduleName:Lo},t.unwrapValue={name:"ɵunv",moduleName:Lo},t.createRendererType2={name:"ɵcrt",moduleName:Lo},t.RendererType2={name:"RendererType2",moduleName:Lo},t.ViewDefinition={name:"ɵViewDefinition",moduleName:Lo},t.createComponentFactory={name:"ɵccf",moduleName:Lo},t}();function Fo(t){return{identifier:{reference:t}}}function Vo(t,e){return Fo(t.resolveExternalReference(e))}var Bo={OnInit:0,OnDestroy:1,DoCheck:2,OnChanges:3,AfterContentInit:4,AfterContentChecked:5,AfterViewInit:6,AfterViewChecked:7};Bo[Bo.OnInit]="OnInit",Bo[Bo.OnDestroy]="OnDestroy",Bo[Bo.DoCheck]="DoCheck",Bo[Bo.OnChanges]="OnChanges",Bo[Bo.AfterContentInit]="AfterContentInit",Bo[Bo.AfterContentChecked]="AfterContentChecked",Bo[Bo.AfterViewInit]="AfterViewInit",Bo[Bo.AfterViewChecked]="AfterViewChecked";var Uo=[Bo.OnInit,Bo.OnDestroy,Bo.DoCheck,Bo.OnChanges,Bo.AfterContentInit,Bo.AfterContentChecked,Bo.AfterViewInit,Bo.AfterViewChecked];function Ho(t,e,n){return t.hasLifecycleHook(n,function(t){switch(t){case Bo.OnInit:return"ngOnInit";case Bo.OnDestroy:return"ngOnDestroy";case Bo.DoCheck:return"ngDoCheck";case Bo.OnChanges:return"ngOnChanges";case Bo.AfterContentInit:return"ngAfterContentInit";case Bo.AfterContentChecked:return"ngAfterContentChecked";case Bo.AfterViewInit:return"ngAfterViewInit";case Bo.AfterViewChecked:return"ngAfterViewChecked"}}(e))}var zo=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),Wo=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var n,r=[],i=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},o=new t,a=o,s=!1;for(zo.lastIndex=0;n=zo.exec(e);){if(n[1]){if(s)throw new Error("Nesting :not is not allowed in a selector");s=!0,a=new t,o.notSelectors.push(a)}if(n[2]&&a.setElement(n[2]),n[3]&&a.addClassName(n[3]),n[4]&&a.addAttribute(n[4],n[6]),n[7]&&(s=!1,a=o),n[8]){if(s)throw new Error("Multiple selectors in :not are not supported");i(r,o),o=a=new t}}return i(r,o),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 wi(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}(),Go=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 qo(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,i=t.element,o=t.classNames,a=t.attrs,s=new Yo(t,e,n);i&&((l=0===a.length&&0===o.length)?this._addTerminal(r._elementMap,i,s):r=this._addPartial(r._elementPartialMap,i));if(o)for(var c=0;c<o.length;c++){var l=0===a.length&&c===o.length-1,u=o[c];l?this._addTerminal(r._classMap,u,s):r=this._addPartial(r._classPartialMap,u)}if(a)for(c=0;c<a.length;c+=2){l=c===a.length-2;var p=a[c],h=a[c+1];if(l){var d=r._attrValueMap,f=d.get(p);f||(f=new Map,d.set(p,f)),this._addTerminal(f,h,s)}else{var m=r._attrValuePartialMap,g=m.get(p);g||(g=new Map,m.set(p,g)),r=this._addPartial(g,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,i=t.classNames,o=t.attrs,a=0;a<this._listContexts.length;a++)this._listContexts[a].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,r,t,e)||n,n=this._matchPartial(this._elementPartialMap,r,t,e)||n,i)for(a=0;a<i.length;a++){var s=i[a];n=this._matchTerminal(this._classMap,s,t,e)||n,n=this._matchPartial(this._classPartialMap,s,t,e)||n}if(o)for(a=0;a<o.length;a+=2){var c=o[a],l=o[a+1],u=this._attrValueMap.get(c);l&&(n=this._matchTerminal(u,"",t,e)||n),n=this._matchTerminal(u,l,t,e)||n;var p=this._attrValuePartialMap.get(c);l&&(n=this._matchPartial(p,"",t,e)||n),n=this._matchPartial(p,l,t,e)||n}return n},t.prototype._matchTerminal=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var i=t.get(e)||[],o=t.get("*");if(o&&(i=i.concat(o)),0===i.length)return!1;for(var a=!1,s=0;s<i.length;s++)a=i[s].finalize(n,r)||a;return a},t.prototype._matchPartial=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var i=t.get(e);return!!i&&i.match(n,r)},t}(),qo=function(){return function(t){this.selectors=t,this.alreadyMatched=!1}}(),Yo=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;!(this.notSelectors.length>0)||this.listContext&&this.listContext.alreadyMatched||(n=!Go.createNotMatcher(this.notSelectors).match(t,null));return!n||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),n},t}(),Ko="ngComponentType",$o=function(){function t(t,e,n,r,i,o,a,s,c,l,u,p){this._config=t,this._htmlParser=e,this._ngModuleResolver=n,this._directiveResolver=r,this._pipeResolver=i,this._summaryResolver=o,this._schemaRegistry=a,this._directiveNormalizer=s,this._console=c,this._staticSymbolCache=l,this._reflector=u,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.getReflector=function(){return this._reflector},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,e){var n=null,r=function(){if(!n)throw new Error("Illegal state: Class "+e+" for type "+$(t)+" is not compiled yet!");return n.apply(this,arguments)};return r.setDelegate=function(t){n=t,r.prototype=t.prototype},r.overriddenName=e,r},t.prototype.getGeneratedClass=function(t,e){return t instanceof _t?this._staticSymbolCache.get(Oo(t.filePath),e):this._createProxyClass(t,e)},t.prototype.getComponentViewClass=function(t){return this.getGeneratedClass(t,Ot(t,0))},t.prototype.getHostComponentViewClass=function(t){return this.getGeneratedClass(t,At(t))},t.prototype.getHostComponentType=function(t){var e=St({reference:t})+"_Host";if(t instanceof _t)return this._staticSymbolCache.get(t.filePath,e);var n=function(){};return n.overriddenName=e,n},t.prototype.getRendererType=function(t){return t instanceof _t?this._staticSymbolCache.get(Oo(t.filePath),Pt(t)):{}},t.prototype.getComponentFactory=function(t,e,n,r){if(e instanceof _t)return this._staticSymbolCache.get(Oo(e.filePath),Tt(e));var i=this.getHostComponentViewClass(e);return this._reflector.resolveExternalReference(jo.createComponentFactory)(t,e,i,n,r,[])},t.prototype.initComponentFactory=function(t,e){var n;t instanceof _t||(n=t.ngContentSelectors).push.apply(n,e)},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.getHostComponentMetadata=function(t,e){var n=this.getHostComponentType(t.type.reference);e||(e=this.getHostComponentViewClass(n));var r=Wo.parse(t.selector)[0].getMatchingElementTemplate(),i=this._htmlParser.parse(r,"");return Lt.create({isHost:!0,type:{reference:n,diDeps:[],lifecycleHooks:[]},template:new Nt({encapsulation:h.None,template:r,templateUrl:"",htmlAst:i,styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null,preserveWhitespaces:!1}),exportAs:null,changeDetection:d.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],guards:{},viewQueries:[],componentViewType:e,rendererType:{id:"__Host__",encapsulation:h.None,styles:[],data:{}},entryComponents:[],componentFactory:null})},t.prototype.loadDirectiveMetadata=function(t,e,n){var r=this;if(this._directiveCache.has(e))return null;e=X(e);var i,o,a=this.getNonNormalizedDirectiveMetadata(e),s=a.annotation,c=a.metadata,l=function(t){var n=new Lt({isHost:!1,type:c.type,isComponent:c.isComponent,selector:c.selector,exportAs:c.exportAs,changeDetection:c.changeDetection,inputs:c.inputs,outputs:c.outputs,hostListeners:c.hostListeners,hostProperties:c.hostProperties,hostAttributes:c.hostAttributes,providers:c.providers,viewProviders:c.viewProviders,queries:c.queries,guards:c.guards,viewQueries:c.viewQueries,entryComponents:c.entryComponents,componentViewType:c.componentViewType,rendererType:c.rendererType,componentFactory:c.componentFactory,template:t});return t&&r.initComponentFactory(c.componentFactory,t.ngContentSelectors),r._directiveCache.set(e,n),r._summaryCache.set(e,n.toSummary()),null};if(c.isComponent){var u=c.template,p=this._directiveNormalizer.normalizeTemplate({ngModuleType:t,componentType:e,moduleUrl:this._reflector.componentModuleUrl(e,s),encapsulation:u.encapsulation,template:u.template,templateUrl:u.templateUrl,styles:u.styles,styleUrls:u.styleUrls,animations:u.animations,interpolation:u.interpolation,preserveWhitespaces:u.preserveWhitespaces});return Q(p)&&n?(this._reportError((i=e,(o=Error("Can't compile synchronously as "+$(i)+" is still being loaded!"))[Ko]=i,o),e),null):U(p,l)}return l(null),null},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var e=this;if(!(t=X(t)))return null;var n=this._nonNormalizedDirectiveCache.get(t);if(n)return n;var r=this._directiveResolver.resolve(t,!1);if(!r)return null;var i=void 0;if(f.isTypeOf(r)){re("styles",(a=r).styles),re("styleUrls",a.styleUrls),oe("interpolation",a.interpolation);var o=a.animations;i=new Nt({encapsulation:F(a.encapsulation),template:F(a.template),templateUrl:F(a.templateUrl),htmlAst:null,styles:a.styles||[],styleUrls:a.styleUrls||[],animations:o||[],interpolation:F(a.interpolation),isInline:!!a.template,externalStylesheets:[],ngContentSelectors:[],preserveWhitespaces:F(r.preserveWhitespaces)})}var a,s=null,c=[],l=[],u=r.selector;f.isTypeOf(r)?(s=(a=r).changeDetection,a.viewProviders&&(c=this._getProvidersMetadata(a.viewProviders,l,'viewProviders for "'+Jo(t)+'"',[],t)),a.entryComponents&&(l=Xo(a.entryComponents).map(function(t){return e._getEntryComponentMetadata(t)}).concat(l)),u||(u=this._schemaRegistry.getDefaultComponentElementName())):u||(this._reportError(z("Directive "+Jo(t)+" has no selector, please add it!"),t),u="error");var p=[];null!=r.providers&&(p=this._getProvidersMetadata(r.providers,l,'providers for "'+Jo(t)+'"',[],t));var h=[],d=[];null!=r.queries&&(h=this._getQueriesMetadata(r.queries,!1,t),d=this._getQueriesMetadata(r.queries,!0,t));var m=Lt.create({isHost:!1,selector:u,exportAs:F(r.exportAs),isComponent:!!i,type:this._getTypeMetadata(t),template:i,changeDetection:s,inputs:r.inputs||[],outputs:r.outputs||[],host:r.host||{},providers:p||[],viewProviders:c||[],queries:h||[],guards:r.guards||{},viewQueries:d||[],entryComponents:l,componentViewType:i?this.getComponentViewClass(t):null,rendererType:i?this.getRendererType(t):null,componentFactory:null});return i&&(m.componentFactory=this.getComponentFactory(u,t,m.inputs,m.outputs)),n={metadata:m,annotation:r},this._nonNormalizedDirectiveCache.set(t,n),n},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(z("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+Jo(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,Mt.Directive);return e||this._reportError(z("Illegal state: Could not load the summary for directive "+Jo(t)+"."),t),e},t.prototype.isDirective=function(t){return!!this._loadSummary(t,Mt.Directive)||this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return!!this._loadSummary(t,Mt.Pipe)||this._pipeResolver.isPipe(t)},t.prototype.isNgModule=function(t){return!!this._loadSummary(t,Mt.NgModule)||this._ngModuleResolver.isNgModule(t)},t.prototype.getNgModuleSummary=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,Mt.NgModule);if(!n){var r=this.getNgModuleMetadata(t,!1,e);(n=r?r.toSummary():null)&&this._summaryCache.set(t,n)}return n},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=this.getNgModuleMetadata(t,n),o=[];return i&&(i.declaredDirectives.forEach(function(n){var i=r.loadDirectiveMetadata(t,n.reference,e);i&&o.push(i)}),i.declaredPipes.forEach(function(t){return r._loadPipeMetadata(t.reference)})),Promise.all(o)},t.prototype.getNgModuleMetadata=function(t,e,n){var r=this;void 0===e&&(e=!0),void 0===n&&(n=null),t=X(t);var i=this._ngModuleCache.get(t);if(i)return i;var o=this._ngModuleResolver.resolve(t,e);if(!o)return null;var a=[],s=[],c=[],l=[],u=[],p=[],h=[],d=[],f=[];o.imports&&Xo(o.imports).forEach(function(e){var i=void 0;if(Qo(e))i=e;else if(e&&e.ngModule){var o=e;i=o.ngModule,o.providers&&p.push.apply(p,r._getProvidersMetadata(o.providers,h,"provider for the NgModule '"+Jo(i)+"'",[],e))}if(i){if(!r._checkSelfImport(t,i))if(n||(n=new Set),n.has(i))r._reportError(z(r._getTypeDescriptor(i)+" '"+Jo(e)+"' is imported recursively by the module '"+Jo(t)+"'."),t);else{n.add(i);var a=r.getNgModuleSummary(i,n);n.delete(i),a?l.push(a):r._reportError(z("Unexpected "+r._getTypeDescriptor(e)+" '"+Jo(e)+"' imported by the module '"+Jo(t)+"'. Please add a @NgModule annotation."),t)}}else r._reportError(z("Unexpected value '"+Jo(e)+"' imported by the module '"+Jo(t)+"'"),t)}),o.exports&&Xo(o.exports).forEach(function(e){if(Qo(e))if(n||(n=new Set),n.has(e))r._reportError(z(r._getTypeDescriptor(e)+" '"+$(e)+"' is exported recursively by the module '"+Jo(t)+"'"),t);else{n.add(e);var i=r.getNgModuleSummary(e,n);n.delete(e),i?u.push(i):s.push(r._getIdentifierMetadata(e))}else r._reportError(z("Unexpected value '"+Jo(e)+"' exported by the module '"+Jo(t)+"'"),t)});var m=this._getTransitiveNgModuleMetadata(l,u);o.declarations&&Xo(o.declarations).forEach(function(e){if(Qo(e)){var n=r._getIdentifierMetadata(e);if(r.isDirective(e))m.addDirective(n),a.push(n),r._addTypeToModule(e,t);else{if(!r.isPipe(e))return void r._reportError(z("Unexpected "+r._getTypeDescriptor(e)+" '"+Jo(e)+"' declared by the module '"+Jo(t)+"'. Please add a @Pipe/@Directive/@Component annotation."),t);m.addPipe(n),m.pipes.push(n),c.push(n),r._addTypeToModule(e,t)}}else r._reportError(z("Unexpected value '"+Jo(e)+"' declared by the module '"+Jo(t)+"'"),t)});var g=[],y=[];return s.forEach(function(e){if(m.directivesSet.has(e.reference))g.push(e),m.addExportedDirective(e);else{if(!m.pipesSet.has(e.reference))return void r._reportError(z("Can't export "+r._getTypeDescriptor(e.reference)+" "+Jo(e.reference)+" from "+Jo(t)+" as it was neither declared nor imported!"),t);y.push(e),m.addExportedPipe(e)}}),o.providers&&p.push.apply(p,this._getProvidersMetadata(o.providers,h,"provider for the NgModule '"+Jo(t)+"'",[],t)),o.entryComponents&&h.push.apply(h,Xo(o.entryComponents).map(function(t){return r._getEntryComponentMetadata(t)})),o.bootstrap&&Xo(o.bootstrap).forEach(function(e){Qo(e)?d.push(r._getIdentifierMetadata(e)):r._reportError(z("Unexpected value '"+Jo(e)+"' used in the bootstrap property of module '"+Jo(t)+"'"),t)}),h.push.apply(h,d.map(function(t){return r._getEntryComponentMetadata(t.reference)})),o.schemas&&f.push.apply(f,Xo(o.schemas)),i=new Ft({type:this._getTypeMetadata(t),providers:p,entryComponents:h,bootstrapComponents:d,schemas:f,declaredDirectives:a,exportedDirectives:g,declaredPipes:c,exportedPipes:y,importedModules:l,exportedModules:u,transitiveModule:m,id:o.id||null}),h.forEach(function(t){return m.addEntryComponent(t)}),p.forEach(function(t){return m.addProvider(t,i.type)}),m.addModule(i.type),this._ngModuleCache.set(t,i),i},t.prototype._checkSelfImport=function(t,e){return t===e&&(this._reportError(z("'"+Jo(t)+"' module can't import itself"),t),!0)},t.prototype._getTypeDescriptor=function(t){if(Qo(t)){if(this.isDirective(t))return"directive";if(this.isPipe(t))return"pipe";if(this.isNgModule(t))return"module"}return t.provide?"provider":"value"},t.prototype._addTypeToModule=function(t,e){var n=this._ngModuleOfTypes.get(t);n&&n!==e?this._reportError(z("Type "+Jo(t)+" is part of the declarations of 2 modules: "+Jo(n)+" and "+Jo(e)+"! Please consider moving "+Jo(t)+" to a higher module that imports "+Jo(n)+" and "+Jo(e)+". You can also create a new NgModule that exports and includes "+Jo(t)+" then import that NgModule in "+Jo(n)+" and "+Jo(e)+"."),e):this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var n=new Vt,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 i=Rt(t.provider.token),o=r.get(i);o||(o=new Set,r.set(i,o));var a=t.module.reference;!e.has(i)&&o.has(a)||(o.add(a),e.add(i),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{reference:t=X(t)}},t.prototype.isInjectable=function(t){return this._reflector.annotations(t).some(function(t){return E.isTypeOf(t)})},t.prototype.getInjectableSummary=function(t){return{summaryKind:Mt.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype._getInjectableMetadata=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,Mt.Injectable);return n?n.type:this._getTypeMetadata(t,e)},t.prototype._getTypeMetadata=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=!0);var r,i,o=this._getIdentifierMetadata(t);return{reference:o.reference,diDeps:this._getDependenciesMetadata(o.reference,e,n),lifecycleHooks:(r=this._reflector,i=o.reference,Uo.filter(function(t){return Ho(r,t,i)}))}},t.prototype._getFactoryMetadata=function(t,e){return void 0===e&&(e=null),{reference:t=X(t),diDeps:this._getDependenciesMetadata(t,e)}},t.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(z("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+Jo(t)+"."),t),e||null},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,Mt.Pipe);return e||this._reportError(z("Illegal state: Could not load the summary for pipe "+Jo(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=X(t);var e=this._pipeResolver.resolve(t),n=new jt({type:this._getTypeMetadata(t),name:e.name,pure:!!e.pure});return this._pipeCache.set(t,n),this._summaryCache.set(t,n.toSummary()),n},t.prototype._getDependenciesMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var s=!1,c=(e||this._reflector.parameters(t)||[]).map(function(t){var e=!1,n=!1,c=!1,l=!1,u=!1,p=null;return Array.isArray(t)?t.forEach(function(t){O.isTypeOf(t)?n=!0:S.isTypeOf(t)?c=!0:k.isTypeOf(t)?l=!0:x.isTypeOf(t)?u=!0:a.isTypeOf(t)?(e=!0,p=t.attributeName):i.isTypeOf(t)?p=t.token:o.isTypeOf(t)||t instanceof _t?p=t:Qo(t)&&null==p&&(p=t)}):p=t,null==p?(s=!0,null):{isAttribute:e,isHost:n,isSelf:c,isSkipSelf:l,isOptional:u,token:r._getTokenMetadata(p)}});if(s){var l=c.map(function(t){return t?Jo(t.token):"?"}).join(", "),u="Can't resolve all parameters for "+Jo(t)+": ("+l+").";n||this._config.strictInjectionParameters?this._reportError(z(u),t):this._console.warn("Warning: "+u+" This will become an error in Angular v6.x")}return c},t.prototype._getTokenMetadata=function(t){return"string"==typeof(t=X(t))?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,e,n,r,i){var o=this;return void 0===r&&(r=[]),t.forEach(function(a,s){if(Array.isArray(a))o._getProvidersMetadata(a,e,n,r);else{var c=void 0;if((a=X(a))&&"object"==typeof a&&a.hasOwnProperty("provide"))o._validateProvider(a),c=new Ut(a.provide,a);else{if(!Qo(a)){if(void 0===a)return void o._reportError(z("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<s?t.push(""+Jo(e)):n==s?t.push("?"+Jo(e)+"?"):n==s+1&&t.push("..."),t},[]).join(", ");return void o._reportError(z("Invalid "+(n||"provider")+" - only instances of Provider and Type are allowed, got: ["+l+"]"),i)}c=new Ut(a,{useClass:a})}c.token===o._reflector.resolveExternalReference(jo.ANALYZE_FOR_ENTRY_COMPONENTS)?e.push.apply(e,o._getEntryComponentsFromProvider(c,i)):r.push(o.getProviderMetadata(c))}}),r},t.prototype._validateProvider=function(t){t.hasOwnProperty("useClass")&&null==t.useClass&&this._reportError(z("Invalid provider for "+Jo(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,r,i=this,o=[],a=[];return t.useFactory||t.useExisting||t.useClass?(this._reportError(z("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),e),[]):t.multi?(n=t.useValue,r=a,L(n,new Zo,r),a.forEach(function(t){var e=i._getEntryComponentMetadata(t.reference,!1);e&&o.push(e)}),o):(this._reportError(z("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,Mt.Directive);if(r&&r.isComponent)return{componentType:t,componentFactory:r.componentFactory};if(e)throw z(t.name+" cannot be used as an entry component.");return null},t.prototype.getProviderMetadata=function(t){var e=void 0,n=null,r=null,i=this._getTokenMetadata(t.token);return t.useClass?(e=(n=this._getInjectableMetadata(t.useClass,t.dependencies)).diDeps,t.token===t.useClass&&(i={identifier:n})):t.useFactory&&(e=(r=this._getFactoryMetadata(t.useFactory,t.dependencies)).diDeps),{token:i,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,i=[];return Object.keys(t).forEach(function(o){var a=t[o];a.isViewQuery===e&&i.push(r._getQueryMetadata(a,o,n))}),i},t.prototype._queryVarBindings=function(t){return t.split(/\s*,\s*/)},t.prototype._getQueryMetadata=function(t,e,n){var r,i=this;return"string"==typeof t.selector?r=this._queryVarBindings(t.selector).map(function(t){return i._getTokenMetadata(t)}):t.selector?r=[this._getTokenMetadata(t.selector)]:(this._reportError(z("Can't construct a query for the property \""+e+'" of "'+Jo(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}();function Xo(t){return(e=function t(e,n){if(void 0===n&&(n=[]),e)for(var r=0;r<e.length;r++){var i=X(e[r]);Array.isArray(i)?t(i,n):n.push(i)}return n}(t))?Array.from(new Set(e)):[];var e}function Qo(t){return t instanceof _t||t instanceof P}var Zo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.visitOther=function(t,e){e.push({reference:t})},e}(V);function Jo(t){return t instanceof _t?t.name+" in "+t.filePath:$(t)}var ta={Const:0};ta[ta.Const]="Const";var ea=function(){function t(t){void 0===t&&(t=null),this.modifiers=t,t||(this.modifiers=[])}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),na={Dynamic:0,Bool:1,String:2,Int:3,Number:4,Function:5,Inferred:6};na[na.Dynamic]="Dynamic",na[na.Bool]="Bool",na[na.String]="String",na[na.Int]="Int",na[na.Number]="Number",na[na.Function]="Function",na[na.Inferred]="Inferred";var ra=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.name=e,r}return n(e,t),e.prototype.visitType=function(t,e){return t.visitBuiltintType(this,e)},e}(ea),ia=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.value=e,r}return n(e,t),e.prototype.visitType=function(t,e){return t.visitExpressionType(this,e)},e}(ea),oa=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.of=e,r}return n(e,t),e.prototype.visitType=function(t,e){return t.visitArrayType(this,e)},e}(ea),aa=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 n(e,t),e.prototype.visitType=function(t,e){return t.visitMapType(this,e)},e}(ea),sa=new ra(na.Dynamic),ca=new ra(na.Inferred),la=new ra(na.Bool),ua=(new ra(na.Int),new ra(na.Number),new ra(na.String),new ra(na.Function),{Equals:0,NotEquals:1,Identical:2,NotIdentical:3,Minus:4,Plus:5,Divide:6,Multiply:7,Modulo:8,And:9,Or:10,Lower:11,LowerEquals:12,Bigger:13,BiggerEquals:14});function pa(t,e){return null==t||null==e?t==e:t.isEquivalent(e)}function ha(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(!t[r].isEquivalent(e[r]))return!1;return!0}ua[ua.Equals]="Equals",ua[ua.NotEquals]="NotEquals",ua[ua.Identical]="Identical",ua[ua.NotIdentical]="NotIdentical",ua[ua.Minus]="Minus",ua[ua.Plus]="Plus",ua[ua.Divide]="Divide",ua[ua.Multiply]="Multiply",ua[ua.Modulo]="Modulo",ua[ua.And]="And",ua[ua.Or]="Or",ua[ua.Lower]="Lower",ua[ua.LowerEquals]="LowerEquals",ua[ua.Bigger]="Bigger",ua[ua.BiggerEquals]="BiggerEquals";var da=function(){function t(t,e){this.type=t||null,this.sourceSpan=e||null}return t.prototype.prop=function(t,e){return new Ra(this,t,null,e)},t.prototype.key=function(t,e,n){return new Da(this,t,e,n)},t.prototype.callMethod=function(t,e,n){return new _a(this,t,e,null,n)},t.prototype.callFn=function(t,e){return new wa(this,t,null,e)},t.prototype.instantiate=function(t,e,n){return new Ca(this,t,e,n)},t.prototype.conditional=function(t,e,n){return void 0===e&&(e=null),new ka(this,t,e,null,n)},t.prototype.equals=function(t,e){return new Ia(ua.Equals,this,t,null,e)},t.prototype.notEquals=function(t,e){return new Ia(ua.NotEquals,this,t,null,e)},t.prototype.identical=function(t,e){return new Ia(ua.Identical,this,t,null,e)},t.prototype.notIdentical=function(t,e){return new Ia(ua.NotIdentical,this,t,null,e)},t.prototype.minus=function(t,e){return new Ia(ua.Minus,this,t,null,e)},t.prototype.plus=function(t,e){return new Ia(ua.Plus,this,t,null,e)},t.prototype.divide=function(t,e){return new Ia(ua.Divide,this,t,null,e)},t.prototype.multiply=function(t,e){return new Ia(ua.Multiply,this,t,null,e)},t.prototype.modulo=function(t,e){return new Ia(ua.Modulo,this,t,null,e)},t.prototype.and=function(t,e){return new Ia(ua.And,this,t,null,e)},t.prototype.or=function(t,e){return new Ia(ua.Or,this,t,null,e)},t.prototype.lower=function(t,e){return new Ia(ua.Lower,this,t,null,e)},t.prototype.lowerEquals=function(t,e){return new Ia(ua.LowerEquals,this,t,null,e)},t.prototype.bigger=function(t,e){return new Ia(ua.Bigger,this,t,null,e)},t.prototype.biggerEquals=function(t,e){return new Ia(ua.BiggerEquals,this,t,null,e)},t.prototype.isBlank=function(t){return this.equals(Ba,t)},t.prototype.cast=function(t,e){return new Aa(this,t,e)},t.prototype.toStmt=function(){return new Ga(this,null)},t}(),fa={This:0,Super:1,CatchError:2,CatchStack:3};fa[fa.This]="This",fa[fa.Super]="Super",fa[fa.CatchError]="CatchError",fa[fa.CatchStack]="CatchStack";var ma=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return"string"==typeof e?(i.name=e,i.builtin=null):(i.name=null,i.builtin=e),i}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.name===t.name&&this.builtin===t.builtin},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 ga(this.name,t,null,this.sourceSpan)},e}(da),ga=function(t){function e(e,n,r,i){var o=t.call(this,r||n.type,i)||this;return o.name=e,o.value=n,o}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.name===t.name&&this.value.isEquivalent(t.value)},e.prototype.visitExpression=function(t,e){return t.visitWriteVarExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return new za(this.name,this.value,t,e,this.sourceSpan)},e}(da),ya=function(t){function e(e,n,r,i,o){var a=t.call(this,i||r.type,o)||this;return a.receiver=e,a.index=n,a.value=r,a}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.index.isEquivalent(t.index)&&this.value.isEquivalent(t.value)},e.prototype.visitExpression=function(t,e){return t.visitWriteKeyExpr(this,e)},e}(da),va=function(t){function e(e,n,r,i,o){var a=t.call(this,i||r.type,o)||this;return a.receiver=e,a.name=n,a.value=r,a}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name&&this.value.isEquivalent(t.value)},e.prototype.visitExpression=function(t,e){return t.visitWritePropExpr(this,e)},e}(da),ba={ConcatArray:0,SubscribeObservable:1,Bind:2};ba[ba.ConcatArray]="ConcatArray",ba[ba.SubscribeObservable]="SubscribeObservable",ba[ba.Bind]="Bind";var _a=function(t){function e(e,n,r,i,o){var a=t.call(this,i,o)||this;return a.receiver=e,a.args=r,"string"==typeof n?(a.name=n,a.builtin=null):(a.name=null,a.builtin=n),a}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name&&this.builtin===t.builtin&&ha(this.args,t.args)},e.prototype.visitExpression=function(t,e){return t.visitInvokeMethodExpr(this,e)},e}(da),wa=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.fn=e,o.args=n,o}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.fn.isEquivalent(t.fn)&&ha(this.args,t.args)},e.prototype.visitExpression=function(t,e){return t.visitInvokeFunctionExpr(this,e)},e}(da),Ca=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.classExpr=e,o.args=n,o}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.classExpr.isEquivalent(t.classExpr)&&ha(this.args,t.args)},e.prototype.visitExpression=function(t,e){return t.visitInstantiateExpr(this,e)},e}(da),xa=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.value=e,i}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.value===t.value},e.prototype.visitExpression=function(t,e){return t.visitLiteralExpr(this,e)},e}(da),Ea=function(t){function e(e,n,r,i){void 0===r&&(r=null);var o=t.call(this,n,i)||this;return o.value=e,o.typeParams=r,o}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.value.name===t.value.name&&this.value.moduleName===t.value.moduleName&&this.value.runtime===t.value.runtime},e.prototype.visitExpression=function(t,e){return t.visitExternalExpr(this,e)},e}(da),Sa=function(){return function(t,e,n){this.moduleName=t,this.name=e,this.runtime=n}}(),ka=function(t){function e(e,n,r,i,o){void 0===r&&(r=null);var a=t.call(this,i||n.type,o)||this;return a.condition=e,a.falseCase=r,a.trueCase=n,a}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.condition.isEquivalent(t.condition)&&this.trueCase.isEquivalent(t.trueCase)&&pa(this.falseCase,t.falseCase)},e.prototype.visitExpression=function(t,e){return t.visitConditionalExpr(this,e)},e}(da),Oa=function(t){function e(e,n){var r=t.call(this,la,n)||this;return r.condition=e,r}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.condition.isEquivalent(t.condition)},e.prototype.visitExpression=function(t,e){return t.visitNotExpr(this,e)},e}(da),Pa=function(t){function e(e,n){var r=t.call(this,e.type,n)||this;return r.condition=e,r}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.condition.isEquivalent(t.condition)},e.prototype.visitExpression=function(t,e){return t.visitAssertNotNullExpr(this,e)},e}(da),Aa=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.value=e,i}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.value.isEquivalent(t.value)},e.prototype.visitExpression=function(t,e){return t.visitCastExpr(this,e)},e}(da),Ta=function(){function t(t,e){void 0===e&&(e=null),this.name=t,this.type=e}return t.prototype.isEquivalent=function(t){return this.name===t.name},t}(),Ma=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.params=e,o.statements=n,o}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&ha(this.params,t.params)&&ha(this.statements,t.statements)},e.prototype.visitExpression=function(t,e){return t.visitFunctionExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===e&&(e=null),new Wa(t,this.params,this.statements,this.type,e,this.sourceSpan)},e}(da),Ia=function(t){function e(e,n,r,i,o){var a=t.call(this,i||n.type,o)||this;return a.operator=e,a.rhs=r,a.lhs=n,a}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.operator===t.operator&&this.lhs.isEquivalent(t.lhs)&&this.rhs.isEquivalent(t.rhs)},e.prototype.visitExpression=function(t,e){return t.visitBinaryOperatorExpr(this,e)},e}(da),Ra=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.receiver=e,o.name=n,o}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name},e.prototype.visitExpression=function(t,e){return t.visitReadPropExpr(this,e)},e.prototype.set=function(t){return new va(this.receiver,this.name,t,null,this.sourceSpan)},e}(da),Da=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.receiver=e,o.index=n,o}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.index.isEquivalent(t.index)},e.prototype.visitExpression=function(t,e){return t.visitReadKeyExpr(this,e)},e.prototype.set=function(t){return new ya(this.receiver,this.index,t,null,this.sourceSpan)},e}(da),Na=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.entries=e,i}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&ha(this.entries,t.entries)},e.prototype.visitExpression=function(t,e){return t.visitLiteralArrayExpr(this,e)},e}(da),La=function(){function t(t,e,n){this.key=t,this.value=e,this.quoted=n}return t.prototype.isEquivalent=function(t){return this.key===t.key&&this.value.isEquivalent(t.value)},t}(),ja=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.entries=e,i.valueType=null,n&&(i.valueType=n.valueType),i}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&ha(this.entries,t.entries)},e.prototype.visitExpression=function(t,e){return t.visitLiteralMapExpr(this,e)},e}(da),Fa=function(t){function e(e,n){var r=t.call(this,e[e.length-1].type,n)||this;return r.parts=e,r}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&ha(this.parts,t.parts)},e.prototype.visitExpression=function(t,e){return t.visitCommaExpr(this,e)},e}(da),Va=(new ma(fa.This,null,null),new ma(fa.Super,null,null),new ma(fa.CatchError,null,null),new ma(fa.CatchStack,null,null),new xa(null,null,null)),Ba=new xa(null,ca,null),Ua={Final:0,Private:1,Exported:2};Ua[Ua.Final]="Final",Ua[Ua.Private]="Private",Ua[Ua.Exported]="Exported";var Ha=function(){function t(t,e){this.modifiers=t||[],this.sourceSpan=e||null}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),za=function(t){function e(e,n,r,i,o){void 0===i&&(i=null);var a=t.call(this,i,o)||this;return a.name=e,a.value=n,a.type=r||n.type,a}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.name===t.name&&this.value.isEquivalent(t.value)},e.prototype.visitStatement=function(t,e){return t.visitDeclareVarStmt(this,e)},e}(Ha),Wa=function(t){function e(e,n,r,i,o,a){void 0===o&&(o=null);var s=t.call(this,o,a)||this;return s.name=e,s.params=n,s.statements=r,s.type=i||null,s}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&ha(this.params,t.params)&&ha(this.statements,t.statements)},e.prototype.visitStatement=function(t,e){return t.visitDeclareFunctionStmt(this,e)},e}(Ha),Ga=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.expr=e,r}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.expr.isEquivalent(t.expr)},e.prototype.visitStatement=function(t,e){return t.visitExpressionStmt(this,e)},e}(Ha),qa=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.value=e,r}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.value.isEquivalent(t.value)},e.prototype.visitStatement=function(t,e){return t.visitReturnStmt(this,e)},e}(Ha),Ya=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}(),Ka=(function(t){function e(e,n,r){void 0===r&&(r=null);var i=t.call(this,n,r)||this;return i.name=e,i}n(e,t),e.prototype.isEquivalent=function(t){return this.name===t.name}}(Ya),function(t){function e(e,n,r,i,o){void 0===o&&(o=null);var a=t.call(this,i,o)||this;return a.name=e,a.params=n,a.body=r,a}return n(e,t),e.prototype.isEquivalent=function(t){return this.name===t.name&&ha(this.body,t.body)},e}(Ya)),$a=function(t){function e(e,n,r,i){void 0===i&&(i=null);var o=t.call(this,r,i)||this;return o.name=e,o.body=n,o}return n(e,t),e.prototype.isEquivalent=function(t){return this.name===t.name&&ha(this.body,t.body)},e}(Ya),Xa=function(t){function e(e,n,r,i,o,a,s,c){void 0===s&&(s=null);var l=t.call(this,s,c)||this;return l.name=e,l.parent=n,l.fields=r,l.getters=i,l.constructorMethod=o,l.methods=a,l}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.name===t.name&&pa(this.parent,t.parent)&&ha(this.fields,t.fields)&&ha(this.getters,t.getters)&&this.constructorMethod.isEquivalent(t.constructorMethod)&&ha(this.methods,t.methods)},e.prototype.visitStatement=function(t,e){return t.visitDeclareClassStmt(this,e)},e}(Ha),Qa=function(t){function e(e,n,r,i){void 0===r&&(r=[]);var o=t.call(this,null,i)||this;return o.condition=e,o.trueCase=n,o.falseCase=r,o}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.condition.isEquivalent(t.condition)&&ha(this.trueCase,t.trueCase)&&ha(this.falseCase,t.falseCase)},e.prototype.visitStatement=function(t,e){return t.visitIfStmt(this,e)},e}(Ha),Za=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.comment=e,r}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e},e.prototype.visitStatement=function(t,e){return t.visitCommentStmt(this,e)},e}(Ha),Ja=function(t){function e(e,n,r){var i=t.call(this,null,r)||this;return i.bodyStmts=e,i.catchStmts=n,i}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&ha(this.bodyStmts,t.bodyStmts)&&ha(this.catchStmts,t.catchStmts)},e.prototype.visitStatement=function(t,e){return t.visitTryCatchStmt(this,e)},e}(Ha),ts=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.error=e,r}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof Ja&&this.error.isEquivalent(t.error)},e.prototype.visitStatement=function(t,e){return t.visitThrowStmt(this,e)},e}(Ha),es=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 ga(t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWriteKeyExpr=function(t,e){return this.transformExpr(new ya(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 va(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 _a(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 wa(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 Ca(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 ka(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 Oa(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitAssertNotNullExpr=function(t,e){return this.transformExpr(new Pa(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCastExpr=function(t,e){return this.transformExpr(new Aa(t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitFunctionExpr=function(t,e){return this.transformExpr(new Ma(t.params,this.visitAllStatements(t.statements,e),t.type,t.sourceSpan),e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return this.transformExpr(new Ia(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 Ra(t.receiver.visitExpression(this,e),t.name,t.type,t.sourceSpan),e)},t.prototype.visitReadKeyExpr=function(t,e){return this.transformExpr(new Da(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 Na(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 La(t.key,t.value.visitExpression(n,e),t.quoted)}),i=new aa(t.valueType,null);return this.transformExpr(new ja(r,i,t.sourceSpan),e)},t.prototype.visitCommaExpr=function(t,e){return this.transformExpr(new Fa(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 za(t.name,t.value.visitExpression(this,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.transformStmt(new Wa(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 Ga(t.expr.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitReturnStmt=function(t,e){return this.transformStmt(new qa(t.value.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitDeclareClassStmt=function(t,e){var n=this,r=t.parent.visitExpression(this,e),i=t.getters.map(function(t){return new $a(t.name,n.visitAllStatements(t.body,e),t.type,t.modifiers)}),o=t.constructorMethod&&new Ka(t.constructorMethod.name,t.constructorMethod.params,this.visitAllStatements(t.constructorMethod.body,e),t.constructorMethod.type,t.constructorMethod.modifiers),a=t.methods.map(function(t){return new Ka(t.name,t.params,n.visitAllStatements(t.body,e),t.type,t.modifiers)});return this.transformStmt(new Xa(t.name,r,t.fields,i,o,a,t.modifiers,t.sourceSpan),e)},t.prototype.visitIfStmt=function(t,e){return this.transformStmt(new Qa(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 Ja(this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t.sourceSpan),e)},t.prototype.visitThrowStmt=function(t,e){return this.transformStmt(new ts(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}(),ns=function(){function t(){}return t.prototype.visitType=function(t,e){return t},t.prototype.visitExpression=function(t,e){return t.type&&t.type.visitType(this,e),t},t.prototype.visitBuiltintType=function(t,e){return this.visitType(t,e)},t.prototype.visitExpressionType=function(t,e){return t.value.visitExpression(this,e),this.visitType(t,e)},t.prototype.visitArrayType=function(t,e){return this.visitType(t,e)},t.prototype.visitMapType=function(t,e){return this.visitType(t,e)},t.prototype.visitReadVarExpr=function(t,e){return this.visitExpression(t,e)},t.prototype.visitWriteVarExpr=function(t,e){return t.value.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitWriteKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitWritePropExpr=function(t,e){return t.receiver.visitExpression(this,e),t.value.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitInvokeMethodExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitAllExpressions(t.args,e),this.visitExpression(t,e)},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),this.visitExpression(t,e)},t.prototype.visitInstantiateExpr=function(t,e){return t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),this.visitExpression(t,e)},t.prototype.visitLiteralExpr=function(t,e){return this.visitExpression(t,e)},t.prototype.visitExternalExpr=function(t,e){var n=this;return t.typeParams&&t.typeParams.forEach(function(t){return t.visitType(n,e)}),this.visitExpression(t,e)},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitNotExpr=function(t,e){return t.condition.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitAssertNotNullExpr=function(t,e){return t.condition.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitFunctionExpr=function(t,e){return this.visitAllStatements(t.statements,e),this.visitExpression(t,e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e),this.visitExpression(t,e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return t.entries.forEach(function(t){return t.value.visitExpression(n,e)}),this.visitExpression(t,e)},t.prototype.visitCommaExpr=function(t,e){return this.visitAllExpressions(t.parts,e),this.visitExpression(t,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.type&&t.type.visitType(this,e),t},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.visitAllStatements(t.statements,e),t.type&&t.type.visitType(this,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}();function rs(t){var e=new is;return e.visitAllStatements(t,null),e.varNames}var is=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.varNames=new Set,e}return n(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}(ns);var os=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.externalReferences=[],e}return n(e,t),e.prototype.visitExternalExpr=function(e,n){return this.externalReferences.push(e.value),t.prototype.visitExternalExpr.call(this,e,n)},e}(ns);function as(t,e){if(!e)return t;var n=new cs(e);return t.visitStatement(n,null)}function ss(t,e){if(!e)return t;var n=new cs(e);return t.visitExpression(n,null)}var cs=function(t){function e(e){var n=t.call(this)||this;return n.sourceSpan=e,n}return n(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}(es);function ls(t,e,n){return new ma(t,e,n)}function us(t,e,n){return void 0===e&&(e=null),new Ea(t,null,e,n)}function ps(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),null!=t?hs(us(t,e,null),n):null}function hs(t,e){return void 0===e&&(e=null),new ia(t,e)}function ds(t,e,n){return new Na(t,e,n)}function fs(t,e){return void 0===e&&(e=null),new ja(t.map(function(t){return new La(t.key,t.value,t.quoted)}),e,null)}function ms(t,e,n,r){return new Ma(t,e,n,r)}function gs(t,e,n){return new xa(t,e,n)}var ys=function(t){function e(e,n){return t.call(this,n,e)||this}return n(e,t),e}(Cr),vs=function(){return function(t,e){var n=this;this.reflector=t,this.component=e,this.errors=[],this.viewQueries=(r=e,i=1,o=new Map,r.viewQueries&&r.viewQueries.forEach(function(t){return Es(o,{meta:t,queryId:i++})}),o),this.viewProviders=new Map,e.viewProviders.forEach(function(t){null==n.viewProviders.get(Rt(t.token))&&n.viewProviders.set(Rt(t.token),!0)});var r,i,o}}(),bs=function(){function t(t,e,n,r,i,o,a,s,c){var l=this;this.viewContext=t,this._parent=e,this._isViewRoot=n,this._directiveAsts=r,this._sourceSpan=c,this._transformedProviders=new Map,this._seenProviders=new Map,this._queriedTokens=new Map,this.transformedHasViewContainer=!1,this._attrs={},i.forEach(function(t){return l._attrs[t.name]=t.value});var u,p,h,d,f,m,g,y=r.map(function(t){return t.directive});if(this._allProviders=(u=y,p=c,h=t.errors,d=new Map,u.forEach(function(t){xs([{token:{identifier:t.type},useClass:t.type}],t.isComponent?ht.Component:ht.Directive,!0,p,h,d)}),u.filter(function(t){return t.isComponent}).concat(u.filter(function(t){return!t.isComponent})).forEach(function(t){xs(t.providers,ht.PublicService,!1,p,h,d),xs(t.viewProviders,ht.PrivateService,!1,p,h,d)}),d),this._contentQueries=(f=y,m=s,g=new Map,f.forEach(function(t,e){t.queries&&t.queries.forEach(function(t){return Es(g,{meta:t,queryId:m++})})}),g),Array.from(this._allProviders.values()).forEach(function(t){l._addQueryReadsTo(t.token,t.token,l._queriedTokens)}),a){var v=Vo(this.viewContext.reflector,jo.TemplateRef);this._addQueryReadsTo(v,v,this._queriedTokens)}o.forEach(function(t){var e=t.value||Vo(l.viewContext.reflector,jo.ElementRef);l._addQueryReadsTo({value:t.name},e,l._queriedTokens)}),this._queriedTokens.get(this.viewContext.reflector.resolveExternalReference(jo.ViewContainerRef))&&(this.transformedHasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){(t.eager||l._queriedTokens.get(Rt(t.token)))&&l._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(){var t=[],e=[];return this._transformedProviders.forEach(function(n){n.eager?e.push(n):t.push(n)}),t.concat(e)},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,"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,i=Rt(r),o=n.get(i);o||(o=[],n.set(i,o)),o.push({queryId:t.queryId,value:r})})},t.prototype._getQueriesFor=function(t){for(var e,n=[],r=this,i=0;null!==r;)(e=r._contentQueries.get(Rt(t)))&&n.push.apply(n,e.filter(function(t){return t.meta.descendants||i<=1})),r._directiveAsts.length>0&&i++,r=r._parent;return(e=this.viewContext.viewQueries.get(Rt(t)))&&n.push.apply(n,e),n},t.prototype._getOrCreateLocalProvider=function(t,e,n){var r=this,i=this._allProviders.get(Rt(e));if(!i||(t===ht.Directive||t===ht.PublicService)&&i.providerType===ht.PrivateService||(t===ht.PrivateService||t===ht.PublicService)&&i.providerType===ht.Builtin)return null;var o=this._transformedProviders.get(Rt(e));if(o)return o;if(null!=this._seenProviders.get(Rt(e)))return this.viewContext.errors.push(new ys("Cannot instantiate cyclic dependency! "+It(e),this._sourceSpan)),null;this._seenProviders.set(Rt(e),!0);var a=i.providers.map(function(t){var e=t.useValue,o=t.useExisting,a=void 0;if(null!=t.useExisting){var s=r._getDependency(i.providerType,{token:t.useExisting},n);null!=s.token?o=s.token:(o=null,e=s.value)}else if(t.useFactory){a=(t.deps||t.useFactory.diDeps).map(function(t){return r._getDependency(i.providerType,t,n)})}else if(t.useClass){a=(t.deps||t.useClass.diDeps).map(function(t){return r._getDependency(i.providerType,t,n)})}return ws(t,{useExisting:o,useValue:e,deps:a})});return o=Cs(i,{eager:n,providers:a}),this._transformedProviders.set(Rt(e),o),o},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===ht.Directive||t===ht.Component){if(Rt(e.token)===this.viewContext.reflector.resolveExternalReference(jo.Renderer)||Rt(e.token)===this.viewContext.reflector.resolveExternalReference(jo.ElementRef)||Rt(e.token)===this.viewContext.reflector.resolveExternalReference(jo.ChangeDetectorRef)||Rt(e.token)===this.viewContext.reflector.resolveExternalReference(jo.TemplateRef))return e;Rt(e.token)===this.viewContext.reflector.resolveExternalReference(jo.ViewContainerRef)&&(this.transformedHasViewContainer=!0)}if(Rt(e.token)===this.viewContext.reflector.resolveExternalReference(jo.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,i=n,o=null;if(e.isSkipSelf||(o=this._getLocalDependency(t,e,n)),e.isSelf)!o&&e.isOptional&&(o={isValue:!0,value:null});else{for(;!o&&r._parent;){var a=r;r=r._parent,a._isViewRoot&&(i=!1),o=r._getLocalDependency(ht.PublicService,e,i)}o||(o=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===Rt(e.token)||null!=this.viewContext.viewProviders.get(Rt(e.token))?e:e.isOptional?o={isValue:!0,value:null}:null)}return o||this.viewContext.errors.push(new ys("No provider for "+It(e.token),this._sourceSpan)),o},t}(),_s=function(){function t(t,e,n,r){var i=this;this.reflector=t,this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,e.transitiveModule.modules.forEach(function(t){xs([{token:{identifier:t},useClass:t}],ht.PublicService,!0,r,i._errors,i._allProviders)}),xs(e.transitiveModule.providers.map(function(t){return t.provider}).concat(n),ht.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)}var n=[],r=[];return this._transformedProviders.forEach(function(t){t.eager?r.push(t):n.push(t)}),n.concat(r)},t.prototype._getOrCreateLocalProvider=function(t,e){var n=this,r=this._allProviders.get(Rt(t));if(!r)return null;var i=this._transformedProviders.get(Rt(t));if(i)return i;if(null!=this._seenProviders.get(Rt(t)))return this._errors.push(new ys("Cannot instantiate cyclic dependency! "+It(t),r.sourceSpan)),null;this._seenProviders.set(Rt(t),!0);var o=r.providers.map(function(t){var i=t.useValue,o=t.useExisting,a=void 0;if(null!=t.useExisting){var s=n._getDependency({token:t.useExisting},e,r.sourceSpan);null!=s.token?o=s.token:(o=null,i=s.value)}else if(t.useFactory){a=(t.deps||t.useFactory.diDeps).map(function(t){return n._getDependency(t,e,r.sourceSpan)})}else if(t.useClass){a=(t.deps||t.useClass.diDeps).map(function(t){return n._getDependency(t,e,r.sourceSpan)})}return ws(t,{useExisting:o,useValue:i,deps:a})});return i=Cs(r,{eager:e,providers:o}),this._transformedProviders.set(Rt(t),i),i},t.prototype._getDependency=function(t,e,n){void 0===e&&(e=!1);var r=!1;t.isSkipSelf||null==t.token||(Rt(t.token)===this.reflector.resolveExternalReference(jo.Injector)||Rt(t.token)===this.reflector.resolveExternalReference(jo.ComponentFactoryResolver)?r=!0:null!=this._getOrCreateLocalProvider(t.token,e)&&(r=!0));var i=t;return t.isSelf&&!r&&(t.isOptional?i={isValue:!0,value:null}:this._errors.push(new ys("No provider for "+It(t.token),n))),i},t}();function ws(t,e){var n=e.useExisting,r=e.useValue,i=e.deps;return{token:t.token,useClass:t.useClass,useExisting:n,useFactory:t.useFactory,useValue:r,deps:i,multi:t.multi}}function Cs(t,e){var n=e.eager,r=e.providers;return new pt(t.token,t.multiProvider,t.eager||n,r,t.providerType,t.lifecycleHooks,t.sourceSpan)}function xs(t,e,n,r,i,o){t.forEach(function(t){var a=o.get(Rt(t.token));if(null!=a&&!!a.multiProvider!=!!t.multi&&i.push(new ys("Mixing multi and non multi provider is not possible for token "+It(a.token),r)),a)t.multi||(a.providers.length=0),a.providers.push(t);else{var s=t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[],c=!(t.useClass||t.useExisting||t.useFactory);a=new pt(t.token,!!t.multi,n||c,[t],e,s,r),o.set(Rt(t.token),a)}})}function Es(t,e){e.meta.selectors.forEach(function(n){var r=t.get(Rt(n));r||(r=[],t.set(Rt(n),r)),r.push(e)})}function Ss(t,e,n){return void 0===n&&(n=null),L(e,new ks(t),n)}var ks=function(){function t(t){this.ctx=t}return t.prototype.visitArray=function(t,e){var n=this;return ds(t.map(function(t){return L(t,n,null)}),e)},t.prototype.visitStringMap=function(t,e){var n=this,r=[],i=new Set(t&&t.$quoted$);return Object.keys(t).forEach(function(e){r.push(new La(e,L(t[e],n,null),i.has(e)))}),new ja(r,e)},t.prototype.visitPrimitive=function(t,e){return gs(t,e)},t.prototype.visitOther=function(t,e){return t instanceof da?t:this.ctx.importExpr(t)},t}();function Os(t,e){var n=0;e.eager||(n|=4096),e.providerType===ht.PrivateService&&(n|=8192),e.lifecycleHooks.forEach(function(t){t!==Bo.OnDestroy&&e.providerType!==ht.Directive&&e.providerType!==ht.Component||(n|=Ms(t))});var r=e.multiProvider?function(t,e,n){var r=[],i=[],o=n.map(function(e,n){var r;if(e.useClass){var i=a(n,e.deps||e.useClass.diDeps);r=t.importExpr(e.useClass.reference).instantiate(i)}else if(e.useFactory){var i=a(n,e.deps||e.useFactory.diDeps);r=t.importExpr(e.useFactory.reference).callFn(i)}else if(e.useExisting){var i=a(n,[{token:e.useExisting}]);r=i[0]}else r=Ss(t,e.useValue);return r});return{providerExpr:ms(i,[new qa(ds(o))],ca),flags:1024|e,depsExpr:ds(r)};function a(e,n){return n.map(function(n,o){var a="p"+e+"_"+o;return i.push(new Ta(a,sa)),r.push(Ts(t,n)),ls(a)})}}(t,n,e.providers):Ps(t,n,e.providerType,e.providers[0]);return{providerExpr:r.providerExpr,flags:r.flags,depsExpr:r.depsExpr,tokenExpr:As(t,e.token)}}function Ps(t,e,n,r){var i,o;return n===ht.Directive||n===ht.Component?(i=t.importExpr(r.useClass.reference),e|=16384,o=r.deps||r.useClass.diDeps):r.useClass?(i=t.importExpr(r.useClass.reference),e|=512,o=r.deps||r.useClass.diDeps):r.useFactory?(i=t.importExpr(r.useFactory.reference),e|=1024,o=r.deps||r.useFactory.diDeps):r.useExisting?(i=Va,e|=2048,o=[{token:r.useExisting}]):(i=Ss(t,r.useValue),e|=256,o=[]),{providerExpr:i,flags:e,depsExpr:ds(o.map(function(e){return Ts(t,e)}))}}function As(t,e){return e.identifier?t.importExpr(e.identifier.reference):gs(e.value)}function Ts(t,e){var n=e.isValue?Ss(t,e.value):As(t,e.token),r=0;return e.isSkipSelf&&(r|=1),e.isOptional&&(r|=2),e.isValue&&(r|=8),0===r?n:ds([gs(r),n])}function Ms(t){var e=0;switch(t){case Bo.AfterContentChecked:e=2097152;break;case Bo.AfterContentInit:e=1048576;break;case Bo.AfterViewChecked:e=8388608;break;case Bo.AfterViewInit:e=4194304;break;case Bo.DoCheck:e=262144;break;case Bo.OnChanges:e=524288;break;case Bo.OnDestroy:e=131072;break;case Bo.OnInit:e=65536}return e}function Is(t,e,n,r){var i=r.map(function(t){return e.importExpr(t.componentFactory)}),o=Vo(t,jo.ComponentFactoryResolver),a={diDeps:[{isValue:!0,value:ds(i)},{token:o,isSkipSelf:!0,isOptional:!0},{token:Vo(t,jo.NgModuleRef)}],lifecycleHooks:[],reference:t.resolveExternalReference(jo.CodegenComponentFactoryResolver)},s=Ps(e,n,ht.PrivateService,{token:o,multi:!1,useClass:a});return{providerExpr:s.providerExpr,flags:s.flags,depsExpr:s.depsExpr,tokenExpr:As(e,o)}}var Rs=function(){return function(t){this.ngModuleFactoryVar=t}}(),Ds=ls("_l"),Ns=function(){function t(t){this.reflector=t}return t.prototype.compile=function(t,e,n){var r=xr("NgModule",e.type),i=e.transitiveModule.entryComponents,o=e.bootstrapComponents,a=new _s(this.reflector,e,n,r),s=[Is(this.reflector,t,0,i)].concat(a.parse().map(function(e){return Os(t,e)})).map(function(t){var e=t.providerExpr,n=t.depsExpr,r=t.flags,i=t.tokenExpr;return us(jo.moduleProviderDef).callFn([gs(r),i,e,n])}),c=us(jo.moduleDef).callFn([ds(s)]),l=ms([new Ta(Ds.name)],[new qa(c)],ca),u=St(e.type)+"NgFactory";if(this._createNgModuleFactory(t,e.type.reference,us(jo.createModuleFactory).callFn([t.importExpr(e.type.reference),ds(o.map(function(e){return t.importExpr(e.reference)})),l])),e.id){var p=us(jo.RegisterModuleFactoryFn).callFn([gs(e.id),ls(u)]).toStmt();t.statements.push(p)}return new Rs(u)},t.prototype.createStub=function(t,e){this._createNgModuleFactory(t,e,Va)},t.prototype._createNgModuleFactory=function(t,e,n){var r=ls(St({reference:e})+"NgFactory").set(n).toDeclStmt(ps(jo.NgModuleFactory,[hs(t.importExpr(e))],[ta.Const]),[Ua.Final,Ua.Exported]);t.statements.push(r)},t}(),Ls=function(){function t(t){this._reflector=t}return t.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(_.isTypeOf)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=Ve(this._reflector.annotations(t),_.isTypeOf);if(n)return n;if(e)throw new Error("No NgModule metadata found for '"+$(t)+"'.");return null},t}(),js=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(i,o){e.set(i,o),n.push(i),r.push(t.sourcesContent.get(i)||null)});var i="",o=0,a=0,s=0,c=0;return this.lines.forEach(function(t){o=0,i+=t.map(function(t){var n=Fs(t.col0-o);return o=t.col0,null!=t.sourceUrl&&(n+=Fs(e.get(t.sourceUrl)-a),a=e.get(t.sourceUrl),n+=Fs(t.sourceLine0-s),s=t.sourceLine0,n+=Fs(t.sourceCol0-c),c=t.sourceCol0),n}).join(","),i+=";"}),i=i.slice(0,-1),{file:this.file||"",version:3,sourceRoot:"",sources:n,sourcesContent:r,mappings:i}},t.prototype.toJsComment=function(){return this.hasMappings?"//# sourceMappingURL=data:application/json;base64,"+function(t){var e="";t=K(t);for(var n=0;n<t.length;){var r=t.charCodeAt(n++),i=t.charCodeAt(n++),o=t.charCodeAt(n++);e+=Bs(r>>2),e+=Bs((3&r)<<4|(isNaN(i)?0:i>>4)),e+=isNaN(i)?"=":Bs((15&i)<<2|o>>6),e+=isNaN(i)||isNaN(o)?"=":Bs(63&o)}return e}(JSON.stringify(this,null,0)):""},t}();function Fs(t){t=t<0?1+(-t<<1):t<<1;var e="";do{var n=31&t;(t>>=5)>0&&(n|=32),e+=Bs(n)}while(t>0);return e}var Vs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Bs(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return Vs[t]}var Us=/'|\\|\n|\r|\$/g,Hs=/^[$A-Z_][0-9A-Z_$]*$/i,zs="  ",Ws=ls("error",null,null),Gs=ls("stack",null,null),qs=function(){return function(t){this.indent=t,this.partsLength=0,this.parts=[],this.srcSpans=[]}}(),Ys=function(){function t(t){this._indent=t,this._classes=[],this._preambleLineCount=0,this._lines=[new qs(t)]}return t.createRoot=function(){return new t(0)},Object.defineProperty(t.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),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.lineLength=function(){return this._currentLine.indent*zs.length+this._currentLine.partsLength},t.prototype.print=function(t,e,n){void 0===n&&(n=!1),e.length>0&&(this._currentLine.parts.push(e),this._currentLine.partsLength+=e.length,this._currentLine.srcSpans.push(t&&t.sourceSpan||null)),n&&this._lines.push(new qs(this._indent))},t.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},t.prototype.incIndent=function(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},t.prototype.decIndent=function(){this._indent--,this.lineIsEmpty()&&(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?Xs(t.indent)+t.parts.join(""):""}).join("\n")},t.prototype.toSourceMapGenerator=function(t,e){void 0===e&&(e=0);for(var n=new js(t),r=!1,i=function(){r||(n.addSource(t," ").addMapping(0,t,0,0),r=!0)},o=0;o<e;o++)n.addLine(),i();return this.sourceLines.forEach(function(t,e){n.addLine();for(var o=t.srcSpans,a=t.parts,s=t.indent*zs.length,c=0;c<o.length&&!o[c];)s+=a[c].length,c++;for(c<o.length&&0===e&&0===s?r=!0:i();c<o.length;){var l=o[c],u=l.start.file,p=l.start.line,h=l.start.col;for(n.addSource(u.url,u.content).addMapping(s,u.url,p,h),s+=a[c].length,c++;c<o.length&&(l===o[c]||!o[c]);)s+=a[c].length,c++}}),n},t.prototype.setPreambleLineCount=function(t){return this._preambleLineCount=t},t.prototype.spanOf=function(t,e){var n=this._lines[t-this._preambleLineCount];if(n)for(var r=e-Xs(n.indent).length,i=0;i<n.parts.length;i++){var o=n.parts[i];if(o.length>r)return n.srcSpans[i];r-=o.length}return null},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}(),Ks=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.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.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.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.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 fa.Super:n="super";break;case fa.This:n="this";break;case fa.CatchError:n=Ws.name;break;case fa.CatchStack:n=Gs.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,$s(n,this._escapeDollarInStrings)):e.print(t,""+n),null},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.visitAssertNotNullExpr=function(t,e){return t.condition.visitExpression(this,e),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var n;switch(t.operator){case ua.Equals:n="==";break;case ua.Identical:n="===";break;case ua.NotEquals:n="!=";break;case ua.NotIdentical:n="!==";break;case ua.And:n="&&";break;case ua.Or:n="||";break;case ua.Plus:n="+";break;case ua.Minus:n="-";break;case ua.Divide:n="/";break;case ua.Multiply:n="*";break;case ua.Modulo:n="%";break;case ua.Lower:n="<";break;case ua.LowerEquals:n="<=";break;case ua.Bigger:n=">";break;case ua.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){return e.print(t,"["),this.visitAllExpressions(t.entries,e,","),e.print(t,"]"),null},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return e.print(t,"{"),this.visitAllObjects(function(r){e.print(t,$s(r.key,n._escapeDollarInStrings,r.quoted)+":"),r.value.visitExpression(n,e)},t.entries,e,","),e.print(t,"}"),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){var r=this;this.visitAllObjects(function(t){return t.visitExpression(r,e)},t,e,n)},t.prototype.visitAllObjects=function(t,e,n,r){for(var i=!1,o=0;o<e.length;o++)o>0&&(n.lineLength()>80?(n.print(null,r,!0),i||(n.incIndent(),n.incIndent(),i=!0)):n.print(null,r,!1)),t(e[o]);i&&(n.decIndent(),n.decIndent())},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}();function $s(t,e,n){if(void 0===n&&(n=!0),null==t)return null;var r=t.replace(Us,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||!Hs.test(r)?"'"+r+"'":r}function Xs(t){for(var e="",n=0;n<t;n++)e+=zs;return e}function Qs(t){var e=new Js,n=Ys.createRoot();return(Array.isArray(t)?t:[t]).forEach(function(t){if(t instanceof Ha)t.visitStatement(e,n);else if(t instanceof da)t.visitExpression(e,n);else{if(!(t instanceof ea))throw new Error("Don't know how to print debug info for "+t);t.visitType(e,n)}}),n.toSource()}var Zs=function(){function t(){}return t.prototype.emitStatementsAndContext=function(t,e,n,r,i){void 0===n&&(n=""),void 0===r&&(r=!0);var o=new Js(i),a=Ys.createRoot();o.visitAllStatements(e,a);var s=n?n.split("\n"):[];o.reexports.forEach(function(t,e){var n=t.map(function(t){return t.name+" as "+t.as}).join(",");s.push("export {"+n+"} from '"+e+"';")}),o.importsWithPrefixes.forEach(function(t,e){s.push("import * as "+t+" from '"+e+"';")});var c=r?a.toSourceMapGenerator(t,s.length).toJsComment():"",l=s.concat([a.toSource(),c]);return c&&l.push(""),a.setPreambleLineCount(s.length),{sourceText:l.join("\n"),context:a}},t.prototype.emitStatements=function(t,e,n){return void 0===n&&(n=""),this.emitStatementsAndContext(t,e,n).sourceText},t}(),Js=function(t){function e(e){var n=t.call(this,!1)||this;return n.referenceFilter=e,n.typeExpression=0,n.importsWithPrefixes=new Map,n.reexports=new Map,n}return n(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!=ca?(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.visitAssertNotNullExpr=function(e,n){var r=t.prototype.visitAssertNotNullExpr.call(this,e,n);return n.print(e,"!"),r},e.prototype.visitDeclareVarStmt=function(t,e){if(t.hasModifier(Ua.Exported)&&t.value instanceof Ea&&!t.type){var n=t.value.value,r=n.name,i=n.moduleName;if(i){var o=this.reexports.get(i);return o||(o=[],this.reexports.set(i,o)),o.push({name:r,as:t.name}),null}}return t.hasModifier(Ua.Exported)&&e.print(t,"export "),t.hasModifier(Ua.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),t.hasModifier(Ua.Exported)&&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(Ua.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(Ua.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(Ua.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 t.hasModifier(Ua.Exported)&&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 ("+Ws.name+") {"),e.incIndent();var n=[Gs.set(Ws.prop("stack",null)).toDeclStmt(null,[Ua.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 na.Bool:n="boolean";break;case na.Dynamic:n="any";break;case na.Function:n="Function";break;case na.Number:case na.Int:n="number";break;case na.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 ba.ConcatArray:e="concat";break;case ba.SubscribeObservable:e="subscribe";break;case ba.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._visitIdentifier=function(t,e,n){var r=this,i=t.name,o=t.moduleName;if(this.referenceFilter&&this.referenceFilter(t))n.print(null,"(null as any)");else{if(o){var a=this.importsWithPrefixes.get(o);null==a&&(a="i"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(o,a)),n.print(null,a+".")}if(n.print(null,i),this.typeExpression>0)(e||[]).length>0&&(n.print(null,"<"),this.visitAllObjects(function(t){return t.visitType(r,n)},e,n,","),n.print(null,">"))}},e.prototype._printColonType=function(t,e,n){t!==ca&&(e.print(null,":"),this.visitType(t,e,n))},e}(Ks),tc=function(){function t(t){this._reflector=t}return t.prototype.isPipe=function(t){var e=this._reflector.annotations(X(t));return e&&e.some(m.isTypeOf)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=this._reflector.annotations(X(t));if(n){var r=Ve(n,m.isTypeOf);if(r)return r}if(e)throw new Error("No Pipe decorator found on "+$(t));return null},t}(),ec={};function nc(t,e){for(var n=0,r=e;n<r.length;n++){var i=r[n];ec[i.toLowerCase()]=t}}nc(A.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),nc(A.STYLE,["*|style"]),nc(A.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"]),nc(A.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 rc=function(){return function(){}}(),ic="boolean",oc="number",ac="string",sc="object",cc=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,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,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*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,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,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","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,referrerPolicy,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]|","slot^[HTMLElement]|name","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: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","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|"],lc={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},uc=function(t){function e(){var e=t.call(this)||this;return e._schema={},cc.forEach(function(t){var n={},r=t.split("|"),i=r[0],o=r[1].split(","),a=i.split("^"),s=a[0],c=a[1];s.split(",").forEach(function(t){return e._schema[t.toLowerCase()]=n});var l=c&&e._schema[c.toLowerCase()];l&&Object.keys(l).forEach(function(t){n[t]=l[t]}),o.forEach(function(t){if(t.length>0)switch(t[0]){case"*":break;case"!":n[t.substring(1)]=ic;break;case"#":n[t.substring(1)]=oc;break;case"%":n[t.substring(1)]=sc;break;default:n[t]=ac}})}),e}return n(e,t),e.prototype.hasProperty=function(t,e,n){if(n.some(function(t){return t.name===C.name}))return!0;if(t.indexOf("-")>-1){if(me(t)||ge(t))return!1;if(n.some(function(t){return t.name===w.name}))return!0}return!!(this._schema[t.toLowerCase()]||this._schema.unknown)[e]},e.prototype.hasElement=function(t,e){if(e.some(function(t){return t.name===C.name}))return!0;if(t.indexOf("-")>-1){if(me(t)||ge(t))return!0;if(e.some(function(t){return t.name===w.name}))return!0}return!!this._schema[t.toLowerCase()]},e.prototype.securityContext=function(t,e,n){n&&(e=this.getMappedPropName(e)),t=t.toLowerCase(),e=e.toLowerCase();var r=ec[t+"|"+e];return r||((r=ec["*|"+e])||A.NONE)},e.prototype.getMappedPropName=function(t){return lc[t]||t},e.prototype.getDefaultComponentElementName=function(){return"ng-component"},e.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}},e.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}},e.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},e.prototype.normalizeAnimationStyleProperty=function(t){return t.replace(R,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})},e.prototype.normalizeAnimationStyleValue=function(t,e,n){var r="",i=n.toString().trim(),o=null;if(function(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}}(t)&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&(o="Please provide a CSS unit value for "+e+":"+n)}return{error:o,value:i+r}},e}(rc);var pc=function(){function t(){this.strictStyling=!0}return t.prototype.shimCssText=function(t,e,n){void 0===n&&(n="");var r,i=(r=t.match(Tc))?r[0]:"";return t=t.replace(Ac,""),t=this._insertDirectives(t),this._scopeCssText(t,e,n)+i},t.prototype._insertDirectives=function(t){return t=this._insertPolyfillDirectivesInCssText(t),this._insertPolyfillRulesInCssText(t)},t.prototype._insertPolyfillDirectivesInCssText=function(t){return t.replace(dc,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(fc,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(mc.lastIndex=0;null!==(e=mc.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,bc,this._colonHostPartReplacer)},t.prototype._convertColonHostContext=function(t){return this._convertColonRule(t,_c,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(","),i=[],o=0;o<r.length;o++){var a=r[o].trim();if(!a)break;i.push(n(wc,a,t[3]))}return i.join(",")}return wc+t[3]})},t.prototype._colonHostContextPartReplacer=function(t,e,n){return e.indexOf(gc)>-1?this._colonHostPartReplacer(t,e,n):t+e+n+", "+e+" "+t+n},t.prototype._colonHostPartReplacer=function(t,e,n){return t+e.replace(gc,"")+n},t.prototype._convertShadowDOMSelectors=function(t){return xc.reduce(function(t,e){return t.replace(e," ")},t)},t.prototype._scopeSelectors=function(t,e,n){var r,i,o,a=this;return r=function(t){var r=t.selector,i=t.content;return"@"!=t.selector[0]?r=a._scopeSelector(t.selector,e,n,a.strictStyling):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(i=a._scopeSelectors(t.content,e,n)),new Lc(r,i)},i=function(t){for(var e=t.split(Ic),n=[],r=[],i=0,o=[],a=0;a<e.length;a++){var s=e[a];s==Dc&&i--,i>0?o.push(s):(o.length>0&&(r.push(o.join("")),n.push(Nc),o=[]),n.push(s)),s==Rc&&i++}o.length>0&&(r.push(o.join("")),n.push(Nc));return new jc(n.join(""),r)}(t),o=0,i.escapedString.replace(Mc,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[2],a="",s=t[4],c="";s&&s.startsWith("{"+Nc)&&(a=i.blocks[o++],s=s.substring(Nc.length+1),c="{");var l=r(new Lc(n,a));return""+t[1]+l.selector+t[3]+c+l.content+s})},t.prototype._scopeSelector=function(t,e,n,r){var i=this;return t.split(",").map(function(t){return t.trim().split(Ec)}).map(function(t){var o,a=t[0],s=t.slice(1);return[(o=a,i._selectorNeedsScoping(o,e)?r?i._applyStrictSelectorScope(o,e,n):i._applySelectorScope(o,e,n):o)].concat(s).join(" ")}).join(", ")},t.prototype._selectorNeedsScoping=function(t,e){return!this._makeScopeMatcher(e).test(t)},t.prototype._makeScopeMatcher=function(t){return t=t.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+t+")"+Sc,"m")},t.prototype._applySelectorScope=function(t,e,n){return this._applySimpleSelectorScope(t,e,n)},t.prototype._applySimpleSelectorScope=function(t,e,n){if(kc.lastIndex=0,kc.test(t)){var r=this.strictStyling?"["+n+"]":e;return t.replace(Cc,function(t,e){return e.replace(/([^:]*)(:*)(.*)/,function(t,e,n,i){return e+r+n+i})}).replace(kc,r+" ")}return e+" "+t},t.prototype._applyStrictSelectorScope=function(t,e,n){for(var r,i=this,o="["+(e=e.replace(/\[is=([^\]]*)\]/g,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(wc)>-1)r=i._applySimpleSelectorScope(t,e,n);else{var a=t.replace(kc,"");if(a.length>0){var s=a.match(/([^:]*)(:*)(.*)/);s&&(r=s[1]+o+s[2]+s[3])}}return r},s=new hc(t),c="",l=0,u=/( |>|\+|~(?!=))\s*/g,p=!((t=s.content()).indexOf(wc)>-1);null!==(r=u.exec(t));){var h=r[1],d=t.slice(l,r.index).trim();c+=((p=p||d.indexOf(wc)>-1)?a(d):d)+" "+h+" ",l=u.lastIndex}var f=t.substring(l);return c+=(p=p||f.indexOf(wc)>-1)?a(f):f,s.restore(c)},t.prototype._insertPolyfillHostInCssText=function(t){return t.replace(Pc,yc).replace(Oc,gc)},t}(),hc=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 i="__ph-"+e.index+"__";return e.placeholders.push(r),e.index++,n+i})}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}(),dc=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,fc=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,mc=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,gc="-shadowcsshost",yc="-shadowcsscontext",vc=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",bc=new RegExp("("+gc+vc,"gim"),_c=new RegExp("("+yc+vc,"gim"),wc=gc+"-no-combinator",Cc=/-shadowcsshost-no-combinator([^\s]*)/,xc=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Ec=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,Sc="([>\\s~+[.,{:][\\s\\S]*)?$",kc=/-shadowcsshost/gim,Oc=/:host/gim,Pc=/:host-context/gim,Ac=/\/\*\s*[\s\S]*?\*\//g;var Tc=/\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//;var Mc=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,Ic=/([{}])/g,Rc="{",Dc="}",Nc="%BLOCK%",Lc=function(){return function(t,e){this.selector=t,this.content=e}}();var jc=function(){return function(t,e){this.escapedString=t,this.blocks=e}}();var Fc=function(){return function(t,e,n){this.name=t,this.moduleUrl=e,this.setValue=n}}(),Vc=function(){return function(t,e,n,r,i){this.outputCtx=t,this.stylesVar=e,this.dependencies=n,this.isShimmed=r,this.meta=i}}(),Bc=function(){function t(t){this._urlResolver=t,this._shadowCss=new pc}return t.prototype.compileComponent=function(t,e){var n=e.template;return this._compileStyles(t,e,new Dt({styles:n.styles,styleUrls:n.styleUrls,moduleUrl:kt(e.type)}),this.needsStyleShim(e),!0)},t.prototype.compileStyles=function(t,e,n,r){return void 0===r&&(r=this.needsStyleShim(e)),this._compileStyles(t,e,n,r,!1)},t.prototype.needsStyleShim=function(t){return t.template.encapsulation===h.Emulated},t.prototype._compileStyles=function(t,e,n,r,i){var o=this,a=n.styles.map(function(t){return gs(o._shimIfNeeded(t,r))}),s=[];n.styleUrls.forEach(function(e){var n=a.length;a.push(null),s.push(new Fc(Uc(null),e,function(e){return a[n]=t.importExpr(e)}))});var c=Uc(i?e:null),l=ls(c).set(ds(a,new oa(sa,[ta.Const]))).toDeclStmt(null,i?[Ua.Final]:[Ua.Final,Ua.Exported]);return t.statements.push(l),new Vc(t,c,s,r,n)},t.prototype._shimIfNeeded=function(t,e){return e?this._shadowCss.shimCssText(t,"_ngcontent-%COMP%","_nghost-%COMP%"):t},t}();function Uc(t){var e="styles";return t&&(e+="_"+St(t.type)),e}var Hc="ngPreserveWhitespaces",zc=new Set(["pre","template","textarea","script","style"]),Wc=" \f\n\r\t\v ᠎ - \u2028\u2029   \ufeff",Gc=new RegExp("[^"+Wc+"]"),qc=new RegExp("["+Wc+"]{2,}","g");function Yc(t){return t.replace(new RegExp(we,"g")," ")}var Kc=function(){function t(){}return t.prototype.visitElement=function(t,e){return zc.has(t.name)||t.attrs.some(function(t){return t.name===Hc})?new Jt(t.name,ee(this,t.attrs),t.children,t.sourceSpan,t.startSourceSpan,t.endSourceSpan):new Jt(t.name,t.attrs,ee(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t,e){return t.name!==Hc?t:null},t.prototype.visitText=function(t,e){return t.value.match(Gc)?new $t(Yc(t.value).replace(qc," "),t.sourceSpan):null},t.prototype.visitComment=function(t,e){return t},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}();var $c=["zero","one","two","few","many","other"];function Xc(t){var e=new Jc;return new Qc(ee(e,t),e.isExpanded,e.errors)}var Qc=function(){return function(t,e,n){this.nodes=t,this.expanded=e,this.errors=n}}(),Zc=function(t){function e(e,n){return t.call(this,e,n)||this}return n(e,t),e}(Cr),Jc=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t,e){return new Jt(t.name,t.attrs,ee(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?(a=t,s=this.errors,c=a.cases.map(function(t){-1!=$c.indexOf(t.value)||t.value.match(/^=\d+$/)||s.push(new Zc(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+$c.join(", ")));var e=Xc(t.expression);return s.push.apply(s,e.errors),new Jt("ng-template",[new Zt("ngPluralCase",""+t.value,t.valueSourceSpan)],e.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),l=new Zt("[ngPlural]",a.switchValue,a.switchValueSourceSpan),new Jt("ng-container",[l],c,a.sourceSpan,a.sourceSpan,a.sourceSpan)):(n=t,r=this.errors,i=n.cases.map(function(t){var e=Xc(t.expression);return r.push.apply(r,e.errors),"other"===t.value?new Jt("ng-template",[new Zt("ngSwitchDefault","",t.valueSourceSpan)],e.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new Jt("ng-template",[new Zt("ngSwitchCase",""+t.value,t.valueSourceSpan)],e.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),o=new Zt("[ngSwitch]",n.switchValue,n.switchValueSourceSpan),new Jt("ng-container",[o],i,n.sourceSpan,n.sourceSpan,n.sourceSpan));var n,r,i,o,a,s,c,l},t.prototype.visitExpansionCase=function(t,e){throw new Error("Should not be reached")},t}();var tl={DEFAULT:0,LITERAL_ATTR:1,ANIMATION:2};tl[tl.DEFAULT]="DEFAULT",tl[tl.LITERAL_ATTR]="LITERAL_ATTR",tl[tl.ANIMATION]="ANIMATION";var el=function(){return function(t,e,n,r){this.name=t,this.expression=e,this.type=n,this.sourceSpan=r,this.isLiteral=this.type===tl.LITERAL_ATTR,this.isAnimation=this.type===tl.ANIMATION}}(),nl=function(){function t(t,e,n,r,i){var o=this;this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=n,this._targetErrors=i,this.pipesByName=new Map,this._usedPipes=new Map,r.forEach(function(t){return o.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 i=[];return Object.keys(t.hostProperties).forEach(function(e){var o=t.hostProperties[e];"string"==typeof o?r.parsePropertyBinding(e,o,!0,n,[],i):r._reportError('Value of the host property binding "'+e+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",n)}),i.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(i){var o=t.hostListeners[i];"string"==typeof o?n.parseEvent(i,o,e,[],r):n._reportError('Value of the host listener "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",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,i,o){for(var a=this._parseTemplateBindings(t,e,n),s=0;s<a.length;s++){var c=a[s];c.keyIsVar?o.push(new at(c.key,c.name,n)):c.expression?this._parsePropertyAst(c.key,c.expression,n,r,i):(r.push([c.key,""]),this.parseLiteralAttr(c.key,null,n,r,i))}},t.prototype._parseTemplateBindings=function(t,e,n){var r=this,i=n.start.toString();try{var o=this._exprParser.parseTemplateBindings(t,e,i);return this._reportExpressionParserErrors(o.errors,n),o.templateBindings.forEach(function(t){t.expression&&r._checkPipes(t.expression,n)}),o.warnings.forEach(function(t){r._reportError(t,n,wr.WARNING)}),o.templateBindings}catch(t){return this._reportError(""+t,n),[]}},t.prototype.parseLiteralAttr=function(t,e,n,r,i){il(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,wr.ERROR),this._parseAnimation(t,e,n,r,i)):i.push(new el(t,this._exprParser.wrapLiteralPrimitive(e,""),tl.LITERAL_ATTR,n))},t.prototype.parsePropertyBinding=function(t,e,n,r,i,o){var a=!1;t.startsWith("animate-")?(a=!0,t=t.substring("animate-".length)):il(t)&&(a=!0,t=t.substring(1)),a?this._parseAnimation(t,e,r,i,o):this._parsePropertyAst(t,this._parseBinding(e,n,r),r,i,o)},t.prototype.parsePropertyInterpolation=function(t,e,n,r,i){var o=this.parseInterpolation(e,n);return!!o&&(this._parsePropertyAst(t,o,n,r,i),!0)},t.prototype._parsePropertyAst=function(t,e,n,r,i){r.push([t,e.source]),i.push(new el(t,e,tl.DEFAULT,n))},t.prototype._parseAnimation=function(t,e,n,r,i){var o=this._parseBinding(e||"undefined",!1,n);r.push([t,o.source]),i.push(new el(t,o,tl.ANIMATION,n))},t.prototype._parseBinding=function(t,e,n){var r=n.start.toString();try{var i=e?this._exprParser.parseSimpleBinding(t,r,this._interpolationConfig):this._exprParser.parseBinding(t,r,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,n),this._checkPipes(i,n),i}catch(t){return this._reportError(""+t,n),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype.createElementPropertyAst=function(t,e){if(e.isAnimation)return new rt(e.name,ft.Animation,A.NONE,e.expression,null,e.sourceSpan);var n=null,r=void 0,i=null,o=e.name.split("."),a=void 0;if(o.length>1)if("attr"==o[0]){i=o[1],this._validatePropertyOrAttributeName(i,e.sourceSpan,!0),a=ol(this._schemaRegistry,t,i,!0);var s=i.indexOf(":");if(s>-1)i=be(i.substring(0,s),i.substring(s+1));r=ft.Attribute}else"class"==o[0]?(i=o[1],r=ft.Class,a=[A.NONE]):"style"==o[0]&&(n=o.length>2?o[2]:null,i=o[1],r=ft.Style,a=[A.STYLE]);return null===i&&(i=this._schemaRegistry.getMappedPropName(e.name),a=ol(this._schemaRegistry,t,i,!1),r=ft.Property,this._validatePropertyOrAttributeName(i,e.sourceSpan,!1)),new rt(i,r,a[0],e.expression,n,e.sourceSpan)},t.prototype.parseEvent=function(t,e,n,r,i){il(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,n,i)):this._parseEvent(t,e,n,r,i)},t.prototype._parseAnimationEvent=function(t,e,n,r){var i=N(t,".",[t,""]),o=i[0],a=i[1].toLowerCase();if(a)switch(a){case"start":case"done":var s=this._parseAction(e,n);r.push(new it(o,null,a,s,n));break;default:this._reportError('The provided animation output phase value "'+a+'" for "@'+o+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+o+") is missing its phase value name (start or done are currently supported)",n)},t.prototype._parseEvent=function(t,e,n,r,i){var o=D(t,[null,t]),a=o[0],s=o[1],c=this._parseAction(e,n);r.push([t,c.source]),i.push(new it(s,a,null,c,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 Un?(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=wr.ERROR),this._targetErrors.push(new Cr(e,t,n))},t.prototype._reportExpressionParserErrors=function(t,e){for(var n=0,r=t;n<r.length;n++){var i=r[n];this._reportError(i.message,e)}},t.prototype._checkPipes=function(t,e){var n=this;if(t){var r=new rl;t.visit(r),r.pipes.forEach(function(t,r){var i=n.pipesByName.get(r);i?n._usedPipes.set(r,i):n._reportError("The pipe '"+r+"' could not be found",new _r(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,wr.ERROR)},t}(),rl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pipes=new Map,e}return n(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}(ur);function il(t){return"@"==t[0]}function ol(t,e,n,r){var i=[];return Wo.parse(e).forEach(function(e){var o=e.element?[e.element]:t.allKnownElementNames(),a=new Set(e.notSelectors.filter(function(t){return t.isElementSelector()}).map(function(t){return t.element})),s=o.filter(function(t){return!a.has(t)});i.push.apply(i,s.map(function(e){return t.securityContext(e,n,r)}))}),0===i.length?[A.NONE]:Array.from(new Set(i)).sort()}var al=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,sl="template",cl="class",ll=Wo.parse("*")[0],ul="The <template> element is deprecated. Use <ng-template> instead",pl="The template attribute is deprecated. Use an ng-template element instead.",hl={};var dl=function(t){function e(e,n,r){return t.call(this,n,e,r)||this}return n(e,t),e}(Cr),fl=function(){return function(t,e,n){this.templateAst=t,this.usedPipes=e,this.errors=n}}(),ml=function(){function t(t,e,n,r,i,o,a){this._config=t,this._reflector=e,this._exprParser=n,this._schemaRegistry=r,this._htmlParser=i,this._console=o,this.transforms=a}return t.prototype.parse=function(t,e,n,r,i,o,a){var s,c=this.tryParse(t,e,n,r,i,o,a),l=c.errors.filter(function(t){return t.level===wr.WARNING}).filter((s=[pl,ul],function(t){return-1===s.indexOf(t.msg)||(hl[t.msg]=(hl[t.msg]||0)+1,hl[t.msg]<=1)})),u=c.errors.filter(function(t){return t.level===wr.ERROR});if(l.length>0&&this._console.warn("Template parse warnings:\n"+l.join("\n")),u.length>0)throw z("Template parse errors:\n"+u.join("\n"),u);return{template:c.templateAst,pipes:c.usedPipes}},t.prototype.tryParse=function(t,e,n,r,i,o,a){var s,c="string"==typeof e?this._htmlParser.parse(e,o,!0,this.getInterpolationConfig(t)):e;return a||(s=c,c=new Br(ee(new Kc,s.rootNodes),s.errors)),this.tryParseHtml(this.expandHtml(c),t,n,r,i)},t.prototype.tryParseHtml=function(t,e,n,r,i){var o,a=t.errors,s=[];if(t.rootNodes.length>0){var c=Sl(n),l=Sl(r),u=new vs(this._reflector,e),p=void 0;e.template&&e.template.interpolation&&(p={start:e.template.interpolation[0],end:e.template.interpolation[1]});var h=new nl(this._exprParser,p,this._schemaRegistry,l,a),d=new gl(this._reflector,this._config,u,c,h,this._schemaRegistry,i,a);o=ee(d,t.rootNodes,Cl),a.push.apply(a,u.errors),s.push.apply(s,h.getUsedPipes())}else o=[];return this._assertNoReferenceDuplicationOnTemplate(o,a),a.length>0?new fl(o,s,a):(this.transforms&&this.transforms.forEach(function(t){o=yt(t,o)}),new fl(o,s,a))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var n=t.errors;if(0==n.length||e){var r=Xc(t.rootNodes);n.push.apply(n,r.errors),t=new Br(r.nodes,n)}return t},t.prototype.getInterpolationConfig=function(t){if(t.template)return ae.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 i=new dl('Reference "#'+r+'" is defined several times',t.sourceSpan,wr.ERROR);e.push(i)}})})},t}(),gl=function(){function t(t,e,n,r,i,o,a,s){var c=this;this.reflector=t,this.config=e,this.providerViewContext=n,this._bindingParser=i,this._schemaRegistry=o,this._schemas=a,this._targetErrors=s,this.selectorMatcher=new Go,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=n.component.viewQueries.length+1,r.forEach(function(t,e){var n=Wo.parse(t.selector);c.selectorMatcher.addSelectables(n,t),c.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(ll),r=Yc(t.value),i=this._bindingParser.parseInterpolation(r,t.sourceSpan);return i?new et(i,n,t.sourceSpan):new tt(r,n,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return new nt(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,i=t.name,o=Me(t);if(o.type===Ie.SCRIPT||o.type===Ie.STYLE)return null;if(o.type===Ie.STYLESHEET&&le(o.hrefAttr))return null;var a=[],s=[],c=[],l=[],u=[],p=[],h=[],d=[],f=!1,m=[],g=function(t,e,n){if(ye(t.name))return!0;var r=fe(t.name)[1];if(r.toLowerCase()===sl&&e&&r.toLowerCase()===sl)return n(ul,t.sourceSpan),!0;return!1}(t,this.config.enableLegacyTemplate,function(t,e){return n._reportError(t,e,wr.WARNING)});t.attrs.forEach(function(t){var e,r,i=n._parseAttr(g,t,a,s,u,c,l),o=n._normalizeAttributeName(t.name);n.config.enableLegacyTemplate&&"template"==o?(n._reportError(pl,t.sourceSpan,wr.WARNING),e=t.value):o.startsWith("*")&&(e=t.value,r=o.substring("*".length)+":");var y=null!=e;y&&(f&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),f=!0,n._bindingParser.parseInlineTemplateBinding(r,e,t.sourceSpan,h,p,d)),i||y||(m.push(n.visitAttribute(t,null)),a.push([t.name,t.value]))});var y=wl(i,a),v=this._parseDirectives(this.selectorMatcher,y),b=v.directives,_=v.matchElement,w=[],C=new Set,x=this._createDirectiveAsts(g,t.name,b,s,c,t.sourceSpan,w,C),E=this._createElementPropertyAsts(t.name,s,C),S=e.isTemplateElement||f,k=new bs(this.providerViewContext,e.providerContext,S,x,m,w,g,r,t.sourceSpan),O=ee(o.nonBindable?xl:this,t.children,_l.create(g,x,g?e.providerContext:k));k.afterElement();var P,A=null!=o.projectAs?Wo.parse(o.projectAs)[0]:y,T=e.findNgContentIndex(A);if(o.type===Ie.NG_CONTENT)t.children&&!t.children.every(El)&&this._reportError("<ng-content> element cannot have content.",t.sourceSpan),P=new dt(this.ngContentCount++,f?null:T,t.sourceSpan);else if(g)this._assertAllEventsPublishedByDirectives(x,u),this._assertNoComponentsNorElementBindingsOnTemplate(x,E,t.sourceSpan),P=new ct(m,u,w,l,k.transformedDirectiveAsts,k.transformProviders,k.transformedHasViewContainer,k.queryMatches,O,f?null:T,t.sourceSpan);else{this._assertElementExists(_,t),this._assertOnlyOneComponent(x,t.sourceSpan);var M=f?null:e.findNgContentIndex(A);P=new st(i,m,E,u,w,k.transformedDirectiveAsts,k.transformProviders,k.transformedHasViewContainer,k.queryMatches,O,f?null:M,t.sourceSpan,t.endSourceSpan||null)}if(f){var I=this.contentQueryStartId,R=wl(sl,h),D=this._parseDirectives(this.selectorMatcher,R).directives,N=new Set,L=this._createDirectiveAsts(!0,t.name,D,p,[],t.sourceSpan,[],N),j=this._createElementPropertyAsts(t.name,p,N);this._assertNoComponentsNorElementBindingsOnTemplate(L,j,t.sourceSpan);var F=new bs(this.providerViewContext,e.providerContext,e.isTemplateElement,L,[],[],!0,I,t.sourceSpan);F.afterElement(),P=new ct([],[],[],d,F.transformedDirectiveAsts,F.transformProviders,F.transformedHasViewContainer,F.queryMatches,[P],T,t.sourceSpan)}return P},t.prototype._parseAttr=function(t,e,n,r,i,o,a){var s=this._normalizeAttributeName(e.name),c=e.value,l=e.sourceSpan,u=s.match(al),p=!1;if(null!==u)if(p=!0,null!=u[1])this._bindingParser.parsePropertyBinding(u[7],c,!1,l,n,r);else if(u[2])if(t){var h=u[7];this._parseVariable(h,c,l,a)}else this._reportError('"let-" is only supported on ng-template elements.',l);else if(u[3]){h=u[7];this._parseReference(h,c,l,o)}else u[4]?this._bindingParser.parseEvent(u[7],c,l,n,i):u[5]?(this._bindingParser.parsePropertyBinding(u[7],c,!1,l,n,r),this._parseAssignmentEvent(u[7],c,l,n,i)):u[6]?this._bindingParser.parseLiteralAttr(s,c,l,n,r):u[8]?(this._bindingParser.parsePropertyBinding(u[8],c,!1,l,n,r),this._parseAssignmentEvent(u[8],c,l,n,i)):u[9]?this._bindingParser.parsePropertyBinding(u[9],c,!1,l,n,r):u[10]&&this._bindingParser.parseEvent(u[10],c,l,n,i);else p=this._bindingParser.parsePropertyInterpolation(s,c,l,n,r);return p||this._bindingParser.parseLiteralAttr(s,c,l,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 at(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 vl(t,e,n))},t.prototype._parseAssignmentEvent=function(t,e,n,r,i){this._bindingParser.parseEvent(t+"Change",e+"=$event",n,r,i)},t.prototype._parseDirectives=function(t,e){var n=this,r=new Array(this.directivesIndex.size),i=!1;return t.match(e,function(t,e){r[n.directivesIndex.get(e)]=e,i=i||t.hasElementSelector()}),{directives:r.filter(function(t){return!!t}),matchElement:i}},t.prototype._createDirectiveAsts=function(t,e,n,r,i,o,a,s){var c=this,l=new Set,u=null,p=n.map(function(t){var n=new _r(o.start,o.end,"Directive "+St(t.type));t.isComponent&&(u=t);var p=[],h=c._bindingParser.createDirectiveHostPropertyAsts(t,e,n);h=c._checkPropertiesInSchema(e,h);var d=c._bindingParser.createDirectiveHostEventAsts(t,n);c._createDirectivePropertyAsts(t.inputs,r,p,s),i.forEach(function(e){(0===e.value.length&&t.isComponent||e.isReferenceToDirective(t))&&(a.push(new ot(e.name,Fo(t.type.reference),e.sourceSpan)),l.add(e.name))});var f=c.contentQueryStartId;return c.contentQueryStartId+=t.queries.length,new ut(t,p,h,d,f,n)});return i.forEach(function(e){if(e.value.length>0)l.has(e.name)||c._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!u){var n=null;t&&(n=Vo(c.reflector,jo.TemplateRef)),a.push(new ot(e.name,n,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,n,r){if(t){var i=new Map;e.forEach(function(t){var e=i.get(t.name);e&&!e.isLiteral||i.set(t.name,t)}),Object.keys(t).forEach(function(e){var o=t[e],a=i.get(o);a&&(r.add(a.name),kl(a.expression)||n.push(new lt(e,a.name,a.expression,a.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(t,e,n){var r=this,i=[];return e.forEach(function(e){e.isLiteral||n.has(e.name)||i.push(r._bindingParser.createElementPropertyAst(t,e))}),this._checkPropertiesInSchema(t,i)},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 St(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,i=this._findComponentDirectiveNames(t);i.length>0&&this._reportError("Components on an embedded template: "+i.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===ft.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!kl(e.value)})},t.prototype._reportError=function(t,e,n){void 0===n&&(n=wr.ERROR),this._targetErrors.push(new Cr(e,t,n))},t}(),yl=function(){function t(){}return t.prototype.visitElement=function(t,e){var n=Me(t);if(n.type===Ie.SCRIPT||n.type===Ie.STYLE||n.type===Ie.STYLESHEET)return null;var r=t.attrs.map(function(t){return[t.name,t.value]}),i=wl(t.name,r),o=e.findNgContentIndex(i),a=ee(this,t.children,Cl);return new st(t.name,ee(this,t.attrs),[],[],[],[],[],!1,[],a,o,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return new nt(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(ll);return new tt(t.value,n,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),vl=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.isReferenceToDirective=function(t){return-1!==(e=t.exportAs,e?e.split(",").map(function(t){return t.trim()}):[]).indexOf(this.value);var e},t}();function bl(t){return t.trim().split(/\s+/g)}var _l=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 i=new Go,o=null,a=n.find(function(t){return t.directive.isComponent});if(a)for(var s=a.directive.template.ngContentSelectors,c=0;c<s.length;c++){"*"===s[c]?o=c:i.addSelectables(Wo.parse(s[c]),c)}return new t(e,i,o,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}();function wl(t,e){var n=new Wo,r=fe(t)[1];n.setElement(r);for(var i=0;i<e.length;i++){var o=e[i][0],a=fe(o)[1],s=e[i][1];if(n.addAttribute(a,s),o.toLowerCase()==cl)bl(s).forEach(function(t){return n.addClassName(t)})}return n}var Cl=new _l(!0,new Go,null,null),xl=new yl;function El(t){return t instanceof $t&&0==t.value.trim().length}function Sl(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 kl(t){return t instanceof sr&&(t=t.ast),t instanceof Un}var Ol=function(){function t(){}return t.event=ls("$event"),t}(),Pl=function(){return function(t,e){this.stmts=t,this.allowDefault=e}}();function Al(t,e,n,r){t||(t=new Ul);var i=Tl({createLiteralArrayConverter:function(t){return function(t){return ds(t)}},createLiteralMapConverter:function(t){return function(e){return fs(t.map(function(t,n){return{key:t.key,value:e[n],quoted:t.quoted}}))}},createPipeConverter:function(t){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: "+t)}},n),o=new Bl(t,e,r),a=[];!function t(e,n){Array.isArray(e)?e.forEach(function(e){return t(e,n)}):n.push(e)}(i.visit(o,Ll.Statement),a),function(t,e,n){for(var r=t-1;r>=0;r--)n.unshift(Nl(e,r))}(o.temporaryCount,r,a);var s=a.length-1,c=null;if(s>=0){var l=function(t){{if(t instanceof Ga)return t.expr;if(t instanceof qa)return t.value}return null}(a[s]);l&&(c=ls("pd_"+r),a[s]=c.set(l.cast(sa).notIdentical(gs(!1))).toDeclStmt(null,[Ua.Final]))}return new Pl(a,c)}function Tl(t,e){return n=e,r=new Vl(t),n.visit(r);var n,r}var Ml=function(){return function(t,e){this.stmts=t,this.currValExpr=e}}(),Il={General:0,TrySimple:1};function Rl(t,e,n,r,i){t||(t=new Ul);var o=ls("currVal_"+r),a=[],s=new Bl(t,e,r),c=n.visit(s,Ll.Expression);if(s.temporaryCount)for(var l=0;l<s.temporaryCount;l++)a.push(Nl(r,l));else if(i==Il.TrySimple)return new Ml([],c);return a.push(o.set(c).toDeclStmt(sa,[Ua.Final])),new Ml(a,o)}function Dl(t,e){return"tmp_"+t+"_"+e}function Nl(t,e){return new za(Dl(t,e),Va)}Il[Il.General]="General",Il[Il.TrySimple]="TrySimple";var Ll={Statement:0,Expression:1};function jl(t,e){if(t!==Ll.Expression)throw new Error("Expected an expression, but saw "+e)}function Fl(t,e){return t===Ll.Statement?e.toStmt():e}Ll[Ll.Statement]="Statement",Ll[Ll.Expression]="Expression";var Vl=function(t){function e(e){var n=t.call(this)||this;return n._converterFactory=e,n}return n(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 Hl(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 Hl(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 Hl(t.span,r,this._converterFactory.createLiteralMapConverter(t.keys))},e}(pr),Bl=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=ua.Plus;break;case"-":n=ua.Minus;break;case"*":n=ua.Multiply;break;case"/":n=ua.Divide;break;case"%":n=ua.Modulo;break;case"&&":n=ua.And;break;case"||":n=ua.Or;break;case"==":n=ua.Equals;break;case"!=":n=ua.NotEquals;break;case"===":n=ua.Identical;break;case"!==":n=ua.NotIdentical;break;case"<":n=ua.Lower;break;case">":n=ua.Bigger;break;case"<=":n=ua.LowerEquals;break;case">=":n=ua.BiggerEquals;break;default:throw new Error("Unsupported operation "+t.operation)}return Fl(e,new Ia(n,this._visit(t.left,Ll.Expression),this._visit(t.right,Ll.Expression)))},t.prototype.visitChain=function(t,e){return function(t,e){if(t!==Ll.Statement)throw new Error("Expected a statement, but saw "+e)}(e,t),this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return Fl(e,this._visit(t.condition,Ll.Expression).conditional(this._visit(t.trueExp,Ll.Expression),this._visit(t.falseExp,Ll.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=this.visitAll(t.args,Ll.Expression);return Fl(e,t instanceof Hl?t.converter(n):this._visit(t.target,Ll.Expression).callFn(n))},t.prototype.visitImplicitReceiver=function(t,e){return jl(e,t),this._implicitReceiver},t.prototype.visitInterpolation=function(t,e){jl(e,t);for(var n=[gs(t.expressions.length)],r=0;r<t.strings.length-1;r++)n.push(gs(t.strings[r])),n.push(this._visit(t.expressions[r],Ll.Expression));return n.push(gs(t.strings[t.strings.length-1])),t.expressions.length<=9?us(jo.inlineInterpolate).callFn(n):us(jo.interpolate).callFn([n[0],ds(n.slice(1))])},t.prototype.visitKeyedRead=function(t,e){var n=this.leftMostSafeNode(t);return n?this.convertSafeAccess(t,n,e):Fl(e,this._visit(t.obj,Ll.Expression).key(this._visit(t.key,Ll.Expression)))},t.prototype.visitKeyedWrite=function(t,e){var n=this._visit(t.obj,Ll.Expression),r=this._visit(t.key,Ll.Expression),i=this._visit(t.value,Ll.Expression);return Fl(e,n.key(r).set(i))},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){var n=null===t.value||void 0===t.value||!0===t.value||!0===t.value?ca:void 0;return Fl(e,gs(t.value,n))},t.prototype._getLocal=function(t){return this._localResolver.getLocal(t)},t.prototype.visitMethodCall=function(t,e){if(t.receiver instanceof Hn&&"$any"==t.name){if(1!=(r=this.visitAll(t.args,Ll.Expression)).length)throw new Error("Invalid call to $any, expected 1 argument but received "+(r.length||"none"));return r[0].cast(sa)}var n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);var r=this.visitAll(t.args,Ll.Expression),i=null,o=this._visit(t.receiver,Ll.Expression);if(o===this._implicitReceiver){var a=this._getLocal(t.name);a&&(i=a.callFn(r))}return null==i&&(i=o.callMethod(t.name,r)),Fl(e,i)},t.prototype.visitPrefixNot=function(t,e){return Fl(e,(n=this._visit(t.expression,Ll.Expression),new Oa(n,r)));var n,r},t.prototype.visitNonNullAssert=function(t,e){return Fl(e,(n=this._visit(t.expression,Ll.Expression),new Pa(n,r)));var n,r},t.prototype.visitPropertyRead=function(t,e){var n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);var r=null,i=this._visit(t.receiver,Ll.Expression);return i===this._implicitReceiver&&(r=this._getLocal(t.name)),null==r&&(r=i.prop(t.name)),Fl(e,r)},t.prototype.visitPropertyWrite=function(t,e){var n=this._visit(t.receiver,Ll.Expression);if(n===this._implicitReceiver&&this._getLocal(t.name))throw new Error("Cannot assign to a reference or variable!");return Fl(e,n.prop(t.name).set(this._visit(t.value,Ll.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,Ll.Expression),i=void 0;this.needsTemporary(e.receiver)&&(r=(i=this.allocateTemporary()).set(r),this._resultMap.set(e.receiver,i));var o=r.isBlank();e instanceof or?this._nodeMap.set(e,new ir(e.span,e.receiver,e.name,e.args)):this._nodeMap.set(e,new Gn(e.span,e.receiver,e.name));var a=this._visit(t,Ll.Expression);return this._nodeMap.delete(e),i&&this.releaseTemporary(i),Fl(n,o.conditional(gs(null),a))},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},visitNonNullAssert: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)};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 e=this,t.expressions.some(function(t){return n(e,t)});var e},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)},visitNonNullAssert: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 ma(Dl(this.bindingId,t))},t.prototype.releaseTemporary=function(t){if(this._currentTemporary--,t.name!=Dl(this.bindingId,this._currentTemporary))throw new Error("Temporary "+t.name+" released out of order")},t}();var Ul=function(){function t(){}return t.prototype.getLocal=function(t){return t===Ol.event.name?Ol.event:null},t}();var Hl=function(t){function e(e,n,r){var i=t.call(this,e,null,n)||this;return i.args=n,i.converter=r,i}return n(e,t),e}(ar),zl=function(){function t(t,e){this.options=t,this.reflector=e}return t.prototype.compileComponent=function(t,e,n,r,i,o){var a=this,s=new Map;r.forEach(function(t){return s.set(t.name,t.type.reference)});var c=0,l=function(t,n){var r=c++;return new ql(a.options,a.reflector,i,t,e.type.reference,e.isHost,r,s,n,o,l)},u=l(null,[]);return u.visitAll([],n),u.build(t)},t}(),Wl="_any",Gl=new(function(){function t(){}return t.prototype.getLocal=function(t){return t===Ol.event.name?ls(Wl):null},t}()),ql=function(){function t(t,e,n,r,i,o,a,s,c,l,u){this.options=t,this.reflector=e,this.externalReferenceVars=n,this.parent=r,this.component=i,this.isHostComponent=o,this.embeddedViewIndex=a,this.pipes=s,this.guards=c,this.ctx=l,this.viewBuilderFactory=u,this.refOutputVars=new Map,this.variables=[],this.children=[],this.updates=[],this.actions=[]}return t.prototype.getOutputVar=function(t){var e;if(!(e=t===this.component&&this.isHostComponent?Wl:t instanceof _t?this.externalReferenceVars.get(t):Wl))throw new Error("Illegal State: referring to a type without a variable "+JSON.stringify(t));return e},t.prototype.getTypeGuardExpressions=function(t){for(var e=this.guards.slice(),n=0,r=t.directives;n<r.length;n++)for(var i=r[n],o=0,a=i.inputs;o<a.length;o++){var s=a[o],c=i.directive.guards[s.directiveName];if(c){var l="UseIf"===c;e.push({guard:c,useIf:l,expression:{context:this.component,value:s.value}})}}return e},t.prototype.visitAll=function(t,e){this.variables=t,yt(this,e)},t.prototype.build=function(t,e){var n=this;void 0===e&&(e=[]),this.children.forEach(function(n){return n.build(t,e)});var r=[ls(Wl).set(Va).toDeclStmt(sa)],i=0;if(this.updates.forEach(function(t){var e=n.preprocessUpdateExpression(t),o=e.sourceSpan,a=e.context,s=e.value,c=""+i++,l=Rl(a===n.component?n:Gl,ls(n.getOutputVar(a)),s,c,Il.General),u=l.stmts,p=l.currValExpr;u.push(new Ga(p)),r.push.apply(r,u.map(function(t){return as(t,o)}))}),this.actions.forEach(function(t){var e=t.sourceSpan,o=t.context,a=t.value,s=""+i++,c=Al(o===n.component?n:Gl,ls(n.getOutputVar(o)),a,s).stmts;r.push.apply(r,c.map(function(t){return as(t,e)}))}),this.guards.length){for(var o=void 0,a=0,s=this.guards;a<s.length;a++){var c=s[a],l=this.preprocessUpdateExpression(c.expression),u=l.context,p=l.value,h=""+i++,d=Rl(u===this.component?this:Gl,ls(this.getOutputVar(u)),p,h,Il.TrySimple),f=d.stmts,m=d.currValExpr;if(0==f.length){var g=c.useIf?m:this.ctx.importExpr(c.guard).callFn([m]);o=o?o.and(g):g}}o&&(r=[new Qa(o,r)])}var y="_View_"+t+"_"+this.embeddedViewIndex,v=new Wa(y,[],r);return e.push(v),e},t.prototype.visitBoundText=function(t,e){var n=this;t.value.ast.expressions.forEach(function(e){return n.updates.push({context:n.component,value:e,sourceSpan:t.sourceSpan})})},t.prototype.visitEmbeddedTemplate=function(t,e){if(this.visitElementOrTemplate(t),this.options.fullTemplateTypeCheck){var n=this.getTypeGuardExpressions(t),r=this.viewBuilderFactory(this,n);this.children.push(r),r.visitAll(t.variables,t.children)}},t.prototype.visitElement=function(t,e){var n=this;this.visitElementOrTemplate(t);t.inputs.forEach(function(t){n.updates.push({context:n.component,value:t.value,sourceSpan:t.sourceSpan})}),yt(this,t.children)},t.prototype.visitElementOrTemplate=function(t){var e=this;t.directives.forEach(function(t){e.visitDirective(t)}),t.references.forEach(function(t){var n=null;n=t.value&&t.value.identifier&&e.options.fullTemplateTypeCheck?t.value.identifier.reference:na.Dynamic,e.refOutputVars.set(t.name,n)}),t.outputs.forEach(function(t){e.actions.push({context:e.component,value:t.handler,sourceSpan:t.sourceSpan})})},t.prototype.visitDirective=function(t){var e=this,n=t.directive.type.reference;t.inputs.forEach(function(t){return e.updates.push({context:e.component,value:t.value,sourceSpan:t.sourceSpan})}),this.options.fullTemplateTypeCheck&&(t.hostProperties.forEach(function(t){return e.updates.push({context:n,value:t.value,sourceSpan:t.sourceSpan})}),t.hostEvents.forEach(function(t){return e.actions.push({context:n,value:t.handler,sourceSpan:t.sourceSpan})}))},t.prototype.getLocal=function(t){if(t==Ol.event.name)return ls(this.getOutputVar(na.Dynamic));for(var e=this;e;e=e.parent){var n=void 0;if(null==(n=e.refOutputVars.get(t)))e.variables.find(function(e){return e.name===t})&&(n=na.Dynamic);if(null!=n)return ls(this.getOutputVar(n))}return null},t.prototype.pipeOutputVar=function(t){var e=this.pipes.get(t);if(!e)throw new Error("Illegal State: Could not find pipe "+t+" in template of "+this.component);return this.getOutputVar(e)},t.prototype.preprocessUpdateExpression=function(t){var e=this;return{sourceSpan:t.sourceSpan,context:t.context,value:Tl({createLiteralArrayConverter:function(t){return function(t){var n=ds(t);return e.options.fullTemplateTypeCheck?n:n.cast(sa)}},createLiteralMapConverter:function(t){return function(n){var r=fs(t.map(function(t,e){return{key:t.key,value:n[e],quoted:t.quoted}}));return e.options.fullTemplateTypeCheck?r:r.cast(sa)}},createPipeConverter:function(t,n){return function(n){return(e.options.fullTemplateTypeCheck?ls(e.pipeOutputVar(t)):ls(e.getOutputVar(na.Dynamic))).callMethod("transform",n)}}},t.value)}},t.prototype.visitNgContent=function(t,e){},t.prototype.visitText=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}(),Yl="class",Kl="style",$l=function(){return function(t,e){this.viewClassVar=t,this.rendererTypeVar=e}}(),Xl=function(){function t(t){this._reflector=t}return t.prototype.compileComponent=function(t,e,n,r,i){var o=this,a=0,s=function t(e,n){void 0===n&&(n=new Map);e.forEach(function(e){var r=new Set,i=new Set,o=void 0;e instanceof st?(t(e.children,n),e.children.forEach(function(t){var e=n.get(t);e.staticQueryIds.forEach(function(t){return r.add(t)}),e.dynamicQueryIds.forEach(function(t){return i.add(t)})}),o=e.queryMatches):e instanceof ct&&(t(e.children,n),e.children.forEach(function(t){var e=n.get(t);e.staticQueryIds.forEach(function(t){return i.add(t)}),e.dynamicQueryIds.forEach(function(t){return i.add(t)})}),o=e.queryMatches),o&&o.forEach(function(t){return r.add(t.queryId)}),i.forEach(function(t){return r.delete(t)}),n.set(e,{staticQueryIds:r,dynamicQueryIds:i})});return n}(n),c=void 0;if(!e.isHost){var l=e.template,u=[];l.animations&&l.animations.length&&u.push(new La("animation",Ss(t,l.animations),!0));var p=ls(Pt(e.type.reference));c=p.name,t.statements.push(p.set(us(jo.createRendererType2).callFn([new ja([new La("encapsulation",gs(l.encapsulation),!1),new La("styles",r,!1),new La("data",new ja(u),!1)])])).toDeclStmt(ps(jo.RendererType2),[Ua.Final,Ua.Exported]))}var h,d=function(n){var r=a++;return new ru(o._reflector,t,n,e,r,i,s,d)},f=d(null);return f.visitAll([],n),(h=t.statements).push.apply(h,f.build()),new $l(f.viewName,c)},t}(),Ql=ls("_l"),Zl=ls("_v"),Jl=ls("_ck"),tu=ls("_co"),eu=ls("en"),nu=ls("ad"),ru=function(){function t(t,e,n,r,i,o,a,s){this.reflector=t,this.outputCtx=e,this.parent=n,this.component=r,this.embeddedViewIndex=i,this.usedPipes=o,this.staticQueryIds=a,this.viewBuilderFactory=s,this.nodes=[],this.purePipeNodeIndices=Object.create(null),this.refNodeIndices=Object.create(null),this.variables=[],this.children=[],this.compType=this.embeddedViewIndex>0?sa:hs(e.importExpr(this.component.type.reference)),this.viewName=Ot(this.component.type.reference,this.embeddedViewIndex)}return t.prototype.visitAll=function(t,e){var n,r,i,o=this;if(this.variables=t,this.parent||this.usedPipes.forEach(function(t){t.pure&&(o.purePipeNodeIndices[t.name]=o._createPipe(null,t))}),!this.parent){var a=(n=this.staticQueryIds,r=new Set,i=new Set,Array.from(n.values()).forEach(function(t){t.staticQueryIds.forEach(function(t){return r.add(t)}),t.dynamicQueryIds.forEach(function(t){return i.add(t)})}),i.forEach(function(t){return r.delete(t)}),{staticQueryIds:r,dynamicQueryIds:i});this.component.viewQueries.forEach(function(t,e){var n=e+1,r=t.first?0:1,i=134217728|su(a,n,t.first);o.nodes.push(function(){return{sourceSpan:null,nodeFlags:i,nodeDef:us(jo.queryDef).callFn([gs(i),gs(n),new ja([new La(t.propertyName,gs(r),!1)])])}})})}yt(this,e),this.parent&&(0===e.length||function t(e){var n=e[e.length-1];if(n instanceof ct)return n.hasViewContainer;if(n instanceof st)return me(n.name)&&n.children.length?t(n.children):n.hasViewContainer;return n instanceof dt}(e))&&this.nodes.push(function(){return{sourceSpan:null,nodeFlags:1,nodeDef:us(jo.anchorDef).callFn([gs(0),Va,Va,gs(0)])}})},t.prototype.build=function(t){void 0===t&&(t=[]),this.children.forEach(function(e){return e.build(t)});var e=this._createNodeExpressions(),n=e.updateRendererStmts,r=e.updateDirectivesStmts,i=e.nodeDefExprs,o=this._createUpdateFn(n),a=this._createUpdateFn(r),s=0;this.parent||this.component.changeDetection!==d.OnPush||(s|=2);var c=new Wa(this.viewName,[new Ta(Ql.name)],[new qa(us(jo.viewDef).callFn([gs(s),ds(i),a,o]))],ps(jo.ViewDefinition),0===this.embeddedViewIndex?[Ua.Exported]:[]);return t.push(c),t},t.prototype._createUpdateFn=function(t){var e;if(t.length>0){var n=[];!this.component.isHost&&rs(t).has(tu.name)&&n.push(tu.set(Zl.prop("component")).toDeclStmt(this.compType)),e=ms([new Ta(Jl.name,ca),new Ta(Zl.name,ca)],n.concat(t),ca)}else e=Va;return e},t.prototype.visitNgContent=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:8,nodeDef:us(jo.ngContentDef).callFn([gs(t.ngContentIndex),gs(t.index)])}})},t.prototype.visitText=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:us(jo.textDef).callFn([gs(-1),gs(t.ngContentIndex),ds([gs(t.value)])])}})},t.prototype.visitBoundText=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var i=t.value.ast,o=i.expressions.map(function(e,i){return n._preprocessUpdateExpression({nodeIndex:r,bindingIndex:i,sourceSpan:t.sourceSpan,context:tu,value:e})}),a=r;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:us(jo.textDef).callFn([gs(a),gs(t.ngContentIndex),ds(i.strings.map(function(t){return gs(t)}))]),updateRenderer:o}}},t.prototype.visitEmbeddedTemplate=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var i=this._visitElementOrTemplate(r,t),o=i.flags,a=i.queryMatchesExpr,s=i.hostEvents,c=this.viewBuilderFactory(this);this.children.push(c),c.visitAll(t.variables,t.children);var l=this.nodes.length-r-1;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|o,nodeDef:us(jo.anchorDef).callFn([gs(o),a,gs(t.ngContentIndex),gs(l),n._createElementHandleEventFn(r,s),ls(c.viewName)])}}},t.prototype.visitElement=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var i=me(t.name)?null:t.name,o=this._visitElementOrTemplate(r,t),a=o.flags,s=o.usedEvents,c=o.queryMatchesExpr,l=o.hostBindings,u=o.hostEvents,p=[],h=[],d=[];if(i){var f=t.inputs.map(function(t){return{context:tu,inputAst:t,dirAst:null}}).concat(l);f.length&&(h=f.map(function(t,e){return n._preprocessUpdateExpression({context:t.context,nodeIndex:r,bindingIndex:e,sourceSpan:t.inputAst.sourceSpan,value:t.inputAst.value})}),p=f.map(function(t){return function(t,e){switch(t.type){case ft.Attribute:return ds([gs(1),gs(t.name),gs(t.securityContext)]);case ft.Property:return ds([gs(8),gs(t.name),gs(t.securityContext)]);case ft.Animation:var n=8|(e&&e.directive.isComponent?32:16);return ds([gs(n),gs("@"+t.name),gs(t.securityContext)]);case ft.Class:return ds([gs(2),gs(t.name),Va]);case ft.Style:return ds([gs(4),gs(t.name),gs(t.unit)])}}(t.inputAst,t.dirAst)})),d=s.map(function(t){var e=t[0],n=t[1];return ds([gs(e),gs(n)])})}yt(this,t.children);var m=this.nodes.length-r-1,g=t.directives.find(function(t){return t.directive.isComponent}),y=Va,v=Va;g&&(v=this.outputCtx.importExpr(g.directive.componentViewType),y=this.outputCtx.importExpr(g.directive.rendererType));var b=r;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|a,nodeDef:us(jo.elementDef).callFn([gs(b),gs(a),c,gs(t.ngContentIndex),gs(m),gs(i),i?(e=t,o=Object.create(null),e.attrs.forEach(function(t){o[t.name]=t.value}),e.directives.forEach(function(t){Object.keys(t.directive.hostAttributes).forEach(function(e){var n,r,i=t.directive.hostAttributes[e],a=o[e];o[e]=null!=a?(r=i,(n=e)==Yl||n==Kl?a+" "+r:r):i})}),ds(Object.keys(o).sort().map(function(t){return ds([gs(t),gs(o[t])])}))):Va,p.length?ds(p):Va,d.length?ds(d):Va,n._createElementHandleEventFn(r,u),v,y]),updateRenderer:h};var e,o}},t.prototype._visitElementOrTemplate=function(t,e){var n=this,r=0;e.hasViewContainer&&(r|=16777216);var i=new Map;e.outputs.forEach(function(t){var e=au(t,null),n=e.name,r=e.target;i.set(cu(r,n),[r,n])}),e.directives.forEach(function(t){t.hostEvents.forEach(function(e){var n=au(e,t),r=n.name,o=n.target;i.set(cu(o,r),[o,r])})});var o=[],a=[];this._visitComponentFactoryResolverProvider(e.directives),e.providers.forEach(function(r,s){var c=void 0,l=void 0;if(e.directives.forEach(function(t,e){t.directive.type.reference===Rt(r.token)&&(c=t,l=e)}),c){var u=n._visitDirective(r,c,l,t,e.references,e.queryMatches,i,n.staticQueryIds.get(e)),p=u.hostBindings,h=u.hostEvents;o.push.apply(o,p),a.push.apply(a,h)}else n._visitProvider(r,e.queryMatches)});var s=[];return e.queryMatches.forEach(function(t){var e=void 0;Rt(t.value)===n.reflector.resolveExternalReference(jo.ElementRef)?e=0:Rt(t.value)===n.reflector.resolveExternalReference(jo.ViewContainerRef)?e=3:Rt(t.value)===n.reflector.resolveExternalReference(jo.TemplateRef)&&(e=2),null!=e&&s.push(ds([gs(t.queryId),gs(e)]))}),e.references.forEach(function(e){var r=void 0;e.value?Rt(e.value)===n.reflector.resolveExternalReference(jo.TemplateRef)&&(r=2):r=1,null!=r&&(n.refNodeIndices[e.name]=t,s.push(ds([gs(e.name),gs(r)])))}),e.outputs.forEach(function(t){a.push({context:tu,eventAst:t,dirAst:null})}),{flags:r,usedEvents:Array.from(i.values()),queryMatchesExpr:s.length?ds(s):Va,hostBindings:o,hostEvents:a}},t.prototype._visitDirective=function(t,e,n,r,i,o,a,s){var c=this,l=this.nodes.length;this.nodes.push(null),e.directive.queries.forEach(function(t,n){var r=e.contentQueryStartId+n,i=67108864|su(s,r,t.first),o=t.first?0:1;c.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:i,nodeDef:us(jo.queryDef).callFn([gs(i),gs(r),new ja([new La(t.propertyName,gs(o),!1)])])}})});var u=this.nodes.length-l-1,p=this._visitProviderOrDirective(t,o),h=p.flags,d=p.queryMatchExprs,f=p.providerExpr,m=p.depsExpr;i.forEach(function(e){e.value&&Rt(e.value)===Rt(t.token)&&(c.refNodeIndices[e.name]=l,d.push(ds([gs(e.name),gs(4)])))}),e.directive.isComponent&&(h|=32768);var g=e.inputs.map(function(t,e){var n=ds([gs(e),gs(t.directiveName)]);return new La(t.directiveName,n,!1)}),y=[],v=e.directive;Object.keys(v.outputs).forEach(function(t){var e=v.outputs[t];a.has(e)&&y.push(new La(t,gs(e),!1))});var b=[];(e.inputs.length||(327680&h)>0)&&(b=e.inputs.map(function(t,e){return c._preprocessUpdateExpression({nodeIndex:l,bindingIndex:e,sourceSpan:t.sourceSpan,context:tu,value:t.value})}));var _=us(jo.nodeValue).callFn([Zl,gs(l)]),w=e.hostProperties.map(function(t){return{context:_,dirAst:e,inputAst:t}}),C=e.hostEvents.map(function(t){return{context:_,eventAst:t,dirAst:e}}),x=l;return this.nodes[l]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:16384|h,nodeDef:us(jo.directiveDef).callFn([gs(x),gs(h),d.length?ds(d):Va,gs(u),f,m,g.length?new ja(g):Va,y.length?new ja(y):Va]),updateDirectives:b,directive:e.directive.type}},{hostBindings:w,hostEvents:C}},t.prototype._visitProvider=function(t,e){this._addProviderNode(this._visitProviderOrDirective(t,e))},t.prototype._visitComponentFactoryResolverProvider=function(t){var e=t.find(function(t){return t.directive.isComponent});if(e&&e.directive.entryComponents.length){var n=Is(this.reflector,this.outputCtx,8192,e.directive.entryComponents),r=n.providerExpr,i=n.depsExpr,o=n.flags,a=n.tokenExpr;this._addProviderNode({providerExpr:r,depsExpr:i,flags:o,tokenExpr:a,queryMatchExprs:[],sourceSpan:e.sourceSpan})}},t.prototype._addProviderNode=function(t){this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:t.flags,nodeDef:us(jo.providerDef).callFn([gs(t.flags),t.queryMatchExprs.length?ds(t.queryMatchExprs):Va,t.tokenExpr,t.providerExpr,t.depsExpr])}})},t.prototype._visitProviderOrDirective=function(t,e){var n=[];e.forEach(function(e){Rt(e.value)===Rt(t.token)&&n.push(ds([gs(e.queryId),gs(4)]))});var r=Os(this.outputCtx,t),i=r.providerExpr,o=r.depsExpr,a=r.flags,s=r.tokenExpr;return{flags:0|a,queryMatchExprs:n,providerExpr:i,depsExpr:o,tokenExpr:s,sourceSpan:t.sourceSpan}},t.prototype.getLocal=function(t){if(t==Ol.event.name)return Ol.event;for(var e=Zl,n=this;n;n=n.parent,e=e.prop("parent").cast(sa)){var r=n.refNodeIndices[t];if(null!=r)return us(jo.nodeValue).callFn([e,gs(r)]);var i=n.variables.find(function(e){return e.name===t});if(i){var o=i.value||"$implicit";return e.prop("context").prop(o)}}return null},t.prototype._createLiteralArrayConverter=function(t,e){if(0===e){var n=us(jo.EMPTY_ARRAY);return function(){return n}}var r=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:32,nodeDef:us(jo.pureArrayDef).callFn([gs(r),gs(e)])}}),function(t){return iu(r,t)}},t.prototype._createLiteralMapConverter=function(t,e){if(0===e.length){var n=us(jo.EMPTY_MAP);return function(){return n}}var i=fs(e.map(function(t,e){return r({},t,{value:gs(e)})})),o=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:64,nodeDef:us(jo.pureObjectDef).callFn([gs(o),i])}}),function(t){return iu(o,t)}},t.prototype._createPipeConverter=function(t,e,n){var r=this.usedPipes.find(function(t){return t.name===e});if(r.pure){var i=this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:128,nodeDef:us(jo.purePipeDef).callFn([gs(i),gs(n)])}});for(var o=Zl,a=this;a.parent;)a=a.parent,o=o.prop("parent").cast(sa);var s=a.purePipeNodeIndices[e],c=us(jo.nodeValue).callFn([o,gs(s)]);return function(e){return ou(t.nodeIndex,t.bindingIndex,iu(i,[c].concat(e)))}}var l=this._createPipe(t.sourceSpan,r),u=us(jo.nodeValue).callFn([Zl,gs(l)]);return function(e){return ou(t.nodeIndex,t.bindingIndex,u.callMethod("transform",e))}},t.prototype._createPipe=function(t,e){var n=this,r=this.nodes.length,i=0;e.type.lifecycleHooks.forEach(function(t){t===Bo.OnDestroy&&(i|=Ms(t))});var o=e.type.diDeps.map(function(t){return Ts(n.outputCtx,t)});return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:16,nodeDef:us(jo.pipeDef).callFn([gs(i),n.outputCtx.importExpr(e.type.reference),ds(o)])}}),r},t.prototype._preprocessUpdateExpression=function(t){var e=this;return{nodeIndex:t.nodeIndex,bindingIndex:t.bindingIndex,sourceSpan:t.sourceSpan,context:t.context,value:Tl({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(){var t=this,e=0,n=[],r=[],i=this.nodes.map(function(t,e){var i=t(),a=i.nodeDef,s=i.nodeFlags,c=i.updateDirectives,l=i.updateRenderer,u=i.sourceSpan;return l&&n.push.apply(n,o(e,u,l,!1)),c&&r.push.apply(r,o(e,u,c,(327680&s)>0)),ss(3&s?new Fa([Ql.callFn([]).callFn([]),a]):a,u)});return{updateRendererStmts:n,updateDirectivesStmts:r,nodeDefExprs:i};function o(n,r,i,o){var a=[],s=i.map(function(n){var r=n.sourceSpan,i=n.context,o=n.value,s=""+e++,c=Rl(i===tu?t:null,i,o,s,Il.General),l=c.stmts,u=c.currValExpr;return a.push.apply(a,l.map(function(t){return as(t,r)})),ss(u,r)});return(i.length||o)&&a.push(as(iu(n,s).toStmt(),r)),a}},t.prototype._createElementHandleEventFn=function(t,e){var n,r=this,i=[],o=0;if(e.forEach(function(t){var e=t.context,n=t.eventAst,a=t.dirAst,s=""+o++,c=Al(e===tu?r:null,e,n.handler,s),l=c.stmts,u=c.allowDefault,p=l;u&&p.push(nu.set(u.and(nu)).toStmt());var h=au(n,a),d=cu(h.target,h.name);i.push(as(new Qa(gs(d).identical(eu),p),n.sourceSpan))}),i.length>0){var a=[nu.set(gs(!0)).toDeclStmt(la)];!this.component.isHost&&rs(i).has(tu.name)&&a.push(tu.set(Zl.prop("component")).toDeclStmt(this.compType)),n=ms([new Ta(Zl.name,ca),new Ta(eu.name,ca),new Ta(Ol.event.name,ca)],a.concat(i,[new qa(nu)]),ca)}else n=Va;return n},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}();function iu(t,e){return e.length>10?Jl.callFn([Zl,gs(t),gs(1),ds(e)]):Jl.callFn([Zl,gs(t),gs(0)].concat(e))}function ou(t,e,n){return us(jo.unwrapValue).callFn([Zl,gs(t),gs(e),n])}function au(t,e){return t.isAnimation?{name:"@"+t.name+"."+t.phase,target:e&&e.directive.isComponent?"component":null}:t}function su(t,e,n){var r=0;return!n||!t.staticQueryIds.has(e)&&t.dynamicQueryIds.has(e)?r|=536870912:r|=268435456,r}function cu(t,e){return t?t+":"+e:e}var lu=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 i,o,a,s,c,l=(i=r.rootNodes,o=n,a=this._implicitTags,s=this._implicitAttrs,new Li(a,s).extract(i,o));return l.errors.length?l.errors:((c=this._messages).push.apply(c,l.messages),[])},t.prototype.getMessages=function(){return this._messages},t.prototype.write=function(t,e){var n={},r=new uu;this._messages.forEach(function(e){var r,i=t.digest(e);n.hasOwnProperty(i)?(r=n[i].sources).push.apply(r,e.sources):n[i]=e});var i=Object.keys(n).map(function(i){var o=t.createNameMapper(n[i]),a=n[i],s=o?r.convert(a.nodes,o):a.nodes,c=new li(s,{},{},a.meaning,a.description,i);return c.sources=a.sources,e&&c.sources.forEach(function(t){return t.filePath=e(t.filePath)}),c});return t.write(i,this._locale)},t}(),uu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(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),i=t.closeName?e.toPublicName(t.closeName):t.closeName,o=t.children.map(function(t){return t.visit(n,e)});return new di(t.tag,t.attrs,r,i,o,t.isVoid,t.sourceSpan)},e.prototype.visitPlaceholder=function(t,e){return new fi(t.value,e.toPublicName(t.name),t.sourceSpan)},e.prototype.visitIcuPlaceholder=function(t,e){return new mi(t.value,e.toPublicName(t.name),t.sourceSpan)},e}(gi),pu=function(){function t(t,e,n){this.srcFileUrl=t,this.genFileUrl=e,"string"==typeof n?(this.source=n,this.stmts=null):(this.source=null,this.stmts=n)}return t.prototype.isEquivalent=function(t){return this.genFileUrl===t.genFileUrl&&(this.source?this.source===t.source:null!=t.stmts&&ha(this.stmts,t.stmts))},t}();function hu(t,e){for(var n=[],r=0,i=t.transitiveModule.providers;r<i.length;r++){var o=i[r],a=o.provider,s=o.module;if(Rt(a.token)===e.ROUTES)for(var c=0,l=du(a.useValue);c<l.length;c++){var u=l[c];n.push(fu(u,e,s.reference))}}return n}function du(t,e){if(void 0===e&&(e=[]),"string"==typeof t)e.push(t);else if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){du(r[n],e)}else t.loadChildren?du(t.loadChildren,e):t.children&&du(t.children,e);return e}function fu(t,e,n){var r=t.split("#"),i=r[0],o=r[1],a=e.resolveExternalReference({moduleName:i,name:o},n?n.filePath:void 0);return{route:t,module:n||a,referencedModule:a}}var mu=function(){return function(t,e){this.symbol=t,this.metadata=e}}(),gu=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,this.knownFileNameToModuleNames=new Map}return t.prototype.resolveSymbol=function(t){if(t.members.length>0)return this._resolveSymbolMembers(t);var e=this._resolveSymbolFromSummary(t);if(e)return e;var n=this.resolvedSymbols.get(t);return n||(this._createSymbolsOf(t.filePath),this.resolvedSymbols.get(t))},t.prototype.getImportAs=function(t,e){if(void 0===e&&(e=!0),t.members.length){var n=this.getStaticSymbol(t.filePath,t.name);return(i=this.getImportAs(n,e))?this.getStaticSymbol(i.filePath,i.name,t.members):null}var r=t.filePath.replace(So,".");if(r!==t.filePath){var i,o=t.name.replace(ko,"");n=this.getStaticSymbol(r,o,t.members);return(i=this.getImportAs(n,e))?this.getStaticSymbol(Io(i.filePath),Ro(i.name),n.members):null}var a=e&&this.summaryResolver.getImportAs(t)||null;return a||(a=this.importAs.get(t)),a},t.prototype.getResourcePath=function(t){return this.symbolResourcePaths.get(t)||t.filePath},t.prototype.getTypeArity=function(t){if(e=t.filePath,Eo.test(e))return null;for(var e,n=vu(this.resolveSymbol(t));n&&n.metadata instanceof _t;)n=vu(this.resolveSymbol(n.metadata));return n&&n.metadata&&n.metadata.arity||null},t.prototype.getKnownModuleName=function(t){return this.knownFileNameToModuleNames.get(t)||null},t.prototype.recordImportAs=function(t,e){t.assertNoMembers(),e.assertNoMembers(),this.importAs.set(t,e)},t.prototype.recordModuleNameForFileName=function(t,e){this.knownFileNameToModuleNames.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 i=r[n];this.resolvedSymbols.delete(i),this.importAs.delete(i),this.symbolResourcePaths.delete(i)}}},t.prototype.ignoreErrorsFor=function(t){var e=this.errorRecorder;this.errorRecorder=function(){};try{return t()}finally{this.errorRecorder=e}},t.prototype._resolveSymbolMembers=function(t){var e=t.members,n=this.resolveSymbol(this.getStaticSymbol(t.filePath,t.name));if(!n)return null;var r=vu(n.metadata);if(r instanceof _t)return new mu(t,this.getStaticSymbol(r.filePath,r.name,e));if(!r||"class"!==r.__symbolic){for(var i=r,o=0;o<e.length&&i;o++)i=i[e[o]];return new mu(t,i)}return r.statics&&1===e.length?new mu(t,r.statics[e[0]]):null},t.prototype._resolveSymbolFromSummary=function(t){var e=this.summaryResolver.resolveSummary(t);return e?new mu(t,e.metadata):null},t.prototype.getStaticSymbol=function(t,e,n){return this.staticSymbolCache.get(t,e,n)},t.prototype.hasDecorators=function(t){var e=this.getModuleMetadata(t);return!!e.metadata&&Object.keys(e.metadata).some(function(t){var n=e.metadata[t];return n&&"class"===n.__symbolic&&n.decorators})},t.prototype.getSymbolsOf=function(t){var e=this.summaryResolver.getSymbolsOf(t);if(e)return e;this._createSymbolsOf(t);var n=[];return this.resolvedSymbols.forEach(function(e){e.symbol.filePath===t&&n.push(e.symbol)}),n},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.importAs&&this.knownFileNameToModuleNames.set(t,r.importAs),r.exports)for(var i=function(r){if(r.export)r.export.forEach(function(i){var o,a=o=yu(o="string"==typeof i?i:i.as);"string"!=typeof i&&(a=yu(i.name));var s=e.resolveModule(r.from,t);if(s){var c=e.getStaticSymbol(s,a),l=e.getStaticSymbol(t,o);n.push(e.createExport(l,c))}});else{var i=o.resolveModule(r.from,t);if(i)o.getSymbolsOf(i).forEach(function(r){var i=e.getStaticSymbol(t,r.name);n.push(e.createExport(i,r))})}},o=this,a=0,s=r.exports;a<s.length;a++){i(s[a])}if(r.metadata){var c=new Set(Object.keys(r.metadata).map(yu)),l=r.origins||{};Object.keys(r.metadata).forEach(function(i){var o=r.metadata[i],a=yu(i),s=e.getStaticSymbol(t,a),u=l.hasOwnProperty(i)&&l[i];if(u){var p=e.resolveModule(u,t);p?e.symbolResourcePaths.set(s,p):e.reportError(new Error("Couldn't resolve original symbol for "+u+" from "+t))}n.push(e.createResolvedSymbol(s,t,c,o))})}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,i,o){if(this.summaryResolver.isLibraryFile(t.filePath)&&o&&"class"===o.__symbolic){var a={__symbolic:"class",arity:o.arity};return new mu(t,a)}var s,c=function(){return s||(s=e.replace(/((\.ts)|(\.d\.ts)|)$/,".ts").replace(/^.*node_modules[/\\]/,"")),s},l=this,u=L(o,new(function(o){function a(){return null!==o&&o.apply(this,arguments)||this}return n(a,o),a.prototype.visitStringMap=function(n,a){var s=n.__symbolic;if("function"===s){var u=a.length;a.push.apply(a,n.parameters||[]);var p=o.prototype.visitStringMap.call(this,n,a);return a.length=u,p}if("reference"!==s)return"error"===s?r({},n,{fileName:c()}):o.prototype.visitStringMap.call(this,n,a);var h=n.module,d=n.name?yu(n.name):n.name;if(!d)return null;var f=void 0;return h?(f=l.resolveModule(h,t.filePath))?{__symbolic:"resolved",symbol:l.getStaticSymbol(f,d),line:n.line,character:n.character,fileName:c()}:{__symbolic:"error",message:"Could not resolve "+h+" relative to "+t.filePath+".",line:n.line,character:n.character,fileName:c()}:a.indexOf(d)>=0?{__symbolic:"reference",name:d}:i.has(d)?l.getStaticSymbol(e,d):void 0},a}(V)),[]),p=vu(u);return p instanceof _t?this.createExport(t,p):new mu(t,u)},t.prototype.createExport=function(t,e){return t.assertNoMembers(),e.assertNoMembers(),this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(e.filePath)&&this.importAs.set(e,this.getImportAs(t)||t),new mu(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&&t.version>r&&(r=t.version,e=t)})}if(e||(e={__symbolic:"module",version:4,module:t,metadata:{}}),4!=e.version){var i=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 4";this.reportError(new Error(i))}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:""))),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}();function yu(t){return t.startsWith("___")?t.substr(1):t}function vu(t){return t&&"resolved"===t.__symbolic?t.symbol:t}function bu(t,e,n){var r=Ro(e.name);t.statements.push(ms([],[new qa(n)],new oa(sa)).toDeclStmt(r,[Ua.Final,Ua.Exported]))}var _u=function(t){function e(e,n,r){var i=t.call(this)||this;return i.symbolResolver=e,i.summaryResolver=n,i.srcFileName=r,i.symbols=[],i.indexBySymbol=new Map,i.reexportedBy=new Map,i.processedSummaryBySymbol=new Map,i.processedSummaries=[],i.unprocessedSymbolSummariesBySymbol=new Map,i.moduleName=e.getKnownModuleName(r),i}return n(e,t),e.prototype.addSummary=function(t){var e,n,r=this,i=this.unprocessedSymbolSummariesBySymbol.get(t.symbol),o=this.processedSummaryBySymbol.get(t.symbol);if(i||(i={symbol:t.symbol,metadata:void 0},this.unprocessedSymbolSummariesBySymbol.set(t.symbol,i),o={symbol:this.processValue(t.symbol,0)},this.processedSummaries.push(o),this.processedSummaryBySymbol.set(t.symbol,o)),!i.metadata&&t.metadata){var a=t.metadata||{};if("class"===a.__symbolic){var s={};Object.keys(a).forEach(function(t){"decorators"!==t&&(s[t]=a[t])}),a=s}else xu(a)&&(xu(n=a)&&vu(n.expression)instanceof _t||xu(e=a)&&e.expression&&"select"===e.expression.__symbolic&&vu(e.expression.expression)instanceof _t||(a={__symbolic:"error",message:"Complex function calls are not supported."}));if(i.metadata=a,o.metadata=this.processValue(a,1),a instanceof _t&&this.summaryResolver.isLibraryFile(a.filePath)){var c=this.symbols[this.indexBySymbol.get(a)];No(c.name)||this.reexportedBy.set(c,t.symbol)}}if(!i.type&&t.type&&(i.type=t.type,o.type=this.processValue(t.type,0),t.type.summaryKind===Mt.NgModule)){var l=t.type;l.exportedDirectives.concat(l.exportedPipes).forEach(function(t){var e=t.reference;if(r.summaryResolver.isLibraryFile(e.filePath)&&!r.unprocessedSymbolSummariesBySymbol.has(e)){var n=r.summaryResolver.resolveSummary(e);n&&r.addSummary(n)}})}},e.prototype.serialize=function(){var t=this,e=[];return{json:JSON.stringify({moduleName:this.moduleName,summaries:this.processedSummaries,symbols:this.symbols.map(function(n,r){n.assertNoMembers();var i=void 0;if(t.summaryResolver.isLibraryFile(n.filePath)){var o=t.reexportedBy.get(n);if(o)i=t.indexBySymbol.get(o);else{var a=t.unprocessedSymbolSummariesBySymbol.get(n);a&&a.metadata&&"interface"===a.metadata.__symbolic||(i=n.name+"_"+r,e.push({symbol:n,exportAs:i}))}}return{__symbol:r,name:n.name,filePath:t.summaryResolver.toSummaryFileName(n.filePath,t.srcFileName),importAs:i}})}),exportAs:e}},e.prototype.processValue=function(t,e){return L(t,this,e)},e.prototype.visitOther=function(t,e){if(t instanceof _t){var n=this.symbolResolver.getStaticSymbol(t.filePath,t.name);return{__symbol:this.visitStaticSymbol(n,e),members:t.members}}},e.prototype.visitStaticSymbol=function(t,e){var n=this.indexBySymbol.get(t),r=null;if(1&e&&this.summaryResolver.isLibraryFile(t.filePath)){if(this.unprocessedSymbolSummariesBySymbol.has(t))return n;(r=this.loadSummary(t))&&r.metadata instanceof _t&&(n=this.visitStaticSymbol(r.metadata,e),r=null)}else if(null!=n)return n;return null==n&&(n=this.symbols.length,this.symbols.push(t)),this.indexBySymbol.set(t,n),r&&this.addSummary(r),n},e.prototype.loadSummary=function(t){var e=this.summaryResolver.resolveSummary(t);if(!e){var n=this.symbolResolver.resolveSymbol(t);n&&(e={symbol:n.symbol,metadata:n.metadata})}return e},e}(V),wu=function(){function t(t,e,n){this.outputCtx=t,this.symbolResolver=e,this.summaryResolver=n,this.data=[]}return t.prototype.addSourceType=function(t,e){this.data.push({summary:t,metadata:e,isLibrary:!1})},t.prototype.addLibType=function(t){this.data.push({summary:t,metadata:null,isLibrary:!0})},t.prototype.serialize=function(t){for(var e=this,n=new Map,r=0,i=t;r<i.length;r++){var o=i[r],a=o.symbol,s=o.exportAs;n.set(a,s)}for(var c=new Set,l=0,u=this.data;l<u.length;l++){var p=u[l],h=p.summary,d=p.metadata,f=p.isLibrary;if(h.summaryKind===Mt.NgModule){c.add(h.type.reference);for(var m=0,g=h.modules;m<g.length;m++){var y=g[m];c.add(y.reference)}}if(!f){Ro(h.type.reference.name);bu(this.outputCtx,h.type.reference,this.serializeSummaryWithDeps(h,d))}}c.forEach(function(t){if(e.summaryResolver.isLibraryFile(t.filePath)){var r=Ro(n.get(t)||t.name);e.outputCtx.statements.push(ls(r).set(e.serializeSummaryRef(t)).toDeclStmt(null,[Ua.Exported]))}})},t.prototype.serializeSummaryWithDeps=function(t,e){var n=this,r=[this.serializeSummary(t)],i=[];if(e instanceof Ft)r.push.apply(r,e.declaredDirectives.concat(e.declaredPipes).map(function(t){return t.reference}).concat(e.transitiveModule.modules.map(function(t){return t.reference}).filter(function(t){return t!==e.type.reference})).map(function(t){return n.serializeSummaryRef(t)})),i=e.providers;else if(t.summaryKind===Mt.Directive){var o=t;i=o.providers.concat(o.viewProviders)}return r.push.apply(r,i.filter(function(t){return!!t.useClass}).map(function(t){return n.serializeSummary({summaryKind:Mt.Injectable,type:t.useClass})})),ds(r)},t.prototype.serializeSummaryRef=function(t){var e=this.symbolResolver.getStaticSymbol(Io(t.filePath),Ro(t.name));return this.outputCtx.importExpr(e)},t.prototype.serializeSummary=function(t){var e=this.outputCtx;return L(t,new(function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return ds(t.map(function(t){return L(t,n,e)}))},t.prototype.visitStringMap=function(t,e){var n=this;return new ja(Object.keys(t).map(function(r){return new La(r,L(t[r],n,e),!1)}))},t.prototype.visitPrimitive=function(t,e){return gs(t)},t.prototype.visitOther=function(t,n){if(t instanceof _t)return e.importExpr(t);throw new Error("Illegal State: Encountered value "+t)},t}()),null)},t}(),Cu=function(t){function e(e,n){var r=t.call(this)||this;return r.symbolCache=e,r.summaryResolver=n,r}return n(e,t),e.prototype.deserialize=function(t,e){var n=this,r=JSON.parse(e),i=[];this.symbols=r.symbols.map(function(e){return n.symbolCache.get(n.summaryResolver.fromSummaryFileName(e.filePath,t),e.name)}),r.symbols.forEach(function(e,r){var o=n.symbols[r],a=e.importAs;"number"==typeof a?i.push({symbol:o,importAs:n.symbols[a]}):"string"==typeof a&&i.push({symbol:o,importAs:n.symbolCache.get(Oo(t),a)})});var o=L(r.summaries,this,null);return{moduleName:r.moduleName,summaries:o,importAs:i}},e.prototype.visitStringMap=function(e,n){if("__symbol"in e){var r=this.symbols[e.__symbol],i=e.members;return i.length?this.symbolCache.get(r.filePath,r.name,i):r}return t.prototype.visitStringMap.call(this,e,n)},e}(V);function xu(t){return t&&"call"===t.__symbolic}var Eu={Basic:1,TypeCheck:2,All:3};Eu[Eu.Basic]="Basic",Eu[Eu.TypeCheck]="TypeCheck",Eu[Eu.All]="All";var Su=function(){function t(t,e,n,r,i,o,a,s,c,l,u,p,h){this._config=t,this._options=e,this._host=n,this._reflector=r,this._metadataResolver=i,this._templateParser=o,this._styleCompiler=a,this._viewCompiler=s,this._typeCheckCompiler=c,this._ngModuleCompiler=l,this._outputEmitter=u,this._summaryResolver=p,this._symbolResolver=h,this._templateAstCache=new Map,this._analyzedFiles=new Map}return t.prototype.clearCache=function(){this._metadataResolver.clearCache()},t.prototype.analyzeModulesSync=function(t){var e=this,n=Tu(t,this._host,this._symbolResolver,this._metadataResolver);return n.ngModules.forEach(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!0)}),n},t.prototype.analyzeModulesAsync=function(t){var e=this,n=Tu(t,this._host,this._symbolResolver,this._metadataResolver);return Promise.all(n.ngModules.map(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){return n})},t.prototype._analyzeFile=function(t){var e=this._analyzedFiles.get(t);return e||(e=Iu(this._host,this._symbolResolver,this._metadataResolver,t),this._analyzedFiles.set(t,e)),e},t.prototype.findGeneratedFileNames=function(t){var e=this,n=[],r=this._analyzeFile(t);(this._options.allowEmptyCodegenFiles||r.directives.length||r.pipes.length||r.injectables.length||r.ngModules.length||r.exportsNonSourceFiles)&&(n.push(Oo(r.fileName,!0)),this._options.enableSummariesForJit&&n.push(Io(r.fileName,!0)));var i=To(Ao(r.fileName,!0)[1]);return r.directives.forEach(function(t){var o=e._metadataResolver.getNonNormalizedDirectiveMetadata(t).metadata;o.isComponent&&o.template.styleUrls.forEach(function(t){var a=e._host.resourceNameToFileName(t,r.fileName);if(!a)throw z("Couldn't resolve resource "+t+" relative to "+r.fileName);var s=(o.template.encapsulation||e._config.defaultEncapsulation)===h.Emulated;n.push(Pu(a,s,i)),e._options.allowEmptyCodegenFiles&&n.push(Pu(a,!s,i))})}),n},t.prototype.emitBasicStub=function(t,e){var n=this._createOutputContext(t);if(t.endsWith(".ngfactory.ts")){if(!e)throw new Error("Assertion error: require the original file for .ngfactory.ts stubs. File: "+t);var r=this._analyzeFile(e);this._createNgFactoryStub(n,r,Eu.Basic)}else if(t.endsWith(".ngsummary.ts")){if(this._options.enableSummariesForJit){if(!e)throw new Error("Assertion error: require the original file for .ngsummary.ts stubs. File: "+t);r=this._analyzeFile(e);ku(n),r.ngModules.forEach(function(t){var e,r;e=n,r=t.type.reference,bu(e,r,Va)})}}else t.endsWith(".ngstyle.ts")&&ku(n);return this._codegenSourceModule("unknown",n)},t.prototype.emitTypeCheckStub=function(t,e){var n=this._analyzeFile(e),r=this._createOutputContext(t);return t.endsWith(".ngfactory.ts")&&this._createNgFactoryStub(r,n,Eu.TypeCheck),r.statements.length>0?this._codegenSourceModule(n.fileName,r):null},t.prototype.loadFilesAsync=function(t){var e=this,n=t.map(function(t){return e._analyzeFile(t)}),r=[];return n.forEach(function(t){return t.ngModules.forEach(function(t){return r.push(e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1))})}),Promise.all(r).then(function(t){return Du(n)})},t.prototype.loadFilesSync=function(t){var e=this,n=t.map(function(t){return e._analyzeFile(t)});return n.forEach(function(t){return t.ngModules.forEach(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!0)})}),Du(n)},t.prototype._createNgFactoryStub=function(t,e,n){var r=this,i=0;e.ngModules.forEach(function(e,o){r._ngModuleCompiler.createStub(t,e.type.reference);var a=e.transitiveModule.directives.map(function(t){return t.reference}).concat(e.transitiveModule.pipes.map(function(t){return t.reference}),e.importedModules.map(function(t){return t.type.reference}),e.exportedModules.map(function(t){return t.type.reference}),r._externalIdentifierReferences([jo.TemplateRef,jo.ElementRef])),s=new Map;a.forEach(function(t,e){s.set(t,"_decl"+o+"_"+e)}),s.forEach(function(e,n){t.statements.push(ls(e).set(Va.cast(sa)).toDeclStmt(hs(t.importExpr(n,null,!1))))}),n&Eu.TypeCheck&&e.declaredDirectives.forEach(function(n){var o=r._metadataResolver.getDirectiveMetadata(n.reference);o.isComponent&&(i++,r._createTypeCheckBlock(t,o.type.reference.name+"_Host_"+i,e,r._metadataResolver.getHostComponentMetadata(o),[o.type],s),r._createTypeCheckBlock(t,o.type.reference.name+"_"+i,e,o,e.transitiveModule.directives,s))})}),0===t.statements.length&&ku(t)},t.prototype._externalIdentifierReferences=function(t){for(var e=[],n=0,r=t;n<r.length;n++){var i=r[n],o=Vo(this._reflector,i);o.identifier&&e.push(o.identifier.reference)}return e},t.prototype._createTypeCheckBlock=function(t,e,n,r,i,o){var a,s=this._parseTemplate(r,n,i),c=s.template,l=s.pipes;(a=t.statements).push.apply(a,this._typeCheckCompiler.compileComponent(e,r,c,l,o,t))},t.prototype.emitMessageBundle=function(t,e){var n=this,r=[],i=new bo,o=new lu(i,[],{},e);if(t.files.forEach(function(t){var e=[];t.directives.forEach(function(t){var r=n._metadataResolver.getDirectiveMetadata(t);r&&r.isComponent&&e.push(r)}),e.forEach(function(e){var n=e.template.template,i=ae.fromArray(e.template.interpolation);r.push.apply(r,o.updateFromTemplate(n,t.fileName,i))})}),r.length)throw new Error(r.map(function(t){return t.toString()}).join("\n"));return o},t.prototype.emitAllImpls=function(t){var e=this,n=t.ngModuleByPipeOrDirective;return Ht(t.files.map(function(t){return e._compileImplFile(t.fileName,n,t.directives,t.pipes,t.ngModules,t.injectables)}))},t.prototype._compileImplFile=function(t,e,n,r,i,o){var a=this,s=To(Ao(t,!0)[1]),c=[],l=this._createOutputContext(Oo(t,!0));if(c.push.apply(c,this._createSummary(t,n,r,i,o,l)),i.forEach(function(t){return a._compileModule(l,t)}),n.forEach(function(n){var r=a._metadataResolver.getDirectiveMetadata(n);if(r.isComponent){var i=e.get(n);if(!i)throw new Error("Internal Error: cannot determine the module for component "+St(r.type)+"!");var o=a._styleCompiler.compileComponent(l,r);r.template.externalStylesheets.forEach(function(e){var n=a._styleCompiler.needsStyleShim(r);c.push(a._codegenStyles(t,r,e,n,s)),a._options.allowEmptyCodegenFiles&&c.push(a._codegenStyles(t,r,e,!n,s))});a._compileComponent(l,r,i,i.transitiveModule.directives,o,s);a._compileComponentFactory(l,r,i,s)}}),l.statements.length>0||this._options.allowEmptyCodegenFiles){var u=this._codegenSourceModule(t,l);c.unshift(u)}return c},t.prototype._createSummary=function(t,e,n,r,i,o){var a=this,s=this._symbolResolver.getSymbolsOf(t).map(function(t){return a._symbolResolver.resolveSymbol(t)}),c=r.map(function(t){return{summary:a._metadataResolver.getNgModuleSummary(t.type.reference),metadata:a._metadataResolver.getNgModuleMetadata(t.type.reference)}}).concat(e.map(function(t){return{summary:a._metadataResolver.getDirectiveSummary(t),metadata:a._metadataResolver.getDirectiveMetadata(t)}}),n.map(function(t){return{summary:a._metadataResolver.getPipeSummary(t),metadata:a._metadataResolver.getPipeMetadata(t)}}),i.map(function(t){return{summary:a._metadataResolver.getInjectableSummary(t),metadata:a._metadataResolver.getInjectableSummary(t).type}})),l=this._options.enableSummariesForJit?this._createOutputContext(Io(t,!0)):null,u=function(t,e,n,r,i,o){var a=new _u(r,n,t);i.forEach(function(t){return a.addSummary({symbol:t.symbol,metadata:t.metadata})}),o.forEach(function(t){var e=t.summary;t.metadata,a.addSummary({symbol:e.type.reference,metadata:void 0,type:e})});var s=a.serialize(),c=s.json,l=s.exportAs;if(e){var u=new wu(e,r,n);o.forEach(function(t){var e=t.summary,n=t.metadata;u.addSourceType(e,n)}),a.unprocessedSymbolSummariesBySymbol.forEach(function(t){n.isLibraryFile(t.symbol.filePath)&&t.type&&u.addLibType(t.type)}),u.serialize(l)}return{json:c,exportAs:l}}(t,l,this._summaryResolver,this._symbolResolver,s,c),p=u.json;u.exportAs.forEach(function(t){o.statements.push(ls(t.exportAs).set(o.importExpr(t.symbol)).toDeclStmt(null,[Ua.Exported]))});var h=[new pu(t,Mo(t),p)];return l&&h.push(this._codegenSourceModule(t,l)),h},t.prototype._compileModule=function(t,e){var n=[];if(this._options.locale){var r=this._options.locale.replace(/_/g,"-");n.push({token:Vo(this._reflector,jo.LOCALE_ID),useValue:r})}this._options.i18nFormat&&n.push({token:Vo(this._reflector,jo.TRANSLATIONS_FORMAT),useValue:this._options.i18nFormat}),this._ngModuleCompiler.compile(t,e,n)},t.prototype._compileComponentFactory=function(t,e,n,r){var i=this._metadataResolver.getHostComponentMetadata(e),o=this._compileComponent(t,i,n,[e.type],null,r).viewClassVar,a=Tt(e.type.reference),s=[];for(var c in e.inputs){var l=e.inputs[c];s.push(new La(c,gs(l),!1))}var u=[];for(var c in e.outputs){l=e.outputs[c];u.push(new La(c,gs(l),!1))}t.statements.push(ls(a).set(us(jo.createComponentFactory).callFn([gs(e.selector),t.importExpr(e.type.reference),ls(o),new ja(s),new ja(u),ds(e.template.ngContentSelectors.map(function(t){return gs(t)}))])).toDeclStmt(ps(jo.ComponentFactory,[hs(t.importExpr(e.type.reference))],[ta.Const]),[Ua.Final,Ua.Exported]))},t.prototype._compileComponent=function(t,e,n,r,i,o){var a=this._parseTemplate(e,n,r),s=a.template,c=a.pipes,l=i?ls(i.stylesVar):ds([]),u=this._viewCompiler.compileComponent(t,e,s,l,c);return i&&Ou(this._symbolResolver,i,this._styleCompiler.needsStyleShim(e),o),u},t.prototype._parseTemplate=function(t,e,n){var r=this;if(this._templateAstCache.has(t.type.reference))return this._templateAstCache.get(t.type.reference);var i=t.template.preserveWhitespaces,o=n.map(function(t){return r._metadataResolver.getDirectiveSummary(t.reference)}),a=e.transitiveModule.pipes.map(function(t){return r._metadataResolver.getPipeSummary(t.reference)}),s=this._templateParser.parse(t,t.template.htmlAst,o,a,e.schemas,Wt(e.type,t,t.template),i);return this._templateAstCache.set(t.type.reference,s),s},t.prototype._createOutputContext=function(t){var e=this;return{statements:[],genFilePath:t,importExpr:function(n,r,i){if(void 0===r&&(r=null),void 0===i&&(i=!0),!(n instanceof _t))throw new Error("Internal error: unknown identifier "+JSON.stringify(n));var o=e._symbolResolver.getTypeArity(n)||0,a=e._symbolResolver.getImportAs(n,i)||n,s=a.filePath,c=a.name,l=a.members,u=e._fileNameToModuleName(s,t),p=u===e._fileNameToModuleName(t,t)?null:u,h=r||[],d=o-h.length,f=h.concat(new Array(d).fill(sa));return l.reduce(function(t,e){return t.prop(e)},us(new Sa(p,c,null),f))}}},t.prototype._fileNameToModuleName=function(t,e){return this._summaryResolver.getKnownModuleName(t)||this._symbolResolver.getKnownModuleName(t)||this._host.fileNameToModuleName(t,e)},t.prototype._codegenStyles=function(t,e,n,r,i){var o=this._createOutputContext(Pu(n.moduleUrl,r,i)),a=this._styleCompiler.compileStyles(o,e,n,r);return Ou(this._symbolResolver,a,r,i),this._codegenSourceModule(t,o)},t.prototype._codegenSourceModule=function(t,e){return new pu(t,e.genFilePath,e.statements)},t.prototype.listLazyRoutes=function(t,e){var n=this;if(t)return function t(e,r,i){void 0===r&&(r=new Set);void 0===i&&(i=[]);if(r.has(e)||!e.name)return i;r.add(e);var o=hu(n._metadataResolver.getNgModuleMetadata(e,!0),n._reflector);for(var a=0,s=o;a<s.length;a++){var c=s[a];i.push(c),t(c.referencedModule,r,i)}return i}(fu(t,this._reflector).referencedModule);if(e){for(var r=[],i=0,o=e.ngModules;i<o.length;i++)for(var a=0,s=hu(o[i],this._reflector);a<s.length;a++){var c=s[a];r.push(c)}return r}throw new Error("Either route or analyzedModules has to be specified!")},t}();function ku(t){t.statements.push(us(jo.ComponentFactory).toStmt())}function Ou(t,e,n,r){e.dependencies.forEach(function(e){e.setValue(t.getStaticSymbol(Pu(e.moduleUrl,n,r),e.name))})}function Pu(t,e,n){return t+(e?".shim":"")+".ngstyle"+n}function Au(t,e,n,r){var i,o,a,s,c,l,u;return Ru((i=t,o=e,a=n,s=r,c=new Set,l=[],u=function(t){if(c.has(t)||!o.isSourceFile(t))return!1;c.add(t);var e=Iu(o,a,s,t);l.push(e),e.ngModules.forEach(function(t){t.transitiveModule.modules.forEach(function(t){return u(t.reference.filePath)})})},i.forEach(function(t){return u(t)}),l))}function Tu(t,e,n,r){return Mu(Au(t,e,n,r))}function Mu(t){if(t.symbolsMissingModule&&t.symbolsMissingModule.length)throw z(t.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 t}function Iu(t,e,n,r){var i=[],o=[],a=[],s=[],c=e.hasDecorators(r),l=!1;return r.endsWith(".d.ts")&&!c||e.getSymbolsOf(r).forEach(function(r){var c=e.resolveSymbol(r).metadata;if(c&&"error"!==c.__symbolic){var u,p,h,d,f=!1;if("class"===c.__symbolic)if(n.isDirective(r))f=!0,i.push(r);else if(n.isPipe(r))f=!0,o.push(r);else if(n.isNgModule(r)){var m=n.getNgModuleMetadata(r,!1);m&&(f=!0,s.push(m))}else n.isInjectable(r)&&(f=!0,a.push(r));f||(l=l||(u=t,p=c,h=!1,d=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;t.forEach(function(t){return L(t,n,e)})},t.prototype.visitStringMap=function(t,e){var n=this;Object.keys(t).forEach(function(r){return L(t[r],n,e)})},t.prototype.visitPrimitive=function(t,e){},t.prototype.visitOther=function(t,e){t instanceof _t&&!u.isSourceFile(t.filePath)&&(h=!0)},t}(),L(p,new d,null),h))}}),{fileName:r,directives:i,pipes:o,ngModules:s,injectables:a,exportsNonSourceFiles:l}}function Ru(t){var e=[],n=new Map,r=new Set;t.forEach(function(t){t.ngModules.forEach(function(t){e.push(t),t.declaredDirectives.forEach(function(e){return n.set(e.reference,t)}),t.declaredPipes.forEach(function(e){return n.set(e.reference,t)})}),t.directives.forEach(function(t){return r.add(t)}),t.pipes.forEach(function(t){return r.add(t)})});var i=[];return r.forEach(function(t){n.has(t)||i.push(t)}),{ngModules:e,ngModuleByPipeOrDirective:n,symbolsMissingModule:i,files:t}}function Du(t){return Mu(Ru(t))}var Nu="ngFormattedMessage";function Lu(t,e){if(void 0===e&&(e=0),!t)return"";var n=t.position?t.position.fileName+"("+(t.position.line+1)+","+(t.position.column+1)+")":"",r=n&&0!==e?" at "+n:"",i=""+(n&&0===e?n+": ":"")+t.message+r;return""+function t(e){if(e<=0)return"";if(e<6)return[""," ","  ","   ","    ","     "][e];var n=t(Math.floor(e/2));return n+n+(e%2==1?" ":"")}(e)+i+(t.next&&"\n"+Lu(t.next,e+2)||"")}function ju(t){var e=z(Lu(t)+".");return e[Nu]=!0,e.chain=t,e.position=t.position,e}var Fu="@angular/core",Vu=/^\$.*\$$/,Bu={__symbolic:"ignore"},Uu="useValue",Hu="provide",zu=new Set([Uu,"useFactory","data"]);function Wu(t){return t&&"ignore"==t.__symbolic}var Gu=function(){function t(t,e,n,r,i){void 0===n&&(n=[]),void 0===r&&(r=[]);var o=this;this.summaryResolver=t,this.symbolResolver=e,this.errorRecorder=i,this.annotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.staticCache=new Map,this.conversionMap=new Map,this.annotationForParentClassWithSummaryKind=new Map,this.initializeConversionMap(),n.forEach(function(t){return o._registerDecoratorOrConstructor(o.getStaticSymbol(t.filePath,t.name),t.ctor)}),r.forEach(function(t){return o._registerFunction(o.getStaticSymbol(t.filePath,t.name),t.fn)}),this.annotationForParentClassWithSummaryKind.set(Mt.Directive,[p,f]),this.annotationForParentClassWithSummaryKind.set(Mt.Pipe,[m]),this.annotationForParentClassWithSummaryKind.set(Mt.NgModule,[_]),this.annotationForParentClassWithSummaryKind.set(Mt.Injectable,[E,m,p,f,_])}return t.prototype.componentModuleUrl=function(t){var e=this.findSymbolDeclaration(t);return this.symbolResolver.getResourcePath(e)},t.prototype.resolveExternalReference=function(t,e){var n=this.symbolResolver.getSymbolByModule(t.moduleName,t.name,e),r=this.findSymbolDeclaration(n);return e||(this.symbolResolver.recordModuleNameForFileName(n.filePath,t.moduleName),this.symbolResolver.recordImportAs(r,n)),r},t.prototype.findDeclaration=function(t,e,n){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(t,e,n))},t.prototype.tryFindDeclaration=function(t,e){var n=this;return this.symbolResolver.ignoreErrorsFor(function(){return n.findDeclaration(t,e)})},t.prototype.findSymbolDeclaration=function(t){var e=this.symbolResolver.resolveSymbol(t);if(e){var n=e.metadata;if(n&&"resolved"===n.__symbolic&&(n=n.symbol),n instanceof _t)return this.findSymbolDeclaration(e.metadata)}return t},t.prototype.annotations=function(t){var e=this.annotationCache.get(t);if(!e){e=[];var n=this.getTypeMetadata(t),r=this.findParentType(t,n);if(r){var i=this.annotations(r);e.push.apply(e,i)}var o=[];if(n.decorators&&(o=this.simplify(t,n.decorators),e.push.apply(e,o)),r&&!this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(r.filePath)){var a=this.summaryResolver.resolveSummary(r);if(a&&a.type){var s=this.annotationForParentClassWithSummaryKind.get(a.type.summaryKind);s.some(function(t){return o.some(function(e){return t.isTypeOf(e)})})||this.reportError(ap(Yu("Class "+t.name+" in "+t.filePath+" extends from a "+Mt[a.type.summaryKind]+" in another compilation unit without duplicating the decorator",void 0,"Please add a "+s.map(function(t){return t.ngMetadataName}).join(" or ")+" decorator to the class"),t),t)}}this.annotationCache.set(t,e.filter(function(t){return!!t}))}return e},t.prototype.propMetadata=function(t){var e=this,n=this.propertyCache.get(t);if(!n){var r=this.getTypeMetadata(t);n={};var i=this.findParentType(t,r);if(i){var o=this.propMetadata(i);Object.keys(o).forEach(function(t){n[t]=o[t]})}var a=r.members||{};Object.keys(a).forEach(function(r){var i=a[r].find(function(t){return"property"==t.__symbolic||"method"==t.__symbolic}),o=[];n[r]&&o.push.apply(o,n[r]),n[r]=o,i&&i.decorators&&o.push.apply(o,e.simplify(t,i.decorators))}),this.propertyCache.set(t,n)}return n},t.prototype.parameters=function(t){var e=this;if(!(t instanceof _t))return this.reportError(new Error("parameters received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),[];try{var n=this.parameterCache.get(t);if(!n){var r=this.getTypeMetadata(t),i=this.findParentType(t,r),o=r?r.members:null,a=o?o.__ctor__:null;if(a){var s=a.find(function(t){return"constructor"==t.__symbolic}),c=s.parameters||[],l=this.simplify(t,s.parameterDecorators||[]);n=[],c.forEach(function(r,i){var o=[],a=e.trySimplify(t,r);a&&o.push(a);var s=l?l[i]:null;s&&o.push.apply(o,s),n.push(o)})}else i&&(n=this.parameters(i));n||(n=[]),this.parameterCache.set(t,n)}return n}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 i=this._methodNames(r);Object.keys(i).forEach(function(t){e[t]=i[t]})}var o=n.members||{};Object.keys(o).forEach(function(t){var n=o[t].some(function(t){return"method"==t.__symbolic});e[t]=e[t]||n}),this.methodCache.set(t,e)}return e},t.prototype._staticMembers=function(t){var e=this.staticCache.get(t);if(!e){var n=this.getTypeMetadata(t).statics||{};e=Object.keys(n),this.staticCache.set(t,e)}return e},t.prototype.findParentType=function(t,e){var n=this.trySimplify(t,e.extends);if(n instanceof _t)return n},t.prototype.hasLifecycleHook=function(t,e){t instanceof _t||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.guards=function(t){if(!(t instanceof _t))return this.reportError(new Error("guards received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),{};for(var e={},n=0,r=this._staticMembers(t);n<r.length;n++){var i=r[n];if(i.endsWith("TypeGuard")){var o=i.substr(0,i.length-"TypeGuard".length),a=void 0;o.endsWith("UseIf")?(o=i.substr(0,o.length-"UseIf".length),a="UseIf"):a=this.getStaticSymbol(t.filePath,t.name,[i]),e[o]=a}}return 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(Fu,"InjectionToken"),this.opaqueToken=this.findDeclaration(Fu,"OpaqueToken"),this.ROUTES=this.tryFindDeclaration("@angular/router","ROUTES"),this.ANALYZE_FOR_ENTRY_COMPONENTS=this.findDeclaration(Fu,"ANALYZE_FOR_ENTRY_COMPONENTS"),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"Host"),O),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"Injectable"),E),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"Self"),S),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"SkipSelf"),k),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"Inject"),i),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"Optional"),x),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"Attribute"),a),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"ContentChild"),c),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"ContentChildren"),s),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"ViewChild"),u),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"ViewChildren"),l),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"Input"),g),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"Output"),y),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"Pipe"),m),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"HostBinding"),v),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"HostListener"),b),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"Directive"),p),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"Component"),f),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"NgModule"),_),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"Host"),O),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"Self"),S),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"SkipSelf"),k),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"Optional"),x)},t.prototype.getStaticSymbol=function(t,e,n){return this.symbolResolver.getStaticSymbol(t,e,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){var n,r=this,i=rp.empty,o=new Map;try{n=function t(e,n,a,s){function c(t){var e=r.symbolResolver.resolveSymbol(t);return e?e.metadata:null}function l(n){return t(e,n,a,0)}function u(n,i){if(n===e)return t(n,i,a+1,s);try{return t(n,i,a+1,s)}catch(t){if(!Ku(t))throw t;var o=t.chain?"references '"+t.symbol.name+"'":function(t){if(t.summary)return t.summary;switch(t.message){case $u:if(t.context&&t.context.className)return"references non-exported class "+t.context.className;break;case Xu:return"is not initialized";case Qu:return"is a destructured variable";case Zu:return"could not be resolved";case Ju:return t.context&&t.context.name?"calls '"+t.context.name+"'":"calls a function";case tp:return t.context&&t.context.name?"references local variable "+t.context.name:"references a local variable"}return"contains the error"}(t),c={message:"'"+n.name+"' "+o,position:t.position,next:t.chain};r.error({message:t.message,advise:t.advise,context:t.context,chain:c,symbol:n},e)}}function p(n){if(np(n))return n;if(n instanceof Array){for(var h=[],d=0,f=n;d<f.length;d++){var m=f[d];if(m&&"spread"===m.__symbolic){var g=l(m.expression);if(Array.isArray(g)){for(var y=0,v=g;y<v.length;y++){var b=v[y];h.push(b)}continue}}var _=p(m);Wu(_)||h.push(_)}return h}if(n instanceof _t)return n===r.injectionToken||r.conversionMap.has(n)||s>0&&!n.members.length?n:null!=(T=c(w=n))?u(w,T):w;if(n){if(n.__symbolic){var w=void 0;switch(n.__symbolic){case"binop":var C=p(n.left);if(Wu(C))return C;var x=p(n.right);if(Wu(x))return x;switch(n.operator){case"&&":return C&&x;case"||":return C||x;case"|":return C|x;case"^":return C^x;case"&":return C&x;case"==":return C==x;case"!=":return C!=x;case"===":return C===x;case"!==":return C!==x;case"<":return C<x;case">":return C>x;case"<=":return C<=x;case">=":return C>=x;case"<<":return C<<x;case">>":return C>>x;case"+":return C+x;case"-":return C-x;case"*":return C*x;case"/":return C/x;case"%":return C%x}return null;case"if":return p(p(n.condition)?n.thenExpression:n.elseExpression);case"pre":var E=p(n.operand);if(Wu(E))return E;switch(n.operator){case"+":return E;case"-":return-E;case"!":return!E;case"~":return~E}return null;case"index":var S=l(n.expression),k=l(n.index);return S&&np(k)?S[k]:null;case"select":var O=n.member,P=e,A=p(n.expression);if(A instanceof _t){var T,M=A.members.concat(O);return null!=(T=c(P=r.getStaticSymbol(A.filePath,A.name,M)))?u(P,T):P}return A&&np(O)?u(P,A[O]):null;case"reference":var I=n.name,R=i.resolve(I);if(R!=rp.missing)return R;break;case"resolved":try{return p(n.symbol)}catch(t){throw Ku(t)&&null!=n.fileName&&null!=n.line&&null!=n.character&&(t.position={fileName:n.fileName,line:n.line,column:n.character}),t}case"class":case"function":return e;case"new":case"call":if((w=t(e,n.expression,a+1,0))instanceof _t){if(w===r.injectionToken||w===r.opaqueToken)return e;var D=n.arguments||[],N=r.conversionMap.get(w);if(N){var L=D.map(function(t){return u(e,t)}).map(function(t){return Wu(t)?void 0:t});return N(e,L)}return function(t,n,s,c){if(n&&"function"==n.__symbolic){o.get(t)&&r.error({message:"Recursion is not supported",summary:"called '"+t.name+"' recursively",value:n},t);try{var l=n.value;if(l&&(0!=a||"error"!=l.__symbolic)){var h=n.parameters,d=n.defaults;s=s.map(function(t){return u(e,t)}).map(function(t){return Wu(t)?void 0:t}),d&&d.length>s.length&&s.push.apply(s,d.slice(s.length).map(function(t){return p(t)})),o.set(t,!0);for(var f=rp.build(),m=0;m<h.length;m++)f.define(h[m],s[m]);var g,y=i;try{i=f.done(),g=u(t,l)}finally{i=y}return g}}finally{o.delete(t)}}if(0===a)return Bu;var v=void 0;if(c&&"resolved"==c.__symbolic){var b=c.line,_=c.character,w=c.fileName;null!=w&&null!=b&&null!=_&&(v={fileName:w,line:b,column:_})}r.error({message:Ju,context:t,value:n,position:v},e)}(w,c(w),D,n.expression)}return Bu;case"error":var j=n.message;return null!=n.line?r.error({message:j,context:n.context,value:n,position:{fileName:n.fileName,line:n.line,column:n.character}},e):r.error({message:j,context:n.context},e),Bu;case"ignore":return n}return null}return function(t,e){if(!t)return{};var n={};return Object.keys(t).forEach(function(r){var i=e(t[r],r);Wu(i)||(Vu.test(r)?Object.defineProperty(n,r,{enumerable:!1,configurable:!0,value:i}):n[r]=i)}),n}(n,function(i,o){if(zu.has(o)){if(o===Uu&&Hu in n){var c=p(n.provide);if(c===r.ROUTES||c==r.ANALYZE_FOR_ENTRY_COMPONENTS)return p(i)}return t(e,i,a,s+1)}return p(i)})}return Bu}return p(n)}(t,e,0,0)}catch(e){if(!this.errorRecorder)throw ap(e,t);this.reportError(e,t)}if(!Wu(n))return n},t.prototype.getTypeMetadata=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata?e.metadata:{__symbolic:"class"}},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(ap(t,e),e&&e.filePath||n)},t.prototype.error=function(t,e){var n=t.message,r=t.summary,i=t.advise,o=t.position,a=t.context,s=(t.value,t.symbol),c=t.chain;this.reportError(Yu(n,r,i,o,s,a,c),e)},t}(),qu="ngMetadataError";function Yu(t,e,n,r,i,o,a){var s=z(t);return s[qu]=!0,n&&(s.advise=n),r&&(s.position=r),e&&(s.summary=e),o&&(s.context=o),a&&(s.chain=a),i&&(s.symbol=i),s}function Ku(t){return!!t[qu]}var $u="Reference to non-exported class",Xu="Variable not initialized",Qu="Destructuring not supported",Zu="Could not resolve type",Ju="Function call not supported",tp="Reference to a local symbol",ep="Lambda not supported";function np(t){return null===t||"function"!=typeof t&&"object"!=typeof t}var rp=function(){function t(){}return 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 ip(e):t.empty}}},t.missing={},t.empty={resolve:function(e){return t.missing}},t}(),ip=function(t){function e(e){var n=t.call(this)||this;return n.bindings=e,n}return n(e,t),e.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):rp.missing},e}(rp);function op(t,e){return{message:""+function(t,e){switch(t){case $u:if(e&&e.className)return"References to a non-exported class are not supported in decorators but "+e.className+" was referenced.";break;case Xu:return"Only initialized variables and constants can be referenced in decorators because the value of this variable is needed by the template compiler";case Qu:return"Referencing an exported destructured variable or constant is not supported in decorators and this value is needed by the template compiler";case Zu:if(e&&e.typeName)return"Could not resolve type "+e.typeName;break;case Ju:return e&&e.name?"Function calls are not supported in decorators but '"+e.name+"' was called":"Function calls are not supported in decorators";case tp:if(e&&e.name)return"Reference to a local (non-exported) symbols are not supported in decorators but '"+e.name+"' was referenced";break;case ep:return"Function expressions are not supported in decorators"}return t}(t.message,t.context)+(t.symbol?" in '"+t.symbol.name+"'":""),position:t.position,next:t.next?op(t.next,e):e?{message:e}:void 0}}function ap(t,e){if(Ku(t)){var n=t.position;return ju(op({message:"Error during template compile of '"+e.name+"'",position:n,next:{message:t.message,next:t.chain,context:t.context,symbol:t.symbol}},t.advise||function(t,e){switch(t){case $u:if(e&&e.className)return"Consider exporting '"+e.className+"'";break;case Qu:return"Consider simplifying to avoid destructuring";case tp:if(e&&e.name)return"Consider exporting '"+e.name+"'";break;case ep:return"Consider changing the function expression into an exported function"}}(t.message,t.context)))}return t}var sp=function(){function t(t,e){this.host=t,this.staticSymbolCache=e,this.summaryCache=new Map,this.loadedFilePaths=new Map,this.importAs=new Map,this.knownFileNameToModuleNames=new Map}return t.prototype.isLibraryFile=function(t){return!this.host.isSourceFile(Po(t))},t.prototype.toSummaryFileName=function(t,e){return this.host.toSummaryFileName(t,e)},t.prototype.fromSummaryFileName=function(t,e){return this.host.fromSummaryFileName(t,e)},t.prototype.resolveSummary=function(t){var e=t.members.length?this.staticSymbolCache.get(t.filePath,t.name):t,n=this.summaryCache.get(e);return n||(this._loadSummaryFile(t.filePath),n=this.summaryCache.get(t)),e===t&&n||null},t.prototype.getSymbolsOf=function(t){return this._loadSummaryFile(t)?Array.from(this.summaryCache.keys()).filter(function(e){return e.filePath===t}):null},t.prototype.getImportAs=function(t){return t.assertNoMembers(),this.importAs.get(t)},t.prototype.getKnownModuleName=function(t){return this.knownFileNameToModuleNames.get(t)||null},t.prototype.addSummary=function(t){this.summaryCache.set(t.symbol,t)},t.prototype._loadSummaryFile=function(t){var e=this,n=this.loadedFilePaths.get(t);if(null!=n)return n;var r,i,o,a=null;if(this.isLibraryFile(t)){var s=Mo(t);try{a=this.host.loadSummary(s)}catch(t){throw console.error("Error loading summary file "+s),t}}if(n=null!=a,this.loadedFilePaths.set(t,n),a){var c=(r=this.staticSymbolCache,i=t,o=a,new Cu(r,this).deserialize(i,o)),l=c.moduleName,u=c.summaries,p=c.importAs;u.forEach(function(t){return e.summaryCache.set(t.symbol,t)}),l&&this.knownFileNameToModuleNames.set(t,l),p.forEach(function(t){e.importAs.set(t.symbol,t.importAs)})}return n},t}();function cp(t){return{resolve:function(e,n){var r=t.resourceNameToFileName(n,e);if(!r)throw z("Couldn't resolve resource "+n+" from "+e);return r}}}var lp=function(){return function(){}}(),up=function(){function t(){this._summaries=new Map}return t.prototype.isLibraryFile=function(){return!1},t.prototype.toSummaryFileName=function(t){return t},t.prototype.fromSummaryFileName=function(t){return t},t.prototype.resolveSummary=function(t){return this._summaries.get(t)||null},t.prototype.getSymbolsOf=function(){return[]},t.prototype.getImportAs=function(t){return t},t.prototype.getKnownModuleName=function(t){return null},t.prototype.addSummary=function(t){this._summaries.set(t.symbol,t)},t}();function pp(t,e,n,r,i){for(var o=r.createChildWihtLocalVars(),a=0;a<t.length;a++)o.vars.set(t[a],e[a]);var s=i.visitAllStatements(n,o);return s?s.value:null}var hp=function(){function t(t,e,n,r){this.parent=t,this.instance=e,this.className=n,this.vars=r,this.exports=[]}return t.prototype.createChildWihtLocalVars=function(){return new t(this,this.instance,this.className,new Map)},t}(),dp=function(){return function(t){this.value=t}}();var fp=function(){function t(t){this.reflector=t}return t.prototype.debugAst=function(t){return Qs(t)},t.prototype.visitDeclareVarStmt=function(t,e){return e.vars.set(t.name,t.value.visitExpression(this,e)),t.hasModifier(Ua.Exported)&&e.exports.push(t.name),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 fa.Super:return e.instance.__proto__;case fa.This:return e.instance;case fa.CatchError:n=gp;break;case fa.CatchStack:n=yp;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),i=t.value.visitExpression(this,e);return n[r]=i,i},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),i=this.visitAllExpressions(t.args,e);if(null!=t.builtin)switch(t.builtin){case ba.ConcatArray:n=r.concat.apply(r,i);break;case ba.SubscribeObservable:n=r.subscribe({next:i[0]});break;case ba.Bind:n=r.bind.apply(r,i);break;default:throw new Error("Unknown builtin method "+t.builtin)}else n=r[t.name].apply(r,i);return n},t.prototype.visitInvokeFunctionExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.fn;return r instanceof ma&&r.builtin===fa.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 dp(t.value.visitExpression(this,e))},t.prototype.visitDeclareClassStmt=function(t,e){var n=function(t,e,n){var r={};t.getters.forEach(function(i){r[i.name]={configurable:!1,get:function(){var r=new hp(e,this,t.name,e.vars);return pp([],[],i.body,r,n)}}}),t.methods.forEach(function(i){var o=i.params.map(function(t){return t.name});r[i.name]={writable:!1,configurable:!1,value:function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];var s=new hp(e,this,t.name,e.vars);return pp(o,r,i.body,s,n)}}});var i=t.constructorMethod.params.map(function(t){return t.name}),o=function(){for(var r=this,o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=new hp(e,this,t.name,e.vars);t.fields.forEach(function(t){r[t.name]=void 0}),pp(i,o,t.constructorMethod.body,s,n)},a=t.parent?t.parent.visitExpression(n,e):Object;return o.prototype=Object.create(a.prototype,r),o}(t,e,this);return e.vars.set(t.name,n),t.hasModifier(Ua.Exported)&&e.exports.push(t.name),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(gp,r),n.vars.set(yp,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 this.reflector.resolveExternalReference(t.value)},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.visitAssertNotNullExpr=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 mp(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,mp(n,t.statements,e,this)),t.hasModifier(Ua.Exported)&&e.exports.push(t.name),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var n=this,r=function(){return t.lhs.visitExpression(n,e)},i=function(){return t.rhs.visitExpression(n,e)};switch(t.operator){case ua.Equals:return r()==i();case ua.Identical:return r()===i();case ua.NotEquals:return r()!=i();case ua.NotIdentical:return r()!==i();case ua.And:return r()&&i();case ua.Or:return r()||i();case ua.Plus:return r()+i();case ua.Minus:return r()-i();case ua.Divide:return r()/i();case ua.Multiply:return r()*i();case ua.Modulo:return r()%i();case ua.Lower:return r()<i();case ua.LowerEquals:return r()<=i();case ua.Bigger:return r()>i();case ua.BiggerEquals:return r()>=i();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 dp)return r}return null},t}();function mp(t,e,n,r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return pp(t,i,e,n,r)}}var gp="error",yp="stack";function vp(t,e,n,r){var i=new bp(n),o=Ys.createRoot();return i.visitAllStatements(e,o),i.createReturnStmt(o),function(t,e,n,r){var i=e.toSource()+"\n//# sourceURL="+t,o=[],a=[];for(var s in n)o.push(s),a.push(n[s]);if(r){var c=(new(Function.bind.apply(Function,[void 0].concat(o.concat("return null;"))))).toString(),l=c.slice(0,c.indexOf("return null;")).split("\n").length-1;i+="\n"+e.toSourceMapGenerator(t,l).toJsComment()}return(new(Function.bind.apply(Function,[void 0].concat(o.concat(i))))).apply(void 0,a)}(t,o,i.getArgs(),r)}var bp=function(t){function e(e){var n=t.call(this)||this;return n.reflector=e,n._evalArgNames=[],n._evalArgValues=[],n._evalExportedVars=[],n}return n(e,t),e.prototype.createReturnStmt=function(t){new qa(new ja(this._evalExportedVars.map(function(t){return new La(t,ls(t),!1)}))).visitStatement(this,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=this.reflector.resolveExternalReference(t.value),r=this._evalArgValues.indexOf(n);if(-1===r){r=this._evalArgValues.length,this._evalArgValues.push(n);var i=St({reference:n})||"val";this._evalArgNames.push("jit_"+i+"_"+r)}return e.print(t,this._evalArgNames[r]),null},e.prototype.visitDeclareVarStmt=function(e,n){return e.hasModifier(Ua.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareVarStmt.call(this,e,n)},e.prototype.visitDeclareFunctionStmt=function(e,n){return e.hasModifier(Ua.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareFunctionStmt.call(this,e,n)},e.prototype.visitDeclareClassStmt=function(e,n){return e.hasModifier(Ua.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareClassStmt.call(this,e,n)},e}(function(t){function e(){return t.call(this,!1)||this}return n(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===fa.This)n.print(e,"self");else{if(e.builtin===fa.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 ma&&r.builtin===fa.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 ("+Ws.name+") {"),e.incIndent();var n=[Gs.set(Ws.prop("stack")).toDeclStmt(null,[Ua.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 ba.ConcatArray:e="concat";break;case ba.SubscribeObservable:e="subscribe";break;case ba.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e}(Ks)),_p=function(){function t(t,e,n,r,i,o,a,s,c,l){this._metadataResolver=t,this._templateParser=e,this._styleCompiler=n,this._viewCompiler=r,this._ngModuleCompiler=i,this._summaryResolver=o,this._reflector=a,this._compilerConfig=s,this._console=c,this.getExtraNgModuleProviders=l,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._sharedStylesheetCount=0,this._addedAotSummaries=new Set}return t.prototype.compileModuleSync=function(t){return B(this._compileModuleAndComponents(t,!0))},t.prototype.compileModuleAsync=function(t){return Promise.resolve(this._compileModuleAndComponents(t,!1))},t.prototype.compileModuleAndAllComponentsSync=function(t){return B(this._compileModuleAndAllComponents(t,!0))},t.prototype.compileModuleAndAllComponentsAsync=function(t){return Promise.resolve(this._compileModuleAndAllComponents(t,!1))},t.prototype.getComponentFactory=function(t){return this._metadataResolver.getDirectiveSummary(t).componentFactory},t.prototype.loadAotSummaries=function(t){this.clearCache(),this._addAotSummaries(t)},t.prototype._addAotSummaries=function(t){if(!this._addedAotSummaries.has(t)){this._addedAotSummaries.add(t);for(var e=t(),n=0;n<e.length;n++){var r=e[n];if("function"==typeof r)this._addAotSummaries(r);else{var i=r;this._summaryResolver.addSummary({symbol:i.type.reference,metadata:null,type:i})}}}},t.prototype.hasAotSummary=function(t){return!!this._summaryResolver.resolveSummary(t)},t.prototype._filterJitIdentifiers=function(t){var e=this;return t.map(function(t){return t.reference}).filter(function(t){return!e.hasAotSummary(t)})},t.prototype._compileModuleAndComponents=function(t,e){var n=this;return U(this._loadModules(t,e),function(){return n._compileComponents(t,null),n._compileModule(t)})},t.prototype._compileModuleAndAllComponents=function(t,e){var n=this;return U(this._loadModules(t,e),function(){var e=[];return n._compileComponents(t,e),{ngModuleFactory:n._compileModule(t),componentFactories:e}})},t.prototype._loadModules=function(t,e){var n=this,r=[],i=this._metadataResolver.getNgModuleMetadata(t);return this._filterJitIdentifiers(i.transitiveModule.modules).forEach(function(t){var i=n._metadataResolver.getNgModuleMetadata(t);n._filterJitIdentifiers(i.declaredDirectives).forEach(function(t){var o=n._metadataResolver.loadDirectiveMetadata(i.type.reference,t,e);o&&r.push(o)}),n._filterJitIdentifiers(i.declaredPipes).forEach(function(t){return n._metadataResolver.getOrLoadPipeMetadata(t)})}),H(r)},t.prototype._compileModule=function(t){var e=this._compiledNgModuleCache.get(t);if(!e){var n=this._metadataResolver.getNgModuleMetadata(t),r=this.getExtraNgModuleProviders(n.type.reference),i=xp(),o=this._ngModuleCompiler.compile(i,n,r);e=this._interpretOrJit(qt(n),i.statements)[o.ngModuleFactoryVar],this._compiledNgModuleCache.set(n.type.reference,e)}return e},t.prototype._compileComponents=function(t,e){var n=this,r=this._metadataResolver.getNgModuleMetadata(t),i=new Map,o=new Set,a=this._filterJitIdentifiers(r.transitiveModule.modules);a.forEach(function(t){var r=n._metadataResolver.getNgModuleMetadata(t);n._filterJitIdentifiers(r.declaredDirectives).forEach(function(t){i.set(t,r);var a=n._metadataResolver.getDirectiveMetadata(t);if(a.isComponent&&(o.add(n._createCompiledTemplate(a,r)),e)){var s=n._createCompiledHostTemplate(a.type.reference,r);o.add(s),e.push(a.componentFactory)}})}),a.forEach(function(t){var e=n._metadataResolver.getNgModuleMetadata(t);n._filterJitIdentifiers(e.declaredDirectives).forEach(function(t){var e=n._metadataResolver.getDirectiveMetadata(t);e.isComponent&&e.entryComponents.forEach(function(t){var e=i.get(t.componentType);o.add(n._createCompiledHostTemplate(t.componentType,e))})}),e.entryComponents.forEach(function(t){if(!n.hasAotSummary(t.componentType.reference)){var e=i.get(t.componentType);o.add(n._createCompiledHostTemplate(t.componentType,e))}})}),o.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,e){if(!e)throw new Error("Component "+$(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 r=this._metadataResolver.getDirectiveMetadata(t);Cp(r);var i=this._metadataResolver.getHostComponentMetadata(r,r.componentFactory.viewDefFactory);n=new wp(!0,r.type,i,e,[r.type]),this._compiledHostTemplateCache.set(t,n)}return n},t.prototype._createCompiledTemplate=function(t,e){var n=this._compiledTemplateCache.get(t.type.reference);return n||(Cp(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,i=xp(),o=this._styleCompiler.compileComponent(i,n);n.template.externalStylesheets.forEach(function(t){var i=e._styleCompiler.compileStyles(xp(),n,t);r.set(t.moduleUrl,i)}),this._resolveStylesCompileResult(o,r);t.ngModule.transitiveModule.pipes.map(function(t){return e._metadataResolver.getPipeSummary(t.reference)});var a=this._parseTemplate(n,t.ngModule,t.directives),s=a.template,c=a.pipes,l=this._viewCompiler.compileComponent(i,n,s,ls(o.stylesVar),c),u=this._interpretOrJit(Yt(t.ngModule.type,t.compMeta),i.statements),p=u[l.viewClassVar],h=u[l.rendererTypeVar];t.compiled(p,h)}},t.prototype._parseTemplate=function(t,e,n){var r=this,i=t.template.preserveWhitespaces,o=n.map(function(t){return r._metadataResolver.getDirectiveSummary(t.reference)}),a=e.transitiveModule.pipes.map(function(t){return r._metadataResolver.getPipeSummary(t.reference)});return this._templateParser.parse(t,t.template.htmlAst,o,a,e.schemas,Wt(e.type,t,t.template),i)},t.prototype._resolveStylesCompileResult=function(t,e){var n=this;t.dependencies.forEach(function(t,r){var i=e.get(t.moduleUrl),o=n._resolveAndEvalStylesCompileResult(i,e);t.setValue(o)})},t.prototype._resolveAndEvalStylesCompileResult=function(t,e){return this._resolveStylesCompileResult(t,e),this._interpretOrJit(Gt(t.meta,this._sharedStylesheetCount++),t.outputCtx.statements)[t.stylesVar]},t.prototype._interpretOrJit=function(t,e){return this._compilerConfig.useJit?vp(t,e,this._reflector,this._compilerConfig.jitDevMode):function(t,e){var n=new hp(null,null,null,new Map);new fp(e).visitAllStatements(t,n);var r={};return n.exports.forEach(function(t){r[t]=n.vars.get(t)}),r}(e,this._reflector)},t}(),wp=function(){function t(t,e,n,r,i){this.isHost=t,this.compType=e,this.compMeta=n,this.ngModule=r,this.directives=i,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}();function Cp(t){if(!t.isComponent)throw new Error("Could not compile '"+St(t.type)+"' because it is not a component.")}function xp(){return{statements:[],genFilePath:"",importExpr:function(t){return us({name:St(t),moduleName:null,runtime:t})}}}var Ep=function(){return function(){}}();var Sp=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=function(t,e){var n=Pp(encodeURI(e)),r=Pp(t);{if(null!=n[Op.Scheme])return Ap(n);n[Op.Scheme]=r[Op.Scheme]}for(var i=Op.Scheme;i<=Op.Port;i++)null==n[i]&&(n[i]=r[i]);if("/"==n[Op.Path][0])return Ap(n);var o=r[Op.Path];null==o&&(o="/");var a=o.lastIndexOf("/");return o=o.substring(0,a+1)+n[Op.Path],n[Op.Path]=o,Ap(n)}(t,n));var r=Pp(n),i=this._packagePrefix;if(null!=i&&null!=r&&"package"==r[Op.Scheme]){var o=r[Op.Path];return(i=i.replace(/\/+$/,""))+"/"+(o=o.replace(/^\/+/,""))}return n},t}();var kp=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),Op={Scheme:1,UserInfo:2,Domain:3,Port:4,Path:5,QueryData:6,Fragment:7};function Pp(t){return t.match(kp)}function Ap(t){var e,n,r,i,o,a,s,c,l=t[Op.Path];return l=null==l?"":function(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",n="/"===t[t.length-1]?"/":"",r=t.split("/"),i=[],o=0,a=0;a<r.length;a++){var s=r[a];switch(s){case"":case".":break;case"..":i.length>0?i.pop():o++;break;default:i.push(s)}}if(""==e){for(;o-- >0;)i.unshift("..");0===i.length&&i.push(".")}return e+i.join("/")+n}(l),t[Op.Path]=l,e=t[Op.Scheme],n=t[Op.UserInfo],r=t[Op.Domain],i=t[Op.Port],o=l,a=t[Op.QueryData],s=t[Op.Fragment],c=[],null!=e&&c.push(e+":"),null!=r&&(c.push("//"),null!=n&&c.push(n+"@"),c.push(r),null!=i&&c.push(":"+i)),null!=o&&c.push(o),null!=a&&c.push("?"+a),null!=s&&c.push("#"+s),c.join("")}Op[Op.Scheme]="Scheme",Op[Op.UserInfo]="UserInfo",Op[Op.Domain]="Domain",Op[Op.Port]="Port",Op[Op.Path]="Path",Op[Op.QueryData]="QueryData",Op[Op.Fragment]="Fragment";var Tp=function(){function t(){}return t.prototype.get=function(t){return""},t}(),Mp=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=Tu(t,this.host,this.staticSymbolResolver,this.metadataResolver),r=n.files,i=n.ngModules;return Promise.all(i.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 i=r.template.template,o=ae.fromArray(r.template.interpolation);t.push.apply(t,e.messageBundle.updateFromTemplate(i,n.fileName,o))})}),t.length)throw new Error(t.map(function(t){return t.toString()}).join("\n"));return e.messageBundle})},t.create=function(e,n){var r=new bo,i=cp(e),o=new wt,a=new sp(e,o),s=new gu(e,o,a),c=new Gu(a,s),l=new vt({defaultEncapsulation:h.Emulated,useJit:!1}),u=new De({get:function(t){return e.loadResource(t)}},i,r,l),p=new uc,d=new $o(l,r,new Ls(c),new je(c),new tc(c),a,p,u,console,o,c),f=new lu(r,[],{},n);return{extractor:new t(e,s,f,d),staticReflector:c}},t}();t.core=I,t.CompilerConfig=vt,t.preserveWhitespacesDefault=bt,t.isLoweredSymbol=No,t.createLoweredSymbol=function(t){return"ɵ"+t},t.Identifiers=jo,t.JitCompiler=_p,t.DirectiveResolver=je,t.PipeResolver=tc,t.NgModuleResolver=Ls,t.DEFAULT_INTERPOLATION_CONFIG=se,t.InterpolationConfig=ae,t.NgModuleCompiler=Ns,t.AssertNotNull=Pa,t.BinaryOperator=ua,t.BinaryOperatorExpr=Ia,t.BuiltinMethod=ba,t.BuiltinVar=fa,t.CastExpr=Aa,t.ClassStmt=Xa,t.CommaExpr=Fa,t.CommentStmt=Za,t.ConditionalExpr=ka,t.DeclareFunctionStmt=Wa,t.DeclareVarStmt=za,t.ExpressionStatement=Ga,t.ExternalExpr=Ea,t.ExternalReference=Sa,t.FunctionExpr=Ma,t.IfStmt=Qa,t.InstantiateExpr=Ca,t.InvokeFunctionExpr=wa,t.InvokeMethodExpr=_a,t.LiteralArrayExpr=Na,t.LiteralExpr=xa,t.LiteralMapExpr=ja,t.NotExpr=Oa,t.ReadKeyExpr=Da,t.ReadPropExpr=Ra,t.ReadVarExpr=ma,t.ReturnStatement=qa,t.ThrowStmt=ts,t.TryCatchStmt=Ja,t.WriteKeyExpr=ya,t.WritePropExpr=va,t.WriteVarExpr=ga,t.StmtModifier=Ua,t.Statement=Ha,t.collectExternalReferences=function(t){var e=new os;return e.visitAllStatements(t,null),e.externalReferences},t.EmitterVisitorContext=Ys,t.ViewCompiler=Xl,t.getParseErrors=function(t){return t[G]||[]},t.isSyntaxError=function(t){return t[W]},t.syntaxError=z,t.Version=Z,t.VERSION=J,t.TextAst=tt,t.BoundTextAst=et,t.AttrAst=nt,t.BoundElementPropertyAst=rt,t.BoundEventAst=it,t.ReferenceAst=ot,t.VariableAst=at,t.ElementAst=st,t.EmbeddedTemplateAst=ct,t.BoundDirectivePropertyAst=lt,t.DirectiveAst=ut,t.ProviderAst=pt,t.ProviderAstType=ht,t.NgContentAst=dt,t.PropertyBindingType=ft,t.NullTemplateVisitor=mt,t.RecursiveTemplateAstVisitor=gt,t.templateVisitAll=yt,t.identifierName=St,t.identifierModuleUrl=kt,t.viewClassName=Ot,t.rendererTypeName=Pt,t.hostViewClassName=At,t.componentFactoryName=Tt,t.CompileSummaryKind=Mt,t.tokenName=It,t.tokenReference=Rt,t.CompileStylesheetMetadata=Dt,t.CompileTemplateMetadata=Nt,t.CompileDirectiveMetadata=Lt,t.CompilePipeMetadata=jt,t.CompileNgModuleMetadata=Ft,t.TransitiveCompileNgModuleMetadata=Vt,t.ProviderMeta=Ut,t.flatten=Ht,t.templateSourceUrl=Wt,t.sharedStylesheetJitUrl=Gt,t.ngModuleJitUrl=qt,t.templateJitUrl=Yt,t.createAotUrlResolver=cp,t.createAotCompiler=function(t,e,n){var r=e.translations||"",i=cp(t),o=new wt,a=new sp(t,o),s=new gu(t,o,a),c=new Gu(a,s,[],[],n),l=new Co(new bo,r,e.i18nFormat,e.missingTranslation,console),u=new vt({defaultEncapsulation:h.Emulated,useJit:!1,enableLegacyTemplate:!0===e.enableLegacyTemplate,missingTranslation:e.missingTranslation,preserveWhitespaces:e.preserveWhitespaces,strictInjectionParameters:e.strictInjectionParameters}),p=new De({get:function(e){return t.loadResource(e)}},i,l,u),d=new mr(new kn),f=new uc,m=new ml(u,c,d,f,l,console,[]),g=new $o(u,l,new Ls(c),new je(c),new tc(c),a,f,p,console,o,c,n),y=new Xl(c),v=new zl(e,c);return{compiler:new Su(u,e,t,c,g,m,new Bc(i),y,v,new Ns(c),new Zs,a,s),reflector:c}},t.AotCompiler=Su,t.analyzeNgModules=Au,t.analyzeAndValidateNgModules=Tu,t.analyzeFile=Iu,t.mergeAnalyzedFiles=Ru,t.GeneratedFile=pu,t.toTypeScript=function(t,e){if(void 0===e&&(e=""),!t.stmts)throw new Error("Illegal state: No stmts present on GeneratedFile "+t.genFileUrl);return(new Zs).emitStatements(t.genFileUrl,t.stmts,e)},t.formattedError=ju,t.isFormattedError=function(t){return!!t[Nu]},t.StaticReflector=Gu,t.StaticSymbol=_t,t.StaticSymbolCache=wt,t.ResolvedStaticSymbol=mu,t.StaticSymbolResolver=gu,t.unescapeIdentifier=yu,t.unwrapResolvedMetadata=vu,t.AotSummaryResolver=sp,t.AstPath=Kt,t.SummaryResolver=lp,t.JitSummaryResolver=up,t.CompileReflector=Ep,t.createUrlResolverWithoutPackagePrefix=function(){return new Sp},t.createOfflineCompileUrlResolver=function(){return new Sp(".")},t.UrlResolver=Sp,t.getUrlScheme=function(t){var e=Pp(t);return e&&e[Op.Scheme]||""},t.ResourceLoader=Tp,t.ElementSchemaRegistry=rc,t.Extractor=Mp,t.I18NHtmlParser=Co,t.MessageBundle=lu,t.Serializer=Ui,t.Xliff=Ji,t.Xliff2=ro,t.Xmb=co,t.Xtb=go,t.DirectiveNormalizer=De,t.ParserError=jn,t.ParseSpan=Fn,t.AST=Vn,t.Quote=Bn,t.EmptyExpr=Un,t.ImplicitReceiver=Hn,t.Chain=zn,t.Conditional=Wn,t.PropertyRead=Gn,t.PropertyWrite=qn,t.SafePropertyRead=Yn,t.KeyedRead=Kn,t.KeyedWrite=$n,t.BindingPipe=Xn,t.LiteralPrimitive=Qn,t.LiteralArray=Zn,t.LiteralMap=Jn,t.Interpolation=tr,t.Binary=er,t.PrefixNot=nr,t.NonNullAssert=rr,t.MethodCall=ir,t.SafeMethodCall=or,t.FunctionCall=ar,t.ASTWithSource=sr,t.TemplateBinding=cr,t.NullAstVisitor=lr,t.RecursiveAstVisitor=ur,t.AstTransformer=pr,t.visitAstChildren=function(t,e,n){function r(t){e.visit&&e.visit(t,n)||t.visit(e,n)}function i(t){t.forEach(r)}t.visit({visitBinary:function(t){r(t.left),r(t.right)},visitChain:function(t){i(t.expressions)},visitConditional:function(t){r(t.condition),r(t.trueExp),r(t.falseExp)},visitFunctionCall:function(t){t.target&&r(t.target),i(t.args)},visitImplicitReceiver:function(t){},visitInterpolation:function(t){i(t.expressions)},visitKeyedRead:function(t){r(t.obj),r(t.key)},visitKeyedWrite:function(t){r(t.obj),r(t.key),r(t.obj)},visitLiteralArray:function(t){i(t.expressions)},visitLiteralMap:function(t){},visitLiteralPrimitive:function(t){},visitMethodCall:function(t){r(t.receiver),i(t.args)},visitPipe:function(t){r(t.exp),i(t.args)},visitPrefixNot:function(t){r(t.expression)},visitNonNullAssert:function(t){r(t.expression)},visitPropertyRead:function(t){r(t.receiver)},visitPropertyWrite:function(t){r(t.receiver),r(t.value)},visitQuote:function(t){},visitSafeMethodCall:function(t){r(t.receiver),i(t.args)},visitSafePropertyRead:function(t){r(t.receiver)}})},t.TokenType=En,t.Lexer=kn,t.Token=On,t.EOF=Tn,t.isIdentifier=Rn,t.isQuote=Nn,t.SplitInterpolation=hr,t.TemplateBindingParseResult=dr,t.Parser=mr,t._ParseAST=gr,t.ERROR_COMPONENT_TYPE=Ko,t.CompileMetadataResolver=$o,t.Text=$t,t.Expansion=Xt,t.ExpansionCase=Qt,t.Attribute=Zt,t.Element=Jt,t.Comment=te,t.visitAll=ee,t.RecursiveVisitor=ne,t.findNode=function(t,e){var r=[];return ee(new(function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return n(i,t),i.prototype.visit=function(t,n){var i=function t(e){var n=e.sourceSpan.start.offset,r=e.sourceSpan.end.offset;return e instanceof Jt&&(e.endSourceSpan?r=e.endSourceSpan.end.offset:e.children&&e.children.length&&(r=t(e.children[e.children.length-1]).end)),{start:n,end:r}}(t);if(!(i.start<=e&&e<i.end))return!0;r.push(t)},i}(ne)),t),new Kt(r,e)},t.ParseTreeResult=Br,t.TreeError=Vr,t.HtmlParser=bo,t.HtmlTagDefinition=vi,t.getHtmlTagDefinition=wi,t.TagContentType=de,t.splitNsName=fe,t.isNgContainer=me,t.isNgContent=ge,t.isNgTemplate=ye,t.getNsPrefix=ve,t.mergeNsAndName=be,t.NAMED_ENTITIES=_e,t.NGSP_UNICODE=we,t.debugOutputAstAsTypeScript=Qs,t.TypeScriptEmitter=Zs,t.ParseLocation=vr,t.ParseSourceFile=br,t.ParseSourceSpan=_r,t.ParseErrorLevel=wr,t.ParseError=Cr,t.typeSourceSpan=xr,t.DomElementSchemaRegistry=uc,t.CssSelector=Wo,t.SelectorMatcher=Go,t.SelectorListContext=qo,t.SelectorContext=Yo,t.StylesCompileDependency=Fc,t.CompiledStylesheet=Vc,t.StyleCompiler=Bc,t.TemplateParseError=dl,t.TemplateParseResult=fl,t.TemplateParser=ml,t.splitClasses=bl,t.createElementCssSelector=wl,t.removeSummaryDuplicates=Sl,Object.defineProperty(t,"__esModule",{value:!0})}("object"==typeof n&&void 0!==e?n:(r.ng=r.ng||{},r.ng.compiler={}))},{}],57:[function(t,e,n){(function(r){var i,o;i=this,o=function(t,e,n,i,o){"use strict";var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function s(t,e){function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var c=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},l=function(){function t(t){this._desc=t,this.ngMetadataName="InjectionToken"}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),u="__annotations__",p="__paramaters__",h="__prop__metadata__";function d(t,e,n,r){var i=f(e);function o(t){if(this instanceof o)return i.call(this,t),this;var e=new o(t),n=function(t){return(t.hasOwnProperty(u)?t[u]:Object.defineProperty(t,u,{value:[]})[u]).push(e),t};return r&&r(n),n}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o}function f(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(t){var r=t.apply(void 0,e);for(var i in r)this[i]=r[i]}}}function m(t,e,n){var r=f(e);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof i)return r.apply(this,t),this;var n,o=new((n=i).bind.apply(n,[void 0].concat(t)));return a.annotation=o,a;function a(t,e,n){for(var r=t.hasOwnProperty(p)?t[p]:Object.defineProperty(t,p,{value:[]})[p];r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(o),t}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i}function g(t,e,n){var r=f(e);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof i)return r.apply(this,t),this;var n,o=new((n=i).bind.apply(n,[void 0].concat(t)));return function(t,e){var n=t.constructor,r=n.hasOwnProperty(h)?n[h]:Object.defineProperty(n,h,{value:{}})[h];r[e]=r.hasOwnProperty(e)&&r[e]||[],r[e].unshift(o)}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i}var y=new l("AnalyzeForEntryComponents"),v=m("Attribute",function(t){return{attributeName:t}}),b=function(){return function(){}}(),_=g("ContentChildren",function(t,e){return void 0===e&&(e={}),c({selector:t,first:!1,isViewQuery:!1,descendants:!1},e)},b),w=g("ContentChild",function(t,e){return void 0===e&&(e={}),c({selector:t,first:!0,isViewQuery:!1,descendants:!0},e)},b),C=g("ViewChildren",function(t,e){return void 0===e&&(e={}),c({selector:t,first:!1,isViewQuery:!0,descendants:!0},e)},b),x=g("ViewChild",function(t,e){return c({selector:t,first:!0,isViewQuery:!0,descendants:!0},e)},b),E={OnPush:0,Default:1};E[E.OnPush]="OnPush",E[E.Default]="Default";var S={CheckOnce:0,Checked:1,CheckAlways:2,Detached:3,Errored:4,Destroyed:5};S[S.CheckOnce]="CheckOnce",S[S.Checked]="Checked",S[S.CheckAlways]="CheckAlways",S[S.Detached]="Detached",S[S.Errored]="Errored",S[S.Destroyed]="Destroyed";var k=d("Directive",function(t){return void 0===t&&(t={}),t}),O=d("Component",function(t){return void 0===t&&(t={}),c({changeDetection:E.Default},t)},k),P=d("Pipe",function(t){return c({pure:!0},t)}),A=g("Input",function(t){return{bindingPropertyName:t}}),T=g("Output",function(t){return{bindingPropertyName:t}}),M=g("HostBinding",function(t){return{hostPropertyName:t}}),I=g("HostListener",function(t,e){return{eventName:t,args:e}}),R=d("NgModule",function(t){return t}),D={Emulated:0,Native:1,None:2};D[D.Emulated]="Emulated",D[D.Native]="Native",D[D.None]="None";var N=function(){return function(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}(),L=new N("5.2.0"),j=m("Inject",function(t){return{token:t}}),F=m("Optional"),V=d("Injectable"),B=m("Self"),U=m("SkipSelf"),H=m("Host"),z="undefined"!=typeof window&&window,W="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,G=z||void 0!==r&&r||W,q=null;function Y(){if(!q){var t=G.Symbol;if(t&&t.iterator)q=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&&(q=r)}}return q}function K(t){Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function $(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function X(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(X).join(", ")+"]";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 Q(t){return t.__forward_ref__=Q,t.toString=function(){return X(this())},t}function Z(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===Q?t():t}var J="__source",tt=new Object,et=tt,nt=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=tt),e===tt)throw new Error("NullInjectorError: No provider for "+X(t)+"!");return e},t}(),rt=function(){function t(){}return t.create=function(t,e){return Array.isArray(t)?new ft(t,e):new ft(t.providers,t.parent,t.name||null)},t.THROW_IF_NOT_FOUND=tt,t.NULL=new nt,t}(),it=function(t){return t},ot=[],at=it,st=function(){return Array.prototype.slice.call(arguments)},ct={},lt=function(t){for(var e in t)if(t[e]===ct)return e;throw Error("!prop")}({provide:String,useValue:ct}),ut="ngTempTokenPath",pt=rt.NULL,ht=/\n/gm,dt="ɵ",ft=function(){function t(t,e,n){void 0===e&&(e=pt),void 0===n&&(n=null),this.parent=e,this.source=n;var r=this._records=new Map;r.set(rt,{token:rt,fn:it,deps:ot,value:this,useNew:!1}),function t(e,n){if(n)if((n=Z(n))instanceof Array)for(var r=0;r<n.length;r++)t(e,n[r]);else{if("function"==typeof n)throw vt("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw vt("Unexpected provider",n);var i=Z(n.provide),o=function(t){var e=function(t){var e=ot,n=t.deps;if(n&&n.length){e=[];for(var r=0;r<n.length;r++){var i=6,o=Z(n[r]);if(o instanceof Array)for(var a=0,s=o;a<s.length;a++){var c=s[a];c instanceof F||c==F?i|=1:c instanceof U||c==U?i&=-3:c instanceof B||c==B?i&=-5:o=c instanceof j?c.token:Z(c)}e.push({token:o,options:i})}}else if(t.useExisting){var o=Z(t.useExisting);e=[{token:o,options:6}]}else if(!(n||lt in t))throw vt("'deps' required",t);return e}(t),n=it,r=ot,i=!1,o=Z(t.provide);if(lt in t)r=t.useValue;else if(t.useFactory)n=t.useFactory;else if(t.useExisting);else if(t.useClass)i=!0,n=Z(t.useClass);else{if("function"!=typeof o)throw vt("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",t);i=!0,n=o}return{deps:e,fn:n,useNew:i,value:r}}(n);if(!0===n.multi){var a=e.get(i);if(a){if(a.fn!==st)throw mt(i)}else e.set(i,a={token:n.provide,deps:[],useNew:!1,fn:st,value:ot});i=n,a.deps.push({token:i,options:6})}var s=e.get(i);if(s&&s.fn==st)throw mt(i);e.set(i,o)}}(r,t)}return t.prototype.get=function(t,e){var n=this._records.get(t);try{return gt(t,n,this._records,this.parent,e)}catch(e){var r=e[ut];throw t[J]&&r.unshift(t[J]),e.message=yt("\n"+e.message,r,this.source),e.ngTokenPath=r,e[ut]=null,e}},t.prototype.toString=function(){var t=[];return this._records.forEach(function(e,n){return t.push(X(n))}),"StaticInjector["+t.join(", ")+"]"},t}();function mt(t){return vt("Cannot mix multi providers and regular providers",t)}function gt(t,e,n,r,i){try{return function(t,e,n,r,i){var o,a;if(e){if((o=e.value)==at)throw Error(dt+"Circular dependency");if(o===ot){e.value=at;var s=void 0,c=e.useNew,l=e.fn,u=e.deps,p=ot;if(u.length){p=[];for(var h=0;h<u.length;h++){var d=u[h],f=d.options,m=2&f?n.get(d.token):void 0;p.push(gt(d.token,m,n,m||4&f?r:pt,1&f?null:rt.THROW_IF_NOT_FOUND))}}e.value=o=c?new((a=l).bind.apply(a,[void 0].concat(p))):l.apply(s,p)}}else o=r.get(t,i);return o}(t,e,n,r,i)}catch(n){throw n instanceof Error||(n=new Error(n)),(n[ut]=n[ut]||[]).unshift(t),e&&e.value==at&&(e.value=ot),n}}function yt(t,e,n){void 0===n&&(n=null),t=t&&"\n"===t.charAt(0)&&t.charAt(1)==dt?t.substr(2):t;var r=X(e);if(e instanceof Array)r=e.map(X).join(" -> ");else if("object"==typeof e){var i=[];for(var o in e)if(e.hasOwnProperty(o)){var a=e[o];i.push(o+":"+("string"==typeof a?JSON.stringify(a):X(a)))}r="{"+i.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(ht,"\n  ")}function vt(t,e){return new Error(yt(t,e))}var bt="ngDebugContext",_t="ngOriginalError",wt="ngErrorLogger";function Ct(t){return t[bt]}function xt(t){return t[_t]}function Et(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,e)}var St=function(){function t(){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),n=this._findContext(t),r=t[wt]||Et;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?Ct(t)?Ct(t):this._findContext(xt(t)):null},t.prototype._findOriginalError=function(t){for(var e=xt(t);e&&xt(e);)e=xt(e);return e},t}();function kt(t){return t.length>1?" ("+function(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}(t.slice().reverse()).map(function(t){return X(t.token)}).join(" -> ")+")":""}function Ot(t,e,n,r){var i,o,a,s=[e],c=n(s),l=r?(o=c+" caused by: "+((i=r)instanceof Error?i.message:i),(a=Error(o))[_t]=i,a):Error(c);return l.addKey=Pt,l.keys=s,l.injectors=[t],l.constructResolvingMessage=n,l[_t]=r,l}function Pt(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)}function At(t,e){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];o&&0!=o.length?n.push(o.map(X).join(" ")):n.push("?")}return Error("Cannot resolve all parameters for '"+X(t)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+X(t)+"' is decorated with Injectable.")}var Tt=function(){function t(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!");this.displayName=X(this.token)}return t.get=function(t){return Mt.get(Z(t))},Object.defineProperty(t,"numberOfKeys",{get:function(){return Mt.numberOfKeys},enumerable:!0,configurable:!0}),t}(),Mt=new(function(){function t(){this._allKeys=new Map}return t.prototype.get=function(t){if(t instanceof Tt)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var e=new Tt(t,Tt.numberOfKeys);return this._allKeys.set(t,e),e},Object.defineProperty(t.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),t}()),It=Function;function Rt(t){return"function"==typeof t}var Dt=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,Nt=function(){function t(t){this._reflect=t||G.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(Dt.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,i=r.map(function(t){return t&&t.type}),o=r.map(function(t){return t&&Lt(t.decorators)});return this._zipTypesAndAnnotations(i,o)}var a=t.hasOwnProperty(p)&&t[p],s=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return s||a?this._zipTypesAndAnnotations(s,a):new Array(t.length).fill(void 0)},t.prototype.parameters=function(t){if(!Rt(t))return[];var e=jt(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?Lt(t.decorators):t.hasOwnProperty(u)?t[u]:null},t.prototype.annotations=function(t){if(!Rt(t))return[];var e=jt(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,i={};return Object.keys(r).forEach(function(t){i[t]=Lt(r[t])}),i}return t.hasOwnProperty(h)?t[h]:null},t.prototype.propMetadata=function(t){if(!Rt(t))return{};var e=jt(t),n={};if(e!==Object){var r=this.propMetadata(e);Object.keys(r).forEach(function(t){n[t]=r[t]})}var i=this._ownPropMetadata(t,e);return i&&Object.keys(i).forEach(function(t){var e=[];n.hasOwnProperty(t)&&e.push.apply(e,n[t]),e.push.apply(e,i[t]),n[t]=e}),n},t.prototype.hasLifecycleHook=function(t,e){return t instanceof It&&e in t.prototype},t.prototype.guards=function(t){return{}},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){return new Function("o","args","if (!o."+t+") throw new Error('\""+t+"\" is undefined');\n        return o."+t+".apply(o, args);")},t.prototype.importUri=function(t){return"object"==typeof t&&t.filePath?t.filePath:"./"+X(t)},t.prototype.resourceUri=function(t){return"./"+X(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return r},t.prototype.resolveEnum=function(t,e){return t[e]},t}();function Lt(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 jt(t){var e=Object.getPrototypeOf(t.prototype);return(e?e.constructor:null)||Object}var Ft=new(function(){function t(t){this.reflectionCapabilities=t}return t.prototype.updateCapabilities=function(t){this.reflectionCapabilities=t},t.prototype.factory=function(t){return this.reflectionCapabilities.factory(t)},t.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},t.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},t.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},t.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},t.prototype.getter=function(t){return this.reflectionCapabilities.getter(t)},t.prototype.setter=function(t){return this.reflectionCapabilities.setter(t)},t.prototype.method=function(t){return this.reflectionCapabilities.method(t)},t.prototype.importUri=function(t){return this.reflectionCapabilities.importUri(t)},t.prototype.resourceUri=function(t){return this.reflectionCapabilities.resourceUri(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return this.reflectionCapabilities.resolveIdentifier(t,e,n,r)},t.prototype.resolveEnum=function(t,e){return this.reflectionCapabilities.resolveEnum(t,e)},t}())(new Nt),Vt=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}(),Bt=[],Ut=function(){return function(t,e,n){this.key=t,this.resolvedFactories=e,this.multiProvider=n,this.resolvedFactory=this.resolvedFactories[0]}}(),Ht=function(){return function(t,e){this.factory=t,this.dependencies=e}}();function zt(t){var e,n;if(t.useClass){var r=Z(t.useClass);e=Ft.factory(r),n=qt(r)}else t.useExisting?(e=function(t){return t},n=[Vt.fromKey(Tt.get(t.useExisting))]):t.useFactory?(e=t.useFactory,n=function(t,e){{if(e){var n=e.map(function(t){return[t]});return e.map(function(e){return Yt(t,e,n)})}return qt(t)}}(t.useFactory,t.deps)):(e=function(){return t.useValue},n=Bt);return new Ht(e,n)}function Wt(t){return new Ut(Tt.get(t.provide),[zt(t)],t.multi||!1)}function Gt(t){var e=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e.get(r.key.id);if(i){if(r.multiProvider!==i.multiProvider)throw Error("Cannot mix multi providers and regular providers, got: "+i+" "+r);if(r.multiProvider)for(var o=0;o<r.resolvedFactories.length;o++)i.resolvedFactories.push(r.resolvedFactories[o]);else e.set(r.key.id,r)}else{var a=void 0;a=r.multiProvider?new Ut(r.key,r.resolvedFactories.slice(),r.multiProvider):r,e.set(r.key.id,a)}}return e}(function t(e,n){e.forEach(function(e){if(e instanceof It)n.push({provide:e,useClass:e});else if(e&&"object"==typeof e&&void 0!==e.provide)n.push(e);else{if(!(e instanceof Array))throw Error("Invalid provider - only instances of Provider and Type are allowed, got: "+e);t(e,n)}});return n}(t,[]).map(Wt),new Map);return Array.from(e.values())}function qt(t){var e=Ft.parameters(t);if(!e)return[];if(e.some(function(t){return null==t}))throw At(t,e);return e.map(function(n){return Yt(t,n,e)})}function Yt(t,e,n){var r=null,i=!1;if(!Array.isArray(e))return Kt(e instanceof j?e.token:e,i,null);for(var o=null,a=0;a<e.length;++a){var s=e[a];s instanceof It?r=s:s instanceof j?r=s.token:s instanceof F?i=!0:s instanceof B||s instanceof U?o=s:s instanceof l&&(r=s)}if(null!=(r=Z(r)))return Kt(r,i,o);throw At(t,n)}function Kt(t,e,n){return new Vt(Tt.get(t),e,n)}var $t=new Object,Xt=function(){function t(){}return t.resolve=function(t){return Gt(t)},t.resolveAndCreate=function(e,n){var r=t.resolve(e);return t.fromResolvedProviders(r,n)},t.fromResolvedProviders=function(t,e){return new Qt(t,e)},t}(),Qt=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]=$t}return t.prototype.get=function(t,e){return void 0===e&&(e=et),this._getByKey(Tt.get(t),null,e)},t.prototype.resolveAndCreateChild=function(t){var e=Xt.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(Xt.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 Error("Index "+t+" is out-of-bounds.");return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw e=this,n=t.key,Ot(e,n,function(t){return"Cannot instantiate cyclic dependency!"+kt(t)});var e,n;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,i,o,a,s=this,c=e.factory;try{n=e.dependencies.map(function(t){return s._getByReflectiveDependency(t)})}catch(e){throw e.addKey&&e.addKey(this,t.key),e}try{r=c.apply(void 0,n)}catch(e){throw i=this,o=e,e.stack,a=t.key,Ot(i,a,function(t){var e=X(t[0].token);return o.message+": Error during instantiation of "+e+"!"+kt(t)+"."},o)}return r},t.prototype._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:et)},t.prototype._getByKey=function(e,n,r){return e===t.INJECTOR_KEY?this:n instanceof B?this._getByKeySelf(e,r):this._getByKeyDefault(e,r,n)},t.prototype._getObjByKeyId=function(t){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===$t&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return $t},t.prototype._throwOrNull=function(t,e){if(e!==et)return e;throw Ot(this,t,function(t){return"No provider for "+X(t[0].token)+"!"+kt(t)})},t.prototype._getByKeySelf=function(t,e){var n=this._getObjByKeyId(t.id);return n!==$t?n:this._throwOrNull(t,e)},t.prototype._getByKeyDefault=function(e,n,r){var i;for(i=r instanceof U?this.parent:this;i instanceof t;){var o=i,a=o._getObjByKeyId(e.id);if(a!==$t)return a;i=o.parent}return null!==i?i.get(e.token,n):this._throwOrNull(e,n)},Object.defineProperty(t.prototype,"displayName",{get:function(){return"ReflectiveInjector(providers: ["+function(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}(this,function(t){return' "'+t.key.displayName+'" '}).join(", ")+"])"},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.displayName},t.INJECTOR_KEY=Tt.get(rt),t}();function Zt(t){return!!t&&"function"==typeof t.then}var Jt=new l("Application Initializer"),te=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 i=this.appInits[r]();Zt(i)&&e.push(i)}Promise.all(e).then(function(){n()}).catch(function(e){t.reject(e)}),0===e.length&&n(),this.initialized=!0}},t.decorators=[{type:V}],t.ctorParameters=function(){return[{type:Array,decorators:[{type:j,args:[Jt]},{type:F}]}]},t}(),ee=new l("AppId");function ne(){return""+ie()+ie()+ie()}var re={provide:ee,useFactory:ne,deps:[]};function ie(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var oe=new l("Platform Initializer"),ae=new l("Platform ID"),se=new l("appBootstrapListener"),ce=new l("Application Packages Root URL"),le=function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t.decorators=[{type:V}],t.ctorParameters=function(){return[]},t}(),ue=function(){return function(t,e){this.ngModuleFactory=t,this.componentFactories=e}}();function pe(){throw new Error("Runtime compiler is not loaded")}var he=function(){function t(){}return t.prototype.compileModuleSync=function(t){throw pe()},t.prototype.compileModuleAsync=function(t){throw pe()},t.prototype.compileModuleAndAllComponentsSync=function(t){throw pe()},t.prototype.compileModuleAndAllComponentsAsync=function(t){throw pe()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(t){},t.decorators=[{type:V}],t.ctorParameters=function(){return[]},t}(),de=new l("compilerOptions"),fe=function(){return function(){}}(),me=function(){return function(){}}(),ge=function(){return function(){}}();function ye(t){var e=Error("No component factory found for "+X(t)+". Did you add it to @NgModule.entryComponents?");return e[_e]=t,e}var ve,be,_e="ngComponent",we=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw ye(t)},t}(),Ce=function(){function t(){}return t.NULL=new we,t}(),xe=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 i=t[r];this._factories.set(i.componentType,i)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t);if(!e&&this._parent&&(e=this._parent.resolveComponentFactory(t)),!e)throw ye(t);return new Ee(e,this._ngModule)},t}(),Ee=function(t){function e(e,n){var r=t.call(this)||this;return r.factory=e,r.ngModule=n,r.selector=e.selector,r.componentType=e.componentType,r.ngContentSelectors=e.ngContentSelectors,r.inputs=e.inputs,r.outputs=e.outputs,r}return s(e,t),e.prototype.create=function(t,e,n,r){return this.factory.create(t,e,n,r||this.ngModule)},e}(ge),Se=function(){return function(){}}(),ke=function(){return function(){}}();function Oe(){var t=G.wtf;return!(!t||!(ve=t.trace))&&(be=ve.events,!0)}function Pe(t,e){return void 0===e&&(e=null),be.createScope(t,e)}function Ae(t,e){return ve.leaveScope(t,e),e}function Te(t,e){return ve.beginTimeRange(t,e)}function Me(t){ve.endTimeRange(t)}var Ie=Oe();function Re(t,e){return null}var De=Ie?Pe:function(t,e){return Re},Ne=Ie?Ae:function(t,e){return e},Le=Ie?Te:function(t,e){return null},je=Ie?Me:function(t){return null},Fe=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return s(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var i,o=function(t){return null},a=function(){return null};return e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(a=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(o=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(a=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()})),t.prototype.subscribe.call(this,i,o,a)},e}(o.Subject),Ve=function(){function t(t){var e=t.enableLongStackTrace,n=void 0!==e&&e;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Fe(!1),this.onMicrotaskEmpty=new Fe(!1),this.onStable=new Fe(!1),this.onError=new Fe(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();var r;this._nesting=0,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)),(r=this)._inner=r._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(t,e,n,i,o,a){try{return ze(r),t.invokeTask(n,i,o,a)}finally{We(r)}},onInvoke:function(t,e,n,i,o,a,s){try{return ze(r),t.invoke(n,i,o,a,s)}finally{We(r)}},onHasTask:function(t,e,n,i){t.hasTask(n,i),e===n&&("microTask"==i.change?(r.hasPendingMicrotasks=i.microTask,He(r)):"macroTask"==i.change&&(r.hasPendingMacrotasks=i.macroTask))},onHandleError:function(t,e,n,i){return t.handleError(n,i),r.runOutsideAngular(function(){return r.onError.emit(i)}),!1}})}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,e,n){return this._inner.run(t,e,n)},t.prototype.runTask=function(t,e,n,r){var i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,t,Ue,Be,Be);try{return i.runTask(o,e,n)}finally{i.cancelTask(o)}},t.prototype.runGuarded=function(t,e,n){return this._inner.runGuarded(t,e,n)},t.prototype.runOutsideAngular=function(t){return this._outer.run(t)},t}();function Be(){}var Ue={};function He(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(function(){return t.onStable.emit(null)})}finally{t.isStable=!0}}}function ze(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function We(t){t._nesting--,He(t)}var Ge=function(){function t(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Fe,this.onMicrotaskEmpty=new Fe,this.onStable=new Fe,this.onError=new Fe}return t.prototype.run=function(t){return t()},t.prototype.runGuarded=function(t){return t()},t.prototype.runOutsideAngular=function(t){return t()},t.prototype.runTask=function(t){return t()},t}(),qe=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(){Ve.assertNotInAngularZone(),K(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()?K(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.findProviders=function(t,e,n){return[]},t.decorators=[{type:V}],t.ctorParameters=function(){return[{type:Ve}]},t}(),Ye=function(){function t(){this._applications=new Map,$e.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},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),$e.findTestabilityInTree(this,t,e)},t.decorators=[{type:V}],t.ctorParameters=function(){return[]},t}();var Ke,$e=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),Xe=!0,Qe=!1,Ze=new l("AllowMultipleToken");function Je(){return Qe=!0,Xe}var tn=function(){return function(t,e){this.name=t,this.token=e}}();function en(t){if(Ke&&!Ke.destroyed&&!Ke.injector.get(Ze,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ke=t.get(an);var e=t.get(oe,null);return e&&e.forEach(function(t){return t()}),Ke}function nn(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,i=new l(r);return function(e){void 0===e&&(e=[]);var o=on();if(!o||o.injector.get(Ze,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{var a=n.concat(e).concat({provide:i,useValue:!0});en(rt.create({providers:a,name:r}))}return rn(i)}}function rn(t){var e=on();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 on(){return Ke&&!Ke.destroyed?Ke:null}var an=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n=this,r=function(t){var e;e="noop"===t?new Ge:("zone.js"===t?void 0:t)||new Ve({enableLongStackTrace:Je()});return e}(e?e.ngZone:void 0),i=[{provide:Ve,useValue:r}];return r.run(function(){var e=rt.create({providers:i,parent:n.injector,name:t.moduleType.name}),o=t.create(e),a=o.injector.get(St,null);if(!a)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.onDestroy(function(){return ln(n._modules,o)}),r.runOutsideAngular(function(){return r.onError.subscribe({next:function(t){a.handleError(t)}})}),function(t,e,n){try{var r=n();return Zt(r)?r.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):r}catch(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}}(a,r,function(){var t=o.injector.get(te);return t.runInitializers(),t.donePromise.then(function(){return n._moduleDoBootstrap(o),o})})})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=this.injector.get(fe),i=sn({},e);return r.createCompiler([i]).compileModuleAsync(t).then(function(t){return n.bootstrapModuleFactory(t,i)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(cn);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+X(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t.decorators=[{type:V}],t.ctorParameters=function(){return[{type:rt}]},t}();function sn(t,e){return t=Array.isArray(e)?e.reduce(sn,t):c({},t,e)}var cn=function(){function t(t,r,o,a,s,c){var l=this;this._zone=t,this._console=r,this._injector=o,this._exceptionHandler=a,this._componentFactoryResolver=s,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Je(),this._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run(function(){l.tick()})}});var u=new e.Observable(function(t){l._stable=l._zone.isStable&&!l._zone.hasPendingMacrotasks&&!l._zone.hasPendingMicrotasks,l._zone.runOutsideAngular(function(){t.next(l._stable),t.complete()})}),p=new e.Observable(function(t){var e;l._zone.runOutsideAngular(function(){e=l._zone.onStable.subscribe(function(){Ve.assertNotInAngularZone(),K(function(){l._stable||l._zone.hasPendingMacrotasks||l._zone.hasPendingMicrotasks||(l._stable=!0,t.next(!0))})})});var n=l._zone.onUnstable.subscribe(function(){Ve.assertInAngularZone(),l._stable&&(l._stable=!1,l._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=n.merge(u,i.share.call(p))}return t.prototype.bootstrap=function(t,e){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof ge?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n instanceof Ee?null:this._injector.get(Se),o=e||n.selector,a=n.create(rt.NULL,[],o,i);a.onDestroy(function(){r._unloadComponent(a)});var s=a.injector.get(qe,null);return s&&a.injector.get(Ye).registerApplication(a.location.nativeElement,s),this._loadComponent(a),Je()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),a},t.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(t){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(t)})}finally{this._runningTick=!1,Ne(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;ln(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(se,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),ln(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=De("ApplicationRef#tick()"),t.decorators=[{type:V}],t.ctorParameters=function(){return[{type:Ve},{type:le},{type:rt},{type:St},{type:Ce},{type:te}]},t}();function ln(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var un=function(){return function(t,e,n,r,i,o){this.id=t,this.templateUrl=e,this.slotCount=n,this.encapsulation=r,this.styles=i,this.animations=o}}(),pn=function(){return function(){}}(),hn=function(){return function(){}}(),dn=(new l("Renderer2Interceptor"),function(){return function(){}}()),fn=function(){return function(){}}(),mn={Important:1,DashCase:2};mn[mn.Important]="Important",mn[mn.DashCase]="DashCase";var gn=function(){return function(){}}(),yn=function(){return function(t){this.nativeElement=t}}(),vn=function(){return function(){}}(),bn=new Map;var _n=function(){function t(){this.dirty=!0,this._results=[],this.changes=new Fe}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[Y()]=function(){return this._results[Y()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}();var wn=function(){return function(){}}(),Cn={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},xn=function(){function t(t,e){this._compiler=t,this._config=e||Cn}return t.prototype.load=function(t){return this._compiler instanceof he?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,n=t.split("#"),r=n[0],i=n[1];return void 0===i&&(i="default"),System.import(r).then(function(t){return t[i]}).then(function(t){return En(t,r,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split("#"),n=e[0],r=e[1],i="NgFactory";return void 0===r&&(r="default",i=""),System.import(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then(function(t){return t[r+i]}).then(function(t){return En(t,n,r)})},t.decorators=[{type:V}],t.ctorParameters=function(){return[{type:he},{type:wn,decorators:[{type:F}]}]},t}();function En(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var Sn=function(){return function(){}}(),kn=function(){return function(){}}(),On=function(){return function(){}}(),Pn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(On),An=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(Pn),Tn=function(){return function(t,e){this.name=t,this.callback=e}}(),Mn=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof In?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),In=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return s(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,r=this,i=this.childNodes.indexOf(t);-1!==i&&((n=this.childNodes).splice.apply(n,[i+1,0].concat(e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=r}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return function t(e,n,r){e.childNodes.forEach(function(e){e instanceof In&&(n(e)&&r.push(e),t(e,n,r))})}(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return function t(e,n,r){e instanceof In&&e.childNodes.forEach(function(e){n(e)&&r.push(e),e instanceof In&&t(e,n,r)})}(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}(Mn);var Rn=new Map;function Dn(t){return Rn.get(t)||null}function Nn(t){Rn.set(t.nativeNode,t)}function Ln(t,e){var n=Bn(t),r=Bn(e);return n&&r?function(t,e,n){var r=t[Y()](),i=e[Y()]();for(;;){var o=r.next(),a=i.next();if(o.done&&a.done)return!0;if(o.done||a.done)return!1;if(!n(o.value,a.value))return!1}}(t,e,Ln):!(n||!(t&&("object"==typeof t||"function"==typeof t))||r||!(e&&("object"==typeof e||"function"==typeof e)))||$(t,e)}var jn=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t}(),Fn=function(){function t(){this.hasWrappedValue=!1}return t.prototype.unwrap=function(t){return t instanceof jn?(this.hasWrappedValue=!0,t.wrapped):t},t.prototype.reset=function(){this.hasWrappedValue=!1},t}(),Vn=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function Bn(t){return!!Un(t)&&(Array.isArray(t)||!(t instanceof Map)&&Y()in t)}function Un(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var Hn=function(){function t(){}return t.prototype.supports=function(t){return Bn(t)},t.prototype.create=function(t){return new Wn(t)},t}(),zn=function(t,e){return e},Wn=function(){function t(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||zn}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex<Kn(n,r,i)?e:n,a=Kn(o,r,i),s=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);var c=a-r,l=s-r;if(c!=l){for(var u=0;u<c;u++){var p=u<i.length?i[u]:i[u]=0,h=p+u;l<=h&&h<c&&(i[u]=p+1)}i[o.previousIndex]=l-c}}a!==s&&t(o,a,s)}},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=[]),!Bn(t))throw new Error("Error trying to diff '"+X(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,i,o=this._itHead,a=!1;if(Array.isArray(t)){this.length=t.length;for(var s=0;s<this.length;s++)r=t[s],i=this._trackByFn(s,r),null!==o&&$(o.trackById,i)?(a&&(o=this._verifyReinsertion(o,r,i,s)),$(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,s),a=!0),o=o._next}else n=0,function(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var r=t[Y()](),i=void 0;!(i=r.next()).done;)e(i.value)}(t,function(t){i=e._trackByFn(n,t),null!==o&&$(o.trackById,i)?(a&&(o=e._verifyReinsertion(o,t,i,n)),$(o.item,t)||e._addIdentityChange(o,t)):(o=e._mismatch(o,t,i,n),a=!0),o=o._next,n++}),this.length=n;return this._truncate(o),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 i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?($(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?($(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new Gn(e,n),i,r),t},t.prototype._verifyReinsertion=function(t,e,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,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,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._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 Yn),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 Yn),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}(),Gn=function(){return function(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}}(),qn=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)&&$(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}(),Yn=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 qn,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}();function Kn(t,e,n){var r=t.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+e+i}var $n=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||Un(t)},t.prototype.create=function(){return new Xn},t}(),Xn=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||Un(t)))throw new Error("Error trying to diff '"+X(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 i=e._getOrCreateRecordForKey(r,t);n=e._insertBeforeOrAppend(n,i)}}),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,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new Qn(t);return this._records.set(t,o),o.currentValue=e,this._addToAdditions(o),o},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){$(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._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(n){return e(t[n],n)})},t}(),Qn=function(){return function(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}}(),Zn=function(){function t(t){this.factories=t}return t.create=function(e,n){if(null!=n){var r=n.factories.slice();return new t(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 IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new U,new F]]}},t.prototype.find=function(t){var e,n=this.factories.find(function(e){return e.supports(t)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'")},t}();var Jn=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 U,new F]]}},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}(),tr=[new $n],er=[new Hn],nr=new Zn(er),rr=new Jn(tr),ir=nn(null,"core",[{provide:ae,useValue:"unknown"},{provide:an,deps:[rt]},{provide:Ye,deps:[]},{provide:le,deps:[]}]),or=new l("LocaleId"),ar=new l("Translations"),sr=new l("TranslationsFormat"),cr={Error:0,Warning:1,Ignore:2};function lr(){return nr}function ur(){return rr}function pr(t){return t||"en-US"}cr[cr.Error]="Error",cr[cr.Warning]="Warning",cr[cr.Ignore]="Ignore";var hr=function(){function t(t){}return t.decorators=[{type:R,args:[{providers:[cn,te,he,re,{provide:Zn,useFactory:lr},{provide:Jn,useFactory:ur},{provide:or,useFactory:pr,deps:[[new j(or),new F,new U]]}]}]}],t.ctorParameters=function(){return[{type:cn}]},t}(),dr={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};dr[dr.NONE]="NONE",dr[dr.HTML]="HTML",dr[dr.STYLE]="STYLE",dr[dr.SCRIPT]="SCRIPT",dr[dr.URL]="URL",dr[dr.RESOURCE_URL]="RESOURCE_URL";var fr=function(){return function(){}}();function mr(t,e,n){var r=t.state,i=1792&r;return i===e?(t.state=-1793&r|n,t.initIndex=-1,!0):i===n}function gr(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function yr(t,e){return t.nodes[e]}function vr(t,e){return t.nodes[e]}function br(t,e){return t.nodes[e]}function _r(t,e){return t.nodes[e]}function wr(t,e){return t.nodes[e]}var Cr=function(){return function(){}}(),xr={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides: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};function Er(t,e,n,r){var i,o,a="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(a+=" 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 ?"),i=t,Sr(o=new Error(a),i),o}function Sr(t,e){t[bt]=e,t[wt]=e.logError.bind(e)}function kr(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}var Or=function(){},Pr=new Map;function Ar(t){var e=Pr.get(t);return e||(e=X(t)+"_"+Pr.size,Pr.set(t,e)),e}var Tr="$$undefined",Mr="$$empty";var Ir=0;function Rr(t){if(t&&t.id===Tr){var e=null!=t.encapsulation&&t.encapsulation!==D.None||t.styles.length||Object.keys(t.data).length;t.id=e?"c"+Ir++:Mr}return t&&t.id===Mr&&(t=null),t||null}function Dr(t,e,n,r){var i=t.oldValues;return!(!(2&t.state)&&$(i[e.bindingIndex+n],r))}function Nr(t,e,n,r){return!!Dr(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function Lr(t,e,n,r){var i=t.oldValues[e.bindingIndex+n];if(1&t.state||!Ln(i,r))throw Er(xr.createDebugContext(t,e.nodeIndex),i,r,0!=(1&t.state))}function jr(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function Fr(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function Vr(t,e,n,r){try{return jr(33554432&t.def.nodes[e].flags?vr(t,e).componentView:t),xr.handleEvent(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}function Br(t){return t.parent?vr(t.parent,t.parentNodeDef.nodeIndex):null}function Ur(t){return t.parent?t.parentNodeDef.parent:null}function Hr(t,e){switch(201347067&e.flags){case 1:return vr(t,e.nodeIndex).renderElement;case 2:return yr(t,e.nodeIndex).renderText}}function zr(t,e){return t?t+":"+e:e}function Wr(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function Gr(t){return 1<<t%32}function qr(t){var e={},n=0,r={};return t&&t.forEach(function(t){var i=t[0],o=t[1];"number"==typeof i?(e[i]=o,n|=Gr(i)):r[i]=o}),{matchedQueries:e,references:r,matchedQueryIds:n}}function Yr(t,e){return t.map(function(t){var n,r;return Array.isArray(t)?(r=t[0],n=t[1]):(r=0,n=t),n&&("function"==typeof n||"object"==typeof n)&&e&&Object.defineProperty(n,J,{value:e,configurable:!0}),{flags:r,token:n,tokenKey:Ar(n)}})}function Kr(t,e,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===D.Native?vr(t,n.renderParent.nodeIndex).renderElement:void 0:e}var $r=new WeakMap;function Xr(t){var e=$r.get(t);return e||((e=t(function(){return Or})).factory=t,$r.set(t,e)),e}function Qr(t,e,n,r,i){3===e&&(n=t.renderer.parentNode(Hr(t,t.def.lastRenderRootNode))),Zr(t,e,0,t.def.nodes.length-1,n,r,i)}function Zr(t,e,n,r,i,o,a){for(var s=n;s<=r;s++){var c=t.def.nodes[s];11&c.flags&&ti(t,c,e,i,o,a),s+=c.childCount}}function Jr(t,e,n,r,i,o){for(var a=t;a&&!Wr(a);)a=a.parent;for(var s=a.parent,c=Ur(a),l=c.nodeIndex+1,u=c.nodeIndex+c.childCount,p=l;p<=u;p++){var h=s.def.nodes[p];h.ngContentIndex===e&&ti(s,h,n,r,i,o),p+=h.childCount}if(!s.parent){var d=t.root.projectableNodes[e];if(d)for(p=0;p<d.length;p++)ei(t,d[p],n,r,i,o)}}function ti(t,e,n,r,i,o){if(8&e.flags)Jr(t,e.ngContent.index,n,r,i,o);else{var a=Hr(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags){if(16&e.bindingFlags&&ei(t,a,n,r,i,o),32&e.bindingFlags)ei(vr(t,e.nodeIndex).componentView,a,n,r,i,o)}else ei(t,a,n,r,i,o);if(16777216&e.flags)for(var s=vr(t,e.nodeIndex).viewContainer._embeddedViews,c=0;c<s.length;c++)Qr(s[c],n,r,i,o);1&e.flags&&!e.element.name&&Zr(t,n,e.nodeIndex+1,e.nodeIndex+e.childCount,r,i,o)}}function ei(t,e,n,r,i,o){var a=t.renderer;switch(n){case 1:a.appendChild(r,e);break;case 2:a.insertBefore(r,e,i);break;case 3:a.removeChild(r,e);break;case 0:o.push(e)}}var ni=/^:([^:]+):(.+)$/;function ri(t){if(":"===t[0]){var e=t.match(ni);return[e[1],e[2]]}return["",t]}function ii(t){for(var e=0,n=0;n<t.length;n++)e|=t[n].flags;return e}function oi(t){return null!=t?t.toString():""}function ai(t,e,n){var r,i=n.element,o=t.root.selectorOrNode,a=t.renderer;if(t.parent||!o){r=i.name?a.createElement(i.name,i.ns):a.createComment("");var s=Kr(t,e,n);s&&a.appendChild(s,r)}else r=a.selectRootElement(o);if(i.attrs)for(var c=0;c<i.attrs.length;c++){var l=i.attrs[c],u=l[0],p=l[1],h=l[2];a.setAttribute(r,p,h,u)}return r}function si(t,e,n,r){for(var i=0;i<n.outputs.length;i++){var o=n.outputs[i],a=ci(t,n.nodeIndex,zr(o.target,o.eventName)),s=o.target,c=t;"component"===o.target&&(s=null,c=e);var l=c.renderer.listen(s||r,o.eventName,a);t.disposables[n.outputIndex+i]=l}}function ci(t,e,n){return function(r){return Vr(t,e,n,r)}}function li(t,e,n,r){if(!Nr(t,e,n,r))return!1;var i,o,a,s,c,l,u,p,h,d,f=e.bindings[n],m=vr(t,e.nodeIndex),g=m.renderElement,y=f.name;switch(15&f.flags){case 1:!function(t,e,n,r,i,o){var a=e.securityContext,s=a?t.root.sanitizer.sanitize(a,o):o;s=null!=s?s.toString():null;var c=t.renderer;null!=o?c.setAttribute(n,i,s,r):c.removeAttribute(n,i,r)}(t,f,g,f.ns,y,r);break;case 2:u=g,p=y,h=r,d=t.renderer,h?d.addClass(u,p):d.removeClass(u,p);break;case 4:!function(t,e,n,r,i){var o=t.root.sanitizer.sanitize(dr.STYLE,i);if(null!=o){o=o.toString();var a=e.suffix;null!=a&&(o+=a)}else o=null;var s=t.renderer;null!=o?s.setStyle(n,r,o):s.removeStyle(n,r)}(t,f,g,y,r);break;case 8:var v=33554432&e.flags&&32&f.flags?m.componentView:t;i=v,o=g,a=y,s=r,c=f.securityContext,l=c?i.root.sanitizer.sanitize(c,s):s,i.renderer.setProperty(o,a,l)}return!0}var ui=new Object,pi=Ar(rt),hi=Ar(Se);function di(t,e,n){if(void 0===n&&(n=rt.THROW_IF_NOT_FOUND),8&e.flags)return e.token;if(2&e.flags&&(n=null),1&e.flags)return t._parent.get(e.token,n);var r=e.tokenKey;switch(r){case pi:case hi:return t}var i=t._def.providersByKey[r];if(i){var o=t._providers[i.index];return void 0===o&&(o=t._providers[i.index]=fi(t,i)),o===ui?void 0:o}return t._parent.get(e.token,n)}function fi(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(di(t,n[0]));case 2:return new e(di(t,n[0]),di(t,n[1]));case 3:return new e(di(t,n[0]),di(t,n[1]),di(t,n[2]));default:for(var i=new Array(r),o=0;o<r;o++)i[o]=di(t,n[o]);return new(e.bind.apply(e,[void 0].concat(i)))}}(t,e.value,e.deps);break;case 1024:n=function(t,e,n){var r=n.length;switch(r){case 0:return e();case 1:return e(di(t,n[0]));case 2:return e(di(t,n[0]),di(t,n[1]));case 3:return e(di(t,n[0]),di(t,n[1]),di(t,n[2]));default:for(var i=Array(r),o=0;o<r;o++)i[o]=di(t,n[o]);return e.apply(void 0,i)}}(t,e.value,e.deps);break;case 2048:n=di(t,e.deps[0]);break;case 256:n=e.value}return void 0===n?ui:n}function mi(t,e,n,r){var i=e.viewContainer._embeddedViews;null!==n&&void 0!==n||(n=i.length),r.viewContainerParent=t,bi(i,n,r),function(t,e){var n=Br(e);if(!n||n===t||16&e.state)return;e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]);r.push(e),function(t,e){if(4&e.flags)return;t.nodeFlags|=4,e.flags|=4;var n=e.parent;for(;n;)n.childFlags|=4,n=n.parent}(e.parent.def,e.parentNodeDef)}(e,r),xr.dirtyParentQueries(r),yi(e,n>0?i[n-1]:null,r)}function gi(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,_i(n,e),xr.dirtyParentQueries(r),vi(r),r}function yi(t,e,n){var r=e?Hr(e,e.def.lastRenderRootNode):t.renderElement;Qr(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function vi(t){Qr(t,3,null,null,void 0)}function bi(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function _i(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var wi=new Object;function Ci(t){return t.viewDefFactory}var xi=function(t){function e(e,n,r,i,o,a){var s=t.call(this)||this;return s.selector=e,s.componentType=n,s._inputs=i,s._outputs=o,s.ngContentSelectors=a,s.viewDefFactory=r,s}return s(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 i=Xr(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,a=xr.createRootView(t,e||[],n,i,r,wi),s=br(a,o).instance;return n&&a.renderer.setAttribute(vr(a,0).renderElement,"ng-version",L.full),new Ei(a,new ki(a),s)},e}(ge),Ei=function(t){function e(e,n,r){var i=t.call(this)||this;return i._view=e,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return s(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new yn(vr(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Ai(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(me);var Si=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 yn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Ai(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=Ur(t),t=t.parent;return t?new Ai(t,e):new Ai(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=gi(this._data,t);xr.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new ki(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,i){var o=n||this.parentInjector;i||t instanceof Ee||(i=o.get(Se));var a=t.create(o,r,void 0,i);return this.insert(a.hostView,e),a},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n=t,r=n._view;return mi(this._view,this._data,e,r),n.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,a,s=this._embeddedViews.indexOf(t._view);return n=this._data,r=s,i=e,o=n.viewContainer._embeddedViews,a=o[r],_i(o,r),null==i&&(i=o.length),bi(o,i,a),xr.dirtyParentQueries(a),vi(a),yi(n,i>0?o[i-1]:null,a),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=gi(this._data,t);e&&xr.destroyView(e)},t.prototype.detach=function(t){var e=gi(this._data,t);return e?new ki(e):null},t}();var ki=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return Qr(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){jr(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{xr.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){xr.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)),xr.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,vi(this._view),xr.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}();var Oi=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return s(e,t),e.prototype.createEmbeddedView=function(t){return new ki(xr.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new yn(vr(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(Sn);function Pi(t,e){return new Ai(t,e)}var Ai=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){void 0===e&&(e=rt.THROW_IF_NOT_FOUND);var n=!!this.elDef&&0!=(33554432&this.elDef.flags);return xr.resolveDep(this.view,this.elDef,n,{flags:0,token:t,tokenKey:Ar(t)},e)},t}();var Ti=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=ri(e),r=n[0],i=n[1],o=this.delegate.createElement(i,r);return t&&this.delegate.appendChild(t,o),o},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),i=0;i<e.length;i++)this.delegate.insertBefore(n,e[i],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=ri(e),i=r[0],o=r[1];null!=n?this.delegate.setAttribute(t,o,n,i):this.delegate.removeAttribute(t,o,i)},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}();function Mi(t,e,n,r){return new Ii(t,e,n,r)}var Ii=function(){function t(t,e,n,r){this._moduleType=t,this._parent=e,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(t){for(var e=t._def,n=t._providers=new Array(e.providers.length),r=0;r<e.providers.length;r++){var i=e.providers[r];4096&i.flags||(n[r]=fi(t,i))}}(this)}return t.prototype.get=function(t,e){return void 0===e&&(e=rt.THROW_IF_NOT_FOUND),di(this,{token:t,tokenKey:Ar(t),flags:0},e)},Object.defineProperty(t.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this.get(Ce)},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+X(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,function(t,e){for(var n=t._def,r=0;r<n.providers.length;r++)if(131072&n.providers[r].flags){var i=t._providers[r];i&&i!==ui&&i.ngOnDestroy()}}(this),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t}(),Ri=Ar(hn),Di=Ar(gn),Ni=Ar(yn),Li=Ar(kn),ji=Ar(Sn),Fi=Ar(On),Vi=Ar(rt);function Bi(t,e,n,r,i,o,a,s,c){var l=qr(n),u=l.matchedQueries,p=l.references,h=l.matchedQueryIds;c||(c=[]),s||(s=[]),o=Z(o);var d=Yr(a,X(i));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:u,matchedQueryIds:h,references:p,ngContentIndex:-1,childCount:r,bindings:s,bindingFlags:ii(s),outputs:c,element:null,provider:{token:i,value:o,deps:d},text:null,query:null,ngContent:null}}function Ui(t,e){for(var n=t;n.parent&&!Wr(n);)n=n.parent;return Gi(n.parent,Ur(n),!0,e.provider.value,e.provider.deps)}function Hi(t,e){var n=(32768&e.flags)>0,r=Gi(t,e.parent,n,e.provider.value,e.provider.deps);if(e.outputs.length)for(var i=0;i<e.outputs.length;i++){var o=e.outputs[i],a=r[o.propName].subscribe(zi(t,e.parent.nodeIndex,o.eventName));t.disposables[e.outputIndex+i]=a.unsubscribe.bind(a)}return r}function zi(t,e,n){return function(r){return Vr(t,e,n,r)}}function Wi(t,e){var n=(8192&e.flags)>0,r=e.provider;switch(201347067&e.flags){case 512:return Gi(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,i){var o=i.length;switch(o){case 0:return r();case 1:return r(Yi(t,e,n,i[0]));case 2:return r(Yi(t,e,n,i[0]),Yi(t,e,n,i[1]));case 3:return r(Yi(t,e,n,i[0]),Yi(t,e,n,i[1]),Yi(t,e,n,i[2]));default:for(var a=Array(o),s=0;s<o;s++)a[s]=Yi(t,e,n,i[s]);return r.apply(void 0,a)}}(t,e.parent,n,r.value,r.deps);case 2048:return Yi(t,e.parent,n,r.deps[0]);case 256:return r.value}}function Gi(t,e,n,r,i){var o=i.length;switch(o){case 0:return new r;case 1:return new r(Yi(t,e,n,i[0]));case 2:return new r(Yi(t,e,n,i[0]),Yi(t,e,n,i[1]));case 3:return new r(Yi(t,e,n,i[0]),Yi(t,e,n,i[1]),Yi(t,e,n,i[2]));default:for(var a=new Array(o),s=0;s<o;s++)a[s]=Yi(t,e,n,i[s]);return new(r.bind.apply(r,[void 0].concat(a)))}}var qi={};function Yi(t,e,n,r,i){if(void 0===i&&(i=rt.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var o=t;2&r.flags&&(i=null);var a=r.tokenKey;for(a===Fi&&(n=!(!e||!e.element.componentView)),e&&1&r.flags&&(n=!1,e=e.parent);t;){if(e)switch(a){case Ri:var s=Ki(t,e,n);return new Ti(s.renderer);case Di:return(s=Ki(t,e,n)).renderer;case Ni:return new yn(vr(t,e.nodeIndex).renderElement);case Li:return vr(t,e.nodeIndex).viewContainer;case ji:if(e.element.template)return vr(t,e.nodeIndex).template;break;case Fi:var c=Ki(t,e,n);return new ki(c);case Vi:return Pi(t,e);default:var l=(n?e.element.allProviders:e.element.publicProviders)[a];if(l){var u=br(t,l.nodeIndex);return u||(u={instance:Wi(t,l)},t.nodes[l.nodeIndex]=u),u.instance}}n=Wr(t),e=Ur(t),t=t.parent}var p=o.root.injector.get(r.token,qi);return p!==qi||i===qi?p:o.root.ngModule.injector.get(r.token,i)}function Ki(t,e,n){var r;if(n)r=vr(t,e.nodeIndex).componentView;else for(r=t;r.parent&&!Wr(r);)r=r.parent;return r}function $i(t,e,n,r,i,o){if(32768&n.flags){var a=vr(t,n.parent.nodeIndex).componentView;2&a.def.flags&&(a.state|=8)}var s=n.bindings[r].name;if(e.instance[s]=i,524288&n.flags){o=o||{};var c=t.oldValues[n.bindingIndex+r];c instanceof jn&&(c=c.wrapped),o[n.bindings[r].nonMinifiedName]=new Vn(c,i,0!=(2&t.state))}return t.oldValues[n.bindingIndex+r]=i,o}function Xi(t,e){if(t.def.nodeFlags&e)for(var n=t.def.nodes,r=0,i=0;i<n.length;i++){var o=n[i],a=o.parent;for(!a&&o.flags&e&&Zi(t,i,o.flags&e,r++),0==(o.childFlags&e)&&(i+=o.childCount);a&&1&a.flags&&i===a.nodeIndex+a.childCount;)a.directChildFlags&e&&(r=Qi(t,a,e,r)),a=a.parent}}function Qi(t,e,n,r){for(var i=e.nodeIndex+1;i<=e.nodeIndex+e.childCount;i++){var o=t.def.nodes[i];o.flags&n&&Zi(t,i,o.flags&n,r++),i+=o.childCount}return r}function Zi(t,e,n,r){var i=br(t,e);if(i){var o=i.instance;o&&(xr.setCurrentNode(t,e),1048576&n&&gr(t,512,r)&&o.ngAfterContentInit(),2097152&n&&o.ngAfterContentChecked(),4194304&n&&gr(t,768,r)&&o.ngAfterViewInit(),8388608&n&&o.ngAfterViewChecked(),131072&n&&o.ngOnDestroy())}}function Ji(t){for(var e,n=t.def.nodeMatchedQueries;t.parent&&((e=t).parent&&!(32768&e.parentNodeDef.flags));){var r=t.parentNodeDef;t=t.parent;for(var i=r.nodeIndex+r.childCount,o=0;o<=i;o++){67108864&(a=t.def.nodes[o]).flags&&536870912&a.flags&&(a.query.filterId&n)===a.query.filterId&&wr(t,o).setDirty(),!(1&a.flags&&o+a.childCount<r.nodeIndex)&&67108864&a.childFlags&&536870912&a.childFlags||(o+=a.childCount)}}if(134217728&t.def.nodeFlags)for(o=0;o<t.def.nodes.length;o++){var a;134217728&(a=t.def.nodes[o]).flags&&536870912&a.flags&&wr(t,o).setDirty(),o+=a.childCount}}function to(t,e){var n=wr(t,e.nodeIndex);if(n.dirty){var r,i=void 0;if(67108864&e.flags){var o=e.parent.parent;i=eo(t,o.nodeIndex,o.nodeIndex+o.childCount,e.query,[]),r=br(t,e.parent.nodeIndex).instance}else 134217728&e.flags&&(i=eo(t,0,t.def.nodes.length-1,e.query,[]),r=t.component);n.reset(i);for(var a=e.query.bindings,s=!1,c=0;c<a.length;c++){var l=a[c],u=void 0;switch(l.bindingType){case 0:u=n.first;break;case 1:u=n,s=!0}r[l.propName]=u}s&&n.notifyOnChanges()}}function eo(t,e,n,r,i){for(var o=e;o<=n;o++){var a=t.def.nodes[o],s=a.matchedQueries[r.id];if(null!=s&&i.push(no(t,a,s)),1&a.flags&&a.element.template&&(a.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var c=vr(t,o);if((a.childMatchedQueries&r.filterId)===r.filterId&&(eo(t,o+1,o+a.childCount,r,i),o+=a.childCount),16777216&a.flags)for(var l=c.viewContainer._embeddedViews,u=0;u<l.length;u++){var p=l[u],h=Br(p);h&&h===c&&eo(p,0,p.def.nodes.length-1,r,i)}var d=c.template._projectedViews;if(d)for(u=0;u<d.length;u++){var f=d[u];eo(f,0,f.def.nodes.length-1,r,i)}}(a.childMatchedQueries&r.filterId)!==r.filterId&&(o+=a.childCount)}return i}function no(t,e,n){if(null!=n)switch(n){case 1:return vr(t,e.nodeIndex).renderElement;case 0:return new yn(vr(t,e.nodeIndex).renderElement);case 2:return vr(t,e.nodeIndex).template;case 3:return vr(t,e.nodeIndex).viewContainer;case 4:return br(t,e.nodeIndex).instance}}function ro(t,e,n){for(var r=new Array(n.length),i=0;i<n.length;i++){var o=n[i];r[i]={flags:8,name:o,ns:null,nonMinifiedName:o,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:ii(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function io(t,e,n){var r,i=t.renderer;r=i.createText(n.text.prefix);var o=Kr(t,e,n);return o&&i.appendChild(o,r),{renderText:r}}function oo(t,e){return(null!=t?t.toString():"")+e.suffix}function ao(t){return 0!=(1&t.flags)&&null===t.element.name}function so(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var i=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=i&&e.nodeIndex+e.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function co(t,e,n,r){var i=po(t.root,t.renderer,t,e,n);return ho(i,t.component,r),fo(i),i}function lo(t,e,n){var r=po(t,t.renderer,null,null,e);return ho(r,n,n),fo(r),r}function uo(t,e,n,r){var i,o=e.element.componentRendererType;return i=o?t.root.rendererFactory.createRenderer(r,o):t.root.renderer,po(t.root,i,t,e.element.componentProvider,n)}function po(t,e,n,r,i){var o=new Array(i.nodes.length),a=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:a,initIndex:-1}}function ho(t,e,n){t.component=e,t.context=n}function fo(t){var e;if(Wr(t)){var n=t.parentNodeDef;e=vr(t.parent,n.parent.nodeIndex).renderElement}for(var r,i,o,a,s,c=t.def,l=t.nodes,u=0;u<c.nodes.length;u++){var p=c.nodes[u];xr.setCurrentNode(t,u);var h=void 0;switch(201347067&p.flags){case 1:var d=ai(t,e,p),f=void 0;if(33554432&p.flags){var m=Xr(p.element.componentView);f=xr.createComponentView(t,p,m,d)}si(t,f,p,d),h={renderElement:d,componentView:f,viewContainer:null,template:p.element.template?(a=t,s=p,new Oi(a,s)):void 0},16777216&p.flags&&(h.viewContainer=new Si(t,p,h));break;case 2:h=io(t,e,p);break;case 512:case 1024:case 2048:case 256:if(!((h=l[u])||4096&p.flags))h={instance:Wi(t,p)};break;case 16:h={instance:Ui(t,p)};break;case 16384:if(!(h=l[u]))h={instance:Hi(t,p)};if(32768&p.flags)ho(vr(t,p.parent.nodeIndex).componentView,h.instance,h.instance);break;case 32:case 64:case 128:h={value:void 0};break;case 67108864:case 134217728:h=new _n;break;case 8:void 0,(o=Kr(r=t,e,i=p))&&Jr(r,i.ngContent.index,1,o,null,void 0),h=void 0}l[u]=h}xo(t,Co.CreateViewNodes),Oo(t,201326592,268435456,0)}function mo(t){vo(t),xr.updateDirectives(t,1),Eo(t,Co.CheckNoChanges),xr.updateRenderer(t,1),xo(t,Co.CheckNoChanges),t.state&=-97}function go(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,mr(t,0,256),vo(t),xr.updateDirectives(t,0),Eo(t,Co.CheckAndUpdate),Oo(t,67108864,536870912,0);var e=mr(t,256,512);Xi(t,2097152|(e?1048576:0)),xr.updateRenderer(t,0),xo(t,Co.CheckAndUpdate),Oo(t,134217728,536870912,0),Xi(t,8388608|((e=mr(t,512,768))?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97,mr(t,768,1024)}function yo(t,e,n,r,i,o,a,s,c,l,u,p,h){return 0===n?function(t,e,n,r,i,o,a,s,c,l,u,p){switch(201347067&e.flags){case 1:return A=t,M=n,I=r,R=i,D=o,N=a,L=s,j=c,F=l,V=u,B=p,U=(T=e).bindings.length,H=!1,U>0&&li(A,T,0,M)&&(H=!0),U>1&&li(A,T,1,I)&&(H=!0),U>2&&li(A,T,2,R)&&(H=!0),U>3&&li(A,T,3,D)&&(H=!0),U>4&&li(A,T,4,N)&&(H=!0),U>5&&li(A,T,5,L)&&(H=!0),U>6&&li(A,T,6,j)&&(H=!0),U>7&&li(A,T,7,F)&&(H=!0),U>8&&li(A,T,8,V)&&(H=!0),U>9&&li(A,T,9,B)&&(H=!0),H;case 2:return function(t,e,n,r,i,o,a,s,c,l,u,p){var h=!1,d=e.bindings,f=d.length;if(f>0&&Nr(t,e,0,n)&&(h=!0),f>1&&Nr(t,e,1,r)&&(h=!0),f>2&&Nr(t,e,2,i)&&(h=!0),f>3&&Nr(t,e,3,o)&&(h=!0),f>4&&Nr(t,e,4,a)&&(h=!0),f>5&&Nr(t,e,5,s)&&(h=!0),f>6&&Nr(t,e,6,c)&&(h=!0),f>7&&Nr(t,e,7,l)&&(h=!0),f>8&&Nr(t,e,8,u)&&(h=!0),f>9&&Nr(t,e,9,p)&&(h=!0),h){var m=e.text.prefix;f>0&&(m+=oo(n,d[0])),f>1&&(m+=oo(r,d[1])),f>2&&(m+=oo(i,d[2])),f>3&&(m+=oo(o,d[3])),f>4&&(m+=oo(a,d[4])),f>5&&(m+=oo(s,d[5])),f>6&&(m+=oo(c,d[6])),f>7&&(m+=oo(l,d[7])),f>8&&(m+=oo(u,d[8])),f>9&&(m+=oo(p,d[9]));var g=yr(t,e.nodeIndex).renderText;t.renderer.setValue(g,m)}return h}(t,e,n,r,i,o,a,s,c,l,u,p);case 16384:return f=n,m=r,g=i,y=o,v=a,b=s,_=c,w=l,C=u,x=p,E=br(h=t,(d=e).nodeIndex),S=E.instance,k=!1,O=void 0,(P=d.bindings.length)>0&&Dr(h,d,0,f)&&(k=!0,O=$i(h,E,d,0,f,O)),P>1&&Dr(h,d,1,m)&&(k=!0,O=$i(h,E,d,1,m,O)),P>2&&Dr(h,d,2,g)&&(k=!0,O=$i(h,E,d,2,g,O)),P>3&&Dr(h,d,3,y)&&(k=!0,O=$i(h,E,d,3,y,O)),P>4&&Dr(h,d,4,v)&&(k=!0,O=$i(h,E,d,4,v,O)),P>5&&Dr(h,d,5,b)&&(k=!0,O=$i(h,E,d,5,b,O)),P>6&&Dr(h,d,6,_)&&(k=!0,O=$i(h,E,d,6,_,O)),P>7&&Dr(h,d,7,w)&&(k=!0,O=$i(h,E,d,7,w,O)),P>8&&Dr(h,d,8,C)&&(k=!0,O=$i(h,E,d,8,C,O)),P>9&&Dr(h,d,9,x)&&(k=!0,O=$i(h,E,d,9,x,O)),O&&S.ngOnChanges(O),65536&d.flags&&gr(h,256,d.nodeIndex)&&S.ngOnInit(),262144&d.flags&&S.ngDoCheck(),k;case 32:case 64:case 128:return function(t,e,n,r,i,o,a,s,c,l,u,p){var h=e.bindings,d=!1,f=h.length;if(f>0&&Nr(t,e,0,n)&&(d=!0),f>1&&Nr(t,e,1,r)&&(d=!0),f>2&&Nr(t,e,2,i)&&(d=!0),f>3&&Nr(t,e,3,o)&&(d=!0),f>4&&Nr(t,e,4,a)&&(d=!0),f>5&&Nr(t,e,5,s)&&(d=!0),f>6&&Nr(t,e,6,c)&&(d=!0),f>7&&Nr(t,e,7,l)&&(d=!0),f>8&&Nr(t,e,8,u)&&(d=!0),f>9&&Nr(t,e,9,p)&&(d=!0),d){var m=_r(t,e.nodeIndex),g=void 0;switch(201347067&e.flags){case 32:g=new Array(h.length),f>0&&(g[0]=n),f>1&&(g[1]=r),f>2&&(g[2]=i),f>3&&(g[3]=o),f>4&&(g[4]=a),f>5&&(g[5]=s),f>6&&(g[6]=c),f>7&&(g[7]=l),f>8&&(g[8]=u),f>9&&(g[9]=p);break;case 64:g={},f>0&&(g[h[0].name]=n),f>1&&(g[h[1].name]=r),f>2&&(g[h[2].name]=i),f>3&&(g[h[3].name]=o),f>4&&(g[h[4].name]=a),f>5&&(g[h[5].name]=s),f>6&&(g[h[6].name]=c),f>7&&(g[h[7].name]=l),f>8&&(g[h[8].name]=u),f>9&&(g[h[9].name]=p);break;case 128:var y=n;switch(f){case 1:g=y.transform(n);break;case 2:g=y.transform(r);break;case 3:g=y.transform(r,i);break;case 4:g=y.transform(r,i,o);break;case 5:g=y.transform(r,i,o,a);break;case 6:g=y.transform(r,i,o,a,s);break;case 7:g=y.transform(r,i,o,a,s,c);break;case 8:g=y.transform(r,i,o,a,s,c,l);break;case 9:g=y.transform(r,i,o,a,s,c,l,u);break;case 10:g=y.transform(r,i,o,a,s,c,l,u,p)}}m.value=g}return d}(t,e,n,r,i,o,a,s,c,l,u,p);default:throw"unreachable"}var h,d,f,m,g,y,v,b,_,w,C,x,E,S,k,O,P;var A,T,M,I,R,D,N,L,j,F,V,B,U,H}(t,e,r,i,o,a,s,c,l,u,p,h):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,i=0;i<n.length;i++)li(t,e,i,n[i])&&(r=!0);return r}(t,e,n);case 2:return function(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)Nr(t,e,o,n[o])&&(i=!0);if(i){var a="";for(o=0;o<n.length;o++)a+=oo(n[o],r[o]);a=e.text.prefix+a;var s=yr(t,e.nodeIndex).renderText;t.renderer.setValue(s,a)}return i}(t,e,n);case 16384:return function(t,e,n){for(var r=br(t,e.nodeIndex),i=r.instance,o=!1,a=void 0,s=0;s<n.length;s++)Dr(t,e,s,n[s])&&(o=!0,a=$i(t,r,e,s,n[s],a));return a&&i.ngOnChanges(a),65536&e.flags&&gr(t,256,e.nodeIndex)&&i.ngOnInit(),262144&e.flags&&i.ngDoCheck(),o}(t,e,n);case 32:case 64:case 128:return function(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)Nr(t,e,o,n[o])&&(i=!0);if(i){var a=_r(t,e.nodeIndex),s=void 0;switch(201347067&e.flags){case 32:s=n;break;case 64:for(s={},o=0;o<n.length;o++)s[r[o].name]=n[o];break;case 128:var c=n[0],l=n.slice(1);s=c.transform.apply(c,l)}a.value=s}return i}(t,e,n);default:throw"unreachable"}}(t,e,r)}function vo(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 i=vr(t,n).template._projectedViews;if(i)for(var o=0;o<i.length;o++){var a=i[o];a.state|=32,Fr(a,t)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function bo(t,e,n,r,i,o,a,s,c,l,u,p,h){return 0===n?function(t,e,n,r,i,o,a,s,c,l,u,p){var h=e.bindings.length;h>0&&Lr(t,e,0,n);h>1&&Lr(t,e,1,r);h>2&&Lr(t,e,2,i);h>3&&Lr(t,e,3,o);h>4&&Lr(t,e,4,a);h>5&&Lr(t,e,5,s);h>6&&Lr(t,e,6,c);h>7&&Lr(t,e,7,l);h>8&&Lr(t,e,8,u);h>9&&Lr(t,e,9,p)}(t,e,r,i,o,a,s,c,l,u,p,h):function(t,e,n){for(var r=0;r<n.length;r++)Lr(t,e,r,n[r])}(t,e,r),!1}function _o(t,e){if(wr(t,e.nodeIndex).dirty)throw Er(xr.createDebugContext(t,e.nodeIndex),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!=(1&t.state))}function wo(t){if(!(128&t.state)){if(Eo(t,Co.Destroy),xo(t,Co.Destroy),Xi(t,131072),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();!function(t){if(16&t.state){var e=Br(t);if(e){var n=e.template._projectedViews;n&&(_i(n,n.indexOf(t)),xr.dirtyParentQueries(t))}}}(t),t.renderer.destroyNode&&function(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(vr(t,n).renderElement):2&r.flags?t.renderer.destroyNode(yr(t,n).renderText):(67108864&r.flags||134217728&r.flags)&&wr(t,n).destroy()}}(t),Wr(t)&&t.renderer.destroy(),t.state|=128}}var Co={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};function xo(t,e){var n=t.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];33554432&i.flags?So(vr(t,r).componentView,e):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function Eo(t,e){var n=t.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];if(16777216&i.flags)for(var o=vr(t,r).viewContainer._embeddedViews,a=0;a<o.length;a++)So(o[a],e);else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function So(t,e){var n=t.state;switch(e){case Co.CheckNoChanges:0==(128&n)&&(12==(12&n)?mo(t):64&n&&ko(t,Co.CheckNoChangesProjectedViews));break;case Co.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?mo(t):64&n&&ko(t,e));break;case Co.CheckAndUpdate:0==(128&n)&&(12==(12&n)?go(t):64&n&&ko(t,Co.CheckAndUpdateProjectedViews));break;case Co.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?go(t):64&n&&ko(t,e));break;case Co.Destroy:wo(t);break;case Co.CreateViewNodes:fo(t)}}function ko(t,e){Eo(t,e),xo(t,e)}function Oo(t,e,n,r){if(t.def.nodeFlags&e&&t.def.nodeFlags&n)for(var i=t.def.nodes.length,o=0;o<i;o++){var a=t.def.nodes[o];if(a.flags&e&&a.flags&n)switch(xr.setCurrentNode(t,a.nodeIndex),r){case 0:to(t,a);break;case 1:_o(t,a)}a.childFlags&e&&a.childFlags&n||(o+=a.childCount)}}Co[Co.CreateViewNodes]="CreateViewNodes",Co[Co.CheckNoChanges]="CheckNoChanges",Co[Co.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",Co[Co.CheckAndUpdate]="CheckAndUpdate",Co[Co.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",Co[Co.Destroy]="Destroy";var Po=!1;function Ao(){if(!Po){Po=!0;var t=Je()?{setCurrentNode:Qo,createRootView:Mo,createEmbeddedView:Ro,createComponentView:Do,createNgModuleRef:No,overrideProvider:Fo,overrideComponentView:Vo,clearOverrides:Bo,checkAndUpdateView:Wo,checkNoChangesView:Go,destroyView:qo,createDebugContext:function(t,e){return new ca(t,e)},handleEvent:Zo,updateDirectives:Jo,updateRenderer:ta}:{setCurrentNode:function(){},createRootView:To,createEmbeddedView:co,createComponentView:uo,createNgModuleRef:Mi,overrideProvider:Or,overrideComponentView:Or,clearOverrides:Or,checkAndUpdateView:go,checkNoChangesView:mo,destroyView:wo,createDebugContext:function(t,e){return new ca(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?Ho:zo,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?Ho:zo,t)}};xr.setCurrentNode=t.setCurrentNode,xr.createRootView=t.createRootView,xr.createEmbeddedView=t.createEmbeddedView,xr.createComponentView=t.createComponentView,xr.createNgModuleRef=t.createNgModuleRef,xr.overrideProvider=t.overrideProvider,xr.overrideComponentView=t.overrideComponentView,xr.clearOverrides=t.clearOverrides,xr.checkAndUpdateView=t.checkAndUpdateView,xr.checkNoChangesView=t.checkNoChangesView,xr.destroyView=t.destroyView,xr.resolveDep=Yi,xr.createDebugContext=t.createDebugContext,xr.handleEvent=t.handleEvent,xr.updateDirectives=t.updateDirectives,xr.updateRenderer=t.updateRenderer,xr.dirtyParentQueries=Ji}}function To(t,e,n,r,i,o){return lo(Io(t,i,i.injector.get(fn),e,n),r,o)}function Mo(t,e,n,r,i,o){var a=i.injector.get(fn),s=Io(t,i,new ha(a),e,n),c=Uo(r);return ua(Xo.create,lo,null,[s,c,o])}function Io(t,e,n,r,i){var o=e.injector.get(fr),a=e.injector.get(St);return{ngModule:e,injector:t,projectableNodes:r,selectorOrNode:i,sanitizer:o,rendererFactory:n,renderer:n.createRenderer(null,null),errorHandler:a}}function Ro(t,e,n,r){var i=Uo(n);return ua(Xo.create,co,null,[t,e,i,r])}function Do(t,e,n,r){var i=jo.get(e.element.componentProvider.provider.token);return n=i||Uo(n),ua(Xo.create,uo,null,[t,e,n,r])}function No(t,e,n,r){return Mi(t,e,n,function(t){var e=function(t){var e=!1,n=!1;if(0===Lo.size)return{hasOverrides:e,hasDeprecatedOverrides:n};return t.providers.forEach(function(t){var r=Lo.get(t.token);3840&t.flags&&r&&(e=!0,n=n||r.deprecatedBehavior)}),{hasOverrides:e,hasDeprecatedOverrides:n}}(t),n=e.hasOverrides,r=e.hasDeprecatedOverrides;if(!n)return t;return function(t){for(var e=0;e<t.providers.length;e++){var n=t.providers[e];r&&(n.flags|=4096);var i=Lo.get(n.token);i&&(n.flags=-3841&n.flags|i.flags,n.deps=Yr(i.deps),n.value=i.value)}}(t=t.factory(function(){return Or})),t}(r))}var Lo=new Map,jo=new Map;function Fo(t){Lo.set(t.token,t)}function Vo(t,e){var n=Xr(Xr(Ci(e)).nodes[0].element.componentView);jo.set(t,n)}function Bo(){Lo.clear(),jo.clear()}function Uo(t){if(0===Lo.size)return t;var e=function(t){for(var e=[],n=null,r=0;r<t.nodes.length;r++){var i=t.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&Lo.has(i.provider.token)&&(e.push(n.nodeIndex),n=null)}return e}(t);if(0===e.length)return t;t=t.factory(function(){return Or});for(var n=0;n<e.length;n++)r(t,e[n]);return t;function r(t,e){for(var n=e+1;n<t.nodes.length;n++){var r=t.nodes[n];if(1&r.flags)return;if(3840&r.flags){var i=r.provider,o=Lo.get(i.token);o&&(r.flags=-3841&r.flags|o.flags,i.deps=Yr(o.deps),i.value=o.value)}}}}function Ho(t,e,n,r,i,o,a,s,c,l,u,p,h){var d=t.def.nodes[e];return yo(t,d,n,r,i,o,a,s,c,l,u,p,h),224&d.flags?_r(t,e).value:void 0}function zo(t,e,n,r,i,o,a,s,c,l,u,p,h){var d=t.def.nodes[e];return bo(t,d,n,r,i,o,a,s,c,l,u,p,h),224&d.flags?_r(t,e).value:void 0}function Wo(t){return ua(Xo.detectChanges,go,null,[t])}function Go(t){return ua(Xo.checkNoChanges,mo,null,[t])}function qo(t){return ua(Xo.destroy,wo,null,[t])}var Yo,Ko,$o,Xo={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};function Qo(t,e){Ko=t,$o=e}function Zo(t,e,n,r){return Qo(t,e),ua(Xo.handleEvent,t.def.handleEvent,null,[t,e,n,r])}function Jo(t,e){if(128&t.state)throw kr(Xo[Yo]);return Qo(t,aa(t,0)),t.def.updateDirectives(function(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var a=t.def.nodes[n];0===e?ea(t,a,r,i):na(t,a,r,i);16384&a.flags&&Qo(t,aa(t,n));return 224&a.flags?_r(t,a.nodeIndex).value:void 0},t)}function ta(t,e){if(128&t.state)throw kr(Xo[Yo]);return Qo(t,sa(t,0)),t.def.updateRenderer(function(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var a=t.def.nodes[n];0===e?ea(t,a,r,i):na(t,a,r,i);3&a.flags&&Qo(t,sa(t,n));return 224&a.flags?_r(t,a.nodeIndex).value:void 0},t)}function ea(t,e,n,r){if(yo.apply(void 0,[t,e,n].concat(r))){var i=1===n?r[0]:r;if(16384&e.flags){for(var o={},a=0;a<e.bindings.length;a++){var s=e.bindings[a],c=i[a];8&s.flags&&(o[ra(s.nonMinifiedName)]=oa(c))}var l=e.parent,u=vr(t,l.nodeIndex).renderElement;if(l.element.name)for(var p in o){null!=(c=o[p])?t.renderer.setAttribute(u,p,c):t.renderer.removeAttribute(u,p)}else t.renderer.setValue(u,"bindings="+JSON.stringify(o,null,2))}}}function na(t,e,n,r){bo.apply(void 0,[t,e,n].concat(r))}function ra(t){return"ng-reflect-"+(t=t.replace(/[$@]/g,"_").replace(ia,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()}))}Xo[Xo.create]="create",Xo[Xo.detectChanges]="detectChanges",Xo[Xo.checkNoChanges]="checkNoChanges",Xo[Xo.destroy]="destroy",Xo[Xo.handleEvent]="handleEvent";var ia=/([A-Z])/g;function oa(t){try{return null!=t?t.toString().slice(0,30):t}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function aa(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 sa(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}var ca=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=Ur(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return vr(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return Pi(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.nodeIndex+1;e<=this.elDef.nodeIndex+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){la(this.elView,this.elDef,t);for(var e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&la(this.elView,n,t),e+=n.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=function(t){for(;t&&!Wr(t);)t=t.parent;if(t.parent)return vr(t.parent,Ur(t).nodeIndex);return null}(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?Hr(this.view,this.nodeDef):Hr(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];2&this.nodeDef.flags?(e=this.view.def,n=this.nodeDef.nodeIndex):(e=this.elView.def,n=this.elDef.nodeIndex);var o=function(t,e){for(var n=-1,r=0;r<=e;r++){var i=t.nodes[r];3&i.flags&&n++}return n}(e,n),a=-1;e.factory(function(){return++a===o?(e=t.error).bind.apply(e,[t].concat(r)):Or;var e}),a<o&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,r))},t}();function la(t,e,n){for(var r in e.references)n[r]=no(t,e,e.references[r])}function ua(t,e,n,r){var i,o,a=Yo,s=Ko,c=$o;try{Yo=t;var l=e.apply(n,r);return Ko=s,$o=c,Yo=a,l}catch(t){if(Ct(t)||!Ko)throw t;throw i=t,o=pa(),i instanceof Error||(i=new Error(i.toString())),Sr(i,o),i}}function pa(){return Ko?new ca(Ko,$o):null}var ha=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new da(this.delegate.createRenderer(t,e))},t.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},t.prototype.end=function(){this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},t}(),da=function(){function t(t){this.delegate=t,this.data=this.delegate.data}return t.prototype.destroyNode=function(t){var e;e=Dn(t),Rn.delete(e.nativeNode),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=pa();if(r){var i=new In(n,null,r);i.name=t,Nn(i)}return n},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),n=pa();return n&&Nn(new Mn(e,null,n)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),n=pa();return n&&Nn(new Mn(e,null,n)),e},t.prototype.appendChild=function(t,e){var n=Dn(t),r=Dn(e);n&&r&&n instanceof In&&n.addChild(r),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,n){var r=Dn(t),i=Dn(e),o=Dn(n);r&&i&&r instanceof In&&r.insertBefore(o,i),this.delegate.insertBefore(t,e,n)},t.prototype.removeChild=function(t,e){var n=Dn(t),r=Dn(e);n&&r&&n instanceof In&&n.removeChild(r),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t){var e=this.delegate.selectRootElement(t),n=pa();return n&&Nn(new In(e,null,n)),e},t.prototype.setAttribute=function(t,e,n,r){var i=Dn(t);if(i&&i instanceof In){var o=r?r+":"+e:e;i.attributes[o]=n}this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){var r=Dn(t);if(r&&r instanceof In){var i=n?n+":"+e:e;r.attributes[i]=null}this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){var n=Dn(t);n&&n instanceof In&&(n.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var n=Dn(t);n&&n instanceof In&&(n.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){var i=Dn(t);i&&i instanceof In&&(i.styles[e]=n),this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){var r=Dn(t);r&&r instanceof In&&(r.styles[e]=null),this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){var r=Dn(t);r&&r instanceof In&&(r.properties[e]=n),this.delegate.setProperty(t,e,n)},t.prototype.listen=function(t,e,n){if("string"!=typeof t){var r=Dn(t);r&&r.listeners.push(new Tn(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}();var fa=function(t){function e(e,n,r){var i=t.call(this)||this;return i.moduleType=e,i._bootstrapComponents=n,i._ngModuleDefFactory=r,i}return s(e,t),e.prototype.create=function(t){Ao();var e=Xr(this._ngModuleDefFactory);return xr.createNgModuleRef(this.moduleType,t||rt.NULL,this._bootstrapComponents,e)},e}(ke);function ma(t){return"string"==typeof t?'"'+t+'"':""+t}function ga(t,e,n,r){t!=e&&ba(t,e,n,"==",r)}function ya(t,e){va(t,null,e)}function va(t,e,n){t==e&&ba(t,e,n,"!=")}function ba(t,e,n,r,i){throw void 0===i&&(i=ma),new Error("ASSERT: expected "+n+" "+r+" "+i(e)+" but was "+i(t)+"!")}function _a(t,e){va(t,null,"node"),ga(3&t.flags,e,"Node.type",wa)}function wa(t){return 1==t?"Projection":0==t?"Container":2==t?"View":3==t?"Element":"??? "+t+" ???"}function Ca(t,e,n,r){ngDevMode&&_a(t,0),ngDevMode&&_a(e,2);var i=function(t){for(var e=t;e;){ngDevMode&&_a(e,0);var n=e.data.renderParent;if(null!==n)return n.native;var r=e.parent;if(ngDevMode&&ya(r,"container.parent"),3==(3&r.flags))return null;ngDevMode&&_a(r,2),e=r.parent}return null}(t),o=e.child;if(i)for(;o;){var a=3&o.flags,s=null,c=t.view.renderer,l=c.listen;if(3===a)n?l?c.insertBefore(i,o.native,r):i.insertBefore(o.native,r,!0):l?c.removeChild(i,o.native):i.removeChild(o.native),s=o.next;else if(0===a){var u=o.data;n?l?c.appendChild(i,o.native):i.appendChild(o.native):l?c.removeChild(i,o.native):i.removeChild(o.native),s=u.views.length?u.views[0].child:null}else s=1===a?o.data[0]:o.child;if(null===s){for(;o&&!o.next;)(o=o.parent)===e&&(o=null);o=o&&o.next}else o=s}}function xa(t,e){var n=t.data.views,r=n[e];return e>0&&Ea(n[e-1],r.next),n.splice(e,1),function(t){for(var e=t;e;){var n=null;if(e.views&&e.views.length?n=e.views[0].data:e.child?n=e.child:e.next&&(ka(e),n=e.next),null==n){for(;e&&!e.next;)ka(e),e=Sa(e,t);ka(e||t),n=e&&e.next}e=n}}(r.data),Ca(t,r,!1),t.query&&t.query.removeView(t,r,e),r}function Ea(t,e){t.next=e,t.data.next=e?e.data:null}function Sa(t,e){var n;return(n=t.node)&&2==(3&n.flags)?n.parent.data:t.parent===e?null:t.parent}function ka(t){if(t.cleanup){for(var e=t.cleanup,n=0;n<e.length-1;n+=2)"string"==typeof e[n]?(e[n+1].removeEventListener(e[n],e[n+2],e[n+3]),n+=2):e[n].call(e[n+1]);t.cleanup=null}}function Oa(t,e,n){if(null!==e&&3==(3&t.flags)&&(t.view!==n||null===t.data)){var r=n.renderer;return r.listen?r.appendChild(t.native,e):t.native.appendChild(e),!0}return!1}function Pa(t){return"function"==typeof t?t.name||t:"string"==typeof t?t:null==t?"":""+t}"undefined"==typeof ngDevMode&&("undefined"!=typeof window&&(window.ngDevMode=!0),"undefined"!=typeof self&&(self.ngDevMode=!0),void 0!==r&&(r.ngDevMode=!0));!function(){function t(){this.dirty=!1,this._valuesTree=null,this._values=null}Object.defineProperty(t.prototype,"length",{get:function(){return ngDevMode&&ya(this._values,"refreshed"),this._values.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){ngDevMode&&ya(this._values,"refreshed");var t=this._values;return t.length?t[0]:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){ngDevMode&&ya(this._values,"refreshed");var t=this._values;return t.length?t[t.length-1]:null},enumerable:!0,configurable:!0}),t.prototype._refresh=function(){return null===this._values&&(this._values=this._valuesTree,!0)},t.prototype.map=function(t){throw new Error("Method not implemented.")},t.prototype.filter=function(t){throw new Error("Method not implemented.")},t.prototype.find=function(t){throw new Error("Method not implemented.")},t.prototype.reduce=function(t,e){throw new Error("Method not implemented.")},t.prototype.forEach=function(t){throw new Error("Method not implemented.")},t.prototype.some=function(t){throw new Error("Method not implemented.")},t.prototype.toArray=function(){return ngDevMode&&ya(this._values,"refreshed"),this._values},t.prototype.toString=function(){throw new Error("Method not implemented.")},t.prototype.reset=function(t){throw new Error("Method not implemented.")},t.prototype.notifyOnChanges=function(){throw new Error("Method not implemented.")},t.prototype.setDirty=function(){throw new Error("Method not implemented.")},t.prototype.destroy=function(){throw new Error("Method not implemented.")}}();var Aa={Important:1,DashCase:2};Aa[Aa.Important]="Important",Aa[Aa.DashCase]="DashCase";var Ta,Ma,Ia,Ra,Da,Na,La,ja,Fa,Va,Ba,Ua={createRenderer:function(t,e){return document}},Ha="__ngHostLNode__";function za(t,e){var n=Na;return Fa=t.data,Va=t.bindingStartIndex||0,Da=t.ngStaticData,ja=t.creationMode,Ba=t.viewHookStartIndex,t.cleanup,Ta=t.renderer,null!=e&&(Ia=e,Ra=!0),Na=t,n}function Wa(t){!function(){if(null==Ba)return;var t=Ba,e=t;for(;t<Fa.length;)Fa[t+1].call(Fa[t+2]),16===Fa[t]&&(e<t&&(Fa[e]=Fa[t],Fa[e+1]=Fa[t+1],Fa[e+2]=Fa[t+2]),e+=3),t+=3;Fa.length=e}(),za(t,null)}function Ga(t,e,n){return{parent:Na,id:t,node:null,data:[],ngStaticData:n,cleanup:null,renderer:e,child:null,tail:null,next:null,bindingStartIndex:null,creationMode:!0,viewHookStartIndex:null}}function qa(t,e,n,r){var i=Ra?Ia:Ia&&Ia.parent,o=(Ra?La:Ia&&Ia.query)||i&&i.query&&i.query.child(),a=null!=r,s={flags:e,native:n,view:Na,parent:i,child:null,next:null,nodeInjector:i?i.nodeInjector:null,data:a?r:null,query:o,staticData:null};return 2==(2&e)&&a&&(ngDevMode&&ga(r.node,null,"viewState.node"),r.node=s),null!=t&&(ngDevMode&&ga(Fa.length,t,"data.length not in sequence"),Fa[t]=s,t>=Da.length?Da[t]=null:s.staticData=Da[t],Ra?(La=null,Ia.view!==Na&&2!=(3&Ia.flags)||(ngDevMode&&ga(Ia.child,null,"previousNode.child"),Ia.child=s)):Ia&&(ngDevMode&&ga(Ia.next,null,"previousNode.next"),Ia.next=s)),Ia=s,Ra=!0,s}function Ya(t){return t.ngStaticData||(t.ngStaticData=[])}function Ka(t,e){return new Error("Renderer: "+t+" ["+Pa(e)+"]")}function $a(t,e){Ra=!1,Ia=null,qa(0,3,t,Ga(-1,Ta,Ya(e.template)))}function Xa(t,e,n,r){return{tagName:t,attrs:e,localNames:r?[r,-1]:null,initialInputs:void 0,inputs:void 0,outputs:void 0,containerStatic:n}}function Qa(t,e){ngDevMode&&ga(Na.bindingStartIndex,null,"bindingStartIndex");var n=null!=e?Ta.createText?Ta.createText(Pa(e)):Ta.createTextNode(Pa(e)):null,r=qa(t,3,n);Ra=!1,Oa(r.parent,n,Na)}function Za(t,e,n,r){var i;if(null==e)ngDevMode&&is(t),i=Fa[t];else{ngDevMode&&ga(Na.bindingStartIndex,null,"bindingStartIndex"),ngDevMode&&ga(Ra,!0,"isParent");var o=Ia.flags;if(0===(4092&o)?o=t<<12|4|3&o:o+=4,Ia.flags=o,ngDevMode&&is(t-1),Object.defineProperty(e,Ha,{enumerable:!1,value:Ia}),Fa[t]=i=e,t>=Da.length&&(Da[t]=n,r)){ngDevMode&&ya(Ia.staticData,"previousOrParentNode.staticData");var a=Ia.staticData;(a.localNames||(a.localNames=[])).push(r,t)}var s=n.diPublic;s&&s(n);var c=Ia.staticData;c&&c.attrs&&function(t,e,n){var r=((4092&Ia.flags)>>2)-1,i=n.initialInputs;(void 0===i||r>=i.length)&&(i=function(t,e,n){var r=n.initialInputs||(n.initialInputs=[]);r[t]=null;for(var i=n.attrs,o=0;o<i.length;o+=2){var a=i[o],s=e[a];if(void 0!==s){var c=r[t]||(r[t]=[]);c.push(s,i[1|o])}}return r}(r,e,n));var o=i[r];if(o)for(var a=0;a<o.length;a+=2)t[o[a]]=o[1|a]}(i,n.inputs,c)}return i}Na=Ga(null,null,[]);var Ja=function(t,e,n){ngDevMode&&is(e);var r=Fa[e];ngDevMode&&_a(r,3),ngDevMode&&va(r.data,null,"isComponent"),ngDevMode&&is(t);var i=r.data;ngDevMode&&va(i,null,"hostView");var o=Fa[t],a=za(i,r);try{n(o,ja)}finally{i.creationMode=!1,Wa(a)}};function ts(t){return Na.tail?Na.tail.next=t:Na.child=t,Na.tail=t,t}var es={};function ns(t){var e,n,r;return(e=ja)?("number"!=typeof Na.bindingStartIndex&&(Va=Na.bindingStartIndex=Fa.length),Fa[Va++]=t):((e=t!==es&&(n=Fa[Va],r=t,!(n!=n&&r!=r)&&n!==r))&&(Fa[Va]=t),Va++),e?t:es}function rs(){va(Ia.parent,null,"isParent")}function is(t,e){var n,r;null==e&&(e=Fa),(n=e?e.length:0)<(r=t)&&ba(n,r,"data.length",">")}function os(t){ngDevMode&&ya(t,"component");var e=t[Ha];ngDevMode&&!e&&Ka("Not a directive instance",t),ngDevMode&&ya(e.data,"hostNode.data"),function(t,e,n,r){var i=za(e,t);try{Ma.begin&&Ma.begin(),r?(Da=r.ngStaticData||(r.ngStaticData=[]),r(n,ja)):n.constructor.ngComponentDef.r(1,0)}finally{Ma.end&&Ma.end(),e.creationMode=!1,Wa(i)}}(e,e.view,t),!1}var as={};function ss(){}function cs(t){if(null==t)return as;var e={};for(var n in t)e[t[n]]=n;return e}function ls(t,e){return{type:7,name:t,definitions:e,options:{}}}function us(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}}function ps(t,e){return void 0===e&&(e=null),{type:3,steps:t,options:e}}function hs(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}}function ds(t){return{type:6,styles:t,offset:null}}function fs(t,e,n){return{type:0,name:t,styles:e,options:n}}function ms(t){return{type:5,steps:t}}function gs(t,e,n){return void 0===n&&(n=null),{type:1,expr:t,animation:e,options:n}}t.createPlatform=en,t.assertPlatform=rn,t.destroyPlatform=function(){Ke&&!Ke.destroyed&&Ke.destroy()},t.getPlatform=on,t.PlatformRef=an,t.ApplicationRef=cn,t.enableProdMode=function(){if(Qe)throw new Error("Cannot enable prod mode after platform setup.");Xe=!1},t.isDevMode=Je,t.createPlatformFactory=nn,t.NgProbeToken=tn,t.APP_ID=ee,t.PACKAGE_ROOT_URL=ce,t.PLATFORM_INITIALIZER=oe,t.PLATFORM_ID=ae,t.APP_BOOTSTRAP_LISTENER=se,t.APP_INITIALIZER=Jt,t.ApplicationInitStatus=te,t.DebugElement=In,t.DebugNode=Mn,t.asNativeElements=function(t){return t.map(function(t){return t.nativeElement})},t.getDebugNode=Dn,t.Testability=qe,t.TestabilityRegistry=Ye,t.setTestabilityGetter=function(t){$e=t},t.TRANSLATIONS=ar,t.TRANSLATIONS_FORMAT=sr,t.LOCALE_ID=or,t.MissingTranslationStrategy=cr,t.ApplicationModule=hr,t.wtfCreateScope=De,t.wtfLeave=Ne,t.wtfStartTimeRange=Le,t.wtfEndTimeRange=je,t.Type=It,t.EventEmitter=Fe,t.ErrorHandler=St,t.Sanitizer=fr,t.SecurityContext=dr,t.ANALYZE_FOR_ENTRY_COMPONENTS=y,t.Attribute=v,t.ContentChild=w,t.ContentChildren=_,t.Query=b,t.ViewChild=x,t.ViewChildren=C,t.Component=O,t.Directive=k,t.HostBinding=M,t.HostListener=I,t.Input=A,t.Output=T,t.Pipe=P,t.CUSTOM_ELEMENTS_SCHEMA={name:"custom-elements"},t.NO_ERRORS_SCHEMA={name:"no-errors-schema"},t.NgModule=R,t.ViewEncapsulation=D,t.Version=N,t.VERSION=L,t.forwardRef=Q,t.resolveForwardRef=Z,t.Injector=rt,t.ReflectiveInjector=Xt,t.ResolvedReflectiveFactory=Ht,t.ReflectiveKey=Tt,t.InjectionToken=l,t.Inject=j,t.Optional=F,t.Injectable=V,t.Self=B,t.SkipSelf=U,t.Host=H,t.NgZone=Ve,t.RenderComponentType=un,t.Renderer=hn,t.Renderer2=gn,t.RendererFactory2=fn,t.RendererStyleFlags2=mn,t.RootRenderer=dn,t.COMPILER_OPTIONS=de,t.Compiler=he,t.CompilerFactory=fe,t.ModuleWithComponentFactories=ue,t.ComponentFactory=ge,t.ComponentRef=me,t.ComponentFactoryResolver=Ce,t.ElementRef=yn,t.NgModuleFactory=ke,t.NgModuleRef=Se,t.NgModuleFactoryLoader=vn,t.getModuleFactory=function(t){var e=bn.get(t);if(!e)throw new Error("No module with ID "+t+" loaded");return e},t.QueryList=_n,t.SystemJsNgModuleLoader=xn,t.SystemJsNgModuleLoaderConfig=wn,t.TemplateRef=Sn,t.ViewContainerRef=kn,t.EmbeddedViewRef=An,t.ViewRef=Pn,t.ChangeDetectionStrategy=E,t.ChangeDetectorRef=On,t.DefaultIterableDiffer=Wn,t.IterableDiffers=Zn,t.KeyValueDiffers=Jn,t.SimpleChange=Vn,t.WrappedValue=jn,t.platformCore=ir,t.ɵALLOW_MULTIPLE_PLATFORMS=Ze,t.ɵAPP_ID_RANDOM_PROVIDER=re,t.ɵValueUnwrapper=Fn,t.ɵdevModeEqual=Ln,t.ɵisListLikeIterable=Bn,t.ɵChangeDetectorStatus=S,t.ɵisDefaultChangeDetectionStrategy=function(t){return null==t||t===E.Default},t.ɵConsole=le,t.ɵComponentFactory=ge,t.ɵCodegenComponentFactoryResolver=xe,t.ɵReflectionCapabilities=Nt,t.ɵRenderDebugInfo=pn,t.ɵglobal=G,t.ɵlooseIdentical=$,t.ɵstringify=X,t.ɵmakeDecorator=d,t.ɵisObservable=function(t){return!!t&&"function"==typeof t.subscribe},t.ɵisPromise=Zt,t.ɵclearOverrides=function(){return Ao(),xr.clearOverrides()},t.ɵoverrideComponentView=function(t,e){return Ao(),xr.overrideComponentView(t,e)},t.ɵoverrideProvider=function(t){return Ao(),xr.overrideProvider(t)},t.ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR=qi,t.ɵdefineComponent=function(t){var e={type:t.type,diPublic:null,n:t.factory,tag:t.tag||null,template:t.template||null,r:t.refresh||function(e,n){Ja(e,n,t.template)},h:t.hostBindings||ss,inputs:cs(t.inputs),outputs:cs(t.outputs),methods:cs(t.methods),rendererType:Rr(t.rendererType)||null},n=t.features;return n&&n.forEach(function(t){return t(e)}),e},t.ɵdetectChanges=os,t.ɵrenderComponent=function(t,e){void 0===e&&(e={});var n,r=e.rendererFactory||Ua,i=t.ngComponentDef,o=function(t,e){ngDevMode&&is(-1),Ma=t;var n=t.createRenderer(null,null),r="string"==typeof e?n.selectRootElement?n.selectRootElement(e):n.querySelector(e):e;if(ngDevMode&&!r)throw Ka("string"==typeof e?"Host node with selector not found:":"Host node is required:",e);return r}(r,e.host||i.tag),a=za(Ga(-1,r.createRenderer(o,i.rendererType),[]),null);try{$a(o,i),n=Za(1,i.n(),i)}finally{Wa(a)}return e.features&&e.features.forEach(function(t){return t(n,i)}),os(n),n},t.ɵC=function(t,e,n,r,i){ngDevMode&&ga(Na.bindingStartIndex,null,"bindingStartIndex");var o=Ta.createComment(ngDevMode?"container":""),a=null,s=Ra?Ia:Ia.parent;ngDevMode&&va(s,null,"currentParent"),Oa(s,o,Na)&&(a=s);var c=qa(t,0,o,{views:[],nextIndex:0,renderParent:a,template:null==e?null:e,next:null,parent:Na});null==c.staticData&&(c.staticData=Da[t]=Xa(n||null,r||null,[],i||null)),ts(c.data)},t.ɵD=Za,t.ɵE=function(t,e,n,r){var i,o;if(null==e){var a=Fa[t];o=a&&a.native}else{ngDevMode&&ga(Na.bindingStartIndex,null,"bindingStartIndex");var s="string"!=typeof e,c=s?e.tag:e;if(null===c)throw"for now name is required";o=Ta.createElement(c);var l=null;if(s){var u=Ya(e.template);l=ts(Ga(-1,Ma.createRenderer(o,e.rendererType),u))}null==(i=qa(t,3,o,l)).staticData&&(ngDevMode&&is(t-1),i.staticData=Da[t]=Xa(c,n||null,null,r||null)),n&&function(t,e){ngDevMode&&ga(e.length%2,0,"attrs.length % 2");for(var n=Ta.setAttribute,r=0;r<e.length;r+=2)n?Ta.setAttribute(t,e[r],e[1|r]):t.setAttribute(e[r],e[1|r])}(o,n),Oa(i.parent,o,Na)}return o},t.ɵT=Qa,t.ɵV=function(t){var e=Ra?Ia:Ia.parent;ngDevMode&&_a(e,0);var n=e.data,r=n.views,i=!ja&&n.nextIndex<r.length&&r[n.nextIndex],o=i&&t===i.data.id;if(o)Ia=r[n.nextIndex++],ngDevMode&&_a(Ia,2),Ra=!0,za(i.data,Ia);else{var a=Ga(t,Ta,function(t,e){ngDevMode&&_a(e,0);var n=e.staticData.containerStatic;return(t>=n.length||null==n[t])&&(n[t]=[]),n[t]}(t,e));za(a,qa(null,2,null,a)),n.nextIndex++}return!o},t.ɵb=ns,t.ɵb1=function(t,e,n){return ns(e)===es?es:t+Pa(e)+n},t.ɵc=function(){Ra?Ra=!1:(ngDevMode&&rs(),Ia=Ia.parent),ngDevMode&&_a(Ia,0);var t=Ia.query;t&&t.addNode(Ia)},t.ɵcR=function(t){ngDevMode&&is(t),Ia=Fa[t],ngDevMode&&_a(Ia,0),Ra=!0,Ia.data.nextIndex=0},t.ɵcr=function(){Ra?Ra=!1:(ngDevMode&&_a(Ia,2),ngDevMode&&rs(),Ia=Ia.parent),ngDevMode&&_a(Ia,0);var t=Ia;ngDevMode&&_a(t,0);for(var e=t.data.nextIndex;e<t.data.views.length;)xa(t,e)},t.ɵe=function(){Ra?Ra=!1:(ngDevMode&&rs(),Ia=Ia.parent),ngDevMode&&_a(Ia,3);var t=Ia.query;t&&t.addNode(Ia)},t.ɵp=function(t,e,n){if(n!==es){var r=Fa[t],i=r.staticData;void 0===i.inputs&&(i.inputs=null,i=function(t,e,n){void 0===n&&(n=!1);for(var r=t>>12,i=r,o=r+((4092&t)>>2);i<o;i++){var a=Da[i],s=n?a.inputs:a.outputs;for(var c in s)if(s.hasOwnProperty(c)){var l=s[c],u=n?e.inputs||(e.inputs={}):e.outputs||(e.outputs={}),p=u.hasOwnProperty(c);p?u[c].push(i,l):u[c]=[i,l]}}return e}(r.flags,i,!0));var o,a=i.inputs;if(a&&(o=a[e]))!function(t,e){for(var n=0;n<t.length;n+=2)ngDevMode&&is(t[n]),Fa[t[n]][t[1|n]]=e}(o,n);else{var s=r.native;Ta.setProperty?Ta.setProperty(s,e,n):s.setProperty?s.setProperty(e,n):s[e]=n}}},t.ɵs=function(t,e,n,r){if(n!==es){var i=Fa[t];null==n?Ta.removeStyle?Ta.removeStyle(i.native,e,Aa.DashCase):i.native.style.removeProperty(e):Ta.setStyle?Ta.setStyle(i.native,e,r?Pa(n)+r:Pa(n),Aa.DashCase):i.native.style.setProperty(e,r?Pa(n)+r:Pa(n))}},t.ɵt=function(t,e){var n=t<Fa.length&&Fa[t];n&&n.native?e!==es&&(Ta.setValue?Ta.setValue(n.native,Pa(e)):n.native.textContent=Pa(e)):n?(n.native=Ta.createText?Ta.createText(Pa(e)):Ta.createTextNode(Pa(e)),function(t,e){var n=t.parent;if(3==(3&n.flags)&&(n.view!==e||null===n.data)){for(var r=t.next,i=null;r&&null===(i=r.native);)r=r.next;var o=e.renderer;o.listen?o.insertBefore(n.native,t.native,i):n.native.insertBefore(t.native,i,!1)}}(n,Na)):Qa(t,e)},t.ɵv=function(){Ra=!1;var t=Ia=Na.node,e=Ia.parent;ngDevMode&&_a(t,2),ngDevMode&&_a(e,0);var n,r,i,o,a,s,c,l,u,p=e.data,h=p.nextIndex<=p.views.length?p.views[p.nextIndex-1]:null;(null==h||h.data.id!==t.data.id)&&(n=e,r=t,i=p.nextIndex-1,l=n.data,u=l.views,i>0&&Ea(u[i-1],r),i<u.length&&u[i].data.id!==r.data.id?(Ea(r,u[i]),u.splice(i,0,r)):i>=u.length&&u.push(r),l.nextIndex<=i&&l.nextIndex++,null!==n.data.renderParent&&Ca(n,r,!0,(o=i,a=l,s=n.native,c=a.views,o+1<c.length?c[o+1].child.native:s)),n.query&&n.query.insertView(n,r,i),Na.creationMode=!1),Wa(Na.parent),ngDevMode&&ga(Ra,!1,"isParent"),ngDevMode&&_a(Ia,2)},t.ɵregisterModuleFactory=function(t,e){var n=bn.get(t);if(n)throw new Error("Duplicate module registered for "+t+" - "+n.moduleType.name+" vs "+e.moduleType.name);bn.set(t,e)},t.ɵEMPTY_ARRAY=[],t.ɵEMPTY_MAP={},t.ɵand=function(t,e,n,r,i,o){t|=1;var a=qr(e),s=a.matchedQueries,c=a.references;return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:s,matchedQueryIds:a.matchedQueryIds,references:c,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:o?Xr(o):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||Or},provider:null,text:null,query:null,ngContent:null}},t.ɵccf=function(t,e,n,r,i,o){return new xi(t,e,n,r,i,o)},t.ɵcmf=function(t,e,n){return new fa(t,e,n)},t.ɵcrt=function(t){return{id:Tr,styles:t.styles,encapsulation:t.encapsulation,data:t.data}},t.ɵdid=function(t,e,n,r,i,o,a,s){var c=[];if(a)for(var l in a){var u=a[l],p=u[0],h=u[1];c[p]={flags:8,name:l,nonMinifiedName:h,ns:null,securityContext:null,suffix:null}}var d=[];if(s)for(var f in s)d.push({type:1,propName:f,target:null,eventName:s[f]});return Bi(t,e|=16384,n,r,i,i,o,c,d)},t.ɵeld=function(t,e,n,r,i,o,a,s,c,l,u,p){void 0===a&&(a=[]),l||(l=Or);var h=qr(n),d=h.matchedQueries,f=h.references,m=h.matchedQueryIds,g=null,y=null;o&&(g=(R=ri(o))[0],y=R[1]),s=s||[];for(var v=new Array(s.length),b=0;b<s.length;b++){var _=s[b],w=_[0],C=_[1],x=_[2],E=ri(C),S=E[0],k=E[1],O=void 0,P=void 0;switch(15&w){case 4:P=x;break;case 1:case 8:O=x}v[b]={flags:w,ns:S,name:k,nonMinifiedName:k,securityContext:O,suffix:P}}c=c||[];var A=new Array(c.length);for(b=0;b<c.length;b++){var T=c[b],M=T[0],I=T[1];A[b]={type:0,target:M,eventName:I,propName:null}}var R,D=(a=a||[]).map(function(t){var e=t[0],n=t[1],r=ri(e);return[r[0],r[1],n]});return p=Rr(p),u&&(e|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:m,references:f,ngContentIndex:r,childCount:i,bindings:v,bindingFlags:ii(v),outputs:A,element:{ns:g,name:y,attrs:D,template:null,componentProvider:null,componentView:u||null,componentRendererType:p,publicProviders:null,allProviders:null,handleEvent:l||Or},provider:null,text:null,query:null,ngContent:null}},t.ɵelementEventFullName=zr,t.ɵgetComponentViewDefinitionFactory=Ci,t.ɵinlineInterpolate=function(t,e,n,r,i,o,a,s,c,l,u,p,h,d,f,m,g,y,v,b){switch(t){case 1:return e+oi(n)+r;case 2:return e+oi(n)+r+oi(i)+o;case 3:return e+oi(n)+r+oi(i)+o+oi(a)+s;case 4:return e+oi(n)+r+oi(i)+o+oi(a)+s+oi(c)+l;case 5:return e+oi(n)+r+oi(i)+o+oi(a)+s+oi(c)+l+oi(u)+p;case 6:return e+oi(n)+r+oi(i)+o+oi(a)+s+oi(c)+l+oi(u)+p+oi(h)+d;case 7:return e+oi(n)+r+oi(i)+o+oi(a)+s+oi(c)+l+oi(u)+p+oi(h)+d+oi(f)+m;case 8:return e+oi(n)+r+oi(i)+o+oi(a)+s+oi(c)+l+oi(u)+p+oi(h)+d+oi(f)+m+oi(g)+y;case 9:return e+oi(n)+r+oi(i)+o+oi(a)+s+oi(c)+l+oi(u)+p+oi(h)+d+oi(f)+m+oi(g)+y+oi(v)+b;default:throw new Error("Does not support more than 9 expressions")}},t.ɵinterpolate=function(t,e){for(var n="",r=0;r<2*t;r+=2)n=n+e[r]+oi(e[r+1]);return n+e[2*t]},t.ɵmod=function(t){for(var e={},n=0;n<t.length;n++){var r=t[n];r.index=n,e[Ar(r.token)]=r}return{factory:null,providersByKey:e,providers:t}},t.ɵmpd=function(t,e,n,r){return n=Z(n),{index:-1,deps:Yr(r,X(e)),flags:t,token:e,value:n}},t.ɵncd=function(t,e){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-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}}},t.ɵnov=function(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=vr(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return yr(t,n.nodeIndex).renderText;if(20240&n.flags)return br(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)},t.ɵpid=function(t,e,n){return Bi(-1,t|=16,null,0,e,e,n)},t.ɵprd=function(t,e,n,r,i){return Bi(-1,t,e,0,n,r,i)},t.ɵpad=function(t,e){return ro(32,t,new Array(e))},t.ɵpod=function(t,e){for(var n=Object.keys(e),r=n.length,i=new Array(r),o=0;o<r;o++){var a=n[o];i[e[a]]=a}return ro(64,t,i)},t.ɵppd=function(t,e){return ro(128,t,new Array(e+1))},t.ɵqud=function(t,e,n){var r=[];for(var i in n){var o=n[i];r.push({propName:i,bindingType:o})}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-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:Gr(e),bindings:r},ngContent:null}},t.ɵted=function(t,e,n){for(var r=new Array(n.length-1),i=1;i<n.length;i++)r[i-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[i]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}},t.ɵunv=function(t,e,n,r){if(r instanceof jn){r=r.wrapped;var i=t.def.nodes[e].bindingIndex+n,o=t.oldValues[i];o instanceof jn&&(o=o.wrapped),t.oldValues[i]=new jn(o)}return r},t.ɵvid=function(t,e,n,r){for(var i=0,o=0,a=0,s=0,c=0,l=null,u=null,p=!1,h=!1,d=null,f=0;f<e.length;f++){var m=e[f];if(m.nodeIndex=f,m.parent=l,m.bindingIndex=i,m.outputIndex=o,m.renderParent=u,a|=m.flags,c|=m.matchedQueryIds,m.element){var g=m.element;g.publicProviders=l?l.element.publicProviders:Object.create(null),g.allProviders=g.publicProviders,p=!1,h=!1,m.element.template&&(c|=m.element.template.nodeMatchedQueries)}if(so(l,m,e.length),i+=m.bindings.length,o+=m.outputs.length,!u&&3&m.flags&&(d=m),20224&m.flags){p||(p=!0,l.element.publicProviders=Object.create(l.element.publicProviders),l.element.allProviders=l.element.publicProviders);var y=0!=(8192&m.flags),v=0!=(32768&m.flags);!y||v?l.element.publicProviders[Ar(m.provider.token)]=m:(h||(h=!0,l.element.allProviders=Object.create(l.element.publicProviders)),l.element.allProviders[Ar(m.provider.token)]=m),v&&(l.element.componentProvider=m)}if(l?(l.childFlags|=m.flags,l.directChildFlags|=m.flags,l.childMatchedQueries|=m.matchedQueryIds,m.element&&m.element.template&&(l.childMatchedQueries|=m.element.template.nodeMatchedQueries)):s|=m.flags,m.childCount>0)l=m,ao(m)||(u=m);else for(;l&&f===l.nodeIndex+l.childCount;){var b=l.parent;b&&(b.childFlags|=l.childFlags,b.childMatchedQueries|=l.childMatchedQueries),u=(l=b)&&ao(l)?l.renderParent:l}}return{factory:null,nodeFlags:a,rootNodeFlags:s,nodeMatchedQueries:c,flags:t,nodes:e,updateDirectives:n||Or,updateRenderer:r||Or,handleEvent:function(t,n,r,i){return e[n].element.handleEvent(t,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:d}},t.AUTO_STYLE="*",t.trigger=function(t,e){return ls(t,e)},t.animate=function(t,e){return us(t,e)},t.group=function(t){return ps(t)},t.sequence=function(t){return hs(t)},t.style=function(t){return ds(t)},t.state=function(t,e){return fs(t,e)},t.keyframes=function(t){return ms(t)},t.transition=function(t,e){return gs(t,e)},t.ɵbe=us,t.ɵbf=ps,t.ɵbj=ms,t.ɵbg=hs,t.ɵbi=fs,t.ɵbh=ds,t.ɵbk=gs,t.ɵbd=ls,t.ɵm=lr,t.ɵn=ur,t.ɵo=pr,t.ɵh=ne,t.ɵi=nr,t.ɵj=rr,t.ɵk=Hn,t.ɵl=$n,t.ɵd=Qt,t.ɵf=Vt,t.ɵg=Gt,t.ɵq=Ie,t.ɵu=Pe,t.ɵr=Oe,t.ɵy=Me,t.ɵw=Ae,t.ɵx=Te,t.ɵbb=Pa,t.ɵa=m,t.ɵz=Bi,t.ɵba=Cr,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?o(n,t("rxjs/Observable"),t("rxjs/observable/merge"),t("rxjs/operator/share"),t("rxjs/Subject")):o((i.ng=i.ng||{},i.ng.core={}),i.Rx,i.Rx.Observable,i.Rx.Observable.prototype,i.Rx)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"rxjs/Observable":67,"rxjs/Subject":71,"rxjs/observable/merge":98,"rxjs/operator/share":113}],58:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i,o){"use strict";var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function s(t,e){function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var c=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},l=function(){function t(){}return 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,"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,"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,"status",{get:function(){return this.control?this.control.status: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,"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}(),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(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);function p(t){return null==t||0===t.length}var h=new e.InjectionToken("NgValidators"),d=new e.InjectionToken("NgAsyncValidators"),f=/^(?=.{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])?)*$/,m=function(){function t(){}return t.min=function(t){return function(e){if(p(e.value)||p(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}},t.max=function(t){return function(e){if(p(e.value)||p(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return p(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return f.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(p(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){return e?("string"==typeof e?(r="^"+e+"$",n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(p(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(g);return 0==e.length?null:function(t){return v((n=t,e.map(function(t){return t(n)})));var n}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(g);return 0==e.length?null:function(t){var r,o,a=(r=t,o=e,o.map(function(t){return t(r)})).map(y);return i.map.call(n.forkJoin(a),v)}},t}();function g(t){return null!=t}function y(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 v(t){var e=t.reduce(function(t,e){return null!=e?c({},t,e):t},{});return 0===Object.keys(e).length?null:e}var b=new e.InjectionToken("NgValueAccessor"),_={provide:b,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.setProperty(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.setProperty(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:[_]}]}],t.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef}]},t}(),C={provide:b,useExisting:e.forwardRef(function(){return E}),multi:!0};var x=new e.InjectionToken("CompositionEventMode"),E=function(){function t(t,e,n){var r;this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=o.ɵgetDOM()?o.ɵgetDOM().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setProperty(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.setProperty(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.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)":"$any(this)._handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"$any(this)._compositionStart()","(compositionend)":"$any(this)._compositionEnd($event.target.value)"},providers:[C]}]}],t.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[x]}]}]},t}();function S(t){return t.validate?function(e){return t.validate(e)}:t}function k(t){return t.validate?function(e){return t.validate(e)}:t}var O={provide:b,useExisting:e.forwardRef(function(){return P}),multi:!0},P=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.setProperty(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.setProperty(this._elementRef.nativeElement,"disabled",t)},t.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:[O]}]}],t.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef}]},t}();function A(){throw new Error("unimplemented")}var T=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return s(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return A()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return A()},enumerable:!0,configurable:!0}),e}(l),M={provide:b,useExisting:e.forwardRef(function(){return R}),multi:!0},I=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.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}(),R=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(T),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.setProperty(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.setProperty(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.decorators=[{type:e.Directive,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[M]}]}],t.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef},{type:I},{type:e.Injector}]},t.propDecorators={name:[{type:e.Input}],formControlName:[{type:e.Input}],value:[{type:e.Input}]},t}(),D={provide:b,useExisting:e.forwardRef(function(){return N}),multi:!0},N=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.setProperty(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.setProperty(this._elementRef.nativeElement,"disabled",t)},t.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:[D]}]}],t.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef}]},t}(),L={provide:b,useExisting:e.forwardRef(function(){return F}),multi:!0};function j(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}var F=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.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=j(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(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=t.split(":")[0];return this._optionMap.has(e)?this._optionMap.get(e):t},t.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:[L]}]}],t.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef}]},t.propDecorators={compareWith:[{type:e.Input}]},t}(),V=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(j(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.setProperty(this._element.nativeElement,"value",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t.decorators=[{type:e.Directive,args:[{selector:"option"}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2},{type:F,decorators:[{type:e.Optional},{type:e.Host}]}]},t.propDecorators={ngValue:[{type:e.Input,args:["ngValue"]}],value:[{type:e.Input,args:["value"]}]},t}(),B={provide:b,useExisting:e.forwardRef(function(){return H}),multi:!0};function U(t,e){return null==t?""+e:("string"==typeof e&&(e="'"+e+"'"),e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}var H=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,n=this;if(this.value=t,Array.isArray(t)){var r=t.map(function(t){return n._getOptionId(t)});e=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o<i.length;o++){var a=i.item(o),s=e._getOptionValue(a.value);r.push(s)}else for(i=n.options,o=0;o<i.length;o++){if((a=i.item(o)).selected){s=e._getOptionValue(a.value);r.push(s)}}e.value=r,t(r)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(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.split(":")[0];return this._optionMap.has(e)?this._optionMap.get(e)._value:t},t.decorators=[{type:e.Directive,args:[{selector:"select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]",host:{"(change)":"onChange($event.target)","(blur)":"onTouched()"},providers:[B]}]}],t.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef}]},t.propDecorators={compareWith:[{type:e.Input}]},t}(),z=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(U(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(U(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setProperty(this._element.nativeElement,"value",t)},t.prototype._setSelected=function(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t.decorators=[{type:e.Directive,args:[{selector:"option"}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2},{type:H,decorators:[{type:e.Optional},{type:e.Host}]}]},t.propDecorators={ngValue:[{type:e.Input,args:["ngValue"]}],value:[{type:e.Input,args:["value"]}]},t}();function W(t,e){return e.path.concat([t])}function G(t,e){var n,r,i,o,a;t||$(e,"Cannot find control with"),e.valueAccessor||$(e,"No value accessor for form control with"),t.validator=m.compose([t.validator,e.validator]),t.asyncValidator=m.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),n=t,(r=e).valueAccessor.registerOnChange(function(t){n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&q(n,r)}),i=e,t.registerOnChange(function(t,e){i.valueAccessor.writeValue(t),e&&i.viewToModelUpdate(t)}),o=t,(a=e).valueAccessor.registerOnTouched(function(){o._pendingTouched=!0,"blur"===o.updateOn&&o._pendingChange&&q(o,a),"submit"!==o.updateOn&&o.markAsTouched()}),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 q(t,e){e.viewToModelUpdate(t._pendingValue),t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),t._pendingChange=!1}function Y(t,e){null==t&&$(e,"Cannot find control with"),t.validator=m.compose([t.validator,e.validator]),t.asyncValidator=m.composeAsync([t.asyncValidator,e.asyncValidator])}function K(t){return $(t,"There is no FormControl instance attached to form control element with")}function $(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 X(t){return null!=t?m.compose(t.map(S)):null}function Q(t){return null!=t?m.composeAsync(t.map(k)):null}function Z(t,n){if(!t.hasOwnProperty("model"))return!1;var r=t.model;return!!r.isFirstChange()||!e.ɵlooseIdentical(n,r.currentValue)}var J=[w,N,P,F,H,R];function tt(t,e){t._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function et(t,e){if(!e)return null;var n=void 0,r=void 0,i=void 0;return e.forEach(function(e){var o;e.constructor===E?n=e:(o=e,J.some(function(t){return o.constructor===t})?(r&&$(t,"More than one built-in value accessor matches form control with"),r=e):(i&&$(t,"More than one custom value accessor matches form control with"),i=e))}),i||(r||(n||($(t,"No valid value accessor for form control with"),null)))}function nt(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(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 W(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 X(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Q(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(u),it=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}(),ot={"[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"},at=function(t){function n(e){return t.call(this,e)||this}return s(n,t),n.decorators=[{type:e.Directive,args:[{selector:"[formControlName],[ngModel],[formControl]",host:ot}]}],n.ctorParameters=function(){return[{type:T,decorators:[{type:e.Self}]}]},n}(it),st=function(t){function n(e){return t.call(this,e)||this}return s(n,t),n.decorators=[{type:e.Directive,args:[{selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:ot}]}],n.ctorParameters=function(){return[{type:u,decorators:[{type:e.Self}]}]},n}(it),ct="VALID",lt="INVALID",ut="PENDING",pt="DISABLED";function ht(t){var e=ft(t)?t.validators:t;return Array.isArray(e)?X(e):e||null}function dt(t,e){var n=ft(e)?e.asyncValidators:t;return Array.isArray(n)?Q(n):n||null}function ft(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var mt=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,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.status===ct},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.status===lt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.status==ut},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.status===pt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.status!==pt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=ht(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=dt(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){void 0===t&&(t={}),this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)},t.prototype.markAsUntouched=function(t){void 0===t&&(t={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype.markAsDirty=function(t){void 0===t&&(t={}),this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)},t.prototype.markAsPristine=function(t){void 0===t&&(t={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype.markAsPending=function(t){void 0===t&&(t={}),this.status=ut,this._parent&&!t.onlySelf&&this._parent.markAsPending(t)},t.prototype.disable=function(t){void 0===t&&(t={}),this.status=pt,this.errors=null,this._forEachChild(function(t){t.disable({onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(!!t.onlySelf),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){void 0===t&&(t={}),this.status=ct,this._forEachChild(function(t){t.enable({onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(!!t.onlySelf),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.updateValueAndValidity=function(t){void 0===t&&(t={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==ct&&this.status!==ut||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)},t.prototype._updateTreeValidity=function(t){void 0===t&&(t={emitEvent:!0}),this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})},t.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?pt:ct},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this.status=ut;var n=y(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){void 0===e&&(e={}),this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)},t.prototype.get=function(t){return e=this,r=".",null==(n=t)?null:(n instanceof Array||(n=n.split(r)),n instanceof Array&&0===n.length?null:n.reduce(function(t,e){return t instanceof yt?t.controls[e]||null:t instanceof vt&&t.at(e)||null},e));var e,n,r},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()?pt:this.errors?lt:this._anyControlsHaveStatus(ut)?ut:this._anyControlsHaveStatus(lt)?lt:ct},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){void 0===t&&(t={}),this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype._updateTouched=function(t){void 0===t&&(t={}),this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},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.prototype._setUpdateStrategy=function(t){ft(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t}(),gt=function(t){function e(e,n,r){void 0===e&&(e=null);var i=t.call(this,ht(n),dt(r,n))||this;return i._onChange=[],i._applyFormState(e),i._setUpdateStrategy(n),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return s(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this.value=this._pendingValue=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),this._pendingChange=!1},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._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange))&&(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0)},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t},e}(mt),yt=function(t){function e(e,n,r){var i=t.call(this,ht(n),dt(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return s(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 gt?e.value:e.getRawValue(),t})},e.prototype._syncPendingControls=function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),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,i){n=n||e.contains(i)&&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}(mt),vt=function(t){function e(e,n,r){var i=t.call(this,ht(n),dt(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return s(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 gt?t.value:t.getRawValue()})},e.prototype._syncPendingControls=function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},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}(mt),bt={provide:u,useExisting:e.forwardRef(function(){return wt})},_t=Promise.resolve(null),wt=function(t){function n(n,r){var i=t.call(this)||this;return i.submitted=!1,i._directives=[],i.ngSubmit=new e.EventEmitter,i.form=new yt({},X(n),Q(r)),i}return s(n,t),n.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},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;_t.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),G(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})},n.prototype.getControl=function(t){return this.form.get(t.path)},n.prototype.removeControl=function(t){var e=this;_t.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),nt(e._directives,t)})},n.prototype.addFormGroup=function(t){var e=this;_t.then(function(){var n=e._findContainer(t.path),r=new yt({});Y(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},n.prototype.removeFormGroup=function(t){var e=this;_t.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;_t.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,tt(this.form,this._directives),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._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},n.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},n.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"}]}],n.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[h]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[d]}]}]},n.propDecorators={options:[{type:e.Input,args:["ngFormOptions"]}]},n}(u),Ct='\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    });',xt='\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    });',Et='\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    });',St='\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>',kt='\n    <div [formGroup]="myGroup">\n       <input formControlName="firstName">\n       <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n    </div>\n  ',Ot=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      '+Ct+"\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      "+kt)},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      "+xt+"\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      "+St)},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      "+xt+"\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      "+St)},t}(),Pt={provide:u,useExisting:e.forwardRef(function(){return At})},At=function(t){function n(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return s(n,t),n.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof wt||Ot.modelGroupParentException()},n.decorators=[{type:e.Directive,args:[{selector:"[ngModelGroup]",providers:[Pt],exportAs:"ngModelGroup"}]}],n.ctorParameters=function(){return[{type:u,decorators:[{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[h]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[d]}]}]},n.propDecorators={name:[{type:e.Input,args:["ngModelGroup"]}]},n}(rt),Tt={provide:T,useExisting:e.forwardRef(function(){return It})},Mt=Promise.resolve(null),It=function(t){function n(n,r,i,o){var a=t.call(this)||this;return a.control=new gt,a._registered=!1,a.update=new e.EventEmitter,a._parent=n,a._rawValidators=r||[],a._rawAsyncValidators=i||[],a.valueAccessor=et(a,o),a}return s(n,t),n.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Z(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,"path",{get:function(){return this._parent?W(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 X(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return Q(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),n.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},n.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},n.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},n.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},n.prototype._setUpStandalone=function(){G(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 At)&&this._parent instanceof rt?Ot.formGroupNameException():this._parent instanceof At||this._parent instanceof wt||Ot.modelParentException()},n.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Ot.missingNameException()},n.prototype._updateValue=function(t){var e=this;Mt.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;Mt.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},n.decorators=[{type:e.Directive,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[Tt],exportAs:"ngModel"}]}],n.ctorParameters=function(){return[{type:u,decorators:[{type:e.Optional},{type:e.Host}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[h]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[d]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[b]}]}]},n.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"]}]},n}(T),Rt=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      "+Ct)},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        '+xt+"\n\n        Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n        "+St)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n       Example:\n\n       "+Ct)},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      "+xt)},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)},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}(),Dt={provide:T,useExisting:e.forwardRef(function(){return Nt})},Nt=function(t){function n(n,r,i){var o=t.call(this)||this;return o.update=new e.EventEmitter,o._rawValidators=n||[],o._rawAsyncValidators=r||[],o.valueAccessor=et(o,i),o}return s(n,t),Object.defineProperty(n.prototype,"isDisabled",{set:function(t){Rt.disabledAttrWarning()},enumerable:!0,configurable:!0}),n.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&(G(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),Z(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 X(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return Q(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.decorators=[{type:e.Directive,args:[{selector:"[formControl]",providers:[Dt],exportAs:"ngForm"}]}],n.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[h]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[d]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[b]}]}]},n.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"]}]},n}(T),Lt={provide:u,useExisting:e.forwardRef(function(){return jt})},jt=function(t){function n(n,r){var i=t.call(this)||this;return i._validators=n,i._asyncValidators=r,i.submitted=!1,i.directives=[],i.form=null,i.ngSubmit=new e.EventEmitter,i}return s(n,t),n.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},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 G(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){nt(this.directives,t)},n.prototype.addFormGroup=function(t){var e=this.form.get(t.path);Y(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);Y(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,tt(this.form,this.directives),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,r,i=t.form.get(e.path);e.control!==i&&(n=e.control,(r=e).valueAccessor.registerOnChange(function(){return K(r)}),r.valueAccessor.registerOnTouched(function(){return K(r)}),r._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),r._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),n&&n._clearChangeFns(),i&&G(i,e),e.control=i)}),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=X(this._validators);this.form.validator=m.compose([this.form.validator,t]);var e=Q(this._asyncValidators);this.form.asyncValidator=m.composeAsync([this.form.asyncValidator,e])},n.prototype._checkFormPresent=function(){this.form||Rt.missingFormException()},n.decorators=[{type:e.Directive,args:[{selector:"[formGroup]",providers:[Lt],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],n.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[h]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[d]}]}]},n.propDecorators={form:[{type:e.Input,args:["formGroup"]}],ngSubmit:[{type:e.Output}]},n}(u),Ft={provide:u,useExisting:e.forwardRef(function(){return Vt})},Vt=function(t){function n(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return s(n,t),n.prototype._checkParentType=function(){Ht(this._parent)&&Rt.groupParentException()},n.decorators=[{type:e.Directive,args:[{selector:"[formGroupName]",providers:[Ft]}]}],n.ctorParameters=function(){return[{type:u,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[h]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[d]}]}]},n.propDecorators={name:[{type:e.Input,args:["formGroupName"]}]},n}(rt),Bt={provide:u,useExisting:e.forwardRef(function(){return Ut})},Ut=function(t){function n(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return s(n,t),n.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},n.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(n.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},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,"path",{get:function(){return W(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return X(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return Q(this._asyncValidators)},enumerable:!0,configurable:!0}),n.prototype._checkParentType=function(){Ht(this._parent)&&Rt.arrayParentException()},n.decorators=[{type:e.Directive,args:[{selector:"[formArrayName]",providers:[Bt]}]}],n.ctorParameters=function(){return[{type:u,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[h]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[d]}]}]},n.propDecorators={name:[{type:e.Input,args:["formArrayName"]}]},n}(u);function Ht(t){return!(t instanceof Vt||t instanceof jt||t instanceof Ut)}var zt={provide:T,useExisting:e.forwardRef(function(){return Wt})},Wt=function(t){function n(n,r,i,o){var a=t.call(this)||this;return a._added=!1,a.update=new e.EventEmitter,a._parent=n,a._rawValidators=r||[],a._rawAsyncValidators=i||[],a.valueAccessor=et(a,o),a}return s(n,t),Object.defineProperty(n.prototype,"isDisabled",{set:function(t){Rt.disabledAttrWarning()},enumerable:!0,configurable:!0}),n.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),Z(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 W(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 X(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return Q(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),n.prototype._checkParentType=function(){!(this._parent instanceof Vt)&&this._parent instanceof rt?Rt.ngModelGroupException():this._parent instanceof Vt||this._parent instanceof jt||this._parent instanceof Ut||Rt.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.decorators=[{type:e.Directive,args:[{selector:"[formControlName]",providers:[zt]}]}],n.ctorParameters=function(){return[{type:u,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[h]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[d]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[b]}]}]},n.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"]}]},n}(T),Gt={provide:h,useExisting:e.forwardRef(function(){return Yt}),multi:!0},qt={provide:h,useExisting:e.forwardRef(function(){return Kt}),multi:!0},Yt=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?m.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.decorators=[{type:e.Directive,args:[{selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[Gt],host:{"[attr.required]":'required ? "" : null'}}]}],t.ctorParameters=function(){return[]},t.propDecorators={required:[{type:e.Input}]},t}(),Kt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.prototype.validate=function(t){return this.required?m.requiredTrue(t):null},n.decorators=[{type:e.Directive,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[qt],host:{"[attr.required]":'required ? "" : null'}}]}],n.ctorParameters=function(){return[]},n}(Yt),$t={provide:h,useExisting:e.forwardRef(function(){return Xt}),multi:!0},Xt=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?m.email(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.decorators=[{type:e.Directive,args:[{selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[$t]}]}],t.ctorParameters=function(){return[]},t.propDecorators={email:[{type:e.Input}]},t}(),Qt={provide:h,useExisting:e.forwardRef(function(){return Zt}),multi:!0},Zt=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=m.minLength(parseInt(this.minlength,10))},t.decorators=[{type:e.Directive,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[Qt],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],t.ctorParameters=function(){return[]},t.propDecorators={minlength:[{type:e.Input}]},t}(),Jt={provide:h,useExisting:e.forwardRef(function(){return te}),multi:!0},te=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=m.maxLength(parseInt(this.maxlength,10))},t.decorators=[{type:e.Directive,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[Jt],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],t.ctorParameters=function(){return[]},t.propDecorators={maxlength:[{type:e.Input}]},t}(),ee={provide:h,useExisting:e.forwardRef(function(){return ne}),multi:!0},ne=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=m.pattern(this.pattern)},t.decorators=[{type:e.Directive,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[ee],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],t.ctorParameters=function(){return[]},t.propDecorators={pattern:[{type:e.Input}]},t}(),re=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,i=null!=e?e.asyncValidator:null;return new yt(n,r,i)},t.prototype.control=function(t,e,n){return new gt(t,e,n)},t.prototype.array=function(t,e,n){var r=this,i=t.map(function(t){return r._createControl(t)});return new vt(i,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 gt||t instanceof yt||t instanceof vt)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.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}(),ie=new e.Version("5.2.0"),oe=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}}]}],t.ctorParameters=function(){return[]},t}(),ae=[oe,V,z,E,P,N,w,F,H,R,at,st,Yt,Zt,te,ne,Kt,Xt],se=[It,At,wt],ce=[Nt,jt,Wt,Vt,Ut],le=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:ae,exports:ae}]}],t.ctorParameters=function(){return[]},t}(),ue=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:se,providers:[I],exports:[le,se]}]}],t.ctorParameters=function(){return[]},t}(),pe=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[ce],providers:[re,I],exports:[le,ce]}]}],t.ctorParameters=function(){return[]},t}();t.AbstractControlDirective=l,t.AbstractFormGroupDirective=rt,t.CheckboxControlValueAccessor=w,t.ControlContainer=u,t.NG_VALUE_ACCESSOR=b,t.COMPOSITION_BUFFER_MODE=x,t.DefaultValueAccessor=E,t.NgControl=T,t.NgControlStatus=at,t.NgControlStatusGroup=st,t.NgForm=wt,t.NgModel=It,t.NgModelGroup=At,t.RadioControlValueAccessor=R,t.FormControlDirective=Nt,t.FormControlName=Wt,t.FormGroupDirective=jt,t.FormArrayName=Ut,t.FormGroupName=Vt,t.NgSelectOption=V,t.SelectControlValueAccessor=F,t.SelectMultipleControlValueAccessor=H,t.CheckboxRequiredValidator=Kt,t.EmailValidator=Xt,t.MaxLengthValidator=te,t.MinLengthValidator=Zt,t.PatternValidator=ne,t.RequiredValidator=Yt,t.FormBuilder=re,t.AbstractControl=mt,t.FormArray=vt,t.FormControl=gt,t.FormGroup=yt,t.NG_ASYNC_VALIDATORS=d,t.NG_VALIDATORS=h,t.Validators=m,t.VERSION=ie,t.FormsModule=ue,t.ReactiveFormsModule=pe,t.ɵba=le,t.ɵz=ce,t.ɵx=ae,t.ɵy=se,t.ɵa=_,t.ɵb=C,t.ɵc=it,t.ɵd=ot,t.ɵe=bt,t.ɵf=Tt,t.ɵg=Pt,t.ɵbf=oe,t.ɵbb=O,t.ɵbc=P,t.ɵh=M,t.ɵi=I,t.ɵbd=D,t.ɵbe=N,t.ɵj=Dt,t.ɵk=zt,t.ɵl=Lt,t.ɵn=Bt,t.ɵm=Ft,t.ɵo=L,t.ɵq=z,t.ɵp=B,t.ɵs=qt,t.ɵt=$t,t.ɵv=Jt,t.ɵu=Qt,t.ɵw=ee,t.ɵr=Gt,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("rxjs/observable/forkJoin"),t("rxjs/observable/fromPromise"),t("rxjs/operator/map"),t("@angular/platform-browser")):i((r.ng=r.ng||{},r.ng.forms={}),r.ng.core,r.Rx.Observable,r.Rx.Observable,r.Rx.Observable.prototype,r.ng.platformBrowser)},{"@angular/core":57,"@angular/platform-browser":62,"rxjs/observable/forkJoin":93,"rxjs/observable/fromPromise":97,"rxjs/operator/map":109}],59:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i,o,a,s,c,l,u,p,h,d,f,m,g,y,v,b,_,w,C,x,E,S,k,O,P,A,T,M,I,R,D,N,L,j,F,V,B,U,H,z,W,G){"use strict";var q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function Y(t,e){function n(){this.constructor=t}q(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var K=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},$=function(){function t(){}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t}(),X=function(){function t(){}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t}(),Q=new e.InjectionToken("mat-sanity-checks"),Z=function(){function t(t){this._sanityChecksEnabled=t,this._hasDoneGlobalChecks=!1,this._hasCheckedHammer=!1,this._document="object"==typeof document&&document?document:null,this._window="object"==typeof window&&window?window:null,this._areChecksEnabled()&&!this._hasDoneGlobalChecks&&(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._hasDoneGlobalChecks=!0)}return t.prototype._areChecksEnabled=function(){return this._sanityChecksEnabled&&e.isDevMode()&&!this._isTestEnv()},t.prototype._isTestEnv=function(){return this._window&&(this._window.__karma__||this._window.jasmine)},t.prototype._checkDoctypeIsDefined=function(){this._document&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")},t.prototype._checkThemeIsPresent=function(){if(this._document&&"function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);var e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}},t.prototype._checkHammerIsAvailable=function(){!this._hasCheckedHammer&&this._window&&(this._areChecksEnabled()&&!this._window.Hammer&&console.warn("Could not find HammerJS. Certain Angular Material components may not work correctly."),this._hasCheckedHammer=!0)},t.decorators=[{type:e.NgModule,args:[{imports:[n.BidiModule],exports:[n.BidiModule],providers:[{provide:Q,useValue:!0}]}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Q]}]}]},t}();function J(t){return function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.apply(this,e)||this;return r._disabled=!1,r}return Y(e,t),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),e}(t)}function tt(t,e){return function(t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.apply(this,n)||this;return i.color=e,i}return Y(n,t),Object.defineProperty(n.prototype,"color",{get:function(){return this._color},set:function(t){var n=t||e;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),n&&this._elementRef.nativeElement.classList.add("mat-"+n),this._color=n)},enumerable:!0,configurable:!0}),n}(t)}function et(t){return function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.apply(this,e)||this;return r._disableRipple=!1,r}return Y(e,t),Object.defineProperty(e.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),e}(t)}function nt(t,e){return void 0===e&&(e=0),function(t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.apply(this,n)||this;return i._tabIndex=e,i}return Y(n,t),Object.defineProperty(n.prototype,"tabIndex",{get:function(){return this.disabled?-1:this._tabIndex},set:function(t){this._tabIndex=null!=t?t:e},enumerable:!0,configurable:!0}),n}(t)}function rt(t){return function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.apply(this,e)||this;return r.errorState=!1,r.stateChanges=new i.Subject,r}return Y(e,t),e.prototype.updateErrorState=function(){var t=this.errorState,e=this._parentFormGroup||this._parentForm,n=this.errorStateMatcher||this._defaultErrorStateMatcher,r=this.ngControl?this.ngControl.control:null,i=n.isErrorState(r,e);i!==t&&(this.errorState=i,this.stateChanges.next())},e}(t)}var it=new e.InjectionToken("MAT_DATE_LOCALE"),ot={provide:it,useExisting:e.LOCALE_ID},at=function(){function t(){this._localeChanges=new i.Subject}return Object.defineProperty(t.prototype,"localeChanges",{get:function(){return this._localeChanges},enumerable:!0,configurable:!0}),t.prototype.deserialize=function(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()},t.prototype.setLocale=function(t){this.locale=t,this._localeChanges.next()},t.prototype.compareDate=function(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)},t.prototype.sameDate=function(t,e){if(t&&e){var n=this.isValid(t),r=this.isValid(e);return n&&r?!this.compareDate(t,e):n==r}return t==e},t.prototype.clampDate=function(t,e,n){return e&&this.compareDate(t,e)<0?e:n&&this.compareDate(t,n)>0?n:t},t}(),st=new e.InjectionToken("mat-date-formats"),ct="undefined"!=typeof Intl,lt={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},ut=dt(31,function(t){return String(t+1)}),pt={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},ht=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function dt(t,e){for(var n=Array(t),r=0;r<t;r++)n[r]=e(r);return n}var ft=function(t){function n(e){var n=t.call(this)||this;return t.prototype.setLocale.call(n,e),n.useUtcForDisplay=!("object"==typeof document&&document&&/(msie|trident)/i.test(navigator.userAgent)),n}return Y(n,t),n.prototype.getYear=function(t){return t.getFullYear()},n.prototype.getMonth=function(t){return t.getMonth()},n.prototype.getDate=function(t){return t.getDate()},n.prototype.getDayOfWeek=function(t){return t.getDay()},n.prototype.getMonthNames=function(t){var e=this;if(ct){var n=new Intl.DateTimeFormat(this.locale,{month:t});return dt(12,function(t){return e._stripDirectionalityCharacters(n.format(new Date(2017,t,1)))})}return lt[t]},n.prototype.getDateNames=function(){var t=this;if(ct){var e=new Intl.DateTimeFormat(this.locale,{day:"numeric"});return dt(31,function(n){return t._stripDirectionalityCharacters(e.format(new Date(2017,0,n+1)))})}return ut},n.prototype.getDayOfWeekNames=function(t){var e=this;if(ct){var n=new Intl.DateTimeFormat(this.locale,{weekday:t});return dt(7,function(t){return e._stripDirectionalityCharacters(n.format(new Date(2017,0,t+1)))})}return pt[t]},n.prototype.getYearName=function(t){if(ct){var e=new Intl.DateTimeFormat(this.locale,{year:"numeric"});return this._stripDirectionalityCharacters(e.format(t))}return String(this.getYear(t))},n.prototype.getFirstDayOfWeek=function(){return 0},n.prototype.getNumDaysInMonth=function(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))},n.prototype.clone=function(t){return this.createDate(this.getYear(t),this.getMonth(t),this.getDate(t))},n.prototype.createDate=function(t,e,n){if(e<0||e>11)throw Error('Invalid month index "'+e+'". Month index has to be between 0 and 11.');if(n<1)throw Error('Invalid date "'+n+'". Date has to be greater than 0.');var r=this._createDateWithOverflow(t,e,n);if(r.getMonth()!=e)throw Error('Invalid date "'+n+'" for month with index "'+e+'".');return r},n.prototype.today=function(){return new Date},n.prototype.parse=function(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null},n.prototype.format=function(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(ct){this.useUtcForDisplay&&(t=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())),e=K({},e,{timeZone:"utc"}));var n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(n.format(t))}return this._stripDirectionalityCharacters(t.toDateString())},n.prototype.addCalendarYears=function(t,e){return this.addCalendarMonths(t,12*e)},n.prototype.addCalendarMonths=function(t,e){var n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n},n.prototype.addCalendarDays=function(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)},n.prototype.toIso8601=function(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")},n.prototype.deserialize=function(e){if("string"==typeof e){if(!e)return null;if(ht.test(e)){var n=new Date(e);if(this.isValid(n))return n}}return t.prototype.deserialize.call(this,e)},n.prototype.isDateInstance=function(t){return t instanceof Date},n.prototype.isValid=function(t){return!isNaN(t.getTime())},n.prototype.invalid=function(){return new Date(NaN)},n.prototype._createDateWithOverflow=function(t,e,n){var r=new Date(t,e,n);return t>=0&&t<100&&r.setFullYear(this.getYear(r)-1900),r},n.prototype._2digit=function(t){return("00"+t).slice(-2)},n.prototype._stripDirectionalityCharacters=function(t){return t.replace(/[\u200e\u200f]/g,"")},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[it]}]}]},n}(at),mt={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},gt=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{providers:[{provide:at,useClass:ft},ot]}]}],t.ctorParameters=function(){return[]},t}(),yt=mt,vt=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[gt],providers:[{provide:st,useValue:yt}]}]}],t.ctorParameters=function(){return[]},t}(),bt=function(){function t(){}return t.prototype.isErrorState=function(t,e){return!!(t&&t.invalid&&(t.dirty||e&&e.submitted))},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}(),_t=function(){function t(){}return t.prototype.isErrorState=function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}(),wt=new e.InjectionToken("MAT_HAMMER_OPTIONS"),Ct=function(t){function n(e,n){var r=t.call(this)||this;return r._hammerOptions=e,r._hammer="undefined"!=typeof window?window.Hammer:null,r.events=r._hammer?["longpress","slide","slidestart","slideend","slideright","slideleft"]:[],n&&n._checkHammerIsAvailable(),r}return Y(n,t),n.prototype.buildHammer=function(t){var e=new this._hammer(t,this._hammerOptions||void 0),n=new this._hammer.Pan,r=new this._hammer.Swipe,i=new this._hammer.Press,o=this._createRecognizer(n,{event:"slide",threshold:0},r),a=this._createRecognizer(i,{event:"longpress",time:500});return n.recognizeWith(r),e.add([r,i,n,o,a]),e},n.prototype._createRecognizer=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=new t.constructor(e);return n.push(t),n.forEach(function(t){return i.recognizeWith(t)}),i},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[wt]}]},{type:Z,decorators:[{type:e.Optional}]}]},n}(o.HammerGestureConfig),xt=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-line], [matLine]",host:{class:"mat-line"}}]}],t.ctorParameters=function(){return[]},t}(),Et=function(){function t(t,e){var n=this;this._lines=t,this._element=e,this._setLineClass(this._lines.length),this._lines.changes.subscribe(function(){n._setLineClass(n._lines.length)})}return t.prototype._setLineClass=function(t){this._resetClasses(),2===t||3===t?this._setClass("mat-"+t+"-line",!0):t>3&&this._setClass("mat-multi-line",!0)},t.prototype._resetClasses=function(){this._setClass("mat-2-line",!1),this._setClass("mat-3-line",!1),this._setClass("mat-multi-line",!1)},t.prototype._setClass=function(t,e){e?this._element.nativeElement.classList.add(t):this._element.nativeElement.classList.remove(t)},t}(),St=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[Z],exports:[xt,Z],declarations:[xt]}]}],t.ctorParameters=function(){return[]},t}(),kt={FADING_IN:0,VISIBLE:1,FADING_OUT:2,HIDDEN:3};kt[kt.FADING_IN]="FADING_IN",kt[kt.VISIBLE]="VISIBLE",kt[kt.FADING_OUT]="FADING_OUT",kt[kt.HIDDEN]="HIDDEN";var Ot=function(){function t(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=kt.HIDDEN}return t.prototype.fadeOut=function(){this._renderer.fadeOutRipple(this)},t}(),Pt=800,At=function(){function t(t,e,n,r){var i=this;this._target=t,this._ngZone=e,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._eventOptions=!!s.supportsPassiveEventListeners()&&{passive:!0},this.onMousedown=function(t){var e=i._lastTouchStartEvent&&Date.now()<i._lastTouchStartEvent+Pt;i._target.rippleDisabled||e||(i._isPointerDown=!0,i.fadeInRipple(t.clientX,t.clientY,i._target.rippleConfig))},this.onTouchStart=function(t){i._target.rippleDisabled||(i._lastTouchStartEvent=Date.now(),i._isPointerDown=!0,i.fadeInRipple(t.touches[0].clientX,t.touches[0].clientY,i._target.rippleConfig))},this.onPointerUp=function(){i._isPointerDown&&(i._isPointerDown=!1,i._activeRipples.forEach(function(t){t.config.persistent||t.state!==kt.VISIBLE||t.fadeOut()}))},r.isBrowser&&(this._containerElement=n.nativeElement,this._triggerEvents.set("mousedown",this.onMousedown),this._triggerEvents.set("mouseup",this.onPointerUp),this._triggerEvents.set("mouseleave",this.onPointerUp),this._triggerEvents.set("touchstart",this.onTouchStart),this._triggerEvents.set("touchend",this.onPointerUp))}return t.prototype.fadeInRipple=function(t,e,n){var r=this;void 0===n&&(n={});var i=this._containerElement.getBoundingClientRect();n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);var o,a,s,c,l,u,p=n.radius||(o=t,a=e,s=i,c=Math.max(Math.abs(o-s.left),Math.abs(o-s.right)),l=Math.max(Math.abs(a-s.top),Math.abs(a-s.bottom)),Math.sqrt(c*c+l*l)),h=450/(n.speedFactor||1),d=t-i.left,f=e-i.top,m=document.createElement("div");m.classList.add("mat-ripple-element"),m.style.left=d-p+"px",m.style.top=f-p+"px",m.style.height=2*p+"px",m.style.width=2*p+"px",m.style.backgroundColor=n.color||null,m.style.transitionDuration=h+"ms",this._containerElement.appendChild(m),u=m,window.getComputedStyle(u).getPropertyValue("opacity"),m.style.transform="scale(1)";var g=new Ot(this,m,n);return g.state=kt.FADING_IN,this._activeRipples.add(g),this.runTimeoutOutsideZone(function(){g.state=kt.VISIBLE,n.persistent||r._isPointerDown||g.fadeOut()},h),g},t.prototype.fadeOutRipple=function(t){if(this._activeRipples.delete(t)){var e=t.element;e.style.transitionDuration="400ms",e.style.opacity="0",t.state=kt.FADING_OUT,this.runTimeoutOutsideZone(function(){t.state=kt.HIDDEN,e.parentNode.removeChild(e)},400)}},t.prototype.fadeOutAll=function(){this._activeRipples.forEach(function(t){return t.fadeOut()})},t.prototype.setupTriggerEvents=function(t){var e=this;t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular(function(){e._triggerEvents.forEach(function(n,r){return t.addEventListener(r,n,e._eventOptions)})}),this._triggerElement=t)},t.prototype.runTimeoutOutsideZone=function(t,e){void 0===e&&(e=0),this._ngZone.runOutsideAngular(function(){return setTimeout(t,e)})},t.prototype._removeTriggerEvents=function(){var t=this;this._triggerElement&&this._triggerEvents.forEach(function(e,n){t._triggerElement.removeEventListener(n,e,t._eventOptions)})},t}();var Tt=new e.InjectionToken("mat-ripple-global-options"),Mt=function(){function t(t,e,n,r){this._elementRef=t,this.radius=0,this.speedFactor=1,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new At(this,e,t,n)}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=t,this._setupTriggerEventsIfEnabled()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"trigger",{get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()},t.prototype.ngOnDestroy=function(){this._rippleRenderer._removeTriggerEvents()},t.prototype.launch=function(t,e,n){return void 0===n&&(n=this),this._rippleRenderer.fadeInRipple(t,e,n)},t.prototype.fadeOutAll=function(){this._rippleRenderer.fadeOutAll()},Object.defineProperty(t.prototype,"rippleConfig",{get:function(){return{centered:this.centered,speedFactor:this.speedFactor*(this._globalOptions.baseSpeedFactor||1),radius:this.radius,color:this.color}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rippleDisabled",{get:function(){return this.disabled||!!this._globalOptions.disabled},enumerable:!0,configurable:!0}),t.prototype._setupTriggerEventsIfEnabled=function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)},t.decorators=[{type:e.Directive,args:[{selector:"[mat-ripple], [matRipple]",exportAs:"matRipple",host:{class:"mat-ripple","[class.mat-ripple-unbounded]":"unbounded"}}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.NgZone},{type:s.Platform},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Tt]}]}]},t.propDecorators={color:[{type:e.Input,args:["matRippleColor"]}],unbounded:[{type:e.Input,args:["matRippleUnbounded"]}],centered:[{type:e.Input,args:["matRippleCentered"]}],radius:[{type:e.Input,args:["matRippleRadius"]}],speedFactor:[{type:e.Input,args:["matRippleSpeedFactor"]}],disabled:[{type:e.Input,args:["matRippleDisabled"]}],trigger:[{type:e.Input,args:["matRippleTrigger"]}]},t}(),It=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[Z,s.PlatformModule],exports:[Mt,Z],declarations:[Mt]}]}],t.ctorParameters=function(){return[]},t}(),Rt=function(){function t(){this.state="unchecked",this.disabled=!1}return t.decorators=[{type:e.Component,args:[{encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,selector:"mat-pseudo-checkbox",styles:[".mat-pseudo-checkbox{width:20px;height:20px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0,0,.2,.1),background-color 90ms cubic-bezier(0,0,.2,.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:'';border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0,0,.2,.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:9px;left:2px;width:16px;opacity:1}.mat-pseudo-checkbox-checked::after{top:5px;left:3px;width:12px;height:5px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1}"],template:"",host:{class:"mat-pseudo-checkbox","[class.mat-pseudo-checkbox-indeterminate]":'state === "indeterminate"',"[class.mat-pseudo-checkbox-checked]":'state === "checked"',"[class.mat-pseudo-checkbox-disabled]":"disabled"}}]}],t.ctorParameters=function(){return[]},t.propDecorators={state:[{type:e.Input}],disabled:[{type:e.Input}]},t}(),Dt=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{exports:[Rt],declarations:[Rt]}]}],t.ctorParameters=function(){return[]},t}(),Nt=function(){return function(){}}(),Lt=J(Nt),jt=0,Ft=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._labelId="mat-optgroup-label-"+jt++,e}return Y(n,t),n.decorators=[{type:e.Component,args:[{selector:"mat-optgroup",exportAs:"matOptgroup",template:'<label class="mat-optgroup-label" [id]="_labelId">{{ label }}</label><ng-content select="mat-option"></ng-content>',encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,inputs:["disabled"],host:{class:"mat-optgroup",role:"group","[class.mat-optgroup-disabled]":"disabled","[attr.aria-disabled]":"disabled.toString()","[attr.aria-labelledby]":"_labelId"}}]}],n.ctorParameters=function(){return[]},n.propDecorators={label:[{type:e.Input}]},n}(Lt),Vt=0,Bt=function(){return function(t,e){void 0===e&&(e=!1),this.source=t,this.isUserInput=e}}(),Ut=new e.InjectionToken("MAT_OPTION_PARENT_COMPONENT"),Ht=function(){function t(t,n,r,i){this._element=t,this._changeDetectorRef=n,this._parent=r,this.group=i,this._selected=!1,this._active=!1,this._disabled=!1,this._id="mat-option-"+Vt++,this.onSelectionChange=new e.EventEmitter}return Object.defineProperty(t.prototype,"multiple",{get:function(){return this._parent&&this._parent.multiple},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.group&&this.group.disabled||this._disabled},set:function(t){this._disabled=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableRipple",{get:function(){return this._parent&&this._parent.disableRipple},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._active},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewValue",{get:function(){return(this._getHostElement().textContent||"").trim()},enumerable:!0,configurable:!0}),t.prototype.select=function(){this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent()},t.prototype.deselect=function(){this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent()},t.prototype.focus=function(){var t=this._getHostElement();"function"==typeof t.focus&&t.focus()},t.prototype.setActiveStyles=function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())},t.prototype.setInactiveStyles=function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())},t.prototype.getLabel=function(){return this.viewValue},t.prototype._handleKeydown=function(t){t.keyCode!==c.ENTER&&t.keyCode!==c.SPACE||(this._selectViaInteraction(),t.preventDefault())},t.prototype._selectViaInteraction=function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))},t.prototype._getTabIndex=function(){return this.disabled?"-1":"0"},t.prototype._getHostElement=function(){return this._element.nativeElement},t.prototype._emitSelectionChangeEvent=function(t){void 0===t&&(t=!1),this.onSelectionChange.emit(new Bt(this,t))},t.countGroupLabelsBeforeOption=function(t,e,n){if(n.length){for(var r=e.toArray(),i=n.toArray(),o=0,a=0;a<t+1;a++)r[a].group&&r[a].group===i[o]&&o++;return o}return 0},t.decorators=[{type:e.Component,args:[{selector:"mat-option",exportAs:"matOption",host:{role:"option","[attr.tabindex]":"_getTabIndex()","[class.mat-selected]":"selected","[class.mat-option-multiple]":"multiple","[class.mat-active]":"active","[id]":"id","[attr.aria-selected]":"selected.toString()","[attr.aria-disabled]":"disabled.toString()","[class.mat-option-disabled]":"disabled","(click)":"_selectViaInteraction()","(keydown)":"_handleKeydown($event)",class:"mat-option"},template:'<mat-pseudo-checkbox *ngIf="multiple" class="mat-option-pseudo-checkbox" [state]="selected ? \'checked\' : \'\'" [disabled]="disabled"></mat-pseudo-checkbox><span class="mat-option-text"><ng-content></ng-content></span><div class="mat-option-ripple" mat-ripple [matRippleTrigger]="_getHostElement()" [matRippleDisabled]="disabled || disableRipple"></div>',encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ChangeDetectorRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Ut]}]},{type:Ft,decorators:[{type:e.Optional}]}]},t.propDecorators={value:[{type:e.Input}],disabled:[{type:e.Input}],onSelectionChange:[{type:e.Output}]},t}(),zt=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[It,a.CommonModule,Dt],exports:[Ht,Ft],declarations:[Ht,Ft]}]}],t.ctorParameters=function(){return[]},t}(),Wt=new e.InjectionToken("mat-label-global-options");function Gt(t,e){var n=e.trim();t.style.transform=n,t.style.webkitTransform=n}var qt=0,Yt=function(){function t(){this.id="mat-error-"+qt++}return t.decorators=[{type:e.Directive,args:[{selector:"mat-error",host:{class:"mat-error",role:"alert","[attr.id]":"id"}}]}],t.ctorParameters=function(){return[]},t.propDecorators={id:[{type:e.Input}]},t}(),Kt=function(){return function(){}}();function $t(){return Error("Placeholder attribute and child element were both specified.")}function Xt(t){return Error("A hint was already declared for 'align=\""+t+"\"'.")}function Qt(){return Error("mat-form-field must contain a MatFormFieldControl.")}var Zt=0,Jt=function(){function t(){this.align="start",this.id="mat-hint-"+Zt++}return t.decorators=[{type:e.Directive,args:[{selector:"mat-hint",host:{class:"mat-hint","[class.mat-right]":'align == "end"',"[attr.id]":"id","[attr.align]":"null"}}]}],t.ctorParameters=function(){return[]},t.propDecorators={align:[{type:e.Input}],id:[{type:e.Input}]},t}(),te=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-placeholder"}]}],t.ctorParameters=function(){return[]},t}(),ee=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-label"}]}],t.ctorParameters=function(){return[]},t}(),ne=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[matPrefix]"}]}],t.ctorParameters=function(){return[]},t}(),re=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[matSuffix]"}]}],t.ctorParameters=function(){return[]},t}(),ie={transitionMessages:_.trigger("transitionMessages",[_.state("enter",_.style({opacity:1,transform:"translateY(0%)"})),_.transition("void => enter",[_.style({opacity:0,transform:"translateY(-100%)"}),_.animate("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},oe=0,ae=function(){function t(t,e,n){this._elementRef=t,this._changeDetectorRef=e,this.color="primary",this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+oe++,this._labelOptions=n||{},this.floatLabel=this._labelOptions.float||"auto"}return Object.defineProperty(t.prototype,"dividerColor",{get:function(){return this.color},set:function(t){this.color=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideRequiredMarker",{get:function(){return this._hideRequiredMarker},set:function(t){this._hideRequiredMarker=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_shouldAlwaysFloat",{get:function(){return"always"===this._floatLabel&&!this._showAlwaysAnimate},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_canLabelFloat",{get:function(){return"never"!==this._floatLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hintLabel",{get:function(){return this._hintLabel},set:function(t){this._hintLabel=t,this._processHints()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"floatPlaceholder",{get:function(){return this._floatLabel},set:function(t){this.floatLabel=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"floatLabel",{get:function(){return this._floatLabel},set:function(t){t!==this._floatLabel&&(this._floatLabel=t||this._labelOptions.float||"auto",this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this._validateControlChild(),this._control.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+this._control.controlType),this._control.stateChanges.pipe(v.startWith(null)).subscribe(function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()});var e=this._control.ngControl;e&&e.valueChanges&&e.valueChanges.subscribe(function(){t._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(v.startWith(null)).subscribe(function(){t._processHints(),t._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(v.startWith(null)).subscribe(function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})},t.prototype.ngAfterContentChecked=function(){this._validateControlChild()},t.prototype.ngAfterViewInit=function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()},t.prototype._shouldForward=function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]},t.prototype._hasPlaceholder=function(){return!(!this._control.placeholder&&!this._placeholderChild)},t.prototype._hasLabel=function(){return!!this._labelChild},t.prototype._shouldLabelFloat=function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._control.shouldPlaceholderFloat||this._shouldAlwaysFloat)},t.prototype._hideControlPlaceholder=function(){return!this._hasLabel()||!this._shouldLabelFloat()},t.prototype._hasFloatingLabel=function(){return this._hasLabel()||this._hasPlaceholder()},t.prototype._getDisplayedMessages=function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"},t.prototype._animateAndLockLabel=function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._showAlwaysAnimate=!0,this._floatLabel="always",b.fromEvent(this._label.nativeElement,"transitionend").pipe(d.take(1)).subscribe(function(){t._showAlwaysAnimate=!1}),this._changeDetectorRef.markForCheck())},t.prototype._validatePlaceholders=function(){if(this._control.placeholder&&this._placeholderChild)throw $t()},t.prototype._processHints=function(){this._validateHints(),this._syncDescribedByIds()},t.prototype._validateHints=function(){var t,e,n=this;this._hintChildren&&this._hintChildren.forEach(function(r){if("start"==r.align){if(t||n.hintLabel)throw Xt("start");t=r}else if("end"==r.align){if(e)throw Xt("end");e=r}})},t.prototype._syncDescribedByIds=function(){if(this._control){var t=[];if("hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find(function(t){return"start"===t.align}):null,n=this._hintChildren?this._hintChildren.find(function(t){return"end"===t.align}):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&(t=this._errorChildren.map(function(t){return t.id}));this._control.setDescribedByIds(t)}},t.prototype._validateControlChild=function(){if(!this._control)throw Qt()},t.decorators=[{type:e.Component,args:[{selector:"mat-input-container, mat-form-field",exportAs:"matFormField",template:'<div class="mat-input-wrapper mat-form-field-wrapper"><div class="mat-input-flex mat-form-field-flex" #connectionContainer (click)="_control.onContainerClick && _control.onContainerClick($event)"><div class="mat-input-prefix mat-form-field-prefix" *ngIf="_prefixChildren.length"><ng-content select="[matPrefix]"></ng-content></div><div class="mat-input-infix mat-form-field-infix" #inputContainer><ng-content></ng-content><span class="mat-form-field-label-wrapper mat-input-placeholder-wrapper mat-form-field-placeholder-wrapper"><label class="mat-form-field-label mat-input-placeholder mat-form-field-placeholder" [attr.for]="_control.id" [attr.aria-owns]="_control.id" [class.mat-empty]="_control.empty && !_shouldAlwaysFloat" [class.mat-form-field-empty]="_control.empty && !_shouldAlwaysFloat" [class.mat-accent]="color == \'accent\'" [class.mat-warn]="color == \'warn\'" #label *ngIf="_hasFloatingLabel()" [ngSwitch]="_hasLabel()"><ng-container *ngSwitchCase="false"><ng-content select="mat-placeholder"></ng-content>{{_control.placeholder}}</ng-container><ng-content select="mat-label" *ngSwitchCase="true"></ng-content><span class="mat-placeholder-required mat-form-field-required-marker" aria-hidden="true" *ngIf="!hideRequiredMarker && _control.required && !_control.disabled">&nbsp;*</span></label></span></div><div class="mat-input-suffix mat-form-field-suffix" *ngIf="_suffixChildren.length"><ng-content select="[matSuffix]"></ng-content></div></div><div class="mat-input-underline mat-form-field-underline" #underline><span class="mat-input-ripple mat-form-field-ripple" [class.mat-accent]="color == \'accent\'" [class.mat-warn]="color == \'warn\'"></span></div><div class="mat-input-subscript-wrapper mat-form-field-subscript-wrapper" [ngSwitch]="_getDisplayedMessages()"><div *ngSwitchCase="\'error\'" [@transitionMessages]="_subscriptAnimationState"><ng-content select="mat-error"></ng-content></div><div class="mat-input-hint-wrapper mat-form-field-hint-wrapper" *ngSwitchCase="\'hint\'" [@transitionMessages]="_subscriptAnimationState"><div *ngIf="hintLabel" [id]="_hintLabelId" class="mat-hint">{{hintLabel}}</div><ng-content select="mat-hint:not([align=\'end\'])"></ng-content><div class="mat-input-hint-spacer mat-form-field-hint-spacer"></div><ng-content select="mat-hint[align=\'end\']"></ng-content></div></div></div>',styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none}.mat-form-field-prefix .mat-icon,.mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-prefix .mat-icon-button,.mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform:perspective(100px);-ms-transform:none;transform-origin:0 0;transition:transform .4s cubic-bezier(.25,.8,.25,1),color .4s cubic-bezier(.25,.8,.25,1),width .4s cubic-bezier(.25,.8,.25,1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-empty.mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-placeholder-wrapper .mat-form-field-placeholder,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-placeholder-wrapper .mat-form-field-placeholder{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-placeholder-wrapper .mat-form-field-placeholder,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-placeholder-wrapper .mat-form-field-placeholder{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;height:1px;width:100%}.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.mat-form-field-underline .mat-form-field-ripple{position:absolute;top:0;left:0;width:100%;height:2px;transform-origin:50%;transform:scaleX(.5);visibility:hidden;opacity:0;transition:background-color .3s cubic-bezier(.55,0,.55,.2)}.mat-form-field-invalid:not(.mat-focused) .mat-form-field-underline .mat-form-field-ripple{height:1px}.mat-focused .mat-form-field-underline .mat-form-field-ripple,.mat-form-field-invalid .mat-form-field-underline .mat-form-field-ripple{visibility:visible;opacity:1;transform:scaleX(1);transition:transform .3s cubic-bezier(.25,.8,.25,1),opacity .1s cubic-bezier(.25,.8,.25,1),background-color .3s cubic-bezier(.25,.8,.25,1)}.mat-form-field-subscript-wrapper{position:absolute;width:100%;overflow:hidden}.mat-form-field-label-wrapper .mat-icon,.mat-form-field-subscript-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block} .mat-input-element{font:inherit;background:0 0;color:currentColor;border:none;outline:0;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element[type=date]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=month]::after,.mat-input-element[type=time]::after,.mat-input-element[type=week]::after{content:' ';white-space:pre;width:1px}.mat-input-element::placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-input-element::-moz-placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-input-element::-webkit-input-placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-input-element:-ms-input-placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent!important;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent!important;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent!important;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent!important;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-autosize{resize:none}"],animations:[ie.transitionMessages],host:{class:"mat-input-container mat-form-field","[class.mat-input-invalid]":"_control.errorState","[class.mat-form-field-invalid]":"_control.errorState","[class.mat-form-field-can-float]":"_canLabelFloat","[class.mat-form-field-should-float]":"_shouldLabelFloat()","[class.mat-form-field-hide-placeholder]":"_hideControlPlaceholder()","[class.mat-form-field-disabled]":"_control.disabled","[class.mat-focused]":"_control.focused","[class.mat-primary]":'color == "primary"',"[class.mat-accent]":'color == "accent"',"[class.mat-warn]":'color == "warn"',"[class.ng-untouched]":'_shouldForward("untouched")',"[class.ng-touched]":'_shouldForward("touched")',"[class.ng-pristine]":'_shouldForward("pristine")',"[class.ng-dirty]":'_shouldForward("dirty")',"[class.ng-valid]":'_shouldForward("valid")',"[class.ng-invalid]":'_shouldForward("invalid")',"[class.ng-pending]":'_shouldForward("pending")'},encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ChangeDetectorRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Wt]}]}]},t.propDecorators={color:[{type:e.Input}],dividerColor:[{type:e.Input}],hideRequiredMarker:[{type:e.Input}],hintLabel:[{type:e.Input}],floatPlaceholder:[{type:e.Input}],floatLabel:[{type:e.Input}],underlineRef:[{type:e.ViewChild,args:["underline"]}],_connectionContainerRef:[{type:e.ViewChild,args:["connectionContainer"]}],_inputContainerRef:[{type:e.ViewChild,args:["inputContainer"]}],_label:[{type:e.ViewChild,args:["label"]}],_control:[{type:e.ContentChild,args:[Kt]}],_placeholderChild:[{type:e.ContentChild,args:[te]}],_labelChild:[{type:e.ContentChild,args:[ee]}],_errorChildren:[{type:e.ContentChildren,args:[Yt]}],_hintChildren:[{type:e.ContentChildren,args:[Jt]}],_prefixChildren:[{type:e.ContentChildren,args:[ne]}],_suffixChildren:[{type:e.ContentChildren,args:[re]}]},t}(),se=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[Yt,Jt,ae,te,ne,re,ee],imports:[a.CommonModule,s.PlatformModule],exports:[Yt,Jt,ae,te,ne,re,ee]}]}],t.ctorParameters=function(){return[]},t}(),ce=0,le=function(){return function(t,e){this.source=t,this.option=e}}(),ue=function(){return function(){}}(),pe=et(ue),he=function(t){function n(n,r){var i=t.call(this)||this;return i._changeDetectorRef=n,i._elementRef=r,i.showPanel=!1,i._isOpen=!1,i.displayWith=null,i.optionSelected=new e.EventEmitter,i._classList={},i.id="mat-autocomplete-"+ce++,i}return Y(n,t),Object.defineProperty(n.prototype,"isOpen",{get:function(){return this._isOpen&&this.showPanel},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"classList",{set:function(t){var e=this;t&&t.length&&(t.split(" ").forEach(function(t){return e._classList[t.trim()]=!0}),this._elementRef.nativeElement.className="")},enumerable:!0,configurable:!0}),n.prototype.ngAfterContentInit=function(){this._keyManager=new l.ActiveDescendantKeyManager(this.options).withWrap(),this._setVisibility()},n.prototype._setScrollTop=function(t){this.panel&&(this.panel.nativeElement.scrollTop=t)},n.prototype._getScrollTop=function(){return this.panel?this.panel.nativeElement.scrollTop:0},n.prototype._setVisibility=function(){this.showPanel=!!this.options.length,this._classList["mat-autocomplete-visible"]=this.showPanel,this._classList["mat-autocomplete-hidden"]=!this.showPanel,this._changeDetectorRef.markForCheck()},n.prototype._emitSelectEvent=function(t){var e=new le(this,t);this.optionSelected.emit(e)},n.decorators=[{type:e.Component,args:[{selector:"mat-autocomplete",template:'<ng-template><div class="mat-autocomplete-panel" role="listbox" [id]="id" [ngClass]="_classList" #panel><ng-content></ng-content></div></ng-template>',styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative}.mat-autocomplete-panel:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,exportAs:"matAutocomplete",inputs:["disableRipple"],host:{class:"mat-autocomplete"},providers:[{provide:Ut,useExisting:n}]}]}],n.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef}]},n.propDecorators={template:[{type:e.ViewChild,args:[e.TemplateRef]}],panel:[{type:e.ViewChild,args:["panel"]}],options:[{type:e.ContentChildren,args:[Ht,{descendants:!0}]}],optionGroups:[{type:e.ContentChildren,args:[Ft]}],displayWith:[{type:e.Input}],optionSelected:[{type:e.Output}],classList:[{type:e.Input,args:["class"]}]},n}(pe),de=new e.InjectionToken("mat-autocomplete-scroll-strategy");function fe(t){return function(){return t.scrollStrategies.reposition()}}var me={provide:de,deps:[u.Overlay],useFactory:fe},ge={provide:y.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return ve}),multi:!0};function ye(){return Error("Attempting to open an undefined instance of `mat-autocomplete`. Make sure that the id passed to the `matAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.")}var ve=function(){function t(t,e,n,r,o,a,s,c,l){this._element=t,this._overlay=e,this._viewContainerRef=n,this._zone=r,this._changeDetectorRef=o,this._scrollStrategy=a,this._dir=s,this._formField=c,this._document=l,this._panelOpen=!1,this._manuallyFloatingLabel=!1,this._escapeEventStream=new i.Subject,this._onChange=function(){},this._onTouched=function(){}}return t.prototype.ngOnDestroy=function(){this._destroyPanel(),this._escapeEventStream.complete()},Object.defineProperty(t.prototype,"panelOpen",{get:function(){return this._panelOpen&&this.autocomplete.showPanel},enumerable:!0,configurable:!0}),t.prototype.openPanel=function(){this._attachOverlay(),this._floatLabel()},t.prototype.closePanel=function(){this._resetLabel(),this._panelOpen&&(this.autocomplete._isOpen=this._panelOpen=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._changeDetectorRef.detectChanges())},Object.defineProperty(t.prototype,"panelClosingActions",{get:function(){var t=this;return w.merge(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(h.filter(function(){return t._panelOpen})),this._escapeEventStream,this._outsideClickStream,this._overlayRef?this._overlayRef.detachments().pipe(h.filter(function(){return t._panelOpen})):C.of())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"optionSelections",{get:function(){return w.merge.apply(void 0,this.autocomplete.options.map(function(t){return t.onSelectionChange}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeOption",{get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_outsideClickStream",{get:function(){var t=this;return this._document?w.merge(b.fromEvent(this._document,"click"),b.fromEvent(this._document,"touchend")).pipe(h.filter(function(e){var n=e.target,r=t._formField?t._formField._elementRef.nativeElement:null;return t._panelOpen&&n!==t._element.nativeElement&&(!r||!r.contains(n))&&!!t._overlayRef&&!t._overlayRef.overlayElement.contains(n)})):C.of(null)},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e=this;Promise.resolve(null).then(function(){return e._setTriggerValue(t)})},t.prototype.registerOnChange=function(t){this._onChange=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.setDisabledState=function(t){this._element.nativeElement.disabled=t},t.prototype._handleKeydown=function(t){var e=t.keyCode;if(e===c.ESCAPE&&this.panelOpen)this._resetActiveItem(),this._escapeEventStream.next(),t.stopPropagation();else if(this.activeOption&&e===c.ENTER&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else{var n=this.autocomplete._keyManager.activeItem,r=e===c.UP_ARROW||e===c.DOWN_ARROW;this.panelOpen||e===c.TAB?this.autocomplete._keyManager.onKeydown(t):r&&this.openPanel(),(r||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption()}},t.prototype._handleInput=function(t){document.activeElement===t.target&&(this._onChange(t.target.value),this.openPanel())},t.prototype._handleFocus=function(){this._element.nativeElement.readOnly||(this._attachOverlay(),this._floatLabel(!0))},t.prototype._floatLabel=function(t){void 0===t&&(t=!1),this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)},t.prototype._resetLabel=function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)},t.prototype._scrollToOption=function(){var t=this.autocomplete._keyManager.activeItemIndex||0,e=48*(t+Ht.countGroupLabelsBeforeOption(t,this.autocomplete.options,this.autocomplete.optionGroups)),n=this.autocomplete._getScrollTop();if(e<n)this.autocomplete._setScrollTop(e);else if(e+48>n+256){var r=e-256+48;this.autocomplete._setScrollTop(Math.max(0,r))}},t.prototype._subscribeToClosingActions=function(){var t=this,e=this._zone.onStable.asObservable().pipe(d.take(1)),n=this.autocomplete.options.changes.pipe(m.tap(function(){return t._positionStrategy.recalculateLastPosition()}),g.delay(0));return w.merge(e,n).pipe(f.switchMap(function(){return t._resetActiveItem(),t.autocomplete._setVisibility(),t.panelClosingActions}),d.take(1)).subscribe(function(e){return t._setValueAndClose(e)})},t.prototype._destroyPanel=function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)},t.prototype._setTriggerValue=function(t){var e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,n=null!=e?e:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n},t.prototype._setValueAndClose=function(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()},t.prototype._clearPreviousSelectedOption=function(t){this.autocomplete.options.forEach(function(e){e!=t&&e.selected&&e.deselect()})},t.prototype._attachOverlay=function(){if(!this.autocomplete)throw ye();this._overlayRef?this._overlayRef.updateSize({width:this._getHostWidth()}):(this._portal=new p.TemplatePortal(this.autocomplete.template,this._viewContainerRef),this._overlayRef=this._overlay.create(this._getOverlayConfig())),this._overlayRef&&!this._overlayRef.hasAttached()&&(this._overlayRef.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions()),this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._panelOpen=!0},t.prototype._getOverlayConfig=function(){return new u.OverlayConfig({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getHostWidth(),direction:this._dir?this._dir.value:"ltr"})},t.prototype._getOverlayPosition=function(){return this._positionStrategy=this._overlay.position().connectedTo(this._getConnectedElement(),{originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}).withFallbackPosition({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),this._positionStrategy},t.prototype._getConnectedElement=function(){return this._formField?this._formField._connectionContainerRef:this._element},t.prototype._getHostWidth=function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width},t.prototype._resetActiveItem=function(){this.autocomplete._keyManager.setActiveItem(-1)},t.decorators=[{type:e.Directive,args:[{selector:"input[matAutocomplete], textarea[matAutocomplete]",host:{role:"combobox",autocomplete:"off","aria-autocomplete":"list","[attr.aria-activedescendant]":"activeOption?.id","[attr.aria-expanded]":"panelOpen.toString()","[attr.aria-owns]":"autocomplete?.id","(focusin)":"_handleFocus()","(blur)":"_onTouched()","(input)":"_handleInput($event)","(keydown)":"_handleKeydown($event)"},providers:[ge]}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:u.Overlay},{type:e.ViewContainerRef},{type:e.NgZone},{type:e.ChangeDetectorRef},{type:void 0,decorators:[{type:e.Inject,args:[de]}]},{type:n.Directionality,decorators:[{type:e.Optional}]},{type:ae,decorators:[{type:e.Optional},{type:e.Host}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[a.DOCUMENT]}]}]},t.propDecorators={autocomplete:[{type:e.Input,args:["matAutocomplete"]}]},t}(),be=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[zt,u.OverlayModule,Z,a.CommonModule],exports:[he,zt,ve,Z],declarations:[he,ve],providers:[me]}]}],t.ctorParameters=function(){return[]},t}(),_e="accent",we=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"button[mat-button], a[mat-button]",host:{class:"mat-button"}}]}],t.ctorParameters=function(){return[]},t}(),Ce=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"button[mat-raised-button], a[mat-raised-button]",host:{class:"mat-raised-button"}}]}],t.ctorParameters=function(){return[]},t}(),xe=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"button[mat-icon-button], a[mat-icon-button]",host:{class:"mat-icon-button"}}]}],t.ctorParameters=function(){return[]},t}(),Ee=function(){function t(t,e){(t||e).color=_e}return t.decorators=[{type:e.Directive,args:[{selector:"button[mat-fab], a[mat-fab]",host:{class:"mat-fab"}}]}],t.ctorParameters=function(){return[{type:Pe,decorators:[{type:e.Self},{type:e.Optional},{type:e.Inject,args:[e.forwardRef(function(){return Pe})]}]},{type:Ae,decorators:[{type:e.Self},{type:e.Optional},{type:e.Inject,args:[e.forwardRef(function(){return Ae})]}]}]},t}(),Se=function(){function t(t,e){(t||e).color=_e}return t.decorators=[{type:e.Directive,args:[{selector:"button[mat-mini-fab], a[mat-mini-fab]",host:{class:"mat-mini-fab"}}]}],t.ctorParameters=function(){return[{type:Pe,decorators:[{type:e.Self},{type:e.Optional},{type:e.Inject,args:[e.forwardRef(function(){return Pe})]}]},{type:Ae,decorators:[{type:e.Self},{type:e.Optional},{type:e.Inject,args:[e.forwardRef(function(){return Ae})]}]}]},t}(),ke=function(){return function(t){this._elementRef=t}}(),Oe=tt(J(et(ke))),Pe=function(t){function n(e,n,r){var i=t.call(this,e)||this;return i._platform=n,i._focusMonitor=r,i._isRoundButton=i._hasHostAttributes("mat-fab","mat-mini-fab"),i._isIconButton=i._hasHostAttributes("mat-icon-button"),i._focusMonitor.monitor(i._elementRef.nativeElement,!0),i}return Y(n,t),n.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef.nativeElement)},n.prototype.focus=function(){this._getHostElement().focus()},n.prototype._getHostElement=function(){return this._elementRef.nativeElement},n.prototype._isRippleDisabled=function(){return this.disableRipple||this.disabled},n.prototype._hasHostAttributes=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return!!this._platform.isBrowser&&e.some(function(e){return t._getHostElement().hasAttribute(e)})},n.decorators=[{type:e.Component,args:[{selector:"button[mat-button], button[mat-raised-button], button[mat-icon-button],\n             button[mat-fab], button[mat-mini-fab]",exportAs:"matButton",host:{"[disabled]":"disabled || null"},template:'<span class="mat-button-wrapper"><ng-content></ng-content></span><div matRipple class="mat-button-ripple" [class.mat-button-ripple-round]="_isRoundButton || _isIconButton" [matRippleDisabled]="_isRippleDisabled()" [matRippleCentered]="_isIconButton" [matRippleTrigger]="_getHostElement()"></div><div class="mat-button-focus-overlay"></div>',styles:[".mat-button,.mat-fab,.mat-icon-button,.mat-mini-fab,.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:88px;line-height:36px;padding:0 16px;border-radius:2px}[disabled].mat-button,[disabled].mat-fab,[disabled].mat-icon-button,[disabled].mat-mini-fab,[disabled].mat-raised-button{cursor:default}.cdk-keyboard-focused.mat-button .mat-button-focus-overlay,.cdk-keyboard-focused.mat-fab .mat-button-focus-overlay,.cdk-keyboard-focused.mat-icon-button .mat-button-focus-overlay,.cdk-keyboard-focused.mat-mini-fab .mat-button-focus-overlay,.cdk-keyboard-focused.mat-raised-button .mat-button-focus-overlay,.cdk-program-focused.mat-button .mat-button-focus-overlay,.cdk-program-focused.mat-fab .mat-button-focus-overlay,.cdk-program-focused.mat-icon-button .mat-button-focus-overlay,.cdk-program-focused.mat-mini-fab .mat-button-focus-overlay,.cdk-program-focused.mat-raised-button .mat-button-focus-overlay{opacity:1}.mat-button::-moz-focus-inner,.mat-fab::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-mini-fab::-moz-focus-inner,.mat-raised-button::-moz-focus-inner{border:0}.mat-fab,.mat-mini-fab,.mat-raised-button{transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1)}.mat-fab:not([class*=mat-elevation-z]),.mat-mini-fab:not([class*=mat-elevation-z]),.mat-raised-button:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-fab:not([disabled]):active:not([class*=mat-elevation-z]),.mat-mini-fab:not([disabled]):active:not([class*=mat-elevation-z]),.mat-raised-button:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}[disabled].mat-fab,[disabled].mat-mini-fab,[disabled].mat-raised-button{box-shadow:none}.mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{transition:none;opacity:0}.mat-button:hover .mat-button-focus-overlay{opacity:1}.mat-fab{min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-mini-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button .mat-icon,.mat-icon-button i{line-height:24px}.mat-button,.mat-fab,.mat-icon-button,.mat-mini-fab,.mat-raised-button{color:currentColor}.mat-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*{vertical-align:middle}.mat-button-focus-overlay,.mat-button-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-focus-overlay{background-color:rgba(0,0,0,.12);border-radius:inherit;opacity:0;transition:opacity .2s cubic-bezier(.35,0,.25,1),background-color .2s cubic-bezier(.35,0,.25,1)}@media screen and (-ms-high-contrast:active){.mat-button-focus-overlay{background-color:rgba(255,255,255,.5)}}.mat-button-ripple-round{border-radius:50%;z-index:1}@media screen and (-ms-high-contrast:active){.mat-button,.mat-fab,.mat-icon-button,.mat-mini-fab,.mat-raised-button{outline:solid 1px}}"],inputs:["disabled","disableRipple","color"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[{type:e.ElementRef},{type:s.Platform},{type:l.FocusMonitor}]},n}(Oe),Ae=function(t){function n(e,n,r){return t.call(this,r,e,n)||this}return Y(n,t),n.prototype._haltDisabledEvents=function(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())},n.decorators=[{type:e.Component,args:[{selector:"a[mat-button], a[mat-raised-button], a[mat-icon-button], a[mat-fab], a[mat-mini-fab]",exportAs:"matButton, matAnchor",host:{"[attr.tabindex]":"disabled ? -1 : 0","[attr.disabled]":"disabled || null","[attr.aria-disabled]":"disabled.toString()","(click)":"_haltDisabledEvents($event)"},inputs:["disabled","disableRipple","color"],template:'<span class="mat-button-wrapper"><ng-content></ng-content></span><div matRipple class="mat-button-ripple" [class.mat-button-ripple-round]="_isRoundButton || _isIconButton" [matRippleDisabled]="_isRippleDisabled()" [matRippleCentered]="_isIconButton" [matRippleTrigger]="_getHostElement()"></div><div class="mat-button-focus-overlay"></div>',styles:[".mat-button,.mat-fab,.mat-icon-button,.mat-mini-fab,.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:88px;line-height:36px;padding:0 16px;border-radius:2px}[disabled].mat-button,[disabled].mat-fab,[disabled].mat-icon-button,[disabled].mat-mini-fab,[disabled].mat-raised-button{cursor:default}.cdk-keyboard-focused.mat-button .mat-button-focus-overlay,.cdk-keyboard-focused.mat-fab .mat-button-focus-overlay,.cdk-keyboard-focused.mat-icon-button .mat-button-focus-overlay,.cdk-keyboard-focused.mat-mini-fab .mat-button-focus-overlay,.cdk-keyboard-focused.mat-raised-button .mat-button-focus-overlay,.cdk-program-focused.mat-button .mat-button-focus-overlay,.cdk-program-focused.mat-fab .mat-button-focus-overlay,.cdk-program-focused.mat-icon-button .mat-button-focus-overlay,.cdk-program-focused.mat-mini-fab .mat-button-focus-overlay,.cdk-program-focused.mat-raised-button .mat-button-focus-overlay{opacity:1}.mat-button::-moz-focus-inner,.mat-fab::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-mini-fab::-moz-focus-inner,.mat-raised-button::-moz-focus-inner{border:0}.mat-fab,.mat-mini-fab,.mat-raised-button{transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1)}.mat-fab:not([class*=mat-elevation-z]),.mat-mini-fab:not([class*=mat-elevation-z]),.mat-raised-button:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-fab:not([disabled]):active:not([class*=mat-elevation-z]),.mat-mini-fab:not([disabled]):active:not([class*=mat-elevation-z]),.mat-raised-button:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}[disabled].mat-fab,[disabled].mat-mini-fab,[disabled].mat-raised-button{box-shadow:none}.mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{transition:none;opacity:0}.mat-button:hover .mat-button-focus-overlay{opacity:1}.mat-fab{min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-mini-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button .mat-icon,.mat-icon-button i{line-height:24px}.mat-button,.mat-fab,.mat-icon-button,.mat-mini-fab,.mat-raised-button{color:currentColor}.mat-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*{vertical-align:middle}.mat-button-focus-overlay,.mat-button-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-focus-overlay{background-color:rgba(0,0,0,.12);border-radius:inherit;opacity:0;transition:opacity .2s cubic-bezier(.35,0,.25,1),background-color .2s cubic-bezier(.35,0,.25,1)}@media screen and (-ms-high-contrast:active){.mat-button-focus-overlay{background-color:rgba(255,255,255,.5)}}.mat-button-ripple-round{border-radius:50%;z-index:1}@media screen and (-ms-high-contrast:active){.mat-button,.mat-fab,.mat-icon-button,.mat-mini-fab,.mat-raised-button{outline:solid 1px}}"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[{type:s.Platform},{type:l.FocusMonitor},{type:e.ElementRef}]},n}(Pe),Te=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule,It,Z,l.A11yModule],exports:[Pe,Ae,Se,Ee,Z,we,Ce,xe],declarations:[Pe,Ae,Se,Ee,we,Ce,xe]}]}],t.ctorParameters=function(){return[]},t}(),Me=function(){return function(){}}(),Ie=J(Me),Re={provide:y.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return Le}),multi:!0},De=0,Ne=function(){return function(){}}(),Le=function(t){function n(n){var r=t.call(this)||this;return r._changeDetector=n,r._value=null,r._name="mat-button-toggle-group-"+De++,r._vertical=!1,r._selected=null,r._controlValueAccessorChangeFn=function(){},r._onTouched=function(){},r.valueChange=new e.EventEmitter,r.change=new e.EventEmitter,r}return Y(n,t),Object.defineProperty(n.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t,this._updateButtonToggleNames()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"vertical",{get:function(){return this._vertical},set:function(t){this._vertical=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this._value},set:function(t){this._value!=t&&(this._value=t,this.valueChange.emit(t),this._updateSelectedButtonToggleFromValue())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=t,this.value=t?t.value:null,t&&!t.checked&&(t.checked=!0)},enumerable:!0,configurable:!0}),n.prototype._updateButtonToggleNames=function(){var t=this;this._buttonToggles&&this._buttonToggles.forEach(function(e){e.name=t._name})},n.prototype._updateSelectedButtonToggleFromValue=function(){var t=this,e=null!=this._selected&&this._selected.value==this._value;if(null!=this._buttonToggles&&!e){var n=this._buttonToggles.filter(function(e){return e.value==t._value})[0];n?this.selected=n:null==this.value&&(this.selected=null,this._buttonToggles.forEach(function(t){t.checked=!1}))}},n.prototype._emitChangeEvent=function(){var t=new Ne;t.source=this._selected,t.value=this._value,this._controlValueAccessorChangeFn(t.value),this.change.emit(t)},n.prototype.writeValue=function(t){this.value=t,this._changeDetector.markForCheck()},n.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},n.prototype.registerOnTouched=function(t){this._onTouched=t},n.prototype.setDisabledState=function(t){this.disabled=t,this._markButtonTogglesForCheck()},n.prototype._markButtonTogglesForCheck=function(){this._buttonToggles&&this._buttonToggles.forEach(function(t){return t._markForCheck()})},n.decorators=[{type:e.Directive,args:[{selector:"mat-button-toggle-group:not([multiple])",providers:[Re],inputs:["disabled"],host:{role:"radiogroup",class:"mat-button-toggle-group","[class.mat-button-toggle-vertical]":"vertical"},exportAs:"matButtonToggleGroup"}]}],n.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]},n.propDecorators={_buttonToggles:[{type:e.ContentChildren,args:[e.forwardRef(function(){return Fe})]}],name:[{type:e.Input}],vertical:[{type:e.Input}],value:[{type:e.Input}],valueChange:[{type:e.Output}],selected:[{type:e.Input}],change:[{type:e.Output}]},n}(Ie),je=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._vertical=!1,e}return Y(n,t),Object.defineProperty(n.prototype,"vertical",{get:function(){return this._vertical},set:function(t){this._vertical=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),n.decorators=[{type:e.Directive,args:[{selector:"mat-button-toggle-group[multiple]",exportAs:"matButtonToggleGroup",inputs:["disabled"],host:{class:"mat-button-toggle-group","[class.mat-button-toggle-vertical]":"vertical",role:"group"}}]}],n.ctorParameters=function(){return[]},n.propDecorators={vertical:[{type:e.Input}]},n}(Ie),Fe=function(){function t(t,n,r,i,o,a){var s=this;this._changeDetectorRef=r,this._buttonToggleDispatcher=i,this._elementRef=o,this._focusMonitor=a,this.ariaLabel="",this.ariaLabelledby=null,this._checked=!1,this._disabled=!1,this._value=null,this._isSingleSelector=!1,this._removeUniqueSelectionListener=function(){},this.change=new e.EventEmitter,this.buttonToggleGroup=t,this.buttonToggleGroupMultiple=n,this.buttonToggleGroup?(this._removeUniqueSelectionListener=i.listen(function(t,e){t!=s.id&&e==s.name&&(s.checked=!1,s._changeDetectorRef.markForCheck())}),this._type="radio",this.name=this.buttonToggleGroup.name,this._isSingleSelector=!0):(this._type="checkbox",this._isSingleSelector=!1)}return Object.defineProperty(t.prototype,"inputId",{get:function(){return this.id+"-input"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(t){this._isSingleSelector&&t&&(this._buttonToggleDispatcher.notify(this.id,this.name),this._changeDetectorRef.markForCheck()),this._checked=t,t&&this._isSingleSelector&&this.buttonToggleGroup.value!=this.value&&(this.buttonToggleGroup.selected=this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value!=t&&(null!=this.buttonToggleGroup&&this.checked&&(this.buttonToggleGroup.value=t),this._value=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled||null!=this.buttonToggleGroup&&this.buttonToggleGroup.disabled||null!=this.buttonToggleGroupMultiple&&this.buttonToggleGroupMultiple.disabled},set:function(t){this._disabled=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){null==this.id&&(this.id="mat-button-toggle-"+De++),this.buttonToggleGroup&&this._value==this.buttonToggleGroup.value&&(this._checked=!0),this._focusMonitor.monitor(this._elementRef.nativeElement,!0)},t.prototype.focus=function(){this._inputElement.nativeElement.focus()},t.prototype._toggle=function(){this.checked=!this.checked},t.prototype._onInputChange=function(t){if(t.stopPropagation(),this._isSingleSelector){var e=this.buttonToggleGroup.selected!=this;this.checked=!0,this.buttonToggleGroup.selected=this,this.buttonToggleGroup._onTouched(),e&&this.buttonToggleGroup._emitChangeEvent()}else this._toggle();this._emitChangeEvent()},t.prototype._onInputClick=function(t){t.stopPropagation()},t.prototype._emitChangeEvent=function(){var t=new Ne;t.source=this,t.value=this._value,this.change.emit(t)},t.prototype.ngOnDestroy=function(){this._removeUniqueSelectionListener()},t.prototype._markForCheck=function(){this._changeDetectorRef.markForCheck()},t.decorators=[{type:e.Component,args:[{selector:"mat-button-toggle",template:'<label [attr.for]="inputId" class="mat-button-toggle-label"><input #input class="mat-button-toggle-input cdk-visually-hidden" [type]="_type" [id]="inputId" [checked]="checked" [disabled]="disabled || null" [name]="name" [attr.aria-label]="ariaLabel" [attr.aria-labelledby]="ariaLabelledby" (change)="_onInputChange($event)" (click)="_onInputClick($event)"><div class="mat-button-toggle-label-content"><ng-content></ng-content></div></label><div class="mat-button-toggle-focus-overlay"></div>',styles:[".mat-button-toggle-group,.mat-button-toggle-standalone{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);position:relative;display:inline-flex;flex-direction:row;border-radius:2px;cursor:pointer;white-space:nowrap;overflow:hidden}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle-disabled .mat-button-toggle-label-content{cursor:default}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay,.mat-button-toggle.cdk-program-focused .mat-button-toggle-focus-overlay{opacity:1}.mat-button-toggle-label-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;cursor:pointer}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;top:0;left:0;right:0;bottom:0;position:absolute}"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,exportAs:"matButtonToggle",changeDetection:e.ChangeDetectionStrategy.OnPush,host:{"[class.mat-button-toggle-standalone]":"!buttonToggleGroup && !buttonToggleGroupMultiple","[class.mat-button-toggle-checked]":"checked","[class.mat-button-toggle-disabled]":"disabled",class:"mat-button-toggle","[attr.id]":"id"}}]}],t.ctorParameters=function(){return[{type:Le,decorators:[{type:e.Optional}]},{type:je,decorators:[{type:e.Optional}]},{type:e.ChangeDetectorRef},{type:x.UniqueSelectionDispatcher},{type:e.ElementRef},{type:l.FocusMonitor}]},t.propDecorators={ariaLabel:[{type:e.Input,args:["aria-label"]}],ariaLabelledby:[{type:e.Input,args:["aria-labelledby"]}],_inputElement:[{type:e.ViewChild,args:["input"]}],id:[{type:e.Input}],name:[{type:e.Input}],checked:[{type:e.Input}],value:[{type:e.Input}],disabled:[{type:e.Input}],change:[{type:e.Output}]},t}(),Ve=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[Z,l.A11yModule],exports:[Le,je,Fe,Z],declarations:[Le,je,Fe],providers:[x.UNIQUE_SELECTION_DISPATCHER_PROVIDER]}]}],t.ctorParameters=function(){return[]},t}(),Be=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-card-content",host:{class:"mat-card-content"}}]}],t.ctorParameters=function(){return[]},t}(),Ue=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-card-title, [mat-card-title], [matCardTitle]",host:{class:"mat-card-title"}}]}],t.ctorParameters=function(){return[]},t}(),He=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]",host:{class:"mat-card-subtitle"}}]}],t.ctorParameters=function(){return[]},t}(),ze=function(){function t(){this.align="start"}return t.decorators=[{type:e.Directive,args:[{selector:"mat-card-actions",exportAs:"matCardActions",host:{class:"mat-card-actions","[class.mat-card-actions-align-end]":'align === "end"'}}]}],t.ctorParameters=function(){return[]},t.propDecorators={align:[{type:e.Input}]},t}(),We=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-card-footer",host:{class:"mat-card-footer"}}]}],t.ctorParameters=function(){return[]},t}(),Ge=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-card-image], [matCardImage]",host:{class:"mat-card-image"}}]}],t.ctorParameters=function(){return[]},t}(),qe=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-card-sm-image], [matCardImageSmall]",host:{class:"mat-card-sm-image"}}]}],t.ctorParameters=function(){return[]},t}(),Ye=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-card-md-image], [matCardImageMedium]",host:{class:"mat-card-md-image"}}]}],t.ctorParameters=function(){return[]},t}(),Ke=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-card-lg-image], [matCardImageLarge]",host:{class:"mat-card-lg-image"}}]}],t.ctorParameters=function(){return[]},t}(),$e=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-card-xl-image], [matCardImageXLarge]",host:{class:"mat-card-xl-image"}}]}],t.ctorParameters=function(){return[]},t}(),Xe=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-card-avatar], [matCardAvatar]",host:{class:"mat-card-avatar"}}]}],t.ctorParameters=function(){return[]},t}(),Qe=function(){function t(){}return t.decorators=[{type:e.Component,args:[{selector:"mat-card",exportAs:"matCard",template:'<ng-content></ng-content><ng-content select="mat-card-footer"></ng-content>',styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(.4,0,.2,1);display:block;position:relative;padding:24px;border-radius:2px}.mat-card:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-card .mat-divider{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider{left:auto;right:0}.mat-card .mat-divider.mat-divider-inset{position:static;margin:0}@media screen and (-ms-high-contrast:active){.mat-card{outline:solid 1px}}.mat-card-flat{box-shadow:none}.mat-card-actions,.mat-card-content,.mat-card-subtitle,.mat-card-title{display:block;margin-bottom:16px}.mat-card-actions{margin-left:-16px;margin-right:-16px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 48px);margin:0 -24px 16px -24px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-footer{display:block;margin:0 -24px -24px -24px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button{margin:0 4px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header-text{margin:0 8px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0}.mat-card-lg-image,.mat-card-md-image,.mat-card-sm-image{margin:-8px 0}.mat-card-title-group{display:flex;justify-content:space-between;margin:0 -8px}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}@media (max-width:600px){.mat-card{padding:24px 16px}.mat-card-actions{margin-left:-8px;margin-right:-8px}.mat-card-image{width:calc(100% + 32px);margin:16px -16px}.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}.mat-card-header{margin:-8px 0 0 0}.mat-card-footer{margin-left:-16px;margin-right:-16px}}.mat-card-content>:first-child,.mat-card>:first-child{margin-top:0}.mat-card-content>:last-child:not(.mat-card-footer),.mat-card>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-24px}.mat-card>.mat-card-actions:last-child{margin-bottom:-16px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child{margin-left:0;margin-right:0}.mat-card-subtitle:not(:first-child),.mat-card-title:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,host:{class:"mat-card"}}]}],t.ctorParameters=function(){return[]},t}(),Ze=function(){function t(){}return t.decorators=[{type:e.Component,args:[{selector:"mat-card-header",template:'<ng-content select="[mat-card-avatar], [matCardAvatar]"></ng-content><div class="mat-card-header-text"><ng-content select="mat-card-title, mat-card-subtitle, [mat-card-title], [mat-card-subtitle]"></ng-content></div><ng-content></ng-content>',encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,host:{class:"mat-card-header"}}]}],t.ctorParameters=function(){return[]},t}(),Je=function(){function t(){}return t.decorators=[{type:e.Component,args:[{selector:"mat-card-title-group",template:'<div><ng-content select="mat-card-title, mat-card-subtitle, [mat-card-title], [mat-card-subtitle]"></ng-content></div><ng-content select="img"></ng-content><ng-content></ng-content>',encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,host:{class:"mat-card-title-group"}}]}],t.ctorParameters=function(){return[]},t}(),tn=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[Z],exports:[Qe,Ze,Je,Be,Ue,He,ze,We,qe,Ye,Ke,Ge,$e,Xe,Z],declarations:[Qe,Ze,Je,Be,Ue,He,ze,We,qe,Ye,Ke,Ge,$e,Xe]}]}],t.ctorParameters=function(){return[]},t}(),en=new e.InjectionToken("mat-checkbox-click-action"),nn=0,rn={provide:y.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return ln}),multi:!0},on={Init:0,Checked:1,Unchecked:2,Indeterminate:3};on[on.Init]="Init",on[on.Checked]="Checked",on[on.Unchecked]="Unchecked",on[on.Indeterminate]="Indeterminate";var an=function(){return function(){}}(),sn=function(){return function(t){this._elementRef=t}}(),cn=nt(tt(et(J(sn)),"accent")),ln=function(t){function n(n,r,i,o,a){var s=t.call(this,n)||this;return s._changeDetectorRef=r,s._focusMonitor=i,s._clickAction=a,s.ariaLabel="",s.ariaLabelledby=null,s._uniqueId="mat-checkbox-"+ ++nn,s.id=s._uniqueId,s.labelPosition="after",s.name=null,s.change=new e.EventEmitter,s.indeterminateChange=new e.EventEmitter,s._rippleConfig={centered:!0,radius:25,speedFactor:1.5},s.onTouched=function(){},s._currentAnimationClass="",s._currentCheckState=on.Init,s._checked=!1,s._indeterminate=!1,s._controlValueAccessorChangeFn=function(){},s.tabIndex=parseInt(o)||0,s}return Y(n,t),Object.defineProperty(n.prototype,"inputId",{get:function(){return(this.id||this._uniqueId)+"-input"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"required",{get:function(){return this._required},set:function(t){this._required=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"align",{get:function(){return"after"==this.labelPosition?"start":"end"},set:function(t){this.labelPosition="start"==t?"after":"before"},enumerable:!0,configurable:!0}),n.prototype.ngAfterViewInit=function(){var t=this;this._focusMonitor.monitor(this._inputElement.nativeElement,!1).subscribe(function(e){return t._onInputFocusChange(e)})},n.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._inputElement.nativeElement)},Object.defineProperty(n.prototype,"checked",{get:function(){return this._checked},set:function(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"indeterminate",{get:function(){return this._indeterminate},set:function(t){var e=t!=this._indeterminate;this._indeterminate=t,e&&(this._indeterminate?this._transitionCheckState(on.Indeterminate):this._transitionCheckState(this.checked?on.Checked:on.Unchecked),this.indeterminateChange.emit(this._indeterminate))},enumerable:!0,configurable:!0}),n.prototype._isRippleDisabled=function(){return this.disableRipple||this.disabled},n.prototype._onLabelTextChange=function(){this._changeDetectorRef.markForCheck()},n.prototype.writeValue=function(t){this.checked=!!t},n.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},n.prototype.registerOnTouched=function(t){this.onTouched=t},n.prototype.setDisabledState=function(t){this.disabled=t,this._changeDetectorRef.markForCheck()},n.prototype._getAriaChecked=function(){return this.checked?"true":this.indeterminate?"mixed":"false"},n.prototype._transitionCheckState=function(t){var e=this._currentCheckState,n=this._elementRef.nativeElement;e!==t&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0&&n.classList.add(this._currentAnimationClass))},n.prototype._emitChangeEvent=function(){var t=new an;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)},n.prototype._onInputFocusChange=function(t){this._focusRipple||"keyboard"!==t?t||(this._removeFocusRipple(),this.onTouched()):this._focusRipple=this._ripple.launch(0,0,K({persistent:!0},this._rippleConfig))},n.prototype.toggle=function(){this.checked=!this.checked},n.prototype._onInputClick=function(t){var e=this;t.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then(function(){e._indeterminate=!1,e.indeterminateChange.emit(e._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?on.Checked:on.Unchecked),this._emitChangeEvent())},n.prototype.focus=function(){this._focusMonitor.focusVia(this._inputElement.nativeElement,"keyboard")},n.prototype._onInteractionEvent=function(t){t.stopPropagation()},n.prototype._getAnimationClassForCheckStateTransition=function(t,e){var n="";switch(t){case on.Init:if(e===on.Checked)n="unchecked-checked";else{if(e!=on.Indeterminate)return"";n="unchecked-indeterminate"}break;case on.Unchecked:n=e===on.Checked?"unchecked-checked":"unchecked-indeterminate";break;case on.Checked:n=e===on.Unchecked?"checked-unchecked":"checked-indeterminate";break;case on.Indeterminate:n=e===on.Checked?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-"+n},n.prototype._removeFocusRipple=function(){this._focusRipple&&(this._focusRipple.fadeOut(),this._focusRipple=null)},n.decorators=[{type:e.Component,args:[{selector:"mat-checkbox",template:'<label [attr.for]="inputId" class="mat-checkbox-layout" #label><div class="mat-checkbox-inner-container" [class.mat-checkbox-inner-container-no-side-margin]="!checkboxLabel.textContent || !checkboxLabel.textContent.trim()"><input #input class="mat-checkbox-input cdk-visually-hidden" type="checkbox" [id]="inputId" [required]="required" [checked]="checked" [attr.value]="value" [disabled]="disabled" [attr.name]="name" [tabIndex]="tabIndex" [indeterminate]="indeterminate" [attr.aria-label]="ariaLabel" [attr.aria-labelledby]="ariaLabelledby" [attr.aria-checked]="_getAriaChecked()" (change)="_onInteractionEvent($event)" (click)="_onInputClick($event)"><div matRipple class="mat-checkbox-ripple" [matRippleTrigger]="label" [matRippleDisabled]="_isRippleDisabled()" [matRippleRadius]="_rippleConfig.radius" [matRippleSpeedFactor]="_rippleConfig.speedFactor" [matRippleCentered]="_rippleConfig.centered"></div><div class="mat-checkbox-frame"></div><div class="mat-checkbox-background"><svg version="1.1" focusable="false" class="mat-checkbox-checkmark" viewBox="0 0 24 24" xml:space="preserve"><path class="mat-checkbox-checkmark-path" fill="none" stroke="white" d="M4.1,12.7 9,17.6 20.3,6.3"/></svg><div class="mat-checkbox-mixedmark"></div></div></div><span class="mat-checkbox-label" #checkboxLabel (cdkObserveContent)="_onLabelTextChange()"><span style="display:none">&nbsp;</span><ng-content></ng-content></span></label>',styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.91026}50%{animation-timing-function:cubic-bezier(0,0,.2,.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0,0,0,1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(.4,0,1,1);stroke-dashoffset:0}to{stroke-dashoffset:-22.91026}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0,0,.2,.1);opacity:1;transform:rotate(0)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(.14,0,0,1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0,0,.2,.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(.14,0,0,1);opacity:1;transform:rotate(0)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}100%,32.8%{opacity:0;transform:scaleX(0)}}.mat-checkbox-checkmark,.mat-checkbox-mixedmark{width:calc(100% - 4px)}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1);cursor:pointer}.mat-checkbox-layout{cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-inner-container{display:inline-block;height:20px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:20px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0,0,.2,.1);border-width:2px;border-style:solid}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0,0,.2,.1),opacity 90ms cubic-bezier(0,0,.2,.1)}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.91026;stroke-dasharray:22.91026;stroke-width:2.66667px}.mat-checkbox-mixedmark{height:2px;opacity:0;transform:scaleX(0) rotate(0)}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0s mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0s mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0s mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0s mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0s mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:.5s linear 0s mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:.5s linear 0s mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:.3s linear 0s mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-ripple{position:absolute;left:-15px;top:-15px;height:50px;width:50px;z-index:1;pointer-events:none}"],exportAs:"matCheckbox",host:{class:"mat-checkbox","[id]":"id","[class.mat-checkbox-indeterminate]":"indeterminate","[class.mat-checkbox-checked]":"checked","[class.mat-checkbox-disabled]":"disabled","[class.mat-checkbox-label-before]":'labelPosition == "before"'},providers:[rn],inputs:["disabled","disableRipple","color","tabIndex"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ChangeDetectorRef},{type:l.FocusMonitor},{type:void 0,decorators:[{type:e.Attribute,args:["tabindex"]}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[en]}]}]},n.propDecorators={ariaLabel:[{type:e.Input,args:["aria-label"]}],ariaLabelledby:[{type:e.Input,args:["aria-labelledby"]}],id:[{type:e.Input}],required:[{type:e.Input}],align:[{type:e.Input}],labelPosition:[{type:e.Input}],name:[{type:e.Input}],change:[{type:e.Output}],indeterminateChange:[{type:e.Output}],value:[{type:e.Input}],_inputElement:[{type:e.ViewChild,args:["input"]}],_ripple:[{type:e.ViewChild,args:[Mt]}],checked:[{type:e.Input}],indeterminate:[{type:e.Input}]},n}(cn),un={provide:y.NG_VALIDATORS,useExisting:e.forwardRef(function(){return pn}),multi:!0},pn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Directive,args:[{selector:"mat-checkbox[required][formControlName],\n             mat-checkbox[required][formControl], mat-checkbox[required][ngModel]",providers:[un],host:{"[attr.required]":'required ? "" : null'}}]}],n.ctorParameters=function(){return[]},n}(y.CheckboxRequiredValidator),hn=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule,It,Z,E.ObserversModule,l.A11yModule],exports:[ln,pn,Z],declarations:[ln,pn]}]}],t.ctorParameters=function(){return[]},t}(),dn=function(){return function(t,e,n){void 0===n&&(n=!1),this.source=t,this.selected=e,this.isUserInput=n}}(),fn=function(){return function(t){this._elementRef=t}}(),mn=tt(J(fn),"primary"),gn=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-basic-chip, [mat-basic-chip]",host:{class:"mat-basic-chip"}}]}],t.ctorParameters=function(){return[]},t}(),yn=function(t){function n(n){var r=t.call(this,n)||this;return r._elementRef=n,r._selected=!1,r._selectable=!0,r._removable=!0,r._hasFocus=!1,r._onFocus=new i.Subject,r._onBlur=new i.Subject,r.selectionChange=new e.EventEmitter,r.destroyed=new e.EventEmitter,r.destroy=r.destroyed,r.removed=new e.EventEmitter,r.onRemove=r.removed,r}return Y(n,t),Object.defineProperty(n.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=r.coerceBooleanProperty(t),this.selectionChange.emit({source:this,isUserInput:!1,selected:t})},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return void 0!=this._value?this._value:this._elementRef.nativeElement.textContent},set:function(t){this._value=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selectable",{get:function(){return this._selectable},set:function(t){this._selectable=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"removable",{get:function(){return this._removable},set:function(t){this._removable=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"ariaSelected",{get:function(){return this.selectable?this.selected.toString():null},enumerable:!0,configurable:!0}),n.prototype.ngOnDestroy=function(){this.destroyed.emit({chip:this})},n.prototype.select=function(){this._selected=!0,this.selectionChange.emit({source:this,isUserInput:!1,selected:!0})},n.prototype.deselect=function(){this._selected=!1,this.selectionChange.emit({source:this,isUserInput:!1,selected:!1})},n.prototype.selectViaInteraction=function(){this._selected=!0,this.selectionChange.emit({source:this,isUserInput:!0,selected:!0})},n.prototype.toggleSelected=function(t){return void 0===t&&(t=!1),this._selected=!this.selected,this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected}),this.selected},n.prototype.focus=function(){this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})},n.prototype.remove=function(){this.removable&&this.removed.emit({chip:this})},n.prototype._handleClick=function(t){this.disabled||(t.preventDefault(),t.stopPropagation(),this.focus())},n.prototype._handleKeydown=function(t){if(!this.disabled)switch(t.keyCode){case c.DELETE:case c.BACKSPACE:this.remove(),t.preventDefault();break;case c.SPACE:this.selectable&&this.toggleSelected(!0),t.preventDefault()}},n.prototype._blur=function(){this._hasFocus=!1,this._onBlur.next({chip:this})},n.decorators=[{type:e.Directive,args:[{selector:"mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]",inputs:["color","disabled"],exportAs:"matChip",host:{class:"mat-chip","[attr.tabindex]":"disabled ? null : -1",role:"option","[class.mat-chip-selected]":"selected","[attr.disabled]":"disabled || null","[attr.aria-disabled]":"disabled.toString()","[attr.aria-selected]":"ariaSelected","(click)":"_handleClick($event)","(keydown)":"_handleKeydown($event)","(focus)":"_hasFocus = true","(blur)":"_blur()"}}]}],n.ctorParameters=function(){return[{type:e.ElementRef}]},n.propDecorators={selected:[{type:e.Input}],value:[{type:e.Input}],selectable:[{type:e.Input}],removable:[{type:e.Input}],selectionChange:[{type:e.Output}],destroyed:[{type:e.Output}],destroy:[{type:e.Output}],removed:[{type:e.Output}],onRemove:[{type:e.Output,args:["remove"]}]},n}(mn),vn=function(){function t(t){this._parentChip=t}return t.prototype._handleClick=function(){this._parentChip.removable&&this._parentChip.remove()},t.decorators=[{type:e.Directive,args:[{selector:"[matChipRemove]",host:{class:"mat-chip-remove","(click)":"_handleClick()"}}]}],t.ctorParameters=function(){return[{type:yn}]},t}(),bn=function(){return function(t,e,n,r){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=r}}(),_n=rt(bn),wn=0,Cn=function(){return function(t,e){this.source=t,this.value=e}}(),xn=function(t){function i(n,r,i,o,a,s,c){var l=t.call(this,s,o,a,c)||this;return l._elementRef=n,l._changeDetectorRef=r,l._dir=i,l.ngControl=c,l.controlType="mat-chip-list",l._lastDestroyedIndex=null,l._chipSet=new WeakMap,l._tabOutSubscription=S.Subscription.EMPTY,l._selectable=!0,l._multiple=!1,l._uid="mat-chip-list-"+wn++,l._required=!1,l._disabled=!1,l._tabIndex=0,l._userTabIndex=null,l._onTouched=function(){},l._onChange=function(){},l._compareWith=function(t,e){return t===e},l.ariaOrientation="horizontal",l.change=new e.EventEmitter,l.valueChange=new e.EventEmitter,l.ngControl&&(l.ngControl.valueAccessor=l),l}return Y(i,t),Object.defineProperty(i.prototype,"selected",{get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"role",{get:function(){return this.empty?null:"listbox"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"multiple",{get:function(){return this._multiple},set:function(t){this._multiple=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"compareWith",{get:function(){return this._compareWith},set:function(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this._value},set:function(t){this.writeValue(t),this._value=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){return this._id||this._uid},set:function(t){this._id=t,this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"required",{get:function(){return this._required},set:function(t){this._required=r.coerceBooleanProperty(t),this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"placeholder",{get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"focused",{get:function(){return this.chips.some(function(t){return t._hasFocus})||this._chipInput&&this._chipInput.focused},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"empty",{get:function(){return(!this._chipInput||this._chipInput.empty)&&0===this.chips.length},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"shouldLabelFloat",{get:function(){return!this.empty||this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"disabled",{get:function(){return this.ngControl?this.ngControl.disabled:this._disabled},set:function(t){this._disabled=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"selectable",{get:function(){return this._selectable},set:function(t){this._selectable=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tabIndex",{set:function(t){this._userTabIndex=t,this._tabIndex=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"chipSelectionChanges",{get:function(){return w.merge.apply(void 0,this.chips.map(function(t){return t.selectionChange}))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"chipFocusChanges",{get:function(){return w.merge.apply(void 0,this.chips.map(function(t){return t._onFocus}))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"chipBlurChanges",{get:function(){return w.merge.apply(void 0,this.chips.map(function(t){return t._onBlur}))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"chipRemoveChanges",{get:function(){return w.merge.apply(void 0,this.chips.map(function(t){return t.destroy}))},enumerable:!0,configurable:!0}),i.prototype.ngAfterContentInit=function(){var t=this;this._keyManager=new l.FocusKeyManager(this.chips).withWrap(),this._tabOutSubscription=this._keyManager.tabOut.subscribe(function(){t._tabIndex=-1,setTimeout(function(){return t._tabIndex=t._userTabIndex||0})}),this._changeSubscription=this.chips.changes.pipe(v.startWith(null)).subscribe(function(){t._resetChips(),t._initializeSelection(),t._updateTabIndex(),t._updateFocusForDestroyedChips()})},i.prototype.ngOnInit=function(){this._selectionModel=new x.SelectionModel(this.multiple,void 0,!1),this.stateChanges.next()},i.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState()},i.prototype.ngOnDestroy=function(){this._tabOutSubscription.unsubscribe(),this._changeSubscription&&this._changeSubscription.unsubscribe(),this._dropSubscriptions(),this.stateChanges.complete()},i.prototype.registerInput=function(t){this._chipInput=t},i.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},i.prototype.writeValue=function(t){this.chips&&this._setSelectionByValue(t,!1)},i.prototype.registerOnChange=function(t){this._onChange=t},i.prototype.registerOnTouched=function(t){this._onTouched=t},i.prototype.setDisabledState=function(t){this.disabled=t,this._elementRef.nativeElement.disabled=t,this.stateChanges.next()},i.prototype.onContainerClick=function(){this.focus()},i.prototype.focus=function(){this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(),this.stateChanges.next()))},i.prototype._focusInput=function(){this._chipInput&&this._chipInput.focus()},i.prototype._keydown=function(t){var e=t.keyCode,n=t.target,r=this._isInputEmpty(n),i=this._dir&&"rtl"==this._dir.value,o=e===(i?c.RIGHT_ARROW:c.LEFT_ARROW),a=e===(i?c.LEFT_ARROW:c.RIGHT_ARROW),s=e===c.BACKSPACE;if(r&&s)return this._keyManager.setLastItemActive(),void t.preventDefault();n&&n.classList.contains("mat-chip")&&(o?(this._keyManager.setPreviousItemActive(),t.preventDefault()):a?(this._keyManager.setNextItemActive(),t.preventDefault()):this._keyManager.onKeydown(t)),this.stateChanges.next()},i.prototype._updateTabIndex=function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)},i.prototype._updateKeyManager=function(t){var e=this.chips.toArray().indexOf(t);this._isValidIndex(e)&&(t._hasFocus&&(e<this.chips.length-1?this._keyManager.setActiveItem(e):e-1>=0&&this._keyManager.setActiveItem(e-1)),this._keyManager.activeItemIndex===e&&(this._lastDestroyedIndex=e))},i.prototype._updateFocusForDestroyedChips=function(){var t=this.chips;if(null!=this._lastDestroyedIndex&&t.length>0){var e=Math.min(this._lastDestroyedIndex,t.length-1);this._keyManager.setActiveItem(e);var n=this._keyManager.activeItem;n&&n.focus()}this._lastDestroyedIndex=null},i.prototype._isValidIndex=function(t){return t>=0&&t<this.chips.length},i.prototype._isInputEmpty=function(t){return!(!t||"input"!==t.nodeName.toLowerCase())&&!t.value},i.prototype._setSelectionByValue=function(t,e){var n=this;if(void 0===e&&(e=!0),this._clearSelection(),this.chips.forEach(function(t){return t.deselect()}),Array.isArray(t))t.forEach(function(t){return n._selectValue(t,e)}),this._sortValues();else{var r=this._selectValue(t,e);if(r){var i=this.chips.toArray().indexOf(r);e?this._keyManager.setActiveItem(i):this._keyManager.updateActiveItemIndex(i)}}},i.prototype._selectValue=function(t,e){var n=this;void 0===e&&(e=!0);var r=this.chips.find(function(e){return null!=e.value&&n._compareWith(e.value,t)});return r&&(e?r.selectViaInteraction():r.select(),this._selectionModel.select(r)),r},i.prototype._initializeSelection=function(){var t=this;Promise.resolve().then(function(){(t.ngControl||t._value)&&(t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value,!1),t.stateChanges.next())})},i.prototype._clearSelection=function(t){this._selectionModel.clear(),this.chips.forEach(function(e){e!==t&&e.deselect()}),this.stateChanges.next()},i.prototype._sortValues=function(){var t=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(e){e.selected&&t._selectionModel.select(e)}),this.stateChanges.next())},i.prototype._propagateChanges=function(t){var e=null;e=Array.isArray(this.selected)?this.selected.map(function(t){return t.value}):this.selected?this.selected.value:t,this._value=e,this.change.emit(new Cn(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()},i.prototype._blur=function(){var t=this;this.disabled||(this._chipInput?setTimeout(function(){t.focused||t._markAsTouched()}):this._markAsTouched())},i.prototype._markAsTouched=function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()},i.prototype._resetChips=function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()},i.prototype._dropSubscriptions=function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null)},i.prototype._listenToChipsSelection=function(){var t=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(e){e.source.selected?t._selectionModel.select(e.source):t._selectionModel.deselect(e.source),t.multiple||t.chips.forEach(function(e){!t._selectionModel.isSelected(e)&&e.selected&&e.deselect()}),e.isUserInput&&t._propagateChanges()})},i.prototype._listenToChipsFocus=function(){var t=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(e){var n=t.chips.toArray().indexOf(e.chip);t._isValidIndex(n)&&t._keyManager.updateActiveItemIndex(n),t.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(e){t._blur(),t.stateChanges.next()})},i.prototype._listenToChipsRemoved=function(){var t=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(e){t._updateKeyManager(e.chip)})},i.decorators=[{type:e.Component,args:[{selector:"mat-chip-list",template:'<div class="mat-chip-list-wrapper"><ng-content></ng-content></div>',exportAs:"matChipList",host:{"[attr.tabindex]":"_tabIndex","[attr.aria-describedby]":"_ariaDescribedby || null","[attr.aria-required]":"required.toString()","[attr.aria-disabled]":"disabled.toString()","[attr.aria-invalid]":"errorState","[attr.aria-multiselectable]":"multiple","[attr.role]":"role","[class.mat-chip-list-disabled]":"disabled","[class.mat-chip-list-invalid]":"errorState","[class.mat-chip-list-required]":"required","[attr.aria-orientation]":"ariaOrientation",class:"mat-chip-list","(focus)":"focus()","(blur)":"_blur()","(keydown)":"_keydown($event)"},providers:[{provide:Kt,useExisting:i}],styles:[".mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:baseline}.mat-chip:not(.mat-basic-chip){transition:box-shadow 280ms cubic-bezier(.4,0,.2,1);display:inline-flex;padding:7px 12px;border-radius:24px;align-items:center;cursor:default}.mat-chip:not(.mat-basic-chip)+.mat-chip:not(.mat-basic-chip){margin:0 0 0 8px}[dir=rtl] .mat-chip:not(.mat-basic-chip)+.mat-chip:not(.mat-basic-chip){margin:0 8px 0 0}.mat-form-field-prefix .mat-chip:not(.mat-basic-chip):last-child{margin-right:8px}[dir=rtl] .mat-form-field-prefix .mat-chip:not(.mat-basic-chip):last-child{margin-left:8px}.mat-chip:not(.mat-basic-chip) .mat-chip-remove.mat-icon{width:1em;height:1em}.mat-chip:not(.mat-basic-chip):focus{box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12);outline:0}@media screen and (-ms-high-contrast:active){.mat-chip:not(.mat-basic-chip){outline:solid 1px}}.mat-chip-list-stacked .mat-chip-list-wrapper{display:block}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-chip:not(.mat-basic-chip){display:block;margin:0;margin-bottom:8px}[dir=rtl] .mat-chip-list-stacked .mat-chip-list-wrapper .mat-chip:not(.mat-basic-chip){margin:0;margin-bottom:8px}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-chip:not(.mat-basic-chip):last-child,[dir=rtl] .mat-chip-list-stacked .mat-chip-list-wrapper .mat-chip:not(.mat-basic-chip):last-child{margin-bottom:0}.mat-form-field-prefix .mat-chip-list-wrapper{margin-bottom:8px}.mat-chip-remove{margin-right:-4px;margin-left:6px;cursor:pointer}[dir=rtl] .mat-chip-remove{margin-right:6px;margin-left:-4px}input.mat-chip-input{width:150px;margin:3px;flex:1 0 150px}"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],i.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ChangeDetectorRef},{type:n.Directionality,decorators:[{type:e.Optional}]},{type:y.NgForm,decorators:[{type:e.Optional}]},{type:y.FormGroupDirective,decorators:[{type:e.Optional}]},{type:_t},{type:y.NgControl,decorators:[{type:e.Optional},{type:e.Self}]}]},i.propDecorators={errorStateMatcher:[{type:e.Input}],multiple:[{type:e.Input}],compareWith:[{type:e.Input}],value:[{type:e.Input}],id:[{type:e.Input}],required:[{type:e.Input}],placeholder:[{type:e.Input}],disabled:[{type:e.Input}],ariaOrientation:[{type:e.Input,args:["aria-orientation"]}],selectable:[{type:e.Input}],tabIndex:[{type:e.Input}],change:[{type:e.Output}],valueChange:[{type:e.Output}],chips:[{type:e.ContentChildren,args:[yn]}]},i}(_n),En=function(){function t(t){this._elementRef=t,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=[c.ENTER],this.chipEnd=new e.EventEmitter,this.placeholder="",this._inputElement=this._elementRef.nativeElement}return Object.defineProperty(t.prototype,"chipList",{set:function(t){t&&(this._chipList=t,this._chipList.registerInput(this))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"addOnBlur",{get:function(){return this._addOnBlur},set:function(t){this._addOnBlur=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){var t=this._inputElement.value;return null==t||""===t},enumerable:!0,configurable:!0}),t.prototype._keydown=function(t){this._emitChipEnd(t)},t.prototype._blur=function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()},t.prototype._focus=function(){this.focused=!0,this._chipList.stateChanges.next()},t.prototype._emitChipEnd=function(t){!this._inputElement.value&&t&&this._chipList._keydown(t),(!t||this.separatorKeyCodes.indexOf(t.keyCode)>-1)&&(this.chipEnd.emit({input:this._inputElement,value:this._inputElement.value}),t&&t.preventDefault())},t.prototype._onInput=function(){this._chipList.stateChanges.next()},t.prototype.focus=function(){this._inputElement.focus()},t.decorators=[{type:e.Directive,args:[{selector:"input[matChipInputFor]",exportAs:"matChipInput, matChipInputFor",host:{class:"mat-chip-input mat-input-element","(keydown)":"_keydown($event)","(blur)":"_blur()","(focus)":"_focus()","(input)":"_onInput()"}}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={chipList:[{type:e.Input,args:["matChipInputFor"]}],addOnBlur:[{type:e.Input,args:["matChipInputAddOnBlur"]}],separatorKeyCodes:[{type:e.Input,args:["matChipInputSeparatorKeyCodes"]}],chipEnd:[{type:e.Output,args:["matChipInputTokenEnd"]}],placeholder:[{type:e.Input}]},t}(),Sn=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[],exports:[xn,yn,En,vn,vn,gn],declarations:[xn,yn,En,vn,vn,gn],providers:[_t]}]}],t.ctorParameters=function(){return[]},t}(),kn=function(){return function(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.direction="ltr",this.ariaDescribedBy=null,this.ariaLabel=null,this.autoFocus=!0,this.closeOnNavigation=!0}}(),On={slideDialog:_.trigger("slideDialog",[_.state("enter",_.style({transform:"none",opacity:1})),_.state("void",_.style({transform:"translate3d(0, 25%, 0) scale(0.9)",opacity:0})),_.state("exit",_.style({transform:"translate3d(0, 25%, 0)",opacity:0})),_.transition("* => *",_.animate("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function Pn(){throw Error("Attempting to attach dialog content after content is already attached")}var An=function(t){function n(n,r,i,o){var a=t.call(this)||this;return a._elementRef=n,a._focusTrapFactory=r,a._changeDetectorRef=i,a._document=o,a._elementFocusedBeforeDialogWasOpened=null,a._state="enter",a._animationStateChanged=new e.EventEmitter,a._ariaLabelledBy=null,a}return Y(n,t),n.prototype.attachComponentPortal=function(t){return this._portalOutlet.hasAttached()&&Pn(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)},n.prototype.attachTemplatePortal=function(t){return this._portalOutlet.hasAttached()&&Pn(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(t)},n.prototype._trapFocus=function(){this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)),this._config.autoFocus&&this._focusTrap.focusInitialElementWhenReady()},n.prototype._restoreFocus=function(){var t=this._elementFocusedBeforeDialogWasOpened;t&&"function"==typeof t.focus&&t.focus(),this._focusTrap&&this._focusTrap.destroy()},n.prototype._savePreviouslyFocusedElement=function(){var t=this;this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,Promise.resolve().then(function(){return t._elementRef.nativeElement.focus()}))},n.prototype._onAnimationDone=function(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)},n.prototype._onAnimationStart=function(t){this._animationStateChanged.emit(t)},n.prototype._startExitAnimation=function(){this._state="exit",this._changeDetectorRef.markForCheck()},n.decorators=[{type:e.Component,args:[{selector:"mat-dialog-container",template:"<ng-template cdkPortalOutlet></ng-template>",styles:[".mat-dialog-container{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);display:block;padding:24px;border-radius:2px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%}@media screen and (-ms-high-contrast:active){.mat-dialog-container{outline:solid 1px}}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch;-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:12px 0;display:flex;flex-wrap:wrap}.mat-dialog-actions:last-child{margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button+.mat-button,.mat-dialog-actions .mat-button+.mat-raised-button,.mat-dialog-actions .mat-raised-button+.mat-button,.mat-dialog-actions .mat-raised-button+.mat-raised-button{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button+.mat-button,[dir=rtl] .mat-dialog-actions .mat-button+.mat-raised-button,[dir=rtl] .mat-dialog-actions .mat-raised-button+.mat-button,[dir=rtl] .mat-dialog-actions .mat-raised-button+.mat-raised-button{margin-left:0;margin-right:8px}"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.Default,animations:[On.slideDialog],host:{class:"mat-dialog-container",tabindex:"-1","[attr.role]":"_config?.role","[attr.aria-labelledby]":"_config?.ariaLabel ? null : _ariaLabelledBy","[attr.aria-label]":"_config?.ariaLabel","[attr.aria-describedby]":"_config?.ariaDescribedBy || null","[@slideDialog]":"_state","(@slideDialog.start)":"_onAnimationStart($event)","(@slideDialog.done)":"_onAnimationDone($event)"}}]}],n.ctorParameters=function(){return[{type:e.ElementRef},{type:l.FocusTrapFactory},{type:e.ChangeDetectorRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[a.DOCUMENT]}]}]},n.propDecorators={_portalOutlet:[{type:e.ViewChild,args:[p.CdkPortalOutlet]}]},n}(p.BasePortalOutlet),Tn=0,Mn=function(){function t(t,e,n,r){void 0===r&&(r="mat-dialog-"+Tn++);var o=this;this._overlayRef=t,this._containerInstance=e,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpen=new i.Subject,this._afterClosed=new i.Subject,this._beforeClose=new i.Subject,this._locationChanges=S.Subscription.EMPTY,e._animationStateChanged.pipe(h.filter(function(t){return"done"===t.phaseName&&"enter"===t.toState}),d.take(1)).subscribe(function(){o._afterOpen.next(),o._afterOpen.complete()}),e._animationStateChanged.pipe(h.filter(function(t){return"done"===t.phaseName&&"exit"===t.toState}),d.take(1)).subscribe(function(){o._overlayRef.dispose(),o._locationChanges.unsubscribe(),o._afterClosed.next(o._result),o._afterClosed.complete(),o.componentInstance=null}),t.keydownEvents().pipe(h.filter(function(t){return t.keyCode===c.ESCAPE&&!o.disableClose})).subscribe(function(){return o.close()}),n&&(this._locationChanges=n.subscribe(function(){o._containerInstance._config.closeOnNavigation&&o.close()}))}return t.prototype.close=function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe(h.filter(function(t){return"start"===t.phaseName}),d.take(1)).subscribe(function(){e._beforeClose.next(t),e._beforeClose.complete(),e._overlayRef.detachBackdrop()}),this._containerInstance._startExitAnimation()},t.prototype.afterOpen=function(){return this._afterOpen.asObservable()},t.prototype.afterClosed=function(){return this._afterClosed.asObservable()},t.prototype.beforeClose=function(){return this._beforeClose.asObservable()},t.prototype.backdropClick=function(){return this._overlayRef.backdropClick()},t.prototype.keydownEvents=function(){return this._overlayRef.keydownEvents()},t.prototype.updatePosition=function(t){var e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this},t.prototype.updateSize=function(t,e){return void 0===t&&(t="auto"),void 0===e&&(e="auto"),this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this},t.prototype._getPositionStrategy=function(){return this._overlayRef.getConfig().positionStrategy},t}(),In=new e.InjectionToken("MatDialogData"),Rn=new e.InjectionToken("mat-dialog-default-options"),Dn=new e.InjectionToken("mat-dialog-scroll-strategy");function Nn(t){return function(){return t.scrollStrategies.block()}}var Ln={provide:Dn,deps:[u.Overlay],useFactory:Nn},jn=function(){function t(t,e,n,r,o,a,s){var c=this;this._overlay=t,this._injector=e,this._location=n,this._defaultOptions=r,this._scrollStrategy=o,this._parentDialog=a,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new i.Subject,this._afterOpenAtThisLevel=new i.Subject,this._ariaHiddenElements=new Map,this.afterAllClosed=k.defer(function(){return c.openDialogs.length?c._afterAllClosed:c._afterAllClosed.pipe(v.startWith(void 0))})}return Object.defineProperty(t.prototype,"openDialogs",{get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"afterOpen",{get:function(){return this._parentDialog?this._parentDialog.afterOpen:this._afterOpenAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_afterAllClosed",{get:function(){var t=this._parentDialog;return t?t._afterAllClosed:this._afterAllClosedAtThisLevel},enumerable:!0,configurable:!0}),t.prototype.open=function(t,e){var n,r,i=this;if(n=e,r=this._defaultOptions||new kn,(e=K({},r,n)).id&&this.getDialogById(e.id))throw Error('Dialog with id "'+e.id+'" exists already. The dialog id must be unique.');var o=this._createOverlay(e),a=this._attachDialogContainer(o,e),s=this._attachDialogContent(t,a,o,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(function(){return i._removeOpenDialog(s)}),this.afterOpen.next(s),s},t.prototype.closeAll=function(){for(var t=this.openDialogs.length;t--;)this.openDialogs[t].close()},t.prototype.getDialogById=function(t){return this.openDialogs.find(function(e){return e.id===t})},t.prototype._createOverlay=function(t){var e=this._getOverlayConfig(t);return this._overlay.create(e)},t.prototype._getOverlayConfig=function(t){var e=new u.OverlayConfig({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight});return t.backdropClass&&(e.backdropClass=t.backdropClass),e},t.prototype._attachDialogContainer=function(t,e){var n=new p.ComponentPortal(An,e.viewContainerRef),r=t.attach(n);return r.instance._config=e,r.instance},t.prototype._attachDialogContent=function(t,n,r,i){var o=new Mn(r,n,this._location,i.id);if(i.hasBackdrop&&r.backdropClick().subscribe(function(){o.disableClose||o.close()}),t instanceof e.TemplateRef)n.attachTemplatePortal(new p.TemplatePortal(t,null,{$implicit:i.data,dialogRef:o}));else{var a=this._createInjector(i,o,n),s=n.attachComponentPortal(new p.ComponentPortal(t,void 0,a));o.componentInstance=s.instance}return o.updateSize(i.width,i.height).updatePosition(i.position),o},t.prototype._createInjector=function(t,e,r){var i=t&&t.viewContainerRef&&t.viewContainerRef.injector,o=new WeakMap;return o.set(Mn,e),o.set(An,r),o.set(In,t.data),o.set(n.Directionality,{value:t.direction,change:C.of()}),new p.PortalInjector(i||this._injector,o)},t.prototype._removeOpenDialog=function(t){var e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))},t.prototype._hideNonDialogContentFromAssistiveTechnology=function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,n=e.length-1;n>-1;n--){var r=e[n];r===t||"SCRIPT"===r.nodeName||"STYLE"===r.nodeName||r.hasAttribute("aria-live")||(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:u.Overlay},{type:e.Injector},{type:a.Location,decorators:[{type:e.Optional}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Rn]}]},{type:void 0,decorators:[{type:e.Inject,args:[Dn]}]},{type:t,decorators:[{type:e.Optional},{type:e.SkipSelf}]},{type:u.OverlayContainer}]},t}();var Fn=0,Vn=function(){function t(t){this.dialogRef=t,this.ariaLabel="Close dialog"}return t.prototype.ngOnChanges=function(t){var e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)},t.decorators=[{type:e.Directive,args:[{selector:"button[mat-dialog-close], button[matDialogClose]",exportAs:"matDialogClose",host:{"(click)":"dialogRef.close(dialogResult)","[attr.aria-label]":"ariaLabel",type:"button"}}]}],t.ctorParameters=function(){return[{type:Mn}]},t.propDecorators={ariaLabel:[{type:e.Input,args:["aria-label"]}],dialogResult:[{type:e.Input,args:["mat-dialog-close"]}],_matDialogClose:[{type:e.Input,args:["matDialogClose"]}]},t}(),Bn=function(){function t(t){this._container=t,this.id="mat-dialog-title-"+Fn++}return t.prototype.ngOnInit=function(){var t=this;this._container&&!this._container._ariaLabelledBy&&Promise.resolve().then(function(){return t._container._ariaLabelledBy=t.id})},t.decorators=[{type:e.Directive,args:[{selector:"[mat-dialog-title], [matDialogTitle]",exportAs:"matDialogTitle",host:{class:"mat-dialog-title","[id]":"id"}}]}],t.ctorParameters=function(){return[{type:An,decorators:[{type:e.Optional}]}]},t.propDecorators={id:[{type:e.Input}]},t}(),Un=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-dialog-content], mat-dialog-content, [matDialogContent]",host:{class:"mat-dialog-content"}}]}],t.ctorParameters=function(){return[]},t}(),Hn=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-dialog-actions], mat-dialog-actions, [matDialogActions]",host:{class:"mat-dialog-actions"}}]}],t.ctorParameters=function(){return[]},t}(),zn=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule,u.OverlayModule,p.PortalModule,l.A11yModule,Z],exports:[An,Vn,Bn,Un,Hn,Z],declarations:[An,Vn,Bn,Hn,Un],providers:[jn,Ln],entryComponents:[An]}]}],t.ctorParameters=function(){return[]},t}();function Wn(t){return Error('Unable to find icon with the name "'+t+'"')}function Gn(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function qn(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \""+t+'".')}var Yn=function(){return function(t){this.url=t,this.svgElement=null}}(),Kn=function(){function t(t,e,n){this._httpClient=t,this._sanitizer=e,this._document=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons"}return t.prototype.addSvgIcon=function(t,e){return this.addSvgIconInNamespace("",t,e)},t.prototype.addSvgIconInNamespace=function(t,e,n){var r=Zn(t,e);return this._svgIconConfigs.set(r,new Yn(n)),this},t.prototype.addSvgIconSet=function(t){return this.addSvgIconSetInNamespace("",t)},t.prototype.addSvgIconSetInNamespace=function(t,e){var n=new Yn(e),r=this._iconSetConfigs.get(t);return r?r.push(n):this._iconSetConfigs.set(t,[n]),this},t.prototype.registerFontClassAlias=function(t,e){return void 0===e&&(e=t),this._fontCssClassesByAlias.set(t,e),this},t.prototype.classNameForFontAlias=function(t){return this._fontCssClassesByAlias.get(t)||t},t.prototype.setDefaultFontSetClass=function(t){return this._defaultFontSetClass=t,this},t.prototype.getDefaultFontSetClass=function(){return this._defaultFontSetClass},t.prototype.getSvgIconFromUrl=function(t){var n=this,r=this._sanitizer.sanitize(e.SecurityContext.RESOURCE_URL,t);if(!r)throw qn(t);var i=this._cachedIconsByUrl.get(r);return i?C.of(Qn(i)):this._loadSvgIconFromConfig(new Yn(t)).pipe(m.tap(function(t){return n._cachedIconsByUrl.set(r,t)}),A.map(function(t){return Qn(t)}))},t.prototype.getNamedSvgIcon=function(t,e){void 0===e&&(e="");var n=Zn(e,t),r=this._svgIconConfigs.get(n);if(r)return this._getSvgFromConfig(r);var i=this._iconSetConfigs.get(e);return i?this._getSvgFromIconSetConfigs(t,i):R._throw(Wn(n))},t.prototype._getSvgFromConfig=function(t){return t.svgElement?C.of(Qn(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(m.tap(function(e){return t.svgElement=e}),A.map(function(t){return Qn(t)}))},t.prototype._getSvgFromIconSetConfigs=function(t,n){var r=this,i=this._extractIconWithNameFromAnySet(t,n);if(i)return C.of(i);var o=n.filter(function(t){return!t.svgElement}).map(function(t){return r._loadSvgIconSetFromConfig(t).pipe(O.catchError(function(n){var i=r._sanitizer.sanitize(e.SecurityContext.RESOURCE_URL,t.url);return console.log("Loading icon set URL: "+i+" failed: "+n),C.of(null)}),m.tap(function(e){e&&(t.svgElement=e)}))});return I.forkJoin(o).pipe(A.map(function(){var e=r._extractIconWithNameFromAnySet(t,n);if(!e)throw Wn(t);return e}))},t.prototype._extractIconWithNameFromAnySet=function(t,e){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.svgElement){var i=this._extractSvgIconFromSet(r.svgElement,t);if(i)return i}}return null},t.prototype._loadSvgIconFromConfig=function(t){var e=this;return this._fetchUrl(t.url).pipe(A.map(function(t){return e._createSvgElementForSingleIcon(t)}))},t.prototype._loadSvgIconSetFromConfig=function(t){var e=this;return this._fetchUrl(t.url).pipe(A.map(function(t){return e._svgElementFromString(t)}))},t.prototype._createSvgElementForSingleIcon=function(t){var e=this._svgElementFromString(t);return this._setSvgAttributes(e),e},t.prototype._extractSvgIconFromSet=function(t,e){var n=t.querySelector("#"+e);if(!n)return null;var r=n.cloneNode(!0);if(r.id="","svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r));var i=this._svgElementFromString("<svg></svg>");return i.appendChild(r),this._setSvgAttributes(i)},t.prototype._svgElementFromString=function(t){if(this._document||"undefined"!=typeof document){var e=(this._document||document).createElement("DIV");e.innerHTML=t;var n=e.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}throw new Error("MatIconRegistry could not resolve document.")},t.prototype._toSvgElement=function(t){for(var e=this._svgElementFromString("<svg></svg>"),n=0;n<t.childNodes.length;n++)1===t.childNodes[n].nodeType&&e.appendChild(t.childNodes[n].cloneNode(!0));return e},t.prototype._setSvgAttributes=function(t){return t.getAttribute("xmlns")||t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),t},t.prototype._fetchUrl=function(t){var n=this;if(!this._httpClient)throw Gn();var r=this._sanitizer.sanitize(e.SecurityContext.RESOURCE_URL,t);if(!r)throw qn(t);var i=this._inProgressUrlFetches.get(r);if(i)return i;var o=this._httpClient.get(r,{responseType:"text"}).pipe(P.finalize(function(){return n._inProgressUrlFetches.delete(r)}),T.share());return this._inProgressUrlFetches.set(r,o),o},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:M.HttpClient,decorators:[{type:e.Optional}]},{type:o.DomSanitizer},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[a.DOCUMENT]}]}]},t}();function $n(t,e,n,r){return t||new Kn(e,n,r)}var Xn={provide:Kn,deps:[[new e.Optional,new e.SkipSelf,Kn],[new e.Optional,M.HttpClient],o.DomSanitizer,[new e.Optional,a.DOCUMENT]],useFactory:$n};function Qn(t){return t.cloneNode(!0)}function Zn(t,e){return t+":"+e}var Jn=function(){return function(t){this._elementRef=t}}(),tr=tt(Jn),er=function(t){function n(e,n,r){var i=t.call(this,e)||this;return i._iconRegistry=n,r||e.nativeElement.setAttribute("aria-hidden","true"),i}return Y(n,t),Object.defineProperty(n.prototype,"fontSet",{get:function(){return this._fontSet},set:function(t){this._fontSet=this._cleanupFontValue(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fontIcon",{get:function(){return this._fontIcon},set:function(t){this._fontIcon=this._cleanupFontValue(t)},enumerable:!0,configurable:!0}),n.prototype._splitIconName=function(t){if(!t)return["",""];var e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error('Invalid icon name: "'+t+'"')}},n.prototype.ngOnChanges=function(t){var e=this;if(t.svgIcon)if(this.svgIcon){var n=this._splitIconName(this.svgIcon),r=n[0],i=n[1];this._iconRegistry.getNamedSvgIcon(i,r).pipe(d.take(1)).subscribe(function(t){return e._setSvgElement(t)},function(t){return console.log("Error retrieving icon: "+t.message)})}else this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()},n.prototype.ngOnInit=function(){this._usingFontIcon()&&this._updateFontIconClasses()},n.prototype._usingFontIcon=function(){return!this.svgIcon},n.prototype._setSvgElement=function(t){this._clearSvgElement(),this._elementRef.nativeElement.appendChild(t)},n.prototype._clearSvgElement=function(){for(var t=this._elementRef.nativeElement,e=t.childNodes.length,n=0;n<e;n++)t.removeChild(t.childNodes[n])},n.prototype._updateFontIconClasses=function(){if(this._usingFontIcon()){var t=this._elementRef.nativeElement,e=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();e!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),e&&t.classList.add(e),this._previousFontSetClass=e),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}},n.prototype._cleanupFontValue=function(t){return"string"==typeof t?t.trim().split(" ")[0]:t},n.decorators=[{type:e.Component,args:[{template:"<ng-content></ng-content>",selector:"mat-icon",exportAs:"matIcon",styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}"],inputs:["color"],host:{role:"img",class:"mat-icon"},encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[{type:e.ElementRef},{type:Kn},{type:void 0,decorators:[{type:e.Attribute,args:["aria-hidden"]}]}]},n.propDecorators={svgIcon:[{type:e.Input}],fontSet:[{type:e.Input}],fontIcon:[{type:e.Input}]},n}(tr),nr=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[Z],exports:[er,Z],declarations:[er],providers:[Xn]}]}],t.ctorParameters=function(){return[]},t}(),rr=function(){function t(t,e,n){this._elementRef=t,this._platform=e,this._ngZone=n,this._destroyed=new i.Subject}return Object.defineProperty(t.prototype,"minRows",{get:function(){return this._minRows},set:function(t){this._minRows=t,this._setMinHeight()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxRows",{get:function(){return this._maxRows},set:function(t){this._maxRows=t,this._setMaxHeight()},enumerable:!0,configurable:!0}),t.prototype._setMinHeight=function(){var t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&this._setTextareaStyle("minHeight",t)},t.prototype._setMaxHeight=function(){var t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&this._setTextareaStyle("maxHeight",t)},t.prototype.ngAfterViewInit=function(){var t=this;this._platform.isBrowser&&(this.resizeToFitContent(),this._ngZone&&this._ngZone.runOutsideAngular(function(){b.fromEvent(window,"resize").pipe(D.auditTime(16),N.takeUntil(t._destroyed)).subscribe(function(){return t.resizeToFitContent(!0)})}))},t.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},t.prototype._setTextareaStyle=function(t,e){this._elementRef.nativeElement.style[t]=e},t.prototype._cacheTextareaLineHeight=function(){if(!this._cachedLineHeight){var t=this._elementRef.nativeElement,e=t.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",t.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,t.parentNode.removeChild(e),this._setMinHeight(),this._setMaxHeight()}},t.prototype.ngDoCheck=function(){this._platform.isBrowser&&this.resizeToFitContent()},t.prototype.resizeToFitContent=function(t){if(void 0===t&&(t=!1),this._cacheTextareaLineHeight(),this._cachedLineHeight){var e=this._elementRef.nativeElement,n=e.value;if(n!==this._previousValue||t){var r=e.placeholder;e.style.height="auto",e.style.overflow="hidden",e.placeholder="",e.style.height=e.scrollHeight+"px",e.style.overflow="",e.placeholder=r,this._previousValue=n}}},t.decorators=[{type:e.Directive,args:[{selector:"textarea[mat-autosize], textarea[matTextareaAutosize]",exportAs:"matTextareaAutosize",host:{class:"mat-autosize",rows:"1"}}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:s.Platform},{type:e.NgZone}]},t.propDecorators={minRows:[{type:e.Input,args:["matAutosizeMinRows"]}],maxRows:[{type:e.Input,args:["matAutosizeMaxRows"]}]},t}();function ir(t){return Error('Input type "'+t+"\" isn't supported by matInput.")}var or=new e.InjectionToken("MAT_INPUT_VALUE_ACCESSOR"),ar=["button","checkbox","file","hidden","image","radio","range","reset","submit"],sr=0,cr=function(){return function(t,e,n,r){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=r}}(),lr=rt(cr),ur=function(t){function n(e,n,r,o,a,c,l){var u=t.call(this,c,o,a,r)||this;return u._elementRef=e,u._platform=n,u.ngControl=r,u._type="text",u._disabled=!1,u._required=!1,u._uid="mat-input-"+sr++,u._readonly=!1,u.focused=!1,u._isServer=!1,u.stateChanges=new i.Subject,u.controlType="mat-input",u.placeholder="",u._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(t){return s.getSupportedInputTypes().has(t)}),u._inputValueAccessor=l||u._elementRef.nativeElement,u._previousNativeValue=u.value,u.id=u.id,n.IOS&&e.nativeElement.addEventListener("keyup",function(t){var e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))}),u._isServer=!u._platform.isBrowser,u}return Y(n,t),Object.defineProperty(n.prototype,"disabled",{get:function(){return this.ngControl?this.ngControl.disabled:this._disabled},set:function(t){this._disabled=r.coerceBooleanProperty(t),this.focused&&(this.focused=!1,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t||this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"required",{get:function(){return this._required},set:function(t){this._required=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea()&&s.getSupportedInputTypes().has(this._type)&&(this._elementRef.nativeElement.type=this._type)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this._inputValueAccessor.value},set:function(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readonly",{get:function(){return this._readonly},set:function(t){this._readonly=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),n.prototype.ngOnChanges=function(){this.stateChanges.next()},n.prototype.ngOnDestroy=function(){this.stateChanges.complete()},n.prototype.ngDoCheck=function(){this.ngControl?this.updateErrorState():this._dirtyCheckNativeValue()},n.prototype.focus=function(){this._elementRef.nativeElement.focus()},n.prototype._focusChanged=function(t){t===this.focused||this.readonly||(this.focused=t,this.stateChanges.next())},n.prototype._onInput=function(){},n.prototype._dirtyCheckNativeValue=function(){var t=this.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())},n.prototype._validateType=function(){if(ar.indexOf(this._type)>-1)throw ir(this._type)},n.prototype._isNeverEmpty=function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1},n.prototype._isBadInput=function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput},n.prototype._isTextarea=function(){var t=this._elementRef.nativeElement,e=this._platform.isBrowser?t.nodeName:t.name;return!!e&&"textarea"===e.toLowerCase()},Object.defineProperty(n.prototype,"empty",{get:function(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"shouldLabelFloat",{get:function(){return this.focused||!this.empty},enumerable:!0,configurable:!0}),n.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},n.prototype.onContainerClick=function(){this.focus()},n.decorators=[{type:e.Directive,args:[{selector:"input[matInput], textarea[matInput]",exportAs:"matInput",host:{class:"mat-input-element mat-form-field-autofill-control","[class.mat-input-server]":"_isServer","[attr.id]":"id","[placeholder]":"placeholder","[disabled]":"disabled","[required]":"required","[readonly]":"readonly","[attr.aria-describedby]":"_ariaDescribedby || null","[attr.aria-invalid]":"errorState","[attr.aria-required]":"required.toString()","(blur)":"_focusChanged(false)","(focus)":"_focusChanged(true)","(input)":"_onInput()"},providers:[{provide:Kt,useExisting:n}]}]}],n.ctorParameters=function(){return[{type:e.ElementRef},{type:s.Platform},{type:y.NgControl,decorators:[{type:e.Optional},{type:e.Self}]},{type:y.NgForm,decorators:[{type:e.Optional}]},{type:y.FormGroupDirective,decorators:[{type:e.Optional}]},{type:_t},{type:void 0,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[or]}]}]},n.propDecorators={disabled:[{type:e.Input}],id:[{type:e.Input}],placeholder:[{type:e.Input}],required:[{type:e.Input}],type:[{type:e.Input}],errorStateMatcher:[{type:e.Input}],value:[{type:e.Input}],readonly:[{type:e.Input}]},n}(lr),pr=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[ur,rr],imports:[a.CommonModule,se,s.PlatformModule],exports:[se,ur,rr],providers:[_t]}]}],t.ctorParameters=function(){return[]},t}();function hr(t){return Error("MatDatepicker: No provider found for "+t+". You must import one of the following modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a custom implementation.")}var dr=function(){function t(){this.changes=new i.Subject,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}return t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}(),fr=function(){return function(t,e,n,r){this.value=t,this.displayValue=e,this.ariaLabel=n,this.enabled=r}}(),mr=function(){function t(){this.numCols=7,this.allowDisabledSelection=!1,this.activeCell=0,this.cellAspectRatio=1,this.selectedValueChange=new e.EventEmitter}return t.prototype._cellClicked=function(t){(this.allowDisabledSelection||t.enabled)&&this.selectedValueChange.emit(t.value)},Object.defineProperty(t.prototype,"_firstRowOffset",{get:function(){return this.rows&&this.rows.length&&this.rows[0].length?this.numCols-this.rows[0].length:0},enumerable:!0,configurable:!0}),t.prototype._isActiveCell=function(t,e){var n=t*this.numCols+e;return t&&(n-=this._firstRowOffset),n==this.activeCell},t.decorators=[{type:e.Component,args:[{selector:"[mat-calendar-body]",template:'<tr *ngIf="_firstRowOffset < labelMinRequiredCells" aria-hidden="true"><td class="mat-calendar-body-label" [attr.colspan]="numCols" [style.paddingTop.%]="50 * cellAspectRatio / numCols" [style.paddingBottom.%]="50 * cellAspectRatio / numCols">{{label}}</td></tr><tr *ngFor="let row of rows; let rowIndex = index" role="row"><td *ngIf="rowIndex === 0 && _firstRowOffset" aria-hidden="true" class="mat-calendar-body-label" [attr.colspan]="_firstRowOffset" [style.paddingTop.%]="50 * cellAspectRatio / numCols" [style.paddingBottom.%]="50 * cellAspectRatio / numCols">{{_firstRowOffset >= labelMinRequiredCells ? label : \'\'}}</td><td *ngFor="let item of row; let colIndex = index" role="gridcell" class="mat-calendar-body-cell" [tabindex]="_isActiveCell(rowIndex, colIndex) ? 0 : -1" [class.mat-calendar-body-disabled]="!item.enabled" [class.mat-calendar-body-active]="_isActiveCell(rowIndex, colIndex)" [attr.aria-label]="item.ariaLabel" [attr.aria-disabled]="!item.enabled || null" (click)="_cellClicked(item)" [style.width.%]="100 / numCols" [style.paddingTop.%]="50 * cellAspectRatio / numCols" [style.paddingBottom.%]="50 * cellAspectRatio / numCols"><div class="mat-calendar-body-cell-content" [class.mat-calendar-body-selected]="selectedValue === item.value" [class.mat-calendar-body-today]="todayValue === item.value">{{item.displayValue}}</div></td></tr>',styles:[".mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.71429%;padding-right:4.71429%}.mat-calendar-body-cell{position:relative;height:0;line-height:0;text-align:center;outline:0;cursor:pointer}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-cell-content{position:absolute;top:5%;left:5%;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}[dir=rtl] .mat-calendar-body-label{text-align:right}"],host:{class:"mat-calendar-body",role:"grid","attr.aria-readonly":"true"},exportAs:"matCalendarBody",encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[]},t.propDecorators={label:[{type:e.Input}],rows:[{type:e.Input}],todayValue:[{type:e.Input}],selectedValue:[{type:e.Input}],labelMinRequiredCells:[{type:e.Input}],numCols:[{type:e.Input}],allowDisabledSelection:[{type:e.Input}],activeCell:[{type:e.Input}],cellAspectRatio:[{type:e.Input}],selectedValueChange:[{type:e.Output}]},t}(),gr=function(){function t(t,n,r){if(this._dateAdapter=t,this._dateFormats=n,this._changeDetectorRef=r,this.selectedChange=new e.EventEmitter,this._userSelection=new e.EventEmitter,!this._dateAdapter)throw hr("DateAdapter");if(!this._dateFormats)throw hr("MAT_DATE_FORMATS");var i=this._dateAdapter.getFirstDayOfWeek(),o=this._dateAdapter.getDayOfWeekNames("narrow"),a=this._dateAdapter.getDayOfWeekNames("long").map(function(t,e){return{long:t,narrow:o[e]}});this._weekdays=a.slice(i).concat(a.slice(0,i)),this._activeDate=this._dateAdapter.today()}return Object.defineProperty(t.prototype,"activeDate",{get:function(){return this._activeDate},set:function(t){var e=this._activeDate;this._activeDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today(),this._hasSameMonthAndYear(e,this._activeDate)||this._init()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedDate=this._getDateInCurrentMonth(this._selected)},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._init()},t.prototype._dateSelected=function(t){if(this._selectedDate!=t){var e=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.createDate(e,n,t);this.selectedChange.emit(r)}this._userSelection.emit()},t.prototype._init=function(){this._selectedDate=this._getDateInCurrentMonth(this.selected),this._todayDate=this._getDateInCurrentMonth(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();var t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._createWeekCells(),this._changeDetectorRef.markForCheck()},t.prototype._createWeekCells=function(){var t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(var n=0,r=this._firstWeekOffset;n<t;n++,r++){7==r&&(this._weeks.push([]),r=0);var i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),n+1),o=!this.dateFilter||this.dateFilter(i),a=this._dateAdapter.format(i,this._dateFormats.display.dateA11yLabel);this._weeks[this._weeks.length-1].push(new fr(n+1,e[n],a,o))}},t.prototype._getDateInCurrentMonth=function(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null},t.prototype._hasSameMonthAndYear=function(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))},t.prototype._getValidDateOrNull=function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null},t.decorators=[{type:e.Component,args:[{selector:"mat-month-view",template:'<table class="mat-calendar-table"><thead class="mat-calendar-table-header"><tr><th *ngFor="let day of _weekdays" [attr.aria-label]="day.long">{{day.narrow}}</th></tr><tr><th class="mat-calendar-table-header-divider" colspan="7" aria-hidden="true"></th></tr></thead><tbody mat-calendar-body [label]="_monthLabel" [rows]="_weeks" [todayValue]="_todayDate" [selectedValue]="_selectedDate" [labelMinRequiredCells]="3" [activeCell]="_dateAdapter.getDate(activeDate) - 1" (selectedValueChange)="_dateSelected($event)"></tbody></table>',exportAs:"matMonthView",encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:at,decorators:[{type:e.Optional}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[st]}]},{type:e.ChangeDetectorRef}]},t.propDecorators={activeDate:[{type:e.Input}],selected:[{type:e.Input}],dateFilter:[{type:e.Input}],selectedChange:[{type:e.Output}],_userSelection:[{type:e.Output}]},t}(),yr=function(){function t(t,n){if(this._dateAdapter=t,this._changeDetectorRef=n,this.selectedChange=new e.EventEmitter,!this._dateAdapter)throw hr("DateAdapter");this._activeDate=this._dateAdapter.today()}return Object.defineProperty(t.prototype,"activeDate",{get:function(){return this._activeDate},set:function(t){var e=this._activeDate;this._activeDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today(),Math.floor(this._dateAdapter.getYear(e)/24)!=Math.floor(this._dateAdapter.getYear(this._activeDate)/24)&&this._init()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedYear=this._selected&&this._dateAdapter.getYear(this._selected)},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._init()},t.prototype._init=function(){var t=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var e=this._dateAdapter.getYear(this._activeDate),n=e%24;this._years=[];for(var r=0,i=[];r<24;r++)i.push(e-n+r),4==i.length&&(this._years.push(i.map(function(e){return t._createCellForYear(e)})),i=[]);this._changeDetectorRef.markForCheck()},t.prototype._yearSelected=function(t){var e=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,e,1));this.selectedChange.emit(this._dateAdapter.createDate(t,e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))},t.prototype._getActiveCell=function(){return this._dateAdapter.getYear(this.activeDate)%24},t.prototype._createCellForYear=function(t){var e=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return new fr(t,e,e,!0)},t.prototype._getValidDateOrNull=function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null},t.decorators=[{type:e.Component,args:[{selector:"mat-multi-year-view",template:'<table class="mat-calendar-table"><thead class="mat-calendar-table-header"><tr><th class="mat-calendar-table-header-divider" colspan="4"></th></tr></thead><tbody mat-calendar-body allowDisabledSelection="true" [rows]="_years" [todayValue]="_todayYear" [selectedValue]="_selectedYear" [numCols]="4" [cellAspectRatio]="4 / 7" [activeCell]="_getActiveCell()" (selectedValueChange)="_yearSelected($event)"></tbody></table>',exportAs:"matMultiYearView",encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:at,decorators:[{type:e.Optional}]},{type:e.ChangeDetectorRef}]},t.propDecorators={activeDate:[{type:e.Input}],selected:[{type:e.Input}],dateFilter:[{type:e.Input}],selectedChange:[{type:e.Output}]},t}(),vr=function(){function t(t,n,r){if(this._dateAdapter=t,this._dateFormats=n,this._changeDetectorRef=r,this.selectedChange=new e.EventEmitter,!this._dateAdapter)throw hr("DateAdapter");if(!this._dateFormats)throw hr("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}return Object.defineProperty(t.prototype,"activeDate",{get:function(){return this._activeDate},set:function(t){var e=this._activeDate;this._activeDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today(),this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(this._activeDate)&&this._init()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedMonth=this._getMonthInCurrentYear(this._selected)},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._init()},t.prototype._monthSelected=function(t){var e=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1));this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,Math.min(this._dateAdapter.getDate(this.activeDate),e)))},t.prototype._init=function(){var t=this;this._selectedMonth=this._getMonthInCurrentYear(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);var e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(function(n){return n.map(function(n){return t._createCellForMonth(n,e[n])})}),this._changeDetectorRef.markForCheck()},t.prototype._getMonthInCurrentYear=function(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null},t.prototype._createCellForMonth=function(t,e){var n=this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),this._dateFormats.display.monthYearA11yLabel);return new fr(t,e.toLocaleUpperCase(),n,this._isMonthEnabled(t))},t.prototype._isMonthEnabled=function(t){if(!this.dateFilter)return!0;for(var e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1);this._dateAdapter.getMonth(e)==t;e=this._dateAdapter.addCalendarDays(e,1))if(this.dateFilter(e))return!0;return!1},t.prototype._getValidDateOrNull=function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null},t.decorators=[{type:e.Component,args:[{selector:"mat-year-view",template:'<table class="mat-calendar-table"><thead class="mat-calendar-table-header"><tr><th class="mat-calendar-table-header-divider" colspan="4"></th></tr></thead><tbody mat-calendar-body allowDisabledSelection="true" [label]="_yearLabel" [rows]="_months" [todayValue]="_todayMonth" [selectedValue]="_selectedMonth" [labelMinRequiredCells]="2" [numCols]="4" [cellAspectRatio]="4 / 7" [activeCell]="_dateAdapter.getMonth(activeDate)" (selectedValueChange)="_monthSelected($event)"></tbody></table>',exportAs:"matYearView",encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:at,decorators:[{type:e.Optional}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[st]}]},{type:e.ChangeDetectorRef}]},t.propDecorators={activeDate:[{type:e.Input}],selected:[{type:e.Input}],dateFilter:[{type:e.Input}],selectedChange:[{type:e.Output}]},t}(),br=function(){function t(t,n,r,i,o,a){var s=this;if(this._elementRef=t,this._intl=n,this._ngZone=r,this._dateAdapter=i,this._dateFormats=o,this.startView="month",this.selectedChange=new e.EventEmitter,this._userSelection=new e.EventEmitter,this._dateFilterForViews=function(t){return!!t&&(!s.dateFilter||s.dateFilter(t))&&(!s.minDate||s._dateAdapter.compareDate(t,s.minDate)>=0)&&(!s.maxDate||s._dateAdapter.compareDate(t,s.maxDate)<=0)},!this._dateAdapter)throw hr("DateAdapter");if(!this._dateFormats)throw hr("MAT_DATE_FORMATS");this._intlChanges=n.changes.subscribe(function(){return a.markForCheck()})}return Object.defineProperty(t.prototype,"startAt",{get:function(){return this._startAt},set:function(t){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minDate",{get:function(){return this._minDate},set:function(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxDate",{get:function(){return this._maxDate},set:function(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_activeDate",{get:function(){return this._clampedActiveDate},set:function(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_periodButtonText",{get:function(){if("month"==this._currentView)return this._dateAdapter.format(this._activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this._currentView)return this._dateAdapter.getYearName(this._activeDate);var t=this._dateAdapter.getYear(this._activeDate);return this._dateAdapter.getYearName(this._dateAdapter.createDate(t-t%24,0,1))+" – "+this._dateAdapter.getYearName(this._dateAdapter.createDate(t+24-1-t%24,0,1))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_periodButtonLabel",{get:function(){return"month"==this._currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_prevButtonLabel",{get:function(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this._currentView]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_nextButtonLabel",{get:function(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this._currentView]},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._activeDate=this.startAt||this._dateAdapter.today(),this._focusActiveCell(),this._currentView=this.startView},t.prototype.ngOnDestroy=function(){this._intlChanges.unsubscribe()},t.prototype.ngOnChanges=function(t){var e=t.minDate||t.maxDate||t.dateFilter;if(e&&!e.firstChange){var n=this.monthView||this.yearView||this.multiYearView;n&&n._init()}},t.prototype._dateSelected=function(t){this._dateAdapter.sameDate(t,this.selected)||this.selectedChange.emit(t)},t.prototype._userSelected=function(){this._userSelection.emit()},t.prototype._goToDateInView=function(t,e){this._activeDate=t,this._currentView=e},t.prototype._currentPeriodClicked=function(){this._currentView="month"==this._currentView?"multi-year":"month"},t.prototype._previousClicked=function(){this._activeDate="month"==this._currentView?this._dateAdapter.addCalendarMonths(this._activeDate,-1):this._dateAdapter.addCalendarYears(this._activeDate,"year"==this._currentView?-1:-24)},t.prototype._nextClicked=function(){this._activeDate="month"==this._currentView?this._dateAdapter.addCalendarMonths(this._activeDate,1):this._dateAdapter.addCalendarYears(this._activeDate,"year"==this._currentView?1:24)},t.prototype._previousEnabled=function(){return!this.minDate||(!this.minDate||!this._isSameView(this._activeDate,this.minDate))},t.prototype._nextEnabled=function(){return!this.maxDate||!this._isSameView(this._activeDate,this.maxDate)},t.prototype._handleCalendarBodyKeydown=function(t){"month"==this._currentView?this._handleCalendarBodyKeydownInMonthView(t):"year"==this._currentView?this._handleCalendarBodyKeydownInYearView(t):this._handleCalendarBodyKeydownInMultiYearView(t)},t.prototype._focusActiveCell=function(){var t=this;this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.asObservable().pipe(d.take(1)).subscribe(function(){t._elementRef.nativeElement.querySelector(".mat-calendar-body-active").focus()})})},t.prototype._isSameView=function(t,e){return"month"==this._currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(e):"year"==this._currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e):Math.floor(this._dateAdapter.getYear(t)/24)==Math.floor(this._dateAdapter.getYear(e)/24)},t.prototype._handleCalendarBodyKeydownInMonthView=function(t){switch(t.keyCode){case c.LEFT_ARROW:this._activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-1);break;case c.RIGHT_ARROW:this._activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1);break;case c.UP_ARROW:this._activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case c.DOWN_ARROW:this._activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case c.HOME:this._activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case c.END:this._activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case c.PAGE_UP:this._activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case c.PAGE_DOWN:this._activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case c.ENTER:return void(this._dateFilterForViews(this._activeDate)&&(this._dateSelected(this._activeDate),this._userSelected(),t.preventDefault()));default:return}this._focusActiveCell(),t.preventDefault()},t.prototype._handleCalendarBodyKeydownInYearView=function(t){switch(t.keyCode){case c.LEFT_ARROW:this._activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case c.RIGHT_ARROW:this._activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case c.UP_ARROW:this._activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case c.DOWN_ARROW:this._activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case c.HOME:this._activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case c.END:this._activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case c.PAGE_UP:this._activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case c.PAGE_DOWN:this._activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case c.ENTER:this._goToDateInView(this._activeDate,"month");break;default:return}this._focusActiveCell(),t.preventDefault()},t.prototype._handleCalendarBodyKeydownInMultiYearView=function(t){switch(t.keyCode){case c.LEFT_ARROW:this._activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-1);break;case c.RIGHT_ARROW:this._activeDate=this._dateAdapter.addCalendarYears(this._activeDate,1);break;case c.UP_ARROW:this._activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case c.DOWN_ARROW:this._activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case c.HOME:this._activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-this._dateAdapter.getYear(this._activeDate)%24);break;case c.END:this._activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-this._dateAdapter.getYear(this._activeDate)%24-1);break;case c.PAGE_UP:this._activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case c.PAGE_DOWN:this._activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:24);break;case c.ENTER:this._goToDateInView(this._activeDate,"year");break;default:return}this._focusActiveCell(),t.preventDefault()},t.prototype._getValidDateOrNull=function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null},t.decorators=[{type:e.Component,args:[{selector:"mat-calendar",template:'<div class="mat-calendar-header"><div class="mat-calendar-controls"><button mat-button class="mat-calendar-period-button" (click)="_currentPeriodClicked()" [attr.aria-label]="_periodButtonLabel">{{_periodButtonText}}<div class="mat-calendar-arrow" [class.mat-calendar-invert]="_currentView != \'month\'"></div></button><div class="mat-calendar-spacer"></div><button mat-icon-button class="mat-calendar-previous-button" [disabled]="!_previousEnabled()" (click)="_previousClicked()" [attr.aria-label]="_prevButtonLabel"></button> <button mat-icon-button class="mat-calendar-next-button" [disabled]="!_nextEnabled()" (click)="_nextClicked()" [attr.aria-label]="_nextButtonLabel"></button></div></div><div class="mat-calendar-content" (keydown)="_handleCalendarBodyKeydown($event)" [ngSwitch]="_currentView" cdkMonitorSubtreeFocus><mat-month-view *ngSwitchCase="\'month\'" [activeDate]="_activeDate" [selected]="selected" [dateFilter]="_dateFilterForViews" (selectedChange)="_dateSelected($event)" (_userSelection)="_userSelected()"></mat-month-view><mat-year-view *ngSwitchCase="\'year\'" [activeDate]="_activeDate" [selected]="selected" [dateFilter]="_dateFilterForViews" (selectedChange)="_goToDateInView($event, \'month\')"></mat-year-view><mat-multi-year-view *ngSwitchCase="\'multi-year\'" [activeDate]="_activeDate" [selected]="selected" [dateFilter]="_dateFilterForViews" (selectedChange)="_goToDateInView($event, \'year\')"></mat-multi-year-view></div>',styles:[".mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:0}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-next-button,.mat-calendar-previous-button{position:relative}.mat-calendar-next-button::after,.mat-calendar-previous-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:'';margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-next-button,[dir=rtl] .mat-calendar-previous-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:'';position:absolute;top:0;left:-8px;right:-8px;height:1px}"],host:{class:"mat-calendar"},exportAs:"matCalendar",encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:dr},{type:e.NgZone},{type:at,decorators:[{type:e.Optional}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[st]}]},{type:e.ChangeDetectorRef}]},t.propDecorators={startAt:[{type:e.Input}],startView:[{type:e.Input}],selected:[{type:e.Input}],minDate:[{type:e.Input}],maxDate:[{type:e.Input}],dateFilter:[{type:e.Input}],selectedChange:[{type:e.Output}],_userSelection:[{type:e.Output}],monthView:[{type:e.ViewChild,args:[gr]}],yearView:[{type:e.ViewChild,args:[vr]}],multiYearView:[{type:e.ViewChild,args:[yr]}]},t}(),_r=0,wr=new e.InjectionToken("mat-datepicker-scroll-strategy");function Cr(t){return function(){return t.scrollStrategies.reposition()}}var xr={provide:wr,deps:[u.Overlay],useFactory:Cr},Er=function(){function t(){}return t.prototype.ngAfterContentInit=function(){this._calendar._focusActiveCell()},t.decorators=[{type:e.Component,args:[{selector:"mat-datepicker-content",template:'<mat-calendar cdkTrapFocus [id]="datepicker.id" [ngClass]="datepicker.panelClass" [startAt]="datepicker.startAt" [startView]="datepicker.startView" [minDate]="datepicker._minDate" [maxDate]="datepicker._maxDate" [dateFilter]="datepicker._dateFilter" [selected]="datepicker._selected" (selectedChange)="datepicker._select($event)" (_userSelection)="datepicker.close()"></mat-calendar>',styles:[".mat-datepicker-content{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);display:block}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content-touch{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12);display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation:landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation:portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}"],host:{class:"mat-datepicker-content","[class.mat-datepicker-content-touch]":"datepicker.touchUi"},exportAs:"matDatepickerContent",encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[]},t.propDecorators={_calendar:[{type:e.ViewChild,args:[br]}]},t}(),Sr=function(){function t(t,n,r,o,a,s,c,l){if(this._dialog=t,this._overlay=n,this._ngZone=r,this._viewContainerRef=o,this._scrollStrategy=a,this._dateAdapter=s,this._dir=c,this._document=l,this.startView="month",this._touchUi=!1,this.selectedChanged=new e.EventEmitter,this.openedStream=new e.EventEmitter,this.closedStream=new e.EventEmitter,this._opened=!1,this.id="mat-datepicker-"+_r++,this._validSelected=null,this._focusedElementBeforeOpen=null,this._inputSubscription=S.Subscription.EMPTY,this._disabledChange=new i.Subject,!this._dateAdapter)throw hr("DateAdapter")}return Object.defineProperty(t.prototype,"startAt",{get:function(){return this._startAt||(this._datepickerInput?this._datepickerInput.value:null)},set:function(t){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touchUi",{get:function(){return this._touchUi},set:function(t){this._touchUi=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled},set:function(t){var e=r.coerceBooleanProperty(t);e!==this._disabled&&(this._disabled=e,this._disabledChange.next(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"opened",{get:function(){return this._opened},set:function(t){t?this.open():this.close()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_selected",{get:function(){return this._validSelected},set:function(t){this._validSelected=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_minDate",{get:function(){return this._datepickerInput&&this._datepickerInput.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_maxDate",{get:function(){return this._datepickerInput&&this._datepickerInput.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_dateFilter",{get:function(){return this._datepickerInput&&this._datepickerInput._dateFilter},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.close(),this._inputSubscription.unsubscribe(),this._disabledChange.complete(),this._popupRef&&this._popupRef.dispose()},t.prototype._select=function(t){var e=this._selected;this._selected=t,this._dateAdapter.sameDate(e,this._selected)||this.selectedChanged.emit(t)},t.prototype._registerInput=function(t){var e=this;if(this._datepickerInput)throw Error("A MatDatepicker can only be associated with a single input.");this._datepickerInput=t,this._inputSubscription=this._datepickerInput._valueChange.subscribe(function(t){return e._selected=t})},t.prototype.open=function(){if(!this._opened&&!this.disabled){if(!this._datepickerInput)throw Error("Attempted to open an MatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit()}},t.prototype.close=function(){var t=this;if(this._opened){this._popupRef&&this._popupRef.hasAttached()&&this._popupRef.detach(),this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null),this._calendarPortal&&this._calendarPortal.isAttached&&this._calendarPortal.detach();var e=function(){t._opened&&(t._opened=!1,t.closedStream.emit(),t._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(e)):e()}},t.prototype._openAsDialog=function(){var t=this;this._dialogRef=this._dialog.open(Er,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog"}),this._dialogRef.afterClosed().subscribe(function(){return t.close()}),this._dialogRef.componentInstance.datepicker=this},t.prototype._openAsPopup=function(){var t=this;(this._calendarPortal||(this._calendarPortal=new p.ComponentPortal(Er,this._viewContainerRef)),this._popupRef||this._createPopup(),this._popupRef.hasAttached())||(this._popupRef.attach(this._calendarPortal).instance.datepicker=this,this._ngZone.onStable.asObservable().pipe(d.take(1)).subscribe(function(){t._popupRef.updatePosition()}))},t.prototype._createPopup=function(){var t=this,e=new u.OverlayConfig({positionStrategy:this._createPopupPositionStrategy(),hasBackdrop:!0,backdropClass:"mat-overlay-transparent-backdrop",direction:this._dir?this._dir.value:"ltr",scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(e),w.merge(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(h.filter(function(t){return t.keyCode===c.ESCAPE}))).subscribe(function(){return t.close()})},t.prototype._createPopupPositionStrategy=function(){var t=this._datepickerInput._getPopupFallbackOffset();return this._overlay.position().connectedTo(this._datepickerInput.getPopupConnectionElementRef(),{originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}).withFallbackPosition({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"},void 0,t).withFallbackPosition({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"}).withFallbackPosition({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"},void 0,t)},t.prototype._getValidDateOrNull=function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null},t.decorators=[{type:e.Component,args:[{selector:"mat-datepicker",template:"",exportAs:"matDatepicker",changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],t.ctorParameters=function(){return[{type:jn},{type:u.Overlay},{type:e.NgZone},{type:e.ViewContainerRef},{type:void 0,decorators:[{type:e.Inject,args:[wr]}]},{type:at,decorators:[{type:e.Optional}]},{type:n.Directionality,decorators:[{type:e.Optional}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[a.DOCUMENT]}]}]},t.propDecorators={startAt:[{type:e.Input}],startView:[{type:e.Input}],touchUi:[{type:e.Input}],disabled:[{type:e.Input}],selectedChanged:[{type:e.Output}],panelClass:[{type:e.Input}],openedStream:[{type:e.Output,args:["opened"]}],closedStream:[{type:e.Output,args:["closed"]}],opened:[{type:e.Input}]},t}(),kr={provide:y.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return Ar}),multi:!0},Or={provide:y.NG_VALIDATORS,useExisting:e.forwardRef(function(){return Ar}),multi:!0},Pr=function(){return function(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}(),Ar=function(){function t(t,n,r,i){var o=this;if(this._elementRef=t,this._dateAdapter=n,this._dateFormats=r,this._formField=i,this.dateChange=new e.EventEmitter,this.dateInput=new e.EventEmitter,this._valueChange=new e.EventEmitter,this._disabledChange=new e.EventEmitter,this._onTouched=function(){},this._cvaOnChange=function(){},this._validatorOnChange=function(){},this._datepickerSubscription=S.Subscription.EMPTY,this._localeSubscription=S.Subscription.EMPTY,this._parseValidator=function(){return o._lastValueValid?null:{matDatepickerParse:{text:o._elementRef.nativeElement.value}}},this._minValidator=function(t){var e=o._getValidDateOrNull(o._dateAdapter.deserialize(t.value));return!o.min||!e||o._dateAdapter.compareDate(o.min,e)<=0?null:{matDatepickerMin:{min:o.min,actual:e}}},this._maxValidator=function(t){var e=o._getValidDateOrNull(o._dateAdapter.deserialize(t.value));return!o.max||!e||o._dateAdapter.compareDate(o.max,e)>=0?null:{matDatepickerMax:{max:o.max,actual:e}}},this._filterValidator=function(t){var e=o._getValidDateOrNull(o._dateAdapter.deserialize(t.value));return o._dateFilter&&e&&!o._dateFilter(e)?{matDatepickerFilter:!0}:null},this._validator=y.Validators.compose([this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]),this._lastValueValid=!1,!this._dateAdapter)throw hr("DateAdapter");if(!this._dateFormats)throw hr("MAT_DATE_FORMATS");this._localeSubscription=n.localeChanges.subscribe(function(){o.value=o.value})}return Object.defineProperty(t.prototype,"matDatepicker",{set:function(t){this.registerDatepicker(t)},enumerable:!0,configurable:!0}),t.prototype.registerDatepicker=function(t){t&&(this._datepicker=t,this._datepicker._registerInput(this))},Object.defineProperty(t.prototype,"matDatepickerFilter",{set:function(t){this._dateFilter=t,this._validatorOnChange()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=!t||this._dateAdapter.isValid(t),t=this._getValidDateOrNull(t);var e=this.value;this._value=t,this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):"",this._dateAdapter.sameDate(e,t)||this._valueChange.emit(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this._min},set:function(t){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this._max},set:function(t){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return!!this._disabled},set:function(t){var e=r.coerceBooleanProperty(t);this._disabled!==e&&(this._disabled=e,this._disabledChange.emit(e))},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this._datepicker&&(this._datepickerSubscription=this._datepicker.selectedChanged.subscribe(function(e){t.value=e,t._cvaOnChange(e),t._onTouched(),t.dateInput.emit(new Pr(t,t._elementRef.nativeElement)),t.dateChange.emit(new Pr(t,t._elementRef.nativeElement))}))},t.prototype.ngOnDestroy=function(){this._datepickerSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this._disabledChange.complete()},t.prototype.registerOnValidatorChange=function(t){this._validatorOnChange=t},t.prototype.validate=function(t){return this._validator?this._validator(t):null},t.prototype.getPopupConnectionElementRef=function(){return this._formField?this._formField.underlineRef:this._elementRef},t.prototype._getPopupFallbackOffset=function(){return this._formField?-this._formField._inputContainerRef.nativeElement.clientHeight:0},t.prototype.writeValue=function(t){this.value=t},t.prototype.registerOnChange=function(t){this._cvaOnChange=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype._onKeydown=function(t){t.altKey&&t.keyCode===c.DOWN_ARROW&&(this._datepicker.open(),t.preventDefault())},t.prototype._onInput=function(t){var e=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=!e||this._dateAdapter.isValid(e),e=this._getValidDateOrNull(e),this._value=e,this._cvaOnChange(e),this._valueChange.emit(e),this.dateInput.emit(new Pr(this,this._elementRef.nativeElement))},t.prototype._onChange=function(){this.dateChange.emit(new Pr(this,this._elementRef.nativeElement))},t.prototype._getValidDateOrNull=function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null},t.decorators=[{type:e.Directive,args:[{selector:"input[matDatepicker]",providers:[kr,Or,{provide:or,useExisting:t}],host:{"[attr.aria-haspopup]":"true","[attr.aria-owns]":"(_datepicker?.opened && _datepicker.id) || null","[attr.min]":"min ? _dateAdapter.toIso8601(min) : null","[attr.max]":"max ? _dateAdapter.toIso8601(max) : null","[disabled]":"disabled","(input)":"_onInput($event.target.value)","(change)":"_onChange()","(blur)":"_onTouched()","(keydown)":"_onKeydown($event)"},exportAs:"matDatepickerInput"}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:at,decorators:[{type:e.Optional}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[st]}]},{type:ae,decorators:[{type:e.Optional}]}]},t.propDecorators={matDatepicker:[{type:e.Input}],matDatepickerFilter:[{type:e.Input}],value:[{type:e.Input}],min:[{type:e.Input}],max:[{type:e.Input}],disabled:[{type:e.Input}],dateChange:[{type:e.Output}],dateInput:[{type:e.Output}]},t}(),Tr=function(){function t(t,e){this._intl=t,this._changeDetectorRef=e,this._stateChanges=S.Subscription.EMPTY}return Object.defineProperty(t.prototype,"disabled",{get:function(){return void 0===this._disabled?this.datepicker.disabled:!!this._disabled},set:function(t){this._disabled=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){t.datepicker&&this._watchStateChanges()},t.prototype.ngOnDestroy=function(){this._stateChanges.unsubscribe()},t.prototype.ngAfterContentInit=function(){this._watchStateChanges()},t.prototype._open=function(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())},t.prototype._watchStateChanges=function(){var t=this,e=this.datepicker?this.datepicker._disabledChange:C.of(),n=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput._disabledChange:C.of();this._stateChanges.unsubscribe(),this._stateChanges=w.merge(this._intl.changes,e,n).subscribe(function(){return t._changeDetectorRef.markForCheck()})},t.decorators=[{type:e.Component,args:[{selector:"mat-datepicker-toggle",template:'<button mat-icon-button type="button" [attr.aria-label]="_intl.openCalendarLabel" [disabled]="disabled" (click)="_open($event)"><mat-icon><svg viewBox="0 0 24 24" width="100%" height="100%" fill="currentColor" style="vertical-align: top" focusable="false"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/></svg></mat-icon></button>',host:{class:"mat-datepicker-toggle"},exportAs:"matDatepickerToggle",encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:dr},{type:e.ChangeDetectorRef}]},t.propDecorators={datepicker:[{type:e.Input,args:["for"]}],disabled:[{type:e.Input}]},t}(),Mr=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule,Te,zn,nr,u.OverlayModule,l.A11yModule],exports:[br,mr,Sr,Er,Ar,Tr,gr,vr,yr],declarations:[br,mr,Sr,Er,Ar,Tr,gr,vr,yr],providers:[dr,xr],entryComponents:[Er]}]}],t.ctorParameters=function(){return[]},t}(),Ir=function(){function t(){this._vertical=!1,this._inset=!1}return Object.defineProperty(t.prototype,"vertical",{get:function(){return this._vertical},set:function(t){this._vertical=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inset",{get:function(){return this._inset},set:function(t){this._inset=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.decorators=[{type:e.Component,args:[{selector:"mat-divider",host:{role:"separator","[attr.aria-orientation]":'vertical ? "vertical" : "horizontal"',"[class.mat-divider-vertical]":"vertical","[class.mat-divider-inset]":"inset",class:"mat-divider"},template:"",styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush,preserveWhitespaces:!1}]}],t.ctorParameters=function(){return[]},t.propDecorators={vertical:[{type:e.Input}],inset:[{type:e.Input}]},t}(),Rr=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[Z,a.CommonModule],exports:[Ir,Z],declarations:[Ir]}]}],t.ctorParameters=function(){return[]},t}(),Dr=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._hideToggle=!1,e.displayMode="default",e}return Y(n,t),Object.defineProperty(n.prototype,"hideToggle",{get:function(){return this._hideToggle},set:function(t){this._hideToggle=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),n.decorators=[{type:e.Directive,args:[{selector:"mat-accordion",exportAs:"matAccordion",host:{class:"mat-accordion"}}]}],n.ctorParameters=function(){return[]},n.propDecorators={hideToggle:[{type:e.Input}],displayMode:[{type:e.Input}]},n}(L.CdkAccordion),Nr=function(){function t(t){this._template=t}return t.decorators=[{type:e.Directive,args:[{selector:"ng-template[matExpansionPanelContent]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}(),Lr="225ms cubic-bezier(0.4,0.0,0.2,1)",jr={indicatorRotate:_.trigger("indicatorRotate",[_.state("collapsed",_.style({transform:"rotate(0deg)"})),_.state("expanded",_.style({transform:"rotate(180deg)"})),_.transition("expanded <=> collapsed",_.animate(Lr))]),expansionHeaderHeight:_.trigger("expansionHeight",[_.state("collapsed",_.style({height:"{{collapsedHeight}}"}),{params:{collapsedHeight:"48px"}}),_.state("expanded",_.style({height:"{{expandedHeight}}"}),{params:{expandedHeight:"64px"}}),_.transition("expanded <=> collapsed",_.animate(Lr))]),bodyExpansion:_.trigger("bodyExpansion",[_.state("collapsed",_.style({height:"0px",visibility:"hidden"})),_.state("expanded",_.style({height:"*",visibility:"visible"})),_.transition("expanded <=> collapsed",_.animate(Lr))])},Fr=function(t){function n(e,n,r){return t.call(this,e,n,r)||this}return Y(n,t),n.decorators=[{type:e.Component,args:[{template:"",encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[{type:Dr},{type:e.ChangeDetectorRef},{type:x.UniqueSelectionDispatcher}]},n}(L.CdkAccordionItem),Vr=J(Fr),Br=function(t){function n(e,n,r,o){var a=t.call(this,e,n,r)||this;return a._viewContainerRef=o,a._hideToggle=!1,a._inputChanges=new i.Subject,a.accordion=e,a}return Y(n,t),Object.defineProperty(n.prototype,"hideToggle",{get:function(){return this._hideToggle},set:function(t){this._hideToggle=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),n.prototype._getHideToggle=function(){return this.accordion?this.accordion.hideToggle:this.hideToggle},n.prototype._hasSpacing=function(){return!!this.accordion&&"default"===(this.expanded?this.accordion.displayMode:this._getExpandedState())},n.prototype._getExpandedState=function(){return this.expanded?"expanded":"collapsed"},n.prototype.ngAfterContentInit=function(){var t=this;this._lazyContent&&this.opened.pipe(v.startWith(null),h.filter(function(){return t.expanded&&!t._portal}),d.take(1)).subscribe(function(){t._portal=new p.TemplatePortal(t._lazyContent._template,t._viewContainerRef)})},n.prototype.ngOnChanges=function(t){this._inputChanges.next(t)},n.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this._inputChanges.complete()},n.decorators=[{type:e.Component,args:[{styles:[".mat-expansion-panel{transition:box-shadow 280ms cubic-bezier(.4,0,.2,1);box-sizing:content-box;display:block;margin:0;transition:margin 225ms cubic-bezier(.4,0,.2,1)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-expanded .mat-expansion-panel-content{overflow:visible}.mat-expansion-panel-content,.mat-expansion-panel-content.ng-animating{overflow:hidden}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion .mat-expansion-panel-spacing:first-child{margin-top:0}.mat-accordion .mat-expansion-panel-spacing:last-child{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button{margin-left:0;margin-right:8px}"],selector:"mat-expansion-panel",exportAs:"matExpansionPanel",template:'<ng-content select="mat-expansion-panel-header"></ng-content><div class="mat-expansion-panel-content" [class.mat-expanded]="expanded" [@bodyExpansion]="_getExpandedState()" [id]="id"><div class="mat-expansion-panel-body"><ng-content></ng-content><ng-template [cdkPortalOutlet]="_portal"></ng-template></div><ng-content select="mat-action-row"></ng-content></div>',encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,inputs:["disabled","expanded"],outputs:["opened","closed"],animations:[jr.bodyExpansion],host:{class:"mat-expansion-panel","[class.mat-expanded]":"expanded","[class.mat-expansion-panel-spacing]":"_hasSpacing()"},providers:[{provide:Vr,useExisting:e.forwardRef(function(){return n})}]}]}],n.ctorParameters=function(){return[{type:Dr,decorators:[{type:e.Optional},{type:e.Host}]},{type:e.ChangeDetectorRef},{type:x.UniqueSelectionDispatcher},{type:e.ViewContainerRef}]},n.propDecorators={hideToggle:[{type:e.Input}],_lazyContent:[{type:e.ContentChild,args:[Nr]}]},n}(Vr),Ur=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-action-row",host:{class:"mat-action-row"}}]}],t.ctorParameters=function(){return[]},t}(),Hr=function(){function t(t,e,n,r){var i=this;this.panel=t,this._element=e,this._focusMonitor=n,this._changeDetectorRef=r,this._parentChangeSubscription=S.Subscription.EMPTY,this._parentChangeSubscription=w.merge(t.opened,t.closed,t._inputChanges.pipe(h.filter(function(t){return!(!t.hideToggle&&!t.disabled)}))).subscribe(function(){return i._changeDetectorRef.markForCheck()}),n.monitor(e.nativeElement,!1)}return t.prototype._toggle=function(){this.panel.disabled||this.panel.toggle()},t.prototype._isExpanded=function(){return this.panel.expanded},t.prototype._getExpandedState=function(){return this.panel._getExpandedState()},t.prototype._getPanelId=function(){return this.panel.id},t.prototype._showToggle=function(){return!this.panel.hideToggle&&!this.panel.disabled},t.prototype._keyup=function(t){switch(t.keyCode){case c.SPACE:case c.ENTER:t.preventDefault(),this._toggle();break;default:return}},t.prototype.ngOnDestroy=function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element.nativeElement)},t.decorators=[{type:e.Component,args:[{selector:"mat-expansion-panel-header",styles:[".mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:0}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-description,.mat-expansion-panel-header-title{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-description,[dir=rtl] .mat-expansion-panel-header-title{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:'';display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}"],template:'<span class="mat-content"><ng-content select="mat-panel-title"></ng-content><ng-content select="mat-panel-description"></ng-content><ng-content></ng-content></span><span [@indicatorRotate]="_getExpandedState()" *ngIf="_showToggle()" class="mat-expansion-indicator"></span>',encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,animations:[jr.indicatorRotate,jr.expansionHeaderHeight],host:{class:"mat-expansion-panel-header",role:"button","[attr.tabindex]":"panel.disabled ? -1 : 0","[attr.aria-controls]":"_getPanelId()","[attr.aria-expanded]":"_isExpanded()","[attr.aria-disabled]":"panel.disabled","[class.mat-expanded]":"_isExpanded()","(click)":"_toggle()","(keyup)":"_keyup($event)","[@expansionHeight]":"{\n        value: _getExpandedState(),\n        params: {\n          collapsedHeight: collapsedHeight,\n          expandedHeight: expandedHeight\n        }\n    }"}}]}],t.ctorParameters=function(){return[{type:Br,decorators:[{type:e.Host}]},{type:e.ElementRef},{type:l.FocusMonitor},{type:e.ChangeDetectorRef}]},t.propDecorators={expandedHeight:[{type:e.Input}],collapsedHeight:[{type:e.Input}]},t}(),zr=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-panel-description",host:{class:"mat-expansion-panel-header-description"}}]}],t.ctorParameters=function(){return[]},t}(),Wr=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-panel-title",host:{class:"mat-expansion-panel-header-title"}}]}],t.ctorParameters=function(){return[]},t}(),Gr=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule,l.A11yModule,L.CdkAccordionModule,p.PortalModule],exports:[Dr,Br,Ur,Hr,Wr,zr,Nr],declarations:[Fr,Dr,Br,Ur,Hr,Wr,zr,Nr],providers:[x.UNIQUE_SELECTION_DISPATCHER_PROVIDER]}]}],t.ctorParameters=function(){return[]},t}();function qr(t){return""+(t||"")}function Yr(t){return"string"==typeof t?parseInt(t,10):t}var Kr=function(){function t(t){this._element=t,this._rowspan=1,this._colspan=1}return Object.defineProperty(t.prototype,"rowspan",{get:function(){return this._rowspan},set:function(t){this._rowspan=Yr(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"colspan",{get:function(){return this._colspan},set:function(t){this._colspan=Yr(t)},enumerable:!0,configurable:!0}),t.prototype._setStyle=function(t,e){this._element.nativeElement.style[t]=e},t.decorators=[{type:e.Component,args:[{selector:"mat-grid-tile",exportAs:"matGridTile",host:{class:"mat-grid-tile"},template:'<figure class="mat-figure"><ng-content></ng-content></figure>',styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-footer,.mat-grid-tile .mat-grid-tile-header{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-footer>*,.mat-grid-tile .mat-grid-tile-header>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-grid-tile .mat-grid-tile-footer.mat-2-line,.mat-grid-tile .mat-grid-tile-header.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={rowspan:[{type:e.Input}],colspan:[{type:e.Input}]},t}(),$r=function(){function t(t){this._element=t}return t.prototype.ngAfterContentInit=function(){this._lineSetter=new Et(this._lines,this._element)},t.decorators=[{type:e.Component,args:[{selector:"mat-grid-tile-header, mat-grid-tile-footer",template:'<ng-content select="[mat-grid-avatar], [matGridAvatar]"></ng-content><div class="mat-grid-list-text"><ng-content select="[mat-line], [matLine]"></ng-content></div><ng-content></ng-content>',changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={_lines:[{type:e.ContentChildren,args:[xt]}]},t}(),Xr=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-grid-avatar], [matGridAvatar]",host:{class:"mat-grid-avatar"}}]}],t.ctorParameters=function(){return[]},t}(),Qr=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-grid-tile-header",host:{class:"mat-grid-tile-header"}}]}],t.ctorParameters=function(){return[]},t}(),Zr=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-grid-tile-footer",host:{class:"mat-grid-tile-footer"}}]}],t.ctorParameters=function(){return[]},t}(),Jr=function(){function t(t,e){var n=this;this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(t),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map(function(t){return n._trackTile(t)})}return Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.rowIndex+1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowspan",{get:function(){var t=Math.max.apply(Math,this.tracker);return t>1?this.rowCount+t-1:this.rowCount},enumerable:!0,configurable:!0}),t.prototype._trackTile=function(t){var e=this._findMatchingGap(t.colspan);return this._markTilePosition(e,t),this.columnIndex=e+t.colspan,new ti(this.rowIndex,e)},t.prototype._findMatchingGap=function(t){if(t>this.tracker.length)throw Error("mat-grid-list: tile with colspan "+t+' is wider than grid with cols="'+this.tracker.length+'".');var e=-1,n=-1;do{this.columnIndex+t>this.tracker.length?this._nextRow():-1!=(e=this.tracker.indexOf(0,this.columnIndex))?(n=this._findGapEndIndex(e),this.columnIndex=e+1):this._nextRow()}while(n-e<t);return e},t.prototype._nextRow=function(){this.columnIndex=0,this.rowIndex++;for(var t=0;t<this.tracker.length;t++)this.tracker[t]=Math.max(0,this.tracker[t]-1)},t.prototype._findGapEndIndex=function(t){for(var e=t+1;e<this.tracker.length;e++)if(0!=this.tracker[e])return e;return this.tracker.length},t.prototype._markTilePosition=function(t,e){for(var n=0;n<e.colspan;n++)this.tracker[t+n]=e.rowspan},t}(),ti=function(){return function(t,e){this.row=t,this.col=e}}(),ei=function(){function t(){this._rows=0,this._rowspan=0}return t.prototype.init=function(t,e,n,r){this._gutterSize=ai(t),this._rows=e.rowCount,this._rowspan=e.rowspan,this._cols=n,this._direction=r},t.prototype.getBaseTileSize=function(t,e){return"("+t+"% - ("+this._gutterSize+" * "+e+"))"},t.prototype.getTilePosition=function(t,e){return 0===e?"0":oi("("+t+" + "+this._gutterSize+") * "+e)},t.prototype.getTileSize=function(t,e){return"("+t+" * "+e+") + ("+(e-1)+" * "+this._gutterSize+")"},t.prototype.setStyle=function(t,e,n){var r=100/this._cols,i=(this._cols-1)/this._cols;this.setColStyles(t,n,r,i),this.setRowStyles(t,e,r,i)},t.prototype.setColStyles=function(t,e,n,r){var i=this.getBaseTileSize(n,r),o="ltr"===this._direction?"left":"right";t._setStyle(o,this.getTilePosition(i,e)),t._setStyle("width",oi(this.getTileSize(i,t.colspan)))},t.prototype.getGutterSpan=function(){return this._gutterSize+" * ("+this._rowspan+" - 1)"},t.prototype.getTileSpan=function(t){return this._rowspan+" * "+this.getTileSize(t,1)},t.prototype.getComputedHeight=function(){return null},t}(),ni=function(t){function e(e){var n=t.call(this)||this;return n.fixedRowHeight=e,n}return Y(e,t),e.prototype.init=function(e,n,r,i){t.prototype.init.call(this,e,n,r,i),this.fixedRowHeight=ai(this.fixedRowHeight)},e.prototype.setRowStyles=function(t,e){t._setStyle("top",this.getTilePosition(this.fixedRowHeight,e)),t._setStyle("height",oi(this.getTileSize(this.fixedRowHeight,t.rowspan)))},e.prototype.getComputedHeight=function(){return["height",oi(this.getTileSpan(this.fixedRowHeight)+" + "+this.getGutterSpan())]},e.prototype.reset=function(t){t._setListStyle(["height",null]),t._tiles.forEach(function(t){t._setStyle("top",null),t._setStyle("height",null)})},e}(ei),ri=function(t){function e(e){var n=t.call(this)||this;return n._parseRatio(e),n}return Y(e,t),e.prototype.setRowStyles=function(t,e,n,r){var i=n/this.rowHeightRatio;this.baseTileHeight=this.getBaseTileSize(i,r),t._setStyle("margin-top",this.getTilePosition(this.baseTileHeight,e)),t._setStyle("padding-top",oi(this.getTileSize(this.baseTileHeight,t.rowspan)))},e.prototype.getComputedHeight=function(){return["padding-bottom",oi(this.getTileSpan(this.baseTileHeight)+" + "+this.getGutterSpan())]},e.prototype.reset=function(t){t._setListStyle(["padding-bottom",null]),t._tiles.forEach(function(t){t._setStyle("margin-top",null),t._setStyle("padding-top",null)})},e.prototype._parseRatio=function(t){var e=t.split(":");if(2!==e.length)throw Error('mat-grid-list: invalid ratio given for row-height: "'+t+'"');this.rowHeightRatio=parseFloat(e[0])/parseFloat(e[1])},e}(ei),ii=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Y(e,t),e.prototype.setRowStyles=function(t,e){var n=100/this._rowspan,r=(this._rows-1)/this._rows,i=this.getBaseTileSize(n,r);t._setStyle("top",this.getTilePosition(i,e)),t._setStyle("height",oi(this.getTileSize(i,t.rowspan)))},e.prototype.reset=function(t){t._tiles.forEach(function(t){t._setStyle("top",null),t._setStyle("height",null)})},e}(ei);function oi(t){return"calc("+t+")"}function ai(t){return t.match(/px|em|rem/)?t:t+"px"}var si=function(){function t(t,e){this._element=t,this._dir=e,this._gutter="1px"}return Object.defineProperty(t.prototype,"cols",{get:function(){return this._cols},set:function(t){this._cols=Yr(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gutterSize",{get:function(){return this._gutter},set:function(t){this._gutter=qr(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowHeight",{set:function(t){var e=qr(t);e!==this._rowHeight&&(this._rowHeight=e,this._setTileStyler(this._rowHeight))},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._checkCols(),this._checkRowHeight()},t.prototype.ngAfterContentChecked=function(){this._layoutTiles()},t.prototype._checkCols=function(){if(!this.cols)throw Error('mat-grid-list: must pass in number of columns. Example: <mat-grid-list cols="3">')},t.prototype._checkRowHeight=function(){this._rowHeight||this._setTileStyler("1:1")},t.prototype._setTileStyler=function(t){this._tileStyler&&this._tileStyler.reset(this),"fit"===t?this._tileStyler=new ii:t&&t.indexOf(":")>-1?this._tileStyler=new ri(t):this._tileStyler=new ni(t)},t.prototype._layoutTiles=function(){var t=this,e=new Jr(this.cols,this._tiles),n=this._dir?this._dir.value:"ltr";this._tileStyler.init(this.gutterSize,e,this.cols,n),this._tiles.forEach(function(n,r){var i=e.positions[r];t._tileStyler.setStyle(n,i.row,i.col)}),this._setListStyle(this._tileStyler.getComputedHeight())},t.prototype._setListStyle=function(t){t&&(this._element.nativeElement.style[t[0]]=t[1])},t.decorators=[{type:e.Component,args:[{selector:"mat-grid-list",exportAs:"matGridList",template:"<div><ng-content></ng-content></div>",styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-footer,.mat-grid-tile .mat-grid-tile-header{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-footer>*,.mat-grid-tile .mat-grid-tile-header>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-grid-tile .mat-grid-tile-footer.mat-2-line,.mat-grid-tile .mat-grid-tile-header.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}"],host:{class:"mat-grid-list"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:n.Directionality,decorators:[{type:e.Optional}]}]},t.propDecorators={_tiles:[{type:e.ContentChildren,args:[Kr]}],cols:[{type:e.Input}],gutterSize:[{type:e.Input}],rowHeight:[{type:e.Input}]},t}(),ci=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[St,Z],exports:[si,Kr,$r,St,Z,Qr,Zr,Xr],declarations:[si,Kr,$r,Qr,Zr,Xr]}]}],t.ctorParameters=function(){return[]},t}(),li=function(){return function(){}}(),ui=et(li),pi=function(){return function(){}}(),hi=et(pi),di=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Component,args:[{selector:"mat-nav-list",exportAs:"matNavList",host:{role:"navigation",class:"mat-nav-list"},template:"<ng-content></ng-content>",styles:[".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list .mat-subheader,.mat-nav-list .mat-subheader,.mat-selection-list .mat-subheader{margin:0}.mat-list,.mat-nav-list,.mat-selection-list{padding-top:8px;display:block}.mat-list .mat-subheader,.mat-nav-list .mat-subheader,.mat-selection-list .mat-subheader{height:48px;line-height:16px}.mat-list .mat-subheader:first-child,.mat-nav-list .mat-subheader:first-child,.mat-selection-list .mat-subheader:first-child{margin-top:-8px}.mat-list .mat-list-item,.mat-list .mat-list-option,.mat-nav-list .mat-list-item,.mat-nav-list .mat-list-option,.mat-selection-list .mat-list-item,.mat-selection-list .mat-list-option{display:block;height:48px}.mat-list .mat-list-item .mat-list-item-content,.mat-list .mat-list-option .mat-list-item-content,.mat-nav-list .mat-list-item .mat-list-item-content,.mat-nav-list .mat-list-option .mat-list-item-content,.mat-selection-list .mat-list-item .mat-list-item-content,.mat-selection-list .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list .mat-list-item .mat-list-item-content-reverse,.mat-list .mat-list-option .mat-list-item-content-reverse,.mat-nav-list .mat-list-item .mat-list-item-content-reverse,.mat-nav-list .mat-list-option .mat-list-item-content-reverse,.mat-selection-list .mat-list-item .mat-list-item-content-reverse,.mat-selection-list .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list .mat-list-item .mat-list-item-ripple,.mat-list .mat-list-option .mat-list-item-ripple,.mat-nav-list .mat-list-item .mat-list-item-ripple,.mat-nav-list .mat-list-option .mat-list-item-ripple,.mat-selection-list .mat-list-item .mat-list-item-ripple,.mat-selection-list .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list .mat-list-item.mat-list-item-avatar,.mat-list .mat-list-option.mat-list-item-avatar,.mat-nav-list .mat-list-item.mat-list-item-avatar,.mat-nav-list .mat-list-option.mat-list-item-avatar,.mat-selection-list .mat-list-item.mat-list-item-avatar,.mat-selection-list .mat-list-option.mat-list-item-avatar{height:56px}.mat-list .mat-list-item.mat-2-line,.mat-list .mat-list-option.mat-2-line,.mat-nav-list .mat-list-item.mat-2-line,.mat-nav-list .mat-list-option.mat-2-line,.mat-selection-list .mat-list-item.mat-2-line,.mat-selection-list .mat-list-option.mat-2-line{height:72px}.mat-list .mat-list-item.mat-3-line,.mat-list .mat-list-option.mat-3-line,.mat-nav-list .mat-list-item.mat-3-line,.mat-nav-list .mat-list-option.mat-3-line,.mat-selection-list .mat-list-item.mat-3-line,.mat-selection-list .mat-list-option.mat-3-line{height:88px}.mat-list .mat-list-item.mat-multi-line,.mat-list .mat-list-option.mat-multi-line,.mat-nav-list .mat-list-item.mat-multi-line,.mat-nav-list .mat-list-option.mat-multi-line,.mat-selection-list .mat-list-item.mat-multi-line,.mat-selection-list .mat-list-option.mat-multi-line{height:auto}.mat-list .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list .mat-list-option.mat-multi-line .mat-list-item-content,.mat-nav-list .mat-list-item.mat-multi-line .mat-list-item-content,.mat-nav-list .mat-list-option.mat-multi-line .mat-list-item-content,.mat-selection-list .mat-list-item.mat-multi-line .mat-list-item-content,.mat-selection-list .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list .mat-list-item .mat-list-text,.mat-list .mat-list-option .mat-list-text,.mat-nav-list .mat-list-item .mat-list-text,.mat-nav-list .mat-list-option .mat-list-text,.mat-selection-list .mat-list-item .mat-list-text,.mat-selection-list .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0 16px}.mat-list .mat-list-item .mat-list-text>*,.mat-list .mat-list-option .mat-list-text>*,.mat-nav-list .mat-list-item .mat-list-text>*,.mat-nav-list .mat-list-option .mat-list-text>*,.mat-selection-list .mat-list-item .mat-list-text>*,.mat-selection-list .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-list .mat-list-item .mat-list-text:empty,.mat-list .mat-list-option .mat-list-text:empty,.mat-nav-list .mat-list-item .mat-list-text:empty,.mat-nav-list .mat-list-option .mat-list-text:empty,.mat-selection-list .mat-list-item .mat-list-text:empty,.mat-selection-list .mat-list-option .mat-list-text:empty{display:none}.mat-list .mat-list-item .mat-list-text:nth-child(2),.mat-list .mat-list-option .mat-list-text:nth-child(2),.mat-nav-list .mat-list-item .mat-list-text:nth-child(2),.mat-nav-list .mat-list-option .mat-list-text:nth-child(2),.mat-selection-list .mat-list-item .mat-list-text:nth-child(2),.mat-selection-list .mat-list-option .mat-list-text:nth-child(2){padding:0}.mat-list .mat-list-item .mat-list-avatar,.mat-list .mat-list-option .mat-list-avatar,.mat-nav-list .mat-list-item .mat-list-avatar,.mat-nav-list .mat-list-option .mat-list-avatar,.mat-selection-list .mat-list-item .mat-list-avatar,.mat-selection-list .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%}.mat-list .mat-list-item .mat-list-icon,.mat-list .mat-list-option .mat-list-icon,.mat-nav-list .mat-list-item .mat-list-icon,.mat-nav-list .mat-list-option .mat-list-icon,.mat-selection-list .mat-list-item .mat-list-icon,.mat-selection-list .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list .mat-list-item .mat-divider,.mat-list .mat-list-option .mat-divider,.mat-nav-list .mat-list-item .mat-divider,.mat-nav-list .mat-list-option .mat-divider,.mat-selection-list .mat-list-item .mat-divider,.mat-selection-list .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%}[dir=rtl] .mat-list .mat-list-item .mat-divider,[dir=rtl] .mat-list .mat-list-option .mat-divider,[dir=rtl] .mat-nav-list .mat-list-item .mat-divider,[dir=rtl] .mat-nav-list .mat-list-option .mat-divider,[dir=rtl] .mat-selection-list .mat-list-item .mat-divider,[dir=rtl] .mat-selection-list .mat-list-option .mat-divider{left:auto;right:0}.mat-list .mat-list-item .mat-divider.mat-divider-inset,.mat-list .mat-list-option .mat-divider.mat-divider-inset,.mat-nav-list .mat-list-item .mat-divider.mat-divider-inset,.mat-nav-list .mat-list-option .mat-divider.mat-divider-inset,.mat-selection-list .mat-list-item .mat-divider.mat-divider-inset,.mat-selection-list .mat-list-option .mat-divider.mat-divider-inset{left:72px;width:calc(100% - 72px);margin:0}[dir=rtl] .mat-list .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-list .mat-list-option .mat-divider.mat-divider-inset,[dir=rtl] .mat-nav-list .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-nav-list .mat-list-option .mat-divider.mat-divider-inset,[dir=rtl] .mat-selection-list .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-selection-list .mat-list-option .mat-divider.mat-divider-inset{left:auto;right:72px}.mat-list[dense],.mat-nav-list[dense],.mat-selection-list[dense]{padding-top:4px;display:block}.mat-list[dense] .mat-subheader,.mat-nav-list[dense] .mat-subheader,.mat-selection-list[dense] .mat-subheader{height:40px;line-height:8px}.mat-list[dense] .mat-subheader:first-child,.mat-nav-list[dense] .mat-subheader:first-child,.mat-selection-list[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list[dense] .mat-list-item,.mat-list[dense] .mat-list-option,.mat-nav-list[dense] .mat-list-item,.mat-nav-list[dense] .mat-list-option,.mat-selection-list[dense] .mat-list-item,.mat-selection-list[dense] .mat-list-option{display:block;height:40px}.mat-list[dense] .mat-list-item .mat-list-item-content,.mat-list[dense] .mat-list-option .mat-list-item-content,.mat-nav-list[dense] .mat-list-item .mat-list-item-content,.mat-nav-list[dense] .mat-list-option .mat-list-item-content,.mat-selection-list[dense] .mat-list-item .mat-list-item-content,.mat-selection-list[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list[dense] .mat-list-option .mat-list-item-content-reverse,.mat-nav-list[dense] .mat-list-item .mat-list-item-content-reverse,.mat-nav-list[dense] .mat-list-option .mat-list-item-content-reverse,.mat-selection-list[dense] .mat-list-item .mat-list-item-content-reverse,.mat-selection-list[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list[dense] .mat-list-item .mat-list-item-ripple,.mat-list[dense] .mat-list-option .mat-list-item-ripple,.mat-nav-list[dense] .mat-list-item .mat-list-item-ripple,.mat-nav-list[dense] .mat-list-option .mat-list-item-ripple,.mat-selection-list[dense] .mat-list-item .mat-list-item-ripple,.mat-selection-list[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list[dense] .mat-list-item.mat-list-item-avatar,.mat-list[dense] .mat-list-option.mat-list-item-avatar,.mat-nav-list[dense] .mat-list-item.mat-list-item-avatar,.mat-nav-list[dense] .mat-list-option.mat-list-item-avatar,.mat-selection-list[dense] .mat-list-item.mat-list-item-avatar,.mat-selection-list[dense] .mat-list-option.mat-list-item-avatar{height:48px}.mat-list[dense] .mat-list-item.mat-2-line,.mat-list[dense] .mat-list-option.mat-2-line,.mat-nav-list[dense] .mat-list-item.mat-2-line,.mat-nav-list[dense] .mat-list-option.mat-2-line,.mat-selection-list[dense] .mat-list-item.mat-2-line,.mat-selection-list[dense] .mat-list-option.mat-2-line{height:60px}.mat-list[dense] .mat-list-item.mat-3-line,.mat-list[dense] .mat-list-option.mat-3-line,.mat-nav-list[dense] .mat-list-item.mat-3-line,.mat-nav-list[dense] .mat-list-option.mat-3-line,.mat-selection-list[dense] .mat-list-item.mat-3-line,.mat-selection-list[dense] .mat-list-option.mat-3-line{height:76px}.mat-list[dense] .mat-list-item.mat-multi-line,.mat-list[dense] .mat-list-option.mat-multi-line,.mat-nav-list[dense] .mat-list-item.mat-multi-line,.mat-nav-list[dense] .mat-list-option.mat-multi-line,.mat-selection-list[dense] .mat-list-item.mat-multi-line,.mat-selection-list[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list[dense] .mat-list-option.mat-multi-line .mat-list-item-content,.mat-nav-list[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-nav-list[dense] .mat-list-option.mat-multi-line .mat-list-item-content,.mat-selection-list[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-selection-list[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list[dense] .mat-list-item .mat-list-text,.mat-list[dense] .mat-list-option .mat-list-text,.mat-nav-list[dense] .mat-list-item .mat-list-text,.mat-nav-list[dense] .mat-list-option .mat-list-text,.mat-selection-list[dense] .mat-list-item .mat-list-text,.mat-selection-list[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0 16px}.mat-list[dense] .mat-list-item .mat-list-text>*,.mat-list[dense] .mat-list-option .mat-list-text>*,.mat-nav-list[dense] .mat-list-item .mat-list-text>*,.mat-nav-list[dense] .mat-list-option .mat-list-text>*,.mat-selection-list[dense] .mat-list-item .mat-list-text>*,.mat-selection-list[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-list[dense] .mat-list-item .mat-list-text:empty,.mat-list[dense] .mat-list-option .mat-list-text:empty,.mat-nav-list[dense] .mat-list-item .mat-list-text:empty,.mat-nav-list[dense] .mat-list-option .mat-list-text:empty,.mat-selection-list[dense] .mat-list-item .mat-list-text:empty,.mat-selection-list[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list[dense] .mat-list-item .mat-list-text:nth-child(2),.mat-list[dense] .mat-list-option .mat-list-text:nth-child(2),.mat-nav-list[dense] .mat-list-item .mat-list-text:nth-child(2),.mat-nav-list[dense] .mat-list-option .mat-list-text:nth-child(2),.mat-selection-list[dense] .mat-list-item .mat-list-text:nth-child(2),.mat-selection-list[dense] .mat-list-option .mat-list-text:nth-child(2){padding:0}.mat-list[dense] .mat-list-item .mat-list-avatar,.mat-list[dense] .mat-list-option .mat-list-avatar,.mat-nav-list[dense] .mat-list-item .mat-list-avatar,.mat-nav-list[dense] .mat-list-option .mat-list-avatar,.mat-selection-list[dense] .mat-list-item .mat-list-avatar,.mat-selection-list[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%}.mat-list[dense] .mat-list-item .mat-list-icon,.mat-list[dense] .mat-list-option .mat-list-icon,.mat-nav-list[dense] .mat-list-item .mat-list-icon,.mat-nav-list[dense] .mat-list-option .mat-list-icon,.mat-selection-list[dense] .mat-list-item .mat-list-icon,.mat-selection-list[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list[dense] .mat-list-item .mat-divider,.mat-list[dense] .mat-list-option .mat-divider,.mat-nav-list[dense] .mat-list-item .mat-divider,.mat-nav-list[dense] .mat-list-option .mat-divider,.mat-selection-list[dense] .mat-list-item .mat-divider,.mat-selection-list[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%}[dir=rtl] .mat-list[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list[dense] .mat-list-option .mat-divider,[dir=rtl] .mat-nav-list[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-nav-list[dense] .mat-list-option .mat-divider,[dir=rtl] .mat-selection-list[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-selection-list[dense] .mat-list-option .mat-divider{left:auto;right:0}.mat-list[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list[dense] .mat-list-option .mat-divider.mat-divider-inset,.mat-nav-list[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-nav-list[dense] .mat-list-option .mat-divider.mat-divider-inset,.mat-selection-list[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-selection-list[dense] .mat-list-option .mat-divider.mat-divider-inset{left:72px;width:calc(100% - 72px);margin:0}[dir=rtl] .mat-list[dense] .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-list[dense] .mat-list-option .mat-divider.mat-divider-inset,[dir=rtl] .mat-nav-list[dense] .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-nav-list[dense] .mat-list-option .mat-divider.mat-divider-inset,[dir=rtl] .mat-selection-list[dense] .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-selection-list[dense] .mat-list-option .mat-divider.mat-divider-inset{left:auto;right:72px}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item-content{cursor:pointer}.mat-nav-list .mat-list-item-content.mat-list-item-focus,.mat-nav-list .mat-list-item-content:hover{outline:0}.mat-list-option:not([disabled]){cursor:pointer}"],inputs:["disableRipple"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[]},n}(ui),fi=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Component,args:[{selector:"mat-list",exportAs:"matList",template:"<ng-content></ng-content>",host:{class:"mat-list"},styles:[".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list .mat-subheader,.mat-nav-list .mat-subheader,.mat-selection-list .mat-subheader{margin:0}.mat-list,.mat-nav-list,.mat-selection-list{padding-top:8px;display:block}.mat-list .mat-subheader,.mat-nav-list .mat-subheader,.mat-selection-list .mat-subheader{height:48px;line-height:16px}.mat-list .mat-subheader:first-child,.mat-nav-list .mat-subheader:first-child,.mat-selection-list .mat-subheader:first-child{margin-top:-8px}.mat-list .mat-list-item,.mat-list .mat-list-option,.mat-nav-list .mat-list-item,.mat-nav-list .mat-list-option,.mat-selection-list .mat-list-item,.mat-selection-list .mat-list-option{display:block;height:48px}.mat-list .mat-list-item .mat-list-item-content,.mat-list .mat-list-option .mat-list-item-content,.mat-nav-list .mat-list-item .mat-list-item-content,.mat-nav-list .mat-list-option .mat-list-item-content,.mat-selection-list .mat-list-item .mat-list-item-content,.mat-selection-list .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list .mat-list-item .mat-list-item-content-reverse,.mat-list .mat-list-option .mat-list-item-content-reverse,.mat-nav-list .mat-list-item .mat-list-item-content-reverse,.mat-nav-list .mat-list-option .mat-list-item-content-reverse,.mat-selection-list .mat-list-item .mat-list-item-content-reverse,.mat-selection-list .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list .mat-list-item .mat-list-item-ripple,.mat-list .mat-list-option .mat-list-item-ripple,.mat-nav-list .mat-list-item .mat-list-item-ripple,.mat-nav-list .mat-list-option .mat-list-item-ripple,.mat-selection-list .mat-list-item .mat-list-item-ripple,.mat-selection-list .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list .mat-list-item.mat-list-item-avatar,.mat-list .mat-list-option.mat-list-item-avatar,.mat-nav-list .mat-list-item.mat-list-item-avatar,.mat-nav-list .mat-list-option.mat-list-item-avatar,.mat-selection-list .mat-list-item.mat-list-item-avatar,.mat-selection-list .mat-list-option.mat-list-item-avatar{height:56px}.mat-list .mat-list-item.mat-2-line,.mat-list .mat-list-option.mat-2-line,.mat-nav-list .mat-list-item.mat-2-line,.mat-nav-list .mat-list-option.mat-2-line,.mat-selection-list .mat-list-item.mat-2-line,.mat-selection-list .mat-list-option.mat-2-line{height:72px}.mat-list .mat-list-item.mat-3-line,.mat-list .mat-list-option.mat-3-line,.mat-nav-list .mat-list-item.mat-3-line,.mat-nav-list .mat-list-option.mat-3-line,.mat-selection-list .mat-list-item.mat-3-line,.mat-selection-list .mat-list-option.mat-3-line{height:88px}.mat-list .mat-list-item.mat-multi-line,.mat-list .mat-list-option.mat-multi-line,.mat-nav-list .mat-list-item.mat-multi-line,.mat-nav-list .mat-list-option.mat-multi-line,.mat-selection-list .mat-list-item.mat-multi-line,.mat-selection-list .mat-list-option.mat-multi-line{height:auto}.mat-list .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list .mat-list-option.mat-multi-line .mat-list-item-content,.mat-nav-list .mat-list-item.mat-multi-line .mat-list-item-content,.mat-nav-list .mat-list-option.mat-multi-line .mat-list-item-content,.mat-selection-list .mat-list-item.mat-multi-line .mat-list-item-content,.mat-selection-list .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list .mat-list-item .mat-list-text,.mat-list .mat-list-option .mat-list-text,.mat-nav-list .mat-list-item .mat-list-text,.mat-nav-list .mat-list-option .mat-list-text,.mat-selection-list .mat-list-item .mat-list-text,.mat-selection-list .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0 16px}.mat-list .mat-list-item .mat-list-text>*,.mat-list .mat-list-option .mat-list-text>*,.mat-nav-list .mat-list-item .mat-list-text>*,.mat-nav-list .mat-list-option .mat-list-text>*,.mat-selection-list .mat-list-item .mat-list-text>*,.mat-selection-list .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-list .mat-list-item .mat-list-text:empty,.mat-list .mat-list-option .mat-list-text:empty,.mat-nav-list .mat-list-item .mat-list-text:empty,.mat-nav-list .mat-list-option .mat-list-text:empty,.mat-selection-list .mat-list-item .mat-list-text:empty,.mat-selection-list .mat-list-option .mat-list-text:empty{display:none}.mat-list .mat-list-item .mat-list-text:nth-child(2),.mat-list .mat-list-option .mat-list-text:nth-child(2),.mat-nav-list .mat-list-item .mat-list-text:nth-child(2),.mat-nav-list .mat-list-option .mat-list-text:nth-child(2),.mat-selection-list .mat-list-item .mat-list-text:nth-child(2),.mat-selection-list .mat-list-option .mat-list-text:nth-child(2){padding:0}.mat-list .mat-list-item .mat-list-avatar,.mat-list .mat-list-option .mat-list-avatar,.mat-nav-list .mat-list-item .mat-list-avatar,.mat-nav-list .mat-list-option .mat-list-avatar,.mat-selection-list .mat-list-item .mat-list-avatar,.mat-selection-list .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%}.mat-list .mat-list-item .mat-list-icon,.mat-list .mat-list-option .mat-list-icon,.mat-nav-list .mat-list-item .mat-list-icon,.mat-nav-list .mat-list-option .mat-list-icon,.mat-selection-list .mat-list-item .mat-list-icon,.mat-selection-list .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list .mat-list-item .mat-divider,.mat-list .mat-list-option .mat-divider,.mat-nav-list .mat-list-item .mat-divider,.mat-nav-list .mat-list-option .mat-divider,.mat-selection-list .mat-list-item .mat-divider,.mat-selection-list .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%}[dir=rtl] .mat-list .mat-list-item .mat-divider,[dir=rtl] .mat-list .mat-list-option .mat-divider,[dir=rtl] .mat-nav-list .mat-list-item .mat-divider,[dir=rtl] .mat-nav-list .mat-list-option .mat-divider,[dir=rtl] .mat-selection-list .mat-list-item .mat-divider,[dir=rtl] .mat-selection-list .mat-list-option .mat-divider{left:auto;right:0}.mat-list .mat-list-item .mat-divider.mat-divider-inset,.mat-list .mat-list-option .mat-divider.mat-divider-inset,.mat-nav-list .mat-list-item .mat-divider.mat-divider-inset,.mat-nav-list .mat-list-option .mat-divider.mat-divider-inset,.mat-selection-list .mat-list-item .mat-divider.mat-divider-inset,.mat-selection-list .mat-list-option .mat-divider.mat-divider-inset{left:72px;width:calc(100% - 72px);margin:0}[dir=rtl] .mat-list .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-list .mat-list-option .mat-divider.mat-divider-inset,[dir=rtl] .mat-nav-list .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-nav-list .mat-list-option .mat-divider.mat-divider-inset,[dir=rtl] .mat-selection-list .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-selection-list .mat-list-option .mat-divider.mat-divider-inset{left:auto;right:72px}.mat-list[dense],.mat-nav-list[dense],.mat-selection-list[dense]{padding-top:4px;display:block}.mat-list[dense] .mat-subheader,.mat-nav-list[dense] .mat-subheader,.mat-selection-list[dense] .mat-subheader{height:40px;line-height:8px}.mat-list[dense] .mat-subheader:first-child,.mat-nav-list[dense] .mat-subheader:first-child,.mat-selection-list[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list[dense] .mat-list-item,.mat-list[dense] .mat-list-option,.mat-nav-list[dense] .mat-list-item,.mat-nav-list[dense] .mat-list-option,.mat-selection-list[dense] .mat-list-item,.mat-selection-list[dense] .mat-list-option{display:block;height:40px}.mat-list[dense] .mat-list-item .mat-list-item-content,.mat-list[dense] .mat-list-option .mat-list-item-content,.mat-nav-list[dense] .mat-list-item .mat-list-item-content,.mat-nav-list[dense] .mat-list-option .mat-list-item-content,.mat-selection-list[dense] .mat-list-item .mat-list-item-content,.mat-selection-list[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list[dense] .mat-list-option .mat-list-item-content-reverse,.mat-nav-list[dense] .mat-list-item .mat-list-item-content-reverse,.mat-nav-list[dense] .mat-list-option .mat-list-item-content-reverse,.mat-selection-list[dense] .mat-list-item .mat-list-item-content-reverse,.mat-selection-list[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list[dense] .mat-list-item .mat-list-item-ripple,.mat-list[dense] .mat-list-option .mat-list-item-ripple,.mat-nav-list[dense] .mat-list-item .mat-list-item-ripple,.mat-nav-list[dense] .mat-list-option .mat-list-item-ripple,.mat-selection-list[dense] .mat-list-item .mat-list-item-ripple,.mat-selection-list[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list[dense] .mat-list-item.mat-list-item-avatar,.mat-list[dense] .mat-list-option.mat-list-item-avatar,.mat-nav-list[dense] .mat-list-item.mat-list-item-avatar,.mat-nav-list[dense] .mat-list-option.mat-list-item-avatar,.mat-selection-list[dense] .mat-list-item.mat-list-item-avatar,.mat-selection-list[dense] .mat-list-option.mat-list-item-avatar{height:48px}.mat-list[dense] .mat-list-item.mat-2-line,.mat-list[dense] .mat-list-option.mat-2-line,.mat-nav-list[dense] .mat-list-item.mat-2-line,.mat-nav-list[dense] .mat-list-option.mat-2-line,.mat-selection-list[dense] .mat-list-item.mat-2-line,.mat-selection-list[dense] .mat-list-option.mat-2-line{height:60px}.mat-list[dense] .mat-list-item.mat-3-line,.mat-list[dense] .mat-list-option.mat-3-line,.mat-nav-list[dense] .mat-list-item.mat-3-line,.mat-nav-list[dense] .mat-list-option.mat-3-line,.mat-selection-list[dense] .mat-list-item.mat-3-line,.mat-selection-list[dense] .mat-list-option.mat-3-line{height:76px}.mat-list[dense] .mat-list-item.mat-multi-line,.mat-list[dense] .mat-list-option.mat-multi-line,.mat-nav-list[dense] .mat-list-item.mat-multi-line,.mat-nav-list[dense] .mat-list-option.mat-multi-line,.mat-selection-list[dense] .mat-list-item.mat-multi-line,.mat-selection-list[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list[dense] .mat-list-option.mat-multi-line .mat-list-item-content,.mat-nav-list[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-nav-list[dense] .mat-list-option.mat-multi-line .mat-list-item-content,.mat-selection-list[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-selection-list[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list[dense] .mat-list-item .mat-list-text,.mat-list[dense] .mat-list-option .mat-list-text,.mat-nav-list[dense] .mat-list-item .mat-list-text,.mat-nav-list[dense] .mat-list-option .mat-list-text,.mat-selection-list[dense] .mat-list-item .mat-list-text,.mat-selection-list[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0 16px}.mat-list[dense] .mat-list-item .mat-list-text>*,.mat-list[dense] .mat-list-option .mat-list-text>*,.mat-nav-list[dense] .mat-list-item .mat-list-text>*,.mat-nav-list[dense] .mat-list-option .mat-list-text>*,.mat-selection-list[dense] .mat-list-item .mat-list-text>*,.mat-selection-list[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-list[dense] .mat-list-item .mat-list-text:empty,.mat-list[dense] .mat-list-option .mat-list-text:empty,.mat-nav-list[dense] .mat-list-item .mat-list-text:empty,.mat-nav-list[dense] .mat-list-option .mat-list-text:empty,.mat-selection-list[dense] .mat-list-item .mat-list-text:empty,.mat-selection-list[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list[dense] .mat-list-item .mat-list-text:nth-child(2),.mat-list[dense] .mat-list-option .mat-list-text:nth-child(2),.mat-nav-list[dense] .mat-list-item .mat-list-text:nth-child(2),.mat-nav-list[dense] .mat-list-option .mat-list-text:nth-child(2),.mat-selection-list[dense] .mat-list-item .mat-list-text:nth-child(2),.mat-selection-list[dense] .mat-list-option .mat-list-text:nth-child(2){padding:0}.mat-list[dense] .mat-list-item .mat-list-avatar,.mat-list[dense] .mat-list-option .mat-list-avatar,.mat-nav-list[dense] .mat-list-item .mat-list-avatar,.mat-nav-list[dense] .mat-list-option .mat-list-avatar,.mat-selection-list[dense] .mat-list-item .mat-list-avatar,.mat-selection-list[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%}.mat-list[dense] .mat-list-item .mat-list-icon,.mat-list[dense] .mat-list-option .mat-list-icon,.mat-nav-list[dense] .mat-list-item .mat-list-icon,.mat-nav-list[dense] .mat-list-option .mat-list-icon,.mat-selection-list[dense] .mat-list-item .mat-list-icon,.mat-selection-list[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list[dense] .mat-list-item .mat-divider,.mat-list[dense] .mat-list-option .mat-divider,.mat-nav-list[dense] .mat-list-item .mat-divider,.mat-nav-list[dense] .mat-list-option .mat-divider,.mat-selection-list[dense] .mat-list-item .mat-divider,.mat-selection-list[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%}[dir=rtl] .mat-list[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list[dense] .mat-list-option .mat-divider,[dir=rtl] .mat-nav-list[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-nav-list[dense] .mat-list-option .mat-divider,[dir=rtl] .mat-selection-list[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-selection-list[dense] .mat-list-option .mat-divider{left:auto;right:0}.mat-list[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list[dense] .mat-list-option .mat-divider.mat-divider-inset,.mat-nav-list[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-nav-list[dense] .mat-list-option .mat-divider.mat-divider-inset,.mat-selection-list[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-selection-list[dense] .mat-list-option .mat-divider.mat-divider-inset{left:72px;width:calc(100% - 72px);margin:0}[dir=rtl] .mat-list[dense] .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-list[dense] .mat-list-option .mat-divider.mat-divider-inset,[dir=rtl] .mat-nav-list[dense] .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-nav-list[dense] .mat-list-option .mat-divider.mat-divider-inset,[dir=rtl] .mat-selection-list[dense] .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-selection-list[dense] .mat-list-option .mat-divider.mat-divider-inset{left:auto;right:72px}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item-content{cursor:pointer}.mat-nav-list .mat-list-item-content.mat-list-item-focus,.mat-nav-list .mat-list-item-content:hover{outline:0}.mat-list-option:not([disabled]){cursor:pointer}"],inputs:["disableRipple"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[]},n}(ui),mi=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-list-avatar], [matListAvatar]",host:{class:"mat-list-avatar"}}]}],t.ctorParameters=function(){return[]},t}(),gi=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-list-icon], [matListIcon]",host:{class:"mat-list-icon"}}]}],t.ctorParameters=function(){return[]},t}(),yi=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-subheader], [matSubheader]",host:{class:"mat-subheader"}}]}],t.ctorParameters=function(){return[]},t}(),vi=function(t){function n(e,n){var r=t.call(this)||this;return r._element=e,r._navList=n,r._isNavList=!1,r._isNavList=!!n,r}return Y(n,t),Object.defineProperty(n.prototype,"_hasAvatar",{set:function(t){null!=t?this._element.nativeElement.classList.add("mat-list-item-avatar"):this._element.nativeElement.classList.remove("mat-list-item-avatar")},enumerable:!0,configurable:!0}),n.prototype.ngAfterContentInit=function(){this._lineSetter=new Et(this._lines,this._element)},n.prototype._isRippleDisabled=function(){return!this._isNavList||this.disableRipple||this._navList.disableRipple},n.prototype._handleFocus=function(){this._element.nativeElement.classList.add("mat-list-item-focus")},n.prototype._handleBlur=function(){this._element.nativeElement.classList.remove("mat-list-item-focus")},n.prototype._getHostElement=function(){return this._element.nativeElement},n.decorators=[{type:e.Component,args:[{selector:"mat-list-item, a[mat-list-item]",exportAs:"matListItem",host:{class:"mat-list-item","(focus)":"_handleFocus()","(blur)":"_handleBlur()"},inputs:["disableRipple"],template:'<div class="mat-list-item-content"><div class="mat-list-item-ripple" mat-ripple [matRippleTrigger]="_getHostElement()" [matRippleDisabled]="_isRippleDisabled()"></div><ng-content select="[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"></ng-content><div class="mat-list-text"><ng-content select="[mat-line], [matLine]"></ng-content></div><ng-content></ng-content></div>',encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[{type:e.ElementRef},{type:di,decorators:[{type:e.Optional}]}]},n.propDecorators={_lines:[{type:e.ContentChildren,args:[xt]}],_hasAvatar:[{type:e.ContentChild,args:[mi]}]},n}(hi),bi=function(){return function(){}}(),_i=nt(et(J(bi))),wi=function(){return function(){}}(),Ci=et(wi),xi={provide:y.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return Oi}),multi:!0},Ei=function(){return function(t,e){this.source=t,this.selected=e}}(),Si=function(){return function(t,e){this.source=t,this.option=e}}(),ki=function(t){function n(n,r,i){var o=t.call(this)||this;return o._element=n,o._changeDetector=r,o.selectionList=i,o._selected=!1,o._disabled=!1,o._hasFocus=!1,o.checkboxPosition="after",o.selectionChange=new e.EventEmitter,o}return Y(n,t),Object.defineProperty(n.prototype,"disabled",{get:function(){return this.selectionList&&this.selectionList.disabled||this._disabled},set:function(t){var e=r.coerceBooleanProperty(t);e!==this._disabled&&(this._disabled=e,this._changeDetector.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selected",{get:function(){return this.selectionList.selectedOptions.isSelected(this)},set:function(t){var e=r.coerceBooleanProperty(t);e!==this._selected&&(this._setSelected(e),this.selectionList._reportValueChange())},enumerable:!0,configurable:!0}),n.prototype.ngOnInit=function(){var t=this;this._selected&&Promise.resolve().then(function(){return t.selected=!0})},n.prototype.ngAfterContentInit=function(){this._lineSetter=new Et(this._lines,this._element)},n.prototype.ngOnDestroy=function(){var t=this;this.selected&&Promise.resolve().then(function(){return t.selected=!1}),this.selectionList._removeOptionFromList(this)},n.prototype.toggle=function(){this.selected=!this.selected},n.prototype.focus=function(){this._element.nativeElement.focus()},n.prototype.getLabel=function(){return this._text?this._text.nativeElement.textContent:""},n.prototype._isRippleDisabled=function(){return this.disabled||this.disableRipple||this.selectionList.disableRipple},n.prototype._handleClick=function(){this.disabled||(this.toggle(),this.selectionList._emitChangeEvent(this),this._emitDeprecatedChangeEvent())},n.prototype._handleFocus=function(){this._hasFocus=!0,this.selectionList._setFocusedOption(this)},n.prototype._handleBlur=function(){this._hasFocus=!1,this.selectionList.onTouched()},n.prototype._getHostElement=function(){return this._element.nativeElement},n.prototype._setSelected=function(t){t!==this._selected&&(this._selected=t,t?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this._changeDetector.markForCheck())},n.prototype._emitDeprecatedChangeEvent=function(){this.selectionChange.emit(new Ei(this,this.selected))},n.decorators=[{type:e.Component,args:[{selector:"mat-list-option",exportAs:"matListOption",inputs:["disableRipple"],host:{role:"option",class:"mat-list-item mat-list-option","(focus)":"_handleFocus()","(blur)":"_handleBlur()","(click)":"_handleClick()",tabindex:"-1","[class.mat-list-item-disabled]":"disabled","[class.mat-list-item-focus]":"_hasFocus","[attr.aria-selected]":"selected.toString()","[attr.aria-disabled]":"disabled.toString()"},template:'<div class="mat-list-item-content" [class.mat-list-item-content-reverse]="checkboxPosition == \'after\'" [class.mat-list-item-disabled]="disabled"><div mat-ripple class="mat-list-item-ripple" [matRippleTrigger]="_getHostElement()" [matRippleDisabled]="_isRippleDisabled()"></div><mat-pseudo-checkbox [state]="selected ? \'checked\' : \'unchecked\'" [disabled]="disabled"></mat-pseudo-checkbox><div class="mat-list-text" #text><ng-content></ng-content></div></div>',encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ChangeDetectorRef},{type:Oi,decorators:[{type:e.Optional},{type:e.Inject,args:[e.forwardRef(function(){return Oi})]}]}]},n.propDecorators={_lines:[{type:e.ContentChildren,args:[xt]}],_text:[{type:e.ViewChild,args:["text"]}],checkboxPosition:[{type:e.Input}],value:[{type:e.Input}],disabled:[{type:e.Input}],selected:[{type:e.Input}],selectionChange:[{type:e.Output}]},n}(Ci),Oi=function(t){function n(n,r){var i=t.call(this)||this;return i._element=n,i.selectionChange=new e.EventEmitter,i.selectedOptions=new x.SelectionModel(!0),i._onChange=function(t){},i.onTouched=function(){},i.tabIndex=parseInt(r)||0,i}return Y(n,t),n.prototype.ngAfterContentInit=function(){this._keyManager=new l.FocusKeyManager(this.options).withWrap().withTypeAhead(),this._tempValues&&(this._setOptionsFromValues(this._tempValues),this._tempValues=null)},n.prototype.focus=function(){this._element.nativeElement.focus()},n.prototype.selectAll=function(){this.options.forEach(function(t){return t._setSelected(!0)}),this._reportValueChange()},n.prototype.deselectAll=function(){this.options.forEach(function(t){return t._setSelected(!1)}),this._reportValueChange()},n.prototype._setFocusedOption=function(t){this._keyManager.updateActiveItemIndex(this._getOptionIndex(t))},n.prototype._removeOptionFromList=function(t){if(t._hasFocus){var e=this._getOptionIndex(t);e>0?this._keyManager.setPreviousItemActive():0===e&&this.options.length>1&&this._keyManager.setNextItemActive()}},n.prototype._keydown=function(t){switch(t.keyCode){case c.SPACE:case c.ENTER:this._toggleSelectOnFocusedOption(),t.preventDefault();break;case c.HOME:case c.END:t.keyCode===c.HOME?this._keyManager.setFirstItemActive():this._keyManager.setLastItemActive(),t.preventDefault();break;default:this._keyManager.onKeydown(t)}},n.prototype._reportValueChange=function(){this.options&&this._onChange(this._getSelectedOptionValues())},n.prototype._emitChangeEvent=function(t){this.selectionChange.emit(new Si(this,t))},n.prototype.writeValue=function(t){this.options?this._setOptionsFromValues(t||[]):this._tempValues=t},n.prototype.setDisabledState=function(t){this.options&&this.options.forEach(function(e){return e.disabled=t})},n.prototype.registerOnChange=function(t){this._onChange=t},n.prototype.registerOnTouched=function(t){this.onTouched=t},n.prototype._getOptionByValue=function(t){return this.options.find(function(e){return e.value===t})},n.prototype._setOptionsFromValues=function(t){var e=this;this.options.forEach(function(t){return t._setSelected(!1)}),t.map(function(t){return e._getOptionByValue(t)}).filter(Boolean).forEach(function(t){return t._setSelected(!0)})},n.prototype._getSelectedOptionValues=function(){return this.options.filter(function(t){return t.selected}).map(function(t){return t.value})},n.prototype._toggleSelectOnFocusedOption=function(){var t=this._keyManager.activeItemIndex;if(null!=t&&this._isValidIndex(t)){var e=this.options.toArray()[t];e&&(e.toggle(),this._emitChangeEvent(e),e._emitDeprecatedChangeEvent())}},n.prototype._isValidIndex=function(t){return t>=0&&t<this.options.length},n.prototype._getOptionIndex=function(t){return this.options.toArray().indexOf(t)},n.decorators=[{type:e.Component,args:[{selector:"mat-selection-list",exportAs:"matSelectionList",inputs:["disabled","disableRipple","tabIndex"],host:{role:"listbox","[tabIndex]":"tabIndex",class:"mat-selection-list","(focus)":"focus()","(blur)":"onTouched()","(keydown)":"_keydown($event)","[attr.aria-disabled]":"disabled.toString()"},template:"<ng-content></ng-content>",styles:[".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list .mat-subheader,.mat-nav-list .mat-subheader,.mat-selection-list .mat-subheader{margin:0}.mat-list,.mat-nav-list,.mat-selection-list{padding-top:8px;display:block}.mat-list .mat-subheader,.mat-nav-list .mat-subheader,.mat-selection-list .mat-subheader{height:48px;line-height:16px}.mat-list .mat-subheader:first-child,.mat-nav-list .mat-subheader:first-child,.mat-selection-list .mat-subheader:first-child{margin-top:-8px}.mat-list .mat-list-item,.mat-list .mat-list-option,.mat-nav-list .mat-list-item,.mat-nav-list .mat-list-option,.mat-selection-list .mat-list-item,.mat-selection-list .mat-list-option{display:block;height:48px}.mat-list .mat-list-item .mat-list-item-content,.mat-list .mat-list-option .mat-list-item-content,.mat-nav-list .mat-list-item .mat-list-item-content,.mat-nav-list .mat-list-option .mat-list-item-content,.mat-selection-list .mat-list-item .mat-list-item-content,.mat-selection-list .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list .mat-list-item .mat-list-item-content-reverse,.mat-list .mat-list-option .mat-list-item-content-reverse,.mat-nav-list .mat-list-item .mat-list-item-content-reverse,.mat-nav-list .mat-list-option .mat-list-item-content-reverse,.mat-selection-list .mat-list-item .mat-list-item-content-reverse,.mat-selection-list .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list .mat-list-item .mat-list-item-ripple,.mat-list .mat-list-option .mat-list-item-ripple,.mat-nav-list .mat-list-item .mat-list-item-ripple,.mat-nav-list .mat-list-option .mat-list-item-ripple,.mat-selection-list .mat-list-item .mat-list-item-ripple,.mat-selection-list .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list .mat-list-item.mat-list-item-avatar,.mat-list .mat-list-option.mat-list-item-avatar,.mat-nav-list .mat-list-item.mat-list-item-avatar,.mat-nav-list .mat-list-option.mat-list-item-avatar,.mat-selection-list .mat-list-item.mat-list-item-avatar,.mat-selection-list .mat-list-option.mat-list-item-avatar{height:56px}.mat-list .mat-list-item.mat-2-line,.mat-list .mat-list-option.mat-2-line,.mat-nav-list .mat-list-item.mat-2-line,.mat-nav-list .mat-list-option.mat-2-line,.mat-selection-list .mat-list-item.mat-2-line,.mat-selection-list .mat-list-option.mat-2-line{height:72px}.mat-list .mat-list-item.mat-3-line,.mat-list .mat-list-option.mat-3-line,.mat-nav-list .mat-list-item.mat-3-line,.mat-nav-list .mat-list-option.mat-3-line,.mat-selection-list .mat-list-item.mat-3-line,.mat-selection-list .mat-list-option.mat-3-line{height:88px}.mat-list .mat-list-item.mat-multi-line,.mat-list .mat-list-option.mat-multi-line,.mat-nav-list .mat-list-item.mat-multi-line,.mat-nav-list .mat-list-option.mat-multi-line,.mat-selection-list .mat-list-item.mat-multi-line,.mat-selection-list .mat-list-option.mat-multi-line{height:auto}.mat-list .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list .mat-list-option.mat-multi-line .mat-list-item-content,.mat-nav-list .mat-list-item.mat-multi-line .mat-list-item-content,.mat-nav-list .mat-list-option.mat-multi-line .mat-list-item-content,.mat-selection-list .mat-list-item.mat-multi-line .mat-list-item-content,.mat-selection-list .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list .mat-list-item .mat-list-text,.mat-list .mat-list-option .mat-list-text,.mat-nav-list .mat-list-item .mat-list-text,.mat-nav-list .mat-list-option .mat-list-text,.mat-selection-list .mat-list-item .mat-list-text,.mat-selection-list .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0 16px}.mat-list .mat-list-item .mat-list-text>*,.mat-list .mat-list-option .mat-list-text>*,.mat-nav-list .mat-list-item .mat-list-text>*,.mat-nav-list .mat-list-option .mat-list-text>*,.mat-selection-list .mat-list-item .mat-list-text>*,.mat-selection-list .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-list .mat-list-item .mat-list-text:empty,.mat-list .mat-list-option .mat-list-text:empty,.mat-nav-list .mat-list-item .mat-list-text:empty,.mat-nav-list .mat-list-option .mat-list-text:empty,.mat-selection-list .mat-list-item .mat-list-text:empty,.mat-selection-list .mat-list-option .mat-list-text:empty{display:none}.mat-list .mat-list-item .mat-list-text:nth-child(2),.mat-list .mat-list-option .mat-list-text:nth-child(2),.mat-nav-list .mat-list-item .mat-list-text:nth-child(2),.mat-nav-list .mat-list-option .mat-list-text:nth-child(2),.mat-selection-list .mat-list-item .mat-list-text:nth-child(2),.mat-selection-list .mat-list-option .mat-list-text:nth-child(2){padding:0}.mat-list .mat-list-item .mat-list-avatar,.mat-list .mat-list-option .mat-list-avatar,.mat-nav-list .mat-list-item .mat-list-avatar,.mat-nav-list .mat-list-option .mat-list-avatar,.mat-selection-list .mat-list-item .mat-list-avatar,.mat-selection-list .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%}.mat-list .mat-list-item .mat-list-icon,.mat-list .mat-list-option .mat-list-icon,.mat-nav-list .mat-list-item .mat-list-icon,.mat-nav-list .mat-list-option .mat-list-icon,.mat-selection-list .mat-list-item .mat-list-icon,.mat-selection-list .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list .mat-list-item .mat-divider,.mat-list .mat-list-option .mat-divider,.mat-nav-list .mat-list-item .mat-divider,.mat-nav-list .mat-list-option .mat-divider,.mat-selection-list .mat-list-item .mat-divider,.mat-selection-list .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%}[dir=rtl] .mat-list .mat-list-item .mat-divider,[dir=rtl] .mat-list .mat-list-option .mat-divider,[dir=rtl] .mat-nav-list .mat-list-item .mat-divider,[dir=rtl] .mat-nav-list .mat-list-option .mat-divider,[dir=rtl] .mat-selection-list .mat-list-item .mat-divider,[dir=rtl] .mat-selection-list .mat-list-option .mat-divider{left:auto;right:0}.mat-list .mat-list-item .mat-divider.mat-divider-inset,.mat-list .mat-list-option .mat-divider.mat-divider-inset,.mat-nav-list .mat-list-item .mat-divider.mat-divider-inset,.mat-nav-list .mat-list-option .mat-divider.mat-divider-inset,.mat-selection-list .mat-list-item .mat-divider.mat-divider-inset,.mat-selection-list .mat-list-option .mat-divider.mat-divider-inset{left:72px;width:calc(100% - 72px);margin:0}[dir=rtl] .mat-list .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-list .mat-list-option .mat-divider.mat-divider-inset,[dir=rtl] .mat-nav-list .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-nav-list .mat-list-option .mat-divider.mat-divider-inset,[dir=rtl] .mat-selection-list .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-selection-list .mat-list-option .mat-divider.mat-divider-inset{left:auto;right:72px}.mat-list[dense],.mat-nav-list[dense],.mat-selection-list[dense]{padding-top:4px;display:block}.mat-list[dense] .mat-subheader,.mat-nav-list[dense] .mat-subheader,.mat-selection-list[dense] .mat-subheader{height:40px;line-height:8px}.mat-list[dense] .mat-subheader:first-child,.mat-nav-list[dense] .mat-subheader:first-child,.mat-selection-list[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list[dense] .mat-list-item,.mat-list[dense] .mat-list-option,.mat-nav-list[dense] .mat-list-item,.mat-nav-list[dense] .mat-list-option,.mat-selection-list[dense] .mat-list-item,.mat-selection-list[dense] .mat-list-option{display:block;height:40px}.mat-list[dense] .mat-list-item .mat-list-item-content,.mat-list[dense] .mat-list-option .mat-list-item-content,.mat-nav-list[dense] .mat-list-item .mat-list-item-content,.mat-nav-list[dense] .mat-list-option .mat-list-item-content,.mat-selection-list[dense] .mat-list-item .mat-list-item-content,.mat-selection-list[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list[dense] .mat-list-option .mat-list-item-content-reverse,.mat-nav-list[dense] .mat-list-item .mat-list-item-content-reverse,.mat-nav-list[dense] .mat-list-option .mat-list-item-content-reverse,.mat-selection-list[dense] .mat-list-item .mat-list-item-content-reverse,.mat-selection-list[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list[dense] .mat-list-item .mat-list-item-ripple,.mat-list[dense] .mat-list-option .mat-list-item-ripple,.mat-nav-list[dense] .mat-list-item .mat-list-item-ripple,.mat-nav-list[dense] .mat-list-option .mat-list-item-ripple,.mat-selection-list[dense] .mat-list-item .mat-list-item-ripple,.mat-selection-list[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list[dense] .mat-list-item.mat-list-item-avatar,.mat-list[dense] .mat-list-option.mat-list-item-avatar,.mat-nav-list[dense] .mat-list-item.mat-list-item-avatar,.mat-nav-list[dense] .mat-list-option.mat-list-item-avatar,.mat-selection-list[dense] .mat-list-item.mat-list-item-avatar,.mat-selection-list[dense] .mat-list-option.mat-list-item-avatar{height:48px}.mat-list[dense] .mat-list-item.mat-2-line,.mat-list[dense] .mat-list-option.mat-2-line,.mat-nav-list[dense] .mat-list-item.mat-2-line,.mat-nav-list[dense] .mat-list-option.mat-2-line,.mat-selection-list[dense] .mat-list-item.mat-2-line,.mat-selection-list[dense] .mat-list-option.mat-2-line{height:60px}.mat-list[dense] .mat-list-item.mat-3-line,.mat-list[dense] .mat-list-option.mat-3-line,.mat-nav-list[dense] .mat-list-item.mat-3-line,.mat-nav-list[dense] .mat-list-option.mat-3-line,.mat-selection-list[dense] .mat-list-item.mat-3-line,.mat-selection-list[dense] .mat-list-option.mat-3-line{height:76px}.mat-list[dense] .mat-list-item.mat-multi-line,.mat-list[dense] .mat-list-option.mat-multi-line,.mat-nav-list[dense] .mat-list-item.mat-multi-line,.mat-nav-list[dense] .mat-list-option.mat-multi-line,.mat-selection-list[dense] .mat-list-item.mat-multi-line,.mat-selection-list[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list[dense] .mat-list-option.mat-multi-line .mat-list-item-content,.mat-nav-list[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-nav-list[dense] .mat-list-option.mat-multi-line .mat-list-item-content,.mat-selection-list[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-selection-list[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list[dense] .mat-list-item .mat-list-text,.mat-list[dense] .mat-list-option .mat-list-text,.mat-nav-list[dense] .mat-list-item .mat-list-text,.mat-nav-list[dense] .mat-list-option .mat-list-text,.mat-selection-list[dense] .mat-list-item .mat-list-text,.mat-selection-list[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0 16px}.mat-list[dense] .mat-list-item .mat-list-text>*,.mat-list[dense] .mat-list-option .mat-list-text>*,.mat-nav-list[dense] .mat-list-item .mat-list-text>*,.mat-nav-list[dense] .mat-list-option .mat-list-text>*,.mat-selection-list[dense] .mat-list-item .mat-list-text>*,.mat-selection-list[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-list[dense] .mat-list-item .mat-list-text:empty,.mat-list[dense] .mat-list-option .mat-list-text:empty,.mat-nav-list[dense] .mat-list-item .mat-list-text:empty,.mat-nav-list[dense] .mat-list-option .mat-list-text:empty,.mat-selection-list[dense] .mat-list-item .mat-list-text:empty,.mat-selection-list[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list[dense] .mat-list-item .mat-list-text:nth-child(2),.mat-list[dense] .mat-list-option .mat-list-text:nth-child(2),.mat-nav-list[dense] .mat-list-item .mat-list-text:nth-child(2),.mat-nav-list[dense] .mat-list-option .mat-list-text:nth-child(2),.mat-selection-list[dense] .mat-list-item .mat-list-text:nth-child(2),.mat-selection-list[dense] .mat-list-option .mat-list-text:nth-child(2){padding:0}.mat-list[dense] .mat-list-item .mat-list-avatar,.mat-list[dense] .mat-list-option .mat-list-avatar,.mat-nav-list[dense] .mat-list-item .mat-list-avatar,.mat-nav-list[dense] .mat-list-option .mat-list-avatar,.mat-selection-list[dense] .mat-list-item .mat-list-avatar,.mat-selection-list[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%}.mat-list[dense] .mat-list-item .mat-list-icon,.mat-list[dense] .mat-list-option .mat-list-icon,.mat-nav-list[dense] .mat-list-item .mat-list-icon,.mat-nav-list[dense] .mat-list-option .mat-list-icon,.mat-selection-list[dense] .mat-list-item .mat-list-icon,.mat-selection-list[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list[dense] .mat-list-item .mat-divider,.mat-list[dense] .mat-list-option .mat-divider,.mat-nav-list[dense] .mat-list-item .mat-divider,.mat-nav-list[dense] .mat-list-option .mat-divider,.mat-selection-list[dense] .mat-list-item .mat-divider,.mat-selection-list[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%}[dir=rtl] .mat-list[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list[dense] .mat-list-option .mat-divider,[dir=rtl] .mat-nav-list[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-nav-list[dense] .mat-list-option .mat-divider,[dir=rtl] .mat-selection-list[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-selection-list[dense] .mat-list-option .mat-divider{left:auto;right:0}.mat-list[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list[dense] .mat-list-option .mat-divider.mat-divider-inset,.mat-nav-list[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-nav-list[dense] .mat-list-option .mat-divider.mat-divider-inset,.mat-selection-list[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-selection-list[dense] .mat-list-option .mat-divider.mat-divider-inset{left:72px;width:calc(100% - 72px);margin:0}[dir=rtl] .mat-list[dense] .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-list[dense] .mat-list-option .mat-divider.mat-divider-inset,[dir=rtl] .mat-nav-list[dense] .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-nav-list[dense] .mat-list-option .mat-divider.mat-divider-inset,[dir=rtl] .mat-selection-list[dense] .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-selection-list[dense] .mat-list-option .mat-divider.mat-divider-inset{left:auto;right:72px}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item-content{cursor:pointer}.mat-nav-list .mat-list-item-content.mat-list-item-focus,.mat-nav-list .mat-list-item-content:hover{outline:0}.mat-list-option:not([disabled]){cursor:pointer}"],encapsulation:e.ViewEncapsulation.None,providers:[xi],preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[{type:e.ElementRef},{type:void 0,decorators:[{type:e.Attribute,args:["tabindex"]}]}]},n.propDecorators={options:[{type:e.ContentChildren,args:[ki]}],selectionChange:[{type:e.Output}]},n}(_i),Pi=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[St,It,Z,Dt,a.CommonModule],exports:[fi,di,vi,mi,St,Z,gi,yi,Dt,Oi,ki,Rr],declarations:[fi,di,vi,mi,gi,yi,Oi,ki]}]}],t.ctorParameters=function(){return[]},t}(),Ai={transformMenu:_.trigger("transformMenu",[_.state("void",_.style({opacity:0,transform:"scale(0.01, 0.01)"})),_.state("enter-start",_.style({opacity:1,transform:"scale(1, 0.5)"})),_.state("enter",_.style({transform:"scale(1, 1)"})),_.transition("void => enter-start",_.animate("100ms linear")),_.transition("enter-start => enter",_.animate("300ms cubic-bezier(0.25, 0.8, 0.25, 1)")),_.transition("* => void",_.animate("150ms 50ms linear",_.style({opacity:0})))]),fadeInItems:_.trigger("fadeInItems",[_.state("showing",_.style({opacity:1})),_.transition("void => *",[_.style({opacity:0}),_.animate("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ti=Ai.fadeInItems,Mi=Ai.transformMenu;var Ii=function(){return function(){}}(),Ri=et(J(Ii)),Di=function(t){function n(e){var n=t.call(this)||this;return n._elementRef=e,n._hovered=new i.Subject,n._highlighted=!1,n._triggersSubmenu=!1,n}return Y(n,t),n.prototype.focus=function(){this._getHostElement().focus()},n.prototype.ngOnDestroy=function(){this._hovered.complete()},n.prototype._getTabIndex=function(){return this.disabled?"-1":"0"},n.prototype._getHostElement=function(){return this._elementRef.nativeElement},n.prototype._checkDisabled=function(t){this.disabled&&(t.preventDefault(),t.stopPropagation())},n.prototype._emitHoverEvent=function(){this.disabled||this._hovered.next(this)},n.prototype.getLabel=function(){var t=this._elementRef.nativeElement,e="";if(t.childNodes)for(var n=t.childNodes.length,r=0;r<n;r++)t.childNodes[r].nodeType===Node.TEXT_NODE&&(e+=t.childNodes[r].textContent);return e.trim()},n.decorators=[{type:e.Component,args:[{selector:"[mat-menu-item]",exportAs:"matMenuItem",inputs:["disabled","disableRipple"],host:{role:"menuitem",class:"mat-menu-item","[class.mat-menu-item-highlighted]":"_highlighted","[class.mat-menu-item-submenu-trigger]":"_triggersSubmenu","[attr.tabindex]":"_getTabIndex()","[attr.aria-disabled]":"disabled.toString()","[attr.disabled]":"disabled || null","(click)":"_checkDisabled($event)","(mouseenter)":"_emitHoverEvent()"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,template:'<ng-content></ng-content><div class="mat-menu-ripple" matRipple [matRippleDisabled]="disableRipple || disabled" [matRippleTrigger]="_getHostElement()"></div>'}]}],n.ctorParameters=function(){return[{type:e.ElementRef}]},n}(Ri),Ni=new e.InjectionToken("mat-menu-default-options"),Li=function(){function t(t,n,r){this._elementRef=t,this._ngZone=n,this._defaultOptions=r,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._tabSubscription=S.Subscription.EMPTY,this._classList={},this._panelAnimationState="void",this._overlapTrigger=this._defaultOptions.overlapTrigger,this.closed=new e.EventEmitter,this.close=this.closed}return Object.defineProperty(t.prototype,"xPosition",{get:function(){return this._xPosition},set:function(t){"before"!==t&&"after"!==t&&function(){throw Error('x-position value must be either \'before\' or after\'.\n      Example: <mat-menu x-position="before" #menu="matMenu"></mat-menu>')}(),this._xPosition=t,this.setPositionClasses()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yPosition",{get:function(){return this._yPosition},set:function(t){"above"!==t&&"below"!==t&&function(){throw Error('y-position value must be either \'above\' or below\'.\n      Example: <mat-menu y-position="above" #menu="matMenu"></mat-menu>')}(),this._yPosition=t,this.setPositionClasses()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overlapTrigger",{get:function(){return this._overlapTrigger},set:function(t){this._overlapTrigger=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelClass",{set:function(t){t&&t.length&&(this._classList=t.split(" ").reduce(function(t,e){return t[e]=!0,t},{}),this._elementRef.nativeElement.className="",this.setPositionClasses())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"classList",{get:function(){return this.panelClass},set:function(t){this.panelClass=t},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this._keyManager=new l.FocusKeyManager(this.items).withWrap().withTypeAhead(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return t.close.emit("keydown")})},t.prototype.ngOnDestroy=function(){this._tabSubscription.unsubscribe(),this.closed.complete()},t.prototype._hovered=function(){var t=this;return this.items?this.items.changes.pipe(v.startWith(this.items),f.switchMap(function(t){return w.merge.apply(void 0,t.map(function(t){return t._hovered}))})):this._ngZone.onStable.asObservable().pipe(d.take(1),f.switchMap(function(){return t._hovered()}))},t.prototype._handleKeydown=function(t){switch(t.keyCode){case c.ESCAPE:this.closed.emit("keydown"),t.stopPropagation();break;case c.LEFT_ARROW:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case c.RIGHT_ARROW:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:this._keyManager.onKeydown(t)}},t.prototype.focusFirstItem=function(){this._keyManager.setFirstItemActive()},t.prototype.resetActiveItem=function(){this._keyManager.setActiveItem(-1)},t.prototype.setPositionClasses=function(t,e){void 0===t&&(t=this.xPosition),void 0===e&&(e=this.yPosition),this._classList["mat-menu-before"]="before"===t,this._classList["mat-menu-after"]="after"===t,this._classList["mat-menu-above"]="above"===e,this._classList["mat-menu-below"]="below"===e},t.prototype.setElevation=function(t){var e="mat-elevation-z"+(2+t),n=Object.keys(this._classList).find(function(t){return t.startsWith("mat-elevation-z")});n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)},t.prototype._startAnimation=function(){this._panelAnimationState="enter-start"},t.prototype._resetAnimation=function(){this._panelAnimationState="void"},t.prototype._onAnimationDone=function(t){"enter-start"===t.toState&&(this._panelAnimationState="enter")},t.decorators=[{type:e.Component,args:[{selector:"mat-menu",template:'<ng-template><div class="mat-menu-panel" [ngClass]="_classList" (keydown)="_handleKeydown($event)" (click)="closed.emit(\'click\')" [@transformMenu]="_panelAnimationState" (@transformMenu.done)="_onAnimationDone($event)" tabindex="-1" role="menu"><div class="mat-menu-content" [@fadeInItems]="\'showing\'"><ng-content></ng-content></div></div></ng-template>',styles:[".mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:2px;outline:0}.mat-menu-panel:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-menu-panel.mat-menu-after.mat-menu-below{transform-origin:left top}.mat-menu-panel.mat-menu-after.mat-menu-above{transform-origin:left bottom}.mat-menu-panel.mat-menu-before.mat-menu-below{transform-origin:right top}.mat-menu-panel.mat-menu-before.mat-menu-above{transform-origin:right bottom}[dir=rtl] .mat-menu-panel.mat-menu-after.mat-menu-below{transform-origin:right top}[dir=rtl] .mat-menu-panel.mat-menu-after.mat-menu-above{transform-origin:right bottom}[dir=rtl] .mat-menu-panel.mat-menu-before.mat-menu-below{transform-origin:left top}[dir=rtl] .mat-menu-panel.mat-menu-before.mat-menu-above{transform-origin:left bottom}.mat-menu-panel.ng-animating{pointer-events:none}@media screen and (-ms-high-contrast:active){.mat-menu-panel{outline:solid 1px}}.mat-menu-content{padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;position:relative}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item .mat-icon{vertical-align:middle}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:'';display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:8px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}"],changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,animations:[Ai.transformMenu,Ai.fadeInItems],exportAs:"matMenu"}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.NgZone},{type:void 0,decorators:[{type:e.Inject,args:[Ni]}]}]},t.propDecorators={xPosition:[{type:e.Input}],yPosition:[{type:e.Input}],templateRef:[{type:e.ViewChild,args:[e.TemplateRef]}],items:[{type:e.ContentChildren,args:[Di]}],overlapTrigger:[{type:e.Input}],panelClass:[{type:e.Input,args:["class"]}],classList:[{type:e.Input}],closed:[{type:e.Output}],close:[{type:e.Output}]},t}(),ji=new e.InjectionToken("mat-menu-scroll-strategy");function Fi(t){return function(){return t.scrollStrategies.reposition()}}var Vi={provide:ji,deps:[u.Overlay],useFactory:Fi},Bi=function(){function t(t,n,r,i,o,a,s){this._overlay=t,this._element=n,this._viewContainerRef=r,this._scrollStrategy=i,this._parentMenu=o,this._menuItemInstance=a,this._dir=s,this._overlayRef=null,this._menuOpen=!1,this._closeSubscription=S.Subscription.EMPTY,this._positionSubscription=S.Subscription.EMPTY,this._hoverSubscription=S.Subscription.EMPTY,this._openedByMouse=!1,this.menuOpened=new e.EventEmitter,this.onMenuOpen=this.menuOpened,this.menuClosed=new e.EventEmitter,this.onMenuClose=this.menuClosed,a&&(a._triggersSubmenu=this.triggersSubmenu())}return Object.defineProperty(t.prototype,"_deprecatedMatMenuTriggerFor",{get:function(){return this.menu},set:function(t){this.menu=t},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this._checkMenu(),this.menu.close.subscribe(function(e){t._destroyMenu(),"click"===e&&t._parentMenu&&t._parentMenu.closed.emit(e)}),this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(h.filter(function(e){return e===t._menuItemInstance})).subscribe(function(){t._openedByMouse=!0,t.openMenu()}))},t.prototype.ngOnDestroy=function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._cleanUpSubscriptions()},Object.defineProperty(t.prototype,"menuOpen",{get:function(){return this._menuOpen},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},enumerable:!0,configurable:!0}),t.prototype.triggersSubmenu=function(){return!(!this._menuItemInstance||!this._parentMenu)},t.prototype.toggleMenu=function(){return this._menuOpen?this.closeMenu():this.openMenu()},t.prototype.openMenu=function(){var t=this;this._menuOpen||(this._createOverlay().attach(this._portal),this._closeSubscription=this._menuClosingActions().subscribe(function(){return t.closeMenu()}),this._initMenu(),this.menu instanceof Li&&this.menu._startAnimation())},t.prototype.closeMenu=function(){this.menu.close.emit()},t.prototype.focus=function(){this._element.nativeElement.focus()},t.prototype._destroyMenu=function(){this._overlayRef&&this.menuOpen&&(this._resetMenu(),this._closeSubscription.unsubscribe(),this._overlayRef.detach(),this.menu instanceof Li&&this.menu._resetAnimation())},t.prototype._initMenu=function(){if(this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this._openedByMouse){var t=this._overlayRef.overlayElement.firstElementChild;t&&(this.menu.resetActiveItem(),t.focus())}else this.menu.focusFirstItem()},t.prototype._setMenuElevation=function(){if(this.menu.setElevation){for(var t=0,e=this.menu.parentMenu;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}},t.prototype._resetMenu=function(){this._setIsMenuOpen(!1),this._openedByMouse&&this.triggersSubmenu()||this.focus(),this._openedByMouse=!1},t.prototype._setIsMenuOpen=function(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)},t.prototype._checkMenu=function(){this.menu||function(){throw Error('mat-menu-trigger: must pass in an mat-menu instance.\n\n    Example:\n      <mat-menu #menu="matMenu"></mat-menu>\n      <button [matMenuTriggerFor]="menu"></button>')}()},t.prototype._createOverlay=function(){if(!this._overlayRef){this._portal=new p.TemplatePortal(this.menu.templateRef,this._viewContainerRef);var t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t)}return this._overlayRef},t.prototype._getOverlayConfig=function(){return new u.OverlayConfig({positionStrategy:this._getPosition(),hasBackdrop:!this.triggersSubmenu(),backdropClass:"cdk-overlay-transparent-backdrop",direction:this.dir,scrollStrategy:this._scrollStrategy()})},t.prototype._subscribeToPositions=function(t){var e=this;this._positionSubscription=t.onPositionChange.subscribe(function(t){var n="start"===t.connectionPair.overlayX?"after":"before",r="top"===t.connectionPair.overlayY?"below":"above";e.menu.setPositionClasses(n,r)})},t.prototype._getPosition=function(){var t="before"===this.menu.xPosition?["end","start"]:["start","end"],e=t[0],n=t[1],r="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],i=r[0],o=r[1],a=[i,o],s=a[0],c=a[1],l=[e,n],u=l[0],p=l[1],h=0;return this.triggersSubmenu()?(p=e="before"===this.menu.xPosition?"start":"end",n=u="end"===e?"start":"end",h="bottom"===i?8:-8):this.menu.overlapTrigger||(s="top"===i?"bottom":"top",c="top"===o?"bottom":"top"),this._overlay.position().connectedTo(this._element,{originX:e,originY:s},{overlayX:u,overlayY:i}).withDirection(this.dir).withOffsetY(h).withFallbackPosition({originX:n,originY:s},{overlayX:p,overlayY:i}).withFallbackPosition({originX:e,originY:c},{overlayX:u,overlayY:o},void 0,-h).withFallbackPosition({originX:n,originY:c},{overlayX:p,overlayY:o},void 0,-h)},t.prototype._cleanUpSubscriptions=function(){this._closeSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()},t.prototype._menuClosingActions=function(){var t=this,e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),r=this._parentMenu?this._parentMenu.close:C.of(),i=this._parentMenu?this._parentMenu._hovered().pipe(h.filter(function(e){return e!==t._menuItemInstance}),h.filter(function(){return t._menuOpen})):C.of();return w.merge(e,r,i,n)},t.prototype._handleMousedown=function(t){l.isFakeMousedownFromScreenReader(t)||(this._openedByMouse=!0,this.triggersSubmenu()&&t.preventDefault())},t.prototype._handleKeydown=function(t){var e=t.keyCode;this.triggersSubmenu()&&(e===c.RIGHT_ARROW&&"ltr"===this.dir||e===c.LEFT_ARROW&&"rtl"===this.dir)&&this.openMenu()},t.prototype._handleClick=function(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()},t.decorators=[{type:e.Directive,args:[{selector:"[mat-menu-trigger-for], [matMenuTriggerFor]",host:{"aria-haspopup":"true","(mousedown)":"_handleMousedown($event)","(keydown)":"_handleKeydown($event)","(click)":"_handleClick($event)"},exportAs:"matMenuTrigger"}]}],t.ctorParameters=function(){return[{type:u.Overlay},{type:e.ElementRef},{type:e.ViewContainerRef},{type:void 0,decorators:[{type:e.Inject,args:[ji]}]},{type:Li,decorators:[{type:e.Optional}]},{type:Di,decorators:[{type:e.Optional},{type:e.Self}]},{type:n.Directionality,decorators:[{type:e.Optional}]}]},t.propDecorators={_deprecatedMatMenuTriggerFor:[{type:e.Input,args:["mat-menu-trigger-for"]}],menu:[{type:e.Input,args:["matMenuTriggerFor"]}],menuOpened:[{type:e.Output}],onMenuOpen:[{type:e.Output}],menuClosed:[{type:e.Output}],onMenuClose:[{type:e.Output}]},t}(),Ui={overlapTrigger:!0,xPosition:"after",yPosition:"below"},Hi=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[u.OverlayModule,a.CommonModule,It,Z],exports:[Li,Di,Bi,Z],declarations:[Li,Di,Bi],providers:[Vi,{provide:Ni,useValue:Ui}]}]}],t.ctorParameters=function(){return[]},t}(),zi={transformPanel:_.trigger("transformPanel",[_.state("showing",_.style({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),_.state("showing-multiple",_.style({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),_.transition("void => *",[_.style({opacity:0,minWidth:"100%",transform:"scaleY(0)"}),_.animate("150ms cubic-bezier(0.25, 0.8, 0.25, 1)")]),_.transition("* => void",[_.animate("250ms 100ms linear",_.style({opacity:0}))])]),fadeInContent:_.trigger("fadeInContent",[_.state("showing",_.style({opacity:1})),_.transition("void => showing",[_.style({opacity:0}),_.animate("150ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Wi=zi.transformPanel,Gi=zi.fadeInContent;var qi=0,Yi=new e.InjectionToken("mat-select-scroll-strategy");function Ki(t){return function(){return t.scrollStrategies.reposition()}}var $i={provide:Yi,deps:[u.Overlay],useFactory:Ki},Xi=function(){return function(t,e){this.source=t,this.value=e}}(),Qi=function(){return function(t,e,n,r,i){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=r,this.ngControl=i}}(),Zi=et(nt(J(rt(Qi)))),Ji=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-select-trigger"}]}],t.ctorParameters=function(){return[]},t}(),to=function(t){function o(n,r,o,a,s,c,l,u,p,h,m,g){var y=t.call(this,s,a,l,u,h)||this;return y._viewportRuler=n,y._changeDetectorRef=r,y._ngZone=o,y._dir=c,y._parentFormField=p,y.ngControl=h,y._scrollStrategyFactory=g,y._panelOpen=!1,y._required=!1,y._scrollTop=0,y._multiple=!1,y._compareWith=function(t,e){return t===e},y._uid="mat-select-"+qi++,y._destroy=new i.Subject,y._triggerFontSize=0,y._onChange=function(){},y._onTouched=function(){},y._optionIds="",y._transformOrigin="top",y._panelDoneAnimating=!1,y._scrollStrategy=y._scrollStrategyFactory(),y._offsetY=0,y._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],y.focused=!1,y.controlType="mat-select",y.ariaLabel="",y.optionSelectionChanges=k.defer(function(){return y.options?w.merge.apply(void 0,y.options.map(function(t){return t.onSelectionChange})):y._ngZone.onStable.asObservable().pipe(d.take(1),f.switchMap(function(){return y.optionSelectionChanges}))}),y.openedChange=new e.EventEmitter,y.onOpen=y._openedStream,y.onClose=y._closedStream,y.selectionChange=new e.EventEmitter,y.change=y.selectionChange,y.valueChange=new e.EventEmitter,y.ngControl&&(y.ngControl.valueAccessor=y),y.tabIndex=parseInt(m)||0,y.id=y.id,y}return Y(o,t),Object.defineProperty(o.prototype,"placeholder",{get:function(){return this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"required",{get:function(){return this._required},set:function(t){this._required=r.coerceBooleanProperty(t),this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"multiple",{get:function(){return this._multiple},set:function(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"compareWith",{get:function(){return this._compareWith},set:function(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"value",{get:function(){return this._value},set:function(t){t!==this._value&&(this.writeValue(t),this._value=t)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t||this._uid,this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"_openedStream",{get:function(){return this.openedChange.pipe(h.filter(function(t){return t}),A.map(function(){}))},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"_closedStream",{get:function(){return this.openedChange.pipe(h.filter(function(t){return!t}),A.map(function(){}))},enumerable:!0,configurable:!0}),o.prototype.ngOnInit=function(){this._selectionModel=new x.SelectionModel(this.multiple,void 0,!1),this.stateChanges.next()},o.prototype.ngAfterContentInit=function(){var t=this;this._initKeyManager(),this.options.changes.pipe(v.startWith(null),N.takeUntil(this._destroy)).subscribe(function(){t._resetOptions(),t._initializeSelection()})},o.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState()},o.prototype.ngOnChanges=function(t){t.disabled&&this.stateChanges.next()},o.prototype.ngOnDestroy=function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()},o.prototype.toggle=function(){this.panelOpen?this.close():this.open()},o.prototype.open=function(){var t=this;!this.disabled&&this.options&&this.options.length&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement)["font-size"]),this._panelOpen=!0,this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(d.take(1)).subscribe(function(){t._triggerFontSize&&t.overlayDir.overlayRef&&t.overlayDir.overlayRef.overlayElement&&(t.overlayDir.overlayRef.overlayElement.style.fontSize=t._triggerFontSize+"px")}))},o.prototype.close=function(){this._panelOpen&&(this._panelOpen=!1,this._changeDetectorRef.markForCheck(),this._onTouched(),this.focus())},o.prototype.writeValue=function(t){this.options&&this._setSelectionByValue(t)},o.prototype.registerOnChange=function(t){this._onChange=t},o.prototype.registerOnTouched=function(t){this._onTouched=t},o.prototype.setDisabledState=function(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()},Object.defineProperty(o.prototype,"panelOpen",{get:function(){return this._panelOpen},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"selected",{get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"triggerValue",{get:function(){if(this.empty)return"";if(this._multiple){var t=this._selectionModel.selected.map(function(t){return t.viewValue});return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue},enumerable:!0,configurable:!0}),o.prototype._isRtl=function(){return!!this._dir&&"rtl"===this._dir.value},o.prototype._handleKeydown=function(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))},o.prototype._handleClosedKeydown=function(t){var e=t.keyCode,n=e===c.DOWN_ARROW||e===c.UP_ARROW;e===c.ENTER||e===c.SPACE||(this.multiple||t.altKey)&&n?(t.preventDefault(),this.open()):this.multiple||this._keyManager.onKeydown(t)},o.prototype._handleOpenKeydown=function(t){var e=t.keyCode;if(e===c.HOME||e===c.END)t.preventDefault(),e===c.HOME?this._keyManager.setFirstItemActive():this._keyManager.setLastItemActive();else if(e!==c.ENTER&&e!==c.SPACE||!this._keyManager.activeItem){var n=e===c.DOWN_ARROW||e===c.UP_ARROW,r=this._keyManager.activeItemIndex;this._keyManager.onKeydown(t),this._multiple&&n&&t.shiftKey&&this._keyManager.activeItem&&this._keyManager.activeItemIndex!==r&&this._keyManager.activeItem._selectViaInteraction()}else t.preventDefault(),this._keyManager.activeItem._selectViaInteraction()},o.prototype._onPanelDone=function(){this.panelOpen?(this._scrollTop=0,this.openedChange.emit(!0)):(this.openedChange.emit(!1),this._panelDoneAnimating=!1,this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck())},o.prototype._onFadeInDone=function(){this._panelDoneAnimating=this.panelOpen,this._changeDetectorRef.markForCheck()},o.prototype._onFocus=function(){this.disabled||(this.focused=!0,this.stateChanges.next())},o.prototype._onBlur=function(){this.disabled||this.panelOpen||(this.focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())},o.prototype._onAttached=function(){var t=this;this.overlayDir.positionChange.pipe(d.take(1)).subscribe(function(){t._changeDetectorRef.detectChanges(),t._calculateOverlayOffsetX(),t.panel.nativeElement.scrollTop=t._scrollTop})},o.prototype._getPanelTheme=function(){return this._parentFormField?"mat-"+this._parentFormField.color:""},Object.defineProperty(o.prototype,"empty",{get:function(){return!this._selectionModel||this._selectionModel.isEmpty()},enumerable:!0,configurable:!0}),o.prototype._initializeSelection=function(){var t=this;Promise.resolve().then(function(){t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value)})},o.prototype._setSelectionByValue=function(t,e){var n=this;if(void 0===e&&(e=!1),this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._clearSelection(),t.forEach(function(t){return n._selectValue(t,e)}),this._sortValues()}else{this._clearSelection();var r=this._selectValue(t,e);r&&this._keyManager.setActiveItem(this.options.toArray().indexOf(r))}this._changeDetectorRef.markForCheck()},o.prototype._selectValue=function(t,n){var r=this;void 0===n&&(n=!1);var i=this.options.find(function(n){try{return null!=n.value&&r._compareWith(n.value,t)}catch(t){return e.isDevMode()&&console.warn(t),!1}});return i&&(n?i._selectViaInteraction():i.select(),this._selectionModel.select(i),this.stateChanges.next()),i},o.prototype._clearSelection=function(t){this._selectionModel.clear(),this.options.forEach(function(e){e!==t&&e.deselect()}),this.stateChanges.next()},o.prototype._initKeyManager=function(){var t=this;this._keyManager=new l.ActiveDescendantKeyManager(this.options).withTypeAhead(),this._keyManager.tabOut.pipe(N.takeUntil(this._destroy)).subscribe(function(){return t.close()}),this._keyManager.change.pipe(N.takeUntil(this._destroy)).subscribe(function(){t._panelOpen&&t.panel?t._scrollActiveOptionIntoView():t._panelOpen||t.multiple||!t._keyManager.activeItem||t._keyManager.activeItem._selectViaInteraction()})},o.prototype._resetOptions=function(){var t=this;this.optionSelectionChanges.pipe(N.takeUntil(w.merge(this._destroy,this.options.changes)),h.filter(function(t){return t.isUserInput})).subscribe(function(e){t._onSelect(e.source),t.multiple||t.close()}),this._setOptionIds()},o.prototype._onSelect=function(t){var e=this._selectionModel.isSelected(t);this.multiple?(this._selectionModel.toggle(t),this.stateChanges.next(),e?t.deselect():t.select(),this._keyManager.setActiveItem(this._getOptionIndex(t)),this._sortValues()):(this._clearSelection(null==t.value?void 0:t),null==t.value?this._propagateChanges(t.value):(this._selectionModel.select(t),this.stateChanges.next())),e!==this._selectionModel.isSelected(t)&&this._propagateChanges()},o.prototype._sortValues=function(){var t=this;this._multiple&&(this._selectionModel.clear(),this.options.forEach(function(e){e.selected&&t._selectionModel.select(e)}),this.stateChanges.next())},o.prototype._propagateChanges=function(t){var e=null;e=this.multiple?this.selected.map(function(t){return t.value}):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new Xi(this,e)),this._changeDetectorRef.markForCheck()},o.prototype._setOptionIds=function(){this._optionIds=this.options.map(function(t){return t.id}).join(" ")},o.prototype._highlightCorrectOption=function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._getOptionIndex(this._selectionModel.selected[0])))},o.prototype._scrollActiveOptionIntoView=function(){var t=this._getItemHeight(),e=this._keyManager.activeItemIndex||0,n=(e+Ht.countGroupLabelsBeforeOption(e,this.options,this.optionGroups))*t,r=this.panel.nativeElement.scrollTop;n<r?this.panel.nativeElement.scrollTop=n:n+t>r+256&&(this.panel.nativeElement.scrollTop=Math.max(0,n-256+t))},o.prototype.focus=function(){this._elementRef.nativeElement.focus()},o.prototype._getOptionIndex=function(t){return this.options.reduce(function(e,n,r){return void 0===e?t===n?r:void 0:e},void 0)},o.prototype._calculateOverlayPosition=function(){var t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),r=e*t-n,i=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);i+=Ht.countGroupLabelsBeforeOption(i,this.options,this.optionGroups);var o=n/2;this._scrollTop=this._calculateOverlayScroll(i,o,r),this._offsetY=this._calculateOverlayOffsetY(i,o,r),this._checkOverlayWithinViewport(r)},o.prototype._calculateOverlayScroll=function(t,e,n){var r=this._getItemHeight(),i=r*t-e+r/2;return Math.min(Math.max(0,i),n)},Object.defineProperty(o.prototype,"_ariaLabel",{get:function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder},enumerable:!0,configurable:!0}),o.prototype._getAriaActiveDescendant=function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null},o.prototype._calculateOverlayOffsetX=function(){var t,e=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),r=this._isRtl(),i=this.multiple?60:32;if(this.multiple)t=44;else{var o=this._selectionModel.selected[0]||this.options.first;t=o&&o.group?32:16}r||(t*=-1);var a=0-(e.left+t-(r?i:0)),s=e.right+t-n.width+(r?0:i);a>0?t+=a+8:s>0&&(t-=s+8),this.overlayDir.offsetX=t,this.overlayDir.overlayRef.updatePosition()},o.prototype._calculateOverlayOffsetY=function(t,e,n){var r,i=this._getItemHeight(),o=(i-this._triggerRect.height)/2,a=Math.floor(256/i);if(0===this._scrollTop)r=t*i;else if(this._scrollTop===n){r=(t-(this._getItemCount()-a))*i+(i-(this._getItemCount()*i-256)%i)}else r=e-i/2;return-1*r-o},o.prototype._checkOverlayWithinViewport=function(t){var e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),r=this._triggerRect.top-8,i=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*e,256)-o-this._triggerRect.height;a>i?this._adjustPanelUp(a,i):o>r?this._adjustPanelDown(o,r,t):this._transformOrigin=this._getOriginBasedOnOption()},o.prototype._adjustPanelUp=function(t,e){var n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")},o.prototype._adjustPanelDown=function(t,e,n){var r=Math.round(t-e);if(this._scrollTop+=r,this._offsetY+=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")},o.prototype._getOriginBasedOnOption=function(){var t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return"50% "+(Math.abs(this._offsetY)-e+t/2)+"px 0px"},o.prototype._getItemCount=function(){return this.options.length+this.optionGroups.length},o.prototype._getItemHeight=function(){return 3*this._triggerFontSize},o.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},o.prototype.onContainerClick=function(){this.focus(),this.open()},Object.defineProperty(o.prototype,"shouldLabelFloat",{get:function(){return this._panelOpen||!this.empty},enumerable:!0,configurable:!0}),o.decorators=[{type:e.Component,args:[{selector:"mat-select",exportAs:"matSelect",template:'<div cdk-overlay-origin class="mat-select-trigger" aria-hidden="true" (click)="toggle()" #origin="cdkOverlayOrigin" #trigger><div class="mat-select-value" [ngSwitch]="empty"><span class="mat-select-placeholder" *ngSwitchCase="true">{{placeholder || \' \'}}</span> <span class="mat-select-value-text" *ngSwitchCase="false" [ngSwitch]="!!customTrigger"><span *ngSwitchDefault>{{triggerValue}}</span><ng-content select="mat-select-trigger" *ngSwitchCase="true"></ng-content></span></div><div class="mat-select-arrow-wrapper"><div class="mat-select-arrow"></div></div></div><ng-template cdk-connected-overlay hasBackdrop backdropClass="cdk-overlay-transparent-backdrop" [scrollStrategy]="_scrollStrategy" [origin]="origin" [open]="panelOpen" [positions]="_positions" [minWidth]="_triggerRect?.width" [offsetY]="_offsetY" (backdropClick)="close()" (attach)="_onAttached()" (detach)="close()"><div #panel class="mat-select-panel {{ _getPanelTheme() }}" [ngClass]="panelClass" [@transformPanel]="multiple ? \'showing-multiple\' : \'showing\'" (@transformPanel.done)="_onPanelDone()" [style.transformOrigin]="_transformOrigin" [class.mat-select-panel-done-animating]="_panelDoneAnimating" [style.font-size.px]="_triggerFontSize"><div class="mat-select-content" [@fadeInContent]="\'showing\'" (@fadeInContent.done)="_onFadeInDone()"><ng-content></ng-content></div></div></ng-template>',styles:[".mat-select{display:inline-block;width:100%;outline:0}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%}.mat-select-panel:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}@media screen and (-ms-high-contrast:active){.mat-select-panel{outline:solid 1px}}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;transition:none}"],inputs:["disabled","disableRipple","tabIndex"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,host:{role:"listbox","[attr.id]":"id","[attr.tabindex]":"tabIndex","[attr.aria-label]":"_ariaLabel","[attr.aria-labelledby]":"ariaLabelledby","[attr.aria-required]":"required.toString()","[attr.aria-disabled]":"disabled.toString()","[attr.aria-invalid]":"errorState","[attr.aria-owns]":"panelOpen ? _optionIds : null","[attr.aria-multiselectable]":"multiple","[attr.aria-describedby]":"_ariaDescribedby || null","[attr.aria-activedescendant]":"_getAriaActiveDescendant()","[class.mat-select-disabled]":"disabled","[class.mat-select-invalid]":"errorState","[class.mat-select-required]":"required",class:"mat-select","(keydown)":"_handleKeydown($event)","(focus)":"_onFocus()","(blur)":"_onBlur()"},animations:[zi.transformPanel,zi.fadeInContent],providers:[{provide:Kt,useExisting:o},{provide:Ut,useExisting:o}]}]}],o.ctorParameters=function(){return[{type:u.ViewportRuler},{type:e.ChangeDetectorRef},{type:e.NgZone},{type:_t},{type:e.ElementRef},{type:n.Directionality,decorators:[{type:e.Optional}]},{type:y.NgForm,decorators:[{type:e.Optional}]},{type:y.FormGroupDirective,decorators:[{type:e.Optional}]},{type:ae,decorators:[{type:e.Optional}]},{type:y.NgControl,decorators:[{type:e.Self},{type:e.Optional}]},{type:void 0,decorators:[{type:e.Attribute,args:["tabindex"]}]},{type:void 0,decorators:[{type:e.Inject,args:[Yi]}]}]},o.propDecorators={trigger:[{type:e.ViewChild,args:["trigger"]}],panel:[{type:e.ViewChild,args:["panel"]}],overlayDir:[{type:e.ViewChild,args:[u.CdkConnectedOverlay]}],options:[{type:e.ContentChildren,args:[Ht,{descendants:!0}]}],optionGroups:[{type:e.ContentChildren,args:[Ft]}],panelClass:[{type:e.Input}],customTrigger:[{type:e.ContentChild,args:[Ji]}],placeholder:[{type:e.Input}],required:[{type:e.Input}],multiple:[{type:e.Input}],compareWith:[{type:e.Input}],value:[{type:e.Input}],ariaLabel:[{type:e.Input,args:["aria-label"]}],ariaLabelledby:[{type:e.Input,args:["aria-labelledby"]}],errorStateMatcher:[{type:e.Input}],id:[{type:e.Input}],openedChange:[{type:e.Output}],_openedStream:[{type:e.Output,args:["opened"]}],_closedStream:[{type:e.Output,args:["closed"]}],onOpen:[{type:e.Output}],onClose:[{type:e.Output}],selectionChange:[{type:e.Output}],change:[{type:e.Output}],valueChange:[{type:e.Output}]},o}(Zi),eo=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule,u.OverlayModule,zt,Z],exports:[se,to,Ji,zt,Z],declarations:[to,Ji],providers:[$i,_t]}]}],t.ctorParameters=function(){return[]},t}(),no={tooltipState:_.trigger("state",[_.state("initial, void, hidden",_.style({transform:"scale(0)"})),_.state("visible",_.style({transform:"scale(1)"})),_.transition("* => visible",_.animate("150ms cubic-bezier(0.0, 0.0, 0.2, 1)")),_.transition("* => hidden",_.animate("150ms cubic-bezier(0.4, 0.0, 1, 1)"))])},ro=20,io="mat-tooltip-panel";function oo(t){return Error('Tooltip position "'+t+'" is invalid.')}var ao=new e.InjectionToken("mat-tooltip-scroll-strategy");function so(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:ro})}}var co={provide:ao,deps:[u.Overlay],useFactory:so},lo=new e.InjectionToken("mat-tooltip-default-options"),uo=function(){function t(t,e,n,r,i,o,a,s,c,l,u){var p=this;this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=r,this._ngZone=i,this._platform=o,this._ariaDescriber=a,this._focusMonitor=s,this._scrollStrategy=c,this._dir=l,this._defaultOptions=u,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions?this._defaultOptions.showDelay:0,this.hideDelay=this._defaultOptions?this._defaultOptions.hideDelay:0,this._message="",this._manualListeners=new Map;var h=e.nativeElement;o.IOS?"INPUT"!==h.nodeName&&"TEXTAREA"!==h.nodeName||(h.style.webkitUserSelect=h.style.userSelect=""):(this._manualListeners.set("mouseenter",function(){return p.show()}),this._manualListeners.set("mouseleave",function(){return p.hide()}),this._manualListeners.forEach(function(t,n){return e.nativeElement.addEventListener(n,t)})),s.monitor(h,!1).subscribe(function(t){t?"program"!==t&&i.run(function(){return p.show()}):i.run(function(){return p.hide(0)})})}return Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(t){t!==this._position&&(this._position=t,this._tooltipInstance&&this._disposeTooltip())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=r.coerceBooleanProperty(t),this._disabled&&this.hide(0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_positionDeprecated",{get:function(){return this._position},set:function(t){this._position=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){return this._message},set:function(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?(""+t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._updateTooltipMessage(),this._ariaDescriber.describe(this._elementRef.nativeElement,this.message))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltipClass",{get:function(){return this._tooltipClass},set:function(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){var t=this;this._tooltipInstance&&this._disposeTooltip(),this._platform.IOS||(this._manualListeners.forEach(function(e,n){t._elementRef.nativeElement.removeEventListener(n,e)}),this._manualListeners.clear()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.message),this._focusMonitor.stopMonitoring(this._elementRef.nativeElement)},t.prototype.show=function(t){void 0===t&&(t=this.showDelay),!this.disabled&&this.message&&(this._tooltipInstance||this._createTooltip(),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(this._position,t))},t.prototype.hide=function(t){void 0===t&&(t=this.hideDelay),this._tooltipInstance&&this._tooltipInstance.hide(t)},t.prototype.toggle=function(){this._isTooltipVisible()?this.hide():this.show()},t.prototype._isTooltipVisible=function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()},t.prototype._handleKeydown=function(t){this._isTooltipVisible()&&t.keyCode===c.ESCAPE&&(t.stopPropagation(),this.hide(0))},t.prototype._handleTouchend=function(){this.hide(this._defaultOptions?this._defaultOptions.touchendHideDelay:1500)},t.prototype._createTooltip=function(){var t=this,e=this._createOverlay(),n=new p.ComponentPortal(po,this._viewContainerRef);this._tooltipInstance=e.attach(n).instance,w.merge(this._tooltipInstance.afterHidden(),e.detachments()).subscribe(function(){t._tooltipInstance&&t._disposeTooltip()})},t.prototype._createOverlay=function(){var t=this,e=this._getOrigin(),n=this._getOverlayPosition(),r=this._overlay.position().connectedTo(this._elementRef,e.main,n.main).withFallbackPosition(e.fallback,n.fallback),i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef);r.withScrollableContainers(i),r.onPositionChange.subscribe(function(e){t._tooltipInstance&&(e.scrollableViewProperties.isOverlayClipped&&t._tooltipInstance.isVisible()?t._ngZone.run(function(){return t.hide(0)}):t._tooltipInstance._setTransformOrigin(e.connectionPair))});var o=new u.OverlayConfig({direction:this._dir?this._dir.value:"ltr",positionStrategy:r,panelClass:io,scrollStrategy:this._scrollStrategy()});return this._overlayRef=this._overlay.create(o),this._overlayRef},t.prototype._disposeTooltip=function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._tooltipInstance=null},t.prototype._getOrigin=function(){var t,e=!this._dir||"ltr"==this._dir.value;if("above"==this.position||"below"==this.position)t={originX:"center",originY:"above"==this.position?"top":"bottom"};else if("left"==this.position||"before"==this.position&&e||"after"==this.position&&!e)t={originX:"start",originY:"center"};else{if(!("right"==this.position||"after"==this.position&&e||"before"==this.position&&!e))throw oo(this.position);t={originX:"end",originY:"center"}}var n=this._invertPosition(t.originX,t.originY);return{main:t,fallback:{originX:n.x,originY:n.y}}},t.prototype._getOverlayPosition=function(){var t,e=!this._dir||"ltr"==this._dir.value;if("above"==this.position)t={overlayX:"center",overlayY:"bottom"};else if("below"==this.position)t={overlayX:"center",overlayY:"top"};else if("left"==this.position||"before"==this.position&&e||"after"==this.position&&!e)t={overlayX:"end",overlayY:"center"};else{if(!("right"==this.position||"after"==this.position&&e||"before"==this.position&&!e))throw oo(this.position);t={overlayX:"start",overlayY:"center"}}var n=this._invertPosition(t.overlayX,t.overlayY);return{main:t,fallback:{overlayX:n.x,overlayY:n.y}}},t.prototype._updateTooltipMessage=function(){var t=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(d.take(1)).subscribe(function(){t._tooltipInstance&&t._overlayRef.updatePosition()}))},t.prototype._setTooltipClass=function(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())},t.prototype._invertPosition=function(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}},t.decorators=[{type:e.Directive,args:[{selector:"[matTooltip]",exportAs:"matTooltip",host:{"(longpress)":"show()","(keydown)":"_handleKeydown($event)","(touchend)":"_handleTouchend()"}}]}],t.ctorParameters=function(){return[{type:u.Overlay},{type:e.ElementRef},{type:F.ScrollDispatcher},{type:e.ViewContainerRef},{type:e.NgZone},{type:s.Platform},{type:l.AriaDescriber},{type:l.FocusMonitor},{type:void 0,decorators:[{type:e.Inject,args:[ao]}]},{type:n.Directionality,decorators:[{type:e.Optional}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[lo]}]}]},t.propDecorators={position:[{type:e.Input,args:["matTooltipPosition"]}],disabled:[{type:e.Input,args:["matTooltipDisabled"]}],_positionDeprecated:[{type:e.Input,args:["tooltip-position"]}],showDelay:[{type:e.Input,args:["matTooltipShowDelay"]}],hideDelay:[{type:e.Input,args:["matTooltipHideDelay"]}],message:[{type:e.Input,args:["matTooltip"]}],tooltipClass:[{type:e.Input,args:["matTooltipClass"]}]},t}(),po=function(){function t(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._transformOrigin="bottom",this._onHide=new i.Subject}return t.prototype.show=function(t,e){var n=this;this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._position=t,this._showTimeoutId=setTimeout(function(){n._visibility="visible",n._markForCheck()},e)},t.prototype.hide=function(t){var e=this;this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){e._visibility="hidden",e._markForCheck()},t)},t.prototype.afterHidden=function(){return this._onHide.asObservable()},t.prototype.isVisible=function(){return"visible"===this._visibility},t.prototype._setTransformOrigin=function(t){var e="X"==("above"===this._position||"below"===this._position?"Y":"X")?t.overlayX:t.overlayY;if("top"===e||"bottom"===e)this._transformOrigin=e;else if("start"===e)this._transformOrigin="left";else{if("end"!==e)throw oo(this._position);this._transformOrigin="right"}},t.prototype._animationStart=function(){this._closeOnInteraction=!1},t.prototype._animationDone=function(t){var e=this,n=t.toState;"hidden"!==n||this.isVisible()||this._onHide.next(),"visible"!==n&&"hidden"!==n||Promise.resolve().then(function(){return e._closeOnInteraction=!0})},t.prototype._handleBodyInteraction=function(){this._closeOnInteraction&&this.hide(0)},t.prototype._markForCheck=function(){this._changeDetectorRef.markForCheck()},t.decorators=[{type:e.Component,args:[{selector:"mat-tooltip-component",template:'<div class="mat-tooltip" [ngClass]="tooltipClass" [style.transform-origin]="_transformOrigin" [@state]="_visibility" (@state.start)="_animationStart()" (@state.done)="_animationDone($event)">{{message}}</div>',styles:[".mat-tooltip-panel{pointer-events:none!important}.mat-tooltip{color:#fff;border-radius:2px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px}@media screen and (-ms-high-contrast:active){.mat-tooltip{outline:solid 1px}}"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,animations:[no.tooltipState],host:{"[style.zoom]":'_visibility === "visible" ? 1 : null',"(body:click)":"this._handleBodyInteraction()","aria-hidden":"true"}}]}],t.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]},t}(),ho={showDelay:0,hideDelay:0,touchendHideDelay:1500},fo=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule,u.OverlayModule,Z,s.PlatformModule,l.A11yModule],exports:[uo,po,Z],declarations:[uo,po],entryComponents:[po],providers:[co,l.ARIA_DESCRIBER_PROVIDER,{provide:lo,useValue:ho}]}]}],t.ctorParameters=function(){return[]},t}(),mo=function(){function t(){this.changes=new i.Subject,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.getRangeLabel=function(t,e,n){if(0==n||0==e)return"0 of "+n;var r=t*e;return r+1+" - "+(r<(n=Math.max(n,0))?Math.min(r+e,n):r+e)+" of "+n}}return t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}();function go(t){return t||new mo}var yo={provide:mo,deps:[[new e.Optional,new e.SkipSelf,mo]],useFactory:go},vo=function(){return function(){}}(),bo=function(){function t(t,n){var r=this;this._intl=t,this._changeDetectorRef=n,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this.page=new e.EventEmitter,this._intlChanges=t.changes.subscribe(function(){return r._changeDetectorRef.markForCheck()})}return Object.defineProperty(t.prototype,"pageIndex",{get:function(){return this._pageIndex},set:function(t){this._pageIndex=r.coerceNumberProperty(t),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},set:function(t){this._length=r.coerceNumberProperty(t),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageSize",{get:function(){return this._pageSize},set:function(t){this._pageSize=r.coerceNumberProperty(t),this._updateDisplayedPageSizeOptions()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageSizeOptions",{get:function(){return this._pageSizeOptions},set:function(t){this._pageSizeOptions=(t||[]).map(function(t){return r.coerceNumberProperty(t)}),this._updateDisplayedPageSizeOptions()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._initialized=!0,this._updateDisplayedPageSizeOptions()},t.prototype.ngOnDestroy=function(){this._intlChanges.unsubscribe()},t.prototype.nextPage=function(){this.hasNextPage()&&(this.pageIndex++,this._emitPageEvent())},t.prototype.previousPage=function(){this.hasPreviousPage()&&(this.pageIndex--,this._emitPageEvent())},t.prototype.hasPreviousPage=function(){return this.pageIndex>=1&&0!=this.pageSize},t.prototype.hasNextPage=function(){var t=Math.ceil(this.length/this.pageSize)-1;return this.pageIndex<t&&0!=this.pageSize},t.prototype._changePageSize=function(t){var e=this.pageIndex*this.pageSize;this.pageIndex=Math.floor(e/t)||0,this.pageSize=t,this._emitPageEvent()},t.prototype._updateDisplayedPageSizeOptions=function(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1==this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort(function(t,e){return t-e}),this._changeDetectorRef.markForCheck())},t.prototype._emitPageEvent=function(){this.page.next({pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})},t.decorators=[{type:e.Component,args:[{selector:"mat-paginator",exportAs:"matPaginator",template:'<div class="mat-paginator-container"><div class="mat-paginator-page-size"><div class="mat-paginator-page-size-label">{{_intl.itemsPerPageLabel}}</div><mat-form-field *ngIf="_displayedPageSizeOptions.length > 1" class="mat-paginator-page-size-select"><mat-select [value]="pageSize" [aria-label]="_intl.itemsPerPageLabel" (change)="_changePageSize($event.value)"><mat-option *ngFor="let pageSizeOption of _displayedPageSizeOptions" [value]="pageSizeOption">{{pageSizeOption}}</mat-option></mat-select></mat-form-field><div *ngIf="_displayedPageSizeOptions.length <= 1">{{pageSize}}</div></div><div class="mat-paginator-range-actions"><div class="mat-paginator-range-label">{{_intl.getRangeLabel(pageIndex, pageSize, length)}}</div><button mat-icon-button type="button" class="mat-paginator-navigation-previous" (click)="previousPage()" [attr.aria-label]="_intl.previousPageLabel" [matTooltip]="_intl.previousPageLabel" [matTooltipPosition]="\'above\'" [disabled]="!hasPreviousPage()"><div class="mat-paginator-increment"></div></button> <button mat-icon-button type="button" class="mat-paginator-navigation-next" (click)="nextPage()" [attr.aria-label]="_intl.nextPageLabel" [matTooltip]="_intl.nextPageLabel" [matTooltipPosition]="\'above\'" [disabled]="!hasNextPage()"><div class="mat-paginator-decrement"></div></button></div></div>',styles:[".mat-paginator{display:block}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;min-height:56px;padding:0 8px;flex-wrap:wrap-reverse}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-increment-button+.mat-paginator-increment-button{margin:0 0 0 8px}[dir=rtl] .mat-paginator-increment-button+.mat-paginator-increment-button{margin:0 8px 0 0}.mat-paginator-decrement,.mat-paginator-increment{width:8px;height:8px}.mat-paginator-decrement,[dir=rtl] .mat-paginator-increment{transform:rotate(45deg)}.mat-paginator-increment,[dir=rtl] .mat-paginator-decrement{transform:rotate(225deg)}.mat-paginator-decrement{margin-left:12px}[dir=rtl] .mat-paginator-decrement{margin-right:12px}.mat-paginator-increment{margin-left:16px}[dir=rtl] .mat-paginator-increment{margin-right:16px}.mat-paginator-range-actions{display:flex;align-items:center;min-height:48px}"],host:{class:"mat-paginator"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],t.ctorParameters=function(){return[{type:mo},{type:e.ChangeDetectorRef}]},t.propDecorators={pageIndex:[{type:e.Input}],length:[{type:e.Input}],pageSize:[{type:e.Input}],pageSizeOptions:[{type:e.Input}],page:[{type:e.Output}]},t}(),_o=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule,Te,eo,fo],exports:[bo],declarations:[bo],providers:[yo]}]}],t.ctorParameters=function(){return[]},t}(),wo=function(){function t(){this.color="primary",this._value=0,this._bufferValue=0,this.mode="determinate"}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value=Co(t||0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bufferValue",{get:function(){return this._bufferValue},set:function(t){this._bufferValue=Co(t||0)},enumerable:!0,configurable:!0}),t.prototype._primaryTransform=function(){return{transform:"scaleX("+this.value/100+")"}},t.prototype._bufferTransform=function(){if("buffer"==this.mode)return{transform:"scaleX("+this.bufferValue/100+")"}},t.decorators=[{type:e.Component,args:[{selector:"mat-progress-bar",exportAs:"matProgressBar",host:{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","[attr.aria-valuenow]":"value","[attr.mode]":"mode","[class.mat-primary]":'color == "primary"',"[class.mat-accent]":'color == "accent"',"[class.mat-warn]":'color == "warn"',class:"mat-progress-bar"},template:'<div class="mat-progress-bar-background mat-progress-bar-element"></div><div class="mat-progress-bar-buffer mat-progress-bar-element" [ngStyle]="_bufferTransform()"></div><div class="mat-progress-bar-primary mat-progress-bar-fill mat-progress-bar-element" [ngStyle]="_primaryTransform()"></div><div class="mat-progress-bar-secondary mat-progress-bar-fill mat-progress-bar-element"></div>',styles:[".mat-progress-bar{display:block;height:5px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{background-repeat:repeat-x;background-size:10px 4px;display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:'';display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2s infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2s infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2s infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2s infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(.5,0,.70173,.49582);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(.30244,.38135,.55,.95635);transform:translateX(83.67142%)}100%{transform:translateX(200.61106%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(.08)}36.65%{animation-timing-function:cubic-bezier(.33473,.12482,.78584,1);transform:scaleX(.08)}69.15%{animation-timing-function:cubic-bezier(.06,.11,.6,1);transform:scaleX(.66148)}100%{transform:scaleX(.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(.15,0,.51506,.40969);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(.31033,.28406,.8,.73371);transform:translateX(37.65191%)}48.35%{animation-timing-function:cubic-bezier(.4,.62704,.6,.90203);transform:translateX(84.38617%)}100%{transform:translateX(160.27778%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(.15,0,.51506,.40969);transform:scaleX(.08)}19.15%{animation-timing-function:cubic-bezier(.31033,.28406,.8,.73371);transform:scaleX(.4571)}44.15%{animation-timing-function:cubic-bezier(.4,.62704,.6,.90203);transform:scaleX(.72796)}100%{transform:scaleX(.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-10px)}}"],changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],t.ctorParameters=function(){return[]},t.propDecorators={color:[{type:e.Input}],value:[{type:e.Input}],bufferValue:[{type:e.Input}],mode:[{type:e.Input}]},t}();function Co(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=100),Math.max(e,Math.min(n,t))}var xo=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule,Z],exports:[wo,Z],declarations:[wo]}]}],t.ctorParameters=function(){return[]},t}(),Eo=100,So=function(){return function(t){this._elementRef=t}}(),ko=tt(So,"primary"),Oo=function(t){function n(e,n,r){var i=t.call(this,e)||this;i._elementRef=e,i._document=r,i._value=0,i._fallbackAnimation=!1,i._elementSize=Eo,i._diameter=Eo,i.mode="determinate",i._fallbackAnimation=n.EDGE||n.TRIDENT;var o="mat-progress-spinner-indeterminate"+(i._fallbackAnimation?"-fallback":"")+"-animation";return e.nativeElement.classList.add(o),i}return Y(n,t),Object.defineProperty(n.prototype,"diameter",{get:function(){return this._diameter},set:function(t){this._diameter=r.coerceNumberProperty(t),this._fallbackAnimation||n.diameters.has(this._diameter)||this._attachStyleNode()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"strokeWidth",{get:function(){return this._strokeWidth||this.diameter/10},set:function(t){this._strokeWidth=r.coerceNumberProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return"determinate"===this.mode?this._value:0},set:function(t){this._value=Math.max(0,Math.min(100,r.coerceNumberProperty(t)))},enumerable:!0,configurable:!0}),n.prototype.ngOnChanges=function(t){(t.strokeWidth||t.diameter)&&(this._elementSize=this._diameter+Math.max(this.strokeWidth-10,0))},Object.defineProperty(n.prototype,"_circleRadius",{get:function(){return(this.diameter-10)/2},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_viewBox",{get:function(){var t=2*this._circleRadius+this.strokeWidth;return"0 0 "+t+" "+t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_strokeCircumference",{get:function(){return 2*Math.PI*this._circleRadius},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_strokeDashOffset",{get:function(){return"determinate"===this.mode?this._strokeCircumference*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._strokeCircumference:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_circleStrokeWidth",{get:function(){return this.strokeWidth/this._elementSize*100},enumerable:!0,configurable:!0}),n.prototype._attachStyleNode=function(){var t=n.styleTag;t||(t=this._document.createElement("style"),this._document.head.appendChild(t),n.styleTag=t),t&&t.sheet&&t.sheet.insertRule(this._getAnimationText(),0),n.diameters.add(this.diameter)},n.prototype._getAnimationText=function(){return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n    0%      { stroke-dashoffset: START_VALUE;  transform: rotate(0); }\n    12.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(0); }\n    12.51%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(72.5deg); }\n    25%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(72.5deg); }\n\n    25.1%   { stroke-dashoffset: START_VALUE;  transform: rotate(270deg); }\n    37.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(270deg); }\n    37.51%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(161.5deg); }\n    50%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(161.5deg); }\n\n    50.01%  { stroke-dashoffset: START_VALUE;  transform: rotate(180deg); }\n    62.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(180deg); }\n    62.51%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(251.5deg); }\n    75%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(251.5deg); }\n\n    75.01%  { stroke-dashoffset: START_VALUE;  transform: rotate(90deg); }\n    87.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(90deg); }\n    87.51%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(341.5deg); }\n    100%    { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(341.5deg); }\n  }\n".replace(/START_VALUE/g,""+.95*this._strokeCircumference).replace(/END_VALUE/g,""+.2*this._strokeCircumference).replace(/DIAMETER/g,""+this.diameter)},n.diameters=new Set([Eo]),n.styleTag=null,n.decorators=[{type:e.Component,args:[{selector:"mat-progress-spinner",exportAs:"matProgressSpinner",host:{role:"progressbar",class:"mat-progress-spinner","[style.width.px]":"_elementSize","[style.height.px]":"_elementSize","[attr.aria-valuemin]":'mode === "determinate" ? 0 : null',"[attr.aria-valuemax]":'mode === "determinate" ? 100 : null',"[attr.aria-valuenow]":"value","[attr.mode]":"mode"},inputs:["color"],template:'<svg [style.width.px]="_elementSize" [style.height.px]="_elementSize" [attr.viewBox]="_viewBox" preserveAspectRatio="xMidYMid meet" focusable="false"><circle cx="50%" cy="50%" [attr.r]="_circleRadius" [style.animation-name]="\'mat-progress-spinner-stroke-rotate-\' + diameter" [style.stroke-dashoffset.px]="_strokeDashOffset" [style.stroke-dasharray.px]="_strokeCircumference" [style.stroke-width.%]="_circleStrokeWidth"></circle></svg>',styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2s linear infinite}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4s;animation-timing-function:cubic-bezier(.35,0,.25,1);animation-iteration-count:infinite}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10s cubic-bezier(.87,.03,.33,1) infinite}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.60617px;transform:rotate(0)}12.5%{stroke-dashoffset:56.54867px;transform:rotate(0)}12.51%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(72.5deg)}25.1%{stroke-dashoffset:268.60617px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.54867px;transform:rotate(270deg)}37.51%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(161.5deg)}50.01%{stroke-dashoffset:268.60617px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.54867px;transform:rotate(180deg)}62.51%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(251.5deg)}75.01%{stroke-dashoffset:268.60617px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.54867px;transform:rotate(90deg)}87.51%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}"],changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],n.ctorParameters=function(){return[{type:e.ElementRef},{type:s.Platform},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[a.DOCUMENT]}]}]},n.propDecorators={diameter:[{type:e.Input}],strokeWidth:[{type:e.Input}],mode:[{type:e.Input}],value:[{type:e.Input}]},n}(ko),Po=function(t){function n(e,n,r){var i=t.call(this,e,n,r)||this;return i.mode="indeterminate",i}return Y(n,t),n.decorators=[{type:e.Component,args:[{selector:"mat-spinner",host:{role:"progressbar",mode:"indeterminate",class:"mat-spinner mat-progress-spinner","[style.width.px]":"_elementSize","[style.height.px]":"_elementSize"},inputs:["color"],template:'<svg [style.width.px]="_elementSize" [style.height.px]="_elementSize" [attr.viewBox]="_viewBox" preserveAspectRatio="xMidYMid meet" focusable="false"><circle cx="50%" cy="50%" [attr.r]="_circleRadius" [style.animation-name]="\'mat-progress-spinner-stroke-rotate-\' + diameter" [style.stroke-dashoffset.px]="_strokeDashOffset" [style.stroke-dasharray.px]="_strokeCircumference" [style.stroke-width.%]="_circleStrokeWidth"></circle></svg>',styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2s linear infinite}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4s;animation-timing-function:cubic-bezier(.35,0,.25,1);animation-iteration-count:infinite}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10s cubic-bezier(.87,.03,.33,1) infinite}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.60617px;transform:rotate(0)}12.5%{stroke-dashoffset:56.54867px;transform:rotate(0)}12.51%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(72.5deg)}25.1%{stroke-dashoffset:268.60617px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.54867px;transform:rotate(270deg)}37.51%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(161.5deg)}50.01%{stroke-dashoffset:268.60617px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.54867px;transform:rotate(180deg)}62.51%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(251.5deg)}75.01%{stroke-dashoffset:268.60617px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.54867px;transform:rotate(90deg)}87.51%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}"],changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],n.ctorParameters=function(){return[{type:e.ElementRef},{type:s.Platform},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[a.DOCUMENT]}]}]},n}(Oo),Ao=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[Z,s.PlatformModule],exports:[Oo,Po,Z],declarations:[Oo,Po]}]}],t.ctorParameters=function(){return[]},t}(),To=0,Mo={provide:y.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return No}),multi:!0},Io=function(){return function(){}}(),Ro=function(){return function(){}}(),Do=J(Ro),No=function(t){function n(n){var r=t.call(this)||this;return r._changeDetector=n,r._value=null,r._name="mat-radio-group-"+To++,r._selected=null,r._isInitialized=!1,r._labelPosition="after",r._disabled=!1,r._required=!1,r._controlValueAccessorChangeFn=function(){},r.onTouched=function(){},r.change=new e.EventEmitter,r}return Y(n,t),Object.defineProperty(n.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t,this._updateRadioButtonNames()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"align",{get:function(){return"after"==this.labelPosition?"start":"end"},set:function(t){this.labelPosition="start"==t?"after":"before"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"labelPosition",{get:function(){return this._labelPosition},set:function(t){this._labelPosition="before"==t?"before":"after",this._markRadiosForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this._value},set:function(t){this._value!=t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())},enumerable:!0,configurable:!0}),n.prototype._checkSelectedRadioButton=function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)},Object.defineProperty(n.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=r.coerceBooleanProperty(t),this._markRadiosForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"required",{get:function(){return this._required},set:function(t){this._required=r.coerceBooleanProperty(t),this._markRadiosForCheck()},enumerable:!0,configurable:!0}),n.prototype.ngAfterContentInit=function(){this._isInitialized=!0},n.prototype._touch=function(){this.onTouched&&this.onTouched()},n.prototype._updateRadioButtonNames=function(){var t=this;this._radios&&this._radios.forEach(function(e){e.name=t.name})},n.prototype._updateSelectedRadioFromValue=function(){var t=this,e=null!=this._selected&&this._selected.value==this._value;null==this._radios||e||(this._selected=null,this._radios.forEach(function(e){e.checked=t.value==e.value,e.checked&&(t._selected=e)}))},n.prototype._emitChangeEvent=function(){if(this._isInitialized){var t=new Io;t.source=this._selected,t.value=this._value,this.change.emit(t)}},n.prototype._markRadiosForCheck=function(){this._radios&&this._radios.forEach(function(t){return t._markForCheck()})},n.prototype.writeValue=function(t){this.value=t,this._changeDetector.markForCheck()},n.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},n.prototype.registerOnTouched=function(t){this.onTouched=t},n.prototype.setDisabledState=function(t){this.disabled=t,this._changeDetector.markForCheck()},n.decorators=[{type:e.Directive,args:[{selector:"mat-radio-group",exportAs:"matRadioGroup",providers:[Mo],host:{role:"radiogroup",class:"mat-radio-group"},inputs:["disabled"]}]}],n.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]},n.propDecorators={change:[{type:e.Output}],_radios:[{type:e.ContentChildren,args:[e.forwardRef(function(){return Fo}),{descendants:!0}]}],name:[{type:e.Input}],align:[{type:e.Input}],labelPosition:[{type:e.Input}],value:[{type:e.Input}],selected:[{type:e.Input}],disabled:[{type:e.Input}],required:[{type:e.Input}]},n}(Do),Lo=function(){return function(t){this._elementRef=t}}(),jo=tt(et(Lo),"accent"),Fo=function(t){function n(n,r,i,o,a){var s=t.call(this,r)||this;return s._changeDetector=i,s._focusMonitor=o,s._radioDispatcher=a,s._uniqueId="mat-radio-"+ ++To,s.id=s._uniqueId,s.change=new e.EventEmitter,s._checked=!1,s._value=null,s._rippleConfig={centered:!0,radius:23,speedFactor:1.5},s._removeUniqueSelectionListener=function(){},s.radioGroup=n,s._removeUniqueSelectionListener=a.listen(function(t,e){t!=s.id&&e==s.name&&(s.checked=!1)}),s}return Y(n,t),Object.defineProperty(n.prototype,"checked",{get:function(){return this._checked},set:function(t){var e=r.coerceBooleanProperty(t);this._checked!=e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!=this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value==this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this._value},set:function(t){this._value!=t&&(this._value=t,null!=this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value==t),this.checked&&(this.radioGroup.selected=this)))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"align",{get:function(){return"after"==this.labelPosition?"start":"end"},set:function(t){this.labelPosition="start"==t?"after":"before"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"labelPosition",{get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(t){this._labelPosition=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"disabled",{get:function(){return this._disabled||null!=this.radioGroup&&this.radioGroup.disabled},set:function(t){this._disabled=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"required",{get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(t){this._required=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"inputId",{get:function(){return(this.id||this._uniqueId)+"-input"},enumerable:!0,configurable:!0}),n.prototype.focus=function(){this._focusMonitor.focusVia(this._inputElement.nativeElement,"keyboard")},n.prototype._markForCheck=function(){this._changeDetector.markForCheck()},n.prototype.ngOnInit=function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)},n.prototype.ngAfterViewInit=function(){var t=this;this._focusMonitor.monitor(this._inputElement.nativeElement,!1).subscribe(function(e){return t._onInputFocusChange(e)})},n.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._inputElement.nativeElement),this._removeUniqueSelectionListener()},n.prototype._emitChangeEvent=function(){var t=new Io;t.source=this,t.value=this._value,this.change.emit(t)},n.prototype._isRippleDisabled=function(){return this.disableRipple||this.disabled},n.prototype._onInputClick=function(t){t.stopPropagation()},n.prototype._onInputChange=function(t){t.stopPropagation();var e=this.radioGroup&&this.value!=this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),this.radioGroup._touch(),e&&this.radioGroup._emitChangeEvent())},n.prototype._onInputFocusChange=function(t){this._focusRipple||"keyboard"!==t?t||(this.radioGroup&&this.radioGroup._touch(),this._focusRipple&&(this._focusRipple.fadeOut(),this._focusRipple=null)):this._focusRipple=this._ripple.launch(0,0,K({persistent:!0},this._rippleConfig))},n.decorators=[{type:e.Component,args:[{selector:"mat-radio-button",template:'<label [attr.for]="inputId" class="mat-radio-label" #label><div class="mat-radio-container"><div class="mat-radio-outer-circle"></div><div class="mat-radio-inner-circle"></div><div mat-ripple class="mat-radio-ripple" [matRippleTrigger]="label" [matRippleDisabled]="_isRippleDisabled()" [matRippleCentered]="_rippleConfig.centered" [matRippleRadius]="_rippleConfig.radius" [matRippleSpeedFactor]="_rippleConfig.speedFactor"></div></div><input #input class="mat-radio-input cdk-visually-hidden" type="radio" [id]="inputId" [checked]="checked" [disabled]="disabled" [attr.name]="name" [required]="required" [attr.aria-label]="ariaLabel" [attr.aria-labelledby]="ariaLabelledby" (change)="_onInputChange($event)" (click)="_onInputClick($event)"><div class="mat-radio-label-content" [class.mat-radio-label-before]="labelPosition == \'before\'"><span style="display:none">&nbsp;</span><ng-content></ng-content></div></label>',styles:[".mat-radio-button{display:inline-block}.mat-radio-label{cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(.001)}.mat-radio-checked .mat-radio-inner-circle{transform:scale(.5)}.mat-radio-label-content{display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-ripple{position:absolute;left:-15px;top:-15px;height:50px;width:50px;z-index:1;pointer-events:none}"],inputs:["color","disableRipple"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,exportAs:"matRadioButton",host:{class:"mat-radio-button","[class.mat-radio-checked]":"checked","[class.mat-radio-disabled]":"disabled","[attr.id]":"id","(focus)":"_inputElement.nativeElement.focus()"},changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[{type:No,decorators:[{type:e.Optional}]},{type:e.ElementRef},{type:e.ChangeDetectorRef},{type:l.FocusMonitor},{type:x.UniqueSelectionDispatcher}]},n.propDecorators={id:[{type:e.Input}],name:[{type:e.Input}],ariaLabel:[{type:e.Input,args:["aria-label"]}],ariaLabelledby:[{type:e.Input,args:["aria-labelledby"]}],checked:[{type:e.Input}],value:[{type:e.Input}],align:[{type:e.Input}],labelPosition:[{type:e.Input}],disabled:[{type:e.Input}],required:[{type:e.Input}],change:[{type:e.Output}],_ripple:[{type:e.ViewChild,args:[Mt]}],_inputElement:[{type:e.ViewChild,args:["input"]}]},n}(jo),Vo=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule,It,Z,l.A11yModule],exports:[No,Fo,Z],providers:[x.UNIQUE_SELECTION_DISPATCHER_PROVIDER],declarations:[No,Fo]}]}],t.ctorParameters=function(){return[]},t}(),Bo={transformDrawer:_.trigger("transform",[_.state("open, open-instant",_.style({transform:"translate3d(0, 0, 0)",visibility:"visible"})),_.state("void",_.style({visibility:"hidden"})),_.transition("void => open-instant",_.animate("0ms")),_.transition("void <=> open, open-instant => void",_.animate("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function Uo(t){throw Error("A drawer was already declared for 'position=\""+t+"\"'")}var Ho=function(){return function(t,e){this.type=t,this.animationFinished=e}}(),zo=new e.InjectionToken("MAT_DRAWER_DEFAULT_AUTOSIZE"),Wo=function(){function t(t,e){this._changeDetectorRef=t,this._container=e,this._margins={left:null,right:null}}return t.prototype.ngAfterContentInit=function(){var t=this;this._container._contentMargins.subscribe(function(e){t._margins=e,t._changeDetectorRef.markForCheck()})},t.decorators=[{type:e.Component,args:[{selector:"mat-drawer-content",template:"<ng-content></ng-content>",host:{class:"mat-drawer-content","[style.margin-left.px]":"_margins.left","[style.margin-right.px]":"_margins.right"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],t.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:qo,decorators:[{type:e.Inject,args:[e.forwardRef(function(){return qo})]}]}]},t}(),Go=function(){function t(t,n,r,o,a){var s=this;this._elementRef=t,this._focusTrapFactory=n,this._focusMonitor=r,this._platform=o,this._doc=a,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new e.EventEmitter,this._animationState="void",this.openedChange=new e.EventEmitter(!0),this.onOpen=this._openedStream,this.onClose=this._closedStream,this.onPositionChanged=new e.EventEmitter,this.onAlignChanged=new e.EventEmitter,this._modeChanged=new i.Subject,this.openedChange.subscribe(function(t){t?(s._doc&&(s._elementFocusedBeforeDrawerWasOpened=s._doc.activeElement),s._isFocusTrapEnabled&&s._focusTrap&&s._trapFocus()):s._restoreFocus()})}return Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onAlignChanged.emit(),this.onPositionChanged.emit())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"align",{get:function(){return this.position},set:function(t){this.position=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this._mode},set:function(t){this._mode=t,this._modeChanged.next()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableClose",{get:function(){return this._disableClose},set:function(t){this._disableClose=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_openedStream",{get:function(){return this.openedChange.pipe(h.filter(function(t){return t}),A.map(function(){}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"openedStart",{get:function(){return this._animationStarted.pipe(h.filter(function(t){return t.fromState!==t.toState&&0===t.toState.indexOf("open")}),A.map(function(){}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_closedStream",{get:function(){return this.openedChange.pipe(h.filter(function(t){return!t}),A.map(function(){}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"closedStart",{get:function(){return this._animationStarted.pipe(h.filter(function(t){return t.fromState!==t.toState&&"void"===t.toState}),A.map(function(){}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_isFocusTrapEnabled",{get:function(){return this.opened&&"side"!==this.mode},enumerable:!0,configurable:!0}),t.prototype._trapFocus=function(){var t=this;this._focusTrap.focusInitialElementWhenReady().then(function(e){e||"function"!=typeof t._elementRef.nativeElement.focus||t._elementRef.nativeElement.focus()})},t.prototype._restoreFocus=function(){var t=this._doc&&this._doc.activeElement;t&&this._elementRef.nativeElement.contains(t)&&(this._elementFocusedBeforeDrawerWasOpened instanceof HTMLElement?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null},t.prototype.ngAfterContentInit=function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._focusTrap.enabled=this._isFocusTrapEnabled},t.prototype.ngAfterContentChecked=function(){this._platform.isBrowser&&(this._enableAnimations=!0)},t.prototype.ngOnDestroy=function(){this._focusTrap&&this._focusTrap.destroy()},Object.defineProperty(t.prototype,"opened",{get:function(){return this._opened},set:function(t){this.toggle(r.coerceBooleanProperty(t))},enumerable:!0,configurable:!0}),t.prototype.open=function(t){return this.toggle(!0,t)},t.prototype.close=function(){return this.toggle(!1)},t.prototype.toggle=function(t,e){var n=this;return void 0===t&&(t=!this.opened),void 0===e&&(e="program"),this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=e):(this._animationState="void",this._restoreFocus()),this._focusTrap&&(this._focusTrap.enabled=this._isFocusTrapEnabled),new Promise(function(t){n.openedChange.pipe(d.take(1)).subscribe(function(e){t(new Ho(e?"open":"close",!0))})})},t.prototype.handleKeydown=function(t){t.keyCode!==c.ESCAPE||this.disableClose||(this.close(),t.stopPropagation())},t.prototype._onAnimationStart=function(t){this._animationStarted.emit(t)},t.prototype._onAnimationEnd=function(t){var e=t.fromState,n=t.toState;(0===n.indexOf("open")&&"void"===e||"void"===n&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)},Object.defineProperty(t.prototype,"_width",{get:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0},enumerable:!0,configurable:!0}),t.decorators=[{type:e.Component,args:[{selector:"mat-drawer",exportAs:"matDrawer",template:"<ng-content></ng-content>",animations:[Bo.transformDrawer],host:{class:"mat-drawer","[@transform]":"_animationState","(@transform.start)":"_onAnimationStart($event)","(@transform.done)":"_onAnimationEnd($event)","(keydown)":"handleKeydown($event)","[attr.align]":"null","[class.mat-drawer-end]":'position === "end"',"[class.mat-drawer-over]":'mode === "over"',"[class.mat-drawer-push]":'mode === "push"',"[class.mat-drawer-side]":'mode === "side"',tabIndex:"-1"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:l.FocusTrapFactory},{type:l.FocusMonitor},{type:s.Platform},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[a.DOCUMENT]}]}]},t.propDecorators={position:[{type:e.Input}],align:[{type:e.Input}],mode:[{type:e.Input}],disableClose:[{type:e.Input}],openedChange:[{type:e.Output}],_openedStream:[{type:e.Output,args:["opened"]}],openedStart:[{type:e.Output}],_closedStream:[{type:e.Output,args:["closed"]}],closedStart:[{type:e.Output}],onOpen:[{type:e.Output,args:["open"]}],onClose:[{type:e.Output,args:["close"]}],onPositionChanged:[{type:e.Output,args:["positionChanged"]}],onAlignChanged:[{type:e.Output,args:["align-changed"]}],opened:[{type:e.Input}]},t}(),qo=function(){function t(t,n,r,o,a){void 0===a&&(a=!1);var s=this;this._dir=t,this._element=n,this._ngZone=r,this._changeDetectorRef=o,this.backdropClick=new e.EventEmitter,this._destroyed=new i.Subject,this._doCheckSubject=new i.Subject,this._contentMargins=new i.Subject,t&&t.change.pipe(N.takeUntil(this._destroyed)).subscribe(function(){s._validateDrawers(),s._updateContentMargins()}),this._autosize=a}return Object.defineProperty(t.prototype,"start",{get:function(){return this._start},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._end},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autosize",{get:function(){return this._autosize},set:function(t){this._autosize=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this._drawers.changes.pipe(v.startWith(null)).subscribe(function(){t._validateDrawers(),t._drawers.forEach(function(e){t._watchDrawerToggle(e),t._watchDrawerPosition(e),t._watchDrawerMode(e)}),(!t._drawers.length||t._isDrawerOpen(t._start)||t._isDrawerOpen(t._end))&&t._updateContentMargins(),t._changeDetectorRef.markForCheck()}),this._doCheckSubject.pipe(V.debounceTime(10),N.takeUntil(this._destroyed)).subscribe(function(){return t._updateContentMargins()})},t.prototype.ngOnDestroy=function(){this._doCheckSubject.complete(),this._destroyed.next(),this._destroyed.complete()},t.prototype.open=function(){this._drawers.forEach(function(t){return t.open()})},t.prototype.close=function(){this._drawers.forEach(function(t){return t.close()})},t.prototype.ngDoCheck=function(){var t=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return t._doCheckSubject.next()})},t.prototype._watchDrawerToggle=function(t){var e=this;t._animationStarted.pipe(N.takeUntil(this._drawers.changes),h.filter(function(t){return t.fromState!==t.toState})).subscribe(function(t){"open-instant"!==t.toState&&e._element.nativeElement.classList.add("mat-drawer-transition"),e._updateContentMargins(),e._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe(N.takeUntil(this._drawers.changes)).subscribe(function(){return e._setContainerClass(t.opened)})},t.prototype._watchDrawerPosition=function(t){var e=this;t&&t.onPositionChanged.pipe(N.takeUntil(this._drawers.changes)).subscribe(function(){e._ngZone.onMicrotaskEmpty.asObservable().pipe(d.take(1)).subscribe(function(){e._validateDrawers()})})},t.prototype._watchDrawerMode=function(t){var e=this;t&&t._modeChanged.pipe(N.takeUntil(w.merge(this._drawers.changes,this._destroyed))).subscribe(function(){e._updateContentMargins(),e._changeDetectorRef.markForCheck()})},t.prototype._setContainerClass=function(t){t?this._element.nativeElement.classList.add("mat-drawer-opened"):this._element.nativeElement.classList.remove("mat-drawer-opened")},t.prototype._validateDrawers=function(){var t=this;this._start=this._end=null,this._drawers.forEach(function(e){"end"==e.position?(null!=t._end&&Uo("end"),t._end=e):(null!=t._start&&Uo("start"),t._start=e)}),this._right=this._left=null,this._dir&&"ltr"!=this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)},t.prototype._isPushed=function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode},t.prototype._onBackdropClicked=function(){this.backdropClick.emit(),this._closeModalDrawer()},t.prototype._closeModalDrawer=function(){[this._start,this._end].filter(function(t){return t&&!t.disableClose&&"side"!==t.mode}).forEach(function(t){return t.close()})},t.prototype._isShowingBackdrop=function(){return this._isDrawerOpen(this._start)&&"side"!=this._start.mode||this._isDrawerOpen(this._end)&&"side"!=this._end.mode},t.prototype._isDrawerOpen=function(t){return null!=t&&t.opened},t.prototype._updateContentMargins=function(){var t=this,e=0,n=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._width;else if("push"==this._left.mode){var r=this._left._width;e+=r,n-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._width;else if("push"==this._right.mode){r=this._right._width;n+=r,e-=r}this._ngZone.run(function(){return t._contentMargins.next({left:e,right:n})})},t.decorators=[{type:e.Component,args:[{selector:"mat-drawer-container",exportAs:"matDrawerContainer",template:'<div class="mat-drawer-backdrop" (click)="_onBackdropClicked()" [class.mat-drawer-shown]="_isShowingBackdrop()"></div><ng-content select="mat-drawer"></ng-content><ng-content select="mat-drawer-content"></ng-content><mat-drawer-content *ngIf="!_content" cdkScrollable><ng-content></ng-content></mat-drawer-content>',styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-opened{overflow:hidden}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:background-color,visibility}@media screen and (-ms-high-contrast:active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{-webkit-backface-visibility:hidden;backface-visibility:hidden;position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%,0,0)}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%,0,0)}[dir=rtl] .mat-drawer{transform:translate3d(100%,0,0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%,0,0)}.mat-drawer:not(.mat-drawer-side){box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.mat-sidenav-fixed{position:fixed}"],host:{class:"mat-drawer-container"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],t.ctorParameters=function(){return[{type:n.Directionality,decorators:[{type:e.Optional}]},{type:e.ElementRef},{type:e.NgZone},{type:e.ChangeDetectorRef},{type:void 0,decorators:[{type:e.Inject,args:[zo]}]}]},t.propDecorators={_drawers:[{type:e.ContentChildren,args:[Go]}],_content:[{type:e.ContentChild,args:[Wo]}],autosize:[{type:e.Input}],backdropClick:[{type:e.Output}]},t}(),Yo=function(t){function n(e,n){return t.call(this,e,n)||this}return Y(n,t),n.decorators=[{type:e.Component,args:[{selector:"mat-sidenav-content",template:"<ng-content></ng-content>",host:{class:"mat-drawer-content mat-sidenav-content","[style.margin-left.px]":"_margins.left","[style.margin-right.px]":"_margins.right"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],n.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:$o,decorators:[{type:e.Inject,args:[e.forwardRef(function(){return $o})]}]}]},n}(Wo),Ko=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._fixedInViewport=!1,e._fixedTopGap=0,e._fixedBottomGap=0,e}return Y(n,t),Object.defineProperty(n.prototype,"fixedInViewport",{get:function(){return this._fixedInViewport},set:function(t){this._fixedInViewport=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fixedTopGap",{get:function(){return this._fixedTopGap},set:function(t){this._fixedTopGap=r.coerceNumberProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fixedBottomGap",{get:function(){return this._fixedBottomGap},set:function(t){this._fixedBottomGap=r.coerceNumberProperty(t)},enumerable:!0,configurable:!0}),n.decorators=[{type:e.Component,args:[{selector:"mat-sidenav",exportAs:"matSidenav",template:"<ng-content></ng-content>",animations:[Bo.transformDrawer],host:{class:"mat-drawer mat-sidenav",tabIndex:"-1","[@transform]":"_animationState","(@transform.start)":"_onAnimationStart($event)","(@transform.done)":"_onAnimationEnd($event)","(keydown)":"handleKeydown($event)","[attr.align]":"null","[class.mat-drawer-end]":'position === "end"',"[class.mat-drawer-over]":'mode === "over"',"[class.mat-drawer-push]":'mode === "push"',"[class.mat-drawer-side]":'mode === "side"',"[class.mat-sidenav-fixed]":"fixedInViewport","[style.top.px]":"fixedInViewport ? fixedTopGap : null","[style.bottom.px]":"fixedInViewport ? fixedBottomGap : null"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],n.ctorParameters=function(){return[]},n.propDecorators={fixedInViewport:[{type:e.Input}],fixedTopGap:[{type:e.Input}],fixedBottomGap:[{type:e.Input}]},n}(Go),$o=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Component,args:[{selector:"mat-sidenav-container",exportAs:"matSidenavContainer",template:'<div class="mat-drawer-backdrop" (click)="_onBackdropClicked()" [class.mat-drawer-shown]="_isShowingBackdrop()"></div><ng-content select="mat-sidenav"></ng-content><ng-content select="mat-sidenav-content"></ng-content><mat-sidenav-content *ngIf="!_content" cdkScrollable><ng-content></ng-content></mat-sidenav-content>',styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-opened{overflow:hidden}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:background-color,visibility}@media screen and (-ms-high-contrast:active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{-webkit-backface-visibility:hidden;backface-visibility:hidden;position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%,0,0)}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%,0,0)}[dir=rtl] .mat-drawer{transform:translate3d(100%,0,0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%,0,0)}.mat-drawer:not(.mat-drawer-side){box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.mat-sidenav-fixed{position:fixed}"],host:{class:"mat-drawer-container mat-sidenav-container"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],n.ctorParameters=function(){return[]},n.propDecorators={_drawers:[{type:e.ContentChildren,args:[Ko]}],_content:[{type:e.ContentChild,args:[Yo]}]},n}(qo),Xo=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule,Z,l.A11yModule,u.OverlayModule,F.ScrollDispatchModule,s.PlatformModule],exports:[Z,Go,qo,Wo,Ko,$o,Yo],declarations:[Go,qo,Wo,Ko,$o,Yo],providers:[{provide:zo,useValue:!1}]}]}],t.ctorParameters=function(){return[]},t}(),Qo=0,Zo={provide:y.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return na}),multi:!0},Jo=function(){return function(){}}(),ta=function(){return function(t){this._elementRef=t}}(),ea=nt(tt(et(J(ta)),"accent")),na=function(t){function n(n,r,i,o,a){var s=t.call(this,n)||this;return s._platform=r,s._focusMonitor=i,s._changeDetectorRef=o,s.onChange=function(t){},s.onTouched=function(){},s._uniqueId="mat-slide-toggle-"+ ++Qo,s._required=!1,s._checked=!1,s.name=null,s.id=s._uniqueId,s.labelPosition="after",s.ariaLabel=null,s.ariaLabelledby=null,s.change=new e.EventEmitter,s._rippleConfig={centered:!0,radius:23,speedFactor:1.5},s.tabIndex=parseInt(a)||0,s}return Y(n,t),Object.defineProperty(n.prototype,"required",{get:function(){return this._required},set:function(t){this._required=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"checked",{get:function(){return this._checked},set:function(t){this._checked=r.coerceBooleanProperty(t),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"inputId",{get:function(){return(this.id||this._uniqueId)+"-input"},enumerable:!0,configurable:!0}),n.prototype.ngAfterContentInit=function(){var t=this;this._slideRenderer=new ra(this._elementRef,this._platform),this._focusMonitor.monitor(this._inputElement.nativeElement,!1).subscribe(function(e){return t._onInputFocusChange(e)})},n.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._inputElement.nativeElement)},n.prototype._onChangeEvent=function(t){t.stopPropagation(),this._slideRenderer.dragging?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())},n.prototype._onInputClick=function(t){t.stopPropagation()},n.prototype.writeValue=function(t){this.checked=!!t},n.prototype.registerOnChange=function(t){this.onChange=t},n.prototype.registerOnTouched=function(t){this.onTouched=t},n.prototype.setDisabledState=function(t){this.disabled=t,this._changeDetectorRef.markForCheck()},n.prototype.focus=function(){this._focusMonitor.focusVia(this._inputElement.nativeElement,"keyboard")},n.prototype.toggle=function(){this.checked=!this.checked},n.prototype._onInputFocusChange=function(t){this._focusRipple||"keyboard"!==t?t||(this.onTouched(),this._focusRipple&&(this._focusRipple.fadeOut(),this._focusRipple=null)):this._focusRipple=this._ripple.launch(0,0,K({persistent:!0},this._rippleConfig))},n.prototype._emitChangeEvent=function(){var t=new Jo;t.source=this,t.checked=this.checked,this.onChange(this.checked),this.change.emit(t)},n.prototype._onDragStart=function(){this.disabled||this._slideRenderer.startThumbDrag(this.checked)},n.prototype._onDrag=function(t){this._slideRenderer.dragging&&this._slideRenderer.updateThumbPosition(t.deltaX)},n.prototype._onDragEnd=function(){var t=this;if(this._slideRenderer.dragging){var e=this._slideRenderer.dragPercentage>50;e!==this.checked&&(this.checked=e,this._emitChangeEvent()),setTimeout(function(){return t._slideRenderer.stopThumbDrag()})}},n.prototype._onLabelTextChange=function(){this._changeDetectorRef.markForCheck()},n.decorators=[{type:e.Component,args:[{selector:"mat-slide-toggle",exportAs:"matSlideToggle",host:{class:"mat-slide-toggle","[id]":"id","[class.mat-checked]":"checked","[class.mat-disabled]":"disabled","[class.mat-slide-toggle-label-before]":'labelPosition == "before"'},template:'<label class="mat-slide-toggle-label" #label><div class="mat-slide-toggle-bar" [class.mat-slide-toggle-bar-no-side-margin]="!labelContent.textContent || !labelContent.textContent.trim()"><input #input class="mat-slide-toggle-input cdk-visually-hidden" type="checkbox" [id]="inputId" [required]="required" [tabIndex]="tabIndex" [checked]="checked" [disabled]="disabled" [attr.name]="name" [attr.aria-label]="ariaLabel" [attr.aria-labelledby]="ariaLabelledby" (change)="_onChangeEvent($event)" (click)="_onInputClick($event)"><div class="mat-slide-toggle-thumb-container" (slidestart)="_onDragStart()" (slide)="_onDrag($event)" (slideend)="_onDragEnd()"><div class="mat-slide-toggle-thumb"></div><div class="mat-slide-toggle-ripple" mat-ripple [matRippleTrigger]="label" [matRippleDisabled]="disableRipple || disabled" [matRippleCentered]="_rippleConfig.centered" [matRippleRadius]="_rippleConfig.radius" [matRippleSpeedFactor]="_rippleConfig.speedFactor"></div></div></div><span class="mat-slide-toggle-content" #labelContent (cdkObserveContent)="_onLabelTextChange()"><ng-content></ng-content></span></label>',styles:[".mat-slide-toggle{display:inline-block;height:24px;line-height:24px;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:0}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px,0,0)}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}.mat-slide-toggle-bar,[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-right:8px;margin-left:0}.mat-slide-toggle-label-before .mat-slide-toggle-bar,[dir=rtl] .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0,0,0);transition:all 80ms linear;transition-property:transform;cursor:-webkit-grab;cursor:grab}.mat-slide-toggle-thumb-container.mat-dragging,.mat-slide-toggle-thumb-container:active{cursor:-webkit-grabbing;cursor:grabbing;transition-duration:0s}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}@media screen and (-ms-high-contrast:active){.mat-slide-toggle-thumb{background:#fff;border:solid 1px #000}}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;border-radius:8px}@media screen and (-ms-high-contrast:active){.mat-slide-toggle-bar{background:#fff}}.mat-slide-toggle-input{bottom:0;left:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}.mat-slide-toggle-ripple{position:absolute;top:-13px;left:-13px;height:46px;width:46px;z-index:1;pointer-events:none}"],providers:[Zo],inputs:["disabled","disableRipple","color","tabIndex"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[{type:e.ElementRef},{type:s.Platform},{type:l.FocusMonitor},{type:e.ChangeDetectorRef},{type:void 0,decorators:[{type:e.Attribute,args:["tabindex"]}]}]},n.propDecorators={name:[{type:e.Input}],id:[{type:e.Input}],labelPosition:[{type:e.Input}],ariaLabel:[{type:e.Input,args:["aria-label"]}],ariaLabelledby:[{type:e.Input,args:["aria-labelledby"]}],required:[{type:e.Input}],checked:[{type:e.Input}],change:[{type:e.Output}],_inputElement:[{type:e.ViewChild,args:["input"]}],_ripple:[{type:e.ViewChild,args:[Mt]}]},n}(ea),ra=function(){function t(t,e){this.dragging=!1,e.isBrowser&&(this._thumbEl=t.nativeElement.querySelector(".mat-slide-toggle-thumb-container"),this._thumbBarEl=t.nativeElement.querySelector(".mat-slide-toggle-bar"))}return t.prototype.startThumbDrag=function(t){this.dragging||(this._thumbBarWidth=this._thumbBarEl.clientWidth-this._thumbEl.clientWidth,this._thumbEl.classList.add("mat-dragging"),this._previousChecked=t,this.dragging=!0)},t.prototype.stopThumbDrag=function(){return!!this.dragging&&(this.dragging=!1,this._thumbEl.classList.remove("mat-dragging"),Gt(this._thumbEl,""),this.dragPercentage>50)},t.prototype.updateThumbPosition=function(t){this.dragPercentage=this._getDragPercentage(t);var e=this.dragPercentage/100*this._thumbBarWidth;Gt(this._thumbEl,"translate3d("+e+"px, 0, 0)")},t.prototype._getDragPercentage=function(t){var e=t/this._thumbBarWidth*100;return this._previousChecked&&(e+=100),Math.max(0,Math.min(e,100))},t}(),ia=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[It,Z,s.PlatformModule,E.ObserversModule,l.A11yModule],exports:[na,Z],declarations:[na],providers:[{provide:o.HAMMER_GESTURE_CONFIG,useClass:Ct}]}]}],t.ctorParameters=function(){return[]},t}(),oa={provide:y.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return la}),multi:!0},aa=function(){return function(){}}(),sa=function(){return function(t){this._elementRef=t}}(),ca=nt(tt(J(sa),"accent")),la=function(t){function i(n,r,i,o,a){var s=t.call(this,n)||this;return s._focusMonitor=r,s._changeDetectorRef=i,s._dir=o,s._invert=!1,s._max=100,s._min=0,s._step=1,s._thumbLabel=!1,s._tickInterval=0,s._value=null,s._vertical=!1,s.change=new e.EventEmitter,s.input=new e.EventEmitter,s.onTouched=function(){},s._percent=0,s._isSliding=!1,s._isActive=!1,s._tickIntervalPercent=0,s._sliderDimensions=null,s._controlValueAccessorChangeFn=function(){},s._dirChangeSubscription=S.Subscription.EMPTY,s.tabIndex=parseInt(a)||0,s}return Y(i,t),Object.defineProperty(i.prototype,"invert",{get:function(){return this._invert},set:function(t){this._invert=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"max",{get:function(){return this._max},set:function(t){this._max=r.coerceNumberProperty(t,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"min",{get:function(){return this._min},set:function(t){this._min=r.coerceNumberProperty(t,this._min),null===this._value&&(this.value=this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"step",{get:function(){return this._step},set:function(t){this._step=r.coerceNumberProperty(t,this._step),this._step%1!=0&&(this._roundLabelTo=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"thumbLabel",{get:function(){return this._thumbLabel},set:function(t){this._thumbLabel=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_thumbLabelDeprecated",{get:function(){return this._thumbLabel},set:function(t){this._thumbLabel=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tickInterval",{get:function(){return this._tickInterval},set:function(t){this._tickInterval="auto"===t?"auto":"number"==typeof t||"string"==typeof t?r.coerceNumberProperty(t,this._tickInterval):0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_tickIntervalDeprecated",{get:function(){return this.tickInterval},set:function(t){this.tickInterval=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return null===this._value&&(this.value=this._min),this._value},set:function(t){t!==this._value&&(this._value=r.coerceNumberProperty(t,this._value||0),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"vertical",{get:function(){return this._vertical},set:function(t){this._vertical=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"displayValue",{get:function(){return this._roundLabelTo&&this.value&&this.value%1!=0?this.value.toFixed(this._roundLabelTo):this.value||0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"percent",{get:function(){return this._clamp(this._percent)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_invertAxis",{get:function(){return this.vertical?!this.invert:this.invert},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_isMinValue",{get:function(){return 0===this.percent},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_thumbGap",{get:function(){return this.disabled?7:this._isMinValue&&!this.thumbLabel?this._isActive?10:7:0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_trackBackgroundStyles",{get:function(){var t=this.vertical?"Y":"X";return{transform:"translate"+t+"("+(this._invertMouseCoords?"-":"")+this._thumbGap+"px) scale"+t+"("+(1-this.percent)+")"}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_trackFillStyles",{get:function(){var t=this.vertical?"Y":"X";return{transform:"translate"+t+"("+(this._invertMouseCoords?"":"-")+this._thumbGap+"px) scale"+t+"("+this.percent+")"}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_ticksContainerStyles",{get:function(){return{transform:"translate"+(this.vertical?"Y":"X")+"("+(this.vertical||"rtl"!=this._direction?"-":"")+this._tickIntervalPercent/2*100+"%)"}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_ticksStyles",{get:function(){var t=100*this._tickIntervalPercent,e={backgroundSize:this.vertical?"2px "+t+"%":t+"% 2px",transform:"translateZ(0) translate"+(this.vertical?"Y":"X")+"("+(this.vertical||"rtl"!=this._direction?"":"-")+t/2+"%)"+(this.vertical||"rtl"!=this._direction?"":" rotate(180deg)")};this._isMinValue&&this._thumbGap&&(e["padding"+(this.vertical?this._invertAxis?"Bottom":"Top":this._invertAxis?"Right":"Left")]=this._thumbGap+"px");return e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_thumbContainerStyles",{get:function(){return{transform:"translate"+(this.vertical?"Y":"X")+"(-"+100*(("rtl"!=this._direction||this.vertical?this._invertAxis:!this._invertAxis)?this.percent:1-this.percent)+"%)"}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_invertMouseCoords",{get:function(){return"rtl"!=this._direction||this.vertical?this._invertAxis:!this._invertAxis},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_direction",{get:function(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"},enumerable:!0,configurable:!0}),i.prototype.ngOnInit=function(){var t=this;this._focusMonitor.monitor(this._elementRef.nativeElement,!0).subscribe(function(e){t._isActive=!!e&&"keyboard"!==e,t._changeDetectorRef.detectChanges()}),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(function(){t._changeDetectorRef.markForCheck()}))},i.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef.nativeElement),this._dirChangeSubscription.unsubscribe()},i.prototype._onMouseenter=function(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())},i.prototype._onClick=function(t){if(!this.disabled){var e=this.value;this._isSliding=!1,this._focusHostElement(),this._updateValueFromPosition({x:t.clientX,y:t.clientY}),e!=this.value&&(this._emitInputEvent(),this._emitChangeEvent())}},i.prototype._onSlide=function(t){if(!this.disabled){this._isSliding||this._onSlideStart(null),t.preventDefault();var e=this.value;this._updateValueFromPosition({x:t.center.x,y:t.center.y}),e!=this.value&&this._emitInputEvent()}},i.prototype._onSlideStart=function(t){this.disabled||this._isSliding||(this._onMouseenter(),this._isSliding=!0,this._focusHostElement(),this._valueOnSlideStart=this.value,t&&(this._updateValueFromPosition({x:t.center.x,y:t.center.y}),t.preventDefault()))},i.prototype._onSlideEnd=function(){this._isSliding=!1,this._valueOnSlideStart!=this.value&&this._emitChangeEvent(),this._valueOnSlideStart=null},i.prototype._onFocus=function(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()},i.prototype._onBlur=function(){this.onTouched()},i.prototype._onKeydown=function(t){if(!this.disabled){var e=this.value;switch(t.keyCode){case c.PAGE_UP:this._increment(10);break;case c.PAGE_DOWN:this._increment(-10);break;case c.END:this.value=this.max;break;case c.HOME:this.value=this.min;break;case c.LEFT_ARROW:this._increment("rtl"==this._direction?1:-1);break;case c.UP_ARROW:this._increment(1);break;case c.RIGHT_ARROW:this._increment("rtl"==this._direction?-1:1);break;case c.DOWN_ARROW:this._increment(-1);break;default:return}e!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding=!0,t.preventDefault()}},i.prototype._onKeyup=function(){this._isSliding=!1},i.prototype._increment=function(t){this.value=this._clamp((this.value||0)+this.step*t,this.min,this.max)},i.prototype._updateValueFromPosition=function(t){if(this._sliderDimensions){var e=this.vertical?this._sliderDimensions.top:this._sliderDimensions.left,n=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,r=this.vertical?t.y:t.x,i=this._clamp((r-e)/n);this._invertMouseCoords&&(i=1-i);var o=this._calculateValue(i),a=Math.round((o-this.min)/this.step)*this.step+this.min;this.value=this._clamp(a,this.min,this.max)}},i.prototype._emitChangeEvent=function(){this._controlValueAccessorChangeFn(this.value),this.change.emit(this._createChangeEvent())},i.prototype._emitInputEvent=function(){this.input.emit(this._createChangeEvent())},i.prototype._updateTickIntervalPercent=function(){if(this.tickInterval&&this._sliderDimensions)if("auto"==this.tickInterval){var t=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,e=t*this.step/(this.max-this.min),n=Math.ceil(30/e)*this.step;this._tickIntervalPercent=n/t}else this._tickIntervalPercent=this.tickInterval*this.step/(this.max-this.min)},i.prototype._createChangeEvent=function(t){void 0===t&&(t=this.value);var e=new aa;return e.source=this,e.value=t,e},i.prototype._calculatePercentage=function(t){return((t||0)-this.min)/(this.max-this.min)},i.prototype._calculateValue=function(t){return this.min+t*(this.max-this.min)},i.prototype._clamp=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=1),Math.max(e,Math.min(t,n))},i.prototype._getSliderDimensions=function(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null},i.prototype._focusHostElement=function(){this._elementRef.nativeElement.focus()},i.prototype.writeValue=function(t){this.value=t},i.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},i.prototype.registerOnTouched=function(t){this.onTouched=t},i.prototype.setDisabledState=function(t){this.disabled=t},i.decorators=[{type:e.Component,args:[{selector:"mat-slider",exportAs:"matSlider",providers:[oa],host:{"(focus)":"_onFocus()","(blur)":"_onBlur()","(click)":"_onClick($event)","(keydown)":"_onKeydown($event)","(keyup)":"_onKeyup()","(mouseenter)":"_onMouseenter()","(slide)":"_onSlide($event)","(slideend)":"_onSlideEnd()","(slidestart)":"_onSlideStart($event)",class:"mat-slider",role:"slider","[tabIndex]":"tabIndex","[attr.aria-disabled]":"disabled","[attr.aria-valuemax]":"max","[attr.aria-valuemin]":"min","[attr.aria-valuenow]":"value","[attr.aria-orientation]":'vertical ? "vertical" : "horizontal"',"[class.mat-slider-disabled]":"disabled","[class.mat-slider-has-ticks]":"tickInterval","[class.mat-slider-horizontal]":"!vertical","[class.mat-slider-axis-inverted]":"_invertAxis","[class.mat-slider-sliding]":"_isSliding","[class.mat-slider-thumb-label-showing]":"thumbLabel","[class.mat-slider-vertical]":"vertical","[class.mat-slider-min-value]":"_isMinValue","[class.mat-slider-hide-last-tick]":"disabled || _isMinValue && _thumbGap && _invertAxis"},template:'<div class="mat-slider-wrapper" #sliderWrapper><div class="mat-slider-track-wrapper"><div class="mat-slider-track-background" [ngStyle]="_trackBackgroundStyles"></div><div class="mat-slider-track-fill" [ngStyle]="_trackFillStyles"></div></div><div class="mat-slider-ticks-container" [ngStyle]="_ticksContainerStyles"><div class="mat-slider-ticks" [ngStyle]="_ticksStyles"></div></div><div class="mat-slider-thumb-container" [ngStyle]="_thumbContainerStyles"><div class="mat-slider-focus-ring"></div><div class="mat-slider-thumb"></div><div class="mat-slider-thumb-label"><span class="mat-slider-thumb-label-text">{{displayValue}}</span></div></div></div>',styles:[".mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:0;vertical-align:middle}.mat-slider-wrapper{position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{background-repeat:repeat;background-clip:content-box;box-sizing:border-box;opacity:0;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1),opacity .4s cubic-bezier(.25,.8,.25,1)}.cdk-keyboard-focused .mat-slider-focus-ring,.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled) .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled) .mat-slider-thumb-label{cursor:-webkit-grab;cursor:grab}.mat-slider-sliding:not(.mat-slider-disabled) .mat-slider-thumb,.mat-slider-sliding:not(.mat-slider-disabled) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled) .mat-slider-thumb-label:active,.mat-slider:not(.mat-slider-disabled) .mat-slider-thumb:active{cursor:-webkit-grabbing;cursor:grabbing}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid transparent;border-radius:50%;transform:scale(.7);transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1),border-color .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform .4s cubic-bezier(.25,.8,.25,1),border-radius .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-sliding .mat-slider-thumb-container,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-track-fill{transition-duration:0s}.mat-slider-has-ticks .mat-slider-wrapper::after{content:'';position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}"],inputs:["disabled","color","tabIndex"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],i.ctorParameters=function(){return[{type:e.ElementRef},{type:l.FocusMonitor},{type:e.ChangeDetectorRef},{type:n.Directionality,decorators:[{type:e.Optional}]},{type:void 0,decorators:[{type:e.Attribute,args:["tabindex"]}]}]},i.propDecorators={invert:[{type:e.Input}],max:[{type:e.Input}],min:[{type:e.Input}],step:[{type:e.Input}],thumbLabel:[{type:e.Input}],_thumbLabelDeprecated:[{type:e.Input,args:["thumb-label"]}],tickInterval:[{type:e.Input}],_tickIntervalDeprecated:[{type:e.Input,args:["tick-interval"]}],value:[{type:e.Input}],vertical:[{type:e.Input}],change:[{type:e.Output}],input:[{type:e.Output}],_sliderWrapper:[{type:e.ViewChild,args:["sliderWrapper"]}]},i}(ca),ua=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule,Z,n.BidiModule,l.A11yModule],exports:[la,Z],declarations:[la],providers:[{provide:o.HAMMER_GESTURE_CONFIG,useClass:Ct}]}]}],t.ctorParameters=function(){return[]},t}(),pa=function(){function t(t,e){var n=this;this._overlayRef=e,this._afterClosed=new i.Subject,this._afterOpened=new i.Subject,this._onAction=new i.Subject,this.containerInstance=t,this.onAction().subscribe(function(){return n.dismiss()}),t._onExit.subscribe(function(){return n._finishDismiss()})}return t.prototype.dismiss=function(){this._afterClosed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)},t.prototype.closeWithAction=function(){this._onAction.closed||(this._onAction.next(),this._onAction.complete())},t.prototype._dismissAfter=function(t){var e=this;this._durationTimeoutId=setTimeout(function(){return e.dismiss()},t)},t.prototype._open=function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())},t.prototype._finishDismiss=function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterClosed.next(),this._afterClosed.complete()},t.prototype.afterDismissed=function(){return this._afterClosed.asObservable()},t.prototype.afterOpened=function(){return this.containerInstance._onEnter},t.prototype.onAction=function(){return this._onAction.asObservable()},t}(),ha=new e.InjectionToken("MatSnackBarData"),da=function(){return function(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.direction="ltr",this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}(),fa=X.ENTERING+" "+$.DECELERATION_CURVE,ma=X.EXITING+" "+$.ACCELERATION_CURVE,ga={contentFade:_.trigger("contentFade",[_.transition(":enter",[_.style({opacity:"0"}),_.animate(X.COMPLEX+" "+$.STANDARD_CURVE)])]),snackBarState:_.trigger("state",[_.state("visible-top, visible-bottom",_.style({transform:"translateY(0%)"})),_.transition("visible-top => hidden-top, visible-bottom => hidden-bottom",_.animate(ma)),_.transition("void => visible-top, void => visible-bottom",_.animate(fa))])},ya=function(){function t(t,e){this.snackBarRef=t,this.data=e}return t.prototype.action=function(){this.snackBarRef.closeWithAction()},Object.defineProperty(t.prototype,"hasAction",{get:function(){return!!this.data.action},enumerable:!0,configurable:!0}),t.decorators=[{type:e.Component,args:[{selector:"simple-snack-bar",template:'{{data.message}} <button class="mat-simple-snackbar-action" *ngIf="hasAction" (click)="action()">{{data.action}}</button>',styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;line-height:20px;opacity:1}.mat-simple-snackbar-action{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;background:0 0;flex-shrink:0;margin-left:48px}[dir=rtl] .mat-simple-snackbar-action{margin-right:48px;margin-left:0}"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,animations:[ga.contentFade],host:{"[@contentFade]":"",class:"mat-simple-snackbar"}}]}],t.ctorParameters=function(){return[{type:pa},{type:void 0,decorators:[{type:e.Inject,args:[ha]}]}]},t}(),va=function(t){function n(e,n,r){var o=t.call(this)||this;return o._ngZone=e,o._elementRef=n,o._changeDetectorRef=r,o._destroyed=!1,o._onExit=new i.Subject,o._onEnter=new i.Subject,o._animationState="void",o}return Y(n,t),n.prototype.attachComponentPortal=function(t){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached");var e=this._elementRef.nativeElement;return(this.snackBarConfig.panelClass||this.snackBarConfig.extraClasses)&&(this._setCssClasses(this.snackBarConfig.panelClass),this._setCssClasses(this.snackBarConfig.extraClasses)),"center"===this.snackBarConfig.horizontalPosition&&e.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&e.classList.add("mat-snack-bar-top"),this._portalOutlet.attachComponentPortal(t)},n.prototype.attachTemplatePortal=function(){throw Error("Not yet implemented")},n.prototype.onAnimationEnd=function(t){var e=t.fromState,n=t.toState;if(("void"===n&&"void"!==e||n.startsWith("hidden"))&&this._completeExit(),n.startsWith("visible")){var r=this._onEnter;this._ngZone.run(function(){r.next(),r.complete()})}},n.prototype.enter=function(){this._destroyed||(this._animationState="visible-"+this.snackBarConfig.verticalPosition,this._changeDetectorRef.detectChanges())},n.prototype.exit=function(){return this._animationState="hidden-"+this.snackBarConfig.verticalPosition,this._onExit},n.prototype.ngOnDestroy=function(){this._destroyed=!0,this._completeExit()},n.prototype._completeExit=function(){var t=this;this._ngZone.onMicrotaskEmpty.asObservable().pipe(d.take(1)).subscribe(function(){t._onExit.next(),t._onExit.complete()})},n.prototype._setCssClasses=function(t){if(t){var e=this._elementRef.nativeElement;Array.isArray(t)?t.forEach(function(t){return e.classList.add(t)}):e.classList.add(t)}},n.decorators=[{type:e.Component,args:[{selector:"snack-bar-container",template:"<ng-template cdkPortalOutlet></ng-template>",styles:[".mat-snack-bar-container{border-radius:2px;box-sizing:border-box;display:block;margin:24px;max-width:568px;min-width:288px;padding:14px 24px;transform:translateY(100%) translateY(24px)}.mat-snack-bar-container.mat-snack-bar-center{margin:0;transform:translateY(100%)}.mat-snack-bar-container.mat-snack-bar-top{transform:translateY(-100%) translateY(-24px)}.mat-snack-bar-container.mat-snack-bar-top.mat-snack-bar-center{transform:translateY(-100%)}@media screen and (-ms-high-contrast:active){.mat-snack-bar-container{border:solid 1px}}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:0;max-width:inherit;width:100%}"],changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,animations:[ga.snackBarState],host:{role:"alert",class:"mat-snack-bar-container","[@state]":"_animationState","(@state.done)":"onAnimationEnd($event)"}}]}],n.ctorParameters=function(){return[{type:e.NgZone},{type:e.ElementRef},{type:e.ChangeDetectorRef}]},n.propDecorators={_portalOutlet:[{type:e.ViewChild,args:[p.CdkPortalOutlet]}]},n}(p.BasePortalOutlet),ba=function(){function t(t,e,n,r,i){this._overlay=t,this._live=e,this._injector=n,this._breakpointObserver=r,this._parentSnackBar=i,this._snackBarRefAtThisLevel=null}return Object.defineProperty(t.prototype,"_openedSnackBarRef",{get:function(){var t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t},enumerable:!0,configurable:!0}),t.prototype.openFromComponent=function(t,e){var n=this,r=_a(e),i=this._attach(t,r);return i.afterDismissed().subscribe(function(){n._openedSnackBarRef==i&&(n._openedSnackBarRef=null)}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){i.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):i.containerInstance.enter(),r.duration&&r.duration>0&&i.afterOpened().subscribe(function(){return i._dismissAfter(r.duration)}),r.announcementMessage&&this._live.announce(r.announcementMessage,r.politeness),this._openedSnackBarRef=i,this._openedSnackBarRef},t.prototype.open=function(t,e,n){void 0===e&&(e="");var r=_a(n);return r.data={message:t,action:e},r.announcementMessage=t,this.openFromComponent(ya,r)},t.prototype.dismiss=function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()},t.prototype._attachSnackBarContainer=function(t,e){var n=new p.ComponentPortal(va,e.viewContainerRef),r=t.attach(n);return r.instance.snackBarConfig=e,r.instance},t.prototype._attach=function(t,e){var n=this._createOverlay(e),r=this._attachSnackBarContainer(n,e),i=new pa(r,n),o=this._createInjector(e,i),a=new p.ComponentPortal(t,void 0,o),s=r.attachComponentPortal(a);return i.instance=s.instance,this._breakpointObserver.observe(B.Breakpoints.Handset).pipe(N.takeUntil(n.detachments().pipe(d.take(1)))).subscribe(function(t){t.matches?n.overlayElement.classList.add("mat-snack-bar-handset"):n.overlayElement.classList.remove("mat-snack-bar-handset")}),i},t.prototype._createOverlay=function(t){var e=new u.OverlayConfig;e.direction=t.direction;var n=this._overlay.position().global(),r="rtl"===t.direction,i="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!r||"end"===t.horizontalPosition&&r,o=!i&&"center"!==t.horizontalPosition;return i?n.left("0"):o?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)},t.prototype._createInjector=function(t,e){var n=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=new WeakMap;return r.set(pa,e),r.set(ha,t.data),new p.PortalInjector(n||this._injector,r)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:u.Overlay},{type:l.LiveAnnouncer},{type:e.Injector},{type:B.BreakpointObserver},{type:t,decorators:[{type:e.Optional},{type:e.SkipSelf}]}]},t}();function _a(t){return K({},new da,t)}var wa=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[u.OverlayModule,p.PortalModule,a.CommonModule,Z,B.LayoutModule],exports:[va,Z],declarations:[va,ya],entryComponents:[va,ya],providers:[ba,l.LIVE_ANNOUNCER_PROVIDER]}]}],t.ctorParameters=function(){return[]},t}();var Ca=function(){return function(){}}(),xa=J(Ca),Ea=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.sortables=new Map,n._stateChanges=new i.Subject,n.start="asc",n._direction="",n.sortChange=new e.EventEmitter,n}return Y(n,t),Object.defineProperty(n.prototype,"direction",{get:function(){return this._direction},set:function(t){if(e.isDevMode()&&t&&"asc"!==t&&"desc"!==t)throw Error(t+" is not a valid sort direction ('asc' or 'desc').");this._direction=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"disableClear",{get:function(){return this._disableClear},set:function(t){this._disableClear=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),n.prototype.register=function(t){if(!t.id)throw Error("MatSortHeader must be provided with a unique id.");if(this.sortables.has(t.id))throw e=t.id,Error("Cannot have two MatSortables with the same id ("+e+").");var e;this.sortables.set(t.id,t)},n.prototype.deregister=function(t){this.sortables.delete(t.id)},n.prototype.sort=function(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.next({active:this.active,direction:this.direction})},n.prototype.getNextSortDirection=function(t){if(!t)return"";var e=null!=t.disableClear?t.disableClear:this.disableClear,n=function(t,e){var n=["asc","desc"];"desc"==t&&n.reverse();e||n.push("");return n}(t.start||this.start,e),r=n.indexOf(this.direction)+1;return r>=n.length&&(r=0),n[r]},n.prototype.ngOnChanges=function(){this._stateChanges.next()},n.prototype.ngOnDestroy=function(){this._stateChanges.complete()},n.decorators=[{type:e.Directive,args:[{selector:"[matSort]",exportAs:"matSort",inputs:["disabled: matSortDisabled"]}]}],n.ctorParameters=function(){return[]},n.propDecorators={active:[{type:e.Input,args:["matSortActive"]}],start:[{type:e.Input,args:["matSortStart"]}],direction:[{type:e.Input,args:["matSortDirection"]}],disableClear:[{type:e.Input,args:["matSortDisableClear"]}],sortChange:[{type:e.Output,args:["matSortChange"]}]},n}(xa);var Sa=function(){function t(){this.changes=new i.Subject,this.sortButtonLabel=function(t){return"Change sorting for "+t},this.sortDescriptionLabel=function(t,e){return"Sorted by "+t+" "+("asc"==e?"ascending":"descending")}}return t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}();function ka(t){return t||new Sa}var Oa={provide:Sa,deps:[[new e.Optional,new e.SkipSelf,Sa]],useFactory:ka},Pa=X.ENTERING+" "+$.STANDARD_CURVE,Aa={indicator:_.trigger("indicator",[_.state("asc",_.style({transform:"translateY(0px)"})),_.state("desc",_.style({transform:"translateY(10px)"})),_.transition("asc <=> desc",_.animate(Pa))]),leftPointer:_.trigger("leftPointer",[_.state("asc",_.style({transform:"rotate(-45deg)"})),_.state("desc",_.style({transform:"rotate(45deg)"})),_.transition("asc <=> desc",_.animate(Pa))]),rightPointer:_.trigger("rightPointer",[_.state("asc",_.style({transform:"rotate(45deg)"})),_.state("desc",_.style({transform:"rotate(-45deg)"})),_.transition("asc <=> desc",_.animate(Pa))]),indicatorToggle:_.trigger("indicatorToggle",[_.transition("void => asc",_.animate(Pa,_.keyframes([_.style({transform:"translateY(25%)",opacity:0}),_.style({transform:"none",opacity:1})]))),_.transition("asc => void",_.animate(Pa,_.keyframes([_.style({transform:"none",opacity:1}),_.style({transform:"translateY(-25%)",opacity:0})]))),_.transition("void => desc",_.animate(Pa,_.keyframes([_.style({transform:"translateY(-25%)",opacity:0}),_.style({transform:"none",opacity:1})]))),_.transition("desc => void",_.animate(Pa,_.keyframes([_.style({transform:"none",opacity:1}),_.style({transform:"translateY(25%)",opacity:0})])))])},Ta=function(){return function(){}}(),Ma=J(Ta),Ia=function(t){function n(e,n,r,i){var o=t.call(this)||this;if(o._intl=e,o._sort=r,o._cdkColumnDef=i,o.arrowPosition="after",!r)throw Error("MatSortHeader must be placed within a parent element with the MatSort directive.");return o._rerenderSubscription=w.merge(r.sortChange,r._stateChanges,e.changes).subscribe(function(){return n.markForCheck()}),o}return Y(n,t),Object.defineProperty(n.prototype,"disableClear",{get:function(){return this._disableClear},set:function(t){this._disableClear=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),n.prototype.ngOnInit=function(){!this.id&&this._cdkColumnDef&&(this.id=this._cdkColumnDef.name),this._sort.register(this)},n.prototype.ngOnDestroy=function(){this._sort.deregister(this),this._rerenderSubscription.unsubscribe()},n.prototype._handleClick=function(){this._isDisabled()||this._sort.sort(this)},n.prototype._isSorted=function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)},n.prototype._isDisabled=function(){return this._sort.disabled||this.disabled},n.decorators=[{type:e.Component,args:[{selector:"[mat-sort-header]",exportAs:"matSortHeader",template:'<div class="mat-sort-header-container" [class.mat-sort-header-position-before]="arrowPosition == \'before\'"><button class="mat-sort-header-button" type="button" [attr.aria-label]="_intl.sortButtonLabel(id)" [attr.disabled]="_isDisabled() || null"><ng-content></ng-content></button><div *ngIf="_isSorted()" class="mat-sort-header-arrow" [@indicatorToggle]="_sort.direction"><div class="mat-sort-header-stem"></div><div class="mat-sort-header-indicator" [@indicator]="_sort.direction"><div class="mat-sort-header-pointer-left" [@leftPointer]="_sort.direction"></div><div class="mat-sort-header-pointer-right" [@rightPointer]="_sort.direction"></div><div class="mat-sort-header-pointer-middle"></div></div></div></div><span class="cdk-visually-hidden" *ngIf="_isSorted()">&nbsp;{{_intl.sortDescriptionLabel(id, _sort.direction)}}</span>',styles:[".mat-sort-header-container{display:flex;cursor:pointer}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-button{border:none;background:0 0;display:flex;align-items:center;padding:0;cursor:inherit;outline:0;font:inherit;color:currentColor}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;margin:0 0 0 6px;position:relative;display:flex}.mat-sort-header-position-before .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0;transition:225ms cubic-bezier(.4,0,.2,1)}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;transition:225ms cubic-bezier(.4,0,.2,1);position:absolute;top:0}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],host:{"(click)":"_handleClick()","[class.mat-sort-header-sorted]":"_isSorted()","[class.mat-sort-header-disabled]":"_isDisabled()"},encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,inputs:["disabled"],animations:[Aa.indicator,Aa.leftPointer,Aa.rightPointer,Aa.indicatorToggle]}]}],n.ctorParameters=function(){return[{type:Sa},{type:e.ChangeDetectorRef},{type:Ea,decorators:[{type:e.Optional}]},{type:U.CdkColumnDef,decorators:[{type:e.Optional}]}]},n.propDecorators={id:[{type:e.Input,args:["mat-sort-header"]}],arrowPosition:[{type:e.Input}],start:[{type:e.Input,args:["start"]}],disableClear:[{type:e.Input}]},n}(Ma),Ra=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule],exports:[Ea,Ia],declarations:[Ea,Ia],providers:[Oa]}]}],t.ctorParameters=function(){return[]},t}(),Da=function(t){function n(e){return t.call(this,e)||this}return Y(n,t),n.decorators=[{type:e.Directive,args:[{selector:"[matStepLabel]"}]}],n.ctorParameters=function(){return[{type:e.TemplateRef}]},n}(H.CdkStepLabel),Na=function(){function t(){this.changes=new i.Subject,this.optionalLabel="Optional"}return t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}(),La=function(){function t(t,e,n,r){this._intl=t,this._focusMonitor=e,this._element=n,e.monitor(n.nativeElement,!0),this._intlSubscription=t.changes.subscribe(function(){return r.markForCheck()})}return Object.defineProperty(t.prototype,"index",{get:function(){return this._index},set:function(t){this._index=r.coerceNumberProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._active},set:function(t){this._active=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"optional",{get:function(){return this._optional},set:function(t){this._optional=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element.nativeElement)},t.prototype._stringLabel=function(){return this.label instanceof Da?null:this.label},t.prototype._templateLabel=function(){return this.label instanceof Da?this.label:null},t.prototype._getHostElement=function(){return this._element.nativeElement},t.decorators=[{type:e.Component,args:[{selector:"mat-step-header",template:'<div class="mat-step-header-ripple" mat-ripple [matRippleTrigger]="_getHostElement()"></div><div [class.mat-step-icon]="icon !== \'number\' || selected" [class.mat-step-icon-not-touched]="icon == \'number\' && !selected" [ngSwitch]="icon"><span *ngSwitchCase="\'number\'">{{index + 1}}</span><mat-icon *ngSwitchCase="\'edit\'">create</mat-icon><mat-icon *ngSwitchCase="\'done\'">done</mat-icon></div><div class="mat-step-label" [class.mat-step-label-active]="active" [class.mat-step-label-selected]="selected"><ng-container *ngIf="_templateLabel()" [ngTemplateOutlet]="_templateLabel()!.template"></ng-container><div class="mat-step-text-label" *ngIf="_stringLabel()">{{label}}</div><div class="mat-step-optional" *ngIf="optional">{{_intl.optionalLabel}}</div></div>',styles:[".mat-step-header{overflow:hidden;outline:0;cursor:pointer;position:relative}.mat-step-optional{font-size:12px}.mat-step-icon,.mat-step-icon-not-touched{border-radius:50%;height:24px;width:24px;align-items:center;justify-content:center;display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}"],host:{class:"mat-step-header",role:"tab"},encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:Na},{type:l.FocusMonitor},{type:e.ElementRef},{type:e.ChangeDetectorRef}]},t.propDecorators={icon:[{type:e.Input}],label:[{type:e.Input}],index:[{type:e.Input}],selected:[{type:e.Input}],active:[{type:e.Input}],optional:[{type:e.Input}]},t}(),ja={horizontalStepTransition:_.trigger("stepTransition",[_.state("previous",_.style({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),_.state("current",_.style({transform:"none",visibility:"visible"})),_.state("next",_.style({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),_.transition("* => *",_.animate("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:_.trigger("stepTransition",[_.state("previous",_.style({height:"0px",visibility:"hidden"})),_.state("next",_.style({height:"0px",visibility:"hidden"})),_.state("current",_.style({height:"*",visibility:"visible"})),_.transition("* <=> current",_.animate("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])},Fa=function(t){function n(e,n){var r=t.call(this,e)||this;return r._errorStateMatcher=n,r}return Y(n,t),n.prototype.isErrorState=function(t,e){var n=this._errorStateMatcher.isErrorState(t,e),r=!!(t&&t.invalid&&this.interacted);return n||r},n.decorators=[{type:e.Component,args:[{selector:"mat-step",template:"<ng-template><ng-content></ng-content></ng-template>",providers:[{provide:_t,useExisting:n}],encapsulation:e.ViewEncapsulation.None,exportAs:"matStep",preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[{type:Va,decorators:[{type:e.Inject,args:[e.forwardRef(function(){return Va})]}]},{type:_t,decorators:[{type:e.SkipSelf}]}]},n.propDecorators={stepLabel:[{type:e.ContentChild,args:[Da]}]},n}(H.CdkStep),Va=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.prototype.ngAfterContentInit=function(){var t=this;this._steps.changes.pipe(N.takeUntil(this._destroyed)).subscribe(function(){return t._stateChanged()})},n.decorators=[{type:e.Directive,args:[{selector:"[matStepper]"}]}],n.ctorParameters=function(){return[]},n.propDecorators={_stepHeader:[{type:e.ViewChildren,args:[La,{read:e.ElementRef}]}],_steps:[{type:e.ContentChildren,args:[Fa]}]},n}(H.CdkStepper),Ba=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Component,args:[{selector:"mat-horizontal-stepper",exportAs:"matHorizontalStepper",template:'<div class="mat-horizontal-stepper-header-container"><ng-container *ngFor="let step of _steps; let i = index; let isLast = last"><mat-step-header class="mat-horizontal-stepper-header" (click)="step.select()" (keydown)="_onKeydown($event)" [tabIndex]="_focusIndex === i ? 0 : -1" [id]="_getStepLabelId(i)" [attr.aria-controls]="_getStepContentId(i)" [attr.aria-selected]="selectedIndex == i" [index]="i" [icon]="_getIndicatorType(i)" [label]="step.stepLabel || step.label" [selected]="selectedIndex === i" [active]="step.completed || selectedIndex === i || !linear" [optional]="step.optional"></mat-step-header><div *ngIf="!isLast" class="mat-stepper-horizontal-line"></div></ng-container></div><div class="mat-horizontal-content-container"><div *ngFor="let step of _steps; let i = index" class="mat-horizontal-stepper-content" role="tabpanel" [@stepTransition]="_getAnimationDirection(i)" [id]="_getStepContentId(i)" [attr.aria-labelledby]="_getStepLabelId(i)" [attr.aria-expanded]="selectedIndex === i"><ng-container [ngTemplateOutlet]="step.content"></ng-container></div></div>',styles:[".mat-stepper-horizontal,.mat-stepper-vertical{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon,.mat-horizontal-stepper-header .mat-step-icon-not-touched{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon,[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon-not-touched{margin-right:0;margin-left:8px}.mat-vertical-stepper-header{display:flex;align-items:center;padding:24px;max-height:24px}.mat-vertical-stepper-header .mat-step-icon,.mat-vertical-stepper-header .mat-step-icon-not-touched{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon,[dir=rtl] .mat-vertical-stepper-header .mat-step-icon-not-touched{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{overflow:hidden}.mat-horizontal-stepper-content[aria-expanded=false]{height:0}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:'';position:absolute;top:-16px;bottom:-16px;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}"],inputs:["selectedIndex"],host:{class:"mat-stepper-horizontal","aria-orientation":"horizontal",role:"tablist"},animations:[ja.horizontalStepTransition],providers:[{provide:Va,useExisting:n}],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[]},n}(Va),Ua=function(t){function r(e,n){var r=t.call(this,e,n)||this;return r._orientation="vertical",r}return Y(r,t),r.decorators=[{type:e.Component,args:[{selector:"mat-vertical-stepper",exportAs:"matVerticalStepper",template:'<div class="mat-step" *ngFor="let step of _steps; let i = index; let isLast = last"><mat-step-header class="mat-vertical-stepper-header" (click)="step.select()" (keydown)="_onKeydown($event)" [tabIndex]="_focusIndex == i ? 0 : -1" [id]="_getStepLabelId(i)" [attr.aria-controls]="_getStepContentId(i)" [attr.aria-selected]="selectedIndex === i" [index]="i" [icon]="_getIndicatorType(i)" [label]="step.stepLabel || step.label" [selected]="selectedIndex === i" [active]="step.completed || selectedIndex === i || !linear" [optional]="step.optional"></mat-step-header><div class="mat-vertical-content-container" [class.mat-stepper-vertical-line]="!isLast"><div class="mat-vertical-stepper-content" role="tabpanel" [@stepTransition]="_getAnimationDirection(i)" [id]="_getStepContentId(i)" [attr.aria-labelledby]="_getStepLabelId(i)" [attr.aria-expanded]="selectedIndex === i"><div class="mat-vertical-content"><ng-container [ngTemplateOutlet]="step.content"></ng-container></div></div></div></div>',styles:[".mat-stepper-horizontal,.mat-stepper-vertical{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon,.mat-horizontal-stepper-header .mat-step-icon-not-touched{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon,[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon-not-touched{margin-right:0;margin-left:8px}.mat-vertical-stepper-header{display:flex;align-items:center;padding:24px;max-height:24px}.mat-vertical-stepper-header .mat-step-icon,.mat-vertical-stepper-header .mat-step-icon-not-touched{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon,[dir=rtl] .mat-vertical-stepper-header .mat-step-icon-not-touched{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{overflow:hidden}.mat-horizontal-stepper-content[aria-expanded=false]{height:0}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:'';position:absolute;top:-16px;bottom:-16px;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}"],inputs:["selectedIndex"],host:{class:"mat-stepper-vertical","aria-orientation":"vertical",role:"tablist"},animations:[ja.verticalStepTransition],providers:[{provide:Va,useExisting:r}],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],r.ctorParameters=function(){return[{type:n.Directionality,decorators:[{type:e.Optional}]},{type:e.ChangeDetectorRef}]},r}(Va),Ha=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Directive,args:[{selector:"button[matStepperNext]",host:{"(click)":"_stepper.next()"},providers:[{provide:H.CdkStepper,useExisting:Va}]}]}],n.ctorParameters=function(){return[]},n}(H.CdkStepperNext),za=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Directive,args:[{selector:"button[matStepperPrevious]",host:{"(click)":"_stepper.previous()"},providers:[{provide:H.CdkStepper,useExisting:Va}]}]}],n.ctorParameters=function(){return[]},n}(H.CdkStepperPrevious),Wa=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[Z,a.CommonModule,p.PortalModule,Te,H.CdkStepperModule,nr,l.A11yModule,It],exports:[Z,Ba,Ua,Fa,Da,Va,Ha,za,La],declarations:[Ba,Ua,Fa,Da,Va,Ha,za,La],providers:[Na,_t]}]}],t.ctorParameters=function(){return[]},t}(),Ga=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Component,args:[{selector:"mat-table",exportAs:"matTable",template:U.CDK_TABLE_TEMPLATE,styles:[".mat-table{display:block}.mat-header-row{min-height:56px}.mat-row{min-height:48px}.mat-header-row,.mat-row{display:flex;border-bottom-width:1px;border-bottom-style:solid;align-items:center;padding:0 24px;box-sizing:border-box}.mat-header-row::after,.mat-row::after{display:inline-block;min-height:inherit;content:''}.mat-cell,.mat-header-cell{flex:1;overflow:hidden;word-wrap:break-word}"],host:{class:"mat-table"},encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[]},n}(U.CdkTable),qa=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Directive,args:[{selector:"[matCellDef]",providers:[{provide:U.CdkCellDef,useExisting:n}]}]}],n.ctorParameters=function(){return[]},n}(U.CdkCellDef),Ya=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Directive,args:[{selector:"[matHeaderCellDef]",providers:[{provide:U.CdkHeaderCellDef,useExisting:n}]}]}],n.ctorParameters=function(){return[]},n}(U.CdkHeaderCellDef),Ka=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Directive,args:[{selector:"[matColumnDef]",providers:[{provide:U.CdkColumnDef,useExisting:n}]}]}],n.ctorParameters=function(){return[]},n.propDecorators={name:[{type:e.Input,args:["matColumnDef"]}]},n}(U.CdkColumnDef),$a=function(t){function n(e,n){var r=t.call(this,e,n)||this;return n.nativeElement.classList.add("mat-column-"+e.cssClassFriendlyName),r}return Y(n,t),n.decorators=[{type:e.Directive,args:[{selector:"mat-header-cell",host:{class:"mat-header-cell",role:"columnheader"}}]}],n.ctorParameters=function(){return[{type:U.CdkColumnDef},{type:e.ElementRef}]},n}(U.CdkHeaderCell),Xa=function(t){function n(e,n){var r=t.call(this,e,n)||this;return n.nativeElement.classList.add("mat-column-"+e.cssClassFriendlyName),r}return Y(n,t),n.decorators=[{type:e.Directive,args:[{selector:"mat-cell",host:{class:"mat-cell",role:"gridcell"}}]}],n.ctorParameters=function(){return[{type:U.CdkColumnDef},{type:e.ElementRef}]},n}(U.CdkCell),Qa=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Directive,args:[{selector:"[matHeaderRowDef]",providers:[{provide:U.CdkHeaderRowDef,useExisting:n}],inputs:["columns: matHeaderRowDef"]}]}],n.ctorParameters=function(){return[]},n}(U.CdkHeaderRowDef),Za=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Directive,args:[{selector:"[matRowDef]",providers:[{provide:U.CdkRowDef,useExisting:n}],inputs:["columns: matRowDefColumns","when: matRowDefWhen"]}]}],n.ctorParameters=function(){return[]},n}(U.CdkRowDef),Ja=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Component,args:[{selector:"mat-header-row",template:U.CDK_ROW_TEMPLATE,host:{class:"mat-header-row",role:"row"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,exportAs:"matHeaderRow",preserveWhitespaces:!1}]}],n.ctorParameters=function(){return[]},n}(U.CdkHeaderRow),ts=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Component,args:[{selector:"mat-row",template:U.CDK_ROW_TEMPLATE,host:{class:"mat-row",role:"row"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,exportAs:"matRow",preserveWhitespaces:!1}]}],n.ctorParameters=function(){return[]},n}(U.CdkRow),es=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[U.CdkTableModule,a.CommonModule,Z],exports:[Ga,qa,Ya,Ka,$a,Xa,Ja,ts,Qa,Za],declarations:[Ga,qa,Ya,Ka,$a,Xa,Ja,ts,Qa,Za]}]}],t.ctorParameters=function(){return[]},t}(),ns=function(){function t(t){void 0===t&&(t=[]),this._renderData=new z.BehaviorSubject([]),this._filter=new z.BehaviorSubject(""),this.sortingDataAccessor=function(t,e){var n=t[e];return"string"!=typeof n||n.trim()?isNaN(+n)?n:+n:n},this.filterPredicate=function(t,e){var n=Object.keys(t).reduce(function(e,n){return e+t[n]},"").toLowerCase(),r=e.trim().toLowerCase();return-1!=n.indexOf(r)},this._data=new z.BehaviorSubject(t),this._updateChangeSubscription()}return Object.defineProperty(t.prototype,"data",{get:function(){return this._data.value},set:function(t){this._data.next(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"filter",{get:function(){return this._filter.value},set:function(t){this._filter.next(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sort",{get:function(){return this._sort},set:function(t){this._sort=t,this._updateChangeSubscription()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paginator",{get:function(){return this._paginator},set:function(t){this._paginator=t,this._updateChangeSubscription()},enumerable:!0,configurable:!0}),t.prototype._updateChangeSubscription=function(){var t=this,e=this._sort?this._sort.sortChange:G.empty(),n=this._paginator?this._paginator.page:G.empty();this._renderChangesSubscription&&this._renderChangesSubscription.unsubscribe(),this._renderChangesSubscription=this._data.pipe(W.combineLatest(this._filter),A.map(function(e){var n=e[0];return t._filterData(n)}),W.combineLatest(e.pipe(v.startWith(null))),A.map(function(e){var n=e[0];return t._orderData(n)}),W.combineLatest(n.pipe(v.startWith(null))),A.map(function(e){var n=e[0];return t._pageData(n)})).subscribe(function(e){return t._renderData.next(e)})},t.prototype._filterData=function(t){var e=this;return this.filteredData=this.filter?t.filter(function(t){return e.filterPredicate(t,e.filter)}):t,this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData},t.prototype._orderData=function(t){var e=this;if(!this.sort||!this.sort.active||""==this.sort.direction)return t;var n=this.sort.active,r=this.sort.direction;return t.slice().sort(function(t,i){return(e.sortingDataAccessor(t,n)<e.sortingDataAccessor(i,n)?-1:1)*("asc"==r?1:-1)})},t.prototype._pageData=function(t){if(!this.paginator)return t;var e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice().splice(e,this.paginator.pageSize)},t.prototype._updatePaginator=function(t){var e=this;Promise.resolve().then(function(){if(e.paginator&&(e.paginator.length=t,e.paginator.pageIndex>0)){var n=Math.ceil(e.paginator.length/e.paginator.pageSize)-1||0;e.paginator.pageIndex=Math.min(e.paginator.pageIndex,n)}})},t.prototype.connect=function(){return this._renderData},t.prototype.disconnect=function(){},t}(),rs=function(){function t(t,e){this._elementRef=t,this._ngZone=e}return t.prototype.alignToElement=function(t){var e=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e._setStyles(t)})}):this._setStyles(t)},t.prototype.show=function(){this._elementRef.nativeElement.style.visibility="visible"},t.prototype.hide=function(){this._elementRef.nativeElement.style.visibility="hidden"},t.prototype._setStyles=function(t){var e=this._elementRef.nativeElement;e.style.left=t?(t.offsetLeft||0)+"px":"0",e.style.width=t?(t.offsetWidth||0)+"px":"0"},t.decorators=[{type:e.Directive,args:[{selector:"mat-ink-bar",host:{class:"mat-ink-bar"}}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.NgZone}]},t}(),is=function(t){function n(e,n){return t.call(this,e,n)||this}return Y(n,t),n.decorators=[{type:e.Directive,args:[{selector:"[mat-tab-label], [matTabLabel]"}]}],n.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef}]},n}(p.CdkPortal),os=function(){return function(){}}(),as=J(os),ss=function(t){function n(e){var n=t.call(this)||this;return n._viewContainerRef=e,n.textLabel="",n._contentPortal=null,n._labelChange=new i.Subject,n._disableChange=new i.Subject,n.position=null,n.origin=null,n.isActive=!1,n}return Y(n,t),Object.defineProperty(n.prototype,"content",{get:function(){return this._contentPortal},enumerable:!0,configurable:!0}),n.prototype.ngOnChanges=function(t){t.hasOwnProperty("textLabel")&&this._labelChange.next(),t.hasOwnProperty("disabled")&&this._disableChange.next()},n.prototype.ngOnDestroy=function(){this._disableChange.complete(),this._labelChange.complete()},n.prototype.ngOnInit=function(){this._contentPortal=new p.TemplatePortal(this._content,this._viewContainerRef)},n.decorators=[{type:e.Component,args:[{selector:"mat-tab",template:"<ng-template><ng-content></ng-content></ng-template>",inputs:["disabled"],changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,exportAs:"matTab"}]}],n.ctorParameters=function(){return[{type:e.ViewContainerRef}]},n.propDecorators={templateLabel:[{type:e.ContentChild,args:[is]}],_content:[{type:e.ViewChild,args:[e.TemplateRef]}],textLabel:[{type:e.Input,args:["label"]}]},n}(as),cs={translateTab:_.trigger("translateTab",[_.state("center, void, left-origin-center, right-origin-center",_.style({transform:"none"})),_.state("left",_.style({transform:"translate3d(-100%, 0, 0)"})),_.state("right",_.style({transform:"translate3d(100%, 0, 0)"})),_.transition("* => left, * => right, left => center, right => center",_.animate("500ms cubic-bezier(0.35, 0, 0.25, 1)")),_.transition("void => left-origin-center",[_.style({transform:"translate3d(-100%, 0, 0)"}),_.animate("500ms cubic-bezier(0.35, 0, 0.25, 1)")]),_.transition("void => right-origin-center",[_.style({transform:"translate3d(100%, 0, 0)"}),_.animate("500ms cubic-bezier(0.35, 0, 0.25, 1)")])])},ls=function(t){function n(e,n,r){var i=t.call(this,e,n)||this;return i._host=r,i}return Y(n,t),n.prototype.ngOnInit=function(){var t=this;this._host._isCenterPosition(this._host._position)&&this.attach(this._host._content),this._centeringSub=this._host._beforeCentering.subscribe(function(e){e&&(t.hasAttached()||t.attach(t._host._content))}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){t.detach()})},n.prototype.ngOnDestroy=function(){this._centeringSub&&!this._centeringSub.closed&&this._centeringSub.unsubscribe(),this._leavingSub&&!this._leavingSub.closed&&this._leavingSub.unsubscribe()},n.decorators=[{type:e.Directive,args:[{selector:"[matTabBodyHost]"}]}],n.ctorParameters=function(){return[{type:e.ComponentFactoryResolver},{type:e.ViewContainerRef},{type:us,decorators:[{type:e.Inject,args:[e.forwardRef(function(){return us})]}]}]},n}(p.CdkPortalOutlet),us=function(){function t(t,n){this._elementRef=t,this._dir=n,this._onCentering=new e.EventEmitter,this._beforeCentering=new e.EventEmitter,this._afterLeavingCenter=new e.EventEmitter,this._onCentered=new e.EventEmitter(!0)}return Object.defineProperty(t.prototype,"position",{set:function(t){this._position=t<0?"ltr"==this._getLayoutDirection()?"left":"right":t>0?"ltr"==this._getLayoutDirection()?"right":"left":"center"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"origin",{set:function(t){if(null!=t){var e=this._getLayoutDirection();this._origin="ltr"==e&&t<=0||"rtl"==e&&t>0?"left":"right"}},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){"center"==this._position&&this._origin&&(this._position="left"==this._origin?"left-origin-center":"right-origin-center")},t.prototype._onTranslateTabStarted=function(t){var e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)},t.prototype._onTranslateTabComplete=function(t){this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()},t.prototype._getLayoutDirection=function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},t.prototype._isCenterPosition=function(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t},t.decorators=[{type:e.Component,args:[{selector:"mat-tab-body",template:'<div class="mat-tab-body-content" #content [@translateTab]="_position" (@translateTab.start)="_onTranslateTabStarted($event)" (@translateTab.done)="_onTranslateTabComplete($event)"><ng-template matTabBodyHost></ng-template></div>',styles:[".mat-tab-body-content{-webkit-backface-visibility:hidden;backface-visibility:hidden;height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,animations:[cs.translateTab],host:{class:"mat-tab-body"}}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:n.Directionality,decorators:[{type:e.Optional}]}]},t.propDecorators={_onCentering:[{type:e.Output}],_beforeCentering:[{type:e.Output}],_afterLeavingCenter:[{type:e.Output}],_onCentered:[{type:e.Output}],_content:[{type:e.Input,args:["content"]}],position:[{type:e.Input,args:["position"]}],origin:[{type:e.Input,args:["origin"]}]},t}(),ps=0,hs=function(){return function(){}}(),ds=function(){return function(t){this._elementRef=t}}(),fs=tt(et(ds),"primary"),ms=function(t){function n(n,r){var i=t.call(this,n)||this;return i._changeDetectorRef=r,i._indexToSelect=0,i._tabBodyWrapperHeight=0,i._tabsSubscription=S.Subscription.EMPTY,i._tabLabelSubscription=S.Subscription.EMPTY,i._dynamicHeight=!1,i._selectedIndex=null,i.headerPosition="above",i.selectedIndexChange=new e.EventEmitter,i.focusChange=new e.EventEmitter,i.animationDone=new e.EventEmitter,i.selectedTabChange=new e.EventEmitter(!0),i.selectChange=i.selectedTabChange,i._groupId=ps++,i}return Y(n,t),Object.defineProperty(n.prototype,"dynamicHeight",{get:function(){return this._dynamicHeight},set:function(t){this._dynamicHeight=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_dynamicHeightDeprecated",{get:function(){return this._dynamicHeight},set:function(t){this._dynamicHeight=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(t){this._indexToSelect=r.coerceNumberProperty(t,null)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(t){var e=this._elementRef.nativeElement;e.classList.remove("mat-background-"+this.backgroundColor),t&&e.classList.add("mat-background-"+t),this._backgroundColor=t},enumerable:!0,configurable:!0}),n.prototype.ngAfterContentChecked=function(){var t=this,e=this._indexToSelect=Math.min(this._tabs.length-1,Math.max(this._indexToSelect||0,0));if(this._selectedIndex!=e&&null!=this._selectedIndex){var n=this._createChangeEvent(e);this.selectedTabChange.emit(n),Promise.resolve().then(function(){return t.selectedIndexChange.emit(e)})}this._tabs.forEach(function(n,r){n.position=r-e,n.isActive=r===e,null==t._selectedIndex||0!=n.position||n.origin||(n.origin=e-t._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())},n.prototype.ngAfterContentInit=function(){var t=this;this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){t._subscribeToTabLabels(),t._changeDetectorRef.markForCheck()})},n.prototype.ngOnDestroy=function(){this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()},n.prototype._focusChanged=function(t){this.focusChange.emit(this._createChangeEvent(t))},n.prototype._createChangeEvent=function(t){var e=new hs;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e},n.prototype._subscribeToTabLabels=function(){var t=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=w.merge.apply(void 0,this._tabs.map(function(t){return t._disableChange}).concat(this._tabs.map(function(t){return t._labelChange}))).subscribe(function(){t._changeDetectorRef.markForCheck()})},n.prototype._getTabLabelId=function(t){return"mat-tab-label-"+this._groupId+"-"+t},n.prototype._getTabContentId=function(t){return"mat-tab-content-"+this._groupId+"-"+t},n.prototype._setTabBodyWrapperHeight=function(t){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}},n.prototype._removeTabBodyWrapperHeight=function(){this._tabBodyWrapperHeight=this._tabBodyWrapper.nativeElement.clientHeight,this._tabBodyWrapper.nativeElement.style.height="",this.animationDone.emit()},n.prototype._handleClick=function(t,e,n){t.disabled||(this.selectedIndex=e.focusIndex=n)},n.prototype._getTabIndex=function(t,e){return t.disabled?null:this.selectedIndex===e?0:-1},n.decorators=[{type:e.Component,args:[{selector:"mat-tab-group",exportAs:"matTabGroup",template:'<mat-tab-header #tabHeader [selectedIndex]="selectedIndex" [disableRipple]="disableRipple" (indexFocused)="_focusChanged($event)" (selectFocusedIndex)="selectedIndex = $event"><div class="mat-tab-label" role="tab" matTabLabelWrapper mat-ripple *ngFor="let tab of _tabs; let i = index" [id]="_getTabLabelId(i)" [attr.tabIndex]="_getTabIndex(tab, i)" [attr.aria-controls]="_getTabContentId(i)" [attr.aria-selected]="selectedIndex == i" [class.mat-tab-label-active]="selectedIndex == i" [disabled]="tab.disabled" [matRippleDisabled]="tab.disabled || disableRipple" (click)="_handleClick(tab, tabHeader, i)"><ng-template [ngIf]="tab.templateLabel"><ng-template [cdkPortalOutlet]="tab.templateLabel"></ng-template></ng-template><ng-template [ngIf]="!tab.templateLabel">{{tab.textLabel}}</ng-template></div></mat-tab-header><div class="mat-tab-body-wrapper" #tabBodyWrapper><mat-tab-body role="tabpanel" *ngFor="let tab of _tabs; let i = index" [id]="_getTabContentId(i)" [attr.aria-labelledby]="_getTabLabelId(i)" [class.mat-tab-body-active]="selectedIndex == i" [content]="tab.content" [position]="tab.position" [origin]="tab.origin" (_onCentered)="_removeTabBodyWrapperHeight()" (_onCentering)="_setTabBodyWrapperHeight($event)"></mat-tab-body></div>',styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:0;opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}@media (max-width:600px){.mat-tab-label{padding:0 12px}}@media (max-width:960px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs] .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height .5s cubic-bezier(.35,0,.25,1)}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,inputs:["color","disableRipple"],host:{class:"mat-tab-group","[class.mat-tab-group-dynamic-height]":"dynamicHeight","[class.mat-tab-group-inverted-header]":'headerPosition === "below"'}}]}],n.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ChangeDetectorRef}]},n.propDecorators={_tabs:[{type:e.ContentChildren,args:[ss]}],_tabBodyWrapper:[{type:e.ViewChild,args:["tabBodyWrapper"]}],dynamicHeight:[{type:e.Input}],_dynamicHeightDeprecated:[{type:e.Input,args:["mat-dynamic-height"]}],selectedIndex:[{type:e.Input}],headerPosition:[{type:e.Input}],backgroundColor:[{type:e.Input}],selectedIndexChange:[{type:e.Output}],focusChange:[{type:e.Output}],animationDone:[{type:e.Output}],selectedTabChange:[{type:e.Output}],selectChange:[{type:e.Output}]},n}(fs),gs=function(){return function(){}}(),ys=J(gs),vs=function(t){function n(e){var n=t.call(this)||this;return n.elementRef=e,n}return Y(n,t),n.prototype.focus=function(){this.elementRef.nativeElement.focus()},n.prototype.getOffsetLeft=function(){return this.elementRef.nativeElement.offsetLeft},n.prototype.getOffsetWidth=function(){return this.elementRef.nativeElement.offsetWidth},n.decorators=[{type:e.Directive,args:[{selector:"[matTabLabelWrapper]",inputs:["disabled"],host:{"[class.mat-tab-disabled]":"disabled"}}]}],n.ctorParameters=function(){return[{type:e.ElementRef}]},n}(ys),bs=function(){return function(){}}(),_s=et(bs),ws=function(t){function i(n,r,i,o){var a=t.call(this)||this;return a._elementRef=n,a._changeDetectorRef=r,a._viewportRuler=i,a._dir=o,a._focusIndex=0,a._scrollDistance=0,a._selectedIndexChanged=!1,a._realignInkBar=S.Subscription.EMPTY,a._showPaginationControls=!1,a._disableScrollAfter=!0,a._disableScrollBefore=!0,a._selectedIndex=0,a.selectFocusedIndex=new e.EventEmitter,a.indexFocused=new e.EventEmitter,a}return Y(i,t),Object.defineProperty(i.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(t){t=r.coerceNumberProperty(t),this._selectedIndexChanged=this._selectedIndex!=t,this._selectedIndex=t,this._focusIndex=t},enumerable:!0,configurable:!0}),i.prototype.ngAfterContentChecked=function(){this._tabLabelCount!=this._labelWrappers.length&&(this._updatePagination(),this._tabLabelCount=this._labelWrappers.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())},i.prototype._handleKeydown=function(t){switch(t.keyCode){case c.RIGHT_ARROW:this._focusNextTab();break;case c.LEFT_ARROW:this._focusPreviousTab();break;case c.ENTER:case c.SPACE:this.selectFocusedIndex.emit(this.focusIndex),t.preventDefault()}},i.prototype.ngAfterContentInit=function(){var t=this,e=this._dir?this._dir.change:C.of(null),n=this._viewportRuler.change(150),r=function(){t._updatePagination(),t._alignInkBarToSelectedTab()};"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(r):r(),this._realignInkBar=w.merge(e,n).subscribe(r)},i.prototype.ngOnDestroy=function(){this._realignInkBar.unsubscribe()},i.prototype._onContentChanges=function(){this._updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()},i.prototype._updatePagination=function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()},Object.defineProperty(i.prototype,"focusIndex",{get:function(){return this._focusIndex},set:function(t){this._isValidIndex(t)&&this._focusIndex!=t&&(this._focusIndex=t,this.indexFocused.emit(t),this._setTabFocus(t))},enumerable:!0,configurable:!0}),i.prototype._isValidIndex=function(t){if(!this._labelWrappers)return!0;var e=this._labelWrappers?this._labelWrappers.toArray()[t]:null;return!!e&&!e.disabled},i.prototype._setTabFocus=function(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._labelWrappers&&this._labelWrappers.length){this._labelWrappers.toArray()[t].focus();var e=this._tabListContainer.nativeElement,n=this._getLayoutDirection();e.scrollLeft="ltr"==n?0:e.scrollWidth-e.offsetWidth}},i.prototype._moveFocus=function(t){if(this._labelWrappers)for(var e=this._labelWrappers.toArray(),n=this.focusIndex+t;n<e.length&&n>=0;n+=t)if(this._isValidIndex(n))return void(this.focusIndex=n)},i.prototype._focusNextTab=function(){this._moveFocus("ltr"==this._getLayoutDirection()?1:-1)},i.prototype._focusPreviousTab=function(){this._moveFocus("ltr"==this._getLayoutDirection()?-1:1)},i.prototype._getLayoutDirection=function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},i.prototype._updateTabScrollPosition=function(){var t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform="translate3d("+e+"px, 0, 0)"},Object.defineProperty(i.prototype,"scrollDistance",{get:function(){return this._scrollDistance},set:function(t){this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),t)),this._scrollDistanceChanged=!0,this._checkScrollingControls()},enumerable:!0,configurable:!0}),i.prototype._scrollHeader=function(t){var e=this._tabListContainer.nativeElement.offsetWidth;this.scrollDistance+=("before"==t?-1:1)*e/3},i.prototype._scrollToLabel=function(t){var e=this._labelWrappers?this._labelWrappers.toArray()[t]:null;if(e){var n,r,i=this._tabListContainer.nativeElement.offsetWidth;"ltr"==this._getLayoutDirection()?r=(n=e.getOffsetLeft())+e.getOffsetWidth():n=(r=this._tabList.nativeElement.offsetWidth-e.getOffsetLeft())-e.getOffsetWidth();var o=this.scrollDistance,a=this.scrollDistance+i;n<o?this.scrollDistance-=o-n+60:r>a&&(this.scrollDistance+=r-a+60)}},i.prototype._checkPaginationEnabled=function(){var t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t},i.prototype._checkScrollingControls=function(){this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck()},i.prototype._getMaxScrollDistance=function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0},i.prototype._alignInkBarToSelectedTab=function(){var t=this._labelWrappers&&this._labelWrappers.length?this._labelWrappers.toArray()[this.selectedIndex].elementRef.nativeElement:null;this._inkBar.alignToElement(t)},i.decorators=[{type:e.Component,args:[{selector:"mat-tab-header",template:'<div class="mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4" aria-hidden="true" mat-ripple [matRippleDisabled]="_disableScrollBefore || disableRipple" [class.mat-tab-header-pagination-disabled]="_disableScrollBefore" (click)="_scrollHeader(\'before\')"><div class="mat-tab-header-pagination-chevron"></div></div><div class="mat-tab-label-container" #tabListContainer (keydown)="_handleKeydown($event)"><div class="mat-tab-list" #tabList role="tablist" (cdkObserveContent)="_onContentChanges()"><div class="mat-tab-labels"><ng-content></ng-content></div><mat-ink-bar></mat-ink-bar></div></div><div class="mat-tab-header-pagination mat-tab-header-pagination-after mat-elevation-z4" aria-hidden="true" mat-ripple [matRippleDisabled]="_disableScrollAfter || disableRipple" [class.mat-tab-header-pagination-disabled]="_disableScrollAfter" (click)="_scrollHeader(\'after\')"><div class="mat-tab-header-pagination-chevron"></div></div>',styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:0;opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}@media (max-width:600px){.mat-tab-label{min-width:72px}}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:.5s cubic-bezier(.35,0,.25,1)}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.mat-tab-header-pagination{position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-pagination-after,.mat-tab-header-rtl .mat-tab-header-pagination-before{padding-right:4px}.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:'';height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list{flex-grow:1;position:relative;transition:transform .5s cubic-bezier(.35,0,.25,1)}.mat-tab-labels{display:flex}"],inputs:["disableRipple"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,host:{class:"mat-tab-header","[class.mat-tab-header-pagination-controls-enabled]":"_showPaginationControls","[class.mat-tab-header-rtl]":"_getLayoutDirection() == 'rtl'"}}]}],i.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ChangeDetectorRef},{type:F.ViewportRuler},{type:n.Directionality,decorators:[{type:e.Optional}]}]},i.propDecorators={_labelWrappers:[{type:e.ContentChildren,args:[vs]}],_inkBar:[{type:e.ViewChild,args:[rs]}],_tabListContainer:[{type:e.ViewChild,args:["tabListContainer"]}],_tabList:[{type:e.ViewChild,args:["tabList"]}],selectedIndex:[{type:e.Input}],selectFocusedIndex:[{type:e.Output}],indexFocused:[{type:e.Output}]},i}(_s),Cs=function(){return function(t){this._elementRef=t}}(),xs=et(tt(Cs,"primary")),Es=function(t){function o(e,n,r,o,a){var s=t.call(this,e)||this;return s._dir=n,s._ngZone=r,s._changeDetectorRef=o,s._viewportRuler=a,s._onDestroy=new i.Subject,s._disableRipple=!1,s}return Y(o,t),Object.defineProperty(o.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(t){var e=this._elementRef.nativeElement;e.classList.remove("mat-background-"+this.backgroundColor),t&&e.classList.add("mat-background-"+t),this._backgroundColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=r.coerceBooleanProperty(t),this._setLinkDisableRipple()},enumerable:!0,configurable:!0}),o.prototype.updateActiveLink=function(t){this._activeLinkChanged=this._activeLinkElement!=t,this._activeLinkElement=t,this._activeLinkChanged&&this._changeDetectorRef.markForCheck()},o.prototype.ngAfterContentInit=function(){var t=this;this._ngZone.runOutsideAngular(function(){var e=t._dir?t._dir.change:C.of(null);return w.merge(e,t._viewportRuler.change(10)).pipe(N.takeUntil(t._onDestroy)).subscribe(function(){return t._alignInkBar()})}),this._setLinkDisableRipple()},o.prototype.ngAfterContentChecked=function(){this._activeLinkChanged&&(this._alignInkBar(),this._activeLinkChanged=!1)},o.prototype.ngOnDestroy=function(){this._onDestroy.next(),this._onDestroy.complete()},o.prototype._alignInkBar=function(){this._activeLinkElement&&this._inkBar.alignToElement(this._activeLinkElement.nativeElement)},o.prototype._setLinkDisableRipple=function(){var t=this;this._tabLinks&&this._tabLinks.forEach(function(e){return e.disableRipple=t.disableRipple})},o.decorators=[{type:e.Component,args:[{selector:"[mat-tab-nav-bar]",exportAs:"matTabNavBar, matTabNav",inputs:["color","disableRipple"],template:'<div class="mat-tab-links" (cdkObserveContent)="_alignInkBar()"><ng-content></ng-content><mat-ink-bar></mat-ink-bar></div>',styles:[".mat-tab-nav-bar{overflow:hidden;position:relative;flex-shrink:0}.mat-tab-links{position:relative}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden}.mat-tab-link:focus{outline:0;opacity:1}.mat-tab-link.mat-tab-disabled{cursor:default}@media (max-width:600px){.mat-tab-link{min-width:72px}}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:.5s cubic-bezier(.35,0,.25,1)}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}"],host:{class:"mat-tab-nav-bar"},encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],o.ctorParameters=function(){return[{type:e.ElementRef},{type:n.Directionality,decorators:[{type:e.Optional}]},{type:e.NgZone},{type:e.ChangeDetectorRef},{type:F.ViewportRuler}]},o.propDecorators={_inkBar:[{type:e.ViewChild,args:[rs]}],_tabLinks:[{type:e.ContentChildren,args:[e.forwardRef(function(){return Os}),{descendants:!0}]}],backgroundColor:[{type:e.Input}]},o}(xs),Ss=function(){return function(){}}(),ks=nt(et(J(Ss))),Os=function(t){function n(e,n,r,i,o,a){var s=t.call(this)||this;return s._tabNavBar=e,s._elementRef=n,s._isActive=!1,s.rippleConfig={},s._tabLinkRipple=new At(s,r,n,i),s._tabLinkRipple.setupTriggerEvents(n.nativeElement),s.tabIndex=parseInt(a)||0,o&&(s.rippleConfig={speedFactor:o.baseSpeedFactor}),s}return Y(n,t),Object.defineProperty(n.prototype,"active",{get:function(){return this._isActive},set:function(t){this._isActive=t,t&&this._tabNavBar.updateActiveLink(this._elementRef)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rippleDisabled",{get:function(){return this.disabled||this.disableRipple},enumerable:!0,configurable:!0}),n.prototype.ngOnDestroy=function(){this._tabLinkRipple._removeTriggerEvents()},n.decorators=[{type:e.Directive,args:[{selector:"[mat-tab-link], [matTabLink]",exportAs:"matTabLink",inputs:["disabled","disableRipple","tabIndex"],host:{class:"mat-tab-link","[attr.aria-disabled]":"disabled.toString()","[attr.tabIndex]":"tabIndex","[class.mat-tab-disabled]":"disabled","[class.mat-tab-label-active]":"active"}}]}],n.ctorParameters=function(){return[{type:Es},{type:e.ElementRef},{type:e.NgZone},{type:s.Platform},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Tt]}]},{type:void 0,decorators:[{type:e.Attribute,args:["tabindex"]}]}]},n.propDecorators={active:[{type:e.Input}]},n}(ks),Ps=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule,Z,p.PortalModule,It,E.ObserversModule,F.ScrollDispatchModule],exports:[Z,ms,is,ss,Es,Os],declarations:[ms,is,ss,rs,vs,Es,Os,us,ls,ws],providers:[F.VIEWPORT_RULER_PROVIDER]}]}],t.ctorParameters=function(){return[]},t}(),As=function(){return function(t){this._elementRef=t}}(),Ts=tt(As),Ms=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-toolbar-row",exportAs:"matToolbarRow",host:{class:"mat-toolbar-row"}}]}],t.ctorParameters=function(){return[]},t}(),Is=function(t){function n(e,n){var r=t.call(this,e)||this;return r._platform=n,r}return Y(n,t),n.prototype.ngAfterViewInit=function(){var t=this;e.isDevMode()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return t._checkToolbarMixedModes()}))},n.prototype._checkToolbarMixedModes=function(){this._toolbarRows.length&&([].slice.call(this._elementRef.nativeElement.childNodes).filter(function(t){return!(t.classList&&t.classList.contains("mat-toolbar-row"))}).filter(function(t){return t.nodeType!==Node.COMMENT_NODE}).some(function(t){return t.textContent.trim()})&&Rs())},n.decorators=[{type:e.Component,args:[{selector:"mat-toolbar",exportAs:"matToolbar",template:'<ng-content></ng-content><ng-content select="mat-toolbar-row"></ng-content>',styles:[".mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media (max-width:600px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}"],inputs:["color"],host:{class:"mat-toolbar","[class.mat-toolbar-multiple-rows]":"this._toolbarRows.length","[class.mat-toolbar-single-row]":"!this._toolbarRows.length"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],n.ctorParameters=function(){return[{type:e.ElementRef},{type:s.Platform}]},n.propDecorators={_toolbarRows:[{type:e.ContentChildren,args:[Ms]}]},n}(Ts);function Rs(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `<mat-toolbar-row>` elements explicitly or just place content inside of a `<mat-toolbar>` for a single row.")}var Ds=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[Z,s.PlatformModule],exports:[Is,Ms,Z],declarations:[Is,Ms]}]}],t.ctorParameters=function(){return[]},t}(),Ns=new e.Version("5.1.0");t.VERSION=Ns,t.MatAutocompleteSelectedEvent=le,t.MatAutocompleteBase=ue,t._MatAutocompleteMixinBase=pe,t.MatAutocomplete=he,t.MatAutocompleteModule=be,t.AUTOCOMPLETE_OPTION_HEIGHT=48,t.AUTOCOMPLETE_PANEL_HEIGHT=256,t.MAT_AUTOCOMPLETE_SCROLL_STRATEGY=de,t.MAT_AUTOCOMPLETE_SCROLL_STRATEGY_PROVIDER_FACTORY=fe,t.MAT_AUTOCOMPLETE_SCROLL_STRATEGY_PROVIDER=me,t.MAT_AUTOCOMPLETE_VALUE_ACCESSOR=ge,t.getMatAutocompleteMissingPanelError=ye,t.MatAutocompleteTrigger=ve,t.MatButtonModule=Te,t.MatButtonCssMatStyler=we,t.MatRaisedButtonCssMatStyler=Ce,t.MatIconButtonCssMatStyler=xe,t.MatFab=Ee,t.MatMiniFab=Se,t.MatButtonBase=ke,t._MatButtonMixinBase=Oe,t.MatButton=Pe,t.MatAnchor=Ae,t.MatButtonToggleGroupBase=Me,t._MatButtonToggleGroupMixinBase=Ie,t.MAT_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR=Re,t.MatButtonToggleChange=Ne,t.MatButtonToggleGroup=Le,t.MatButtonToggleGroupMultiple=je,t.MatButtonToggle=Fe,t.MatButtonToggleModule=Ve,t.MatCardContent=Be,t.MatCardTitle=Ue,t.MatCardSubtitle=He,t.MatCardActions=ze,t.MatCardFooter=We,t.MatCardImage=Ge,t.MatCardSmImage=qe,t.MatCardMdImage=Ye,t.MatCardLgImage=Ke,t.MatCardXlImage=$e,t.MatCardAvatar=Xe,t.MatCard=Qe,t.MatCardHeader=Ze,t.MatCardTitleGroup=Je,t.MatCardModule=tn,t.MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR=rn,t.TransitionCheckState=on,t.MatCheckboxChange=an,t.MatCheckboxBase=sn,t._MatCheckboxMixinBase=cn,t.MatCheckbox=ln,t.MAT_CHECKBOX_CLICK_ACTION=en,t.MatCheckboxModule=hn,t.MAT_CHECKBOX_REQUIRED_VALIDATOR=un,t.MatCheckboxRequiredValidator=pn,t.MatChipsModule=Sn,t.MatChipListBase=bn,t._MatChipListMixinBase=_n,t.MatChipListChange=Cn,t.MatChipList=xn,t.MatChipSelectionChange=dn,t.MatChipBase=fn,t._MatChipMixinBase=mn,t.MatBasicChip=gn,t.MatChip=yn,t.MatChipRemove=vn,t.MatChipInput=En,t.MAT_PLACEHOLDER_GLOBAL_OPTIONS=Wt,t.AnimationCurves=$,t.AnimationDurations=X,t.MatCommonModule=Z,t.MATERIAL_SANITY_CHECKS=Q,t.mixinDisabled=J,t.mixinColor=tt,t.mixinDisableRipple=et,t.mixinTabIndex=nt,t.mixinErrorState=rt,t.NativeDateModule=gt,t.MatNativeDateModule=vt,t.MAT_DATE_LOCALE=it,t.MAT_DATE_LOCALE_PROVIDER=ot,t.DateAdapter=at,t.MAT_DATE_FORMATS=st,t.NativeDateAdapter=ft,t.MAT_NATIVE_DATE_FORMATS=mt,t.ShowOnDirtyErrorStateMatcher=bt,t.ErrorStateMatcher=_t,t.MAT_HAMMER_OPTIONS=wt,t.GestureConfig=Ct,t.MatLine=xt,t.MatLineSetter=Et,t.MatLineModule=St,t.MatOptionModule=zt,t.MatOptionSelectionChange=Bt,t.MAT_OPTION_PARENT_COMPONENT=Ut,t.MatOption=Ht,t.MatOptgroupBase=Nt,t._MatOptgroupMixinBase=Lt,t.MatOptgroup=Ft,t.MAT_LABEL_GLOBAL_OPTIONS=Wt,t.MatRippleModule=It,t.MAT_RIPPLE_GLOBAL_OPTIONS=Tt,t.MatRipple=Mt,t.RippleState=kt,t.RippleRef=Ot,t.RIPPLE_FADE_IN_DURATION=450,t.RIPPLE_FADE_OUT_DURATION=400,t.RippleRenderer=At,t.MatPseudoCheckboxModule=Dt,t.MatPseudoCheckbox=Rt,t.applyCssTransform=Gt,t.JAN=0,t.FEB=1,t.MAR=2,t.APR=3,t.MAY=4,t.JUN=5,t.JUL=6,t.AUG=7,t.SEP=8,t.OCT=9,t.NOV=10,t.DEC=11,t.ɵa31=yr,t.MatDatepickerModule=Mr,t.MatCalendar=br,t.MatCalendarCell=fr,t.MatCalendarBody=mr,t.MAT_DATEPICKER_SCROLL_STRATEGY=wr,t.MAT_DATEPICKER_SCROLL_STRATEGY_PROVIDER_FACTORY=Cr,t.MAT_DATEPICKER_SCROLL_STRATEGY_PROVIDER=xr,t.MatDatepickerContent=Er,t.MatDatepicker=Sr,t.MAT_DATEPICKER_VALUE_ACCESSOR=kr,t.MAT_DATEPICKER_VALIDATORS=Or,t.MatDatepickerInputEvent=Pr,t.MatDatepickerInput=Ar,t.MatDatepickerIntl=dr,t.MatDatepickerToggle=Tr,t.MatMonthView=gr,t.MatYearView=vr,t.MatDialogModule=zn,t.MAT_DIALOG_DATA=In,t.MAT_DIALOG_DEFAULT_OPTIONS=Rn,t.MAT_DIALOG_SCROLL_STRATEGY=Dn,t.MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY=Nn,t.MAT_DIALOG_SCROLL_STRATEGY_PROVIDER=Ln,t.MatDialog=jn,t.throwMatDialogContentAlreadyAttachedError=Pn,t.MatDialogContainer=An,t.MatDialogClose=Vn,t.MatDialogTitle=Bn,t.MatDialogContent=Un,t.MatDialogActions=Hn,t.MatDialogConfig=kn,t.MatDialogRef=Mn,t.matDialogAnimations=On,t.MatDivider=Ir,t.MatDividerModule=Rr,t.MatExpansionModule=Gr,t.MatAccordion=Dr,t.MatExpansionPanelBase=Fr,t._MatExpansionPanelMixinBase=Vr,t.MatExpansionPanel=Br,t.MatExpansionPanelActionRow=Ur,t.MatExpansionPanelHeader=Hr,t.MatExpansionPanelDescription=zr,t.MatExpansionPanelTitle=Wr,t.MatExpansionPanelContent=Nr,t.EXPANSION_PANEL_ANIMATION_TIMING=Lr,t.matExpansionAnimations=jr,t.MatFormFieldModule=se,t.MatError=Yt,t.MatFormField=ae,t.MatFormFieldControl=Kt,t.getMatFormFieldPlaceholderConflictError=$t,t.getMatFormFieldDuplicatedHintError=Xt,t.getMatFormFieldMissingControlError=Qt,t.MatHint=Jt,t.MatPlaceholder=te,t.MatPrefix=ne,t.MatSuffix=re,t.MatLabel=ee,t.matFormFieldAnimations=ie,t.MatGridListModule=ci,t.MatGridList=si,t.MatGridTile=Kr,t.MatGridTileText=$r,t.MatGridAvatarCssMatStyler=Xr,t.MatGridTileHeaderCssMatStyler=Qr,t.MatGridTileFooterCssMatStyler=Zr,t.MatIconModule=nr,t.MatIconBase=Jn,t._MatIconMixinBase=tr,t.MatIcon=er,t.getMatIconNameNotFoundError=Wn,t.getMatIconNoHttpProviderError=Gn,t.getMatIconFailedToSanitizeError=qn,t.MatIconRegistry=Kn,t.ICON_REGISTRY_PROVIDER_FACTORY=$n,t.ICON_REGISTRY_PROVIDER=Xn,t.MatInputModule=pr,t.MatTextareaAutosize=rr,t.MatInputBase=cr,t._MatInputMixinBase=lr,t.MatInput=ur,t.getMatInputUnsupportedTypeError=ir,t.MAT_INPUT_VALUE_ACCESSOR=or,t.MatListModule=Pi,t.MatListBase=li,t._MatListMixinBase=ui,t.MatListItemBase=pi,t._MatListItemMixinBase=hi,t.MatNavList=di,t.MatList=fi,t.MatListAvatarCssMatStyler=mi,t.MatListIconCssMatStyler=gi,t.MatListSubheaderCssMatStyler=yi,t.MatListItem=vi,t.MatSelectionListBase=bi,t._MatSelectionListMixinBase=_i,t.MatListOptionBase=wi,t._MatListOptionMixinBase=Ci,t.MAT_SELECTION_LIST_VALUE_ACCESSOR=xi,t.MatListOptionChange=Ei,t.MatSelectionListChange=Si,t.MatListOption=ki,t.MatSelectionList=Oi,t.ɵa20=Ii,t.ɵb20=Ri,t.ɵd20=Vi,t.ɵc20=Fi,t.MAT_MENU_SCROLL_STRATEGY=ji,t.MatMenuModule=Hi,t.MatMenu=Li,t.MAT_MENU_DEFAULT_OPTIONS=Ni,t.MatMenuItem=Di,t.MatMenuTrigger=Bi,t.matMenuAnimations=Ai,t.fadeInItems=Ti,t.transformMenu=Mi,t.MatPaginatorModule=_o,t.PageEvent=vo,t.MatPaginator=bo,t.MatPaginatorIntl=mo,t.MAT_PAGINATOR_INTL_PROVIDER_FACTORY=go,t.MAT_PAGINATOR_INTL_PROVIDER=yo,t.MatProgressBarModule=xo,t.MatProgressBar=wo,t.MatProgressSpinnerModule=Ao,t.MatProgressSpinnerBase=So,t._MatProgressSpinnerMixinBase=ko,t.MatProgressSpinner=Oo,t.MatSpinner=Po,t.MatRadioModule=Vo,t.MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR=Mo,t.MatRadioChange=Io,t.MatRadioGroupBase=Ro,t._MatRadioGroupMixinBase=Do,t.MatRadioGroup=No,t.MatRadioButtonBase=Lo,t._MatRadioButtonMixinBase=jo,t.MatRadioButton=Fo,t.MatSelectModule=eo,t.SELECT_PANEL_MAX_HEIGHT=256,t.SELECT_PANEL_PADDING_X=16,t.SELECT_PANEL_INDENT_PADDING_X=32,t.SELECT_ITEM_HEIGHT_EM=3,t.SELECT_MULTIPLE_PANEL_PADDING_X=44,t.SELECT_PANEL_VIEWPORT_PADDING=8,t.MAT_SELECT_SCROLL_STRATEGY=Yi,t.MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY=Ki,t.MAT_SELECT_SCROLL_STRATEGY_PROVIDER=$i,t.MatSelectChange=Xi,t.MatSelectBase=Qi,t._MatSelectMixinBase=Zi,t.MatSelectTrigger=Ji,t.MatSelect=to,t.matSelectAnimations=zi,t.transformPanel=Wi,t.fadeInContent=Gi,t.MatSidenavModule=Xo,t.throwMatDuplicatedDrawerError=Uo,t.MatDrawerToggleResult=Ho,t.MAT_DRAWER_DEFAULT_AUTOSIZE=zo,t.MatDrawerContent=Wo,t.MatDrawer=Go,t.MatDrawerContainer=qo,t.MatSidenavContent=Yo,t.MatSidenav=Ko,t.MatSidenavContainer=$o,t.matDrawerAnimations=Bo,t.MatSlideToggleModule=ia,t.MAT_SLIDE_TOGGLE_VALUE_ACCESSOR=Zo,t.MatSlideToggleChange=Jo,t.MatSlideToggleBase=ta,t._MatSlideToggleMixinBase=ea,t.MatSlideToggle=na,t.MatSliderModule=ua,t.MAT_SLIDER_VALUE_ACCESSOR=oa,t.MatSliderChange=aa,t.MatSliderBase=sa,t._MatSliderMixinBase=ca,t.MatSlider=la,t.MatSnackBarModule=wa,t.MatSnackBar=ba,t.MatSnackBarContainer=va,t.MAT_SNACK_BAR_DATA=ha,t.MatSnackBarConfig=da,t.MatSnackBarRef=pa,t.SimpleSnackBar=ya,t.SHOW_ANIMATION=fa,t.HIDE_ANIMATION=ma,t.matSnackBarAnimations=ga,t.MatSortModule=Ra,t.MatSortHeaderBase=Ta,t._MatSortHeaderMixinBase=Ma,t.MatSortHeader=Ia,t.MatSortHeaderIntl=Sa,t.MAT_SORT_HEADER_INTL_PROVIDER_FACTORY=ka,t.MAT_SORT_HEADER_INTL_PROVIDER=Oa,t.MatSortBase=Ca,t._MatSortMixinBase=xa,t.MatSort=Ea,t.matSortAnimations=Aa,t.MatStepperModule=Wa,t.MatStepLabel=Da,t.MatStep=Fa,t.MatStepper=Va,t.MatHorizontalStepper=Ba,t.MatVerticalStepper=Ua,t.MatStepperNext=Ha,t.MatStepperPrevious=za,t.MatStepHeader=La,t.MatStepperIntl=Na,t.matStepperAnimations=ja,t.MatTableModule=es,t.MatCellDef=qa,t.MatHeaderCellDef=Ya,t.MatColumnDef=Ka,t.MatHeaderCell=$a,t.MatCell=Xa,t.MatTable=Ga,t.MatHeaderRowDef=Qa,t.MatRowDef=Za,t.MatHeaderRow=Ja,t.MatRow=ts,t.MatTableDataSource=ns,t.ɵe22=os,t.ɵf22=as,t.ɵa22=bs,t.ɵb22=_s,t.ɵc22=gs,t.ɵd22=ys,t.ɵi22=Ss,t.ɵg22=Cs,t.ɵj22=ks,t.ɵh22=xs,t.MatInkBar=rs,t.MatTabBody=us,t.MatTabBodyPortal=ls,t.MatTabHeader=ws,t.MatTabLabelWrapper=vs,t.MatTab=ss,t.MatTabLabel=is,t.MatTabNav=Es,t.MatTabLink=Os,t.MatTabsModule=Ps,t.MatTabChangeEvent=hs,t.MatTabGroupBase=ds,t._MatTabGroupMixinBase=fs,t.MatTabGroup=ms,t.matTabsAnimations=cs,t.MatToolbarModule=Ds,t.MatToolbarBase=As,t._MatToolbarMixinBase=Ts,t.MatToolbarRow=Ms,t.MatToolbar=Is,t.throwToolbarMixedModesError=Rs,t.MatTooltipModule=fo,t.SCROLL_THROTTLE_MS=ro,t.TOOLTIP_PANEL_CLASS=io,t.getMatTooltipInvalidPositionError=oo,t.MAT_TOOLTIP_SCROLL_STRATEGY=ao,t.MAT_TOOLTIP_SCROLL_STRATEGY_PROVIDER_FACTORY=so,t.MAT_TOOLTIP_SCROLL_STRATEGY_PROVIDER=co,t.MAT_TOOLTIP_DEFAULT_OPTIONS=lo,t.MatTooltip=uo,t.TooltipComponent=po,t.matTooltipAnimations=no,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("@angular/cdk/bidi"),t("@angular/cdk/coercion"),t("rxjs/Subject"),t("@angular/platform-browser"),t("@angular/common"),t("@angular/cdk/platform"),t("@angular/cdk/keycodes"),t("@angular/cdk/a11y"),t("@angular/cdk/overlay"),t("@angular/cdk/portal"),t("rxjs/operators/filter"),t("rxjs/operators/take"),t("rxjs/operators/switchMap"),t("rxjs/operators/tap"),t("rxjs/operators/delay"),t("@angular/forms"),t("rxjs/operators/startWith"),t("rxjs/observable/fromEvent"),t("@angular/animations"),t("rxjs/observable/merge"),t("rxjs/observable/of"),t("@angular/cdk/collections"),t("@angular/cdk/observers"),t("rxjs/Subscription"),t("rxjs/observable/defer"),t("rxjs/operators/catchError"),t("rxjs/operators/finalize"),t("rxjs/operators/map"),t("rxjs/operators/share"),t("@angular/common/http"),t("rxjs/observable/forkJoin"),t("rxjs/observable/throw"),t("rxjs/operators/auditTime"),t("rxjs/operators/takeUntil"),t("@angular/cdk/accordion"),t("rxjs/Observable"),t("@angular/cdk/scrolling"),t("rxjs/operators/debounceTime"),t("@angular/cdk/layout"),t("@angular/cdk/table"),t("@angular/cdk/stepper"),t("rxjs/BehaviorSubject"),t("rxjs/operators/combineLatest"),t("rxjs/observable/empty")):i((r.ng=r.ng||{},r.ng.material=r.ng.material||{}),r.ng.core,r.ng.cdk.bidi,r.ng.cdk.coercion,r.Rx,r.ng.platformBrowser,r.ng.common,r.ng.cdk.platform,r.ng.cdk.keycodes,r.ng.cdk.a11y,r.ng.cdk.overlay,r.ng.cdk.portal,r.Rx.operators,r.Rx.operators,r.Rx.operators,r.Rx.operators,r.Rx.operators,r.ng.forms,r.Rx.operators,r.Rx.Observable,r.ng.animations,r.Rx.Observable,r.Rx.Observable,r.ng.cdk.collections,r.ng.cdk.observers,r.Rx,r.Rx.Observable,r.Rx.operators,r.Rx.operators,r.Rx.operators,r.Rx.operators,r.ng.common.http,r.Rx.Observable,r.Rx.Observable,r.Rx.operators,r.Rx.operators,r.ng.cdk.accordion,r.Rx,r.ng.cdk.scrolling,r.Rx.operators,r.ng.cdk.layout,r.ng.cdk.table,r.ng.cdk.stepper,r.Rx,r.Rx.operators,r.Rx.Observable)},{"@angular/animations":39,"@angular/cdk/a11y":40,"@angular/cdk/accordion":41,"@angular/cdk/bidi":42,"@angular/cdk/coercion":43,"@angular/cdk/collections":44,"@angular/cdk/keycodes":45,"@angular/cdk/layout":46,"@angular/cdk/observers":47,"@angular/cdk/overlay":48,"@angular/cdk/platform":49,"@angular/cdk/portal":50,"@angular/cdk/scrolling":51,"@angular/cdk/stepper":52,"@angular/cdk/table":53,"@angular/common":55,"@angular/common/http":54,"@angular/core":57,"@angular/forms":58,"@angular/platform-browser":62,"rxjs/BehaviorSubject":64,"rxjs/Observable":67,"rxjs/Subject":71,"rxjs/Subscription":74,"rxjs/observable/defer":91,"rxjs/observable/empty":92,"rxjs/observable/forkJoin":93,"rxjs/observable/fromEvent":95,"rxjs/observable/merge":98,"rxjs/observable/of":99,"rxjs/observable/throw":100,"rxjs/operators/auditTime":115,"rxjs/operators/catchError":116,"rxjs/operators/combineLatest":117,"rxjs/operators/debounceTime":120,"rxjs/operators/delay":122,"rxjs/operators/filter":124,"rxjs/operators/finalize":125,"rxjs/operators/map":128,"rxjs/operators/share":136,"rxjs/operators/startWith":137,"rxjs/operators/switchMap":138,"rxjs/operators/take":139,"rxjs/operators/takeUntil":141,"rxjs/operators/tap":142}],60:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i){"use strict";var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function a(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var s,c=((s=new Map).set(e.Identifiers.ANALYZE_FOR_ENTRY_COMPONENTS,n.ANALYZE_FOR_ENTRY_COMPONENTS),s.set(e.Identifiers.ElementRef,n.ElementRef),s.set(e.Identifiers.NgModuleRef,n.NgModuleRef),s.set(e.Identifiers.ViewContainerRef,n.ViewContainerRef),s.set(e.Identifiers.ChangeDetectorRef,n.ChangeDetectorRef),s.set(e.Identifiers.QueryList,n.QueryList),s.set(e.Identifiers.TemplateRef,n.TemplateRef),s.set(e.Identifiers.CodegenComponentFactoryResolver,n.ɵCodegenComponentFactoryResolver),s.set(e.Identifiers.ComponentFactoryResolver,n.ComponentFactoryResolver),s.set(e.Identifiers.ComponentFactory,n.ComponentFactory),s.set(e.Identifiers.ComponentRef,n.ComponentRef),s.set(e.Identifiers.NgModuleFactory,n.NgModuleFactory),s.set(e.Identifiers.createModuleFactory,n.ɵcmf),s.set(e.Identifiers.moduleDef,n.ɵmod),s.set(e.Identifiers.moduleProviderDef,n.ɵmpd),s.set(e.Identifiers.RegisterModuleFactoryFn,n.ɵregisterModuleFactory),s.set(e.Identifiers.Injector,n.Injector),s.set(e.Identifiers.ViewEncapsulation,n.ViewEncapsulation),s.set(e.Identifiers.ChangeDetectionStrategy,n.ChangeDetectionStrategy),s.set(e.Identifiers.SecurityContext,n.SecurityContext),s.set(e.Identifiers.LOCALE_ID,n.LOCALE_ID),s.set(e.Identifiers.TRANSLATIONS_FORMAT,n.TRANSLATIONS_FORMAT),s.set(e.Identifiers.inlineInterpolate,n.ɵinlineInterpolate),s.set(e.Identifiers.interpolate,n.ɵinterpolate),s.set(e.Identifiers.EMPTY_ARRAY,n.ɵEMPTY_ARRAY),s.set(e.Identifiers.EMPTY_MAP,n.ɵEMPTY_MAP),s.set(e.Identifiers.Renderer,n.Renderer),s.set(e.Identifiers.viewDef,n.ɵvid),s.set(e.Identifiers.elementDef,n.ɵeld),s.set(e.Identifiers.anchorDef,n.ɵand),s.set(e.Identifiers.textDef,n.ɵted),s.set(e.Identifiers.directiveDef,n.ɵdid),s.set(e.Identifiers.providerDef,n.ɵprd),s.set(e.Identifiers.queryDef,n.ɵqud),s.set(e.Identifiers.pureArrayDef,n.ɵpad),s.set(e.Identifiers.pureObjectDef,n.ɵpod),s.set(e.Identifiers.purePipeDef,n.ɵppd),s.set(e.Identifiers.pipeDef,n.ɵpid),s.set(e.Identifiers.nodeValue,n.ɵnov),s.set(e.Identifiers.ngContentDef,n.ɵncd),s.set(e.Identifiers.unwrapValue,n.ɵunv),s.set(e.Identifiers.createRendererType2,n.ɵcrt),s.set(e.Identifiers.createComponentFactory,n.ɵccf),s),l=function(){function t(){this.builtinExternalReferences=new Map,this.reflectionCapabilities=new n.ɵReflectionCapabilities}return t.prototype.componentModuleUrl=function(t,r){var i=r.moduleId;if("string"==typeof i)return e.getUrlScheme(i)?i:"package:"+i;if(null!==i&&void 0!==i)throw e.syntaxError('moduleId should be a string in "'+n.ɵstringify(t)+"\". 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"./"+n.ɵstringify(t)},t.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},t.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},t.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},t.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},t.prototype.guards=function(t){return this.reflectionCapabilities.guards(t)},t.prototype.resolveExternalReference=function(t){return c.get(t)||t.runtime},t}();var u=new n.InjectionToken("ErrorCollector"),p={provide:n.PACKAGE_ROOT_URL,useValue:"/"},h={get:function(t){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+t+'"')}},d=new n.InjectionToken("HtmlParser"),f=function(){function t(t,n,r,i,o,a,s,c,l,u){this._metadataResolver=n,this._delegate=new e.JitCompiler(n,r,i,o,a,s,c,l,u,this.getExtraNgModuleProviders.bind(this)),this.injector=t}return t.prototype.getExtraNgModuleProviders=function(){return[this._metadataResolver.getProviderMetadata(new e.ProviderMeta(n.Compiler,{useValue:this}))]},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){var e=this._delegate.compileModuleAndAllComponentsSync(t);return{ngModuleFactory:e.ngModuleFactory,componentFactories:e.componentFactories}},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._delegate.compileModuleAndAllComponentsAsync(t).then(function(t){return{ngModuleFactory:t.ngModuleFactory,componentFactories:t.componentFactories}})},t.prototype.loadAotSummaries=function(t){this._delegate.loadAotSummaries(t)},t.prototype.hasAotSummary=function(t){return this._delegate.hasAotSummary(t)},t.prototype.getComponentFactory=function(t){return this._delegate.getComponentFactory(t)},t.prototype.clearCache=function(){this._delegate.clearCache()},t.prototype.clearCacheFor=function(t){this._delegate.clearCacheFor(t)},t}(),m=[{provide:e.CompileReflector,useValue:new l},{provide:e.ResourceLoader,useValue:h},{provide:e.JitSummaryResolver,deps:[]},{provide:e.SummaryResolver,useExisting:e.JitSummaryResolver},{provide:n.ɵConsole,deps:[]},{provide:e.Lexer,deps:[]},{provide:e.Parser,deps:[e.Lexer]},{provide:d,useClass:e.HtmlParser,deps:[]},{provide:e.I18NHtmlParser,useFactory:function(t,r,i,o,a){var s=(r=r||"")?o.missingTranslation:n.MissingTranslationStrategy.Ignore;return new e.I18NHtmlParser(t,r,i,s,a)},deps:[d,[new n.Optional,new n.Inject(n.TRANSLATIONS)],[new n.Optional,new n.Inject(n.TRANSLATIONS_FORMAT)],[e.CompilerConfig],[n.ɵConsole]]},{provide:e.HtmlParser,useExisting:e.I18NHtmlParser},{provide:e.TemplateParser,deps:[e.CompilerConfig,e.CompileReflector,e.Parser,e.ElementSchemaRegistry,e.I18NHtmlParser,n.ɵConsole]},{provide:e.DirectiveNormalizer,deps:[e.ResourceLoader,e.UrlResolver,e.HtmlParser,e.CompilerConfig]},{provide:e.CompileMetadataResolver,deps:[e.CompilerConfig,e.HtmlParser,e.NgModuleResolver,e.DirectiveResolver,e.PipeResolver,e.SummaryResolver,e.ElementSchemaRegistry,e.DirectiveNormalizer,n.ɵConsole,[n.Optional,e.StaticSymbolCache],e.CompileReflector,[n.Optional,u]]},p,{provide:e.StyleCompiler,deps:[e.UrlResolver]},{provide:e.ViewCompiler,deps:[e.CompileReflector]},{provide:e.NgModuleCompiler,deps:[e.CompileReflector]},{provide:e.CompilerConfig,useValue:new e.CompilerConfig},{provide:n.Compiler,useClass:f,deps:[n.Injector,e.CompileMetadataResolver,e.TemplateParser,e.StyleCompiler,e.ViewCompiler,e.NgModuleCompiler,e.SummaryResolver,e.CompileReflector,e.CompilerConfig,n.ɵConsole]},{provide:e.DomElementSchemaRegistry,deps:[]},{provide:e.ElementSchemaRegistry,useExisting:e.DomElementSchemaRegistry},{provide:e.UrlResolver,deps:[n.PACKAGE_ROOT_URL]},{provide:e.DirectiveResolver,deps:[e.CompileReflector]},{provide:e.PipeResolver,deps:[e.CompileReflector]},{provide:e.NgModuleResolver,deps:[e.CompileReflector]}],g=function(){function t(t){var e={useJit:!0,defaultEncapsulation:n.ViewEncapsulation.Emulated,missingTranslation:n.MissingTranslationStrategy.Warning,enableLegacyTemplate:!1};this._defaultOptions=[e].concat(t)}return t.prototype.createCompiler=function(t){void 0===t&&(t=[]);var r,i,o,a={useJit:y((r=this._defaultOptions.concat(t)).map(function(t){return t.useJit})),defaultEncapsulation:y(r.map(function(t){return t.defaultEncapsulation})),providers:(i=r.map(function(t){return t.providers}),o=[],i.forEach(function(t){return t&&o.push.apply(o,t)}),o),missingTranslation:y(r.map(function(t){return t.missingTranslation})),enableLegacyTemplate:y(r.map(function(t){return t.enableLegacyTemplate})),preserveWhitespaces:y(r.map(function(t){return t.preserveWhitespaces}))};return n.Injector.create([m,{provide:e.CompilerConfig,useFactory:function(){return new e.CompilerConfig({useJit:a.useJit,jitDevMode:n.isDevMode(),defaultEncapsulation:a.defaultEncapsulation,missingTranslation:a.missingTranslation,enableLegacyTemplate:a.enableLegacyTemplate,preserveWhitespaces:a.preserveWhitespaces})},deps:[]},a.providers]).get(n.Compiler)},t}();function y(t){for(var e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e]}var v=n.createPlatformFactory(n.platformCore,"coreDynamic",[{provide:n.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:n.CompilerFactory,useClass:g,deps:[n.COMPILER_OPTIONS]}]),b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.get=function(t){var e,n,r=new Promise(function(t,r){e=t,n=r}),i=new XMLHttpRequest;return i.open("GET",t,!0),i.responseType="text",i.onload=function(){var r=i.response||i.responseText,o=1223===i.status?204:i.status;0===o&&(o=r?200:0),200<=o&&o<=300?e(r):n("Failed to load "+t)},i.onerror=function(){n("Failed to load "+t)},i.send(),r},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[]},e}(e.ResourceLoader),_=[i.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS,{provide:n.COMPILER_OPTIONS,useValue:{providers:[{provide:e.ResourceLoader,useClass:b,deps:[]}]},multi:!0},{provide:n.PLATFORM_ID,useValue:r.ɵPLATFORM_BROWSER_ID}],w=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 a(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("5.2.0"),x=[{provide:e.ResourceLoader,useClass:w,deps:[]}],E=n.createPlatformFactory(v,"browserDynamic",_);t.VERSION=C,t.JitCompilerFactory=g,t.RESOURCE_CACHE_PROVIDER=x,t.platformBrowserDynamic=E,t.ɵCompilerImpl=f,t.ɵplatformCoreDynamic=v,t.ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS=_,t.ɵResourceLoaderImpl=b,t.ɵa=w,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/compiler"),t("@angular/core"),t("@angular/common"),t("@angular/platform-browser")):i((r.ng=r.ng||{},r.ng.platformBrowserDynamic={}),r.ng.compiler,r.ng.core,r.ng.common,r.ng.platformBrowser)},{"@angular/common":55,"@angular/compiler":56,"@angular/core":57,"@angular/platform-browser":62}],61:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i){"use strict";var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function a(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var s=function(t){function i(n,r){var i=t.call(this)||this;i._nextAnimationId=0;var o={id:"0",encapsulation:e.ViewEncapsulation.None,styles:[],data:{animation:[]}};return i._renderer=n.createRenderer(r.body,o),i}return a(i,t),i.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?r.sequence(t):t;return u(this._renderer,null,e,"register",[n]),new c(e,this._renderer)},i.decorators=[{type:e.Injectable}],i.ctorParameters=function(){return[{type:e.RendererFactory2},{type:void 0,decorators:[{type:e.Inject,args:[n.DOCUMENT]}]}]},i}(r.AnimationBuilder),c=function(t){function e(e,n){var r=t.call(this)||this;return r._id=e,r._renderer=n,r}return a(e,t),e.prototype.create=function(t,e){return new l(this._id,t,e||{},this._renderer)},e}(r.AnimationFactory),l=function(){function t(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return t.prototype._listen=function(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)},t.prototype._command=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return u(this._renderer,this.element,this.id,t,e)},t.prototype.onDone=function(t){this._listen("done",t)},t.prototype.onStart=function(t){this._listen("start",t)},t.prototype.onDestroy=function(t){this._listen("destroy",t)},t.prototype.init=function(){this._command("init")},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this._command("play"),this._started=!0},t.prototype.pause=function(){this._command("pause")},t.prototype.restart=function(){this._command("restart")},t.prototype.finish=function(){this._command("finish")},t.prototype.destroy=function(){this._command("destroy")},t.prototype.reset=function(){this._command("reset")},t.prototype.setPosition=function(t){this._command("setPosition",t)},t.prototype.getPosition=function(){return 0},t}();function u(t,e,n,r,i){return t.setProperty(e,"@@"+n+":"+r,i)}var p="@.disabled",h=function(){function t(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=function(t,e){e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}return t.prototype.createRenderer=function(t,e){var n=this,r=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){var i=this._rendererCache.get(r);return i||(i=new d("",r,this.engine),this._rendererCache.set(r,i)),i}var o=e.id,a=e.id+"-"+this._currentId;return this._currentId++,this.engine.register(a,t),e.data.animation.forEach(function(e){return n.engine.registerTrigger(o,a,t,e.name,e)}),new f(this,a,r,this.engine)},t.prototype.begin=function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()},t.prototype._scheduleCountTask=function(){var t=this;Zone.current.scheduleMicroTask("incremenet the animation microtask",function(){return t._microtaskId++})},t.prototype.scheduleListenerCallback=function(t,e,n){var r=this;t>=0&&t<this._microtaskId?this._zone.run(function(){return e(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){r._zone.run(function(){r._animationCallbacksBuffer.forEach(function(t){(0,t[0])(t[1])}),r._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))},t.prototype.end=function(){var t=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){t._scheduleCountTask(),t.engine.flush(t._microtaskId)}),this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.engine.whenRenderingDone()},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:e.RendererFactory2},{type:i.ɵAnimationEngine},{type:e.NgZone}]},t}(),d=function(){function t(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?function(t){return e.destroyNode(t)}:null}return Object.defineProperty(t.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()},t.prototype.createElement=function(t,e){return this.delegate.createElement(t,e)},t.prototype.createComment=function(t){return this.delegate.createComment(t)},t.prototype.createText=function(t){return this.delegate.createText(t)},t.prototype.appendChild=function(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)},t.prototype.insertBefore=function(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)},t.prototype.removeChild=function(t,e){this.engine.onRemove(this.namespaceId,e,this.delegate)},t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setAttribute=function(t,e,n,r){this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){"@"==e.charAt(0)&&e==p?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)},t.prototype.setValue=function(t,e){this.delegate.setValue(t,e)},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.disableAnimations=function(t,e){this.engine.disableAnimations(t,e)},t}(),f=function(t){function e(e,n,r,i){var o=t.call(this,n,r,i)||this;return o.factory=e,o.namespaceId=n,o}return a(e,t),e.prototype.setProperty=function(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==p?(n=void 0===n||!!n,this.disableAnimations(t,n)):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)},e.prototype.listen=function(t,e,n){var r,i,o,a,s,c=this;if("@"==e.charAt(0)){var l=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t),u=e.substr(1),p="";return"@"!=u.charAt(0)&&(i=(r=u).indexOf("."),o=r.substring(0,i),a=r.substr(i+1),u=(s=[o,a])[0],p=s[1]),this.engine.listen(this.namespaceId,l,u,p,function(t){var e=t._data||-1;c.factory.scheduleListenerCallback(e,n,t)})}return this.delegate.listen(t,e,n)},e}(d);var m=function(t){function n(e,n){return t.call(this,e,n)||this}return a(n,t),n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:i.AnimationDriver},{type:i.ɵAnimationStyleNormalizer}]},n}(i.ɵAnimationEngine);function g(){return i.ɵsupportsWebAnimations()?new i.ɵWebAnimationsDriver:new i.ɵNoopAnimationDriver}function y(){return new i.ɵWebAnimationsStyleNormalizer}function v(t,e,n){return new h(t,e,n)}var b=[{provide:r.AnimationBuilder,useClass:s},{provide:i.ɵAnimationStyleNormalizer,useFactory:y},{provide:i.ɵAnimationEngine,useClass:m},{provide:e.RendererFactory2,useFactory:v,deps:[n.ɵDomRendererFactory2,i.ɵAnimationEngine,e.NgZone]}],_=[{provide:i.AnimationDriver,useFactory:g}].concat(b),w=[{provide:i.AnimationDriver,useClass:i.ɵNoopAnimationDriver}].concat(b),C=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{exports:[n.BrowserModule],providers:_}]}],t.ctorParameters=function(){return[]},t}(),x=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{exports:[n.BrowserModule],providers:w}]}],t.ctorParameters=function(){return[]},t}();t.BrowserAnimationsModule=C,t.NoopAnimationsModule=x,t.ɵBrowserAnimationBuilder=s,t.ɵBrowserAnimationFactory=c,t.ɵAnimationRenderer=f,t.ɵAnimationRendererFactory=h,t.ɵa=d,t.ɵf=_,t.ɵg=w,t.ɵb=m,t.ɵd=y,t.ɵe=v,t.ɵc=g,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("@angular/platform-browser"),t("@angular/animations"),t("@angular/animations/browser")):i((r.ng=r.ng||{},r.ng.platformBrowser=r.ng.platformBrowser||{},r.ng.platformBrowser.animations={}),r.ng.core,r.ng.platformBrowser,r.ng.animations,r.ng.animations.browser)},{"@angular/animations":39,"@angular/animations/browser":38,"@angular/core":57,"@angular/platform-browser":62}],62:[function(t,e,n){var r,i;r=this,i=function(t,e,n){"use strict";var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},a=null;function s(){return a}function c(t){a||(a=t)}var l,u=function(){function t(){this.resourceLoaderType=null}return Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t}(),p=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"],i=0;i<r.length;i++)if(null!=e.getStyle(n,r[i]+"AnimationName")){e._animationPrefix="-"+r[i].toLowerCase()+"-";break}var o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(o).forEach(function(t){null!=e.getStyle(n,t)&&(e._transitionEnd=o[t])})}catch(t){e._animationPrefix=null,e._transitionEnd=null}return e}return i(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}(u),h={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},d={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},f={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&&(l=n.ɵglobal.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var m,g=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i(n,t),n.prototype.parse=function(t){throw new Error("parse not implemented")},n.makeCurrent=function(){c(new n)},n.prototype.hasProperty=function(t,e){return e in t},n.prototype.setProperty=function(t,e,n){t[e]=n},n.prototype.getProperty=function(t,e){return t[e]},n.prototype.invoke=function(t,e,n){var r;(r=t)[e].apply(r,n)},n.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},n.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},n.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},n.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(n.prototype,"attrToPropMap",{get:function(){return h},enumerable:!0,configurable:!0}),n.prototype.contains=function(t,e){return l.call(t,e)},n.prototype.querySelector=function(t,e){return t.querySelector(e)},n.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},n.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},n.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},n.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},n.prototype.createMouseEvent=function(t){var e=this.getDefaultDocument().createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},n.prototype.createEvent=function(t){var e=this.getDefaultDocument().createEvent("Event");return e.initEvent(t,!0,!0),e},n.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},n.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},n.prototype.getInnerHTML=function(t){return t.innerHTML},n.prototype.getTemplateContent=function(t){return"content"in t&&this.isTemplateElement(t)?t.content:null},n.prototype.getOuterHTML=function(t){return t.outerHTML},n.prototype.nodeName=function(t){return t.nodeName},n.prototype.nodeValue=function(t){return t.nodeValue},n.prototype.type=function(t){return t.type},n.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},n.prototype.firstChild=function(t){return t.firstChild},n.prototype.nextSibling=function(t){return t.nextSibling},n.prototype.parentElement=function(t){return t.parentNode},n.prototype.childNodes=function(t){return t.childNodes},n.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},n.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},n.prototype.appendChild=function(t,e){t.appendChild(e)},n.prototype.removeChild=function(t,e){t.removeChild(e)},n.prototype.replaceChild=function(t,e,n){t.replaceChild(e,n)},n.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},n.prototype.insertBefore=function(t,e,n){t.insertBefore(n,e)},n.prototype.insertAllBefore=function(t,e,n){n.forEach(function(n){return t.insertBefore(n,e)})},n.prototype.insertAfter=function(t,e,n){t.insertBefore(n,e.nextSibling)},n.prototype.setInnerHTML=function(t,e){t.innerHTML=e},n.prototype.getText=function(t){return t.textContent},n.prototype.setText=function(t,e){t.textContent=e},n.prototype.getValue=function(t){return t.value},n.prototype.setValue=function(t,e){t.value=e},n.prototype.getChecked=function(t){return t.checked},n.prototype.setChecked=function(t,e){t.checked=e},n.prototype.createComment=function(t){return this.getDefaultDocument().createComment(t)},n.prototype.createTemplate=function(t){var e=this.getDefaultDocument().createElement("template");return e.innerHTML=t,e},n.prototype.createElement=function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)},n.prototype.createElementNS=function(t,e,n){return(n=n||this.getDefaultDocument()).createElementNS(t,e)},n.prototype.createTextNode=function(t,e){return(e=e||this.getDefaultDocument()).createTextNode(t)},n.prototype.createScriptTag=function(t,e,n){var r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(t,e),r},n.prototype.createStyleElement=function(t,e){var n=(e=e||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(t,e)),n},n.prototype.createShadowRoot=function(t){return t.createShadowRoot()},n.prototype.getShadowRoot=function(t){return t.shadowRoot},n.prototype.getHost=function(t){return t.host},n.prototype.clone=function(t){return t.cloneNode(!0)},n.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},n.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},n.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},n.prototype.addClass=function(t,e){t.classList.add(e)},n.prototype.removeClass=function(t,e){t.classList.remove(e)},n.prototype.hasClass=function(t,e){return t.classList.contains(e)},n.prototype.setStyle=function(t,e,n){t.style[e]=n},n.prototype.removeStyle=function(t,e){t.style[e]=""},n.prototype.getStyle=function(t,e){return t.style[e]},n.prototype.hasStyle=function(t,e,n){var r=this.getStyle(t,e)||"";return n?r==n:r.length>0},n.prototype.tagName=function(t){return t.tagName},n.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r<n.length;r++){var i=n.item(r);e.set(i.name,i.value)}return e},n.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},n.prototype.hasAttributeNS=function(t,e,n){return t.hasAttributeNS(e,n)},n.prototype.getAttribute=function(t,e){return t.getAttribute(e)},n.prototype.getAttributeNS=function(t,e,n){return t.getAttributeNS(e,n)},n.prototype.setAttribute=function(t,e,n){t.setAttribute(e,n)},n.prototype.setAttributeNS=function(t,e,n,r){t.setAttributeNS(e,n,r)},n.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},n.prototype.removeAttributeNS=function(t,e,n){t.removeAttributeNS(e,n)},n.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},n.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},n.prototype.getDefaultDocument=function(){return document},n.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},n.prototype.getTitle=function(t){return t.title},n.prototype.setTitle=function(t,e){t.title=e||""},n.prototype.elementMatches=function(t,e){return!!this.isElementNode(t)&&(t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e))},n.prototype.isTemplateElement=function(t){return this.isElementNode(t)&&"TEMPLATE"===t.nodeName},n.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},n.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},n.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},n.prototype.hasShadowRoot=function(t){return null!=t.shadowRoot&&t instanceof HTMLElement},n.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},n.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},n.prototype.adoptNode=function(t){return document.adoptNode(t)},n.prototype.getHref=function(t){return t.getAttribute("href")},n.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&&f.hasOwnProperty(e)&&(e=f[e]))}return d[e]||e},n.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null},n.prototype.getHistory=function(){return window.history},n.prototype.getLocation=function(){return window.location},n.prototype.getBaseHref=function(t){var e=function(){if(!y&&!(y=document.querySelector("base")))return null;return y.getAttribute("href")}();return null==e?null:function(t){m||(m=document.createElement("a"));return m.setAttribute("href",t),"/"===m.pathname.charAt(0)?m.pathname:"/"+m.pathname}(e)},n.prototype.resetBaseElement=function(){y=null},n.prototype.getUserAgent=function(){return window.navigator.userAgent},n.prototype.setData=function(t,e,n){this.setAttribute(t,"data-"+e,n)},n.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},n.prototype.getComputedStyle=function(t){return getComputedStyle(t)},n.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},n.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},n.prototype.supportsCookies=function(){return!0},n.prototype.getCookie=function(t){return e.ɵparseCookieValue(document.cookie,t)},n.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},n}(p),y=null;var v=e.DOCUMENT;function b(){return!!window.history.pushState}var _=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}return i(e,t),e.prototype._init=function(){this.location=s().getLocation(),this._history=s().getHistory()},e.prototype.getBaseHrefFromDOM=function(){return s().getBaseHref(this._doc)},e.prototype.onPopState=function(t){s().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){s().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){b()?this._history.pushState(t,e,n):this.location.hash=n},e.prototype.replaceState=function(t,e,n){b()?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.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[v]}]}]},e}(e.PlatformLocation),w=function(){function t(t){this._doc=t,this._dom=s()}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 i=this._dom.createElement("meta");this._setMetaElementAttributes(t,i);var o=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(o,i),i},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.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[v]}]}]},t}(),C=new n.InjectionToken("TRANSITION_ID");function x(t,e,r){return function(){r.get(n.ApplicationInitStatus).donePromise.then(function(){var n=s();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)})})}}var E=[{provide:n.APP_INITIALIZER,useFactory:x,deps:[C,v,n.Injector],multi:!0}],S=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()};n.ɵglobal.frameworkStabilizers||(n.ɵglobal.frameworkStabilizers=[]),n.ɵglobal.frameworkStabilizers.push(function(t){var e=n.ɵglobal.getAllAngularTestabilities(),r=e.length,i=!1,o=function(e){i=i||e,0==--r&&t(i)};e.forEach(function(t){t.whenStable(o)})})},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var r=t.getTestability(e);return null!=r?r:n?s().isShadowRoot(e)?this.findTestabilityInTree(t,s().getHost(e),!0):this.findTestabilityInTree(t,s().parentElement(e),!0):null},t}(),k=function(){function t(t){this._doc=t}return t.prototype.getTitle=function(){return s().getTitle(this._doc)},t.prototype.setTitle=function(t){s().setTitle(this._doc,t)},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[v]}]}]},t}();function O(t,e){"undefined"!=typeof COMPILED&&COMPILED||((n.ɵglobal.ng=n.ɵglobal.ng||{})[t]=e)}var P={ApplicationRef:n.ApplicationRef,NgZone:n.NgZone},A="probe",T="coreTokens";function M(t){return n.getDebugNode(t)}function I(t){return O(A,M),O(T,o({},P,(t||[]).reduce(function(t,e){return t[e.name]=e.token,t},{}))),function(){return M}}var R=[{provide:n.APP_INITIALIZER,useFactory:I,deps:[[n.NgProbeToken,new n.Optional]],multi:!0}],D=new n.InjectionToken("EventManagerPlugins"),N=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 i=n[r];if(i.supports(t))return this._eventNameToPlugin.set(t,i),i}throw new Error("No event manager plugin found for event "+t)},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:Array,decorators:[{type:n.Inject,args:[D]}]},{type:n.NgZone}]},t}(),L=function(){function t(t){this._doc=t}return t.prototype.addGlobalEventListener=function(t,e,n){var r=s().getGlobalEventTarget(this._doc,t);if(!r)throw new Error("Unsupported event target "+r+" for event "+e);return this.addEventListener(r,e,n)},t}(),j=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.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[]},t}(),F=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 i(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 s().remove(t)})},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[v]}]}]},e}(j),V={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/"},B=/%COMP%/g,U="_nghost-%COMP%",H="_ngcontent-%COMP%";function z(t){return H.replace(B,t)}function W(t){return U.replace(B,t)}function G(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];Array.isArray(i)?G(t,i,n):(i=i.replace(B,t),n.push(i))}return n}function q(t){return function(e){!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}var Y=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new K(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 Z(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,r)),r.applyToHost(t),r;case n.ViewEncapsulation.Native:return new J(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var i=G(e.id,e.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t.prototype.begin=function(){},t.prototype.end=function(){},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:N},{type:F}]},t}(),K=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(V[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 i=V[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var r=V[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,i){i&n.RendererStyleFlags2.DashCase?t.style.setProperty(e,r,i&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){X(e,"property"),t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return X(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,q(n)):this.eventManager.addEventListener(t,e,q(n))},t}(),$="@".charCodeAt(0);function X(t,e){if(t.charCodeAt(0)===$)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var Q,Z=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.component=r;var o=G(r.id,r.styles,[]);return n.addStyles(o),i.contentAttr=z(r.id),i.hostAttr=W(r.id),i}return i(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}(K),J=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;o.sharedStylesHost=n,o.hostEl=r,o.component=i,o.shadowRoot=r.createShadowRoot(),o.sharedStylesHost.addHost(o.shadowRoot);for(var a=G(i.id,i.styles,[]),s=0;s<a.length;s++){var c=document.createElement("style");c.textContent=a[s],o.shadowRoot.appendChild(c)}return o}return i(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}(K),tt="undefined"!=typeof Zone&&Zone.__symbol__||function(t){return"__zone_symbol__"+t},et=tt("addEventListener"),nt=tt("removeEventListener"),rt={},it="removeEventListener",ot="__zone_symbol__propagationStopped",at="__zone_symbol__stopImmediatePropagation",st="undefined"!=typeof Zone&&Zone[tt("BLACK_LISTED_EVENTS")];st&&(Q={},st.forEach(function(t){Q[t]=t}));var ct=function(t){return!!Q&&Q.hasOwnProperty(t)},lt=function(t){var e=rt[t.type];if(e){var n=this[e];if(n){var r=[t];if(1===n.length)return(a=n[0]).zone!==Zone.current?a.zone.run(a.handler,this,r):a.handler.apply(this,r);for(var i=n.slice(),o=0;o<i.length&&!0!==t[ot];o++){var a;(a=i[o]).zone!==Zone.current?a.zone.run(a.handler,this,r):a.handler.apply(this,r)}}}},ut=function(t){function e(e,n){var r=t.call(this,e)||this;return r.ngZone=n,r.patchEvent(),r}return i(e,t),e.prototype.patchEvent=function(){if(Event&&Event.prototype&&!Event.prototype[at]){var t=Event.prototype[at]=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[ot]=!0),t&&t.apply(this,arguments)}}},e.prototype.supports=function(t){return!0},e.prototype.addEventListener=function(t,e,r){var i=this,o=r;if(!t[et]||n.NgZone.isInAngularZone()&&!ct(e))t.addEventListener(e,o,!1);else{var a=rt[e];a||(a=rt[e]=tt("ANGULAR"+e+"FALSE"));var s=t[a],c=s&&s.length>0;s||(s=t[a]=[]);var l=ct(e)?Zone.root:Zone.current;if(0===s.length)s.push({zone:l,handler:o});else{for(var u=!1,p=0;p<s.length;p++)if(s[p].handler===o){u=!0;break}u||s.push({zone:l,handler:o})}c||t[et](e,lt,!1)}return function(){return i.removeEventListener(t,e,o)}},e.prototype.removeEventListener=function(t,e,n){var r=t[nt];if(!r)return t[it].apply(t,[e,n,!1]);var i=rt[e],o=i&&t[i];if(!o)return t[it].apply(t,[e,n,!1]);for(var a=!1,s=0;s<o.length;s++)if(o[s].handler===n){a=!0,o.splice(s,1);break}a?0===o.length&&r.apply(t,[e,lt,!1]):t[it].apply(t,[e,n,!1])},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[v]}]},{type:n.NgZone}]},e}(L),pt={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},ht=new n.InjectionToken("HammerGestureConfig"),dt=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.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[]},t}(),ft=function(t){function e(e,n){var r=t.call(this,e)||this;return r._config=n,r}return i(e,t),e.prototype.supports=function(t){if(!pt.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,i=this.manager.getZone();return e=e.toLowerCase(),i.runOutsideAngular(function(){var o=r._config.buildHammer(t),a=function(t){i.runGuarded(function(){n(t)})};return o.on(e,a),function(){return o.off(e,a)}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[v]}]},{type:dt,decorators:[{type:n.Inject,args:[ht]}]}]},e}(L),mt=["alt","control","meta","shift"],gt={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},yt=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,r){var i=e.parseEventName(n),o=e.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return s().onAndCancel(t,i.domEventName,o)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=e._normalizeKey(n.pop()),o="";if(mt.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=i,0!=n.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a},e.getEventFullKey=function(t){var e="",n=s().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),mt.forEach(function(r){r!=n&&((0,gt[r])(t)&&(e+=r+"."))}),e+=n},e.eventCallback=function(t,n,r){return function(i){e.getEventFullKey(i)===t&&r.runGuarded(function(){return n(i)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[v]}]}]},e}(L),vt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,bt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function _t(t){return(t=String(t)).match(vt)||t.match(bt)?t:(n.isDevMode()&&s().log("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}var wt=null,Ct=null;function xt(t){for(var e={},n=0,r=t.split(",");n<r.length;n++){e[r[n]]=!0}return e}function Et(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n={},r=0,i=t;r<i.length;r++){var o=i[r];for(var a in o)o.hasOwnProperty(a)&&(n[a]=!0)}return n}var St=xt("area,br,col,hr,img,wbr"),kt=xt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ot=xt("rp,rt"),Pt=Et(Ot,kt),At=Et(kt,xt("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")),Tt=Et(Ot,xt("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")),Mt=Et(St,At,Tt,Pt),It=xt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Rt=xt("srcset"),Dt=xt("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"),Nt=Et(It,Rt,Dt),Lt=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(Ct.isElementNode(e)?this.startElement(e):Ct.isTextNode(e)?this.chars(Ct.nodeValue(e)):this.sanitizedSomething=!0,Ct.firstChild(e))e=Ct.firstChild(e);else for(;e;){Ct.isElementNode(e)&&this.endElement(e);var n=jt(e,Ct.nextSibling(e));if(n){e=n;break}e=jt(e,Ct.parentElement(e))}return this.buf.join("")},t.prototype.startElement=function(t){var e=this,n=Ct.nodeName(t).toLowerCase();Mt.hasOwnProperty(n)?(this.buf.push("<"),this.buf.push(n),Ct.attributeMap(t).forEach(function(t,n){var r,i=n.toLowerCase();Nt.hasOwnProperty(i)?(It[i]&&(t=_t(t)),Rt[i]&&(r=t,t=(r=String(r)).split(",").map(function(t){return _t(t.trim())}).join(", ")),e.buf.push(" "),e.buf.push(n),e.buf.push('="'),e.buf.push(Bt(t)),e.buf.push('"')):e.sanitizedSomething=!0}),this.buf.push(">")):this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=Ct.nodeName(t).toLowerCase();Mt.hasOwnProperty(e)&&!St.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(Bt(t))},t}();function jt(t,e){if(e&&Ct.contains(t,e))throw new Error("Failed to sanitize html because the element is clobbered: "+Ct.getOuterHTML(t));return e}var Ft=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Vt=/([^\#-~ |!])/g;function Bt(t){return t.replace(/&/g,"&amp;").replace(Ft,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Vt,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Ut(t){Ct.attributeMap(t).forEach(function(e,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||Ct.removeAttribute(t,n)});for(var e=0,n=Ct.childNodesAsList(t);e<n.length;e++){var r=n[e];Ct.isElementNode(r)&&Ut(r)}}function Ht(t,e){try{var r=function(){if(wt)return wt;var t=(Ct=s()).createElement("template");if("content"in t)return t;var e=Ct.createHtmlDocument();if(null==(wt=Ct.querySelector(e,"body"))){var n=Ct.createElement("html",e);wt=Ct.createElement("body",e),Ct.appendChild(n,wt),Ct.appendChild(e,n)}return wt}(),i=e?String(e):"",o=5,a=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=a,Ct.setInnerHTML(r,i),t.documentMode&&Ut(r),a=Ct.getInnerHTML(r)}while(i!==a);for(var c=new Lt,l=c.sanitizeChildren(Ct.getTemplateContent(r)||r),u=Ct.getTemplateContent(r)||r,p=0,h=Ct.childNodesAsList(u);p<h.length;p++){var d=h[p];Ct.removeChild(u,d)}return n.isDevMode()&&c.sanitizedSomething&&Ct.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),l}catch(t){throw wt=null,t}}var 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"),Wt=/^url\(([^)]+)\)$/;var Gt=function(){return function(){}}(),qt=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return i(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 Kt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),Ht(this._doc,String(e)));case n.SecurityContext.STYLE:return e instanceof $t?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(Wt);return e&&_t(e[1])===e[1]||t.match(zt)&&function(t){for(var e=!0,n=!0,r=0;r<t.length;r++){var i=t.charAt(r);"'"===i&&n?e=!e:'"'===i&&e&&(n=!n)}return e&&n}(t)?t:(n.isDevMode()&&s().log("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}(e));case n.SecurityContext.SCRIPT:if(e instanceof Xt)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case n.SecurityContext.URL:return e instanceof Zt||e instanceof Qt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),_t(String(e)));case n.SecurityContext.RESOURCE_URL:if(e instanceof Zt)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 Yt)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 Kt(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new $t(t)},e.prototype.bypassSecurityTrustScript=function(t){return new Xt(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new Qt(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new Zt(t)},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[v]}]}]},e}(Gt),Yt=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),Kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(Yt),$t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getTypeName=function(){return"Style"},e}(Yt),Xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getTypeName=function(){return"Script"},e}(Yt),Qt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getTypeName=function(){return"URL"},e}(Yt),Zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(Yt),Jt=[{provide:n.PLATFORM_ID,useValue:e.ɵPLATFORM_BROWSER_ID},{provide:n.PLATFORM_INITIALIZER,useValue:ne,multi:!0},{provide:e.PlatformLocation,useClass:_,deps:[v]},{provide:v,useFactory:ie,deps:[]}],te=[{provide:n.Sanitizer,useExisting:Gt},{provide:Gt,useClass:qt,deps:[v]}],ee=n.createPlatformFactory(n.platformCore,"browser",Jt);function ne(){g.makeCurrent(),S.init()}function re(){return new n.ErrorHandler}function ie(){return document}var 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:C,useExisting:n.APP_ID},E]}},t.decorators=[{type:n.NgModule,args:[{providers:[te,{provide:n.ErrorHandler,useFactory:re,deps:[]},{provide:D,useClass:ut,multi:!0},{provide:D,useClass:yt,multi:!0},{provide:D,useClass:ft,multi:!0},{provide:ht,useClass:dt},Y,{provide:n.RendererFactory2,useExisting:Y},{provide:j,useExisting:F},F,n.Testability,N,R,w,k],exports:[e.CommonModule,n.ApplicationModule]}]}],t.ctorParameters=function(){return[{type:t,decorators:[{type:n.Optional},{type:n.SkipSelf}]}]},t}(),ae="undefined"!=typeof window&&window||{},se=function(){return function(t,e){this.msPerTick=t,this.numTicks=e}}(),ce=function(){function t(t){this.appRef=t.injector.get(n.ApplicationRef)}return t.prototype.timeChangeDetection=function(t){var e=t&&t.record,n="Change Detection",r=null!=ae.console.profile;e&&r&&ae.console.profile(n);for(var i=s().performanceNow(),o=0;o<5||s().performanceNow()-i<500;)this.appRef.tick(),o++;var a=s().performanceNow();e&&r&&ae.console.profileEnd(n);var c=(a-i)/o;return ae.console.log("ran "+o+" change detection cycles"),ae.console.log(c.toFixed(2)+" ms per check"),new se(c,o)},t}(),le="profiler";var ue=function(){function t(){this.store={},this.onSerializeCallbacks={}}return t.init=function(e){var n=new t;return n.store=e,n},t.prototype.get=function(t,e){return this.store[t]||e},t.prototype.set=function(t,e){this.store[t]=e},t.prototype.remove=function(t){delete this.store[t]},t.prototype.hasKey=function(t){return this.store.hasOwnProperty(t)},t.prototype.onSerialize=function(t,e){this.onSerializeCallbacks[t]=e},t.prototype.toJson=function(){for(var t in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(t))try{this.store[t]=this.onSerializeCallbacks[t]()}catch(t){console.warn("Exception in onSerialize callback: ",t)}return JSON.stringify(this.store)},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[]},t}();function pe(t,e){var n,r,i=t.getElementById(e+"-state"),o={};if(i&&i.textContent)try{o=JSON.parse((n=i.textContent,r={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"},n.replace(/&[^;]+;/g,function(t){return r[t]})))}catch(t){console.warn("Exception while restoring TransferState for app "+e,t)}return ue.init(o)}var he=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{providers:[{provide:ue,useFactory:pe,deps:[v,n.APP_ID]}]}]}],t.ctorParameters=function(){return[]},t}(),de=function(){function t(){}return t.all=function(){return function(t){return!0}},t.css=function(t){return function(e){return null!=e.nativeElement&&s().elementMatches(e.nativeElement,t)}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}},t}(),fe=new n.Version("5.2.0");t.BrowserModule=oe,t.platformBrowser=ee,t.Meta=w,t.Title=k,t.disableDebugTools=function(){O(le,null)},t.enableDebugTools=function(t){return O(le,new ce(t)),t},t.BrowserTransferStateModule=he,t.TransferState=ue,t.makeStateKey=function(t){return t},t.By=de,t.DOCUMENT=v,t.EVENT_MANAGER_PLUGINS=D,t.EventManager=N,t.HAMMER_GESTURE_CONFIG=ht,t.HammerGestureConfig=dt,t.DomSanitizer=Gt,t.VERSION=fe,t.ɵBROWSER_SANITIZATION_PROVIDERS=te,t.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS=Jt,t.ɵinitDomAdapter=ne,t.ɵBrowserDomAdapter=g,t.ɵBrowserPlatformLocation=_,t.ɵTRANSITION_ID=C,t.ɵBrowserGetTestability=S,t.ɵescapeHtml=function(t){var e={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return t.replace(/[&"'<>]/g,function(t){return e[t]})},t.ɵELEMENT_PROBE_PROVIDERS=R,t.ɵDomAdapter=u,t.ɵgetDOM=s,t.ɵsetRootDomAdapter=c,t.ɵDomRendererFactory2=Y,t.ɵNAMESPACE_URIS=V,t.ɵflattenStyles=G,t.ɵshimContentAttribute=z,t.ɵshimHostAttribute=W,t.ɵDomEventsPlugin=ut,t.ɵHammerGesturesPlugin=ft,t.ɵKeyEventsPlugin=yt,t.ɵDomSharedStylesHost=F,t.ɵSharedStylesHost=j,t.ɵb=ie,t.ɵa=re,t.ɵi=p,t.ɵg=E,t.ɵf=x,t.ɵc=pe,t.ɵh=I,t.ɵd=L,t.ɵe=qt,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/common"),t("@angular/core")):i((r.ng=r.ng||{},r.ng.platformBrowser={}),r.ng.common,r.ng.core)},{"@angular/common":55,"@angular/core":57}],63:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i,o,a,s,c,l,u,p,h,d,f,m,g,y,v,b,_,w){"use strict";var C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function x(t,e){function n(){this.constructor=t}C(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var E=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},S=function(){return function(t,e){this.id=t,this.url=e}}(),k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return x(e,t),e.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},e}(S),O=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i}return x(e,t),e.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},e}(S),P=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.reason=r,i}return x(e,t),e.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},e}(S),A=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.error=r,i}return x(e,t),e.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},e}(S),T=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return x(e,t),e.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(S),M=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return x(e,t),e.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(S),I=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n)||this;return a.urlAfterRedirects=r,a.state=i,a.shouldActivate=o,a}return x(e,t),e.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},e}(S),R=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return x(e,t),e.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(S),D=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return x(e,t),e.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(S),N=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),L=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),j=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),F=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),V=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),B=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),U="primary",H=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}();function z(t){return new H(t)}var W="ngNavigationCancelingError";function G(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 i={},o=0;o<r.length;o++){var a=r[o],s=t[o];if(a.startsWith(":"))i[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}var q=function(){return function(t,e){this.routes=t,this.module=e}}();function Y(t,e){void 0===e&&(e="");for(var n=0;n<t.length;n++){var r=t[n];K(r,$(e,r))}}function K(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!==U)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&&Y(t.children,e)}function $(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function X(t,e){var n,r=Object.keys(t),i=Object.keys(e);if(r.length!=i.length)return!1;for(var o=0;o<r.length;o++)if(t[n=r[o]]!==e[n])return!1;return!0}function Q(t){return Array.prototype.concat.apply([],t)}function Z(t){return t.length>0?t[t.length-1]:null}function J(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function tt(t){var e=v.mergeAll.call(t);return g.every.call(e,function(t){return!0===t})}function et(t){return n.ɵisObservable(t)?t:n.ɵisPromise(t)?m.fromPromise(Promise.resolve(t)):o.of(t)}function nt(t,e,n){return n?(r=t.queryParams,i=e.queryParams,X(r,i)&&function t(e,n){if(!st(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root)):(o=t.queryParams,a=e.queryParams,Object.keys(a).length<=Object.keys(o).length&&Object.keys(a).every(function(t){return a[t]===o[t]})&&rt(t.root,e.root));var r,i,o,a}function rt(t,e){return function t(e,n,r){{if(e.segments.length>r.length){var i=e.segments.slice(0,r.length);return!!st(i,r)&&!n.hasChildren()}if(e.segments.length===r.length){if(!st(e.segments,r))return!1;for(var o in n.children){if(!e.children[o])return!1;if(!rt(e.children[o],n.children[o]))return!1}return!0}var i=r.slice(0,e.segments.length),a=r.slice(e.segments.length);return!!st(e.segments,i)&&(!!e.children[U]&&t(e.children[U],n,a))}}(t,e,e.segments)}var it=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=z(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return pt.serialize(this)},t}(),ot=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,J(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 ht(this)},t}(),at=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=z(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return mt(this)},t}();function st(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function ct(t,e){var n=[];return J(t.children,function(t,r){r===U&&(n=n.concat(e(t,r)))}),J(t.children,function(t,r){r!==U&&(n=n.concat(e(t,r)))}),n}var lt=function(){return function(){}}(),ut=function(){function t(){}return t.prototype.parse=function(t){var e=new _t(t);return new it(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return""+("/"+function t(e,n){if(!e.hasChildren())return ht(e);{if(n){var r=e.children[U]?t(e.children[U],!1):"",i=[];return J(e.children,function(e,n){n!==U&&i.push(n+":"+t(e,!1))}),i.length>0?r+"("+i.join("//")+")":r}var o=ct(e,function(n,r){return r===U?[t(e.children[U],!1)]:[r+":"+t(n,!1)]});return ht(e)+"/("+o.join("//")+")"}}(t.root,!0))+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return dt(t)+"="+dt(e)}).join("&"):dt(t)+"="+dt(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),pt=new ut;function ht(t){return t.segments.map(function(t){return mt(t)}).join("/")}function dt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}function ft(t){return decodeURIComponent(t)}function mt(t){return""+dt(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+dt(t)+"="+dt(e[t])}).join(""));var e}var gt=/^[^\/()?;=&#]+/;function yt(t){var e=t.match(gt);return e?e[0]:""}var vt=/^[^=?&#]+/;var bt=/^[^?&#]+/;var _t=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 ot([],{}):new ot([],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[U]=new ot(t,e)),n},t.prototype.parseSegment=function(){var t=yt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new at(ft(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=yt(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=yt(this.remaining);r&&(n=r,this.capture(n))}t[ft(e)]=ft(n)}},t.prototype.parseQueryParam=function(t){var e,n,r=(e=this.remaining,(n=e.match(vt))?n[0]:"");if(r){this.capture(r);var i,o,a="";if(this.consumeOptional("=")){var s=(i=this.remaining,(o=i.match(bt))?o[0]:"");s&&(a=s,this.capture(a))}var c=ft(r),l=ft(a);if(t.hasOwnProperty(c)){var u=t[c];Array.isArray(u)||(u=[u],t[c]=u),u.push(l)}else t[c]=l}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=yt(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=U);var o=this.parseChildren();e[i]=1===Object.keys(o).length?o[U]:new ot([],o),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}(),wt=function(){return function(t){this.segmentGroup=t||null}}(),Ct=function(){return function(t){this.urlTree=t}}();function xt(t){return new l.Observable(function(e){return e.error(new wt(t))})}function Et(t){return new l.Observable(function(e){return e.error(new Ct(t))})}function St(t){return new l.Observable(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}function kt(t){return new l.Observable(function(e){return e.error((n="Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false",(r=Error("NavigationCancelingError: "+n))[W]=!0,r));var n,r})}var Ot=function(){function t(t,e,r,i,o){this.configLoader=e,this.urlSerializer=r,this.urlTree=i,this.config=o,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,U),n=s.map.call(e,function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)});return p._catch.call(n,function(e){if(e instanceof Ct)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof wt)throw t.noMatchError(e);throw e})},t.prototype.match=function(t){var e=this,n=this.expandSegmentGroup(this.ngModule,this.config,t.root,U),r=s.map.call(n,function(n){return e.createUrlTree(n,t.queryParams,t.fragment)});return p._catch.call(r,function(t){if(t instanceof wt)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,i=t.segments.length>0?new ot([],((r={})[U]=t,r)):t;return new it(i,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?s.map.call(this.expandChildren(t,e,n),function(t){return new ot([],t)}):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(t,e){if(0===Object.keys(t).length)return o.of({});var n=[],r=[],i={};J(t,function(t,o){var a=s.map.call(e(o,t),function(t){return i[o]=t});o===U?n.push(a):r.push(a)});var a=h.concatAll.call(o.of.apply(void 0,n.concat(r))),c=y.last.call(a);return s.map.call(c,function(){return i})}(n.children,function(n,i){return r.expandSegmentGroup(t,e,i,n)})},t.prototype.expandSegment=function(t,e,n,r,i,a){var c=this,l=o.of.apply(void 0,n),u=s.map.call(l,function(s){var l=c.expandSegmentAgainstRoute(t,e,n,s,r,i,a);return p._catch.call(l,function(t){if(t instanceof wt)return o.of(null);throw t})}),m=h.concatAll.call(u),g=d.first.call(m,function(t){return!!t});return p._catch.call(g,function(t,n){if(t instanceof f.EmptyError||"EmptyError"===t.name){if(c.noLeftoversInUrl(e,r,i))return o.of(new ot([],{}));throw new wt(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,i,o,a){return Mt(r)!==o?xt(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):xt(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Et(o):c.mergeMap.call(this.lineralizeSegments(n,o),function(n){var o=new ot(n,{});return i.expandSegment(t,o,e,n,r,!1)})},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){var a=this,s=Pt(e,r,i),l=s.matched,u=s.consumedSegments,p=s.lastChild,h=s.positionalParamSegments;if(!l)return xt(e);var d=this.applyRedirectCommands(u,r.redirectTo,h);return r.redirectTo.startsWith("/")?Et(d):c.mergeMap.call(this.lineralizeSegments(r,d),function(r){return a.expandSegment(t,e,n,r.concat(i.slice(p)),o,!1)})},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var i=this;if("**"===n.path)return n.loadChildren?s.map.call(this.configLoader.load(t.injector,n),function(t){return n._loadedConfig=t,new ot(r,{})}):o.of(new ot(r,{}));var a=Pt(e,n,r),l=a.matched,u=a.consumedSegments,p=a.lastChild;if(!l)return xt(e);var h=r.slice(p),d=this.getChildConfig(t,n);return c.mergeMap.call(d,function(t){var n=t.module,r=t.routes,a=function(t,e,n,r){if(n.length>0&&(o=t,a=n,s=r,s.some(function(t){return Tt(o,a,t)&&Mt(t)!==U}))){var i=new ot(e,function(t,e){var n={};n[U]=e;for(var r=0,i=t;r<i.length;r++){var o=i[r];""===o.path&&Mt(o)!==U&&(n[Mt(o)]=new ot([],{}))}return n}(r,new ot(n,t.children)));return{segmentGroup:At(i),slicedSegments:[]}}var o,a,s;if(0===n.length&&(c=t,l=n,u=r,u.some(function(t){return Tt(c,l,t)}))){var i=new ot(t.segments,function(t,e,n,r){for(var i={},o=0,a=n;o<a.length;o++){var s=a[o];Tt(t,e,s)&&!r[Mt(s)]&&(i[Mt(s)]=new ot([],{}))}return E({},r,i)}(t,n,r,t.children));return{segmentGroup:At(i),slicedSegments:n}}var c,l,u;return{segmentGroup:t,slicedSegments:n}}(e,u,h,r),c=a.segmentGroup,l=a.slicedSegments;if(0===l.length&&c.hasChildren()){var p=i.expandChildren(n,r,c);return s.map.call(p,function(t){return new ot(u,t)})}if(0===r.length&&0===l.length)return o.of(new ot(u,{}));var d=i.expandSegment(n,c,r,l,U,!0);return s.map.call(d,function(t){return new ot(u.concat(t.segments),t.children)})})},t.prototype.getChildConfig=function(t,e){var n,r,i,a=this;return e.children?o.of(new q(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?o.of(e._loadedConfig):c.mergeMap.call((n=t.injector,(i=(r=e).canLoad)&&0!==i.length?tt(s.map.call(u.from(i),function(t){var e=n.get(t);return et(e.canLoad?e.canLoad(r):e(r))})):o.of(!0)),function(n){return n?s.map.call(a.configLoader.load(t.injector,e),function(t){return e._loadedConfig=t,t}):kt(e)}):o.of(new q([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return o.of(n);if(r.numberOfChildren>1||!r.children[U])return St(t.redirectTo);r=r.children[U]}},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 i=this.createSegmentGroup(t,e.root,n,r);return new it(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return J(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),a={};return J(e.children,function(e,o){a[o]=i.createSegmentGroup(t,e,n,r)}),new ot(o,a)},t.prototype.createSegments=function(t,e,n,r){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.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,i=e;r<i.length;r++){var o=i[r];if(o.path===t.path)return e.splice(n),o;n++}return t},t}();function Pt(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||G)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function At(t){if(1===t.numberOfChildren&&t.children[U]){var e=t.children[U];return new ot(t.segments.concat(e.segments),e.children)}return t}function Tt(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0!==n.redirectTo)}function Mt(t){return t.outlet||U}var It=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=Rt(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=Rt(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=Dt(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 Dt(t,this._root).map(function(t){return t.value})},t}();function Rt(t,e){if(t===e.value)return e;for(var n=0,r=e.children;n<r.length;n++){var i=Rt(t,r[n]);if(i)return i}return null}function Dt(t,e){if(t===e.value)return[e];for(var n=0,r=e.children;n<r.length;n++){var i=Dt(t,r[n]);if(i.length)return i.unshift(e),i}return[]}var Nt=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function Lt(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var jt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,zt(r,e),r}return x(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(It);function Ft(t,e){var n,i=(n=new Ut([],{},{},"",{},U,e,null,t.root,-1,{}),new Ht("",new Nt(n,[]))),o=new r.BehaviorSubject([new at("",{})]),a=new r.BehaviorSubject({}),s=new r.BehaviorSubject({}),c=new r.BehaviorSubject({}),l=new r.BehaviorSubject(""),u=new Vt(o,a,c,l,s,U,e,i.root);return u.snapshot=i.root,new jt(new Nt(u,[]),i)}var Vt=function(){function t(t,e,n,r,i,o,a,s){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=a,this._futureSnapshot=s}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=s.map.call(this.params,function(t){return z(t)})),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=s.map.call(this.queryParams,function(t){return z(t)})),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function Bt(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return n.slice(r).reduce(function(t,e){var n=E({},t.params,e.params),r=E({},t.data,e.data),i=E({},t.resolve,e._resolvedData);return{params:n,data:r,resolve:i}},{params:{},data:{},resolve:{}})}var Ut=function(){function t(t,e,n,r,i,o,a,s,c,l,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=a,this.routeConfig=s,this._urlSegment=c,this._lastPathIndex=l,this._resolve=u}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=z(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=z(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}(),Ht=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,zt(r,n),r}return x(e,t),e.prototype.toString=function(){return Wt(this._root)},e}(It);function zt(t,e){e.value._routerState=t,e.children.forEach(function(e){return zt(t,e)})}function Wt(t){var e=t.children.length>0?" { "+t.children.map(Wt).join(", ")+" } ":"";return""+t.value+e}function Gt(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,X(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),X(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!X(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),X(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function qt(t,e){var n,r,i=X(t.params,e.params)&&(n=t.url,r=e.url,st(n,r)&&n.every(function(t,e){return X(t.parameters,r[e].parameters)})),o=!t.parent!=!e.parent;return i&&!o&&(!t.parent||qt(t.parent,e.parent))}function Yt(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){(l=n.value)._futureSnapshot=e.value;var i=(s=t,c=n,e.children.map(function(t){for(var e=0,n=c.children;e<n.length;e++){var r=n[e];if(s.shouldReuseRoute(r.value.snapshot,t.value))return Yt(s,t,r)}return Yt(s,t)}));return new Nt(l,i)}if(t.retrieve(e.value)){var o=t.retrieve(e.value).route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(var r=0;r<e.children.length;++r)t(e.children[r],n.children[r])}(e,o),o}var a,s,c,l=(a=e.value,new Vt(new r.BehaviorSubject(a.url),new r.BehaviorSubject(a.params),new r.BehaviorSubject(a.queryParams),new r.BehaviorSubject(a.fragment),new r.BehaviorSubject(a.data),a.outlet,a.component,a));i=e.children.map(function(e){return Yt(t,e)});return new Nt(l,i)}function Kt(t,e,n,r,i){if(0===n.length)return Xt(e.root,e.root,e,r,i);var o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Qt(!0,0,t);var e=0,n=!1,r=t.reduce(function(t,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return J(r.outlets,function(t,e){o[e]="string"==typeof t?t.split("/"):t}),t.concat([{outlets:o}])}if(r.segmentPath)return t.concat([r.segmentPath])}return"string"!=typeof r?t.concat([r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):t.concat([r])},[]);return new Qt(n,e,r)}(n);if(o.toRoot())return Xt(e.root,new ot([],{}),e,r,i);var a=function(t,e,n){if(t.isAbsolute)return new Zt(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new Zt(n.snapshot._urlSegment,!0,0);var r=$t(t.commands[0])?0:1,i=n.snapshot._lastPathIndex+r;return function(t,e,n){var r=t,i=e,o=n;for(;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new Zt(r,!1,i-o)}(n.snapshot._urlSegment,i,t.numberOfDoubleDots)}(o,e,t),s=a.processChildren?ee(a.segmentGroup,a.index,o.commands):te(a.segmentGroup,a.index,o.commands);return Xt(a.segmentGroup,s,e,r,i)}function $t(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Xt(t,e,n,r,i){var o={};return r&&J(r,function(t,e){o[e]=Array.isArray(t)?t.map(function(t){return""+t}):""+t}),n.root===t?new it(e,o,i):new it(function t(e,n,r){var i={};J(e.children,function(e,o){i[o]=e===n?r:t(e,n,r)});return new ot(e.segments,i)}(n.root,t,e),o,i)}var Qt=function(){function t(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&$t(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!==Z(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}();var Zt=function(){return function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}();function Jt(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[U]:""+t}function te(t,e,n){if(t||(t=new ot([],{})),0===t.segments.length&&t.hasChildren())return ee(t,e,n);var r=function(t,e,n){var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=n.length)return o;var a=t.segments[i],s=Jt(n[r]),c=r<n.length-1?n[r+1]:null;if(i>0&&void 0===s)break;if(s&&c&&"object"==typeof c&&void 0===c.outlets){if(!oe(s,c,a))return o;r+=2}else{if(!oe(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){var o=new ot(t.segments.slice(0,r.pathIndex),{});return o.children[U]=new ot(t.segments.slice(r.pathIndex),t.children),ee(o,0,i)}return r.match&&0===i.length?new ot(t.segments,{}):r.match&&!t.hasChildren()?ne(t,e,n):r.match?ee(t,0,i):ne(t,e,n)}function ee(t,e,n){if(0===n.length)return new ot(t.segments,{});var r,i,o,a="object"!=typeof(r=n)[0]?((i={})[U]=r,i):void 0===r[0].outlets?((o={})[U]=r,o):r[0].outlets,s={};return J(a,function(n,r){null!==n&&(s[r]=te(t.children[r],e,n))}),J(t.children,function(t,e){void 0===a[e]&&(s[e]=t)}),new ot(t.segments,s)}function ne(t,e,n){for(var r=t.segments.slice(0,e),i=0;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){var o=re(n[i].outlets);return new ot(r,o)}if(0===i&&$t(n[0])){var a=t.segments[e];r.push(new at(a.path,n[0])),i++}else{var s=Jt(n[i]),c=i<n.length-1?n[i+1]:null;s&&c&&$t(c)?(r.push(new at(s,ie(c))),i+=2):(r.push(new at(s,{})),i++)}}return new ot(r,{})}function re(t){var e={};return J(t,function(t,n){null!==t&&(e[n]=ne(new ot([],{}),0,t))}),e}function ie(t){var e={};return J(t,function(t,n){return e[n]=""+t}),e}function oe(t,e,n){return t==n.path&&X(e,n.parameters)}var ae=function(){return function(t){this.path=t,this.route=this.path[this.path.length-1]}}(),se=function(){return function(t,e){this.component=t,this.route=e}}(),ce=function(){function t(t,e,n,r){this.future=t,this.curr=e,this.moduleInjector=n,this.forwardEvent=r,this.canActivateChecks=[],this.canDeactivateChecks=[]}return t.prototype.initialize=function(t){var e=this.future._root,n=this.curr?this.curr._root:null;this.setupChildRouteGuards(e,n,t,[e.value])},t.prototype.checkGuards=function(){var t=this;if(!this.isDeactivating()&&!this.isActivating())return o.of(!0);var e=this.runCanDeactivateChecks();return c.mergeMap.call(e,function(e){return e?t.runCanActivateChecks():o.of(!1)})},t.prototype.resolveData=function(t){var e=this;if(!this.isActivating())return o.of(null);var n=u.from(this.canActivateChecks),r=a.concatMap.call(n,function(n){return e.runResolve(n.route,t)});return b.reduce.call(r,function(t,e){return t})},t.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},t.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},t.prototype.setupChildRouteGuards=function(t,e,n,r){var i=this,o=Lt(e);t.children.forEach(function(t){i.setupRouteGuards(t,o[t.value.outlet],n,r.concat([t.value])),delete o[t.value.outlet]}),J(o,function(t,e){return i.deactivateRouteAndItsChildren(t,n.getContext(e))})},t.prototype.setupRouteGuards=function(t,e,n,r){var i=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&i.routeConfig===o.routeConfig){var s=this.shouldRunGuardsAndResolvers(o,i,i.routeConfig.runGuardsAndResolvers);if(s?this.canActivateChecks.push(new ae(r)):(i.data=o.data,i._resolvedData=o._resolvedData),i.component?this.setupChildRouteGuards(t,e,a?a.children:null,r):this.setupChildRouteGuards(t,e,n,r),s){var c=a.outlet;this.canDeactivateChecks.push(new se(c.component,o))}}else o&&this.deactivateRouteAndItsChildren(e,a),this.canActivateChecks.push(new ae(r)),i.component?this.setupChildRouteGuards(t,null,a?a.children:null,r):this.setupChildRouteGuards(t,null,n,r)},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!qt(t,e)||!X(t.queryParams,e.queryParams);case"paramsChange":default:return!qt(t,e)}},t.prototype.deactivateRouteAndItsChildren=function(t,e){var n=this,r=Lt(t),i=t.value;J(r,function(t,r){i.component?e?n.deactivateRouteAndItsChildren(t,e.children.getContext(r)):n.deactivateRouteAndItsChildren(t,null):n.deactivateRouteAndItsChildren(t,e)}),i.component&&e&&e.outlet&&e.outlet.isActivated?this.canDeactivateChecks.push(new se(e.outlet.component,i)):this.canDeactivateChecks.push(new se(null,i))},t.prototype.runCanDeactivateChecks=function(){var t=this,e=u.from(this.canDeactivateChecks),n=c.mergeMap.call(e,function(e){return t.runCanDeactivate(e.component,e.route)});return g.every.call(n,function(t){return!0===t})},t.prototype.runCanActivateChecks=function(){var t=this,e=u.from(this.canActivateChecks),n=a.concatMap.call(e,function(e){return tt(u.from([t.fireChildActivationStart(e.route.parent),t.fireActivationStart(e.route),t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))});return g.every.call(n,function(t){return!0===t})},t.prototype.fireActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new V(t)),o.of(!0)},t.prototype.fireChildActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new j(t)),o.of(!0)},t.prototype.runCanActivate=function(t){var e=this,n=t.routeConfig?t.routeConfig.canActivate:null;return n&&0!==n.length?tt(s.map.call(u.from(n),function(n){var r,i=e.getToken(n,t);return r=i.canActivate?et(i.canActivate(t,e.future)):et(i(t,e.future)),d.first.call(r)})):o.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 tt(s.map.call(u.from(r),function(t){return tt(s.map.call(u.from(t.guards),function(r){var i,o=e.getToken(r,t.node);return i=o.canActivateChild?et(o.canActivateChild(n,e.future)):et(o(n,e.future)),d.first.call(i)}))}))},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 o.of(!0);var i=c.mergeMap.call(u.from(r),function(r){var i,o=n.getToken(r,e);return i=o.canDeactivate?et(o.canDeactivate(t,e,n.curr,n.future)):et(o(t,e,n.curr,n.future)),d.first.call(i)});return g.every.call(i,function(t){return!0===t})},t.prototype.runResolve=function(t,e){var n=t._resolve;return s.map.call(this.resolveNode(n,t),function(n){return t._resolvedData=n,t.data=E({},t.data,Bt(t,e).resolve),null})},t.prototype.resolveNode=function(t,e){var n=this,r=Object.keys(t);if(0===r.length)return o.of({});if(1===r.length){var i=r[0];return s.map.call(this.getResolver(t[i],e),function(t){return(e={})[i]=t,e;var e})}var a={},l=c.mergeMap.call(u.from(r),function(r){return s.map.call(n.getResolver(t[r],e),function(t){return a[r]=t,t})});return s.map.call(y.last.call(l),function(){return a})},t.prototype.getResolver=function(t,e){var n=this.getToken(t,e);return n.resolve?et(n.resolve(e,this.future)):et(n(e,this.future))},t.prototype.getToken=function(t,e){var n=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(n?n.module.injector:this.moduleInjector).get(t)},t}();var le=function(){return function(){}}();var ue=function(){function t(t,e,n,r,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i}return t.prototype.recognize=function(){try{var t=de(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,U),n=new Ut([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},U,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Nt(n,e),i=new Ht(this.url,r);return this.inheritParamsAndData(i._root),o.of(i)}catch(t){return new l.Observable(function(e){return e.error(t)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=Bt(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,r=this,i=ct(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},i.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.url.map(function(t){return t.toString()}).join("/"),i=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+i+"'.")}n[t.value.outlet]=t.value}),i.sort(function(t,e){return t.value.outlet===U?-1:e.value.outlet===U?1:t.value.outlet.localeCompare(e.value.outlet)}),i},t.prototype.processSegment=function(t,e,n,r){for(var i=0,o=t;i<o.length;i++){var a=o[i];try{return this.processSegmentAgainstRoute(a,e,n,r)}catch(t){if(!(t instanceof le))throw t}}if(this.noLeftoversInUrl(e,n,r))return[];throw new le},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 le;if((t.outlet||U)!==r)throw new le;var i,o=[],a=[];if("**"===t.path){var s=n.length>0?Z(n).parameters:{};i=new Ut(n,s,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ge(t),r,t.component,t,pe(e),he(e)+n.length,ye(t))}else{var c=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new le;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||G)(n,t,e);if(!r)throw new le;var i={};J(r.posParams,function(t,e){i[e]=t.path});var o=r.consumed.length>0?E({},i,r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}(e,t,n);o=c.consumedSegments,a=n.slice(c.lastChild),i=new Ut(o,c.parameters,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ge(t),r,t.component,t,pe(e),he(e)+o.length,ye(t))}var l=function(t){if(t.children)return t.children;if(t.loadChildren)return t._loadedConfig.routes;return[]}(t),u=de(e,o,a,l),p=u.segmentGroup,h=u.slicedSegments;if(0===h.length&&p.hasChildren()){var d=this.processChildren(l,p);return[new Nt(i,d)]}if(0===l.length&&0===h.length)return[new Nt(i,[])];var f=this.processSegment(l,p,h,U);return[new Nt(i,f)]},t}();function pe(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function he(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 de(t,e,n,r){if(n.length>0&&(o=t,a=n,r.some(function(t){return fe(o,a,t)&&me(t)!==U}))){var i=new ot(e,function(t,e,n,r){var i={};i[U]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(var o=0,a=n;o<a.length;o++){var s=a[o];if(""===s.path&&me(s)!==U){var c=new ot([],{});c._sourceSegment=t,c._segmentIndexShift=e.length,i[me(s)]=c}}return i}(t,e,r,new ot(n,t.children)));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:[]}}var o,a,s,c;if(0===n.length&&(s=t,c=n,r.some(function(t){return fe(s,c,t)}))){var l=new ot(t.segments,function(t,e,n,r){for(var i={},o=0,a=n;o<a.length;o++){var s=a[o];if(fe(t,e,s)&&!r[me(s)]){var c=new ot([],{});c._sourceSegment=t,c._segmentIndexShift=t.segments.length,i[me(s)]=c}}return E({},r,i)}(t,n,r,t.children));return l._sourceSegment=t,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:n}}var u=new ot(t.segments,t.children);return u._sourceSegment=t,u._segmentIndexShift=e.length,{segmentGroup:u,slicedSegments:n}}function fe(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0===n.redirectTo)}function me(t){return t.outlet||U}function ge(t){return t.data||{}}function ye(t){return t.resolve||{}}var ve=function(){return function(){}}(),be=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}(),_e=new n.InjectionToken("ROUTES"),we=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 s.map.call(r,function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new q(Q(i.injector.get(_e)),i)})},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?m.fromPromise(this.loader.load(t)):c.mergeMap.call(et(t()),function(t){return t instanceof n.NgModuleFactory?o.of(t):m.fromPromise(e.compiler.compileModuleAsync(t))})},t}(),Ce=function(){return function(){}}(),xe=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function Ee(t){throw t}function Se(t){return o.of(null)}var ke=function(){function t(t,e,o,a,s,c,l,u){var p=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=o,this.location=a,this.config=u,this.navigations=new r.BehaviorSubject(null),this.navigationId=0,this.events=new i.Subject,this.errorHandler=Ee,this.navigated=!1,this.hooks={beforePreactivation:Se,afterPreactivation:Se},this.urlHandlingStrategy=new xe,this.routeReuseStrategy=new be,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly";this.ngModule=s.get(n.NgModuleRef),this.resetConfig(u),this.currentUrlTree=new it(new ot([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new we(c,l,function(t){return p.triggerEvent(new N(t))},function(t){return p.triggerEvent(new L(t))}),this.routerState=Ft(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(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,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.events.next(t)},t.prototype.resetConfig=function(t){Y(t),this.config=t,this.navigated=!1},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){void 0===e&&(e={});var r=e.relativeTo,i=e.queryParams,o=e.fragment,a=e.preserveQueryParams,s=e.queryParamsHandling,c=e.preserveFragment;n.isDevMode()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=r||this.routerState.root,u=c?this.currentUrlTree.fragment:o,p=null;if(s)switch(s){case"merge":p=E({},this.currentUrlTree.queryParams,i);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=i||null}else p=a?this.currentUrlTree.queryParams:i||null;return null!==p&&(p=this.removeEmptyProps(p)),Kt(l,this.currentUrlTree,t,p,u)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var n=t instanceof it?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e<t.length;e++){var n=t[e];if(null==n)throw new Error("The requested path contains "+n+" segment at index "+e)}}(t),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 it)return nt(this.currentUrlTree,t,e);var n=this.urlSerializer.parse(t);return nt(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(){})):o.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);if(r&&"popstate"==e&&"hashchange"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);var i=null,o=null,a=new Promise(function(t,e){i=t,o=e}),s=++this.navigationId;return this.navigations.next({id:s,source:e,rawUrl:t,extras:n,resolve:i,reject:o,promise:a}),a.catch(function(t){return Promise.reject(t)})},t.prototype.executeScheduledNavigation=function(t){var e=this,n=t.id,r=t.rawUrl,i=t.extras,o=t.resolve,a=t.reject,s=this.urlHandlingStrategy.extract(r),c=!this.navigated||s.toString()!==this.currentUrlTree.toString();("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(r)?(this.events.next(new k(n,this.serializeUrl(s))),Promise.resolve().then(function(t){return e.runNavigate(s,r,!!i.skipLocationChange,!!i.replaceUrl,n,null)}).then(o,a)):c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)?(this.events.next(new k(n,this.serializeUrl(s))),Promise.resolve().then(function(t){return e.runNavigate(s,r,!1,!1,n,Ft(s,e.rootComponentType).snapshot)}).then(o,a)):(this.rawUrlTree=r,o(null))},t.prototype.runNavigate=function(t,e,n,r,i,a){var l=this;return i!==this.navigationId?(this.events.next(new P(i,this.serializeUrl(t),"Navigation ID "+i+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(u,p){var h,d,f,m,g,y;if(a)h=o.of({appliedUrl:t,snapshot:a});else{var v=l.ngModule.injector,b=(d=v,f=l.configLoader,m=l.urlSerializer,g=t,y=l.config,new Ot(d,f,m,g,y).apply());h=c.mergeMap.call(b,function(e){return s.map.call((n=l.rootComponentType,r=l.config,o=e,a=l.serializeUrl(e),void 0===(c=l.paramsInheritanceStrategy)&&(c="emptyOnly"),new ue(n,r,o,a,c).recognize()),function(n){return l.events.next(new T(i,l.serializeUrl(t),l.serializeUrl(e),n)),{appliedUrl:e,snapshot:n}});var n,r,o,a,c})}var _,w,C=c.mergeMap.call(h,function(t){return s.map.call(l.hooks.beforePreactivation(t.snapshot),function(){return t})}),x=s.map.call(C,function(t){var e=t.appliedUrl,n=t.snapshot,r=l.ngModule.injector;return(_=new ce(n,l.routerState.snapshot,r,function(t){return l.triggerEvent(t)})).initialize(l.rootContexts),{appliedUrl:e,snapshot:n}}),E=c.mergeMap.call(x,function(e){var n=e.appliedUrl,r=e.snapshot;return l.navigationId!==i?o.of(!1):(l.triggerEvent(new M(i,l.serializeUrl(t),n,r)),s.map.call(_.checkGuards(),function(e){return l.triggerEvent(new I(i,l.serializeUrl(t),n,r,e)),{appliedUrl:n,snapshot:r,shouldActivate:e}}))}),S=c.mergeMap.call(E,function(e){return l.navigationId!==i?o.of(!1):e.shouldActivate&&_.isActivating()?(l.triggerEvent(new R(i,l.serializeUrl(t),e.appliedUrl,e.snapshot)),s.map.call(_.resolveData(l.paramsInheritanceStrategy),function(){return l.triggerEvent(new D(i,l.serializeUrl(t),e.appliedUrl,e.snapshot)),e})):o.of(e)}),k=c.mergeMap.call(S,function(t){return s.map.call(l.hooks.afterPreactivation(t.snapshot),function(){return t})}),N=s.map.call(k,function(t){var e,n,r,i,o=t.appliedUrl,a=t.snapshot,s=t.shouldActivate;return s?{appliedUrl:o,state:(e=l.routeReuseStrategy,n=a,r=l.routerState,i=Yt(e,n._root,r?r._root:void 0),new jt(i,n)),shouldActivate:s}:{appliedUrl:o,state:null,shouldActivate:s}}),L=l.routerState,j=l.currentUrlTree;N.forEach(function(t){var o=t.appliedUrl,a=t.state;if(t.shouldActivate&&i===l.navigationId){if(l.currentUrlTree=o,l.rawUrlTree=l.urlHandlingStrategy.merge(l.currentUrlTree,e),l.routerState=a,!n){var s=l.urlSerializer.serialize(l.rawUrlTree);l.location.isCurrentPathEqualTo(s)||r?l.location.replaceState(s):l.location.go(s)}new Oe(l.routeReuseStrategy,a,L,function(t){return l.triggerEvent(t)}).activate(l.rootContexts),w=!0}else w=!1}).then(function(){w?(l.navigated=!0,l.events.next(new O(i,l.serializeUrl(t),l.serializeUrl(l.currentUrlTree))),u(!0)):(l.resetUrlToCurrentUrlTree(),l.events.next(new P(i,l.serializeUrl(t),"")),u(!1))},function(n){if((r=n)&&r[W])l.navigated=!0,l.resetStateAndUrl(L,j,e),l.events.next(new P(i,l.serializeUrl(t),n.message)),u(!1);else{l.resetStateAndUrl(L,j,e),l.events.next(new A(i,l.serializeUrl(t),n));try{u(l.errorHandler(n))}catch(t){p(t)}}var r})})},t.prototype.resetStateAndUrl=function(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()},t.prototype.resetUrlToCurrentUrlTree=function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree))},t}(),Oe=function(){function t(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}return t.prototype.activate=function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Gt(this.futureState.root),this.activateChildRoutes(e,n,t)},t.prototype.deactivateChildRoutes=function(t,e,n){var r=this,i=Lt(e);t.children.forEach(function(t){var e=t.value.outlet;r.deactivateRoutes(t,i[e],n),delete i[e]}),J(i,function(t,e){r.deactivateRouteAndItsChildren(t,n)})},t.prototype.deactivateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(r===i)if(r.component){var o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,n);else i&&this.deactivateRouteAndItsChildren(e,n)},t.prototype.deactivateRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var n=e.getContext(t.value.outlet);if(n&&n.outlet){var r=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t,contexts:i})}},t.prototype.deactivateRouteAndOutlet=function(t,e){var n=this,r=e.getContext(t.value.outlet);if(r){var i=Lt(t),o=t.value.component?r.children:e;J(i,function(t,e){return n.deactivateRouteAndItsChildren(t,o)}),r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated())}},t.prototype.activateChildRoutes=function(t,e,n){var r=this,i=Lt(e);t.children.forEach(function(t){r.activateRoutes(t,i[t.value.outlet],n),r.forwardEvent(new B(t.value.snapshot))}),t.children.length&&this.forwardEvent(new F(t.value.snapshot))},t.prototype.activateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(Gt(r),r===i)if(r.component){var o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,n);else if(r.component){o=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){var a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),Pe(a.route)}else{var s=function(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}(r.snapshot),c=s?s.module.componentFactoryResolver:null;o.route=r,o.resolver=c,o.outlet&&o.outlet.activateWith(r,c),this.activateChildRoutes(t,null,o.children)}}else this.activateChildRoutes(t,null,n)},t}();function Pe(t){Gt(t.value),t.children.forEach(Pe)}var Ae=function(){function t(t,e,n,r,i){this.router=t,this.route=e,this.commands=[],null==n&&r.setAttribute(i.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:Me(this.skipLocationChange),replaceUrl:Me(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:Me(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Me(this.preserveFragment)})},enumerable:!0,configurable:!0}),t.decorators=[{type:n.Directive,args:[{selector:":not(a)[routerLink]"}]}],t.ctorParameters=function(){return[{type:ke},{type:Vt},{type:void 0,decorators:[{type:n.Attribute,args:["tabindex"]}]},{type:n.Renderer2},{type:n.ElementRef}]},t.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"]}]},t}(),Te=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 O&&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,r){if(0!==t||e||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var i={skipLocationChange:Me(this.skipLocationChange),replaceUrl:Me(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,i),!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:Me(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Me(this.preserveFragment)})},enumerable:!0,configurable:!0}),t.decorators=[{type:n.Directive,args:[{selector:"a[routerLink]"}]}],t.ctorParameters=function(){return[{type:ke},{type:Vt},{type:e.LocationStrategy}]},t.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","$event.shiftKey"]]}]},t}();function Me(t){return""===t||!!t}var Ie=function(){function t(t,e,n,r){var i=this;this.router=t,this.element=e,this.renderer=n,this.cdr=r,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(function(t){t instanceof O&&i.update()})}return 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;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(function(){var e=t.hasActiveLinks();t.isActive!==e&&(t.isActive=e,t.classes.forEach(function(n){e?t.renderer.addClass(t.element.nativeElement,n):t.renderer.removeClass(t.element.nativeElement,n)}))})},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.decorators=[{type:n.Directive,args:[{selector:"[routerLinkActive]",exportAs:"routerLinkActive"}]}],t.ctorParameters=function(){return[{type:ke},{type:n.ElementRef},{type:n.Renderer2},{type:n.ChangeDetectorRef}]},t.propDecorators={links:[{type:n.ContentChildren,args:[Ae,{descendants:!0}]}],linksWithHrefs:[{type:n.ContentChildren,args:[Te,{descendants:!0}]}],routerLinkActiveOptions:[{type:n.Input}],routerLinkActive:[{type:n.Input}]},t}(),Re=function(){return function(){this.outlet=null,this.route=null,this.resolver=null,this.children=new De,this.attachRef=null}}(),De=function(){function t(){this.contexts=new Map}return t.prototype.onChildOutletCreated=function(t,e){var n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)},t.prototype.onChildOutletDestroyed=function(t){var e=this.getContext(t);e&&(e.outlet=null)},t.prototype.onOutletDeactivated=function(){var t=this.contexts;return this.contexts=new Map,t},t.prototype.onOutletReAttached=function(t){this.contexts=t},t.prototype.getOrCreateContext=function(t){var e=this.getContext(t);return e||(e=new Re,this.contexts.set(t,e)),e},t.prototype.getContext=function(t){return this.contexts.get(t)||null},t}(),Ne=function(){function t(t,e,r,i,o){this.parentContexts=t,this.location=e,this.resolver=r,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new n.EventEmitter,this.deactivateEvents=new n.EventEmitter,this.name=i||U,t.onChildOutletCreated(this.name,this)}return t.prototype.ngOnDestroy=function(){this.parentContexts.onChildOutletDestroyed(this.name)},t.prototype.ngOnInit=function(){if(!this.activated){var t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}},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}),Object.defineProperty(t.prototype,"activatedRouteData",{get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}},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.activateWith=function(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;var n=t._futureSnapshot.routeConfig.component,r=(e=e||this.resolver).resolveComponentFactory(n),i=this.parentContexts.getOrCreateContext(this.name).children,o=new Le(t,i,this.location.injector);this.activated=this.location.createComponent(r,this.location.length,o),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)},t.decorators=[{type:n.Directive,args:[{selector:"router-outlet",exportAs:"outlet"}]}],t.ctorParameters=function(){return[{type:De},{type:n.ViewContainerRef},{type:n.ComponentFactoryResolver},{type:void 0,decorators:[{type:n.Attribute,args:["name"]}]},{type:n.ChangeDetectorRef}]},t.propDecorators={activateEvents:[{type:n.Output,args:["activate"]}],deactivateEvents:[{type:n.Output,args:["deactivate"]}]},t}(),Le=function(){function t(t,e,n){this.route=t,this.childContexts=e,this.parent=n}return t.prototype.get=function(t,e){return t===Vt?this.route:t===De?this.childContexts:this.parent.get(t,e)},t}(),je=function(){return function(){}}(),Fe=function(){function t(){}return t.prototype.preload=function(t,e){return p._catch.call(e(),function(){return o.of(null)})},t}(),Ve=function(){function t(){}return t.prototype.preload=function(t,e){return o.of(null)},t}(),Be=function(){function t(t,e,n,r,i){this.router=t,this.injector=r,this.preloadingStrategy=i;this.loader=new we(e,n,function(e){return t.triggerEvent(new N(e))},function(e){return t.triggerEvent(new L(e))})}return t.prototype.setUpPreloading=function(){var t=this,e=w.filter.call(this.router.events,function(t){return t instanceof O});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,i=e;r<i.length;r++){var o=i[r];if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var a=o._loadedConfig;n.push(this.processRoutes(a.module,a.routes))}else o.loadChildren&&!o.canLoad?n.push(this.preloadConfig(t,o)):o.children&&n.push(this.processRoutes(t,o.children))}return v.mergeAll.call(u.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 c.mergeMap.call(r,function(t){return e._loadedConfig=t,n.processRoutes(t.module,t.routes)})})},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:ke},{type:n.NgModuleFactoryLoader},{type:n.Compiler},{type:n.Injector},{type:je}]},t}(),Ue=[Ne,Ae,Te,Ie],He=new n.InjectionToken("ROUTER_CONFIGURATION"),ze=new n.InjectionToken("ROUTER_FORROOT_GUARD"),We=[e.Location,{provide:lt,useClass:ut},{provide:ke,useFactory:Xe,deps:[n.ApplicationRef,lt,De,e.Location,n.Injector,n.NgModuleFactoryLoader,n.Compiler,_e,He,[Ce,new n.Optional],[ve,new n.Optional]]},De,{provide:Vt,useFactory:Qe,deps:[ke]},{provide:n.NgModuleFactoryLoader,useClass:n.SystemJsNgModuleLoader},Be,Ve,Fe,{provide:He,useValue:{enableTracing:!1}}];function Ge(){return new n.NgProbeToken("Router",ke)}var qe=function(){function t(t,e){}return t.forRoot=function(r,i){return{ngModule:t,providers:[We,$e(r),{provide:ze,useFactory:Ke,deps:[[ke,new n.Optional,new n.SkipSelf]]},{provide:He,useValue:i||{}},{provide:e.LocationStrategy,useFactory:Ye,deps:[e.PlatformLocation,[new n.Inject(e.APP_BASE_HREF),new n.Optional],He]},{provide:je,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:Ve},{provide:n.NgProbeToken,multi:!0,useFactory:Ge},nn()]}},t.forChild=function(e){return{ngModule:t,providers:[$e(e)]}},t.decorators=[{type:n.NgModule,args:[{declarations:Ue,exports:Ue}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[ze]}]},{type:ke,decorators:[{type:n.Optional}]}]},t}();function Ye(t,n,r){return void 0===r&&(r={}),r.useHash?new e.HashLocationStrategy(t,n):new e.PathLocationStrategy(t,n)}function Ke(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function $e(t){return[{provide:n.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:t},{provide:_e,multi:!0,useValue:t}]}function Xe(t,e,n,r,i,o,a,s,c,l,u){void 0===c&&(c={});var p=new ke(null,e,n,r,i,o,a,Q(s));if(l&&(p.urlHandlingStrategy=l),u&&(p.routeReuseStrategy=u),c.errorHandler&&(p.errorHandler=c.errorHandler),c.enableTracing){var h=_.ɵgetDOM();p.events.subscribe(function(t){h.logGroup("Router Event: "+t.constructor.name),h.log(t.toString()),h.log(t),h.logGroupEnd()})}return c.onSameUrlNavigation&&(p.onSameUrlNavigation=c.onSameUrlNavigation),c.paramsInheritanceStrategy&&(p.paramsInheritanceStrategy=c.paramsInheritanceStrategy),p}function Qe(t){return t.routerState.root}var Ze=function(){function t(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new i.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(ke),i=t.injector.get(He);if(t.isLegacyDisabled(i)||t.isLegacyEnabled(i))e(!0);else if("disabled"===i.initialNavigation)r.setUpLocationChangeListener(),e(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '"+i.initialNavigation+"'");r.hooks.afterPreactivation=function(){return t.initNavigation?o.of(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()}return n})},t.prototype.bootstrapListener=function(t){var e=this.injector.get(He),r=this.injector.get(Be),i=this.injector.get(ke),o=this.injector.get(n.ApplicationRef);t===o.components[0]&&(this.isLegacyEnabled(e)?i.initialNavigation():this.isLegacyDisabled(e)&&i.setUpLocationChangeListener(),r.setUpPreloading(),i.resetRootComponentType(o.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.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:n.Injector}]},t}();function Je(t){return t.appInitializer.bind(t)}function tn(t){return t.bootstrapListener.bind(t)}var en=new n.InjectionToken("Router Initializer");function nn(){return[Ze,{provide:n.APP_INITIALIZER,multi:!0,useFactory:Je,deps:[Ze]},{provide:en,useFactory:tn,deps:[Ze]},{provide:n.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:en}]}var rn=new n.Version("5.2.0");t.RouterLink=Ae,t.RouterLinkWithHref=Te,t.RouterLinkActive=Ie,t.RouterOutlet=Ne,t.ActivationEnd=B,t.ActivationStart=V,t.ChildActivationEnd=F,t.ChildActivationStart=j,t.GuardsCheckEnd=I,t.GuardsCheckStart=M,t.NavigationCancel=P,t.NavigationEnd=O,t.NavigationError=A,t.NavigationStart=k,t.ResolveEnd=D,t.ResolveStart=R,t.RouteConfigLoadEnd=L,t.RouteConfigLoadStart=N,t.RouterEvent=S,t.RoutesRecognized=T,t.RouteReuseStrategy=ve,t.Router=ke,t.ROUTES=_e,t.ROUTER_CONFIGURATION=He,t.ROUTER_INITIALIZER=en,t.RouterModule=qe,t.provideRoutes=$e,t.ChildrenOutletContexts=De,t.OutletContext=Re,t.NoPreloading=Ve,t.PreloadAllModules=Fe,t.PreloadingStrategy=je,t.RouterPreloader=Be,t.ActivatedRoute=Vt,t.ActivatedRouteSnapshot=Ut,t.RouterState=jt,t.RouterStateSnapshot=Ht,t.PRIMARY_OUTLET=U,t.convertToParamMap=z,t.UrlHandlingStrategy=Ce,t.DefaultUrlSerializer=ut,t.UrlSegment=at,t.UrlSegmentGroup=ot,t.UrlSerializer=lt,t.UrlTree=it,t.VERSION=rn,t.ɵROUTER_PROVIDERS=We,t.ɵflatten=Q,t.ɵa=ze,t.ɵg=Ze,t.ɵh=Je,t.ɵi=tn,t.ɵd=Ke,t.ɵc=Ye,t.ɵj=nn,t.ɵf=Qe,t.ɵb=Ge,t.ɵe=Xe,t.ɵk=It,t.ɵl=Nt,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/common"),t("@angular/core"),t("rxjs/BehaviorSubject"),t("rxjs/Subject"),t("rxjs/observable/of"),t("rxjs/operator/concatMap"),t("rxjs/operator/map"),t("rxjs/operator/mergeMap"),t("rxjs/Observable"),t("rxjs/observable/from"),t("rxjs/operator/catch"),t("rxjs/operator/concatAll"),t("rxjs/operator/first"),t("rxjs/util/EmptyError"),t("rxjs/observable/fromPromise"),t("rxjs/operator/every"),t("rxjs/operator/last"),t("rxjs/operator/mergeAll"),t("rxjs/operator/reduce"),t("@angular/platform-browser"),t("rxjs/operator/filter")):i((r.ng=r.ng||{},r.ng.router={}),r.ng.common,r.ng.core,r.Rx,r.Rx,r.Rx.Observable,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx,r.Rx.Observable,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx,r.Rx.Observable,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.ng.platformBrowser,r.Rx.Observable.prototype)},{"@angular/common":55,"@angular/core":57,"@angular/platform-browser":62,"rxjs/BehaviorSubject":64,"rxjs/Observable":67,"rxjs/Subject":71,"rxjs/observable/from":94,"rxjs/observable/fromPromise":97,"rxjs/observable/of":99,"rxjs/operator/catch":102,"rxjs/operator/concatAll":103,"rxjs/operator/concatMap":104,"rxjs/operator/every":105,"rxjs/operator/filter":106,"rxjs/operator/first":107,"rxjs/operator/last":108,"rxjs/operator/map":109,"rxjs/operator/mergeAll":110,"rxjs/operator/mergeMap":111,"rxjs/operator/reduce":112,"rxjs/util/EmptyError":151}],64:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("./Subject"),o=t("./util/ObjectUnsubscribedError"),a=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 o.ObjectUnsubscribedError;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.Subject);n.BehaviorSubject=a},{"./Subject":71,"./util/ObjectUnsubscribedError":152}],65:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=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=i},{"./Subscriber":73}],66:[function(t,e,n){"use strict";var r=t("./Observable"),i=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):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();n.Notification=i},{"./Observable":67}],67:[function(t,e,n){"use strict";var r=t("./util/root"),i=t("./util/toSubscriber"),o=t("./symbol/observable"),a=t("./util/pipe"),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,o=i.toSubscriber(t,e,n);if(r?r.call(o,this.source):o.add(this.source||!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},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 i;i=n.subscribe(function(e){if(i)try{t(e)}catch(t){r(t),i.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[o.observable]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 0===t.length?this:a.pipeFromArray(t)(this)},t.prototype.toPromise=function(t){var e=this;if(t||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?t=r.root.Rx.config.Promise:r.root.Promise&&(t=r.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}();n.Observable=s},{"./symbol/observable":148,"./util/pipe":165,"./util/root":166,"./util/toSubscriber":168}],68:[function(t,e,n){"use strict";n.empty={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},{}],69:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(t("./Subscriber").Subscriber);n.OuterSubscriber=i},{"./Subscriber":73}],70:[function(t,e,n){"use strict";var r=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=Date.now?Date.now:function(){return+new Date},t}();n.Scheduler=r},{}],71:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("./Observable"),o=t("./Subscriber"),a=t("./Subscription"),s=t("./util/ObjectUnsubscribedError"),c=t("./SubjectSubscription"),l=t("./symbol/rxSubscriber"),u=function(t){function e(e){t.call(this,e),this.destination=e}return r(e,t),e}(o.Subscriber);n.SubjectSubscriber=u;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[l.rxSubscriber]=function(){return new u(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 s.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new s.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new s.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 s.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new s.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),a.Subscription.EMPTY):this.isStopped?(t.complete(),a.Subscription.EMPTY):(this.observers.push(t),new c.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new i.Observable;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(i.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):a.Subscription.EMPTY},e}(p);n.AnonymousSubject=h},{"./Observable":67,"./SubjectSubscription":72,"./Subscriber":73,"./Subscription":74,"./symbol/rxSubscriber":149,"./util/ObjectUnsubscribedError":152}],72:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=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=i},{"./Subscription":74}],73:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("./util/isFunction"),o=t("./Subscription"),a=t("./Observer"),s=t("./symbol/rxSubscriber"),c=function(t){function e(n,r,i){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a.empty;break;case 1:if(!n){this.destination=a.empty;break}if("object"==typeof n){n instanceof e?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new l(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new l(this,n,r,i)}}return r(e,t),e.prototype[s.rxSubscriber]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(o.Subscription);n.Subscriber=c;var l=function(t){function e(e,n,r,o){var s;t.call(this),this._parentSubscriber=e;var c=this;i.isFunction(n)?s=n:n&&(s=n.next,r=n.error,o=n.complete,n!==a.empty&&(c=Object.create(n),i.isFunction(c.unsubscribe)&&this.add(c.unsubscribe.bind(c)),c.unsubscribe=this.unsubscribe.bind(this))),this._context=c,this._next=s,this._error=r,this._complete=o}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(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(c)},{"./Observer":68,"./Subscription":74,"./symbol/rxSubscriber":149,"./util/isFunction":159}],74:[function(t,e,n){"use strict";var r=t("./util/isArray"),i=t("./util/isObject"),o=t("./util/isFunction"),a=t("./util/tryCatch"),s=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)}var e;return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,l=this._parents,p=this._unsubscribe,h=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var d=-1,f=l?l.length:0;n;)n.remove(this),n=++d<f&&l[d]||null;if(o.isFunction(p))a.tryCatch(p).call(this)===s.errorObject&&(e=!0,t=t||(s.errorObject.e instanceof c.UnsubscriptionError?u(s.errorObject.e.errors):[s.errorObject.e]));if(r.isArray(h))for(d=-1,f=h.length;++d<f;){var m=h[d];if(i.isObject(m))if(a.tryCatch(m.unsubscribe).call(m)===s.errorObject){e=!0,t=t||[];var g=s.errorObject.e;g instanceof c.UnsubscriptionError?t=t.concat(u(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._parent,n=this._parents;e&&e!==t?n?-1===n.indexOf(t)&&n.push(t):this._parents=[t]:this._parent=t},t.EMPTY=((e=new t).closed=!0,e),t}();function u(t){return t.reduce(function(t,e){return t.concat(e instanceof c.UnsubscriptionError?e.errors:e)},[])}n.Subscription=l},{"./util/UnsubscriptionError":153,"./util/errorObject":154,"./util/isArray":156,"./util/isFunction":159,"./util/isObject":161,"./util/tryCatch":169}],75:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=t("./ScalarObservable"),a=t("./EmptyObservable"),s=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 a.EmptyObservable:1===r?new o.ScalarObservable(t[0],n):new e(t,n)},e.dispatch=function(t){var e=t.arrayLike,n=t.index,r=t.length,i=t.subscriber;i.closed||(n>=r?i.complete():(i.next(e[n]),t.index=n+1,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.arrayLike,r=this.scheduler,i=n.length;if(r)return r.schedule(e.dispatch,0,{arrayLike:n,index:0,length:i,subscriber:t});for(var o=0;o<i&&!t.closed;o++)t.next(n[o]);t.complete()},e}(i.Observable);n.ArrayLikeObservable=s},{"../Observable":67,"./EmptyObservable":79,"./ScalarObservable":87}],76:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=t("./ScalarObservable"),a=t("./EmptyObservable"),s=t("../util/isScheduler"),c=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];s.isScheduler(r)?t.pop():r=null;var i=t.length;return i>1?new e(t,r):1===i?new o.ScalarObservable(t[0],r):new a.EmptyObservable(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.count,i=t.subscriber;n>=r?i.complete():(i.next(e[n]),i.closed||(t.index=n+1,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.array,r=n.length,i=this.scheduler;if(i)return i.schedule(e.dispatch,0,{array:n,index:0,count:r,subscriber:t});for(var o=0;o<r&&!t.closed;o++)t.next(n[o]);t.complete()},e}(i.Observable);n.ArrayObservable=c},{"../Observable":67,"../util/isScheduler":163,"./EmptyObservable":79,"./ScalarObservable":87}],77:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subject"),o=t("../Observable"),a=t("../Subscriber"),s=t("../Subscription"),c=t("../operators/refCount"),l=function(t){function e(e,n){t.call(this),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}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||(this._isComplete=!1,(t=this._connection=new s.Subscription).add(this.source.subscribe(new p(this.getSubject(),this))),t.closed?(this._connection=null,t=s.Subscription.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return c.refCount()(this)},e}(o.Observable);n.ConnectableObservable=l;var u=l.prototype;n.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:u._subscribe},_isComplete:{value:u._isComplete,writable:!0},getSubject:{value:u.getSubject},connect:{value:u.connect},refCount:{value:u.refCount}};var p=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.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.SubjectSubscriber),h=(function(){function t(t){this.connectable=t}t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new h(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i}}(),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}(a.Subscriber))},{"../Observable":67,"../Subject":71,"../Subscriber":73,"../Subscription":74,"../operators/refCount":134}],78:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=t("../util/subscribeToResult"),a=t("../OuterSubscriber"),s=function(t){function e(e){t.call(this),this.observableFactory=e}return r(e,t),e.create=function(t){return new e(t)},e.prototype._subscribe=function(t){return new c(t,this.observableFactory)},e}(i.Observable);n.DeferObservable=s;var c=function(t){function e(e,n){t.call(this,e),this.factory=n,this.tryDefer()}return r(e,t),e.prototype.tryDefer=function(){try{this._callFactory()}catch(t){this._error(t)}},e.prototype._callFactory=function(){var t=this.factory();t&&this.add(o.subscribeToResult(this,t))},e}(a.OuterSubscriber)},{"../Observable":67,"../OuterSubscriber":69,"../util/subscribeToResult":167}],79:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=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=i},{"../Observable":67}],80:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(e,n){t.call(this),this.error=e,this.scheduler=n}return r(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.error;t.subscriber.error(e)},e.prototype._subscribe=function(t){var n=this.error,r=this.scheduler;if(t.syncErrorThrowable=!0,r)return r.schedule(e.dispatch,0,{error:n,subscriber:t});t.error(n)},e}(t("../Observable").Observable);n.ErrorObservable=i},{"../Observable":67}],81:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=t("./EmptyObservable"),a=t("../util/isArray"),s=t("../util/subscribeToResult"),c=t("../OuterSubscriber"),l=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 o.EmptyObservable;var r=null;return"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&a.isArray(t[0])&&(t=t[0]),0===t.length?new o.EmptyObservable:new e(t,r)},e.prototype._subscribe=function(t){return new u(t,this.sources,this.resultSelector)},e}(i.Observable);n.ForkJoinObservable=l;var u=function(t){function e(e,n,r){t.call(this,e),this.sources=n,this.resultSelector=r,this.completed=0,this.haveValues=0;var i=n.length;this.total=i,this.values=new Array(i);for(var o=0;o<i;o++){var a=n[o],c=s.subscribeToResult(this,a,null,o);c&&(c.outerIndex=o,this.add(c))}}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e,i._hasValue||(i._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,n=this.haveValues,r=this.resultSelector,i=this.values,o=i.length;if(t._hasValue){if(this.completed++,this.completed===o){if(n===o){var a=r?r.apply(this,i):i;e.next(a)}e.complete()}}else e.complete()},e}(c.OuterSubscriber)},{"../Observable":67,"../OuterSubscriber":69,"../util/isArray":156,"../util/subscribeToResult":167,"./EmptyObservable":79}],82:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=t("../util/tryCatch"),a=t("../util/isFunction"),s=t("../util/errorObject"),c=t("../Subscription"),l=Object.prototype.toString;var u=function(t){function e(e,n,r,i){t.call(this),this.sourceObj=e,this.eventName=n,this.selector=r,this.options=i}return r(e,t),e.create=function(t,n,r,i){return a.isFunction(r)&&(i=r,r=void 0),new e(t,n,i,r)},e.setupSubscription=function(t,n,r,i,o){var a,s,u,p,h,d;if((d=t)&&"[object NodeList]"===l.call(d)||(h=t)&&"[object HTMLCollection]"===l.call(h))for(var f=0,m=t.length;f<m;f++)e.setupSubscription(t[f],n,r,i,o);else if(p=t,p&&"function"==typeof p.addEventListener&&"function"==typeof p.removeEventListener){var g=t;t.addEventListener(n,r,o),a=function(){return g.removeEventListener(n,r)}}else if(u=t,u&&"function"==typeof u.on&&"function"==typeof u.off){var y=t;t.on(n,r),a=function(){return y.off(n,r)}}else{if(!(s=t)||"function"!=typeof s.addListener||"function"!=typeof s.removeListener)throw new TypeError("Invalid event target");var v=t;t.addListener(n,r),a=function(){return v.removeListener(n,r)}}i.add(new c.Subscription(a))},e.prototype._subscribe=function(t){var n=this.sourceObj,r=this.eventName,i=this.options,a=this.selector,c=a?function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var r=o.tryCatch(a).apply(void 0,e);r===s.errorObject?t.error(s.errorObject.e):t.next(r)}:function(e){return t.next(e)};e.setupSubscription(n,r,c,t,i)},e}(i.Observable);n.FromEventObservable=u},{"../Observable":67,"../Subscription":74,"../util/errorObject":154,"../util/isFunction":159,"../util/tryCatch":169}],83:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/isFunction"),o=t("../Observable"),a=t("../Subscription"),s=function(t){function e(e,n,r){t.call(this),this.addHandler=e,this.removeHandler=n,this.selector=r}return r(e,t),e.create=function(t,n,r){return new e(t,n,r)},e.prototype._subscribe=function(t){var e=this,n=this.removeHandler,r=this.selector?function(){for(var n=[],r=0;r<arguments.length;r++)n[r-0]=arguments[r];e._callSelector(t,n)}:function(e){t.next(e)},o=this._callAddHandler(r,t);i.isFunction(n)&&t.add(new a.Subscription(function(){n(r,o)}))},e.prototype._callSelector=function(t,e){try{var n=this.selector.apply(this,e);t.next(n)}catch(e){t.error(e)}},e.prototype._callAddHandler=function(t,e){try{return this.addHandler(t)||null}catch(t){e.error(t)}},e}(o.Observable);n.FromEventPatternObservable=s},{"../Observable":67,"../Subscription":74,"../util/isFunction":159}],84:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/isArray"),o=t("../util/isArrayLike"),a=t("../util/isPromise"),s=t("./PromiseObservable"),c=t("./IteratorObservable"),l=t("./ArrayObservable"),u=t("./ArrayLikeObservable"),p=t("../symbol/iterator"),h=t("../Observable"),d=t("../operators/observeOn"),f=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[f.observable])return t instanceof h.Observable&&!n?t:new e(t,n);if(i.isArray(t))return new l.ArrayObservable(t,n);if(a.isPromise(t))return new s.PromiseObservable(t,n);if("function"==typeof t[p.iterator]||"string"==typeof t)return new c.IteratorObservable(t,n);if(o.isArrayLike(t))return new u.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[f.observable]().subscribe(t):e[f.observable]().subscribe(new d.ObserveOnSubscriber(t,n,0))},e}(h.Observable);n.FromObservable=m},{"../Observable":67,"../operators/observeOn":132,"../symbol/iterator":147,"../symbol/observable":148,"../util/isArray":156,"../util/isArrayLike":157,"../util/isPromise":162,"./ArrayLikeObservable":75,"./ArrayObservable":76,"./IteratorObservable":85,"./PromiseObservable":86}],85:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/root"),o=t("../Observable"),a=t("../symbol/iterator"),s=function(t){function e(e,n){if(t.call(this),this.scheduler=n,null==e)throw new Error("iterator cannot be null.");this.iterator=function(t){var e=t[a.iterator];if(!e&&"string"==typeof t)return new c(t);if(!e&&void 0!==t.length)return new l(t);if(!e)throw new TypeError("object is not iterable");return t[a.iterator]()}(e)}return r(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,i=t.subscriber;if(n)i.error(t.error);else{var o=r.next();o.done?i.complete():(i.next(o.value),t.index=e+1,i.closed?"function"==typeof r.return&&r.return():this.schedule(t))}},e.prototype._subscribe=function(t){var n=this.iterator,r=this.scheduler;if(r)return r.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}(o.Observable);n.IteratorObservable=s;var c=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[a.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}(),l=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=function(t){var e=+t.length;if(isNaN(e))return 0;if(0===e||(n=e,"number"!=typeof n||!i.root.isFinite(n)))return e;var n;if(r=e,o=+r,(e=(0===o?o:isNaN(o)?o:o<0?-1:1)*Math.floor(Math.abs(e)))<=0)return 0;var r,o;if(e>u)return u;return e}(t)),this.arr=t,this.idx=e,this.len=n}return t.prototype[a.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}();var u=Math.pow(2,53)-1},{"../Observable":67,"../symbol/iterator":147,"../util/root":166}],86:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/root"),o=function(t){function e(e,n){t.call(this),this.promise=e,this.scheduler=n}return r(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e=this,n=this.promise,r=this.scheduler;if(null==r)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){i.root.setTimeout(function(){throw t})});else if(this._isScalar){if(!t.closed)return r.schedule(a,0,{value:this.value,subscriber:t})}else n.then(function(n){e.value=n,e._isScalar=!0,t.closed||t.add(r.schedule(a,0,{value:n,subscriber:t}))},function(e){t.closed||t.add(r.schedule(s,0,{err:e,subscriber:t}))}).then(null,function(t){i.root.setTimeout(function(){throw t})})},e}(t("../Observable").Observable);function a(t){var e=t.value,n=t.subscriber;n.closed||(n.next(e),n.complete())}function s(t){var e=t.err,n=t.subscriber;n.closed||n.error(e)}n.PromiseObservable=o},{"../Observable":67,"../util/root":166}],87:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=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=i},{"../Observable":67}],88:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/isNumeric"),o=t("../Observable"),a=t("../scheduler/async"),s=t("../util/isScheduler"),c=t("../util/isDate"),l=function(t){function e(e,n,r){void 0===e&&(e=0),t.call(this),this.period=-1,this.dueTime=0,i.isNumeric(n)?this.period=Number(n)<1?1:Number(n):s.isScheduler(n)&&(r=n),s.isScheduler(r)||(r=a.async),this.scheduler=r,this.dueTime=c.isDate(e)?+e-this.scheduler.now():e}return r(e,t),e.create=function(t,n,r){return void 0===t&&(t=0),new e(t,n,r)},e.dispatch=function(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}},e.prototype._subscribe=function(t){var n=this.period,r=this.dueTime;return this.scheduler.schedule(e.dispatch,r,{index:0,period:n,subscriber:t})},e}(o.Observable);n.TimerObservable=l},{"../Observable":67,"../scheduler/async":146,"../util/isDate":158,"../util/isNumeric":160,"../util/isScheduler":163}],89:[function(t,e,n){"use strict";var r=t("../util/isScheduler"),i=t("../util/isArray"),o=t("./ArrayObservable"),a=t("../operators/combineLatest");n.combineLatest=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=null,s=null;return r.isScheduler(t[t.length-1])&&(s=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&i.isArray(t[0])&&(t=t[0]),new o.ArrayObservable(t,s).lift(new a.CombineLatestOperator(n))}},{"../operators/combineLatest":117,"../util/isArray":156,"../util/isScheduler":163,"./ArrayObservable":76}],90:[function(t,e,n){"use strict";var r=t("../util/isScheduler"),i=t("./of"),o=t("./from"),a=t("../operators/concatAll");n.concat=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 1===t.length||2===t.length&&r.isScheduler(t[1])?o.from(t[0]):a.concatAll()(i.of.apply(void 0,t))}},{"../operators/concatAll":118,"../util/isScheduler":163,"./from":94,"./of":99}],91:[function(t,e,n){"use strict";var r=t("./DeferObservable");n.defer=r.DeferObservable.create},{"./DeferObservable":78}],92:[function(t,e,n){"use strict";var r=t("./EmptyObservable");n.empty=r.EmptyObservable.create},{"./EmptyObservable":79}],93:[function(t,e,n){"use strict";var r=t("./ForkJoinObservable");n.forkJoin=r.ForkJoinObservable.create},{"./ForkJoinObservable":81}],94:[function(t,e,n){"use strict";var r=t("./FromObservable");n.from=r.FromObservable.create},{"./FromObservable":84}],95:[function(t,e,n){"use strict";var r=t("./FromEventObservable");n.fromEvent=r.FromEventObservable.create},{"./FromEventObservable":82}],96:[function(t,e,n){"use strict";var r=t("./FromEventPatternObservable");n.fromEventPattern=r.FromEventPatternObservable.create},{"./FromEventPatternObservable":83}],97:[function(t,e,n){"use strict";var r=t("./PromiseObservable");n.fromPromise=r.PromiseObservable.create},{"./PromiseObservable":86}],98:[function(t,e,n){"use strict";var r=t("../Observable"),i=t("./ArrayObservable"),o=t("../util/isScheduler"),a=t("../operators/mergeAll");n.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=Number.POSITIVE_INFINITY,s=null,c=t[t.length-1];return o.isScheduler(c)?(s=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof c&&(n=t.pop()),null===s&&1===t.length&&t[0]instanceof r.Observable?t[0]:a.mergeAll(n)(new i.ArrayObservable(t,s))}},{"../Observable":67,"../operators/mergeAll":129,"../util/isScheduler":163,"./ArrayObservable":76}],99:[function(t,e,n){"use strict";var r=t("./ArrayObservable");n.of=r.ArrayObservable.of},{"./ArrayObservable":76}],100:[function(t,e,n){"use strict";var r=t("./ErrorObservable");n._throw=r.ErrorObservable.create},{"./ErrorObservable":80}],101:[function(t,e,n){"use strict";var r=t("./TimerObservable");n.timer=r.TimerObservable.create},{"./TimerObservable":88}],102:[function(t,e,n){"use strict";var r=t("../operators/catchError");n._catch=function(t){return r.catchError(t)(this)}},{"../operators/catchError":116}],103:[function(t,e,n){"use strict";var r=t("../operators/concatAll");n.concatAll=function(){return r.concatAll()(this)}},{"../operators/concatAll":118}],104:[function(t,e,n){"use strict";var r=t("../operators/concatMap");n.concatMap=function(t,e){return r.concatMap(t,e)(this)}},{"../operators/concatMap":119}],105:[function(t,e,n){"use strict";var r=t("../operators/every");n.every=function(t,e){return r.every(t,e)(this)}},{"../operators/every":123}],106:[function(t,e,n){"use strict";var r=t("../operators/filter");n.filter=function(t,e){return r.filter(t,e)(this)}},{"../operators/filter":124}],107:[function(t,e,n){"use strict";var r=t("../operators/first");n.first=function(t,e,n){return r.first(t,e,n)(this)}},{"../operators/first":126}],108:[function(t,e,n){"use strict";var r=t("../operators/last");n.last=function(t,e,n){return r.last(t,e,n)(this)}},{"../operators/last":127}],109:[function(t,e,n){"use strict";var r=t("../operators/map");n.map=function(t,e){return r.map(t,e)(this)}},{"../operators/map":128}],110:[function(t,e,n){"use strict";var r=t("../operators/mergeAll");n.mergeAll=function(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),r.mergeAll(t)(this)}},{"../operators/mergeAll":129}],111:[function(t,e,n){"use strict";var r=t("../operators/mergeMap");n.mergeMap=function(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),r.mergeMap(t,e,n)(this)}},{"../operators/mergeMap":130}],112:[function(t,e,n){"use strict";var r=t("../operators/reduce");n.reduce=function(t,e){return arguments.length>=2?r.reduce(t,e)(this):r.reduce(t)(this)}},{"../operators/reduce":133}],113:[function(t,e,n){"use strict";var r=t("../operators/share");n.share=function(){return r.share()(this)}},{"../operators/share":136}],114:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/tryCatch"),o=t("../util/errorObject"),a=t("../OuterSubscriber"),s=t("../util/subscribeToResult");n.audit=function(t){return function(e){return e.lift(new c(t))}};var c=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.durationSelector))},t}(),l=function(t){function e(e,n){t.call(this,e),this.durationSelector=n,this.hasValue=!1}return r(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=i.tryCatch(this.durationSelector)(t);if(e===o.errorObject)this.destination.error(o.errorObject.e);else{var n=s.subscribeToResult(this,e);n.closed?this.clearThrottle():this.add(this.throttled=n)}}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(t,e,n,r){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(a.OuterSubscriber)},{"../OuterSubscriber":69,"../util/errorObject":154,"../util/subscribeToResult":167,"../util/tryCatch":169}],115:[function(t,e,n){"use strict";var r=t("../scheduler/async"),i=t("./audit"),o=t("../observable/timer");n.auditTime=function(t,e){return void 0===e&&(e=r.async),i.audit(function(){return o.timer(t,e)})}},{"../observable/timer":101,"../scheduler/async":146,"./audit":114}],116:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../OuterSubscriber"),o=t("../util/subscribeToResult");n.catchError=function(t){return function(e){var n=new a(t),r=e.lift(n);return n.caught=r}};var a=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.selector,this.caught))},t}(),s=function(t){function e(e,n,r){t.call(this,e),this.selector=n,this.caught=r}return r(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(o.subscribeToResult(this,n))}},e}(i.OuterSubscriber)},{"../OuterSubscriber":69,"../util/subscribeToResult":167}],117:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../observable/ArrayObservable"),o=t("../util/isArray"),a=t("../OuterSubscriber"),s=t("../util/subscribeToResult"),c={};n.combineLatest=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=null;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&o.isArray(t[0])&&(t=t[0].slice()),function(e){return e.lift.call(new i.ArrayObservable([e].concat(t)),new l(n))}};var l=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project))},t}();n.CombineLatestOperator=l;var u=function(t){function e(e,n){t.call(this,e),this.project=n,this.active=0,this.values=[],this.observables=[]}return r(e,t),e.prototype._next=function(t){this.values.push(c),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(s.subscribeToResult(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.values,a=o[n],s=this.toRespond?a===c?--this.toRespond:this.toRespond:0;o[n]=e,0===s&&(this.project?this._tryProject(o):this.destination.next(o.slice()))},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(a.OuterSubscriber);n.CombineLatestSubscriber=u},{"../OuterSubscriber":69,"../observable/ArrayObservable":76,"../util/isArray":156,"../util/subscribeToResult":167}],118:[function(t,e,n){"use strict";var r=t("./mergeAll");n.concatAll=function(){return r.mergeAll(1)}},{"./mergeAll":129}],119:[function(t,e,n){"use strict";var r=t("./mergeMap");n.concatMap=function(t,e){return r.mergeMap(t,e,1)}},{"./mergeMap":130}],120:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),o=t("../scheduler/async");n.debounceTime=function(t,e){return void 0===e&&(e=o.async),function(n){return n.lift(new a(t,e))}};var a=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.dueTime,this.scheduler))},t}(),s=function(t){function e(e,n,r){t.call(this,e),this.dueTime=n,this.scheduler=r,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}return r(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){this.clearDebounce(),this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(i.Subscriber);function c(t){t.debouncedNext()}},{"../Subscriber":73,"../scheduler/async":146}],121:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");n.defaultIfEmpty=function(t){return void 0===t&&(t=null),function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.defaultValue))},t}(),a=function(t){function e(e,n){t.call(this,e),this.defaultValue=n,this.isEmpty=!0}return r(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(i.Subscriber)},{"../Subscriber":73}],122:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../scheduler/async"),o=t("../util/isDate"),a=t("../Subscriber"),s=t("../Notification");n.delay=function(t,e){void 0===e&&(e=i.async);var n=o.isDate(t)?+t-e.now():Math.abs(t);return function(t){return t.lift(new c(n,e))}};var c=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.delay,this.scheduler))},t}(),l=function(t){function e(e,n,r){t.call(this,e),this.delay=n,this.scheduler=r,this.queue=[],this.active=!1,this.errored=!1}return r(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new u(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(s.Notification.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t)},e.prototype._complete=function(){this.scheduleNotification(s.Notification.createComplete())},e}(a.Subscriber),u=function(){return function(t,e){this.time=t,this.notification=e}}()},{"../Notification":66,"../Subscriber":73,"../scheduler/async":146,"../util/isDate":158}],123:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");n.every=function(t,e){return function(n){return n.lift(new o(t,e,n))}};var o=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,i){t.call(this,e),this.predicate=n,this.thisArg=r,this.source=i,this.index=0,this.thisArg=r||this}return r(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":73}],124:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");n.filter=function(t,e){return function(n){return n.lift(new o(t,e))}};var o=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}return r(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":73}],125:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),o=t("../Subscription");n.finalize=function(t){return function(e){return e.lift(new a(t))}};var a=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.callback))},t}(),s=function(t){function e(e,n){t.call(this,e),this.add(new o.Subscription(n))}return r(e,t),e}(i.Subscriber)},{"../Subscriber":73,"../Subscription":74}],126:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),o=t("../util/EmptyError");n.first=function(t,e,n){return function(r){return r.lift(new a(t,e,n,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 s(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),s=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.index=0,this.hasCompleted=!1,this._emitted=!1}return r(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 o.EmptyError):(t.next(this.defaultValue),t.complete())},e}(i.Subscriber)},{"../Subscriber":73,"../util/EmptyError":151}],127:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),o=t("../util/EmptyError");n.last=function(t,e,n){return function(r){return r.lift(new a(t,e,n,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 s(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),s=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.hasValue=!1,this.index=0,void 0!==i&&(this.lastValue=i,this.hasValue=!0)}return r(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 o.EmptyError)},e}(i.Subscriber)},{"../Subscriber":73,"../util/EmptyError":151}],128:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");n.map=function(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(t,e))}};var o=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=o;var a=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.count=0,this.thisArg=r||this}return r(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":73}],129:[function(t,e,n){"use strict";var r=t("./mergeMap"),i=t("../util/identity");n.mergeAll=function(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),r.mergeMap(i.identity,null,t)}},{"../util/identity":155,"./mergeMap":130}],130:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/subscribeToResult"),o=t("../OuterSubscriber");n.mergeMap=function(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return"number"==typeof e&&(n=e,e=null),r.lift(new a(t,e,n))}};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 s(t,this.project,this.resultSelector,this.concurrent))},t}();n.MergeMapOperator=a;var s=function(t){function e(e,n,r,i){void 0===i&&(i=Number.POSITIVE_INFINITY),t.call(this,e),this.project=n,this.resultSelector=r,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return r(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,i){this.resultSelector?this._notifyResultSelector(t,e,n,r):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,n,r){var i;try{i=this.resultSelector(t,e,n,r)}catch(t){return void this.destination.error(t)}this.destination.next(i)},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}(o.OuterSubscriber);n.MergeMapSubscriber=s},{"../OuterSubscriber":69,"../util/subscribeToResult":167}],131:[function(t,e,n){"use strict";var r=t("../observable/ConnectableObservable");n.multicast=function(t,e){return function(n){var o;if(o="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new i(o,e));var a=Object.create(n,r.connectableObservableDescriptor);return a.source=n,a.subjectFactory=o,a}};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(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}();n.MulticastOperator=i},{"../observable/ConnectableObservable":77}],132:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),o=t("../Notification");n.observeOn=function(t,e){return void 0===e&&(e=0),function(n){return n.lift(new a(t,e))}};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 s(t,this.scheduler,this.delay))},t}();n.ObserveOnOperator=a;var s=function(t){function e(e,n,r){void 0===r&&(r=0),t.call(this,e),this.scheduler=n,this.delay=r}return r(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(o.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(o.Notification.createError(t))},e.prototype._complete=function(){this.scheduleMessage(o.Notification.createComplete())},e}(i.Subscriber);n.ObserveOnSubscriber=s;var c=function(){return function(t,e){this.notification=t,this.destination=e}}();n.ObserveOnMessage=c},{"../Notification":66,"../Subscriber":73}],133:[function(t,e,n){"use strict";var r=t("./scan"),i=t("./takeLast"),o=t("./defaultIfEmpty"),a=t("../util/pipe");n.reduce=function(t,e){return arguments.length>=2?function(n){return a.pipe(r.scan(t,e),i.takeLast(1),o.defaultIfEmpty(e))(n)}:function(e){return a.pipe(r.scan(function(e,n,r){return t(e,n,r+1)}),i.takeLast(1))(e)}}},{"../util/pipe":165,"./defaultIfEmpty":121,"./scan":135,"./takeLast":140}],134:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");n.refCount=function(){return function(t){return t.lift(new o(t))}};var o=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new a(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),a=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}(i.Subscriber)},{"../Subscriber":73}],135:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");n.scan=function(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new o(t,e,n))}};var o=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}(),a=function(t){function e(e,n,r,i){t.call(this,e),this.accumulator=n,this._seed=r,this.hasSeed=i,this.index=0}return r(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(i.Subscriber)},{"../Subscriber":73}],136:[function(t,e,n){"use strict";var r=t("./multicast"),i=t("./refCount"),o=t("../Subject");function a(){return new o.Subject}n.share=function(){return function(t){return i.refCount()(r.multicast(a)(t))}}},{"../Subject":71,"./multicast":131,"./refCount":134}],137:[function(t,e,n){"use strict";var r=t("../observable/ArrayObservable"),i=t("../observable/ScalarObservable"),o=t("../observable/EmptyObservable"),a=t("../observable/concat"),s=t("../util/isScheduler");n.startWith=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){var n=t[t.length-1];s.isScheduler(n)?t.pop():n=null;var c=t.length;return 1===c?a.concat(new i.ScalarObservable(t[0],n),e):c>1?a.concat(new r.ArrayObservable(t,n),e):a.concat(new o.EmptyObservable(n),e)}}},{"../observable/ArrayObservable":76,"../observable/EmptyObservable":79,"../observable/ScalarObservable":87,"../observable/concat":90,"../util/isScheduler":163}],138:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../OuterSubscriber"),o=t("../util/subscribeToResult");n.switchMap=function(t,e){return function(n){return n.lift(new a(t,e))}};var a=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.resultSelector))},t}(),s=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.resultSelector=r,this.index=0}return r(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe(),this.add(this.innerSubscription=o.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.resultSelector?this._tryNotifyNext(t,e,n,r):this.destination.next(e)},e.prototype._tryNotifyNext=function(t,e,n,r){var i;try{i=this.resultSelector(t,e,n,r)}catch(t){return void this.destination.error(t)}this.destination.next(i)},e}(i.OuterSubscriber)},{"../OuterSubscriber":69,"../util/subscribeToResult":167}],139:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),o=t("../util/ArgumentOutOfRangeError"),a=t("../observable/EmptyObservable");n.take=function(t){return function(e){return 0===t?new a.EmptyObservable:e.lift(new s(t))}};var s=function(){function t(t){if(this.total=t,this.total<0)throw new o.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,n){t.call(this,e),this.total=n,this.count=0}return r(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(i.Subscriber)},{"../Subscriber":73,"../observable/EmptyObservable":79,"../util/ArgumentOutOfRangeError":150}],140:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),o=t("../util/ArgumentOutOfRangeError"),a=t("../observable/EmptyObservable");n.takeLast=function(t){return function(e){return 0===t?new a.EmptyObservable:e.lift(new s(t))}};var s=function(){function t(t){if(this.total=t,this.total<0)throw new o.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,n){t.call(this,e),this.total=n,this.ring=new Array,this.count=0}return r(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=e++%n;t.next(r[o])}t.complete()},e}(i.Subscriber)},{"../Subscriber":73,"../observable/EmptyObservable":79,"../util/ArgumentOutOfRangeError":150}],141:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../OuterSubscriber"),o=t("../util/subscribeToResult");n.takeUntil=function(t){return function(e){return e.lift(new a(t))}};var a=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.notifier))},t}(),s=function(t){function e(e,n){t.call(this,e),this.notifier=n,this.add(o.subscribeToResult(this,n))}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.complete()},e.prototype.notifyComplete=function(){},e}(i.OuterSubscriber)},{"../OuterSubscriber":69,"../util/subscribeToResult":167}],142:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");n.tap=function(t,e,n){return function(r){return r.lift(new o(t,e,n))}};var o=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.nextOrObserver,this.error,this.complete))},t}(),a=function(t){function e(e,n,r,o){t.call(this,e);var a=new i.Subscriber(n,r,o);a.syncErrorThrowable=!0,this.add(a),this.safeSubscriber=a}return r(e,t),e.prototype._next=function(t){var e=this.safeSubscriber;e.next(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.next(t)},e.prototype._error=function(t){var e=this.safeSubscriber;e.error(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.error(t)},e.prototype._complete=function(){var t=this.safeSubscriber;t.complete(),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.complete()},e}(i.Subscriber)},{"../Subscriber":73}],143:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(e,n){t.call(this)}return r(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(t("../Subscription").Subscription);n.Action=i},{"../Subscription":74}],144:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/root"),o=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n,this.pending=!1}return r(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t,this.pending=!0;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),i.root.setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;i.root.clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(t("./Action").Action);n.AsyncAction=o},{"../util/root":166,"./Action":143}],145:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(){t.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return r(e,t),e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(t("../Scheduler").Scheduler);n.AsyncScheduler=i},{"../Scheduler":70}],146:[function(t,e,n){"use strict";var r=t("./AsyncAction"),i=t("./AsyncScheduler");n.async=new i.AsyncScheduler(r.AsyncAction)},{"./AsyncAction":144,"./AsyncScheduler":145}],147:[function(t,e,n){"use strict";var r=t("../util/root");function i(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 i=Object.getOwnPropertyNames(r.prototype),o=0;o<i.length;++o){var a=i[o];if("entries"!==a&&"size"!==a&&r.prototype[a]===r.prototype.entries)return a}return"@@iterator"}n.symbolIteratorPonyfill=i,n.iterator=i(r.root),n.$$iterator=n.iterator},{"../util/root":166}],148:[function(t,e,n){"use strict";var r=t("../util/root");function i(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}n.getSymbolObservable=i,n.observable=i(r.root),n.$$observable=n.observable},{"../util/root":166}],149:[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",n.$$rxSubscriber=n.rxSubscriber},{"../util/root":166}],150:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(){var e=t.call(this,"argument out of range");this.name=e.name="ArgumentOutOfRangeError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);n.ArgumentOutOfRangeError=i},{}],151:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=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=i},{}],152:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=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=i},{}],153:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=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=i},{}],154:[function(t,e,n){"use strict";n.errorObject={e:{}}},{}],155:[function(t,e,n){"use strict";n.identity=function(t){return t}},{}],156:[function(t,e,n){"use strict";n.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},{}],157:[function(t,e,n){"use strict";n.isArrayLike=function(t){return t&&"number"==typeof t.length}},{}],158:[function(t,e,n){"use strict";n.isDate=function(t){return t instanceof Date&&!isNaN(+t)}},{}],159:[function(t,e,n){"use strict";n.isFunction=function(t){return"function"==typeof t}},{}],160:[function(t,e,n){"use strict";var r=t("../util/isArray");n.isNumeric=function(t){return!r.isArray(t)&&t-parseFloat(t)+1>=0}},{"../util/isArray":156}],161:[function(t,e,n){"use strict";n.isObject=function(t){return null!=t&&"object"==typeof t}},{}],162:[function(t,e,n){"use strict";n.isPromise=function(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}},{}],163:[function(t,e,n){"use strict";n.isScheduler=function(t){return t&&"function"==typeof t.schedule}},{}],164:[function(t,e,n){"use strict";n.noop=function(){}},{}],165:[function(t,e,n){"use strict";var r=t("./noop");function i(t){return t?1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}:r.noop}n.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return i(t)},n.pipeFromArray=i},{"./noop":164}],166:[function(t,e,n){(function(t){"use strict";var e="undefined"!=typeof window&&window,r="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=e||void 0!==t&&t||r;n.root=i,function(){if(!i)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:{})},{}],167:[function(t,e,n){"use strict";var r=t("./root"),i=t("./isArrayLike"),o=t("./isPromise"),a=t("./isObject"),s=t("../Observable"),c=t("../symbol/iterator"),l=t("../InnerSubscriber"),u=t("../symbol/observable");n.subscribeToResult=function(t,e,n,p){var h=new l.InnerSubscriber(t,n,p);if(h.closed)return null;if(e instanceof s.Observable)return e._isScalar?(h.next(e.value),h.complete(),null):(h.syncErrorThrowable=!0,e.subscribe(h));if(i.isArrayLike(e)){for(var d=0,f=e.length;d<f&&!h.closed;d++)h.next(e[d]);h.closed||h.complete()}else{if(o.isPromise(e))return e.then(function(t){h.closed||(h.next(t),h.complete())},function(t){return h.error(t)}).then(null,function(t){r.root.setTimeout(function(){throw t})}),h;if(e&&"function"==typeof e[c.iterator])for(var m=e[c.iterator]();;){var g=m.next();if(g.done){h.complete();break}if(h.next(g.value),h.closed)break}else if(e&&"function"==typeof e[u.observable]){var y=e[u.observable]();if("function"==typeof y.subscribe)return y.subscribe(new l.InnerSubscriber(t,n,p));h.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var v="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(v))}}return null}},{"../InnerSubscriber":65,"../Observable":67,"../symbol/iterator":147,"../symbol/observable":148,"./isArrayLike":157,"./isObject":161,"./isPromise":162,"./root":166}],168:[function(t,e,n){"use strict";var r=t("../Subscriber"),i=t("../symbol/rxSubscriber"),o=t("../Observer");n.toSubscriber=function(t,e,n){if(t){if(t instanceof r.Subscriber)return t;if(t[i.rxSubscriber])return t[i.rxSubscriber]()}return t||e||n?new r.Subscriber(t,e,n):new r.Subscriber(o.empty)}},{"../Observer":68,"../Subscriber":73,"../symbol/rxSubscriber":149}],169:[function(t,e,n){"use strict";var r,i=t("./errorObject");function o(){try{return r.apply(this,arguments)}catch(t){return i.errorObject.e=t,i.errorObject}}n.tryCatch=function(t){return r=t,o}},{"./errorObject":154}],170:[function(t,e,n){(function(t){var n,r,i,o,a,s,c,l,u,p,h,d,f,m,g,y,v;!function(n){var r="object"==typeof t?t:"object"==typeof self?self:"object"==typeof this?this:{};function i(t,e){return t!==r&&("function"==typeof Object.create?Object.defineProperty(t,"__esModule",{value:!0}):t.__esModule=!0),function(n,r){return t[n]=e?e(n,r):r}}"object"==typeof e&&"object"==typeof e.exports?n(i(r,i(e.exports))):n(i(r))}(function(t){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};n=function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)},r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},i=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&(n[r[i]]=t[r[i]])}return n},o=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},a=function(t,e){return function(n,r){e(n,r,t)}},s=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){t.done?i(t.value):new n(function(e){e(t.value)}).then(a,s)}c((r=r.apply(t,e||[])).next())})},l=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=r[2&o[0]?"return":o[0]?"throw":"next"])&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[0,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},u=function(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])},p=function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}},h=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},d=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t},f=function(t){return this instanceof f?(this.v=t,this):new f(t)},m=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){i[t]&&(r[t]=function(e){return new Promise(function(n,r){o.push([t,e,n,r])>1||s(t,e)})})}function s(t,e){try{(n=i[t](e)).value instanceof f?Promise.resolve(n.value.v).then(c,l):u(o[0][2],n)}catch(t){u(o[0][3],t)}var n}function c(t){s("next",t)}function l(t){s("throw",t)}function u(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}},g=function(t){var e,n;return e={},r("next"),r("throw",function(t){throw t}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){t[r]&&(e[r]=function(e){return(n=!n)?{value:f(t[r](e)),done:"return"===r}:i?i(e):e})}},y=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator];return e?e.call(t):"function"==typeof p?p(t):t[Symbol.iterator]()},v=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},t("__extends",n),t("__assign",r),t("__rest",i),t("__decorate",o),t("__param",a),t("__metadata",s),t("__awaiter",c),t("__generator",l),t("__exportStar",u),t("__values",p),t("__read",h),t("__spread",d),t("__await",f),t("__asyncGenerator",m),t("__asyncDelegator",g),t("__asyncValues",y),t("__makeTemplateObject",v)})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[36])(36)});
\ 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,n,r){function i(a,s){if(!n[a]){if(!e[a]){var c="function"==typeof require&&require;if(!s&&c)return c(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[a]={exports:{}};e[a][0].call(u.exports,function(t){var n=e[a][1][t];return i(n||t)},u,u.exports,t,e,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("@angular/router"),c=t("../translate.component"),l=t("../notification.service"),u=function(){function t(t,e,n,r){this.http=t,this.route=e,this.router=n,this.notify=r,this.lang=c.LANG,this.action={},this.statuses=[],this.actionPagesList=[],this.categoriesList=[],this.keywordsList=[],this.loading=!1}return 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.administration+"</a> > <a onclick='location.hash = \"/administration/actions\"' style='cursor: pointer'>"+this.lang.actions+"</a> > ";1==this.creationMode?e+=this.lang.actionCreation:e+=this.lang.actionModification,$j("#ariane")[0].innerHTML=e},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.route.params.subscribe(function(e){void 0===e.id?(t.creationMode=!0,t.http.get(t.coreUrl+"rest/initAction").subscribe(function(e){t.action=e.action,t.categoriesList=e.categoriesList,t.statuses=e.statuses,t.actionPagesList=e.action_pagesList,t.keywordsList=e.keywordsList,t.loading=!1})):(t.creationMode=!1,t.http.get(t.coreUrl+"rest/actions/"+e.id).subscribe(function(e){t.action=e.action,t.categoriesList=e.categoriesList,t.statuses=e.statuses,t.actionPagesList=e.action_pagesList,t.keywordsList=e.keywordsList,t.loading=!1}))}),this.updateBreadcrumb(angularGlobals.applicationName)},t.prototype.onSubmit=function(){var t=this;this.creationMode?this.http.post(this.coreUrl+"rest/actions",this.action).subscribe(function(e){t.router.navigate(["/administration/actions"]),t.notify.success(t.lang.actionAdded)},function(e){t.notify.error(JSON.parse(e._body).errors)}):this.http.put(this.coreUrl+"rest/actions/"+this.action.id,this.action).subscribe(function(e){t.router.navigate(["/administration/actions"]),t.notify.success(t.lang.actionUpdated)},function(e){t.notify.error(JSON.parse(e._body).errors)})},t=r([o.Component({templateUrl:angularGlobals["action-administrationView"],providers:[l.NotificationService]}),i("design:paramtypes",[a.HttpClient,s.ActivatedRoute,s.Router,l.NotificationService])],t)}();n.ActionAdministrationComponent=u},{"../notification.service":31,"../translate.component":34,"@angular/common/http":55,"@angular/core":58,"@angular/router":64}],2:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("../translate.component"),c=t("../notification.service"),l=t("@angular/material"),u=function(){function t(t,e){this.http=t,this.notify=e,this.lang=s.LANG,this.search=null,this.actions=[],this.titles=[],this.loading=!1,this.displayedColumns=["id","label_action","history","is_folder_action","actions"],this.dataSource=new l.MatTableDataSource(this.actions)}return t.prototype.applyFilter=function(t){t=(t=t.trim()).toLowerCase(),this.dataSource.filter=t},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'>"+this.lang.administration+"</a> > "+this.lang.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/actions").subscribe(function(e){t.actions=e.actions,t.loading=!1,setTimeout(function(){t.dataSource=new l.MatTableDataSource(t.actions),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort},0)},function(t){console.log(t),location.href="index.php"})},t.prototype.deleteAction=function(t){var e=this;confirm(this.lang.confirmAction+" "+this.lang.delete+" « "+t.label_action+" »")&&this.http.delete(this.coreUrl+"rest/actions/"+t.id).subscribe(function(t){e.actions=t.action,e.dataSource=new l.MatTableDataSource(e.actions),e.dataSource.paginator=e.paginator,e.dataSource.sort=e.sort,e.notify.success(e.lang.actionDeleted)},function(t){e.notify.error(JSON.parse(t._body).errors)})},r([o.ViewChild(l.MatPaginator),i("design:type",l.MatPaginator)],t.prototype,"paginator",void 0),r([o.ViewChild(l.MatSort),i("design:type",l.MatSort)],t.prototype,"sort",void 0),t=r([o.Component({templateUrl:angularGlobals["actions-administrationView"],providers:[c.NotificationService]}),i("design:paramtypes",[a.HttpClient,c.NotificationService])],t)}();n.ActionsAdministrationComponent=u},{"../notification.service":31,"../translate.component":34,"@angular/common/http":55,"@angular/core":58,"@angular/material":60}],3:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),o=t("@angular/router"),a=t("./administration.component"),s=t("./users-administration.component"),c=t("./user-administration.component"),l=t("./groups-administration.component"),u=t("./group-administration.component"),p=t("./baskets-administration.component"),h=t("./baskets-order-administration.component"),d=t("./basket-administration.component"),f=t("./statuses-administration.component"),m=t("./status-administration.component"),g=t("./actions-administration.component"),y=t("./action-administration.component"),v=t("./parameter-administration.component"),b=t("./parameters-administration.component"),_=t("./priorities-administration.component"),w=t("./priority-administration.component"),C=t("./reports-administration.component"),x=t("./notifications-administration.component"),E=t("./notification-administration.component"),S=t("./notifications-schedule-administration.component"),k=t("./history-administration.component"),O=t("./historyBatch-administration.component"),P=t("./update-status-administration.component"),A=function(){function t(){}return t=r([i.NgModule({imports:[o.RouterModule.forChild([{path:"administration",component:a.AdministrationComponent},{path:"administration/users",component:s.UsersAdministrationComponent},{path:"administration/users/new",component:c.UserAdministrationComponent},{path:"administration/users/:id",component:c.UserAdministrationComponent},{path:"administration/groups",component:l.GroupsAdministrationComponent},{path:"administration/groups/new",component:u.GroupAdministrationComponent},{path:"administration/groups/:id",component:u.GroupAdministrationComponent},{path:"administration/baskets",component:p.BasketsAdministrationComponent},{path:"administration/baskets-sorted",component:h.BasketsOrderAdministrationComponent},{path:"administration/baskets/new",component:d.BasketAdministrationComponent},{path:"administration/baskets/:id",component:d.BasketAdministrationComponent},{path:"administration/statuses",component:f.StatusesAdministrationComponent},{path:"administration/statuses/new",component:m.StatusAdministrationComponent},{path:"administration/statuses/:identifier",component:m.StatusAdministrationComponent},{path:"administration/parameters",component:b.ParametersAdministrationComponent},{path:"administration/parameters/new",component:v.ParameterAdministrationComponent},{path:"administration/parameters/:id",component:v.ParameterAdministrationComponent},{path:"administration/reports",component:C.ReportsAdministrationComponent},{path:"administration/priorities",component:_.PrioritiesAdministrationComponent},{path:"administration/priorities/new",component:w.PriorityAdministrationComponent},{path:"administration/priorities/:id",component:w.PriorityAdministrationComponent},{path:"administration/actions",component:g.ActionsAdministrationComponent},{path:"administration/actions/new",component:y.ActionAdministrationComponent},{path:"administration/actions/:id",component:y.ActionAdministrationComponent},{path:"administration/notifications",component:x.NotificationsAdministrationComponent},{path:"administration/notifications/new",component:E.NotificationAdministrationComponent},{path:"administration/notifications/schedule",component:S.NotificationsScheduleAdministrationComponent},{path:"administration/notifications/:identifier",component:E.NotificationAdministrationComponent},{path:"administration/history",component:k.HistoryAdministrationComponent},{path:"administration/historyBatch",component:O.HistoryBatchAdministrationComponent},{path:"administration/update-status",component:P.UpdateStatusAdministrationComponent}])],exports:[o.RouterModule]})],t)}();n.AdministrationRoutingModule=A},{"./action-administration.component":1,"./actions-administration.component":2,"./administration.component":4,"./basket-administration.component":6,"./baskets-administration.component":7,"./baskets-order-administration.component":8,"./group-administration.component":9,"./groups-administration.component":10,"./history-administration.component":11,"./historyBatch-administration.component":12,"./notification-administration.component":13,"./notifications-administration.component":14,"./notifications-schedule-administration.component":15,"./parameter-administration.component":16,"./parameters-administration.component":17,"./priorities-administration.component":18,"./priority-administration.component":19,"./reports-administration.component":20,"./status-administration.component":21,"./statuses-administration.component":22,"./update-status-administration.component":23,"./user-administration.component":24,"./users-administration.component":25,"@angular/core":58,"@angular/router":64}],4:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("@angular/router"),c=t("../translate.component"),l=function(){function t(t,e){this.http=t,this.router=e,this.lang=c.LANG,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").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=r([o.Component({templateUrl:angularGlobals.administrationView,styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"]}),i("design:paramtypes",[a.HttpClient,s.Router])],t)}();n.AdministrationComponent=l},{"../translate.component":34,"@angular/common/http":55,"@angular/core":58,"@angular/router":64}],5:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),o=t("@angular/common"),a=t("@angular/forms"),s=t("@angular/common/http"),c=t("../app-material.module"),l=t("./administration-routing.module"),u=t("./administration.component"),p=t("./users-administration.component"),h=t("./user-administration.component"),d=t("./groups-administration.component"),f=t("./group-administration.component"),m=t("./baskets-administration.component"),g=t("./baskets-order-administration.component"),y=t("./basket-administration.component"),v=t("./statuses-administration.component"),b=t("./status-administration.component"),_=t("./actions-administration.component"),w=t("./action-administration.component"),C=t("./parameters-administration.component"),x=t("./parameter-administration.component"),E=t("./priorities-administration.component"),S=t("./priority-administration.component"),k=t("./reports-administration.component"),O=t("./history-administration.component"),P=t("./historyBatch-administration.component"),A=t("./update-status-administration.component"),T=t("./notifications-administration.component"),M=t("./notifications-schedule-administration.component"),I=t("./notification-administration.component"),R=function(){function t(){}return t=r([i.NgModule({imports:[o.CommonModule,a.FormsModule,a.ReactiveFormsModule,s.HttpClientModule,c.AppMaterialModule,l.AdministrationRoutingModule],declarations:[u.AdministrationComponent,p.UsersAdministrationComponent,h.UserAdministrationComponent,d.GroupsAdministrationComponent,f.GroupAdministrationComponent,m.BasketsAdministrationComponent,g.BasketsOrderAdministrationComponent,y.BasketAdministrationComponent,v.StatusesAdministrationComponent,b.StatusAdministrationComponent,_.ActionsAdministrationComponent,w.ActionAdministrationComponent,C.ParametersAdministrationComponent,x.ParameterAdministrationComponent,E.PrioritiesAdministrationComponent,S.PriorityAdministrationComponent,k.ReportsAdministrationComponent,O.HistoryAdministrationComponent,P.HistoryBatchAdministrationComponent,A.UpdateStatusAdministrationComponent,T.NotificationsAdministrationComponent,M.NotificationsScheduleAdministrationComponent,I.NotificationAdministrationComponent,p.UsersAdministrationRedirectModalComponent,d.GroupsAdministrationRedirectModalComponent,y.BasketAdministrationSettingsModalComponent,y.BasketAdministrationGroupListModalComponent],entryComponents:[p.UsersAdministrationRedirectModalComponent,d.GroupsAdministrationRedirectModalComponent,y.BasketAdministrationSettingsModalComponent,y.BasketAdministrationGroupListModalComponent]})],t)}();n.AdministrationModule=R},{"../app-material.module":26,"./action-administration.component":1,"./actions-administration.component":2,"./administration-routing.module":3,"./administration.component":4,"./basket-administration.component":6,"./baskets-administration.component":7,"./baskets-order-administration.component":8,"./group-administration.component":9,"./groups-administration.component":10,"./history-administration.component":11,"./historyBatch-administration.component":12,"./notification-administration.component":13,"./notifications-administration.component":14,"./notifications-schedule-administration.component":15,"./parameter-administration.component":16,"./parameters-administration.component":17,"./priorities-administration.component":18,"./priority-administration.component":19,"./reports-administration.component":20,"./status-administration.component":21,"./statuses-administration.component":22,"./update-status-administration.component":23,"./user-administration.component":24,"./users-administration.component":25,"@angular/common":56,"@angular/common/http":55,"@angular/core":58,"@angular/forms":59}],6:[function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(n,r){e(n,r,t)}};Object.defineProperty(n,"__esModule",{value:!0});var c=t("@angular/core"),l=t("@angular/common/http"),u=t("@angular/router"),p=t("../translate.component"),h=t("../notification.service"),d=t("@angular/material"),f=t("../../plugins/autocomplete.plugin"),m=function(){function t(t,e,n,r,i){this.http=t,this.route=e,this.router=n,this.notify=r,this.dialog=i,this.lang=p.LANG,this.config={},this.basket={},this.basketGroups=[],this.allGroups=[],this.actionsList=[],this.resultPages=[],this.loading=!1,this.displayedColumns=["label_action","actions"]}return t.prototype.applyFilter=function(t){t=(t=t.trim()).toLowerCase(),this.dataSource.filter=t},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.administration+"</a> > <a onclick='location.hash = \"/administration/baskets\"' style='cursor: pointer'>"+this.lang.baskets+"</a> > ";1==this.creationMode?e+=this.lang.basketCreation:e+=this.lang.basketModification,$j("#ariane")[0].innerHTML=e},t.prototype.ngOnInit=function(){var t=this;this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.route.params.subscribe(function(e){void 0===e.id?(t.creationMode=!0,t.updateBreadcrumb(angularGlobals.applicationName),t.basketIdAvailable=!1,t.loading=!1):(t.creationMode=!1,t.updateBreadcrumb(angularGlobals.applicationName),t.basketIdAvailable=!0,t.id=e.id,t.http.get(t.coreUrl+"rest/baskets/"+t.id).subscribe(function(e){t.basket=e.basket,t.basket.id=e.basket.basket_id,t.basket.name=e.basket.basket_name,t.basket.description=e.basket.basket_desc,t.basket.clause=e.basket.basket_clause,t.basket.isSearchBasket="Y"!=e.basket.is_visible,t.basket.isFolderBasket="Y"==e.basket.is_folder_basket,t.basket.flagNotif="Y"==e.basket.flag_notif,t.http.get(t.coreUrl+"rest/baskets/"+t.id+"/groups").subscribe(function(e){e.groups.forEach(function(t){t.groupActions.forEach(function(t){t.used_in_basketlist="Y"==t.used_in_basketlist,t.used_in_action_page="Y"==t.used_in_action_page,t.default_action_list="Y"==t.default_action_list})}),t.basketGroups=e.groups,t.allGroups=e.allGroups,setTimeout(function(){},0),t.resultPages=e.pages,t.loading=!1},function(){location.href="index.php"})},function(){location.href="index.php"}))})},t.prototype.openSettings=function(t,e){var n=this;this.config={data:{group:t,action:e,pages:this.resultPages}},this.dialogRef=this.dialog.open(g,this.config),this.dialogRef.afterClosed().subscribe(function(t){console.log(t),t&&n.http.put(n.coreUrl+"rest/baskets/"+n.id+"/groups/"+t.group.group_id,{result_page:t.group.result_page,groupActions:t.group.groupActions}).subscribe(function(t){n.notify.success(n.lang.basketUpdated)},function(t){n.notify.error(t.error.errors)}),n.dialogRef=null})},t.prototype.isAvailable=function(){var t=this;this.basket.id?this.http.get(this.coreUrl+"rest/baskets/"+this.basket.id).subscribe(function(){t.basketIdAvailable=!1},function(e){t.basketIdAvailable=!1,"Basket not found"==e.error.errors&&(t.basketIdAvailable=!0)}):this.basketIdAvailable=!1},t.prototype.onSubmit=function(){var t=this;this.creationMode?this.http.post(this.coreUrl+"rest/baskets",this.basket).subscribe(function(e){t.notify.success(t.lang.basketAdded),t.router.navigate(["/administration/baskets"])},function(e){t.notify.error(e.error.errors)}):this.http.put(this.coreUrl+"rest/baskets/"+this.id,this.basket).subscribe(function(e){t.notify.success(t.lang.basketUpdated),t.router.navigate(["/administration/baskets"])},function(e){t.notify.error(e.error.errors)})},t.prototype.toggleKeywordHelp=function(){$j("#keywordHelp").toggle("slow")},t.prototype.initAction=function(t){this.dataSource=new d.MatTableDataSource(this.basketGroups[t].groupActions),this.dataSource.sort=this.sort},t.prototype.setDefaultAction=function(t,e){t.groupActions.forEach(function(t){e.id==t.id?t.default_action_list=!0:t.default_action_list=!1})},t.prototype.unlinkGroup=function(t){var e=this;confirm("dissocier le groupe ?")&&this.http.delete(this.coreUrl+"rest/baskets/"+this.id+"/groups/"+this.basketGroups[t].group_id).subscribe(function(n){e.basketGroups.splice(t,1),e.notify.success(e.lang.basketUpdated)},function(t){e.notify.error(t.error.errors)})},t.prototype.linkGroup=function(){var t=this;this.config={data:{basketId:this.basket.basket_id,groups:this.allGroups,linkedGroups:this.basketGroups}},this.dialogRef=this.dialog.open(v,this.config),this.dialogRef.afterClosed().subscribe(function(e){console.log(e),e&&(console.log(e),t.http.post(t.coreUrl+"rest/baskets/"+t.id+"/groups/",e).subscribe(function(e){t.basketGroups.push(e),t.notify.success(t.lang.basketUpdated)},function(e){t.notify.error(e.error.errors)})),t.dialogRef=null})},o([c.ViewChild(d.MatPaginator),a("design:type",d.MatPaginator)],t.prototype,"paginator",void 0),o([c.ViewChild(d.MatSort),a("design:type",d.MatSort)],t.prototype,"sort",void 0),t=o([c.Component({templateUrl:angularGlobals["basket-administrationView"],providers:[h.NotificationService]}),a("design:paramtypes",[l.HttpClient,u.ActivatedRoute,u.Router,h.NotificationService,d.MatDialog])],t)}();n.BasketAdministrationComponent=m;var g=function(t){function e(e,n,r){var i=t.call(this,e,"users")||this;return i.http=e,i.data=n,i.dialogRef=r,i.lang=p.LANG,i.allEntities=[],i}return i(e,t),e.prototype.ngOnInit=function(){var t=this;this.http.get(this.coreUrl+"rest/entities").subscribe(function(e){[{id:"ALL_ENTITIES",keyword:"ALL_ENTITIES",parent:"#",icon:"fa fa-hashtag",allowed:!0,text:"Toute les entités"},{id:"ENTITIES_JUST_BELOW",keyword:"ENTITIES_JUST_BELOW",parent:"#",icon:"fa fa-hashtag",allowed:!0,text:"Immédiatement inférieur à mon entité primaire"},{id:"ENTITIES_BELOW",keyword:"ENTITIES_BELOW",parent:"#",icon:"fa fa-hashtag",allowed:!0,text:"Inférieur à toutes mes entités"},{id:"ALL_ENTITIES_BELOW",keyword:"ALL_ENTITIES_BELOW",parent:"#",icon:"fa fa-hashtag",allowed:!0,text:"Inférieur à mon entité primaire"},{id:"MY_ENTITIES",keyword:"MY_ENTITIES",parent:"#",icon:"fa fa-hashtag",allowed:!0,text:"Mes entités"},{id:"MY_PRIMARY_ENTITY",keyword:"MY_PRIMARY_ENTITY",parent:"#",icon:"fa fa-hashtag",allowed:!0,text:"Mon entité primaire"},{id:"SAME_LEVEL_ENTITIES",keyword:"SAME_LEVEL_ENTITIES",parent:"#",icon:"fa fa-hashtag",allowed:!0,text:"Même niveau de mon entité primaire"}].forEach(function(e){t.allEntities.push(e)}),e.entities.forEach(function(e){t.allEntities.push(e)}),console.log(t.data)},function(){location.href="index.php"}),this.http.get(this.coreUrl+"rest/statuses").subscribe(function(e){t.statuses=e.statuses})},e.prototype.initService=function(){var t=this;this.allEntities.forEach(function(e){e.state={opened:!1,selected:!1},t.data.action.redirects.forEach(function(t){e.id==t.keyword&&"ENTITY"==t.redirect_mode&&(e.state={opened:!0,selected:!0})})}),$j("#jstree").jstree({checkbox:{three_state:!1},core:{themes:{name:"proton",responsive:!0},data:this.allEntities},plugins:["checkbox","search"]}),$j("#jstree").on("select_node.jstree",function(e,n){n.node.original.keyword?t.data.action.redirects.push({action_id:t.data.action.id,entity_id:"",keyword:n.node.id,redirect_mode:"ENTITY"}):t.data.action.redirects.push({action_id:t.data.action.id,entity_id:n.node.id,keyword:"",redirect_mode:"ENTITY"})}).on("deselect_node.jstree",function(e,n){t.data.action.redirects.forEach(function(e){if(n.node.original.keyword){if(e.keyword==n.node.original.keyword){var r=t.data.action.redirects.indexOf(e);t.data.action.redirects.splice(r,1)}}else if(e.entity_id==n.node.id){r=t.data.action.redirects.indexOf(e);t.data.action.redirects.splice(r,1)}})}).jstree();var e=!1;$j("#jstree_search").keyup(function(){e&&clearTimeout(e),e=setTimeout(function(){var t=$j("#jstree_search").val();$j("#jstree").jstree(!0).search(t)},250)})},e.prototype.initService2=function(){var t=this;this.allEntities.forEach(function(e){e.state={opened:!1,selected:!1},t.data.action.redirects.forEach(function(t){e.id==t.keyword&&"USERS"==t.redirect_mode&&(e.state={opened:!0,selected:!0})})}),$j("#jstree2").jstree({checkbox:{three_state:!1},core:{themes:{name:"proton",responsive:!0},data:this.allEntities},plugins:["checkbox","search"]}),$j("#jstree2").on("select_node.jstree",function(e,n){n.node.original.keyword?t.data.action.redirects.push({action_id:t.data.action.id,entity_id:"",keyword:n.node.id,redirect_mode:"USERS"}):t.data.action.redirects.push({action_id:t.data.action.id,entity_id:n.node.id,keyword:"",redirect_mode:"USERS"})}).on("deselect_node.jstree",function(e,n){t.data.action.redirects.forEach(function(e){if(n.node.original.keyword){if(e.keyword==n.node.original.keyword){var r=t.data.action.redirects.indexOf(e);t.data.action.redirects.splice(r,1)}}else if(e.entity_id==n.node.id){r=t.data.action.redirects.indexOf(e);t.data.action.redirects.splice(r,1)}})}).jstree();var e=!1;$j("#jstree_search2").keyup(function(){e&&clearTimeout(e),e=setTimeout(function(){var t=$j("#jstree_search2").val();$j("#jstree2").jstree(!0).search(t)},250)})},e=o([c.Component({templateUrl:angularGlobals["basket-administration-settings-modalView"],styles:[".mat-dialog-content{height: 65vh;}"]}),s(1,c.Inject(d.MAT_DIALOG_DATA)),a("design:paramtypes",[l.HttpClient,Object,d.MatDialogRef])],e)}(f.AutoCompletePlugin);n.BasketAdministrationSettingsModalComponent=g;var y=t("@angular/forms"),v=function(){function t(t,e,n,r){this.http=t,this.data=e,this.dialogRef=n,this._formBuilder=r,this.lang=p.LANG,this.displayedColumns=["label_action"],this.actionAll=[],this.newBasketGroup={}}return t.prototype.applyFilter=function(t){t=(t=t.trim()).toLowerCase(),this.dataSource.filter=t},t.prototype.applyFilter2=function(t){t=(t=t.trim()).toLowerCase(),this.dataSource2.filter=t},t.prototype.ngOnInit=function(){var t=this;this.coreUrl=angularGlobals.coreUrl,this.http.get(this.coreUrl+"rest/actions").subscribe(function(e){e.actions.forEach(function(e){e.where_clause="",e.used_in_basketlist=!1,e.default_action_list=!0,e.statuses=[],e.redirects=[],e.checked=!1,t.actionAll.push(e)}),t.dataSource=new d.MatTableDataSource(t.actionAll),t.dataSource.sort=t.sort,t.dataSource.paginator=t.paginator,t.dataSource2=new d.MatTableDataSource(t.actionAll),t.dataSource2.sort=t.sort,t.dataSource2.paginator=t.paginator2},function(t){location.href="index.php"}),this.firstFormGroup=this._formBuilder.group({firstCtrl:["",y.Validators.required]}),this.secondFormGroup=this._formBuilder.group({secondCtrl:["",y.Validators.required]}),this.data.groups.forEach(function(e){t.data.linkedGroups.forEach(function(n){if(e.group_id==n.group_id){var r=t.data.groups.indexOf(e);t.data.groups.splice(r,1)}})})},t.prototype.initAction=function(t){this.dataSource.filter=t.value},t.prototype.selectDefaultAction=function(t){this.actionAll.forEach(function(e){t.id==e.id?(e.checked=!0,e.default_action_list=!0):(e.checked=!1,e.default_action_list=!1)})},t.prototype.selectAction=function(t,e){e.checked=t.checked},t.prototype.validateForm=function(){this.newBasketGroup.group_id=this.groupId,this.newBasketGroup.basket_id=this.data.basketId,this.newBasketGroup.result_page="list_with_attachments",this.newBasketGroup.groupActions=this.actionAll,this.dialogRef.close(this.newBasketGroup)},o([c.ViewChild(d.MatSort),a("design:type",d.MatSort)],t.prototype,"sort",void 0),o([c.ViewChild("paginator"),a("design:type",d.MatPaginator)],t.prototype,"paginator",void 0),o([c.ViewChild("paginator2"),a("design:type",d.MatPaginator)],t.prototype,"paginator2",void 0),t=o([c.Component({templateUrl:angularGlobals["basket-administration-groupList-modalView"],styles:[".mat-dialog-content{height: 65vh;}"]}),s(1,c.Inject(d.MAT_DIALOG_DATA)),a("design:paramtypes",[l.HttpClient,Object,d.MatDialogRef,y.FormBuilder])],t)}();n.BasketAdministrationGroupListModalComponent=v},{"../../plugins/autocomplete.plugin":38,"../notification.service":31,"../translate.component":34,"@angular/common/http":55,"@angular/core":58,"@angular/forms":59,"@angular/material":60,"@angular/router":64}],7:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("../translate.component"),c=t("../notification.service"),l=t("@angular/material"),u=function(){function t(t,e){this.http=t,this.notify=e,this.lang=s.LANG,this.baskets=[],this.loading=!1,this.displayedColumns=["basket_id","basket_name","basket_desc","actions"]}return t.prototype.applyFilter=function(t){t=(t=t.trim()).toLowerCase(),this.dataSource.filter=t},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> > Bannettes")},t.prototype.ngOnInit=function(){var t=this;this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/baskets").subscribe(function(e){t.baskets=e.baskets,t.loading=!1,setTimeout(function(){t.dataSource=new l.MatTableDataSource(t.baskets),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort},0)},function(){location.href="index.php"})},t.prototype.delete=function(t){var e=this;this.http.delete(this.coreUrl+"rest/baskets/"+t.basket_id).subscribe(function(t){e.notify.success(e.lang.basketDeleted),e.baskets=t.baskets},function(t){e.notify.error(t.error.errors)})},r([o.ViewChild(l.MatPaginator),i("design:type",l.MatPaginator)],t.prototype,"paginator",void 0),r([o.ViewChild(l.MatSort),i("design:type",l.MatSort)],t.prototype,"sort",void 0),t=r([o.Component({templateUrl:angularGlobals["baskets-administrationView"],providers:[c.NotificationService]}),i("design:paramtypes",[a.HttpClient,c.NotificationService])],t)}();n.BasketsAdministrationComponent=u},{"../notification.service":31,"../translate.component":34,"@angular/common/http":55,"@angular/core":58,"@angular/material":60}],8:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("../translate.component"),c=t("../notification.service"),l=function(){function t(t,e){this.http=t,this.notify=e,this.lang=s.LANG,this.baskets=[],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> > Ordre des bannettes")},t.prototype.ngOnInit=function(){var t=this;this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/sortedBaskets").subscribe(function(e){t.baskets=e.baskets,t.loading=!1},function(){location.href="index.php"})},t.prototype.updateOrder=function(t,e,n){var r=this;this.http.put(this.coreUrl+"rest/sortedBaskets/"+t,{method:e,power:n}).subscribe(function(t){r.baskets=t.baskets,r.notify.success(r.lang.modificationSaved)},function(t){r.notify.error(t.error.errors)})},t=r([o.Component({templateUrl:angularGlobals["baskets-order-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"],providers:[c.NotificationService]}),i("design:paramtypes",[a.HttpClient,c.NotificationService])],t)}();n.BasketsOrderAdministrationComponent=l},{"../notification.service":31,"../translate.component":34,"@angular/common/http":55,"@angular/core":58}],9:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("@angular/router"),c=t("../translate.component"),l=t("../notification.service"),u=t("@angular/material"),p=function(){function t(t,e,n,r){this.http=t,this.route=e,this.router=n,this.notify=r,this.lang=c.LANG,this.group={security:{}},this.loading=!1,this.displayedColumns=["firstname","lastname","actions"]}return t.prototype.applyFilter=function(t){t=(t=t.trim()).toLowerCase(),this.dataSource.filter=t},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.administration+"</a> > <a onclick='location.hash = \"/administration/groups\"' style='cursor: pointer'>"+this.lang.groups+"</a> > ";1==this.creationMode?e+=this.lang.groupCreation:e+=this.lang.groupModification,$j("#ariane")[0].innerHTML=e},t.prototype.ngOnInit=function(){var t=this;this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.route.params.subscribe(function(e){void 0===e.id?(t.creationMode=!0,t.loading=!1,t.updateBreadcrumb(angularGlobals.applicationName)):(t.creationMode=!1,t.http.get(t.coreUrl+"rest/groups/"+e.id+"/details").subscribe(function(e){t.updateBreadcrumb(angularGlobals.applicationName),t.group=e.group,t.loading=!1,setTimeout(function(){t.dataSource=new u.MatTableDataSource(t.group.users),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort},0)},function(){location.href="index.php"}))})},t.prototype.onSubmit=function(){var t=this;this.creationMode?this.http.post(this.coreUrl+"rest/groups",this.group).subscribe(function(e){t.notify.success(t.lang.groupAdded),t.router.navigate(["/administration/groups/"+e.group])},function(e){t.notify.error(e.error.errors)}):this.http.put(this.coreUrl+"rest/groups/"+this.group.id,{description:this.group.group_desc,security:this.group.security}).subscribe(function(e){t.notify.success(t.lang.groupUpdated)},function(e){t.notify.error(e.error.errors)})},t.prototype.updateService=function(t){var e=this;this.http.put(this.coreUrl+"rest/groups/"+this.group.id+"/services/"+t.id,t).subscribe(function(t){e.notify.success(e.lang.groupUpdated)},function(n){t.checked=!t.checked,e.notify.error(n.error.errors)})},t.prototype.toggleKeywordHelp=function(){$j("#keywordHelp").toggle("slow")},r([o.ViewChild(u.MatPaginator),i("design:type",u.MatPaginator)],t.prototype,"paginator",void 0),r([o.ViewChild(u.MatSort),i("design:type",u.MatSort)],t.prototype,"sort",void 0),t=r([o.Component({templateUrl:angularGlobals["group-administrationView"],providers:[l.NotificationService]}),i("design:paramtypes",[a.HttpClient,s.ActivatedRoute,s.Router,l.NotificationService])],t)}();n.GroupAdministrationComponent=p},{"../notification.service":31,"../translate.component":34,"@angular/common/http":55,"@angular/core":58,"@angular/material":60,"@angular/router":64}],10:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},o=this&&this.__param||function(t,e){return function(n,r){e(n,r,t)}};Object.defineProperty(n,"__esModule",{value:!0});var a=t("@angular/core"),s=t("@angular/common/http"),c=t("../translate.component"),l=t("../notification.service"),u=t("@angular/material"),p=function(){function t(t,e,n){this.http=t,this.notify=e,this.dialog=n,this.config={},this.lang=c.LANG,this.groups=[],this.groupsForAssign=[],this.loading=!1,this.displayedColumns=["group_id","group_desc","actions"],this.dataSource=new u.MatTableDataSource(this.groups)}return t.prototype.applyFilter=function(t){t=(t=t.trim()).toLowerCase(),this.dataSource.filter=t},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> > Groupes")},t.prototype.ngOnInit=function(){var t=this;this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/groups").subscribe(function(e){t.groups=e.groups,t.loading=!1,setTimeout(function(){t.dataSource=new u.MatTableDataSource(t.groups),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort},0)},function(){location.href="index.php"})},t.prototype.preDelete=function(t){var e=this;0==t.users.length?confirm("Etes vous sûr de vouloir supprimer ce groupe ?")&&this.deleteGroup(t):(this.groupsForAssign=[],this.groups.forEach(function(n){t.group_id!=n.group_id&&e.groupsForAssign.push(n)}),this.config={data:{id:t.id,group_desc:t.group_desc,groupsForAssign:this.groupsForAssign,users:t.users}},this.dialogRef=this.dialog.open(h,this.config),this.dialogRef.afterClosed().subscribe(function(n){console.log(n),n&&("_NO_REPLACEMENT"==n?e.deleteGroup(t):e.http.put(e.coreUrl+"rest/groups/"+t.id+"/reassign/"+n,{}).subscribe(function(n){e.deleteGroup(t)},function(t){e.notify.error(t.error.errors)})),e.dialogRef=null}))},t.prototype.deleteGroup=function(t){var e=this;this.http.delete(this.coreUrl+"rest/groups/"+t.id).subscribe(function(t){setTimeout(function(){e.groups=t.groups,e.dataSource=new u.MatTableDataSource(e.groups),e.dataSource.paginator=e.paginator,e.dataSource.sort=e.sort},0),e.notify.success(e.lang.groupDeleted)},function(t){e.notify.error(t.error.errors)})},r([a.ViewChild(u.MatPaginator),i("design:type",u.MatPaginator)],t.prototype,"paginator",void 0),r([a.ViewChild(u.MatSort),i("design:type",u.MatSort)],t.prototype,"sort",void 0),t=r([a.Component({templateUrl:angularGlobals["groups-administrationView"],providers:[l.NotificationService]}),i("design:paramtypes",[s.HttpClient,l.NotificationService,u.MatDialog])],t)}();n.GroupsAdministrationComponent=p;var h=function(){function t(t,e,n){this.http=t,this.data=e,this.dialogRef=n,this.lang=c.LANG}return t=r([a.Component({templateUrl:angularGlobals["groups-administration-redirect-modalView"]}),o(1,a.Inject(u.MAT_DIALOG_DATA)),i("design:paramtypes",[s.HttpClient,Object,u.MatDialogRef])],t)}();n.GroupsAdministrationRedirectModalComponent=h},{"../notification.service":31,"../translate.component":34,"@angular/common/http":55,"@angular/core":58,"@angular/material":60}],11:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("../translate.component"),c=t("../notification.service"),l=t("@angular/material"),u=function(){function t(t,e){this.http=t,this.notify=e,this.lang=s.LANG,this.loading=!1,this.data=[],this.CurrentYear=(new Date).getFullYear(),this.currentMonth=(new Date).getMonth()+1,this.minDate=new Date,this.displayedColumns=["event_date","event_type","user_id","info","remote_ip"],this.dataSource=new l.MatTableDataSource(this.data)}return t.prototype.applyFilter=function(t){t=(t=t.trim()).toLowerCase(),this.dataSource.filter=t},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'>"+this.lang.administration+"</a> > "+this.lang.history)},t.prototype.ngOnInit=function(){var t=this;this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.updateBreadcrumb(angularGlobals.applicationName),$j("#inner_content").remove(),this.minDate=new Date(this.CurrentYear+"-"+this.currentMonth+"-01"),this.http.get(this.coreUrl+"rest/administration/history/eventDate/"+this.minDate.toJSON()).subscribe(function(e){t.data=e.historyList,t.loading=!1,setTimeout(function(){t.dataSource=new l.MatTableDataSource(t.data),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort},0)},function(t){console.log(t),location.href="index.php"})},t.prototype.refreshHistory=function(t){var e=this;this.http.get(this.coreUrl+"rest/administration/history/eventDate/"+this.minDate.toJSON()).subscribe(function(t){e.data=t.historyList,e.dataSource=new l.MatTableDataSource(e.data),e.dataSource.paginator=e.paginator,e.dataSource.sort=e.sort},function(t){console.log(t),location.href="index.php"})},r([o.ViewChild(l.MatPaginator),i("design:type",l.MatPaginator)],t.prototype,"paginator",void 0),r([o.ViewChild(l.MatSort),i("design:type",l.MatSort)],t.prototype,"sort",void 0),t=r([o.Component({templateUrl:angularGlobals["history-administrationView"],styleUrls:[],providers:[c.NotificationService]}),i("design:paramtypes",[a.HttpClient,c.NotificationService])],t)}();n.HistoryAdministrationComponent=u},{"../notification.service":31,"../translate.component":34,"@angular/common/http":55,"@angular/core":58,"@angular/material":60}],12:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("../translate.component"),c=t("../notification.service"),l=t("@angular/material"),u=function(){function t(t,e){this.http=t,this.notify=e,this.lang=s.LANG,this.loading=!1,this.data=[],this.CurrentYear=(new Date).getFullYear(),this.currentMonth=(new Date).getMonth()+1,this.minDate=new Date,this.displayedColumns=["batch_id","event_date","total_processed","total_errors","info","module_name"],this.dataSource=new l.MatTableDataSource(this.data)}return t.prototype.applyFilter=function(t){t=(t=t.trim()).toLowerCase(),this.dataSource.filter=t},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'>"+this.lang.administration+"</a> > "+this.lang.historyBatch)},t.prototype.ngOnInit=function(){var t=this;this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.updateBreadcrumb(angularGlobals.applicationName),$j("#inner_content").remove(),this.minDate=new Date(this.CurrentYear+"-"+this.currentMonth+"-01"),this.http.get(this.coreUrl+"rest/administration/historyBatch/eventDate/"+this.minDate.toJSON()).subscribe(function(e){t.data=e.historyList,t.loading=!1,setTimeout(function(){t.dataSource=new l.MatTableDataSource(t.data),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort},0)},function(t){console.log(t),location.href="index.php"})},t.prototype.refreshHistory=function(){var t=this;this.http.get(this.coreUrl+"rest/administration/historyBatch/eventDate/"+this.minDate.toJSON()).subscribe(function(e){t.data=e.historyList,t.dataSource=new l.MatTableDataSource(t.data),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort},function(t){console.log(t),location.href="index.php"})},r([o.ViewChild(l.MatPaginator),i("design:type",l.MatPaginator)],t.prototype,"paginator",void 0),r([o.ViewChild(l.MatSort),i("design:type",l.MatSort)],t.prototype,"sort",void 0),t=r([o.Component({templateUrl:angularGlobals["historyBatch-administrationView"],styleUrls:[],providers:[c.NotificationService]}),i("design:paramtypes",[a.HttpClient,c.NotificationService])],t)}();n.HistoryBatchAdministrationComponent=u},{"../notification.service":31,"../translate.component":34,"@angular/common/http":55,"@angular/core":58,"@angular/material":60}],13:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("@angular/router"),c=t("../translate.component"),l=t("../notification.service"),u=function(){function t(t,e,n,r){this.http=t,this.route=e,this.router=n,this.notify=r,this.notification={diffusionType_label:null},this.loading=!1,this.lang=c.LANG}return 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.administration+"</a> > <a onclick='location.hash = \"/administration/notifications\"' style='cursor: pointer'>"+this.lang.notifications+"</a> > ";1==this.creationMode?e+=this.lang.notificationCreation:e+=this.lang.notificationModification,$j("#ariane")[0].innerHTML=e},t.prototype.ngOnInit=function(){var t=this;this.loading=!0,this.coreUrl=angularGlobals.coreUrl,this.route.params.subscribe(function(e){void 0===e.identifier?(t.creationMode=!0,t.http.get(t.coreUrl+"rest/administration/notifications/new").subscribe(function(e){t.notification=e.notification,t.loading=!1},function(e){t.notify.error(e.error.errors)})):(t.creationMode=!1,t.http.get(t.coreUrl+"rest/notifications/"+e.identifier).subscribe(function(e){t.notification=e.notification,t.loading=!1},function(e){t.notify.error(e.error.errors)}))}),this.updateBreadcrumb(angularGlobals.applicationName)},t.prototype.createScript=function(){var t=this;this.http.post(this.coreUrl+"rest/scriptNotification",this.notification).subscribe(function(e){t.notification.scriptcreated=e,t.notify.success(t.lang.ScriptCreated)},function(e){t.notify.error(e.error.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.prototype.onSubmit=function(){var t=this;$j("#groupslist").val()?this.notification.diffusion_properties=$j("#groupslist").val():$j("#entitieslist").val()?this.notification.diffusion_properties=$j("#entitieslist").val():$j("#statuseslist").val()?this.notification.diffusion_properties=$j("#statuseslist").val():$j("#userslist").val()&&(this.notification.diffusion_properties=$j("#userslist").val()),null==$j("#joinDocJd").val()?this.notification.attachfor_properties="":$j("#groupslistJd").val()?this.notification.attachfor_properties=$j("#groupslistJd").val():$j("#entitieslistJd").val()?this.notification.attachfor_properties=$j("#entitieslistJd").val():$j("#statuseslistJd").val()?this.notification.attachfor_properties=$j("#statuseslistJd").val():$j("#userslistJd").val()&&(this.notification.attachfor_properties=$j("#userslistJd").val()),this.creationMode?this.http.post(this.coreUrl+"rest/notifications",this.notification).subscribe(function(e){t.router.navigate(["/administration/notifications"]),t.notify.success(t.lang.NotificationAdded)},function(e){t.notify.error(e.error.errors)}):this.http.put(this.coreUrl+"rest/notifications/"+this.notification.notification_sid,this.notification).subscribe(function(e){t.router.navigate(["/administration/notifications"]),t.notify.success(t.lang.notificationUpdated)},function(e){t.notify.error(e.error.errors)})},t=r([o.Component({templateUrl:angularGlobals["notification-administrationView"],providers:[l.NotificationService]}),i("design:paramtypes",[a.HttpClient,s.ActivatedRoute,s.Router,l.NotificationService])],t)}();n.NotificationAdministrationComponent=u},{"../notification.service":31,"../translate.component":34,"@angular/common/http":55,"@angular/core":58,"@angular/router":64}],14:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("../translate.component"),c=t("../notification.service"),l=t("@angular/material"),u=function(){function t(t,e){this.http=t,this.notify=e,this.notifications=[],this.loading=!1,this.lang=s.LANG,this.displayedColumns=["notification_id","description","is_enabled","notifications"],this.dataSource=new l.MatTableDataSource(this.notifications)}return t.prototype.applyFilter=function(t){t=(t=t.trim()).toLowerCase(),this.dataSource.filter=t},t.prototype.ngOnInit=function(){var t=this;this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/notifications").subscribe(function(e){t.notifications=e.notifications,t.loading=!1,setTimeout(function(){t.dataSource=new l.MatTableDataSource(t.notifications),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort},0)},function(e){t.notify.error(e.error.errors)})},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'>"+this.lang.administration+"</a> > "+this.lang.notifications)},t.prototype.deleteNotification=function(t){var e=this;confirm(this.lang.deleteMsg)&&this.http.delete(this.coreUrl+"rest/notifications/"+t.notification_sid).subscribe(function(t){e.notifications=t.notifications,setTimeout(function(){e.dataSource=new l.MatTableDataSource(e.notifications),e.dataSource.paginator=e.paginator,e.dataSource.sort=e.sort},0),e.notify.success(e.lang.notificationDeleted)},function(t){e.notify.error(t.error.errors)})},r([o.ViewChild(l.MatPaginator),i("design:type",l.MatPaginator)],t.prototype,"paginator",void 0),r([o.ViewChild(l.MatSort),i("design:type",l.MatSort)],t.prototype,"sort",void 0),t=r([o.Component({templateUrl:angularGlobals["notifications-administrationView"],providers:[c.NotificationService]}),i("design:paramtypes",[a.HttpClient,c.NotificationService])],t)}();n.NotificationsAdministrationComponent=u},{"../notification.service":31,"../translate.component":34,"@angular/common/http":55,"@angular/core":58,"@angular/material":60}],15:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("@angular/router"),c=t("../translate.component"),l=t("../notification.service"),u=function(){function t(t,e,n){this.http=t,this.router=e,this.notify=n,this.crontab=[],this.authorizedNotification=[],this.loading=!1,this.lang=c.LANG}return t.prototype.ngOnInit=function(){var t=this;this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/notifications/schedule").subscribe(function(e){t.crontab=e.crontab,t.authorizedNotification=e.authorizedNotification,t.loading=!1},function(e){t.notify.error(e.error.errors)})},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'>"+this.lang.administration+"</a> > <a onclick='location.hash = \"/administration/notifications\"' style='cursor: pointer'>"+this.lang.notifications+"</a> > "+this.lang.notificationsSchedule)},t.prototype.onSubmit=function(){var t=this;this.http.post(this.coreUrl+"rest/notifications/schedule",this.crontab).subscribe(function(e){t.router.navigate(["/administration/notifications"]),t.notify.success(t.lang.NotificationScheduleUpdated)},function(e){t.notify.error(e.error.errors)})},t=r([o.Component({templateUrl:angularGlobals["notifications-schedule-administrationView"],providers:[l.NotificationService]}),i("design:paramtypes",[a.HttpClient,s.Router,l.NotificationService])],t)}();n.NotificationsScheduleAdministrationComponent=u},{"../notification.service":31,"../translate.component":34,"@angular/common/http":55,"@angular/core":58,"@angular/router":64}],16:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("@angular/router"),c=t("../translate.component"),l=t("../notification.service"),u=function(){function t(t,e,n,r){this.http=t,this.route=e,this.router=n,this.notify=r,this.lang=c.LANG,this.parameter={},this.loading=!1}return 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.administration+"</a> > <a onclick='location.hash = \"/administration/parameters\"' style='cursor: pointer'>"+this.lang.parameters+"</a>"},t.prototype.ngOnInit=function(){var t=this;this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.route.params.subscribe(function(e){void 0===e.id?(t.creationMode=!0,t.updateBreadcrumb(angularGlobals.applicationName),t.loading=!1):(t.creationMode=!1,t.http.get(t.coreUrl+"rest/parameters/"+e.id).subscribe(function(e){t.parameter=e.parameter,t.updateBreadcrumb(angularGlobals.applicationName),t.parameter.param_value_int?t.type="int":t.parameter.param_value_date?t.type="date":t.type="string",t.loading=!1},function(){location.href="index.php"}))})},t.prototype.onSubmit=function(){var t=this;"date"==this.type?(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).subscribe(function(e){t.router.navigate(["administration/parameters"]),t.notify.success(t.lang.parameterAdded)},function(e){t.notify.error(e.error.errors)}):0==this.creationMode&&this.http.put(this.coreUrl+"rest/parameters/"+this.parameter.id,this.parameter).subscribe(function(e){t.router.navigate(["administration/parameters"]),t.notify.success(t.lang.parameterUpdated)},function(e){t.notify.error(e.error.errors)})},t=r([o.Component({templateUrl:angularGlobals["parameter-administrationView"],providers:[l.NotificationService]}),i("design:paramtypes",[a.HttpClient,s.ActivatedRoute,s.Router,l.NotificationService])],t)}();n.ParameterAdministrationComponent=u},{"../notification.service":31,"../translate.component":34,"@angular/common/http":55,"@angular/core":58,"@angular/router":64}],17:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("../translate.component"),c=t("../notification.service"),l=t("@angular/material"),u=function(){function t(t,e){this.http=t,this.notify=e,this.lang=s.LANG,this.parameters={},this.loading=!1,this.displayedColumns=["id","description","value","actions"]}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'>"+this.lang.administration+"</a> > "+this.lang.parameters)},t.prototype.applyFilter=function(t){t=(t=t.trim()).toLowerCase(),this.dataSource.filter=t},t.prototype.ngOnInit=function(){var t=this;this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/parameters").subscribe(function(e){t.parameters=e.parameters,setTimeout(function(){t.dataSource=new l.MatTableDataSource(t.parameters),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort},0),t.loading=!1})},t.prototype.deleteParameter=function(t){var e=this;confirm(this.lang.deleteMsg)&&this.http.delete(this.coreUrl+"rest/parameters/"+t).subscribe(function(t){e.parameters=t.parameters,e.dataSource=new l.MatTableDataSource(e.parameters),e.dataSource.paginator=e.paginator,e.dataSource.sort=e.sort,e.notify.success(e.lang.parameterDeleted)},function(t){e.notify.error(t.error.errors)})},r([o.ViewChild(l.MatPaginator),i("design:type",l.MatPaginator)],t.prototype,"paginator",void 0),r([o.ViewChild(l.MatSort),i("design:type",l.MatSort)],t.prototype,"sort",void 0),t=r([o.Component({templateUrl:angularGlobals["parameters-administrationView"],providers:[c.NotificationService]}),i("design:paramtypes",[a.HttpClient,c.NotificationService])],t)}();n.ParametersAdministrationComponent=u},{"../notification.service":31,"../translate.component":34,"@angular/common/http":55,"@angular/core":58,"@angular/material":60}],18:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("../translate.component"),c=t("../notification.service"),l=function(){function t(t,e){this.http=t,this.notify=e,this.lang=s.LANG,this.loading=!1,this.priorities=[]}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/priorities").subscribe(function(e){t.priorities=e.priorities,t.loading=!1},function(){location.href="index.php"})},t.prototype.deletePriority=function(t){var e=this;confirm(this.lang.deleteMsg)&&this.http.delete(this.coreUrl+"rest/priorities/"+t).subscribe(function(t){e.priorities=t.priorities,e.notify.success(e.lang.priorityDeleted)},function(t){e.notify.error(t.error.errors)})},t=r([o.Component({templateUrl:angularGlobals["priorities-administrationView"],providers:[c.NotificationService]}),i("design:paramtypes",[a.HttpClient,c.NotificationService])],t)}();n.PrioritiesAdministrationComponent=l},{"../notification.service":31,"../translate.component":34,"@angular/common/http":55,"@angular/core":58}],19:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("@angular/router"),c=t("../translate.component"),l=t("../notification.service"),u=function(){function t(t,e,n,r){this.http=t,this.route=e,this.router=n,this.notify=r,this.lang=c.LANG,this.loading=!1,this.priority={working_days:!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.loading=!1):(t.creationMode=!1,t.id=e.id,t.http.get(t.coreUrl+"rest/priorities/"+t.id).subscribe(function(e){t.priority=e.priority,t.loading=!1},function(){location.href="index.php"}))})},t.prototype.onSubmit=function(){var t=this;this.creationMode?this.http.post(this.coreUrl+"rest/priorities",this.priority).subscribe(function(){t.notify.success(t.lang.priorityAdded),t.router.navigate(["/administration/priorities"])},function(e){t.notify.error(e.error.errors)}):this.http.put(this.coreUrl+"rest/priorities/"+this.id,this.priority).subscribe(function(){t.notify.success(t.lang.priorityUpdated),t.router.navigate(["/administration/priorities"])},function(e){t.notify.error(e.error.errors)})},t=r([o.Component({templateUrl:angularGlobals["priority-administrationView"],providers:[l.NotificationService]}),i("design:paramtypes",[a.HttpClient,s.ActivatedRoute,s.Router,l.NotificationService])],t)}();n.PriorityAdministrationComponent=u},{"../notification.service":31,"../translate.component":34,"@angular/common/http":55,"@angular/core":58,"@angular/router":64}],20:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("../translate.component"),c=t("../notification.service"),l=function(){function t(t,e){this.http=t,this.notify=e,this.lang=s.LANG,this.groups=[],this.reports=[],this.selectedGroup="",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> > Etats et edition")},t.prototype.ngOnInit=function(){var t=this;this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/reports/groups").subscribe(function(e){t.groups=e.groups,t.loading=!1},function(){location.href="index.php"})},t.prototype.loadReports=function(){var t=this;this.http.get(this.coreUrl+"rest/reports/groups/"+this.selectedGroup).subscribe(function(e){t.reports=e.reports},function(e){t.notify.error(e.error.errors)})},t.prototype.onSubmit=function(){var t=this;this.http.put(this.coreUrl+"rest/reports/groups/"+this.selectedGroup,this.reports).subscribe(function(){t.notify.success(t.lang.modificationSaved)},function(e){t.notify.error(e.error.errors)})},t=r([o.Component({templateUrl:angularGlobals["reports-administrationView"],providers:[c.NotificationService]}),i("design:paramtypes",[a.HttpClient,c.NotificationService])],t)}();n.ReportsAdministrationComponent=l},{"../notification.service":31,"../translate.component":34,"@angular/common/http":55,"@angular/core":58}],21:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("@angular/router"),c=t("../translate.component"),l=t("../notification.service"),u=function(){function t(t,e,n,r){this.http=t,this.route=e,this.router=n,this.notify=r,this.lang=c.LANG,this.status={id:null,label_status:null,can_be_searched:null,can_be_modified:null,is_folder_status:null,img_filename:null},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/statuses/new").subscribe(function(e){t.status.img_filename="fm-letter",t.status.can_be_searched=!0,t.status.can_be_modified=!0,t.statusImages=e.statusImages,t.creationMode=!0,t.loading=!1}):(t.creationMode=!1,t.statusIdentifier=e.identifier,t.getStatusInfos(t.statusIdentifier),t.loading=!1),t.updateBreadcrumb(angularGlobals.applicationName)})},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.administration+"</a> > <a onclick='location.hash = \"/administration/statuses\"' style='cursor: pointer'>"+this.lang.statuses+"</a> > ";1==this.creationMode?e+=this.lang.statusCreation:e+=this.lang.statusModification,$j("#ariane")[0].innerHTML=e},t.prototype.getStatusInfos=function(t){var e=this;this.http.get(this.coreUrl+"rest/statuses/"+t).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.statusImages=t.statusImages},function(t){e.notify.error(JSON.parse(t._body).errors)})},t.prototype.submitStatus=function(){var t=this;1==this.creationMode?this.http.post(this.coreUrl+"rest/statuses",this.status).subscribe(function(e){t.notify.success(t.lang.statusAdded),t.router.navigate(["administration/statuses"])},function(e){t.notify.error(JSON.parse(e._body).errors)}):0==this.creationMode&&this.http.put(this.coreUrl+"rest/statuses/"+this.statusIdentifier,this.status).subscribe(function(e){t.notify.success(t.lang.statusUpdated),t.router.navigate(["administration/statuses"])},function(e){t.notify.error(JSON.parse(e._body).errors)})},t=r([o.Component({templateUrl:angularGlobals["status-administrationView"],styleUrls:["css/status-administration.component.css"],providers:[l.NotificationService]}),i("design:paramtypes",[a.HttpClient,s.ActivatedRoute,s.Router,l.NotificationService])],t)}();n.StatusAdministrationComponent=u},{"../notification.service":31,"../translate.component":34,"@angular/common/http":55,"@angular/core":58,"@angular/router":64}],22:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("../translate.component"),c=t("../notification.service"),l=t("@angular/material"),u=function(){function t(t,e){this.http=t,this.notify=e,this.lang=s.LANG,this.statuses=[],this.loading=!1,this.displayedColumns=["img_filename","id","label_status","identifier"],this.dataSource=new l.MatTableDataSource(this.statuses)}return t.prototype.applyFilter=function(t){t=(t=t.trim()).toLowerCase(),this.dataSource.filter=t},t.prototype.ngOnInit=function(){var t=this;this.coreUrl=angularGlobals.coreUrl,this.prepareStatus(),this.loading=!0,this.http.get(this.coreUrl+"rest/statuses").subscribe(function(e){t.statuses=e.statuses,t.updateBreadcrumb(angularGlobals.applicationName),t.loading=!1,setTimeout(function(){t.dataSource=new l.MatTableDataSource(t.statuses),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort},0)},function(e){t.notify.error(JSON.parse(e._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.administration+"</a> > "+this.lang.statuses},t.prototype.deleteStatus=function(t){var e=this;confirm(this.lang.confirmAction+" "+this.lang.delete+" « "+t.id+" »")&&this.http.delete(this.coreUrl+"rest/statuses/"+t.identifier).subscribe(function(t){e.statuses=t.statuses,e.notify.success(e.lang.statusDeleted)},function(t){e.notify.error(JSON.parse(t._body).errors)})},r([o.ViewChild(l.MatPaginator),i("design:type",l.MatPaginator)],t.prototype,"paginator",void 0),r([o.ViewChild(l.MatSort),i("design:type",l.MatSort)],t.prototype,"sort",void 0),t=r([o.Component({templateUrl:angularGlobals["statuses-administrationView"],styleUrls:[],providers:[c.NotificationService]}),i("design:paramtypes",[a.HttpClient,c.NotificationService])],t)}();n.StatusesAdministrationComponent=u},{"../notification.service":31,"../translate.component":34,"@angular/common/http":55,"@angular/core":58,"@angular/material":60}],23:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("../translate.component"),c=t("../notification.service"),l=function(){function t(t,e){this.http=t,this.notify=e,this.lang=s.LANG,this.statuses=[],this.resId="",this.chrono="",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> > Changement du statut")},t.prototype.ngOnInit=function(){var t=this;this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/statuses").subscribe(function(e){t.statuses=e.statuses,t.loading=!1},function(){location.href="index.php"})},t.prototype.onSubmit=function(){var t=this,e={status:$j("#statuses option:selected")[0].value};""!=this.resId?e.resId=this.resId:""!=this.chrono&&(e.chrono=this.chrono),this.http.put(this.coreUrl+"rest/res/resource/status",e).subscribe(function(){t.resId="",t.chrono="",$j("#statuses").prop("selectedIndex",0),t.notify.success(t.lang.modificationSaved)},function(e){t.notify.error(e.error.errors)})},t=r([o.Component({templateUrl:angularGlobals["update-status-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"],providers:[c.NotificationService]}),i("design:paramtypes",[a.HttpClient,c.NotificationService])],t)}();n.UpdateStatusAdministrationComponent=l},{"../notification.service":31,"../translate.component":34,"@angular/common/http":55,"@angular/core":58}],24:[function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},a=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 s=t("@angular/core"),c=t("@angular/common/http"),l=t("@angular/router"),u=t("../translate.component"),p=t("../notification.service"),h=t("@angular/material"),d=function(t){function e(e,n,r,i,o){var a=t.call(this,e,"users")||this;return a.http=e,a.route=n,a.router=r,a.zone=i,a.notify=o,a.lang=u.LANG,a._search="",a.user={},a.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},a.userAbsenceModel=[],a.userList=[],a.selectedSignature=-1,a.selectedSignatureLabel="",a.data=[],a.CurrentYear=(new Date).getFullYear(),a.currentMonth=(new Date).getMonth()+1,a.minDate=new Date,a.loading=!1,a.displayedColumns=["event_date","event_type","user_id","info","remote_ip"],a.dataSource=new h.MatTableDataSource(a.data),window.angularUserAdministrationComponent={componentAfterUpload:function(t){return a.processAfterUpload(t)}},a}return i(e,t),e.prototype.applyFilter=function(t){t=(t=t.trim()).toLowerCase(),this.dataSource.filter=t},e.prototype.updateBreadcrumb=function(t){var e="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>"+this.lang.administration+"</a> > <a onclick='location.hash = \"/administration/users\"' style='cursor: pointer'>"+this.lang.users+"</a> > ";1==this.creationMode?e+=this.lang.userCreation:e+=this.lang.userModification,$j("#ariane")[0].innerHTML=e},e.prototype.ngOnInit=function(){var t=this;this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.route.params.subscribe(function(e){void 0===e.id?(t.creationMode=!0,t.loading=!1,t.updateBreadcrumb(angularGlobals.applicationName)):(t.creationMode=!1,t.serialId=e.id,t.http.get(t.coreUrl+"rest/users/"+t.serialId+"/details").subscribe(function(e){t.user=e,t.data=e.history,t.userId=e.user_id,t.updateBreadcrumb(angularGlobals.applicationName),t.minDate=new Date(t.CurrentYear+"-"+t.currentMonth+"-01"),t.loading=!1,setTimeout(function(){t.dataSource=new h.MatTableDataSource(t.data),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort},0)},function(){location.href="index.php"}))})},e.prototype.toogleRedirect=function(t){$j("#redirectUser_"+t.group_id+"_"+t.basket_id).toggle(),this.http.get(this.coreUrl+"rest/administration/users").subscribe(function(t){},function(){location.href="index.php"})},e.prototype.initService=function(){var t=this;if(0==$j(".jstree-container-ul").length){$j("#jstree").jstree({checkbox:{three_state:!1},core:{themes:{name:"proton",responsive:!0},data:this.user.allEntities},plugins:["checkbox","search"]}),$j("#jstree").on("select_node.jstree",function(e,n){t.addEntity(n.node.id)}).on("deselect_node.jstree",function(e,n){t.deleteEntity(n.node.id)}).jstree();var e=!1;$j("#jstree_search").keyup(function(){e&&clearTimeout(e),e=setTimeout(function(){var t=$j("#jstree_search").val();$j("#jstree").jstree(!0).search(t)},250)})}},e.prototype.processAfterUpload=function(t){var e=this;this.zone.run(function(){return e.resfreshUpload(t)})},e.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="",this.notify.error("Taille maximum de fichier dépassée (2 MB)"))},e.prototype.clickOnUploader=function(t){$j("#"+t).click()},e.prototype.uploadSignatureTrigger=function(t){var e=this;if(t.target.files&&t.target.files[0]){var n=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),n.readAsDataURL(t.target.files[0]),n.onload=function(t){window.angularUserAdministrationComponent.componentAfterUpload(t.target.result),e.submitSignature()}}},e.prototype.displaySignatureEditionForm=function(t){this.selectedSignature=t,this.selectedSignatureLabel=this.user.signatures[t].signature_label},e.prototype.resetPassword=function(t){var e=this;confirm(this.lang.confirmAction+" "+this.lang.resetPsw)&&this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/password",{}).subscribe(function(n){e.notify.success(e.lang.pswReseted+" "+e.lang.for+" « "+t.user_id+" »")},function(t){e.notify.error(t.error.errors)})},e.prototype.toggleGroup=function(t){var e=this;if(1==$j("#"+t.group_id+"-input").is(":checked")){var n={groupId:t.group_id,role:t.role};this.http.post(this.coreUrl+"rest/users/"+this.serialId+"/groups",n).subscribe(function(n){e.user.groups=n.groups,e.user.allGroups=n.allGroups,e.user.baskets=n.baskets,e.notify.success(e.lang.groupAdded+" « "+t.group_id+" »")},function(t){e.notify.error(t.error.errors)})}else this.http.delete(this.coreUrl+"rest/users/"+this.serialId+"/groups/"+t.group_id).subscribe(function(n){e.user.groups=n.groups,e.user.allGroups=n.allGroups,e.notify.success(e.lang.groupDeleted+" « "+t.group_id+" »")},function(t){e.notify.error(t.error.errors)})},e.prototype.updateGroup=function(t){var e=this;this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/groups/"+t.group_id,t).subscribe(function(n){e.notify.success(e.lang.groupUpdated+" « "+t.group_id+" »")},function(t){e.notify.error(t.error.errors)})},e.prototype.addEntity=function(t){var e=this,n={entityId:t,role:""};this.http.post(this.coreUrl+"rest/users/"+this.serialId+"/entities",n).subscribe(function(n){e.user.entities=n.entities,e.user.allEntities=n.allEntities,e.notify.success(e.lang.entityAdded+" « "+t+" »")},function(t){e.notify.error(t.error.errors)})},e.prototype.updateEntity=function(t){var e=this;this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/entities/"+t.entity_id,t).subscribe(function(n){e.notify.success(e.lang.entityUpdated+" « "+t.entity_id+" »")},function(t){e.notify.error(t.error.errors)})},e.prototype.updatePrimaryEntity=function(t){var e=this;this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/entities/"+t.entity_id+"/primaryEntity",{}).subscribe(function(n){e.user.entities=n.entities,e.notify.success(e.lang.entityTooglePrimary+" « "+t.entity_id+" »")},function(t){e.notify.error(t.error.errors)})},e.prototype.deleteEntity=function(t){var e=this;this.http.delete(this.coreUrl+"rest/users/"+this.serialId+"/entities/"+t).subscribe(function(n){e.user.entities=n.entities,e.user.allEntities=n.allEntities,e.notify.success(e.lang.entityDeleted+" « "+t+" »")},function(t){e.notify.error(t.error.errors)})},e.prototype.submitSignature=function(){var t=this;this.http.post(this.coreUrl+"rest/users/"+this.serialId+"/signatures",this.signatureModel).subscribe(function(e){t.user.signatures=e.signatures,t.notify.success(t.lang.signAdded+" « "+t.signatureModel.name+" »"),t.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""}},function(e){t.notify.error(e.error.errors)})},e.prototype.updateSignature=function(t){var e=this,n=this.user.signatures[t].id,r=this.user.signatures[t].signature_label;this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/signatures/"+n,{label:r}).subscribe(function(n){e.user.signatures[t].signature_label=n.signature.signature_label,e.notify.success(e.lang.signUpdated+" « "+n.signature.signature_label+" »")},function(t){e.notify.error(t.error.errors)})},e.prototype.deleteSignature=function(t){var e=this;confirm(this.lang.confirmAction+" "+this.lang.delete+" « "+t.signature_label+" »")&&this.http.delete(this.coreUrl+"rest/users/"+this.serialId+"/signatures/"+t.id).subscribe(function(n){e.user.signatures=n.signatures,e.notify.success(e.lang.signDeleted+" « "+t.signature_label+" »")},function(t){e.notify.error(t.error.errors)})},e.prototype.addBasketRedirection=function(t,e){if("ABS"!=this.user.status)confirm(this.lang.confirmAction+" "+this.lang.activateAbs);"ABS"==this.user.status&&(this.userAbsenceModel.push({basketId:this.user.baskets[t].basket_id,basketName:this.user.baskets[t].basket_name,virtual:this.user.baskets[t].is_virtual,basketOwner:this.user.baskets[t].basket_owner,newUser:this.user.baskets[t].userToDisplay}),this.activateAbsence())},e.prototype.delBasketRedirection=function(t){this.user.baskets[t].userToDisplay=""},e.prototype.activateAbsence=function(){var t=this;this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/status",{status:"ABS"}).subscribe(function(e){t.user.status=e.user.status,t.userAbsenceModel=[],t.notify.success(t.lang.absOn+" "+t.lang.for+" « "+t.user.user_id+" »")},function(e){t.notify.error(e.error.errors)})},e.prototype.desactivateAbsence=function(){var t=this;this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/status",{status:"OK"}).subscribe(function(e){for(var n in t.user.status=e.user.status,t.user.baskets)t.user.baskets[n].userToDisplay="";t.notify.success(t.lang.absOff+" "+t.lang.for+" « "+t.user.user_id+" »")},function(e){t.notify.error(e.error.errors)})},e.prototype.onSubmit=function(){var t=this;this.creationMode?this.http.post(this.coreUrl+"rest/users",this.user).subscribe(function(e){t.notify.success(t.lang.userAdded+" « "+e.user.user_id+" »"),t.router.navigate(["/administration/users/"+e.user.id])},function(e){t.notify.error(e.error.errors)}):this.http.put(this.coreUrl+"rest/users/"+this.serialId,this.user).subscribe(function(e){t.notify.success(t.lang.userUpdated+" « "+t.user.user_id+" »")},function(e){t.notify.error(e.error.errors)})},o([s.ViewChild(h.MatPaginator),a("design:type",h.MatPaginator)],e.prototype,"paginator",void 0),o([s.ViewChild(h.MatSort),a("design:type",h.MatSort)],e.prototype,"sort",void 0),e=o([s.Component({templateUrl:angularGlobals["user-administrationView"],styleUrls:["css/user-administration.component.css"],providers:[p.NotificationService]}),a("design:paramtypes",[c.HttpClient,l.ActivatedRoute,l.Router,s.NgZone,p.NotificationService])],e)}(t("../../plugins/autocomplete.plugin").AutoCompletePlugin);n.UserAdministrationComponent=d},{"../../plugins/autocomplete.plugin":38,"../notification.service":31,"../translate.component":34,"@angular/common/http":55,"@angular/core":58,"@angular/material":60,"@angular/router":64}],25:[function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=this&&this.__param||function(t,e){return function(n,r){e(n,r,t)}};Object.defineProperty(n,"__esModule",{value:!0});var c=t("@angular/core"),l=t("@angular/common/http"),u=t("../translate.component"),p=t("../notification.service"),h=t("@angular/material"),d=t("../../plugins/autocomplete.plugin"),f=function(t){function e(e,n,r){var i=t.call(this,e,"users")||this;return i.http=e,i.notify=n,i.dialog=r,i.search=null,i.users=[],i.userDestRedirect={},i.userDestRedirectModels=[],i.lang=u.LANG,i.loading=!1,i.data=[],i.config={},i.displayedColumns=["user_id","lastname","firstname","status","mail","actions"],i.dataSource=new h.MatTableDataSource(i.data),i}return i(e,t),e.prototype.applyFilter=function(t){t=(t=t.trim()).toLowerCase(),this.dataSource.filter=t},e.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'>"+this.lang.administration+"</a> > "+this.lang.users)},e.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").subscribe(function(e){t.users=e.users,t.data=t.users,t.loading=!1,setTimeout(function(){t.dataSource=new h.MatTableDataSource(t.data),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort},0)},function(){location.href="index.php"})},e.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").subscribe(function(n){e.userDestRedirectModels=n.listModels,e.config={data:{userDestRedirect:e.userDestRedirect,userDestRedirectModels:e.userDestRedirectModels}},e.dialogRef=e.dialog.open(m,e.config),e.dialogRef.afterClosed().subscribe(function(n){console.log(n),n&&(t.enabled="N",t.redirectListModels=n,e.http.put(e.coreUrl+"rest/listModels/itemId/"+t.user_id+"/itemMode/dest/objectType/entity_id",t).subscribe(function(n){n.errors?(t.enabled="Y",e.notify.error(n.errors)):e.http.put(e.coreUrl+"rest/users/"+t.id,t).subscribe(function(n){t.inDiffListDest="N",e.notify.success(e.lang.userSuspended+" « "+t.user_id+" »")},function(n){t.enabled="Y",e.notify.error(JSON.parse(n._body).errors)})},function(t){e.notify.error(JSON.parse(t._body).errors)})),e.dialogRef=null})},function(t){console.log(t),location.href="index.php"})):confirm(this.lang.confirmAction+" "+this.lang.suspend+" « "+t.user_id+" »")&&(t.enabled="N",this.http.put(this.coreUrl+"rest/users/"+t.id,t).subscribe(function(n){e.notify.success(e.lang.userSuspended+" « "+t.user_id+" »")},function(n){t.enabled="Y",e.notify.error(JSON.parse(n._body).errors)}))},e.prototype.activateUser=function(t){var e=this;confirm(this.lang.confirmAction+" "+this.lang.authorize+" « "+t.user_id+" »")&&(t.enabled="Y",this.http.put(this.coreUrl+"rest/users/"+t.id,t).subscribe(function(n){e.notify.success(e.lang.userAuthorized+" « "+t.user_id+" »")},function(n){t.enabled="N",e.notify.error(JSON.parse(n._body).errors)}))},e.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").subscribe(function(n){e.userDestRedirectModels=n.listModels,e.config={data:{userDestRedirect:e.userDestRedirect,userDestRedirectModels:e.userDestRedirectModels}},e.dialogRef=e.dialog.open(m,e.config),e.dialogRef.afterClosed().subscribe(function(n){n&&(t.redirectListModels=n,e.http.put(e.coreUrl+"rest/listModels/itemId/"+t.user_id+"/itemMode/dest/objectType/entity_id",t).subscribe(function(n){n.errors?e.notify.error(n.errors):e.http.delete(e.coreUrl+"rest/users/"+t.id).subscribe(function(n){t.inDiffListDest="N",e.data=n.users,e.dataSource=new h.MatTableDataSource(e.data),e.dataSource.paginator=e.paginator,e.dataSource.sort=e.sort,e.notify.success(e.lang.userDeleted+" « "+t.user_id+" »")},function(t){e.notify.error(JSON.parse(t._body).errors)})},function(t){e.notify.error(JSON.parse(t._body).errors)}))})},function(t){e.notify.error(JSON.parse(t._body).errors)})):confirm(this.lang.confirmAction+" "+this.lang.delete+" « "+t.user_id+" »")&&this.http.delete(this.coreUrl+"rest/users/"+t.id,t).subscribe(function(n){e.data=n.users,e.dataSource=new h.MatTableDataSource(e.data),e.dataSource.paginator=e.paginator,e.dataSource.sort=e.sort,e.notify.success(e.lang.userDeleted+" « "+t.user_id+" »")},function(t){e.notify.error(JSON.parse(t._body).errors)})},o([c.ViewChild(h.MatPaginator),a("design:type",h.MatPaginator)],e.prototype,"paginator",void 0),o([c.ViewChild(h.MatSort),a("design:type",h.MatSort)],e.prototype,"sort",void 0),e=o([c.Component({templateUrl:angularGlobals["users-administrationView"],styleUrls:["css/users-administration.component.css"],providers:[p.NotificationService]}),a("design:paramtypes",[l.HttpClient,p.NotificationService,h.MatDialog])],e)}(d.AutoCompletePlugin);n.UsersAdministrationComponent=f;var m=function(t){function e(e,n,r){var i=t.call(this,e,"users")||this;return i.http=e,i.data=n,i.dialogRef=r,i.lang=u.LANG,i}return i(e,t),e.prototype.sendFunction=function(){var t=!0;return this.data.userDestRedirectModels.each(function(e){e.redirectUserId||(t=!1)}),t},e=o([c.Component({templateUrl:angularGlobals["users-administration-redirect-modalView"]}),s(1,c.Inject(h.MAT_DIALOG_DATA)),a("design:paramtypes",[l.HttpClient,Object,h.MatDialogRef])],e)}(d.AutoCompletePlugin);n.UsersAdministrationRedirectModalComponent=m},{"../../plugins/autocomplete.plugin":38,"../notification.service":31,"../translate.component":34,"@angular/common/http":55,"@angular/core":58,"@angular/material":60}],26:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),o=t("@angular/material"),a=t("./french-paginator-intl"),s=function(){function t(){}return t=r([i.NgModule({imports:[o.MatCheckboxModule,o.MatSelectModule,o.MatSlideToggleModule,o.MatInputModule,o.MatTooltipModule,o.MatTabsModule,o.MatSidenavModule,o.MatButtonModule,o.MatCardModule,o.MatButtonToggleModule,o.MatProgressSpinnerModule,o.MatToolbarModule,o.MatMenuModule,o.MatGridListModule,o.MatTableModule,o.MatPaginatorModule,o.MatSortModule,o.MatDatepickerModule,o.MatNativeDateModule,o.MatExpansionModule,o.MatAutocompleteModule,o.MatSnackBarModule,o.MatIconModule,o.MatDialogModule,o.MatListModule,o.MatChipsModule,o.MatStepperModule,o.MatRadioModule],exports:[o.MatCheckboxModule,o.MatSelectModule,o.MatSlideToggleModule,o.MatInputModule,o.MatTooltipModule,o.MatTabsModule,o.MatSidenavModule,o.MatButtonModule,o.MatCardModule,o.MatButtonToggleModule,o.MatProgressSpinnerModule,o.MatToolbarModule,o.MatMenuModule,o.MatGridListModule,o.MatTableModule,o.MatPaginatorModule,o.MatSortModule,o.MatDatepickerModule,o.MatNativeDateModule,o.MatExpansionModule,o.MatAutocompleteModule,o.MatSnackBarModule,o.MatIconModule,o.MatDialogModule,o.MatListModule,o.MatChipsModule,o.MatStepperModule,o.MatRadioModule],providers:[{provide:o.MatPaginatorIntl,useValue:a.getFrenchPaginatorIntl()}]})],t)}();n.AppMaterialModule=s},{"./french-paginator-intl":30,"@angular/core":58,"@angular/material":60}],27:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),o=t("@angular/router"),a=t("./profile.component"),s=t("./signature-book.component"),c=function(){function t(){}return t=r([i.NgModule({imports:[o.RouterModule.forRoot([{path:"profile",component:a.ProfileComponent},{path:"groups/:groupId/baskets/:basketId/signatureBook/:resId",component:s.SignatureBookComponent},{path:"**",redirectTo:"",pathMatch:"full"}],{useHash:!0})],exports:[o.RouterModule]})],t)}();n.AppRoutingModule=c},{"./profile.component":32,"./signature-book.component":33,"@angular/core":58,"@angular/router":64}],28:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),o=function(){function t(){}return t=r([i.Component({selector:"my-app",template:"<router-outlet></router-outlet>",encapsulation:i.ViewEncapsulation.None,styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","css/maarch-material.css","css/engine.css","css/jstree-custom.min.css"]})],t)}();n.AppComponent=o},{"@angular/core":58}],29:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),o=t("@angular/platform-browser"),a=t("@angular/platform-browser/animations"),s=t("@angular/forms"),c=t("@angular/common/http"),l=t("./app-material.module"),u=t("./notification.service"),p=t("./app.component"),h=t("./app-routing.module"),d=t("./administration/administration.module"),f=t("./profile.component"),m=t("./signature-book.component"),g=function(){function t(){}return t=r([i.NgModule({imports:[o.BrowserModule,a.BrowserAnimationsModule,s.FormsModule,c.HttpClientModule,d.AdministrationModule,h.AppRoutingModule,l.AppMaterialModule],declarations:[p.AppComponent,f.ProfileComponent,m.SignatureBookComponent,m.SafeUrlPipe,u.CustomSnackbarComponent],entryComponents:[u.CustomSnackbarComponent],bootstrap:[p.AppComponent]})],t)}();n.AppModule=g},{"./administration/administration.module":5,"./app-material.module":26,"./app-routing.module":27,"./app.component":28,"./notification.service":31,"./profile.component":32,"./signature-book.component":33,"@angular/common/http":55,"@angular/core":58,"@angular/forms":59,"@angular/platform-browser":63,"@angular/platform-browser/animations":62}],30:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("@angular/material"),i=function(t,e,n){if(0==n||0==e)return"0 de "+n;var r=t*e;r<(n=Math.max(n,0))&&Math.min(r+e,n);return"Page "+(t+1)+" / "+Math.ceil(n/e)};n.getFrenchPaginatorIntl=function(){var t=new r.MatPaginatorIntl;return t.itemsPerPageLabel="Afficher:",t.nextPageLabel="Page suivante",t.previousPageLabel="Page précédente",t.getRangeLabel=i,t}},{"@angular/material":60}],31:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},o=this&&this.__param||function(t,e){return function(n,r){e(n,r,t)}};Object.defineProperty(n,"__esModule",{value:!0});var a=t("@angular/material"),s=t("@angular/core"),c=t("@angular/material"),l=function(){function t(t){this.data=t}return t=r([s.Component({selector:"custom-snackbar",template:'<mat-grid-list cols="4" rowHeight="1:1"><mat-grid-tile colspan="1"><mat-icon class="fa fa-{{data.icon}} fa-2x"></mat-icon></mat-grid-tile><mat-grid-tile colspan="3">{{data.message}}</mat-grid-tile></mat-grid-list>'}),o(0,s.Inject(c.MAT_SNACK_BAR_DATA)),i("design:paramtypes",[Object])],t)}();n.CustomSnackbarComponent=l;var u=function(){function t(t){this.snackBar=t}return t.prototype.success=function(t){this.snackBar.openFromComponent(l,{duration:2e3,data:{message:t,icon:"info-circle"}})},t.prototype.error=function(t){this.snackBar.openFromComponent(l,{duration:2e3,data:{message:t,icon:"exclamation-triangle"}})},t=r([s.Injectable(),i("design:paramtypes",[a.MatSnackBar])],t)}();n.NotificationService=u},{"@angular/core":58,"@angular/material":60}],32:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("./translate.component"),c=t("./notification.service"),l=t("@angular/material"),u=function(){function t(t,e,n){var r=this;this.http=t,this.zone=e,this.notify=n,this.lang=s.LANG,this.user={baskets:[]},this.histories=[],this.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},this.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},this.mailSignatureModel={selected:0,htmlBody:"",title:""},this.userAbsenceModel=[],this.basketsToRedirect=[],this.showPassword=!1,this.selectedSignature=-1,this.selectedSignatureLabel="",this.loading=!1,this.displayAbsenceButton=!1,this.displayedColumns=["event_date","info"],this.dataSource=new l.MatTableDataSource(this.histories),window.angularProfileComponent={componentAfterUpload:function(t){return r.processAfterUpload(t)}}}return t.prototype.applyFilter=function(t){t=(t=t.trim()).toLowerCase(),this.dataSource.filter=t},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/currentUser/profile").subscribe(function(e){t.user=e,t.user.baskets.forEach(function(e,n){t.user.baskets[n].disabled=!1,t.user.redirectedBaskets.forEach(function(r){e.basket_id==r.basket_id&&e.basket_owner==r.basket_owner&&(t.user.baskets[n].disabled=!0)})}),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=this;if(void 0!==this.basketsToRedirect[0]&&$j("#absenceUser")[0].value){var e=[];this.basketsToRedirect.forEach(function(n){e.push({basketId:t.user.baskets[n].basket_id,basketName:t.user.baskets[n].basket_name,virtual:t.user.baskets[n].is_virtual,basketOwner:t.user.baskets[n].basket_owner,newUser:$j("#absenceUser")[0].value})}),this.http.post(this.coreUrl+"rest/users/"+this.user.id+"/redirectedBaskets",e).subscribe(function(e){$j("#selectBasketAbsenceUser option").prop("selected",!1),$j("#absenceUser")[0].value="",t.basketsToRedirect=[],t.user.redirectedBaskets=e.redirectedBaskets,t.user.baskets.forEach(function(e,n){t.user.baskets[n].disabled=!1,t.user.redirectedBaskets.forEach(function(r){e.basket_id==r.basket_id&&e.basket_owner==r.basket_owner&&(t.user.baskets[n].disabled=!0)})})},function(e){t.notify.error(e.error.errors)})}else this.notify.error("Veuillez sélectionner au moins une bannette et un utilisateur")},t.prototype.delBasketRedirection=function(t){var e=this;this.http.delete(this.coreUrl+"rest/users/"+this.user.id+"/redirectedBaskets/"+t.basket_id).subscribe(function(t){e.user.redirectedBaskets=t.redirectedBaskets,e.user.baskets.forEach(function(t,n){e.user.baskets[n].disabled=!1,e.user.redirectedBaskets.forEach(function(r){t.basket_id==r.basket_id&&t.basket_owner==r.basket_owner&&(e.user.baskets[n].disabled=!0)})}),e.notify.success(e.lang.modificationSaved)},function(t){e.notify.error(t.error.errors)})},t.prototype.updateBasketColor=function(t,e){var n=this;this.http.put(this.coreUrl+"rest/currentUser/groups/"+this.user.regroupedBaskets[t].groupId+"/baskets/"+this.user.regroupedBaskets[t].baskets[e].basket_id,{color:this.user.regroupedBaskets[t].baskets[e].color}).subscribe(function(t){n.user.regroupedBaskets=t.userBaskets},function(t){n.notify.error(t.error.errors)})},t.prototype.activateAbsence=function(){var t=this;confirm("Voulez-vous vraiment activer votre absence ? Vous serez automatiquement déconnecté.")&&this.http.put(this.coreUrl+"rest/users/"+this.user.id+"/status",{status:"ABS"}).subscribe(function(){location.hash="",location.search="?display=true&page=logout&abs_mode"},function(e){t.notify.error(e.error.errors)})},t.prototype.askRedirectBasket=function(){confirm("Voulez-vous rediriger vos bannettes avant de vous mettre en absence ?")?(this.displayAbsenceButton=!0,$j("#redirectBasketCard").click()):this.activateAbsence()},t.prototype.updatePassword=function(){var t=this;this.http.put(this.coreUrl+"rest/currentUser/password",this.passwordModel).subscribe(function(e){t.showPassword=!1,t.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},successNotification(e.success)},function(t){errorNotification(t.error.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).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).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).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).subscribe(function(e){t.user.signatures=e.signatures,t.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},successNotification(e.success)},function(t){errorNotification(t.error.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}).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(t.error.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).subscribe(function(t){e.user.signatures=t.signatures,successNotification(t.success)},function(t){errorNotification(t.error.errors)})},t.prototype.getHistories=function(){var t=this;0==this.histories.length&&this.http.get(this.coreUrl+"rest/histories/users/"+this.user.id).subscribe(function(e){t.histories=e.histories,setTimeout(function(){t.dataSource=new l.MatTableDataSource(t.histories),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort},0)},function(e){t.notify.error(e.error.errors)})},t.prototype.onSubmit=function(){var t=this;this.http.put(this.coreUrl+"rest/currentUser/profile",this.user).subscribe(function(){t.notify.success(t.lang.modificationSaved)},function(e){t.notify.error(e.error.errors)})},r([o.ViewChild(l.MatPaginator),i("design:type",l.MatPaginator)],t.prototype,"paginator",void 0),r([o.ViewChild(l.MatSort),i("design:type",l.MatSort)],t.prototype,"sort",void 0),t=r([o.Component({templateUrl:angularGlobals.profileView,styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","css/profile.component.css"],providers:[c.NotificationService]}),i("design:paramtypes",[a.HttpClient,o.NgZone,c.NotificationService])],t)}();n.ProfileComponent=u},{"./notification.service":31,"./translate.component":34,"@angular/common/http":55,"@angular/core":58,"@angular/material":60}],33:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},i=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 o=t("@angular/core"),a=t("@angular/common/http"),s=t("@angular/platform-browser"),c=t("@angular/router"),l=function(){function t(t){this.sanitizer=t}return t.prototype.transform=function(t){return this.sanitizer.bypassSecurityTrustResourceUrl(t)},t=r([o.Pipe({name:"safeUrl"}),i("design:paramtypes",[s.DomSanitizer])],t)}();n.SafeUrlPipe=l;var u=function(){function t(t,e,n,r){var i=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 i.processAfterAttach(t)},componentAfterAction:function(){return i.processAfterAction()},componentAfterNotes:function(){return i.processAfterNotes()},componentAfterLinks:function(){return i.processAfterLinks()}}}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.groupId=e.groupId,t.signatureBook.resList=[],lockDocument(t.resId),setInterval(function(){lockDocument(t.resId)},5e4),t.http.get(t.coreUrl+"rest/groups/"+t.groupId+"/baskets/"+t.basketId+"/signatureBook/"+t.resId).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.processAfterLinks=function(){var t=this;this.zone.run(function(){return t.refreshLinks()})},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").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").subscribe(function(t){e.signatureBook.documents=t}):this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/attachments").subscribe(function(n){var r=0;if("add"==t){var i=!1;n.forEach(function(t,n){i||e.signatureBook.attachments[n]&&t.res_id==e.signatureBook.attachments[n].res_id||(r=n,i=!0)})}else if("edit"==t){var o=e.signatureBook.attachments[e.rightSelectedThumbnail].res_id;n.forEach(function(t,e){t.res_id==o&&(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){var e;t.canModify&&"SIGN"!=t.status&&(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)var n=confirm("Attention, ceci est votre dernière pièce jointe pour ce courrier, voulez-vous vraiment la supprimer ?");else n=confirm("Voulez-vous vraiment supprimer la pièce jointe ?");var r;if(n)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").subscribe(function(e){t.signatureBook.nbNotes=e})},t.prototype.refreshLinks=function(){var t=this;this.http.get(this.coreUrl+"rest/links/resId/"+this.resId).subscribe(function(e){t.signatureBook.nbLinks=e.length})},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).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),3==n.headerTab&&(n.changeSignatureBookLeftContent(0),setTimeout(function(){n.changeSignatureBookLeftContent(3)},0))}else alert(t.error);n.showSignaturesPanel=!1,n.loadingSign=!1})}},t.prototype.unsignFile=function(t){var e,n,r,i=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",{}).subscribe(function(){i.rightViewerLink="index.php?display=true&module=attachments&page=view_attachment&res_id_master="+i.resId+"&id="+t.viewerNoSignId+"&isVersion="+r,i.signatureBook.attachments[i.rightSelectedThumbnail].viewerLink=i.rightViewerLink,i.signatureBook.attachments[i.rightSelectedThumbnail].status="A_TRA",i.signatureBook.attachments[i.rightSelectedThumbnail].idToDl=n,i.signatureBook.resList.length>0&&(i.signatureBook.resList[i.signatureBook.resListIndex].allSigned=!1),3==i.headerTab&&(i.changeSignatureBookLeftContent(0),setTimeout(function(){i.changeSignatureBookLeftContent(3)},0))})},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").subscribe(function(r){if(r.lock)"view"==e?alert("Courrier verrouillé par "+r.lockBy):"action"==e&&(alert("Courrier suivant verrouillé par "+r.lockBy),n.backToBasket());else{var i="/groups/"+n.groupId+"/baskets/"+n.basketId+"/signatureBook/"+t;n.router.navigate([i])}})},t.prototype.validForm=function(){var t=this;""!=$j("#signatureBookActions option:selected")[0].value?1==this.signatureBook.listinstance.requested_signature?this.http.get(this.coreUrl+"rest/listinstance/"+this.signatureBook.listinstance.listinstance_id).subscribe(function(e){var n=!0;0==e.signatory&&(n=confirm("Vous n’avez signé aucun document. Êtes-vous sûr de vouloir continuer ?")),n&&t.sendActionForm()}):this.sendActionForm():alert("Aucune action choisie")},t.prototype.sendActionForm=function(){var t=this;unlockDocument(this.resId),0==this.signatureBook.resList.length?this.http.get(this.coreUrl+"rest/"+this.basketId+"/signatureBook/resList").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])},t=r([o.Component({templateUrl:angularGlobals["signature-bookView"]}),i("design:paramtypes",[a.HttpClient,c.ActivatedRoute,c.Router,o.NgZone])],t)}();n.SignatureBookComponent=u},{"@angular/common/http":55,"@angular/core":58,"@angular/platform-browser":63,"@angular/router":64}],34:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("../lang/lang-en"),i=t("../lang/lang-fr"),o={};"en"==angularGlobals.lang?o=r.LANG_EN:"fr"==angularGlobals.lang&&(o=i.LANG_FR),n.LANG=o},{"../lang/lang-en":35,"../lang/lang-fr":36}],35:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LANG_EN={abs:"Absent",action:"Action",actionAdded:"Action added",actionCreation:"Action creation",actionDeleted:"Action deleted",actionHistory:"Log action in history",actionHistoryDesc:"Lets you plot this action in the document history. It is strongly recommended to check this option",actionModification:"Action modification",actionName:"Action name",actionPage:"Result page of the action",actions:"Action(s)",actionUpdated:"Action updated",activateAbsence:"Activate absence",active:"Active",add:"Add",addStatus:"Add a status",administration:"Administration",administrationServices:"Administration services",application:"Application",associatedStatus:"Associated status",attachments:"Attachments",authorize:"Authorize",autoLogoutAbsence:"You are going to be automaticaly disconnected after your redirections",avis:"Avis circuit",back:"Back",basket:"Basket",basketAdded:"Basket added",basketCreation:"Basket creation",basketDeleted:"Basket deleted",basketModification:"Basket modification",baskets:"Baskets",basketUpdated:"Basket updated",canBeModified:"Index modification",canBeSearched:"Searchable",cancel:"Cancel",cases:"Cases",changeMyPassword:"Change my password",chooseBasket:"Choose a basket",chooseCategoryAssociation:"Choose one or some associatedd categories",chooseEntity:"Choose a entity",chooseGroup:"Choose a group",chooseRedirectGroup:"Choose another group",clause:"Clause",clickOn:"Click on",color:"Color",content_management:"Ressource revision",currentPsw:"Current password",deactivateAbsence:"Deactivate absence",delete:"Delete",deleteMsg:"Do you really want to delete this element",description:"Description",doNotModifyUnlessExpert:"Do not edit this section unless you know what you are doing. Incorrect settings can cause the application to malfunction !",email:"Email",emailSignatures:"Email signatures",entities:"Entities",entityAdded:"Entité added",entityDeleted:"Entité deleted",entityTooglePrimary:"Pass to primary entity",entityUpdated:"Entité updated",export_seda:"Seda export",fileplan:"Fileplan",filterBy:"Filter by",fingerprint:"Digital fingerprint",firstname:"Firstname",folder:"Folder",folders:"Folders",for:"for",functionnalities:"Functionnalities",groupAdded:"Group added",groupCreation:"Create group",groupDeleted:"Group deleted",groupModification:"Modify group",groupRedirect:"Group change",groups:"Groups",groupUpdated:"Group updated",history:"Historique",id:"Login",imgRelated:"Associated image",inactive:"Inactive",informations:"Informations",initials:"Initials",isAssociatedTo:"is associated to",isFolderAction:"Folder action",isFolderActionDesc:"Use this action in a folder folder",isFolderStatus:"Folder status",isSytemAction:"System action",keyword:"Keyword",keywordHelp:"Keyword help",keywordHelpDesc_1:"Identifier of logged user",keywordHelpDesc_10:"Immediate sub-entities (n-1) of entities passed in argument",keywordHelpDesc_11:"Example of security definition for a group (where clause) : access of main entity of logged user or sub-entity of this entity",keywordHelpDesc_2:"Email of logged user",keywordHelpDesc_3:"All entities linked to logged user. Sub-entities are excludes",keywordHelpDesc_4:"Primary entity of logged user",keywordHelpDesc_5:"Sub-entities of argument list, can be @my_entities or @my_primary_entity",keywordHelpDesc_6:"Parent entity passed to argument",keywordHelpDesc_7:"All entities to the same level of entity in argument",keywordHelpDesc_8:"All entities with de same type passed in argument",keywordHelpDesc_9:"All entities (enabled)",keywordHelper:"Hide / Display keyword help",label:"Label",lastname:"Lastname",life_cycle:"Life cycle",maarchApplication:"Maarch App",manageAbsences:"Manage absences",manageSignatures:"Manage signatures",menus:"Menus",modificationSaved:"Modification has been saved",module:"Module",modules:"Modules",myProfile:"My profile",newAction:"New action",newElement:"New element",newPsw:"New password",newSignature:"New signature",no:"No",noReplacement:"No replacement",notes:"Notes",NotificationAdded:"Notification added",notificationCreation:"Notification creation",notificationDeleted:"Notification deleted",NotificationDiffusionType:"Diffusion type",NotificationEnabled:"Enabled",NotificationEvent:"Event",NotificationJoinDocument:"Join document to notification",NotificationModel:"Model",notificationModification:"Notification modification",notifications:"Notification(s)",notificationSchedule:"Notifications schedule",NotificationScheduleInfo:"This part is used to define when notifications will be sent.\n\nIf you choose * from all the drop-down lists, the notification will be sent every minute 365 days a year.\n\nFrequency example :\n14 30 * * * [courrier] Nouveaux courriers à traiter : La notification sera envoyée tous les jours à 14h30\n9 30 * * Lundi [courrier] Nouveaux courriers à traiter : La notification sera envoyée tous les lundi à 9h30",NotificationScheduleUpdated:"Schedule updated",notificationsSchedule:"Notifications schedule",NotificationToEnable:"To enable",notificationUpdated:"Notification updated",parameter:"Parameter",parameterAdded:"Parameter added",parameterDeleted:"Parameter deleted",parameters:"Parameters",parameterUpdated:"Parameter updated",phoneNumber:"Phone number",primaryEntity:"Primary entity",priorityAdded:"Priority added",priorityDeleted:"Priority deleted",priorityUpdated:"Priority updated",processDelay:"Process delay",reinitPassword:"Reset password",relatedUsers:"Related users",renewPsw:"Enter the password again",reports:"Reports",role:"Role",save:"Save",sbSignatures:"Signature Book Signatures",secondaryEntity:"Secondary entity",selectAll:"Select all",sendmail:"Sendmail",statusAdded:"Status added",statusCreation:"Status creation",statusDeleted:"Status deleted",statuses:"Statuses",statusModification:"Status modification",statusName:"Status name",statusUpdated:"Status updated",suspend:"Suspend",system:"System",systemParameters:"System parameters",tags:"Tags",templates:"Templates",thesaurus:"Thesaurus",to:"to",tooltipFolderStatus:"If checked, status can be used for folder baskets",tooltipIndexStatus:"If checked, you can edit metadatas of the documents having this status",tooltipSearchStatus:"If checked, the status will be offered in the search criteria STATUS of the advanced search",toSchedule:"To schedule",unselectAll:"Unselect all",update:"Update",updateStatus:"Document status modification",updateStatusInformations:"When typing the chrono or the GED number of a document, you will modify its status. The document will be present in the basket depending of the status you have chosen.",user:"user",userCreation:"User Creation",userModification:"User Modification",validate:"Validate",value:"value",view:"View",visa:"Visa circuit",workingDays:"Working days",yes:"Yes",createScriptNotification:"Create the script",ScriptCreated:"Script created"}},{}],36:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LANG_FR={abs:"Absent",absOff:"Absence désactivée",absOn:"Absence activée",action:"Action",actionAdded:"Action ajoutée",actionCreation:"Création d'une action",actionDeleted:"Action supprimée",actionHistory:"Tracer l'action",actionHistoryDesc:"Permet tracer cette action dans l'historique du document. Il est fortement recommandé de cocher cette option.",actionModification:"Modification de l'action",actionName:"Nom de l'action",actionPage:"Page de résultat de l'action",actions:"Action(s)",actionUpdated:"Action modifiée",activateAbs:"Activer l'absence",activateAbsence:"Activer l'absence",active:"Actif",add:"Ajouter",addStatus:"Ajouter un statut",administration:"Administration",administrationServices:"Services d'administration",application:"Application",associatedStatus:"Statut associé",attachments:"Attachments",authorize:"Autoriser",autoLogoutAbsence:"Vous allez être automatiquement déconnecté après avoir défini vos redirections de bannettes",available:"disponible",avis:"Circuit d'avis",back:"Retour",basket:"Bannette",basketAdded:"Bannette ajoutée",basketCreation:"Création d'une bannette",basketDeleted:"Bannette supprimée",basketModification:"Modification d'une bannette",baskets:"Bannettes",basketUpdated:"Bannette modifiée",canBeModified:"Modification des index",canBeSearched:"Recherche",cancel:"Annuler",cases:"Affaires",changeMyPassword:"Modifier mon mot de passe",chooseBasket:"Choisissez une banette",chooseCategoryAssociation:"Choisissez une ou plusieurs catégories associée",chooseCategoryAssociationHelp:"Si aucune catégorie sélectionnée alors l'action est valable pour toute les catégories",chooseEntity:"Choisissez une entité",chooseGroup:"Choisissez un groupe",chooseRedirectGroup:"Choisissez un groupe de remplacement",clause:"Clause",clickOn:"Cliquez sur",color:"Couleur",confirmAction:"Voulez-vous vraiment effectuer cette action ?",content_management:"Versionning de document",currentPsw:"Mot de passe actuel",dataOfMonth:"Données du mois",date:"Date",delete:"Supprimer",deleteMsg:"Voulez-vous vraiment supprimer cet élément ?",desactivateAbsence:"Désactiver l'absence",description:"Description",display:"affichage",doNotModifyUnlessExpert:"Ne pas modifier cette section à moins de savoir ce que vous faites. Un mauvais paramètrage peut entrainer des dysfonctionnements de l'application!",email:"Email",emailSignatures:"Signatures de mail",entities:"Entités",entityAdded:"Entité ajoutée",entityDeleted:"Entité supprimée",entityTooglePrimary:"Passage en entité primaire",entityUpdated:"Entité modifiée",entries:"entrée(s)",event:"Événement",export_seda:"Export seda",fileplan:"Plan de classement personnel",filterBy:"Filtrer",filteredFrom:"filtré sur un ensemble de",fingerprint:"Empreinte numérique",firstname:"Prénom",folder:"Dossier",folders:"Dossiers",for:"pour",functionnalities:"Fonctionnalités",groupAdded:"Groupe ajouté",groupCreation:"Création d'un groupe",groupDeleted:"Groupe supprimé",groupModification:"Modification d'un groupe",groupRedirect:"Changement de groupe",groups:"Groupes",groupUpdated:"Groupe modifié",history:"Historique",historyBatch:"Historique des batchs",id:"Identifiant",imgRelated:"Image associée",inactive:"Inactif",informations:"Informations",infosActions:"Vous devez choisir au moins un statut et / ou un script.",initials:"Initiales",integer:"Entier",ip:"Adresse IP",isAssociatedTo:"est associé à",isFolderAction:"Action de dossier",isFolderActionDesc:"Permet d'utiliser cette action dans une bannette de dossier",isFolderStatus:"Statut de dossier",isSytemAction:"Action système",keyword:"Mot-clé",keywordHelp:"Aide sur les mots-clés",keywordHelpDesc_1:"Identifiant de l'utilisateur connecté",keywordHelpDesc_10:"Sous-entités immédiates (n-1) des entités données en argument",keywordHelpDesc_11:"Exemple dans la définition de la sécurité d'un groupe (where clause) : accès sur les ressources concernant le service d'appartenance principal de l'utilisateur connecté, ou les sous-services de ce service",keywordHelpDesc_2:"Courriel de l'utilisateur connecté",keywordHelpDesc_3:"Toutes les entités rattachées à l'utilisateur connecté. N'inclue pas les sous-entités",keywordHelpDesc_4:"Entité primaire de l'utilisateur connecté",keywordHelpDesc_5:"Sous-entités de la liste d'argument, qui peut aussi être @my_entities ou @my_primary_entity",keywordHelpDesc_6:"Entité parente de l'entité en argument",keywordHelpDesc_7:"Toutes les entités du même niveau que l'entité en argument",keywordHelpDesc_8:"Toutes les entités du même type mis en argument",keywordHelpDesc_9:"Toutes les entités (actives)",keywordHelper:"Afficher / Cacher l'aide sur les mots-clés",label:"Label",last:"dernier",lastname:"Nom",life_cycle:"Cycle de vie",maarchApplication:"Application Maarch",manageAbsences:"Rediriger mes bannettes",manageSignatures:"Gérer les signatures",menus:"Menus",modificationSaved:"Modification enregistrée",module:"Module",modules:"Modules",myProfile:"Mon profil",newAction:"Nouvelle action",newElement:"Nouvel élément",newPsw:"Nouveau mot de passe",newSignature:"Nouvelle signature",next:"Suivant",no:"Non",noRecord:"Aucun élément",noReplacement:"Aucun remplacement",noResult:"Aucun résultat",notes:"Annotations",NotificationAdded:"Notification ajoutée",notificationCreation:"Création d'une notification",notificationDeleted:"Notification supprimée",NotificationDiffusionType:"Type de diffusion",NotificationEnabled:"Activée",NotificationEvent:"Evènement",NotificationJoinDocument:"Joindre le document à la notification",NotificationModel:"Modèle",notificationModification:"Modification de la notification",notifications:"Notification(s)",notificationSchedule:"Planifier les notifications",NotificationScheduleInfo:"Cette partie permet de définir quand seront envoyées les notifications.\n\nSi vous choisissez * dans toutes les listes déroulantes, la notification sera envoyée toutes les minutes 365 jours par an.\n\nExemple de fréquence :\n14 30 * * * [courrier] Nouveaux courriers à traiter : La notification sera envoyée tous les jours à 14h30\n9 30 * * Lundi [courrier] Nouveaux courriers à traiter : La notification sera envoyée tous les lundi à 9h30",NotificationScheduleUpdated:"Planification mise à jour",notificationsSchedule:"Planification des notifications",NotificationToEnable:"Activer",notificationUpdated:"Notification mise à jour",outOf:"sur",page:"Page",parameter:"Paramètre",parameterAdded:"Paramètre ajouté",parameterDeleted:"Paramètre supprimé",parameters:"Paramètres",parameterUpdated:"Paramètre modifié",phoneNumber:"Numéro de téléphone",previous:"Précecdent",primaryEntity:"Entité primaire",priorityAdded:"Priorité ajoutée",priorityDeleted:"Priorité supprimée",priorityUpdated:"Priorité modifiée",processDelay:"Délai de traitement",pswReseted:"Mot de passe réinitialisé",record:"élément(s)",records:"résultats",recordsPerPage:"résultats par page",reinitPassword:"Réinitialiser le mot de passe",relatedUsers:"Utilisateurs associés",renewPsw:"Retaper le mot de passe",reports:"Etats et éditions",resetPsw:"Réinitialiser le mot de passe",role:"Rôle",save:"Enregistrer",sbSignatures:"Signatures de parapheur",search:"Chercher",secondaryEntity:"Entitté secondaire",selectAll:"Sélectionner tout",sendmail:"Envoi de mails",signAdded:"Signature ajoutée",signDeleted:"Signature supprimée",signUpdated:"Signature modifiée",status:"Statut",statusAdded:"Statut ajouté",statusCreation:"Création d'un statut",statusDeleted:"Statut supprimé",statuses:"Statut(s)",statusModification:"Modification du statut",statusName:"Nom du statut",statusUpdated:"Statut mis à jour",string:"Chaine de caratère",suspend:"Suspendre",system:"Système",systemParameters:"paramètres système",tags:"Mots clés",templates:"Modèles de documents",thesaurus:"Thésaurus",to:"vers",tooltipFolderStatus:"Si coché, le statut pourra être utilisé pour des bannettes de dossiers",tooltipIndexStatus:"Si coché, vous pourrez modifier les meta-données des documents ayant ce statut",tooltipSearchStatus:"Si coché, le statut vous sera proposé dans le critère de recherche STATUTS de la recherche avancée",toSchedule:"Planifier",totalErrors:"Élément(s) en erreur",totalProcessed:"Élément(s) analysé(s)",type:"Type",unselectAll:"Tout désélectionner",update:"Modifier",updateStatus:"Changement de statut de courrier",updateStatusInformations:"En saisissant le n° chrono ou le n° GED du document, vous modifierez le statut du courrier. Le courrier sera disponible dans la bannette des utilisateurs auquel il était affecté suivant le statut que vous aurez défini.",user:"utilisateur",userAdded:"Utilisateur ajouté",userAuthorized:"Utilisateur autorisé",userCreation:"Création d'un utilisateur",userDeleted:"Utilisateur supprimé",userModification:"Modification de l'utilisateur",users:"Utilisateur(s)",userSuspended:"Utilisateur suspendu",userUpdated:"Utilisateur modifié",validate:"Valider",value:"valeur",view:"Consulter",visa:"Circuit de visa",workingDays:"Jours ouvrés",yes:"Oui",createScriptNotification:"Créer le script",ScriptCreated:"Script créé"}},{}],37:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("@angular/platform-browser-dynamic"),i=t("@angular/core"),o=t("./app/app.module");i.enableProdMode(),r.platformBrowserDynamic().bootstrapModule(o.AppModule)},{"./app/app.module":29,"@angular/core":58,"@angular/platform-browser-dynamic":61}],38:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("@angular/forms"),i=t("rxjs/operators/startWith"),o=t("rxjs/operators/map"),a=function(){function t(t,e){var n=this;this.http=t,this.userList=[],this.coreUrl=angularGlobals.coreUrl,this.userCtrl=new r.FormControl,"users"==e&&this.http.get(this.coreUrl+"rest/users/autocompleter").subscribe(function(t){n.userList=t},function(){location.href="index.php"}),this.filteredUsers=this.userCtrl.valueChanges.pipe(i.startWith(""),o.map(function(t){return t?n.autocompleteFilter(t):n.userList.slice()}))}return t.prototype.autocompleteFilter=function(t){return this.userList.filter(function(e){return 0===e.formattedUser.toLowerCase().indexOf(t.toLowerCase())})},t}();n.AutoCompletePlugin=a},{"@angular/forms":59,"rxjs/operators/map":129,"rxjs/operators/startWith":138}],39:[function(t,e,n){var r,i;r=this,i=function(t,e){"use strict";var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function r(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t};function o(t){switch(t.length){case 0:return new e.NoopAnimationPlayer;case 1:return t[0];default:return new e.ɵAnimationGroupPlayer(t)}}function a(t,n,r,i,o,a){void 0===o&&(o={}),void 0===a&&(a={});var s=[],c=[],l=-1,u=null;if(i.forEach(function(t){var r=t.offset,i=r==l,p=i&&u||{};Object.keys(t).forEach(function(r){var i=r,c=t[r];if("offset"!==r)switch(i=n.normalizePropertyName(i,s),c){case e.ɵPRE_STYLE:c=o[r];break;case e.AUTO_STYLE:c=a[r];break;default:c=n.normalizeStyleValue(r,i,c,s)}p[i]=c}),i||c.push(p),u=p,l=r}),s.length){throw new Error("Unable to animate due to the following errors:\n - "+s.join("\n - "))}return c}function s(t,e,n,r){switch(e){case"start":t.onStart(function(){return r(n&&c(n,"start",t.totalTime))});break;case"done":t.onDone(function(){return r(n&&c(n,"done",t.totalTime))});break;case"destroy":t.onDestroy(function(){return r(n&&c(n,"destroy",t.totalTime))})}}function c(t,e,n){var r=l(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,void 0==n?t.totalTime:n),i=t._data;return null!=i&&(r._data=i),r}function l(t,e,n,r,i,o){return void 0===i&&(i=""),void 0===o&&(o=0),{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o}}function u(t,e,n){var r;return t instanceof Map?(r=t.get(e))||t.set(e,r=n):(r=t[e])||(r=t[e]=n),r}function p(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var h=function(t,e){return!1},d=function(t,e){return!1},f=function(t,e,n){return[]};if("undefined"!=typeof Element){if(h=function(t,e){return t.contains(e)},Element.prototype.matches)d=function(t,e){return t.matches(e)};else{var m=Element.prototype,g=m.matchesSelector||m.mozMatchesSelector||m.msMatchesSelector||m.oMatchesSelector||m.webkitMatchesSelector;g&&(d=function(t,e){return g.apply(t,[e])})}f=function(t,e,n){var r=[];if(n)r.push.apply(r,t.querySelectorAll(e));else{var i=t.querySelector(e);i&&r.push(i)}return r}}var y=null,v=!1;function b(t){y||(y=_()||{},v=!!y.style&&"WebkitAppearance"in y.style);var e=!0;y.style&&"ebkit"!=t.substring(1,6)&&(!(e=t in y.style)&&v&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in y.style));return e}function _(){return"undefined"!=typeof document?document.body:null}var w=d,C=h,x=f,E=function(){function t(){}return t.prototype.validateStyleProperty=function(t){return b(t)},t.prototype.matchesElement=function(t,e){return w(t,e)},t.prototype.containsElement=function(t,e){return C(t,e)},t.prototype.query=function(t,e,n){return x(t,e,n)},t.prototype.computeStyle=function(t,e,n){return n||""},t.prototype.animate=function(t,n,r,i,o,a){return void 0===a&&(a=[]),new e.NoopAnimationPlayer},t}(),S=function(){function t(){}return t.NOOP=new E,t}(),k=1e3,O="ng-enter",P="ng-leave",A="ng-trigger",T=".ng-trigger",M="ng-animating",I=".ng-animating";function R(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:D(parseFloat(e[1]),e[2])}function D(t,e){switch(e){case"s":return t*k;default:return t}}function N(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var r,i=0,o="";if("string"==typeof t){var a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push('The provided timing value "'+t+'" is invalid.'),{duration:0,delay:0,easing:""};r=D(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(i=D(Math.floor(parseFloat(s)),a[4]));var c=a[5];c&&(o=c)}else r=t;if(!n){var l=!1,u=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),l=!0),i<0&&(e.push("Delay values below 0 are not allowed for this animation step."),l=!0),l&&e.splice(u,0,'The provided timing value "'+t+'" is invalid.')}return{duration:r,delay:i,easing:o}}(t,e,n)}function L(t,e){return void 0===e&&(e={}),Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function j(t){var e={};return Array.isArray(t)?t.forEach(function(t){return F(t,!1,e)}):F(t,!1,e),e}function F(t,e,n){if(void 0===n&&(n={}),e)for(var r in t)n[r]=t[r];else L(t,n);return n}function V(t,e){t.style&&Object.keys(e).forEach(function(n){var r=Y(n);t.style[r]=e[n]})}function B(t,e){t.style&&Object.keys(e).forEach(function(e){var n=Y(e);t.style[n]=""})}function U(t){return Array.isArray(t)?1==t.length?t[0]:e.sequence(t):t}var H=new RegExp("{{\\s*(.+?)\\s*}}","g");function z(t){var e=[];if("string"==typeof t){for(var n=t.toString(),r=void 0;r=H.exec(n);)e.push(r[1]);H.lastIndex=0}return e}function G(t,e,n){var r=t.toString(),i=r.replace(H,function(t,r){var i=e[r];return e.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),i=""),i.toString()});return i==r?t:i}function W(t){for(var e=[],n=t.next();!n.done;)e.push(n.value),n=t.next();return e}var q=/-+([a-z0-9])/g;function Y(t){return t.replace(q,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function K(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}var $="*";function X(t,e){var n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(function(t){return function(t,e,n){if(":"==t[0]){var r=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e)<parseFloat(t)};default:return e.push('The transition alias value "'+t+'" is not supported'),"* => *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}var i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var o=i[1],a=i[2],s=i[3];e.push(J(o,s));var c=o==$&&s==$;"<"!=a[0]||c||e.push(J(s,o))}(t,n,e)}):n.push(t),n}var Q=new Set(["true","1"]),Z=new Set(["false","0"]);function J(t,e){var n=Q.has(t)||Z.has(t),r=Q.has(e)||Z.has(e);return function(i,o){var a=t==$||t==i,s=e==$||e==o;return!a&&n&&"boolean"==typeof i&&(a=i?Q.has(t):Z.has(t)),!s&&r&&"boolean"==typeof o&&(s=o?Q.has(e):Z.has(e)),a&&s}}var tt=":self",et=new RegExp("s*"+tt+"s*,?","g");function nt(t,e,n){return new rt(t).build(e,n)}var rt=function(){function t(t){this._driver=t}return t.prototype.build=function(t,e){var n=new it(e);return this._resetContextStyleTimingState(n),K(this,U(t),n)},t.prototype._resetContextStyleTimingState=function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0},t.prototype.visitTrigger=function(t,e){var n=this,r=e.queryCount=0,i=e.depCount=0,o=[],a=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(function(t){if(n._resetContextStyleTimingState(e),0==t.type){var s=t,c=s.name;c.split(/\s*,\s*/).forEach(function(t){s.name=t,o.push(n.visitState(s,e))}),s.name=c}else if(1==t.type){var l=n.visitTransition(t,e);r+=l.queryCount,i+=l.depCount,a.push(l)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:o,transitions:a,queryCount:r,depCount:i,options:null}},t.prototype.visitState=function(t,e){var n=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){var i=new Set,o=r||{};if(n.styles.forEach(function(t){if(ot(t)){var e=t;Object.keys(e).forEach(function(t){z(e[t]).forEach(function(t){o.hasOwnProperty(t)||i.add(t)})})}}),i.size){var a=W(i.values());e.errors.push('state("'+t.name+'", ...) must define default values for all the following style substitutions: '+a.join(", "))}}return{type:0,name:t.name,style:n,options:r?{params:r}:null}},t.prototype.visitTransition=function(t,e){e.queryCount=0,e.depCount=0;var n=K(this,U(t.animation),e);return{type:1,matchers:X(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:at(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return K(n,t,e)}),options:at(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,r=e.currentTime,i=0,o=t.steps.map(function(t){e.currentTime=r;var o=K(n,t,e);return i=Math.max(i,e.currentTime),o});return e.currentTime=i,{type:3,steps:o,options:at(t.options)}},t.prototype.visitAnimate=function(t,n){var r,i=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t){var r=N(t,e).duration;return st(r,0,"")}var i=t;if(i.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var o=st(0,0,"");return o.dynamic=!0,o.strValue=i,o}return st((n=n||N(i,e)).duration,n.delay,n.easing)}(t.timings,n.errors);n.currentAnimateTimings=i;var o=t.styles?t.styles:e.style({});if(5==o.type)r=this.visitKeyframes(o,n);else{var a=t.styles,s=!1;if(!a){s=!0;var c={};i.easing&&(c.easing=i.easing),a=e.style(c)}n.currentTime+=i.duration+i.delay;var l=this.visitStyle(a,n);l.isEmptyStep=s,r=l}return n.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,n){var r=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==e.AUTO_STYLE?r.push(t):n.errors.push("The provided style string value "+t+" is not allowed."):r.push(t)}):r.push(t.styles);var i=!1,o=null;return r.forEach(function(t){if(ot(t)){var e=t,n=e.easing;if(n&&(o=n,delete e.easing),!i)for(var r in e){if(e[r].toString().indexOf("{{")>=0){i=!0;break}}}}),{type:6,styles:r,easing:o,offset:t.offset,containsDynamicStyles:i,options:null}},t.prototype._validateStyleAst=function(t,e){var n=this,r=e.currentAnimateTimings,i=e.currentTime,o=e.currentTime;r&&o>0&&(o-=r.duration+r.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(r){if(n._driver.validateStyleProperty(r)){var a,s,c,l,u,p=e.collectedStyles[e.currentQuerySelector],h=p[r],d=!0;h&&(o!=i&&o>=h.startTime&&i<=h.endTime&&(e.errors.push('The CSS property "'+r+'" that exists between the times of "'+h.startTime+'ms" and "'+h.endTime+'ms" is also being animated in a parallel animation between the times of "'+o+'ms" and "'+i+'ms"'),d=!1),o=h.startTime),d&&(p[r]={startTime:o,endTime:i}),e.options&&(a=t[r],s=e.options,c=e.errors,l=s.params||{},(u=z(a)).length&&u.forEach(function(t){l.hasOwnProperty(t)||c.push("Unable to resolve the local animation param "+t+" in the given list of values")}))}else e.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')})})},t.prototype.visitKeyframes=function(t,e){var n=this,r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],a=!1,s=!1,c=0,l=t.steps.map(function(t){var r=n._makeStyleAst(t,e),l=null!=r.offset?r.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(ot(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(ot(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(r.styles),u=0;return null!=l&&(i++,u=r.offset=l),s=s||u<0||u>1,a=a||u<c,c=u,o.push(u),r});s&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&e.errors.push("Please ensure that all keyframe offsets are in order");var u=t.steps.length,p=0;i>0&&i<u?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(p=1/(u-1));var h=u-1,d=e.currentTime,f=e.currentAnimateTimings,m=f.duration;return l.forEach(function(t,i){var a=p>0?i==h?1:p*i:o[i],s=a*m;e.currentTime=d+f.delay+s,f.duration=s,n._validateStyleAst(t,e),t.offset=a,r.styles.push(t)}),r},t.prototype.visitReference=function(t,e){return{type:8,animation:K(this,U(t.animation),e),options:at(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:at(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:at(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;var i=function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return t==tt});e&&(t=t.replace(et,""));return[t=t.replace(/@\*/g,T).replace(/@\w+/g,function(t){return T+"-"+t.substr(1)}).replace(/:animating/g,I),e]}(t.selector),o=i[0],a=i[1];e.currentQuerySelector=n.length?n+" "+o:o,u(e.collectedStyles,e.currentQuerySelector,{});var s=K(this,U(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:t.selector,options:at(t.options)}},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:N(t.timings,e.errors,!0);return{type:12,animation:K(this,U(t.animation),e),timings:n,options:null}},t}();var it=function(){return function(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}();function ot(t){return!Array.isArray(t)&&"object"==typeof t}function at(t){var e;return t?(t=L(t)).params&&(t.params=(e=t.params)?L(e):null):t={},t}function st(t,e,n){return{duration:t,delay:e,easing:n}}function ct(t,e,n,r,i,o,a,s){return void 0===a&&(a=null),void 0===s&&(s=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:a,subTimeline:s}}var lt=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,e)},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),ut=new RegExp(":enter","g"),pt=new RegExp(":leave","g");function ht(t,e,n,r,i,o,a,s,c,l){return void 0===o&&(o={}),void 0===a&&(a={}),void 0===l&&(l=[]),(new dt).buildKeyframes(t,e,n,r,i,o,a,s,c,l)}var dt=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,r,i,o,a,s,c,l){void 0===l&&(l=[]),c=c||new lt;var u=new mt(t,e,c,r,i,l,[]);u.options=s,u.currentTimeline.setStyles([o],null,u.errors,s),K(this,n,u);var p=u.timelines.filter(function(t){return t.containsAnimation()});if(p.length&&Object.keys(a).length){var h=p[p.length-1];h.allowOnlyTimelineStyles()||h.setStyles([a],null,u.errors,s)}return p.length?p.map(function(t){return t.buildKeyframes()}):[ct(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var r=e.createSubContext(t.options),i=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var r=e.currentTimeline.currentTime,i=null!=n.duration?R(n.duration):null,o=null!=n.delay?R(n.delay):null;return 0!==i&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,i,o);r=Math.max(r,n.duration+n.delay)}),r},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),K(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,r=e.subContextCount,i=e,o=t.options;if(o&&(o.params||o.delay)&&((i=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ft);var a=R(o.delay);i.delayNextStep(a)}t.steps.length&&(t.steps.forEach(function(t){return K(n,t,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,r=[],i=e.currentTimeline.currentTime,o=t.options&&t.options.delay?R(t.options.delay):0;t.steps.forEach(function(a){var s=e.createSubContext(t.options);o&&s.delayNextStep(o),K(n,a,s),i=Math.max(i,s.currentTimeline.currentTime),r.push(s.currentTimeline)}),r.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(i),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return N(e.params?G(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());var i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,i=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(function(t){var n=t.offset||0;o.forwardTime(n*i),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+i),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,r=e.currentTimeline.currentTime,i=t.options||{},o=i.delay?R(i.delay):0;o&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ft);var a=r,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=s.length;var c=null;s.forEach(function(r,i){e.currentQueryIndex=i;var s=e.createSubContext(t.options,r);o&&s.delayNextStep(o),r===e.element&&(c=s.currentTimeline),K(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe();var l=s.currentTimeline.currentTime;a=Math.max(a,l)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,r=e.currentTimeline,i=t.timings,o=Math.abs(i.duration),a=o*(e.currentQueryTotal-1),s=o*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var c=e.currentTimeline;s&&c.delayNextStep(s);var l=c.currentTime;K(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-l+(r.startTime-n.currentTimeline.startTime)},t}(),ft={},mt=function(){function t(t,e,n,r,i,o,a,s){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ft,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new gt(this._driver,e,0),a.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var r=t,i=this.options;null!=r.duration&&(i.duration=R(r.duration)),null!=r.delay&&(i.delay=R(r.delay));var o=r.params;if(o){var a=i.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(t){e&&a.hasOwnProperty(t)||(a[t]=G(o[t],a,n.errors))})}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t},t.prototype.createSubContext=function(e,n,r){void 0===e&&(e=null);var i=n||this.element,o=new t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=ft,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new yt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,e,n,r,i,o){var a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(ut,"."+this._enterClassName)).replace(pt,"."+this._leaveClassName);var s=1!=n,c=this._driver.query(this.element,t,s);0!==n&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push.apply(a,c)}return i||0!=a.length||o.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),a},t}(),gt=function(){function t(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)},t.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var n=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){n._backFill[t]=n._globalTimelineStyles[t]||e.AUTO_STYLE,n._currentKeyframe[t]=e.AUTO_STYLE}),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,n,r,i){var o=this;n&&(this._previousKeyframe.easing=n);var a,s,c,l,u=i&&i.params||{},p=(a=t,s=this._globalTimelineStyles,l={},a.forEach(function(t){"*"===t?(c=c||Object.keys(s)).forEach(function(t){l[t]=e.AUTO_STYLE}):F(t,!1,l)}),l);Object.keys(p).forEach(function(t){var n=G(p[t],u,r);o._pendingStyles[t]=n,o._localTimelineStyles.hasOwnProperty(t)||(o._backFill[t]=o._globalTimelineStyles.hasOwnProperty(t)?o._globalTimelineStyles[t]:e.AUTO_STYLE),o._updateStyle(t,n)})},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){var r=e[n];t._currentKeyframe[n]=r}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var r=e._styleSummary[n],i=t._styleSummary[n];(!r||i.time>r.time)&&e._updateStyle(n,i.value)})},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var n=new Set,r=new Set,i=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(a,s){var c=F(a,!0);Object.keys(c).forEach(function(t){var i=c[t];i==e.ɵPRE_STYLE?n.add(t):i==e.AUTO_STYLE&&r.add(t)}),i||(c.offset=s/t.duration),o.push(c)});var a=n.size?W(n.values()):[],s=r.size?W(r.values()):[];if(i){var c=o[0],l=L(c);c.offset=0,l.offset=1,o=[c,l]}return ct(this.element,o,a,s,this.duration,this.startTime,this.easing,!1)},t}(),yt=function(t){function e(e,n,r,i,o,a,s){void 0===s&&(s=!1);var c=t.call(this,e,n,a.delay)||this;return c.element=n,c.keyframes=r,c.preStyleProps=i,c.postStyleProps=o,c._stretchStartingKeyframe=s,c.timings={duration:a.duration,delay:a.delay,easing:a.easing},c}return r(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,r=e.duration,i=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=r+n,s=n/a,c=F(t[0],!1);c.offset=0,o.push(c);var l=F(t[0],!1);l.offset=vt(s),o.push(l);for(var u=t.length-1,p=1;p<=u;p++){var h=F(t[p],!1),d=n+h.offset*r;h.offset=vt(d/a),o.push(h)}r=a,n=0,i="",t=o}return ct(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)},e}(gt);function vt(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}var bt,_t,wt=function(){function t(t,e){this._driver=t;var n=[],r=nt(t,e,n);if(n.length){var i="animation validation failed:\n"+n.join("\n");throw new Error(i)}this._animationAst=r}return t.prototype.buildTimelines=function(t,e,n,r,i){var o=Array.isArray(e)?j(e):e,a=Array.isArray(n)?j(n):n,s=[];i=i||new lt;var c=ht(this._driver,t,this._animationAst,O,P,o,a,r,i,s);if(s.length){var l="animation building failed:\n"+s.join("\n");throw new Error(l)}return c},t}(),Ct=function(){return function(){}}(),xt=function(){function t(){}return t.prototype.normalizePropertyName=function(t,e){return t},t.prototype.normalizeStyleValue=function(t,e,n,r){return n},t}(),Et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.normalizePropertyName=function(t,e){return Y(t)},e.prototype.normalizeStyleValue=function(t,e,n,r){var i="",o=n.toString().trim();if(St[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push("Please provide a CSS unit value for "+t+":"+n)}return o+i},e}(Ct),St=(bt="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),_t={},bt.forEach(function(t){return _t[t]=!0}),_t);function kt(t,e,n,r,i,o,a,s,c,l,u,p){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:a,timelines:s,queriedElements:c,preStyleProps:l,postStyleProps:u,errors:p}}var Ot={},Pt=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e){return n=this.ast.matchers,r=t,i=e,n.some(function(t){return t(r,i)});var n,r,i},t.prototype.buildStyles=function(t,e,n){var r=this._stateStyles["*"],i=this._stateStyles[t],o=r?r.buildStyles(e,n):{};return i?i.buildStyles(e,n):o},t.prototype.build=function(t,e,n,r,o,a,s,c,l){var p=[],h=this.ast.options&&this.ast.options.params||Ot,d=s&&s.params||Ot,f=this.buildStyles(n,d,p),m=c&&c.params||Ot,g=this.buildStyles(r,m,p),y=new Set,v=new Map,b=new Map,_="void"===r,w={params:i({},h,m)},C=ht(t,e,this.ast.animation,o,a,f,g,w,l,p);if(p.length)return kt(e,this._triggerName,n,r,_,f,g,[],[],v,b,p);C.forEach(function(t){var n=t.element,r=u(v,n,{});t.preStyleProps.forEach(function(t){return r[t]=!0});var i=u(b,n,{});t.postStyleProps.forEach(function(t){return i[t]=!0}),n!==e&&y.add(n)});var x=W(y.values());return kt(e,this._triggerName,n,r,_,f,g,C,x,v,b)},t}();var At=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},r=L(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var i=t;Object.keys(i).forEach(function(t){var o=i[t];o.length>1&&(o=G(o,r,e)),n[t]=o})}}),n},t}();var Tt=function(){function t(t,e){var n,r,i=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(function(t){var e=t.options&&t.options.params||{};i.states[t.name]=new At(t.style,e)}),Mt(this.states,"true","1"),Mt(this.states,"false","0"),e.transitions.forEach(function(e){i.transitionFactories.push(new Pt(t,e,i.states))}),this.fallbackTransition=(n=t,r=this.states,new Pt(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},r))}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,e){return this.transitionFactories.find(function(n){return n.match(t,e)})||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}();function Mt(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var It=new lt,Rt=function(){function t(t,e){this._driver=t,this._normalizer=e,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],r=nt(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r},t.prototype._buildPlayer=function(t,e,n){var r=t.element,i=a(this._driver,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,i,t.duration,t.delay,t.easing,[])},t.prototype.create=function(t,n,r){var i=this;void 0===r&&(r={});var a,s=[],c=this._animations[t],l=new Map;if(c?(a=ht(this._driver,n,c,O,P,{},{},r,It,s)).forEach(function(t){var e=u(l,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(s.push("The requested animation doesn't exist or has already been destroyed"),a=[]),s.length)throw new Error("Unable to create the animation due to the following errors: "+s.join("\n"));l.forEach(function(t,n){Object.keys(t).forEach(function(r){t[r]=i._driver.computeStyle(n,r,e.AUTO_STYLE)})});var p=o(a.map(function(t){var e=l.get(t.element);return i._buildPlayer(t,{},e)}));return this._playersById[t]=p,p.onDestroy(function(){return i.destroy(t)}),this.players.push(p),p},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,r){var i=l(e,"","","");return s(this._getPlayer(t),n,i,r),function(){}},t.prototype.command=function(t,e,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(t);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}else{var o=r[0]||{};this.create(t,e,o)}else this.register(t,r[0])},t}(),Dt="ng-animate-queued",Nt="ng-animate-disabled",Lt=".ng-animate-disabled",jt=[],Ft={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!1},Vt={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!0},Bt="__ng_removed",Ut=function(){function t(t,e){void 0===e&&(e=""),this.namespaceId=e;var n,r=t&&t.hasOwnProperty("value"),i=r?t.value:t;if(this.value=null!=(n=i)?n:null,r){var o=L(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.absorbOptions=function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}},t}(),Ht="void",zt=new Ut(Ht),Gt=new Ut("DELETED"),Wt=function(){function t(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Jt(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var a=u(this._elementListeners,t,[]),s={name:e,phase:n,callback:r};a.push(s);var c=u(this._engine.statesByElement,t,{});return c.hasOwnProperty(e)||(Jt(t,A),Jt(t,A+"-"+e),c[e]=zt),function(){o._engine.afterFlush(function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),o._triggers[e]||delete c[e]})}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,r){var i=this;void 0===r&&(r=!0);var o=this._getTrigger(e),a=new Yt(this.id,e,t),s=this._engine.statesByElement.get(t);s||(Jt(t,A),Jt(t,A+"-"+e),this._engine.statesByElement.set(t,s={}));var c=s[e],l=new Ut(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),s[e]=l,c){if(c===Gt)return a}else c=zt;if(l.value===Ht||c.value!==l.value){var p=u(this._engine.playersByElement,t,[]);p.forEach(function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()});var h=o.matchTransition(c.value,l.value),d=!1;if(!h){if(!r)return;h=o.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:c,toState:l,player:a,isFallbackTransition:d}),d||(Jt(t,Dt),a.onStart(function(){te(t,Dt)})),a.onDone(function(){var e=i.players.indexOf(a);e>=0&&i.players.splice(e,1);var n=i._engine.playersByElement.get(t);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),p.push(a),a}if(!function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(!e.hasOwnProperty(o)||t[o]!==e[o])return!1}return!0}(c.params,l.params)){var f=[],m=o.matchStyles(c.value,c.params,f),g=o.matchStyles(l.value,l.params,f);f.length?this._engine.reportError(f):this._engine.afterFlush(function(){B(t,m),V(t,g)})}},t.prototype.deregister=function(t){var e=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(e,n){delete e[t]}),this._elementListeners.forEach(function(n,r){e._elementListeners.set(r,n.filter(function(e){return e.name!=t}))})},t.prototype.clearElementCache=function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var e=this._engine.playersByElement.get(t);e&&(e.forEach(function(t){return t.destroy()}),this._engine.playersByElement.delete(t))},t.prototype._signalRemovalForInnerTriggers=function(t,e,n){var r=this;void 0===n&&(n=!1),this._engine.driver.query(t,T,!0).forEach(function(t){if(!t[Bt]){var n=r._engine.fetchNamespacesByElement(t);n.size?n.forEach(function(n){return n.triggerLeaveAnimation(t,e,!1,!0)}):r.clearElementCache(t)}})},t.prototype.triggerLeaveAnimation=function(t,e,n,r){var i=this,a=this._engine.statesByElement.get(t);if(a){var s=[];if(Object.keys(a).forEach(function(e){if(i._triggers[e]){var n=i.trigger(t,e,Ht,r);n&&s.push(n)}}),s.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&o(s).onDone(function(){return i._engine.processLeaveNode(t)}),!0}return!1},t.prototype.prepareLeaveAnimationListeners=function(t){var e=this,n=this._elementListeners.get(t);if(n){var r=new Set;n.forEach(function(n){var i=n.name;if(!r.has(i)){r.add(i);var o=e._triggers[i].fallbackTransition,a=e._engine.statesByElement.get(t)[i]||zt,s=new Ut(Ht),c=new Yt(e.id,i,t);e._engine.totalQueuedPlayers++,e._queue.push({element:t,triggerName:i,transition:o,fromState:a,toState:s,player:c,isFallbackTransition:!0})}})}},t.prototype.removeNode=function(t,e){var n=this,r=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e,!0),!this.triggerLeaveAnimation(t,e,!0)){var i=!1;if(r.totalAnimations){var o=r.players.length?r.playersByQueriedElement.get(t):[];if(o&&o.length)i=!0;else for(var a=t;a=a.parentNode;){if(r.statesByElement.get(a)){i=!0;break}}}this.prepareLeaveAnimationListeners(t),i?r.markElementAsRemoved(this.id,t,!1,e):(r.afterFlush(function(){return n.clearElementCache(t)}),r.destroyInnerAnimations(t),r._onRemovalComplete(t,e))}},t.prototype.insertNode=function(t,e){Jt(t,this._hostClassName)},t.prototype.drainQueuedTransitions=function(t){var e=this,n=[];return this._queue.forEach(function(r){var i=r.player;if(!i.destroyed){var o=r.element,a=e._elementListeners.get(o);a&&a.forEach(function(e){if(e.name==r.triggerName){var n=l(o,r.triggerName,r.fromState.value,r.toState.value);n._data=t,s(r.player,e.phase,n,e.callback)}}),i.markedForDestroy?e._engine.afterFlush(function(){i.destroy()}):n.push(r)}}),this._queue=[],n.sort(function(t,n){var r=t.transition.ast.depCount,i=n.transition.ast.depCount;return 0==r||0==i?r-i:e._engine.driver.containsElement(t.element,n.element)?1:-1})},t.prototype.destroy=function(t){this.players.forEach(function(t){return t.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)},t.prototype.elementContainsData=function(t){var e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(function(e){return e.element===t})||e},t}(),qt=function(){function t(t,e){this.driver=t,this._normalizer=e,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(t,e){}}return t.prototype._onRemovalComplete=function(t,e){this.onRemovalComplete(t,e)},Object.defineProperty(t.prototype,"queuedPlayers",{get:function(){var t=[];return this._namespaceList.forEach(function(e){e.players.forEach(function(e){e.queued&&t.push(e)})}),t},enumerable:!0,configurable:!0}),t.prototype.createNamespace=function(t,e){var n=new Wt(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n},t.prototype._balanceNamespaceList=function(t,e){var n=this._namespaceList.length-1;if(n>=0){for(var r=!1,i=n;i>=0;i--){var o=this._namespaceList[i];if(this.driver.containsElement(o.hostElement,e)){this._namespaceList.splice(i+1,0,t),r=!0;break}}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var r=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(r);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(e)})}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.fetchNamespacesByElement=function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var r=Object.keys(n),i=0;i<r.length;i++){var o=n[r[i]].namespaceId;if(o){var a=this._fetchNamespace(o);a&&e.add(a)}}return e},t.prototype.trigger=function(t,e,n,r){return!!Kt(e)&&(this._fetchNamespace(t).trigger(e,n,r),!0)},t.prototype.insertNode=function(t,e,n,r){if(Kt(e)){var i=e[Bt];i&&i.setForRemoval&&(i.setForRemoval=!1),t&&this._fetchNamespace(t).insertNode(e,n),r&&this.collectEnterElement(e)}},t.prototype.collectEnterElement=function(t){this.collectedEnterElements.push(t)},t.prototype.markElementAsDisabled=function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Jt(t,Nt)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),te(t,Nt))},t.prototype.removeNode=function(t,e,n){if(Kt(e)){var r=t?this._fetchNamespace(t):null;r?r.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n)}else this._onRemovalComplete(e,n)},t.prototype.markElementAsRemoved=function(t,e,n,r){this.collectedLeaveElements.push(e),e[Bt]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},t.prototype.listen=function(t,e,n,r,i){return Kt(e)?this._fetchNamespace(t).listen(e,n,r,i):function(){}},t.prototype._buildInstruction=function(t,e,n,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e)},t.prototype.destroyInnerAnimations=function(t){var e=this,n=this.driver.query(t,T,!0);n.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,I,!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})},t.prototype.destroyActiveAnimationsForElement=function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()});var n=this.statesByElement.get(t);n&&Object.keys(n).forEach(function(t){return n[t]=Gt})},t.prototype.finishActiveQueriedAnimationOnElement=function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})},t.prototype.whenRenderingDone=function(){var t=this;return new Promise(function(e){if(t.players.length)return o(t.players).onDone(function(){return e()});e()})},t.prototype.processLeaveNode=function(t){var e=this,n=t[Bt];if(n&&n.setForRemoval){if(t[Bt]=Ft,n.namespaceId){this.destroyInnerAnimations(t);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,Lt)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Lt,!0).forEach(function(n){e.markElementAsDisabled(t,!1)})},t.prototype.flush=function(t){var e=this;void 0===t&&(t=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r<this.collectedEnterElements.length;r++){Jt(this.collectedEnterElements[r],"ng-star-inserted")}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var i=[];try{n=this._flushAnimations(i,t)}finally{for(r=0;r<i.length;r++)i[r]()}}else for(r=0;r<this.collectedLeaveElements.length;r++){var a=this.collectedLeaveElements[r];this.processLeaveNode(a)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(t){return t()}),this._flushFns=[],this._whenQuietFns.length){var s=this._whenQuietFns;this._whenQuietFns=[],n.length?o(n).onDone(function(){s.forEach(function(t){return t()})}):s.forEach(function(t){return t()})}},t.prototype.reportError=function(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))},t.prototype._flushAnimations=function(t,n){var r=this,a=new lt,s=[],c=new Map,l=[],p=new Map,h=new Map,d=new Map,f=new Set;this.disabledNodes.forEach(function(t){f.add(t);for(var e=r.driver.query(t,".ng-animate-queued",!0),n=0;n<e.length;n++)f.add(e[n])});var m=_(),g=Array.from(this.statesByElement.keys()),y=Qt(g,this.collectedEnterElements),v=new Map,b=0;y.forEach(function(t,e){var n=O+b++;v.set(e,n),t.forEach(function(t){return Jt(t,n)})});for(var w=[],C=new Set,x=new Set,E=0;E<this.collectedLeaveElements.length;E++){(q=(W=this.collectedLeaveElements[E])[Bt])&&q.setForRemoval&&(w.push(W),C.add(W),q.hasAnimation?this.driver.query(W,".ng-star-inserted",!0).forEach(function(t){return C.add(t)}):x.add(W))}var S=new Map,k=Qt(g,Array.from(C));k.forEach(function(t,e){var n=P+b++;S.set(e,n),t.forEach(function(t){return Jt(t,n)})}),t.push(function(){y.forEach(function(t,e){var n=v.get(e);t.forEach(function(t){return te(t,n)})}),k.forEach(function(t,e){var n=S.get(e);t.forEach(function(t){return te(t,n)})}),w.forEach(function(t){r.processLeaveNode(t)})});for(var A=[],T=[],M=this._namespaceList.length-1;M>=0;M--){this._namespaceList[M].drainQueuedTransitions(n).forEach(function(t){var e=t.player;A.push(e);var n=t.element;if(m&&r.driver.containsElement(m,n)){var i=S.get(n),o=v.get(n),c=r._buildInstruction(t,a,o,i);if(c.errors&&c.errors.length)T.push(c);else{if(t.isFallbackTransition)return e.onStart(function(){return B(n,c.fromStyles)}),e.onDestroy(function(){return V(n,c.toStyles)}),void s.push(e);c.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),a.append(n,c.timelines);var f={instruction:c,player:e,element:n};l.push(f),c.queriedElements.forEach(function(t){return u(p,t,[]).push(e)}),c.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var r=h.get(e);r||h.set(e,r=new Set),n.forEach(function(t){return r.add(t)})}}),c.postStyleProps.forEach(function(t,e){var n=Object.keys(t),r=d.get(e);r||d.set(e,r=new Set),n.forEach(function(t){return r.add(t)})})}}else e.destroy()})}if(T.length){var R=[];T.forEach(function(t){R.push("@"+t.triggerName+" has failed due to:\n"),t.errors.forEach(function(t){return R.push("- "+t+"\n")})}),A.forEach(function(t){return t.destroy()}),this.reportError(R)}var D=new Map,N=new Map;l.forEach(function(t){var e=t.element;a.has(e)&&(N.set(e,e),r._beforeAnimationBuild(t.player.namespaceId,t.instruction,D))}),s.forEach(function(t){var e=t.element;r._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){u(D,e,[]).push(t),t.destroy()})});var L=w.filter(function(t){return ne(t,h,d)}),j=new Map;Xt(j,this.driver,x,d,e.AUTO_STYLE).forEach(function(t){ne(t,h,d)&&L.push(t)});var F=new Map;y.forEach(function(t,n){Xt(F,r.driver,new Set(t),h,e.ɵPRE_STYLE)}),L.forEach(function(t){var e=j.get(t),n=F.get(t);j.set(t,i({},e,n))});var U=[],H=[],z={};l.forEach(function(t){var e=t.element,n=t.player,i=t.instruction;if(a.has(e)){if(f.has(e))return n.onDestroy(function(){return V(e,i.toStyles)}),void s.push(n);var l=z;if(N.size>1){for(var u=e,p=[];u=u.parentNode;){var h=N.get(u);if(h){l=h;break}p.push(u)}p.forEach(function(t){return N.set(t,l)})}var d=r._buildAnimation(n.namespaceId,i,D,c,F,j);if(n.setRealPlayer(d),l===z)U.push(n);else{var m=r.playersByElement.get(l);m&&m.length&&(n.parentPlayer=o(m)),s.push(n)}}else B(e,i.fromStyles),n.onDestroy(function(){return V(e,i.toStyles)}),H.push(n),f.has(e)&&s.push(n)}),H.forEach(function(t){var e=c.get(t.element);if(e&&e.length){var n=o(e);t.setRealPlayer(n)}}),s.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var G=0;G<w.length;G++){var W,q=(W=w[G])[Bt];if(te(W,P),!q||!q.hasAnimation){var Y=[];if(p.size){var K=p.get(W);K&&K.length&&Y.push.apply(Y,K);for(var $=this.driver.query(W,I,!0),X=0;X<$.length;X++){var Q=p.get($[X]);Q&&Q.length&&Y.push.apply(Y,Q)}}var Z=Y.filter(function(t){return!t.destroyed});Z.length?ee(this,W,Z):this.processLeaveNode(W)}}return w.length=0,U.forEach(function(t){r.players.push(t),t.onDone(function(){t.destroy();var e=r.players.indexOf(t);r.players.splice(e,1)}),t.play()}),U},t.prototype.elementContainsData=function(t,e){var n=!1,r=e[Bt];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n},t.prototype.afterFlush=function(t){this._flushFns.push(t)},t.prototype.afterFlushAnimationsDone=function(t){this._whenQuietFns.push(t)},t.prototype._getPreviousPlayers=function(t,e,n,r,i){var o=[];if(e){var a=this.playersByQueriedElement.get(t);a&&(o=a)}else{var s=this.playersByElement.get(t);if(s){var c=!i||i==Ht;s.forEach(function(t){t.queued||(c||t.triggerName==r)&&o.push(t)})}}return(n||r)&&(o=o.filter(function(t){return(!n||n==t.namespaceId)&&(!r||r==t.triggerName)})),o},t.prototype._beforeAnimationBuild=function(t,e,n){for(var r=e.triggerName,i=e.element,o=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:r,s=function(t){var r=t.element,s=r!==i,l=u(n,r,[]);c._getPreviousPlayers(r,s,o,a,e.toState).forEach(function(t){var e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})},c=this,l=0,p=e.timelines;l<p.length;l++){s(p[l])}B(i,e.fromStyles)},t.prototype._buildAnimation=function(t,n,r,i,s,c){var l=this,p=n.triggerName,h=n.element,d=[],f=new Set,m=new Set,g=n.timelines.map(function(n){var o=n.element;f.add(o);var u=o[Bt];if(u&&u.removedBeforeQueried)return new e.NoopAnimationPlayer;var g,y,v=o!==h,b=(g=(r.get(o)||jt).map(function(t){return t.getRealPlayer()}),y=[],function t(n,r){for(var i=0;i<n.length;i++){var o=n[i];o instanceof e.ɵAnimationGroupPlayer?t(o.players,r):r.push(o)}}(g,y),y).filter(function(t){var e=t;return!!e.element&&e.element===o}),_=s.get(o),w=c.get(o),C=a(l.driver,l._normalizer,0,n.keyframes,_,w),x=l._buildPlayer(n,C,b);if(n.subTimeline&&i&&m.add(o),v){var E=new Yt(t,p,o);E.setRealPlayer(x),d.push(E)}return x});d.forEach(function(t){u(l.playersByQueriedElement,t.element,[]).push(t),t.onDone(function(){return function(t,e,n){var r;if(t instanceof Map){if(r=t.get(e)){if(r.length){var i=r.indexOf(n);r.splice(i,1)}0==r.length&&t.delete(e)}}else if(r=t[e]){if(r.length){var i=r.indexOf(n);r.splice(i,1)}0==r.length&&delete t[e]}return r}(l.playersByQueriedElement,t.element,t)})}),f.forEach(function(t){return Jt(t,M)});var y=o(g);return y.onDestroy(function(){f.forEach(function(t){return te(t,M)}),V(h,n.toStyles)}),m.forEach(function(t){u(i,t,[]).push(y)}),y},t.prototype._buildPlayer=function(t,n,r){return n.length>0?this.driver.animate(t.element,n,t.duration,t.delay,t.easing,r):new e.NoopAnimationPlayer},t}(),Yt=function(){function t(t,n,r){this.namespaceId=t,this.triggerName=n,this.element=r,this._player=new e.NoopAnimationPlayer,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.queued=!0}return t.prototype.setRealPlayer=function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return s(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.queued=!1)},t.prototype.getRealPlayer=function(){return this._player},t.prototype.syncPlayerEvents=function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})},t.prototype._queueEvent=function(t,e){u(this._queuedCallbacks,t,[]).push(e)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._player.totalTime},enumerable:!0,configurable:!0}),t.prototype.triggerCallback=function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)},t}();function Kt(t){return t&&1===t.nodeType}function $t(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function Xt(t,e,n,r,i){var o=[];n.forEach(function(t){return o.push($t(t))});var a=[];r.forEach(function(n,r){var o={};n.forEach(function(t){var n=o[t]=e.computeStyle(r,t,i);n&&0!=n.length||(r[Bt]=Vt,a.push(r))}),t.set(r,o)});var s=0;return n.forEach(function(t){return $t(t,o[s++])}),a}function Qt(t,e){var n=new Map;if(t.forEach(function(t){return n.set(t,[])}),0==e.length)return n;var r=1,i=new Set(e),o=new Map;return e.forEach(function(t){var e=function t(e){if(!e)return r;var a=o.get(e);if(a)return a;var s=e.parentNode;return a=n.has(s)?s:i.has(s)?r:t(s),o.set(e,a),a}(t);e!==r&&n.get(e).push(t)}),n}var Zt="$$classes";function Jt(t,e){if(t.classList)t.classList.add(e);else{var n=t[Zt];n||(n=t[Zt]={}),n[e]=!0}}function te(t,e){if(t.classList)t.classList.remove(e);else{var n=t[Zt];n&&delete n[e]}}function ee(t,e,n){o(n).onDone(function(){return t.processLeaveNode(e)})}function ne(t,e,n){var r=n.get(t);if(!r)return!1;var i=e.get(t);return i?r.forEach(function(t){return i.add(t)}):e.set(t,r),n.delete(t),!0}var re=function(){function t(t,e){var n=this;this._driver=t,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new qt(t,e),this._timelineEngine=new Rt(t,e),this._transitionEngine.onRemovalComplete=function(t,e){return n.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,r,i){var o=t+"-"+r,a=this._triggerCache[o];if(!a){var s=[],c=nt(this._driver,i,s);if(s.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+s.join("\n - "));a=new Tt(r,c),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)},t.prototype.onRemove=function(t,e,n){this._transitionEngine.removeNode(t,e,n)},t.prototype.disableAnimations=function(t,e){this._transitionEngine.markElementAsDisabled(t,e)},t.prototype.process=function(t,e,n,r){if("@"==n.charAt(0)){var i=p(n),o=i[0],a=i[1],s=r;this._timelineEngine.command(o,e,a,s)}else this._transitionEngine.trigger(t,e,n,r)},t.prototype.listen=function(t,e,n,r,i){if("@"==n.charAt(0)){var o=p(n),a=o[0],s=o[1];return this._timelineEngine.listen(a,e,s,i)}return this._transitionEngine.listen(t,e,n,r,i)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}(),ie=function(){function t(t,e,n,r){void 0===r&&(r=[]);var i,o,a=this;this.element=t,this.keyframes=e,this.options=n,this.previousPlayers=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.previousStyles={},this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay,i=this._duration,o=this._delay,(0===i||0===o)&&r.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return a.previousStyles[t]=e[t]})})}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes.map(function(t){return F(t,!1)}),n=Object.keys(this.previousStyles);if(n.length&&e.length){var r=e[0],i=[];if(n.forEach(function(e){r.hasOwnProperty(e)||i.push(e),r[e]=t.previousStyles[e]}),i.length)for(var o=this,a=function(){var t=e[s];i.forEach(function(e){t[e]=oe(o.element,e)})},s=1;s<e.length;s++)a()}this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}},t.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},t.prototype._triggerWebAnimation=function(t,e,n){return t.animate(e,n)},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this.domPlayer.play()},t.prototype.pause=function(){this.init(),this.domPlayer.pause()},t.prototype.finish=function(){this.init(),this._onFinish(),this.domPlayer.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.setPosition=function(t){this.domPlayer.currentTime=t*this.time},t.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),t.prototype.beforeDestroy=function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:oe(t.element,n))}),this.currentSnapshot=e},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}();function oe(t,e){return window.getComputedStyle(t)[e]}var ae=function(){function t(){}return t.prototype.validateStyleProperty=function(t){return b(t)},t.prototype.matchesElement=function(t,e){return w(t,e)},t.prototype.containsElement=function(t,e){return C(t,e)},t.prototype.query=function(t,e,n){return x(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.animate=function(t,e,n,r,i,o){void 0===o&&(o=[]);var a={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(a.easing=i);var s=o.filter(function(t){return t instanceof ie});return new ie(t,e,a,s)},t}();t.AnimationDriver=S,t.ɵAnimation=wt,t.ɵAnimationStyleNormalizer=Ct,t.ɵNoopAnimationStyleNormalizer=xt,t.ɵWebAnimationsStyleNormalizer=Et,t.ɵNoopAnimationDriver=E,t.ɵAnimationEngine=re,t.ɵWebAnimationsDriver=ae,t.ɵsupportsWebAnimations=function(){return"undefined"!=typeof Element&&"function"==typeof Element.prototype.animate},t.ɵWebAnimationsPlayer=ie,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/animations")):i((r.ng=r.ng||{},r.ng.animations=r.ng.animations||{},r.ng.animations.browser={}),r.ng.animations)},{"@angular/animations":40}],40:[function(t,e,n){var r;r=this,function(t){"use strict";var e=function(){return function(){}}(),n=function(){return function(){}}();function r(t){Promise.resolve(null).then(t)}var i=function(){function t(){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=0}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.init=function(){},t.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},t.prototype.triggerMicrotask=function(){var t=this;r(function(){return t._onFinish()})},t.prototype._onStart=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){this._onFinish()},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){},t.prototype.setPosition=function(t){},t.prototype.getPosition=function(){return 0},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),o=function(){function t(t){var e=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var n=0,i=0,o=0,a=this.players.length;0==a?r(function(){return e._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++n==a&&e._onFinish()}),t.onDestroy(function(){++i==a&&e._onDestroy()}),t.onStart(function(){++o==a&&e._onStart()})}),this.totalTime=this.players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this.players.forEach(function(t){return t.init()})},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})},t.prototype.pause=function(){this.players.forEach(function(t){return t.pause()})},t.prototype.restart=function(){this.players.forEach(function(t){return t.restart()})},t.prototype.finish=function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})},t.prototype.destroy=function(){this._onDestroy()},t.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.setPosition=function(t){var e=t*this.totalTime;this.players.forEach(function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})},t.prototype.getPosition=function(){var t=0;return this.players.forEach(function(e){var n=e.getPosition();t=Math.min(n,t)}),t},t.prototype.beforeDestroy=function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}();t.AnimationBuilder=e,t.AnimationFactory=n,t.AUTO_STYLE="*",t.animate=function(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}},t.animateChild=function(t){return void 0===t&&(t=null),{type:9,options:t}},t.animation=function(t,e){return void 0===e&&(e=null),{type:8,animation:t,options:e}},t.group=function(t,e){return void 0===e&&(e=null),{type:3,steps:t,options:e}},t.keyframes=function(t){return{type:5,steps:t}},t.query=function(t,e,n){return void 0===n&&(n=null),{type:11,selector:t,animation:e,options:n}},t.sequence=function(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}},t.stagger=function(t,e){return{type:12,timings:t,animation:e}},t.state=function(t,e,n){return{type:0,name:t,styles:e,options:n}},t.style=function(t){return{type:6,styles:t,offset:null}},t.transition=function(t,e,n){return void 0===n&&(n=null),{type:1,expr:t,animation:e,options:n}},t.trigger=function(t,e){return{type:7,name:t,definitions:e,options:{}}},t.useAnimation=function(t,e){return void 0===e&&(e=null),{type:10,animation:t,options:e}},t.NoopAnimationPlayer=i,t.ɵAnimationGroupPlayer=o,t.ɵPRE_STYLE="!",Object.defineProperty(t,"__esModule",{value:!0})}("object"==typeof n&&void 0!==e?n:(r.ng=r.ng||{},r.ng.animations={}))},{}],41:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i,o,a,s,c,l,u,p,h,d){"use strict";var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function m(t,e){function n(){this.constructor=t}f(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var g=function(){function t(t){this._platform=t}return t.prototype.isDisabled=function(t){return t.hasAttribute("disabled")},t.prototype.isVisible=function(t){return!!((e=t).offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)&&"visible"===getComputedStyle(t).visibility;var e},t.prototype.isTabbable=function(t){if(!this._platform.isBrowser)return!1;var e,n=(e=t,e.ownerDocument.defaultView||window).frameElement;if(n){var r=n&&n.nodeName.toLowerCase();if(-1===v(n))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===r)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(n))return!1}var i,o,a,s=t.nodeName.toLowerCase(),c=v(t);if(t.hasAttribute("contenteditable"))return-1!==c;if("iframe"===s)return!1;if("audio"===s){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===s){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==s||!this._platform.BLINK&&!this._platform.WEBKIT)&&((!this._platform.WEBKIT||!this._platform.IOS||(o=(i=t).nodeName.toLowerCase(),"text"===(a="input"===o&&i.type)||"password"===a||"select"===o||"textarea"===o))&&t.tabIndex>=0)},t.prototype.isFocusable=function(t){return function(t){if(e=t,n=e,"input"==n.nodeName.toLowerCase()&&"hidden"==e.type)return!1;var e,n;return o=t,a=o.nodeName.toLowerCase(),"input"===a||"select"===a||"button"===a||"textarea"===a||(r=t,i=r,"a"==i.nodeName.toLowerCase()&&r.hasAttribute("href"))||t.hasAttribute("contenteditable")||y(t);var r,i;var o,a}(t)&&!this.isDisabled(t)&&this.isVisible(t)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:i.Platform}]},t}();function y(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function v(t){if(!y(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var b=function(){function t(t,e,n,r,i){void 0===i&&(i=!1),this._element=t,this._checker=e,this._ngZone=n,this._document=r,this._enabled=!0,i||this.attachAnchors()}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._startAnchor.tabIndex=this._endAnchor.tabIndex=this._enabled?0:-1)},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._startAnchor&&this._startAnchor.parentNode&&this._startAnchor.parentNode.removeChild(this._startAnchor),this._endAnchor&&this._endAnchor.parentNode&&this._endAnchor.parentNode.removeChild(this._endAnchor),this._startAnchor=this._endAnchor=null},t.prototype.attachAnchors=function(){var t=this;this._startAnchor||(this._startAnchor=this._createAnchor()),this._endAnchor||(this._endAnchor=this._createAnchor()),this._ngZone.runOutsideAngular(function(){t._startAnchor.addEventListener("focus",function(){t.focusLastTabbableElement()}),t._endAnchor.addEventListener("focus",function(){t.focusFirstTabbableElement()}),t._element.parentNode&&(t._element.parentNode.insertBefore(t._startAnchor,t._element),t._element.parentNode.insertBefore(t._endAnchor,t._element.nextSibling))})},t.prototype.focusInitialElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusInitialElement())})})},t.prototype.focusFirstTabbableElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusFirstTabbableElement())})})},t.prototype.focusLastTabbableElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusLastTabbableElement())})})},t.prototype._getRegionBoundary=function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-"+t+"], [cdkFocusRegion"+t+"], [cdk-focus-"+t+"]"),n=0;n<e.length;n++)e[n].hasAttribute("cdk-focus-"+t)?console.warn("Found use of deprecated attribute 'cdk-focus-"+t+"', use 'cdkFocusRegion"+t+"' instead.",e[n]):e[n].hasAttribute("cdk-focus-region-"+t)&&console.warn("Found use of deprecated attribute 'cdk-focus-region-"+t+"', use 'cdkFocusRegion"+t+"' instead.",e[n]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)},t.prototype.focusInitialElement=function(){var t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return this._element.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead.",this._element),t?(t.focus(),!0):this.focusFirstTabbableElement()},t.prototype.focusFirstTabbableElement=function(){var t=this._getRegionBoundary("start");return t&&t.focus(),!!t},t.prototype.focusLastTabbableElement=function(){var t=this._getRegionBoundary("end");return t&&t.focus(),!!t},t.prototype._getFirstTabbableElement=function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var e=t.children||t.childNodes,n=0;n<e.length;n++){var r=1===e[n].nodeType?this._getFirstTabbableElement(e[n]):null;if(r)return r}return null},t.prototype._getLastTabbableElement=function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var e=t.children||t.childNodes,n=e.length-1;n>=0;n--){var r=1===e[n].nodeType?this._getLastTabbableElement(e[n]):null;if(r)return r}return null},t.prototype._createAnchor=function(){var t=this._document.createElement("div");return t.tabIndex=this._enabled?0:-1,t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t},t.prototype._executeOnStable=function(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(r.take(1)).subscribe(t)},t}(),_=function(){function t(t,e,n){this._checker=t,this._ngZone=e,this._document=n}return t.prototype.create=function(t,e){return void 0===e&&(e=!1),new b(t,this._checker,this._ngZone,this._document,e)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:g},{type:e.NgZone},{type:void 0,decorators:[{type:e.Inject,args:[o.DOCUMENT]}]}]},t}(),w=function(){function t(t,e){this._elementRef=t,this._focusTrapFactory=e,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return Object.defineProperty(t.prototype,"disabled",{get:function(){return!this.focusTrap.enabled},set:function(t){this.focusTrap.enabled=!n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.focusTrap.destroy()},t.prototype.ngAfterContentInit=function(){this.focusTrap.attachAnchors()},t.decorators=[{type:e.Directive,args:[{selector:"cdk-focus-trap"}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:_}]},t.propDecorators={disabled:[{type:e.Input}]},t}(),C=function(){function t(t,e,n){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this._document=n,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this.focusTrap.enabled},set:function(t){this.focusTrap.enabled=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoCapture",{get:function(){return this._autoCapture},set:function(t){this._autoCapture=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)},t.prototype.ngAfterContentInit=function(){this.focusTrap.attachAnchors(),this.autoCapture&&(this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady())},t.decorators=[{type:e.Directive,args:[{selector:"[cdkTrapFocus]",exportAs:"cdkTrapFocus"}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:_},{type:void 0,decorators:[{type:e.Inject,args:[o.DOCUMENT]}]}]},t.propDecorators={enabled:[{type:e.Input,args:["cdkTrapFocus"]}],autoCapture:[{type:e.Input,args:["cdkTrapFocusAutoCapture"]}]},t}(),x=function(){function t(t){this._items=t,this._activeItemIndex=-1,this._wrap=!1,this._letterKeyStream=new a.Subject,this._typeaheadSubscription=s.Subscription.EMPTY,this._pressedLetters=[],this.tabOut=new a.Subject,this.change=new a.Subject}return t.prototype.withWrap=function(){return this._wrap=!0,this},t.prototype.withTypeAhead=function(t){var e=this;if(void 0===t&&(t=200),this._items.length&&this._items.some(function(t){return"function"!=typeof t.getLabel}))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(h.tap(function(t){return e._pressedLetters.push(t)}),l.debounceTime(t),u.filter(function(){return e._pressedLetters.length>0}),p.map(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._items.toArray(),r=1;r<n.length+1;r++){var i=(e._activeItemIndex+r)%n.length,o=n[i];if(!o.disabled&&0===o.getLabel().toUpperCase().trim().indexOf(t)){e.setActiveItem(i);break}}e._pressedLetters=[]}),this},t.prototype.setActiveItem=function(t){var e=this._activeItemIndex;this._activeItemIndex=t,this._activeItem=this._items.toArray()[t],this._activeItemIndex!==e&&this.change.next(t)},t.prototype.onKeydown=function(t){switch(t.keyCode){case c.DOWN_ARROW:this.setNextItemActive();break;case c.UP_ARROW:this.setPreviousItemActive();break;case c.TAB:return void this.tabOut.next();default:var e=t.keyCode;return void(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=c.A&&e<=c.Z||e>=c.ZERO&&e<=c.NINE)&&this._letterKeyStream.next(String.fromCharCode(e)))}this._pressedLetters=[],t.preventDefault()},Object.defineProperty(t.prototype,"activeItemIndex",{get:function(){return this._activeItemIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeItem",{get:function(){return this._activeItem},enumerable:!0,configurable:!0}),t.prototype.setFirstItemActive=function(){this._setActiveItemByIndex(0,1)},t.prototype.setLastItemActive=function(){this._setActiveItemByIndex(this._items.length-1,-1)},t.prototype.setNextItemActive=function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)},t.prototype.setPreviousItemActive=function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)},t.prototype.updateActiveItemIndex=function(t){this._activeItemIndex=t},t.prototype._setActiveItemByDelta=function(t,e){void 0===e&&(e=this._items.toArray()),this._wrap?this._setActiveInWrapMode(t,e):this._setActiveInDefaultMode(t,e)},t.prototype._setActiveInWrapMode=function(t,e){this._activeItemIndex=(this._activeItemIndex+t+e.length)%e.length,e[this._activeItemIndex].disabled?this._setActiveInWrapMode(t,e):this.setActiveItem(this._activeItemIndex)},t.prototype._setActiveInDefaultMode=function(t,e){this._setActiveItemByIndex(this._activeItemIndex+t,t,e)},t.prototype._setActiveItemByIndex=function(t,e,n){if(void 0===n&&(n=this._items.toArray()),n[t]){for(;n[t].disabled;)if(!n[t+=e])return;this.setActiveItem(t)}},t}(),E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.setActiveItem=function(e){this.activeItem&&this.activeItem.setInactiveStyles(),t.prototype.setActiveItem.call(this,e),this.activeItem&&this.activeItem.setActiveStyles()},e}(x),S=" ";function k(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var O="cdk-describedby-message-container",P="cdk-describedby-message",A="cdk-describedby-host",T=0,M=new Map,I=null,R=function(){function t(t){this._document=t}return t.prototype.describe=function(t,e){e.trim()&&(M.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))},t.prototype.removeDescription=function(t,e){if(e.trim()){this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e);var n=M.get(e);n&&0===n.referenceCount&&this._deleteMessageElement(e),I&&0===I.childNodes.length&&this._deleteMessagesContainer()}},t.prototype.ngOnDestroy=function(){for(var t=this._document.querySelectorAll("["+A+"]"),e=0;e<t.length;e++)this._removeCdkDescribedByReferenceIds(t[e]),t[e].removeAttribute(A);I&&this._deleteMessagesContainer(),M.clear()},t.prototype._createMessageElement=function(t){var e=this._document.createElement("div");e.setAttribute("id",P+"-"+T++),e.appendChild(this._document.createTextNode(t)),I||this._createMessagesContainer(),I.appendChild(e),M.set(t,{messageElement:e,referenceCount:0})},t.prototype._deleteMessageElement=function(t){var e=M.get(t),n=e&&e.messageElement;I&&n&&I.removeChild(n),M.delete(t)},t.prototype._createMessagesContainer=function(){(I=this._document.createElement("div")).setAttribute("id",O),I.setAttribute("aria-hidden","true"),I.style.display="none",this._document.body.appendChild(I)},t.prototype._deleteMessagesContainer=function(){I&&I.parentNode&&(I.parentNode.removeChild(I),I=null)},t.prototype._removeCdkDescribedByReferenceIds=function(t){var e=k(t,"aria-describedby").filter(function(t){return 0!=t.indexOf(P)});t.setAttribute("aria-describedby",e.join(" "))},t.prototype._addMessageReference=function(t,e){var n,r,i,o,a=M.get(e);n=t,r="aria-describedby",i=a.messageElement.id,(o=k(n,r)).some(function(t){return t.trim()==i.trim()})||(o.push(i.trim()),n.setAttribute(r,o.join(S))),t.setAttribute(A,""),a.referenceCount++},t.prototype._removeMessageReference=function(t,e){var n,r,i,o,a=M.get(e);a.referenceCount--,n=t,r="aria-describedby",i=a.messageElement.id,o=k(n,r).filter(function(t){return t!=i.trim()}),n.setAttribute(r,o.join(S)),t.removeAttribute(A)},t.prototype._isElementDescribedByMessage=function(t,e){var n=k(t,"aria-describedby"),r=M.get(e),i=r&&r.messageElement.id;return!!i&&-1!=n.indexOf(i)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[o.DOCUMENT]}]}]},t}();function D(t,e){return t||new R(e)}var N={provide:R,deps:[[new e.Optional,new e.SkipSelf,R],o.DOCUMENT],useFactory:D};var L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.setActiveItem=function(e){t.prototype.setActiveItem.call(this,e),this.activeItem&&this.activeItem.focus()},e}(x),j=new e.InjectionToken("liveAnnouncerElement"),F=function(){function t(t,e){this._document=e,this._liveElement=t||this._createLiveElement()}return t.prototype.announce=function(t,e){var n=this;void 0===e&&(e="polite"),this._liveElement.textContent="",this._liveElement.setAttribute("aria-live",e),setTimeout(function(){return n._liveElement.textContent=t},100)},t.prototype.ngOnDestroy=function(){this._liveElement&&this._liveElement.parentNode&&this._liveElement.parentNode.removeChild(this._liveElement)},t.prototype._createLiveElement=function(){var t=this._document.createElement("div");return t.classList.add("cdk-visually-hidden"),t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),t},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[j]}]},{type:void 0,decorators:[{type:e.Inject,args:[o.DOCUMENT]}]}]},t}();function V(t,e,n){return t||new F(e,n)}var B={provide:F,deps:[[new e.Optional,new e.SkipSelf,F],[new e.Optional,new e.Inject(j)],o.DOCUMENT],useFactory:V},U=function(){function t(t,e){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new WeakMap,this._unregisterGlobalListeners=function(){},this._monitoredElementCount=0}return t.prototype.monitor=function(t,n,r){var i=this;if(n instanceof e.Renderer2||(r=n),r=!!r,!this._platform.isBrowser)return d.of(null);if(this._elementInfo.has(t)){var o=this._elementInfo.get(t);return o.checkChildren=r,o.subject.asObservable()}var s={unlisten:function(){},checkChildren:r,subject:new a.Subject};this._elementInfo.set(t,s),this._incrementMonitoredElementCount();var c=function(e){return i._onFocus(e,t)},l=function(e){return i._onBlur(e,t)};return this._ngZone.runOutsideAngular(function(){t.addEventListener("focus",c,!0),t.addEventListener("blur",l,!0)}),s.unlisten=function(){t.removeEventListener("focus",c,!0),t.removeEventListener("blur",l,!0)},s.subject.asObservable()},t.prototype.stopMonitoring=function(t){var e=this._elementInfo.get(t);e&&(e.unlisten(),e.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._decrementMonitoredElementCount())},t.prototype.focusVia=function(t,e){this._setOriginForCurrentEventQueue(e),t.focus()},t.prototype._registerGlobalListeners=function(){var t=this;if(this._platform.isBrowser){var e=function(){t._lastTouchTarget=null,t._setOriginForCurrentEventQueue("keyboard")},n=function(){t._lastTouchTarget||t._setOriginForCurrentEventQueue("mouse")},r=function(e){null!=t._touchTimeout&&clearTimeout(t._touchTimeout),t._lastTouchTarget=e.target,t._touchTimeout=setTimeout(function(){return t._lastTouchTarget=null},650)},o=function(){t._windowFocused=!0,setTimeout(function(){return t._windowFocused=!1},0)};this._ngZone.runOutsideAngular(function(){document.addEventListener("keydown",e,!0),document.addEventListener("mousedown",n,!0),document.addEventListener("touchstart",r,!i.supportsPassiveEventListeners()||{passive:!0,capture:!0}),window.addEventListener("focus",o)}),this._unregisterGlobalListeners=function(){document.removeEventListener("keydown",e,!0),document.removeEventListener("mousedown",n,!0),document.removeEventListener("touchstart",r,!i.supportsPassiveEventListeners()||{passive:!0,capture:!0}),window.removeEventListener("focus",o)}}},t.prototype._toggleClass=function(t,e,n){n?t.classList.add(e):t.classList.remove(e)},t.prototype._setClasses=function(t,e){this._elementInfo.get(t)&&(this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e))},t.prototype._setOriginForCurrentEventQueue=function(t){var e=this;this._origin=t,setTimeout(function(){return e._origin=null},0)},t.prototype._wasCausedByTouch=function(t){var e=t.target;return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))},t.prototype._onFocus=function(t,e){var n=this._elementInfo.get(e);n&&(n.checkChildren||e===t.target)&&(this._origin||(this._windowFocused&&this._lastFocusOrigin?this._origin=this._lastFocusOrigin:this._wasCausedByTouch(t)?this._origin="touch":this._origin="program"),this._setClasses(e,this._origin),n.subject.next(this._origin),this._lastFocusOrigin=this._origin,this._origin=null)},t.prototype._onBlur=function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),n.subject.next(null))},t.prototype._incrementMonitoredElementCount=function(){1==++this._monitoredElementCount&&this._registerGlobalListeners()},t.prototype._decrementMonitoredElementCount=function(){--this._monitoredElementCount||(this._unregisterGlobalListeners(),this._unregisterGlobalListeners=function(){})},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:e.NgZone},{type:i.Platform}]},t}(),H=function(){function t(t,n){var r=this;this._elementRef=t,this._focusMonitor=n,this.cdkFocusChange=new e.EventEmitter,this._monitorSubscription=this._focusMonitor.monitor(this._elementRef.nativeElement,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(t){return r.cdkFocusChange.emit(t)})}return t.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef.nativeElement),this._monitorSubscription.unsubscribe()},t.decorators=[{type:e.Directive,args:[{selector:"[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]"}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:U}]},t.propDecorators={cdkFocusChange:[{type:e.Output}]},t}();function z(t,e,n){return t||new U(e,n)}var G={provide:U,deps:[[new e.Optional,new e.SkipSelf,U],e.NgZone,i.Platform],useFactory:z},W=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[o.CommonModule,i.PlatformModule],declarations:[C,w,H],exports:[C,w,H],providers:[g,_,R,B,N,G]}]}],t.ctorParameters=function(){return[]},t}();t.FocusTrapDirective=C,t.ActiveDescendantKeyManager=E,t.MESSAGES_CONTAINER_ID=O,t.CDK_DESCRIBEDBY_ID_PREFIX=P,t.CDK_DESCRIBEDBY_HOST_ATTRIBUTE=A,t.AriaDescriber=R,t.ARIA_DESCRIBER_PROVIDER_FACTORY=D,t.ARIA_DESCRIBER_PROVIDER=N,t.isFakeMousedownFromScreenReader=function(t){return 0===t.buttons},t.FocusKeyManager=L,t.FocusTrap=b,t.FocusTrapFactory=_,t.FocusTrapDeprecatedDirective=w,t.CdkTrapFocus=C,t.InteractivityChecker=g,t.ListKeyManager=x,t.LIVE_ANNOUNCER_ELEMENT_TOKEN=j,t.LiveAnnouncer=F,t.LIVE_ANNOUNCER_PROVIDER_FACTORY=V,t.LIVE_ANNOUNCER_PROVIDER=B,t.TOUCH_BUFFER_MS=650,t.FocusMonitor=U,t.CdkMonitorFocus=H,t.FOCUS_MONITOR_PROVIDER_FACTORY=z,t.FOCUS_MONITOR_PROVIDER=G,t.A11yModule=W,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("@angular/cdk/coercion"),t("rxjs/operators/take"),t("@angular/cdk/platform"),t("@angular/common"),t("rxjs/Subject"),t("rxjs/Subscription"),t("@angular/cdk/keycodes"),t("rxjs/operators/debounceTime"),t("rxjs/operators/filter"),t("rxjs/operators/map"),t("rxjs/operators/tap"),t("rxjs/observable/of")):i((r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{},r.ng.cdk.a11y=r.ng.cdk.a11y||{}),r.ng.core,r.ng.cdk.coercion,r.Rx.operators,r.ng.cdk.platform,r.ng.common,r.Rx,r.Rx,r.ng.cdk.keycodes,r.Rx.operators,r.Rx.operators,r.Rx.operators,r.Rx.operators,r.Rx.Observable)},{"@angular/cdk/coercion":44,"@angular/cdk/keycodes":46,"@angular/cdk/platform":50,"@angular/common":56,"@angular/core":58,"rxjs/Subject":72,"rxjs/Subscription":75,"rxjs/observable/of":100,"rxjs/operators/debounceTime":121,"rxjs/operators/filter":125,"rxjs/operators/map":129,"rxjs/operators/take":140,"rxjs/operators/tap":143}],42:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r){"use strict";var i=0,o=function(){function t(){this.id="cdk-accordion-"+i++,this._multi=!1}return Object.defineProperty(t.prototype,"multi",{get:function(){return this._multi},set:function(t){this._multi=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.decorators=[{type:e.Directive,args:[{selector:"cdk-accordion, [cdkAccordion]",exportAs:"cdkAccordion"}]}],t.ctorParameters=function(){return[]},t.propDecorators={multi:[{type:e.Input}]},t}(),a=0,s=function(){function t(t,n,r){var i=this;this.accordion=t,this._changeDetectorRef=n,this._expansionDispatcher=r,this.closed=new e.EventEmitter,this.opened=new e.EventEmitter,this.destroyed=new e.EventEmitter,this.id="cdk-accordion-child-"+a++,this._expanded=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=r.listen(function(t,e){i.accordion&&!i.accordion.multi&&i.accordion.id===e&&i.id!==t&&(i.expanded=!1)})}return Object.defineProperty(t.prototype,"expanded",{get:function(){return this._expanded},set:function(t){if(t=r.coerceBooleanProperty(t),this._expanded!==t){if(this._expanded=t,t){this.opened.emit();var e=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,e)}else this.closed.emit();this._changeDetectorRef.markForCheck()}},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.destroyed.emit(),this._removeUniqueSelectionListener()},t.prototype.toggle=function(){this.expanded=!this.expanded},t.prototype.close=function(){this.expanded=!1},t.prototype.open=function(){this.expanded=!0},t.decorators=[{type:e.Directive,args:[{selector:"cdk-accordion-item",exportAs:"cdkAccordionItem"}]}],t.ctorParameters=function(){return[{type:o,decorators:[{type:e.Optional}]},{type:e.ChangeDetectorRef},{type:n.UniqueSelectionDispatcher}]},t.propDecorators={closed:[{type:e.Output}],opened:[{type:e.Output}],destroyed:[{type:e.Output}],expanded:[{type:e.Input}]},t}(),c=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{exports:[o,s],declarations:[o,s],providers:[n.UNIQUE_SELECTION_DISPATCHER_PROVIDER]}]}],t.ctorParameters=function(){return[]},t}();t.CdkAccordionItem=s,t.CdkAccordion=o,t.CdkAccordionModule=c,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("@angular/cdk/collections"),t("@angular/cdk/coercion")):i((r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{},r.ng.cdk.accordion=r.ng.cdk.accordion||{}),r.ng.core,r.ng.cdk.collections,r.ng.cdk.coercion)},{"@angular/cdk/coercion":44,"@angular/cdk/collections":45,"@angular/core":58}],43:[function(t,e,n){var r,i;r=this,i=function(t,e,n){"use strict";var r=new e.InjectionToken("cdk-dir-doc"),i=function(){function t(t){if(this.value="ltr",this.change=new e.EventEmitter,t){var n=t.body?t.body.dir:null,r=t.documentElement?t.documentElement.dir:null;this.value=n||r||"ltr"}}return t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[r]}]}]},t}(),o=function(){function t(){this._dir="ltr",this._isInitialized=!1,this.change=new e.EventEmitter}return Object.defineProperty(t.prototype,"dir",{get:function(){return this._dir},set:function(t){var e=this._dir;this._dir=t,e!==this._dir&&this._isInitialized&&this.change.emit(this._dir)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.dir},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._isInitialized=!0},t.prototype.ngOnDestroy=function(){this.change.complete()},t.decorators=[{type:e.Directive,args:[{selector:"[dir]",providers:[{provide:i,useExisting:t}],host:{"[dir]":"dir"},exportAs:"dir"}]}],t.ctorParameters=function(){return[]},t.propDecorators={change:[{type:e.Output,args:["dirChange"]}],dir:[{type:e.Input,args:["dir"]}]},t}(),a=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{exports:[o],declarations:[o],providers:[{provide:r,useExisting:n.DOCUMENT},i]}]}],t.ctorParameters=function(){return[]},t}();t.Directionality=i,t.DIR_DOCUMENT=r,t.Dir=o,t.BidiModule=a,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("@angular/common")):i((r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{},r.ng.cdk.bidi=r.ng.cdk.bidi||{}),r.ng.core,r.ng.common)},{"@angular/common":56,"@angular/core":58}],44:[function(t,e,n){var r;r=this,function(t){"use strict";t.coerceBooleanProperty=function(t){return null!=t&&""+t!="false"},t.coerceNumberProperty=function(t,e){return void 0===e&&(e=0),isNaN(parseFloat(t))||isNaN(Number(t))?e:Number(t)},t.coerceArray=function(t){return Array.isArray(t)?t:[t]},Object.defineProperty(t,"__esModule",{value:!0})}("object"==typeof n&&void 0!==e?n:(r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{},r.ng.cdk.coercion=r.ng.cdk.coercion||{}))},{}],45:[function(t,e,n){var r,i;r=this,i=function(t,e,n){"use strict";var r=function(){return function(){}}(),i=function(){function t(t,n,r){void 0===t&&(t=!1),void 0===r&&(r=!0);var i=this;this._isMulti=t,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.onChange=this._emitChanges?new e.Subject:null,n&&(t?n.forEach(function(t){return i._markSelected(t)}):this._markSelected(n[0]),this._selectedToEmit.length=0)}return Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected},enumerable:!0,configurable:!0}),t.prototype.select=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._verifyValueAssignment(e),e.forEach(function(e){return t._markSelected(e)}),this._emitChangeEvent()},t.prototype.deselect=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._verifyValueAssignment(e),e.forEach(function(e){return t._unmarkSelected(e)}),this._emitChangeEvent()},t.prototype.toggle=function(t){this.isSelected(t)?this.deselect(t):this.select(t)},t.prototype.clear=function(){this._unmarkAll(),this._emitChangeEvent()},t.prototype.isSelected=function(t){return this._selection.has(t)},t.prototype.isEmpty=function(){return 0===this._selection.size},t.prototype.hasValue=function(){return!this.isEmpty()},t.prototype.sort=function(t){this._isMulti&&this._selected&&this._selected.sort(t)},t.prototype._emitChangeEvent=function(){if(this._selected=null,this._selectedToEmit.length||this._deselectedToEmit.length){var t=new o(this._selectedToEmit,this._deselectedToEmit);this.onChange&&this.onChange.next(t),this._deselectedToEmit=[],this._selectedToEmit=[]}},t.prototype._markSelected=function(t){this.isSelected(t)||(this._isMulti||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))},t.prototype._unmarkSelected=function(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))},t.prototype._unmarkAll=function(){var t=this;this.isEmpty()||this._selection.forEach(function(e){return t._unmarkSelected(e)})},t.prototype._verifyValueAssignment=function(t){if(t.length>1&&!this._isMulti)throw a()},t}(),o=function(){return function(t,e){this.added=t,this.removed=e}}();function a(){return Error("Cannot pass multiple values into SelectionModel with single-value mode.")}var s=function(){function t(){this._listeners=[]}return t.prototype.notify=function(t,e){for(var n=0,r=this._listeners;n<r.length;n++){(0,r[n])(t,e)}},t.prototype.listen=function(t){var e=this;return this._listeners.push(t),function(){e._listeners=e._listeners.filter(function(e){return t!==e})}},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[]},t}();function c(t){return t||new s}var l={provide:s,deps:[[new n.Optional,new n.SkipSelf,s]],useFactory:c};t.UniqueSelectionDispatcher=s,t.UNIQUE_SELECTION_DISPATCHER_PROVIDER=l,t.DataSource=r,t.SelectionModel=i,t.SelectionChange=o,t.getMultipleValuesInSingleSelectionError=a,t.ɵa=c,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("rxjs/Subject"),t("@angular/core")):i((r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{},r.ng.cdk.collections=r.ng.cdk.collections||{}),r.Rx,r.ng.core)},{"@angular/core":58,"rxjs/Subject":72}],46:[function(t,e,n){var r;r=this,function(t){"use strict";t.UP_ARROW=38,t.DOWN_ARROW=40,t.RIGHT_ARROW=39,t.LEFT_ARROW=37,t.PAGE_UP=33,t.PAGE_DOWN=34,t.HOME=36,t.END=35,t.ENTER=13,t.SPACE=32,t.TAB=9,t.ESCAPE=27,t.BACKSPACE=8,t.DELETE=46,t.A=65,t.Z=90,t.ZERO=48,t.NINE=91,t.COMMA=188,Object.defineProperty(t,"__esModule",{value:!0})}("object"==typeof n&&void 0!==e?n:(r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{},r.ng.cdk.keycodes=r.ng.cdk.keycodes||{}))},{}],47:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i,o,a,s,c,l){"use strict";var u=new Map,p=function(){function t(t){this.platform=t,this._matchMedia=this.platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):h}return t.prototype.matchMedia=function(t){return this.platform.WEBKIT&&function(t){if(!u.has(t))try{var e=document.createElement("style");if(e.setAttribute("type","text/css"),!e.sheet){var n="@media "+t+" {.fx-query-test{ }}";e.appendChild(document.createTextNode(n))}document.getElementsByTagName("head")[0].appendChild(e),u.set(t,e)}catch(t){console.error(t)}}(t),this._matchMedia(t)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:n.Platform}]},t}();function h(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var d=function(){function t(t,e){this.mediaMatcher=t,this.zone=e,this._queries=new Map,this._destroySubject=new r.Subject}return t.prototype.ngOnDestroy=function(){this._destroySubject.next(),this._destroySubject.complete()},t.prototype.isMatched=function(t){var e=this;return s.coerceArray(t).some(function(t){return e._registerQuery(t).mql.matches})},t.prototype.observe=function(t){var e=this,n=s.coerceArray(t).map(function(t){return e._registerQuery(t).observable});return c.combineLatest(n,function(t,e){return{matches:!!(t&&t.matches||e&&e.matches)}})},t.prototype._registerQuery=function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var n=this.mediaMatcher.matchMedia(t),r={observable:l.fromEventPattern(function(t){n.addListener(function(n){return e.zone.run(function(){return t(n)})})},function(t){n.removeListener(function(n){return e.zone.run(function(){return t(n)})})}).pipe(a.takeUntil(this._destroySubject),o.startWith(n),i.map(function(t){return{matches:t.matches}})),mql:n};return this._queries.set(t,r),r},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:p},{type:e.NgZone}]},t}(),f=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{providers:[d,p],imports:[n.PlatformModule]}]}],t.ctorParameters=function(){return[]},t}();t.LayoutModule=f,t.BreakpointObserver=d,t.Breakpoints={Handset:"(max-width: 599px) and (orientation: portrait), (max-width: 959px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"},t.MediaMatcher=p,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("@angular/cdk/platform"),t("rxjs/Subject"),t("rxjs/operators/map"),t("rxjs/operators/startWith"),t("rxjs/operators/takeUntil"),t("@angular/cdk/coercion"),t("rxjs/observable/combineLatest"),t("rxjs/observable/fromEventPattern")):i((r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{},r.ng.cdk.layout=r.ng.cdk.layout||{}),r.ng.core,r.ng.cdk.platform,r.Rx,r.Rx.operators,r.Rx.operators,r.Rx.operators,r.ng.cdk.coercion,r.Rx.Observable,r.Rx.Observable)},{"@angular/cdk/coercion":44,"@angular/cdk/platform":50,"@angular/core":58,"rxjs/Subject":72,"rxjs/observable/combineLatest":90,"rxjs/observable/fromEventPattern":97,"rxjs/operators/map":129,"rxjs/operators/startWith":138,"rxjs/operators/takeUntil":142}],48:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r){"use strict";var i=function(){function t(){}return t.prototype.create=function(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}(),o=function(){function t(t,r,i){this._mutationObserverFactory=t,this._elementRef=r,this._ngZone=i,this.event=new e.EventEmitter,this._debouncer=new n.Subject}return t.prototype.ngAfterContentInit=function(){var t=this;this.debounce>0?this._ngZone.runOutsideAngular(function(){t._debouncer.pipe(r.debounceTime(t.debounce)).subscribe(function(e){return t.event.emit(e)})}):this._debouncer.subscribe(function(e){return t.event.emit(e)}),this._observer=this._ngZone.runOutsideAngular(function(){return t._mutationObserverFactory.create(function(e){t._debouncer.next(e)})}),this._observer&&this._observer.observe(this._elementRef.nativeElement,{characterData:!0,childList:!0,subtree:!0})},t.prototype.ngOnDestroy=function(){this._observer&&this._observer.disconnect(),this._debouncer.complete()},t.decorators=[{type:e.Directive,args:[{selector:"[cdkObserveContent]",exportAs:"cdkObserveContent"}]}],t.ctorParameters=function(){return[{type:i},{type:e.ElementRef},{type:e.NgZone}]},t.propDecorators={event:[{type:e.Output,args:["cdkObserveContent"]}],debounce:[{type:e.Input}]},t}(),a=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{exports:[o],declarations:[o],providers:[i]}]}],t.ctorParameters=function(){return[]},t}();t.ObserveContent=o,t.MutationObserverFactory=i,t.CdkObserveContent=o,t.ObserversModule=a,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("rxjs/Subject"),t("rxjs/operators/debounceTime")):i((r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{},r.ng.cdk.observers=r.ng.cdk.observers||{}),r.ng.core,r.Rx,r.Rx.operators)},{"@angular/core":58,"rxjs/Subject":72,"rxjs/operators/debounceTime":121}],49:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i,o,a,s,c,l,u,p,h){"use strict";var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};var f=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},m=function(){function t(){}return t.prototype.enable=function(){},t.prototype.disable=function(){},t.prototype.attach=function(){},t}(),g=function(){return function(t){var e=this;this.scrollStrategy=new m,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.direction="ltr",t&&Object.keys(t).forEach(function(n){return e[n]=t[n]})}}(),y=function(){return function(t,e,n,r){this.offsetX=n,this.offsetY=r,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}(),v=function(){return function(){}}(),b=function(){function t(t,e){this.connectionPair=t,this.scrollableViewProperties=e}return t.ctorParameters=function(){return[{type:y},{type:v,decorators:[{type:e.Optional}]}]},t}();function _(){return Error("Scroll strategy has already been attached.")}var w=function(){function t(t,e,n,r){var i=this;this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=function(){i.disable(),i._overlayRef.hasAttached()&&i._ngZone.run(function(){return i._overlayRef.detach()})}}return t.prototype.attach=function(t){if(this._overlayRef)throw _();this._overlayRef=t},t.prototype.enable=function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t}(),C=function(){function t(t){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1}return t.prototype.attach=function(){},t.prototype.enable=function(){if(this._canBeEnabled()){var t=document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=-this._previousScrollPosition.left+"px",t.style.top=-this._previousScrollPosition.top+"px",t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}},t.prototype.disable=function(){if(this._isEnabled){var t=document.documentElement,e=document.body,n=t.style.scrollBehavior||"",r=e.style.scrollBehavior||"";this._isEnabled=!1,t.style.left=this._previousHTMLStyles.left,t.style.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),t.style.scrollBehavior=e.style.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),t.style.scrollBehavior=n,e.style.scrollBehavior=r}},t.prototype._canBeEnabled=function(){if(document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width},t}();function x(t,e){return e.some(function(e){var n=t.bottom<e.top,r=t.top>e.bottom,i=t.right<e.left,o=t.left>e.right;return n||r||i||o})}function E(t,e){return e.some(function(e){var n=t.top<e.top,r=t.bottom>e.bottom,i=t.left<e.left,o=t.right>e.right;return n||r||i||o})}var S=function(){function t(t,e,n,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=r,this._scrollSubscription=null}return t.prototype.attach=function(t){if(this._overlayRef)throw _();this._overlayRef=t},t.prototype.enable=function(){var t=this;if(!this._scrollSubscription){var e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),r=n.width,i=n.height;x(e,[{width:r,height:i,bottom:i,right:r,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}})}},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t}(),k=function(){function t(t,e,n){var r=this;this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=function(){return new m},this.close=function(t){return new w(r._scrollDispatcher,r._ngZone,r._viewportRuler,t)},this.block=function(){return new C(r._viewportRuler)},this.reposition=function(t){return new S(r._scrollDispatcher,r._viewportRuler,r._ngZone,t)}}return t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:n.ScrollDispatcher},{type:n.ViewportRuler},{type:e.NgZone}]},t}(),O=function(){function t(t,e,n,r,i){this._portalOutlet=t,this._pane=e,this._config=n,this._ngZone=r,this._keyboardDispatcher=i,this._backdropElement=null,this._backdropClick=new a.Subject,this._attachments=new a.Subject,this._detachments=new a.Subject,this._keydownEvents=new a.Subject,n.scrollStrategy&&n.scrollStrategy.attach(this)}return Object.defineProperty(t.prototype,"overlayElement",{get:function(){return this._pane},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){var e=this,n=this._portalOutlet.attach(t);return this._config.positionStrategy&&this._config.positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._config.scrollStrategy&&this._config.scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(o.take(1)).subscribe(function(){e.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&(Array.isArray(this._config.panelClass)?this._config.panelClass.forEach(function(t){return e._pane.classList.add(t)}):this._pane.classList.add(this._config.panelClass)),this._attachments.next(),this._keyboardDispatcher.add(this),n},t.prototype.detach=function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._config.positionStrategy&&this._config.positionStrategy.detach&&this._config.positionStrategy.detach(),this._config.scrollStrategy&&this._config.scrollStrategy.disable();var t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),t}},t.prototype.dispose=function(){var t=this.hasAttached();this._config.positionStrategy&&this._config.positionStrategy.dispose(),this._config.scrollStrategy&&this._config.scrollStrategy.disable(),this.detachBackdrop(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),t&&this._detachments.next(),this._detachments.complete()},t.prototype.hasAttached=function(){return this._portalOutlet.hasAttached()},t.prototype.backdropClick=function(){return this._backdropClick.asObservable()},t.prototype.attachments=function(){return this._attachments.asObservable()},t.prototype.detachments=function(){return this._detachments.asObservable()},t.prototype.keydownEvents=function(){return this._keydownEvents.asObservable()},t.prototype.getConfig=function(){return this._config},t.prototype.updatePosition=function(){this._config.positionStrategy&&this._config.positionStrategy.apply()},t.prototype.updateSize=function(t){this._config=f({},this._config,t),this._updateElementSize()},t.prototype.setDirection=function(t){this._config=f({},this._config,{direction:t}),this._updateElementDirection()},t.prototype._updateElementDirection=function(){this._pane.setAttribute("dir",this._config.direction)},t.prototype._updateElementSize=function(){(this._config.width||0===this._config.width)&&(this._pane.style.width=P(this._config.width)),(this._config.height||0===this._config.height)&&(this._pane.style.height=P(this._config.height)),(this._config.minWidth||0===this._config.minWidth)&&(this._pane.style.minWidth=P(this._config.minWidth)),(this._config.minHeight||0===this._config.minHeight)&&(this._pane.style.minHeight=P(this._config.minHeight)),(this._config.maxWidth||0===this._config.maxWidth)&&(this._pane.style.maxWidth=P(this._config.maxWidth)),(this._config.maxHeight||0===this._config.maxHeight)&&(this._pane.style.maxHeight=P(this._config.maxHeight))},t.prototype._togglePointerEvents=function(t){this._pane.style.pointerEvents=t?"auto":"none"},t.prototype._attachBackdrop=function(){var t=this;this._backdropElement=document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._backdropElement.classList.add(this._config.backdropClass),this._pane.parentElement.insertBefore(this._backdropElement,this._pane),this._backdropElement.addEventListener("click",function(){return t._backdropClick.next(null)}),this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){t._backdropElement&&t._backdropElement.classList.add("cdk-overlay-backdrop-showing")})})},t.prototype._updateStackingOrder=function(){this._pane.nextSibling&&this._pane.parentNode.appendChild(this._pane)},t.prototype.detachBackdrop=function(){var t=this,e=this._backdropElement;if(e){var n=function(){e&&e.parentNode&&e.parentNode.removeChild(e),t._backdropElement==e&&(t._backdropElement=null)};e.classList.remove("cdk-overlay-backdrop-showing"),this._config.backdropClass&&e.classList.remove(this._config.backdropClass),e.addEventListener("transitionend",n),e.style.pointerEvents="none",this._ngZone.runOutsideAngular(function(){setTimeout(n,500)})}},t}();function P(t){return"string"==typeof t?t:t+"px"}var A=function(){function t(t,e,n,r,i){this._connectedTo=n,this._viewportRuler=r,this._document=i,this._dir="ltr",this._offsetX=0,this._offsetY=0,this.scrollables=[],this._resizeSubscription=s.Subscription.EMPTY,this._preferredPositions=[],this._applied=!1,this._positionLocked=!1,this._onPositionChange=new a.Subject,this._origin=this._connectedTo.nativeElement,this.withFallbackPosition(t,e)}return Object.defineProperty(t.prototype,"_isRtl",{get:function(){return"rtl"===this._dir},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onPositionChange",{get:function(){return this._onPositionChange.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"positions",{get:function(){return this._preferredPositions},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){var e=this;this._overlayRef=t,this._pane=t.overlayElement,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){return e.apply()})},t.prototype.dispose=function(){this._applied=!1,this._resizeSubscription.unsubscribe()},t.prototype.detach=function(){this._applied=!1,this._resizeSubscription.unsubscribe()},t.prototype.apply=function(){if(this._applied&&this._positionLocked&&this._lastConnectedPosition)this.recalculateLastPosition();else{this._applied=!0;for(var t,e,n=this._pane,r=this._origin.getBoundingClientRect(),i=n.getBoundingClientRect(),o=this._viewportRuler.getViewportSize(),a=0,s=this._preferredPositions;a<s.length;a++){var c=s[a],l=this._getOriginConnectionPoint(r,c),u=this._getOverlayPoint(l,i,o,c);if(u.fitsInViewport)return this._setElementPosition(n,i,u,c),void(this._lastConnectedPosition=c);(!t||t.visibleArea<u.visibleArea)&&(t=u,e=c)}this._setElementPosition(n,i,t,e)}},t.prototype.recalculateLastPosition=function(){if(this._lastConnectedPosition){var t=this._origin.getBoundingClientRect(),e=this._pane.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),r=this._lastConnectedPosition||this._preferredPositions[0],i=this._getOriginConnectionPoint(t,r),o=this._getOverlayPoint(i,e,n,r);this._setElementPosition(this._pane,e,o,r)}},t.prototype.withScrollableContainers=function(t){this.scrollables=t},t.prototype.withFallbackPosition=function(t,e,n,r){var i=new y(t,e,n,r);return this._preferredPositions.push(i),this},t.prototype.withDirection=function(t){return this._dir=t,this},t.prototype.withOffsetX=function(t){return this._offsetX=t,this},t.prototype.withOffsetY=function(t){return this._offsetY=t,this},t.prototype.withLockedPosition=function(t){return this._positionLocked=t,this},t.prototype.withPositions=function(t){return this._preferredPositions=t.slice(),this},t.prototype._getStartX=function(t){return this._isRtl?t.right:t.left},t.prototype._getEndX=function(t){return this._isRtl?t.left:t.right},t.prototype._getOriginConnectionPoint=function(t,e){var n=this._getStartX(t),r=this._getEndX(t);return{x:"center"==e.originX?n+t.width/2:"start"==e.originX?n:r,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}},t.prototype._getOverlayPoint=function(t,e,n,r){var i,o;i="center"==r.overlayX?-e.width/2:"start"===r.overlayX?this._isRtl?-e.width:0:this._isRtl?0:-e.width,o="center"==r.overlayY?-e.height/2:"top"==r.overlayY?0:-e.height;var a=void 0===r.offsetX?this._offsetX:r.offsetX,s=void 0===r.offsetY?this._offsetY:r.offsetY,c=t.x+i+a,l=t.y+o+s,u=0-c,p=c+e.width-n.width,h=0-l,d=l+e.height-n.height,f=this._subtractOverflows(e.width,u,p)*this._subtractOverflows(e.height,h,d);return{x:c,y:l,fitsInViewport:e.width*e.height===f,visibleArea:f}},t.prototype._getScrollVisibility=function(t){var e=this._origin.getBoundingClientRect(),n=t.getBoundingClientRect(),r=this.scrollables.map(function(t){return t.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:E(e,r),isOriginOutsideView:x(e,r),isOverlayClipped:E(n,r),isOverlayOutsideView:x(n,r)}},t.prototype._setElementPosition=function(t,e,n,r){var i,o="bottom"===r.overlayY?"bottom":"top",a="top"===o?n.y:this._document.documentElement.clientHeight-(n.y+e.height),s="left"===(i="rtl"===this._dir?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left")?n.x:this._document.documentElement.clientWidth-(n.x+e.width);["top","bottom","left","right"].forEach(function(e){return t.style[e]=null}),t.style[o]=a+"px",t.style[i]=s+"px";var c=this._getScrollVisibility(t),l=new b(r,c);this._onPositionChange.next(l)},t.prototype._subtractOverflows=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(t,e){return t-Math.max(e,0)},t)},t}(),T=function(){function t(t){this._document=t,this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height="",this._wrapper=null}return t.prototype.attach=function(t){this._overlayRef=t},t.prototype.top=function(t){return void 0===t&&(t=""),this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this},t.prototype.left=function(t){return void 0===t&&(t=""),this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this},t.prototype.bottom=function(t){return void 0===t&&(t=""),this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this},t.prototype.right=function(t){return void 0===t&&(t=""),this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this},t.prototype.width=function(t){return void 0===t&&(t=""),this._width=t,"100%"===t&&this.left("0px"),this},t.prototype.height=function(t){return void 0===t&&(t=""),this._height=t,"100%"===t&&this.top("0px"),this},t.prototype.centerHorizontally=function(t){return void 0===t&&(t=""),this.left(t),this._justifyContent="center",this},t.prototype.centerVertically=function(t){return void 0===t&&(t=""),this.top(t),this._alignItems="center",this},t.prototype.apply=function(){if(this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement;!this._wrapper&&t.parentNode&&(this._wrapper=this._document.createElement("div"),this._wrapper.classList.add("cdk-global-overlay-wrapper"),t.parentNode.insertBefore(this._wrapper,t),this._wrapper.appendChild(t));var e=t.style,n=t.parentNode.style;e.position=this._cssPosition,e.marginTop=this._topOffset,e.marginLeft=this._leftOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,e.width=this._width,e.height=this._height,n.justifyContent=this._justifyContent,n.alignItems=this._alignItems}},t.prototype.dispose=function(){this._wrapper&&this._wrapper.parentNode&&(this._wrapper.parentNode.removeChild(this._wrapper),this._wrapper=null)},t}(),M=function(){function t(t,e){this._viewportRuler=t,this._document=e}return t.prototype.global=function(){return new T(this._document)},t.prototype.connectedTo=function(t,e,n){return new A(e,n,t,this._viewportRuler,this._document)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:n.ViewportRuler},{type:void 0,decorators:[{type:e.Inject,args:[c.DOCUMENT]}]}]},t}(),I=function(){function t(t){this._document=t,this._attachedOverlays=[]}return t.prototype.ngOnDestroy=function(){this._unsubscribeFromKeydownEvents()},t.prototype.add=function(t){this._keydownEventSubscription||this._subscribeToKeydownEvents(),this._attachedOverlays.push(t)},t.prototype.remove=function(t){var e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._unsubscribeFromKeydownEvents()},t.prototype._subscribeToKeydownEvents=function(){var t=this,e=u.fromEvent(this._document.body,"keydown");this._keydownEventSubscription=e.pipe(l.filter(function(){return!!t._attachedOverlays.length})).subscribe(function(e){t._selectOverlayFromEvent(e)._keydownEvents.next(e)})},t.prototype._unsubscribeFromKeydownEvents=function(){this._keydownEventSubscription&&(this._keydownEventSubscription.unsubscribe(),this._keydownEventSubscription=null)},t.prototype._selectOverlayFromEvent=function(t){return this._attachedOverlays.find(function(e){return e.overlayElement===t.target||e.overlayElement.contains(t.target)})||this._attachedOverlays[this._attachedOverlays.length-1]},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[c.DOCUMENT]}]}]},t}();function R(t,e){return t||new I(e)}var D={provide:I,deps:[[new e.Optional,new e.SkipSelf,I],c.DOCUMENT],useFactory:R},N=function(){function t(t){this._document=t}return t.prototype.ngOnDestroy=function(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)},t.prototype.getContainerElement=function(){return this._containerElement||this._createContainer(),this._containerElement},t.prototype._createContainer=function(){var t=this._document.createElement("div");t.classList.add("cdk-overlay-container"),this._document.body.appendChild(t),this._containerElement=t},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[c.DOCUMENT]}]}]},t}();function L(t,e){return t||new N(e)}var j={provide:N,deps:[[new e.Optional,new e.SkipSelf,N],c.DOCUMENT],useFactory:L},F=0,V=new g,B=function(){function t(t,e,n,r,i,o,a,s,c){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=r,this._keyboardDispatcher=i,this._appRef=o,this._injector=a,this._ngZone=s,this._document=c}return t.prototype.create=function(t){void 0===t&&(t=V);var e=this._createPaneElement(),n=this._createPortalOutlet(e);return new O(n,e,t,this._ngZone,this._keyboardDispatcher)},t.prototype.position=function(){return this._positionBuilder},t.prototype._createPaneElement=function(){var t=this._document.createElement("div");return t.id="cdk-overlay-"+F++,t.classList.add("cdk-overlay-pane"),this._overlayContainer.getContainerElement().appendChild(t),t},t.prototype._createPortalOutlet=function(t){return new i.DomPortalOutlet(t,this._componentFactoryResolver,this._appRef,this._injector)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:k},{type:N},{type:e.ComponentFactoryResolver},{type:M},{type:I},{type:e.ApplicationRef},{type:e.Injector},{type:e.NgZone},{type:void 0,decorators:[{type:e.Inject,args:[c.DOCUMENT]}]}]},t}(),U=[new y({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new y({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new y({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new y({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"})],H=new e.InjectionToken("cdk-connected-overlay-scroll-strategy");function z(t){return function(){return t.scrollStrategies.reposition()}}var G={provide:H,deps:[B],useFactory:z},W=function(){function t(t){this.elementRef=t}return t.decorators=[{type:e.Directive,args:[{selector:"[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]",exportAs:"cdkOverlayOrigin"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t}(),q=function(){function t(t,n,r,o,a){this._overlay=t,this._scrollStrategy=o,this._dir=a,this._hasBackdrop=!1,this._backdropSubscription=s.Subscription.EMPTY,this._positionSubscription=s.Subscription.EMPTY,this._offsetX=0,this._offsetY=0,this.scrollStrategy=this._scrollStrategy(),this.open=!1,this.backdropClick=new e.EventEmitter,this.positionChange=new e.EventEmitter,this.attach=new e.EventEmitter,this.detach=new e.EventEmitter,this._templatePortal=new i.TemplatePortal(n,r)}return Object.defineProperty(t.prototype,"offsetX",{get:function(){return this._offsetX},set:function(t){this._offsetX=t,this._position&&this._position.withOffsetX(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offsetY",{get:function(){return this._offsetY},set:function(t){this._offsetY=t,this._position&&this._position.withOffsetY(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasBackdrop",{get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=p.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_deprecatedOrigin",{get:function(){return this.origin},set:function(t){this.origin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_deprecatedPositions",{get:function(){return this.positions},set:function(t){this.positions=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_deprecatedOffsetX",{get:function(){return this.offsetX},set:function(t){this.offsetX=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_deprecatedOffsetY",{get:function(){return this.offsetY},set:function(t){this.offsetY=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_deprecatedWidth",{get:function(){return this.width},set:function(t){this.width=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_deprecatedHeight",{get:function(){return this.height},set:function(t){this.height=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_deprecatedMinWidth",{get:function(){return this.minWidth},set:function(t){this.minWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_deprecatedMinHeight",{get:function(){return this.minHeight},set:function(t){this.minHeight=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_deprecatedBackdropClass",{get:function(){return this.backdropClass},set:function(t){this.backdropClass=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_deprecatedScrollStrategy",{get:function(){return this.scrollStrategy},set:function(t){this.scrollStrategy=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_deprecatedOpen",{get:function(){return this.open},set:function(t){this.open=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_deprecatedHasBackdrop",{get:function(){return this.hasBackdrop},set:function(t){this.hasBackdrop=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overlayRef",{get:function(){return this._overlayRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this._dir?this._dir.value:"ltr"},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._destroyOverlay()},t.prototype.ngOnChanges=function(t){(t.open||t._deprecatedOpen)&&(this.open?this._attachOverlay():this._detachOverlay())},t.prototype._createOverlay=function(){this.positions&&this.positions.length||(this.positions=U),this._overlayRef=this._overlay.create(this._buildConfig())},t.prototype._buildConfig=function(){var t=this._position=this._createPositionStrategy(),e=new g({positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),e},t.prototype._createPositionStrategy=function(){var t=this.positions[0],e={originX:t.originX,originY:t.originY},n={overlayX:t.overlayX,overlayY:t.overlayY},r=this._overlay.position().connectedTo(this.origin.elementRef,e,n).withOffsetX(this.offsetX).withOffsetY(this.offsetY);return this._handlePositionChanges(r),r},t.prototype._handlePositionChanges=function(t){for(var e=this,n=1;n<this.positions.length;n++)t.withFallbackPosition({originX:this.positions[n].originX,originY:this.positions[n].originY},{overlayX:this.positions[n].overlayX,overlayY:this.positions[n].overlayY});this._positionSubscription=t.onPositionChange.subscribe(function(t){return e.positionChange.emit(t)})},t.prototype._attachOverlay=function(){var t=this;this._overlayRef||(this._createOverlay(),this._overlayRef.keydownEvents().subscribe(function(e){e.keyCode===h.ESCAPE&&t._detachOverlay()})),this._position.withDirection(this.dir),this._overlayRef.setDirection(this.dir),this._overlayRef.hasAttached()||(this._overlayRef.attach(this._templatePortal),this.attach.emit()),this.hasBackdrop&&(this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(){t.backdropClick.emit()}))},t.prototype._detachOverlay=function(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription.unsubscribe()},t.prototype._destroyOverlay=function(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()},t.decorators=[{type:e.Directive,args:[{selector:"[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]",exportAs:"cdkConnectedOverlay"}]}],t.ctorParameters=function(){return[{type:B},{type:e.TemplateRef},{type:e.ViewContainerRef},{type:void 0,decorators:[{type:e.Inject,args:[H]}]},{type:r.Directionality,decorators:[{type:e.Optional}]}]},t.propDecorators={origin:[{type:e.Input,args:["cdkConnectedOverlayOrigin"]}],positions:[{type:e.Input,args:["cdkConnectedOverlayPositions"]}],offsetX:[{type:e.Input,args:["cdkConnectedOverlayOffsetX"]}],offsetY:[{type:e.Input,args:["cdkConnectedOverlayOffsetY"]}],width:[{type:e.Input,args:["cdkConnectedOverlayWidth"]}],height:[{type:e.Input,args:["cdkConnectedOverlayHeight"]}],minWidth:[{type:e.Input,args:["cdkConnectedOverlayMinWidth"]}],minHeight:[{type:e.Input,args:["cdkConnectedOverlayMinHeight"]}],backdropClass:[{type:e.Input,args:["cdkConnectedOverlayBackdropClass"]}],scrollStrategy:[{type:e.Input,args:["cdkConnectedOverlayScrollStrategy"]}],open:[{type:e.Input,args:["cdkConnectedOverlayOpen"]}],hasBackdrop:[{type:e.Input,args:["cdkConnectedOverlayHasBackdrop"]}],_deprecatedOrigin:[{type:e.Input,args:["origin"]}],_deprecatedPositions:[{type:e.Input,args:["positions"]}],_deprecatedOffsetX:[{type:e.Input,args:["offsetX"]}],_deprecatedOffsetY:[{type:e.Input,args:["offsetY"]}],_deprecatedWidth:[{type:e.Input,args:["width"]}],_deprecatedHeight:[{type:e.Input,args:["height"]}],_deprecatedMinWidth:[{type:e.Input,args:["minWidth"]}],_deprecatedMinHeight:[{type:e.Input,args:["minHeight"]}],_deprecatedBackdropClass:[{type:e.Input,args:["backdropClass"]}],_deprecatedScrollStrategy:[{type:e.Input,args:["scrollStrategy"]}],_deprecatedOpen:[{type:e.Input,args:["open"]}],_deprecatedHasBackdrop:[{type:e.Input,args:["hasBackdrop"]}],backdropClick:[{type:e.Output}],positionChange:[{type:e.Output}],attach:[{type:e.Output}],detach:[{type:e.Output}]},t}(),Y=[B,M,D,n.VIEWPORT_RULER_PROVIDER,j,G],K=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[r.BidiModule,i.PortalModule,n.ScrollDispatchModule],exports:[q,W,n.ScrollDispatchModule],declarations:[q,W],providers:[Y,k]}]}],t.ctorParameters=function(){return[]},t}(),$=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return function(t,e){function n(){this.constructor=t}d(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(n,t),n.prototype._createContainer=function(){var e=this;t.prototype._createContainer.call(this),this._adjustParentForFullscreenChange(),this._addFullscreenChangeListener(function(){return e._adjustParentForFullscreenChange()})},n.prototype._adjustParentForFullscreenChange=function(){this._containerElement&&(this.getFullscreenElement()||document.body).appendChild(this._containerElement)},n.prototype._addFullscreenChangeListener=function(t){document.fullscreenEnabled?document.addEventListener("fullscreenchange",t):document.webkitFullscreenEnabled?document.addEventListener("webkitfullscreenchange",t):document.mozFullScreenEnabled?document.addEventListener("mozfullscreenchange",t):document.msFullscreenEnabled&&document.addEventListener("MSFullscreenChange",t)},n.prototype.getFullscreenElement=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||null},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[]},n}(N);t.Overlay=B,t.OverlayContainer=N,t.CdkOverlayOrigin=W,t.CdkConnectedOverlay=q,t.FullscreenOverlayContainer=$,t.OverlayRef=O,t.ViewportRuler=n.ViewportRuler,t.OverlayKeyboardDispatcher=I,t.GlobalPositionStrategy=T,t.ConnectedPositionStrategy=A,t.VIEWPORT_RULER_PROVIDER=n.VIEWPORT_RULER_PROVIDER,t.ConnectedOverlayDirective=q,t.OverlayOrigin=W,t.OverlayConfig=g,t.ConnectionPositionPair=y,t.ScrollingVisibility=v,t.ConnectedOverlayPositionChange=b,t.CdkScrollable=n.CdkScrollable,t.ScrollDispatcher=n.ScrollDispatcher,t.ScrollStrategyOptions=k,t.RepositionScrollStrategy=S,t.CloseScrollStrategy=w,t.NoopScrollStrategy=m,t.BlockScrollStrategy=C,t.OVERLAY_PROVIDERS=Y,t.OverlayModule=K,t.ɵg=D,t.ɵf=R,t.ɵb=j,t.ɵa=L,t.ɵc=H,t.ɵe=G,t.ɵd=z,t.ɵh=M,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("@angular/cdk/scrolling"),t("@angular/cdk/bidi"),t("@angular/cdk/portal"),t("rxjs/operators/take"),t("rxjs/Subject"),t("rxjs/Subscription"),t("@angular/common"),t("rxjs/operators/filter"),t("rxjs/observable/fromEvent"),t("@angular/cdk/coercion"),t("@angular/cdk/keycodes")):i((r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{},r.ng.cdk.overlay=r.ng.cdk.overlay||{}),r.ng.core,r.ng.cdk.scrolling,r.ng.cdk.bidi,r.ng.cdk.portal,r.Rx.operators,r.Rx,r.Rx,r.ng.common,r.Rx.operators,r.Rx.Observable,r.ng.cdk.coercion,r.ng.cdk.keycodes)},{"@angular/cdk/bidi":43,"@angular/cdk/coercion":44,"@angular/cdk/keycodes":46,"@angular/cdk/portal":51,"@angular/cdk/scrolling":52,"@angular/common":56,"@angular/core":58,"rxjs/Subject":72,"rxjs/Subscription":75,"rxjs/observable/fromEvent":96,"rxjs/operators/filter":125,"rxjs/operators/take":140}],50:[function(t,e,n){var r,i;r=this,i=function(t,e){"use strict";var n,r,i="undefined"!=typeof Intl&&Intl.v8BreakIterator,o=function(){function t(){this.isBrowser="object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!i)&&!!CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}return t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}();var a=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];var s=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{providers:[o]}]}],t.ctorParameters=function(){return[]},t}();t.Platform=o,t.supportsPassiveEventListeners=function(){if(null==n&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return n=!0}}))}finally{n=n||!1}return n},t.getSupportedInputTypes=function(){if(r)return r;if("object"!=typeof document||!document)return r=new Set(a);var t=document.createElement("input");return r=new Set(a.filter(function(e){return t.setAttribute("type",e),t.type===e}))},t.PlatformModule=s,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core")):i((r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{},r.ng.cdk.platform=r.ng.cdk.platform||{}),r.ng.core)},{"@angular/core":58}],51:[function(t,e,n){var r,i;r=this,i=function(t,e){"use strict";var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function r(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function i(){throw Error("Host already has a portal attached")}var o=function(){function t(){}return t.prototype.attach=function(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&i(),this._attachedHost=t,t.attach(this)},t.prototype.detach=function(){var t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())},Object.defineProperty(t.prototype,"isAttached",{get:function(){return null!=this._attachedHost},enumerable:!0,configurable:!0}),t.prototype.setAttachedHost=function(t){this._attachedHost=t},t}(),a=function(t){function e(e,n,r){var i=t.call(this)||this;return i.component=e,i.viewContainerRef=n,i.injector=r,i}return r(e,t),e}(o),s=function(t){function e(e,n,r){var i=t.call(this)||this;return i.templateRef=e,i.viewContainerRef=n,r&&(i.context=r),i}return r(e,t),Object.defineProperty(e.prototype,"origin",{get:function(){return this.templateRef.elementRef},enumerable:!0,configurable:!0}),e.prototype.attach=function(e,n){return void 0===n&&(n=this.context),this.context=n,t.prototype.attach.call(this,e)},e.prototype.detach=function(){return this.context=void 0,t.prototype.detach.call(this)},e}(o),c=function(){function t(){this._isDisposed=!1}return t.prototype.hasAttached=function(){return!!this._attachedPortal},t.prototype.attach=function(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&i(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof a?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof s?(this._attachedPortal=t,this.attachTemplatePortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()},t.prototype.detach=function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()},t.prototype.dispose=function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0},t.prototype.setDisposeFn=function(t){this._disposeFn=t},t.prototype._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)},t}(),l=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o._hostDomElement=e,o._componentFactoryResolver=n,o._appRef=r,o._defaultInjector=i,o}return r(e,t),e.prototype.attachComponentPortal=function(t){var e,n=this,r=this._componentFactoryResolver.resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(r,t.viewContainerRef.length,t.injector||t.viewContainerRef.parentInjector),this.setDisposeFn(function(){return e.destroy()})):(e=r.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn(function(){n._appRef.detachView(e.hostView),e.destroy()})),this._hostDomElement.appendChild(this._getComponentRootNode(e)),e},e.prototype.attachTemplatePortal=function(t){var e=this,n=t.viewContainerRef,r=n.createEmbeddedView(t.templateRef,t.context);return r.detectChanges(),r.rootNodes.forEach(function(t){return e._hostDomElement.appendChild(t)}),this.setDisposeFn(function(){var t=n.indexOf(r);-1!==t&&n.remove(t)}),r},e.prototype.dispose=function(){t.prototype.dispose.call(this),null!=this._hostDomElement.parentNode&&this._hostDomElement.parentNode.removeChild(this._hostDomElement)},e.prototype._getComponentRootNode=function(t){return t.hostView.rootNodes[0]},e}(c),u=function(t){function n(e,n){return t.call(this,e,n)||this}return r(n,t),n.decorators=[{type:e.Directive,args:[{selector:"[cdk-portal], [cdkPortal], [portal]",exportAs:"cdkPortal"}]}],n.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef}]},n}(s),p=function(t){function n(e,n){var r=t.call(this)||this;return r._componentFactoryResolver=e,r._viewContainerRef=n,r._isInitialized=!1,r}return r(n,t),Object.defineProperty(n.prototype,"_deprecatedPortal",{get:function(){return this.portal},set:function(t){this.portal=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_deprecatedPortalHost",{get:function(){return this.portal},set:function(t){this.portal=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"portal",{get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&t.prototype.detach.call(this),e&&t.prototype.attach.call(this,e),this._attachedPortal=e)},enumerable:!0,configurable:!0}),n.prototype.ngOnInit=function(){this._isInitialized=!0},n.prototype.ngOnDestroy=function(){t.prototype.dispose.call(this),this._attachedPortal=null},n.prototype.attachComponentPortal=function(e){e.setAttachedHost(this);var n=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,r=this._componentFactoryResolver.resolveComponentFactory(e.component),i=n.createComponent(r,n.length,e.injector||n.parentInjector);return t.prototype.setDisposeFn.call(this,function(){return i.destroy()}),this._attachedPortal=e,i},n.prototype.attachTemplatePortal=function(e){var n=this;e.setAttachedHost(this);var r=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return t.prototype.setDisposeFn.call(this,function(){return n._viewContainerRef.clear()}),this._attachedPortal=e,r},n.decorators=[{type:e.Directive,args:[{selector:"[cdkPortalOutlet], [cdkPortalHost], [portalHost]",exportAs:"cdkPortalOutlet, cdkPortalHost",inputs:["portal: cdkPortalOutlet"]}]}],n.ctorParameters=function(){return[{type:e.ComponentFactoryResolver},{type:e.ViewContainerRef}]},n.propDecorators={_deprecatedPortal:[{type:e.Input,args:["portalHost"]}],_deprecatedPortalHost:[{type:e.Input,args:["cdkPortalHost"]}]},n}(c),h=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{exports:[u,p],declarations:[u,p]}]}],t.ctorParameters=function(){return[]},t}(),d=function(){function t(t,e){this._parentInjector=t,this._customTokens=e}return t.prototype.get=function(t,e){var n=this._customTokens.get(t);return void 0!==n?n:this._parentInjector.get(t,e)},t}();t.DomPortalHost=l,t.PortalHostDirective=p,t.TemplatePortalDirective=u,t.BasePortalHost=c,t.Portal=o,t.ComponentPortal=a,t.TemplatePortal=s,t.BasePortalOutlet=c,t.DomPortalOutlet=l,t.CdkPortal=u,t.CdkPortalOutlet=p,t.PortalModule=h,t.PortalInjector=d,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core")):i((r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{},r.ng.cdk.portal=r.ng.cdk.portal||{}),r.ng.core)},{"@angular/core":58}],52:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i,o,a,s,c,l){"use strict";var u=function(){function t(t,e){this._ngZone=t,this._platform=e,this._scrolled=new r.Subject,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}return t.prototype.register=function(t){var e=this,n=t.elementScrolled().subscribe(function(){return e._scrolled.next(t)});this.scrollContainers.set(t,n)},t.prototype.deregister=function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))},t.prototype.scrolled=function(t){var e=this;return void 0===t&&(t=20),this._platform.isBrowser?i.Observable.create(function(n){e._globalSubscription||e._addGlobalListener();var r=t>0?e._scrolled.pipe(s.auditTime(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){r.unsubscribe(),e._scrolledCount--,e._globalSubscription&&!e._scrolledCount&&(e._globalSubscription.unsubscribe(),e._globalSubscription=null)}}):o.of()},t.prototype.ancestorScrolled=function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(c.filter(function(t){return!t||n.indexOf(t)>-1}))},t.prototype.getAncestorScrollContainers=function(t){var e=this,n=[];return this.scrollContainers.forEach(function(r,i){e._scrollableContainsElement(i,t)&&n.push(i)}),n},t.prototype._scrollableContainsElement=function(t,e){var n=e.nativeElement,r=t.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1},t.prototype._addGlobalListener=function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return a.fromEvent(window.document,"scroll").subscribe(function(){return t._scrolled.next()})})},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:e.NgZone},{type:n.Platform}]},t}();function p(t,e,n){return t||new u(e,n)}var h={provide:u,deps:[[new e.Optional,new e.SkipSelf,u],e.NgZone,n.Platform],useFactory:p},d=function(){function t(t,e,n){var i=this;this._elementRef=t,this._scroll=e,this._ngZone=n,this._elementScrolled=new r.Subject,this._scrollListener=function(t){return i._elementScrolled.next(t)}}return t.prototype.ngOnInit=function(){var t=this;this._ngZone.runOutsideAngular(function(){t.getElementRef().nativeElement.addEventListener("scroll",t._scrollListener)}),this._scroll.register(this)},t.prototype.ngOnDestroy=function(){this._scroll.deregister(this),this._scrollListener&&this.getElementRef().nativeElement.removeEventListener("scroll",this._scrollListener)},t.prototype.elementScrolled=function(){return this._elementScrolled.asObservable()},t.prototype.getElementRef=function(){return this._elementRef},t.decorators=[{type:e.Directive,args:[{selector:"[cdk-scrollable], [cdkScrollable]"}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:u},{type:e.NgZone}]},t}(),f=function(){function t(t,e){var n=this;this._change=t.isBrowser?e.runOutsideAngular(function(){return l.merge(a.fromEvent(window,"resize"),a.fromEvent(window,"orientationchange"))}):o.of(),this._invalidateCache=this.change().subscribe(function(){return n._updateViewportSize()})}return t.prototype.ngOnDestroy=function(){this._invalidateCache.unsubscribe()},t.prototype.getViewportSize=function(){return this._viewportSize||this._updateViewportSize(),{width:this._viewportSize.width,height:this._viewportSize.height}},t.prototype.getViewportRect=function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,r=e.height;return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+n,height:r,width:n}},t.prototype.getViewportScrollPosition=function(){var t=document.documentElement.getBoundingClientRect();return{top:-t.top||document.body.scrollTop||window.scrollY||document.documentElement.scrollTop||0,left:-t.left||document.body.scrollLeft||window.scrollX||document.documentElement.scrollLeft||0}},t.prototype.change=function(t){return void 0===t&&(t=20),t>0?this._change.pipe(s.auditTime(t)):this._change},t.prototype._updateViewportSize=function(){this._viewportSize={width:window.innerWidth,height:window.innerHeight}},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:n.Platform},{type:e.NgZone}]},t}();function m(t,e,n){return t||new f(e,n)}var g={provide:f,deps:[[new e.Optional,new e.SkipSelf,f],n.Platform,e.NgZone],useFactory:m},y=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[n.PlatformModule],exports:[d],declarations:[d],providers:[h]}]}],t.ctorParameters=function(){return[]},t}();t.DEFAULT_SCROLL_TIME=20,t.ScrollDispatcher=u,t.SCROLL_DISPATCHER_PROVIDER_FACTORY=p,t.SCROLL_DISPATCHER_PROVIDER=h,t.CdkScrollable=d,t.DEFAULT_RESIZE_TIME=20,t.ViewportRuler=f,t.VIEWPORT_RULER_PROVIDER_FACTORY=m,t.VIEWPORT_RULER_PROVIDER=g,t.ScrollDispatchModule=y,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("@angular/cdk/platform"),t("rxjs/Subject"),t("rxjs/Observable"),t("rxjs/observable/of"),t("rxjs/observable/fromEvent"),t("rxjs/operators/auditTime"),t("rxjs/operators/filter"),t("rxjs/observable/merge")):i((r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{},r.ng.cdk.scrolling=r.ng.cdk.scrolling||{}),r.ng.core,r.ng.cdk.platform,r.Rx,r.Rx,r.Rx.Observable,r.Rx.Observable,r.Rx.operators,r.Rx.operators,r.Rx.Observable)},{"@angular/cdk/platform":50,"@angular/core":58,"rxjs/Observable":68,"rxjs/Subject":72,"rxjs/observable/fromEvent":96,"rxjs/observable/merge":99,"rxjs/observable/of":100,"rxjs/operators/auditTime":116,"rxjs/operators/filter":125}],53:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i,o,a,s){"use strict";var c=function(){function t(t){this.template=t}return t.decorators=[{type:e.Directive,args:[{selector:"[cdkStepLabel]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}(),l=0,u=function(){return function(){}}(),p=function(){function t(t){this._stepper=t,this.interacted=!1,this._editable=!0,this._optional=!1,this._customCompleted=null}return Object.defineProperty(t.prototype,"editable",{get:function(){return this._editable},set:function(t){this._editable=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"optional",{get:function(){return this._optional},set:function(t){this._optional=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completed",{get:function(){return null==this._customCompleted?this._defaultCompleted:this._customCompleted},set:function(t){this._customCompleted=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_defaultCompleted",{get:function(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted},enumerable:!0,configurable:!0}),t.prototype.select=function(){this._stepper.selected=this},t.prototype.ngOnChanges=function(){this._stepper._stateChanged()},t.decorators=[{type:e.Component,args:[{selector:"cdk-step",exportAs:"cdkStep",template:"<ng-template><ng-content></ng-content></ng-template>",encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:h,decorators:[{type:e.Inject,args:[e.forwardRef(function(){return h})]}]}]},t.propDecorators={stepLabel:[{type:e.ContentChild,args:[c]}],content:[{type:e.ViewChild,args:[e.TemplateRef]}],stepControl:[{type:e.Input}],label:[{type:e.Input}],editable:[{type:e.Input}],optional:[{type:e.Input}],completed:[{type:e.Input}]},t}(),h=function(){function t(t,n){this._dir=t,this._changeDetectorRef=n,this._destroyed=new a.Subject,this._linear=!1,this._selectedIndex=0,this.selectionChange=new e.EventEmitter,this._focusIndex=0,this._orientation="horizontal",this._groupId=l++}return Object.defineProperty(t.prototype,"linear",{get:function(){return this._linear},set:function(t){this._linear=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(t){this._steps?this._anyControlsInvalidOrPending(t)||t<this._selectedIndex&&!this._steps.toArray()[t].editable?this._stepHeader.toArray()[t].nativeElement.blur():this._selectedIndex!=t&&(this._emitStepperSelectionEvent(t),this._focusIndex=this._selectedIndex):this._selectedIndex=this._focusIndex=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._steps.toArray()[this.selectedIndex]},set:function(t){this.selectedIndex=this._steps.toArray().indexOf(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},t.prototype.next=function(){this.selectedIndex=Math.min(this._selectedIndex+1,this._steps.length-1)},t.prototype.previous=function(){this.selectedIndex=Math.max(this._selectedIndex-1,0)},t.prototype._getStepLabelId=function(t){return"cdk-step-label-"+this._groupId+"-"+t},t.prototype._getStepContentId=function(t){return"cdk-step-content-"+this._groupId+"-"+t},t.prototype._stateChanged=function(){this._changeDetectorRef.markForCheck()},t.prototype._getAnimationDirection=function(t){var e=t-this._selectedIndex;return e<0?"rtl"===this._layoutDirection()?"next":"previous":e>0?"rtl"===this._layoutDirection()?"previous":"next":"current"},t.prototype._getIndicatorType=function(t){var e=this._steps.toArray()[t];return e.completed&&this._selectedIndex!=t?e.editable?"edit":"done":"number"},t.prototype._emitStepperSelectionEvent=function(t){var e=this._steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:e[t],previouslySelectedStep:e[this._selectedIndex]}),this._selectedIndex=t,this._stateChanged()},t.prototype._onKeydown=function(t){var e=t.keyCode;e===n.RIGHT_ARROW&&("rtl"===this._layoutDirection()?this._focusPreviousStep():this._focusNextStep(),t.preventDefault()),e===n.LEFT_ARROW&&("rtl"===this._layoutDirection()?this._focusNextStep():this._focusPreviousStep(),t.preventDefault()),"vertical"!==this._orientation||e!==n.UP_ARROW&&e!==n.DOWN_ARROW||(e===n.UP_ARROW?this._focusPreviousStep():this._focusNextStep(),t.preventDefault()),e!==n.SPACE&&e!==n.ENTER||(this.selectedIndex=this._focusIndex,t.preventDefault())},t.prototype._focusNextStep=function(){this._focusStep((this._focusIndex+1)%this._steps.length)},t.prototype._focusPreviousStep=function(){this._focusStep((this._focusIndex+this._steps.length-1)%this._steps.length)},t.prototype._focusStep=function(t){this._focusIndex=t,this._stepHeader.toArray()[this._focusIndex].nativeElement.focus()},t.prototype._anyControlsInvalidOrPending=function(t){var e=this._steps.toArray();return e[this._selectedIndex].interacted=!0,!!(this._linear&&t>=0)&&e.slice(0,t).some(function(t){var e=t.stepControl;return e?e.invalid||e.pending:!t.completed})},t.prototype._layoutDirection=function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},t.decorators=[{type:e.Directive,args:[{selector:"[cdkStepper]",exportAs:"cdkStepper"}]}],t.ctorParameters=function(){return[{type:o.Directionality,decorators:[{type:e.Optional}]},{type:e.ChangeDetectorRef}]},t.propDecorators={_steps:[{type:e.ContentChildren,args:[p]}],linear:[{type:e.Input}],selectedIndex:[{type:e.Input}],selected:[{type:e.Input}],selectionChange:[{type:e.Output}]},t}(),d=function(){function t(t){this._stepper=t}return t.decorators=[{type:e.Directive,args:[{selector:"button[cdkStepperNext]",host:{"(click)":"_stepper.next()"}}]}],t.ctorParameters=function(){return[{type:h}]},t}(),f=function(){function t(t){this._stepper=t}return t.decorators=[{type:e.Directive,args:[{selector:"button[cdkStepperPrevious]",host:{"(click)":"_stepper.previous()"}}]}],t.ctorParameters=function(){return[{type:h}]},t}(),m=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[o.BidiModule,s.CommonModule],exports:[p,h,c,d,f],declarations:[p,h,c,d,f]}]}],t.ctorParameters=function(){return[]},t}();t.StepperSelectionEvent=u,t.CdkStep=p,t.CdkStepper=h,t.CdkStepLabel=c,t.CdkStepperNext=d,t.CdkStepperPrevious=f,t.CdkStepperModule=m,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("@angular/cdk/keycodes"),t("@angular/cdk/coercion"),t("@angular/forms"),t("@angular/cdk/bidi"),t("rxjs/Subject"),t("@angular/common")):i((r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{},r.ng.cdk.stepper=r.ng.cdk.stepper||{}),r.ng.core,r.ng.cdk.keycodes,r.ng.cdk.coercion,r.ng.forms,r.ng.cdk.bidi,r.Rx,r.ng.common)},{"@angular/cdk/bidi":43,"@angular/cdk/coercion":44,"@angular/cdk/keycodes":46,"@angular/common":56,"@angular/core":58,"@angular/forms":59,"rxjs/Subject":72}],54:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i,o,a){"use strict";var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function c(t,e){function n(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var l="<ng-container cdkCellOutlet></ng-container>",u=function(){function t(t,e){this.template=t,this._differs=e}return t.prototype.ngOnChanges=function(t){var e=t.columns.currentValue||[];this._columnsDiffer||(this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e))},t.prototype.getColumnsDiff=function(){return this._columnsDiffer.diff(this.columns)},t}(),p=function(t){function n(e,n){return t.call(this,e,n)||this}return c(n,t),n.decorators=[{type:e.Directive,args:[{selector:"[cdkHeaderRowDef]",inputs:["columns: cdkHeaderRowDef"]}]}],n.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.IterableDiffers}]},n}(u),h=function(t){function n(e,n){return t.call(this,e,n)||this}return c(n,t),n.decorators=[{type:e.Directive,args:[{selector:"[cdkRowDef]",inputs:["columns: cdkRowDefColumns","when: cdkRowDefWhen"]}]}],n.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.IterableDiffers}]},n}(u),d=function(){function t(e){this._viewContainer=e,t.mostRecentCellOutlet=this}return t.mostRecentCellOutlet=null,t.decorators=[{type:e.Directive,args:[{selector:"[cdkCellOutlet]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef}]},t}(),f=function(){function t(){}return t.decorators=[{type:e.Component,args:[{selector:"cdk-header-row",template:l,host:{class:"cdk-header-row",role:"row"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],t.ctorParameters=function(){return[]},t}(),m=function(){function t(){}return t.decorators=[{type:e.Component,args:[{selector:"cdk-row",template:l,host:{class:"cdk-row",role:"row"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],t.ctorParameters=function(){return[]},t}(),g=function(){function t(t){this.template=t}return t.decorators=[{type:e.Directive,args:[{selector:"[cdkCellDef]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}(),y=function(){function t(t){this.template=t}return t.decorators=[{type:e.Directive,args:[{selector:"[cdkHeaderCellDef]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}(),v=function(){function t(){}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"))},enumerable:!0,configurable:!0}),t.decorators=[{type:e.Directive,args:[{selector:"[cdkColumnDef]"}]}],t.ctorParameters=function(){return[]},t.propDecorators={name:[{type:e.Input,args:["cdkColumnDef"]}],cell:[{type:e.ContentChild,args:[g]}],headerCell:[{type:e.ContentChild,args:[y]}]},t}(),b=function(){function t(t,e){e.nativeElement.classList.add("cdk-column-"+t.cssClassFriendlyName)}return t.decorators=[{type:e.Directive,args:[{selector:"cdk-header-cell",host:{class:"cdk-header-cell",role:"columnheader"}}]}],t.ctorParameters=function(){return[{type:v},{type:e.ElementRef}]},t}(),_=function(){function t(t,e){e.nativeElement.classList.add("cdk-column-"+t.cssClassFriendlyName)}return t.decorators=[{type:e.Directive,args:[{selector:"cdk-cell",host:{class:"cdk-cell",role:"gridcell"}}]}],t.ctorParameters=function(){return[{type:v},{type:e.ElementRef}]},t}();function w(t){return Error('Could not find column with id "'+t+'".')}var C=function(){function t(t){this.viewContainer=t}return t.decorators=[{type:e.Directive,args:[{selector:"[rowPlaceholder]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef}]},t}(),x=function(){function t(t){this.viewContainer=t}return t.decorators=[{type:e.Directive,args:[{selector:"[headerRowPlaceholder]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef}]},t}(),E="\n  <ng-container headerRowPlaceholder></ng-container>\n  <ng-container rowPlaceholder></ng-container>",S=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}c(e,t)}(e.EmbeddedViewRef),function(){function t(t,e,n,r){this._differs=t,this._changeDetectorRef=e,this._onDestroy=new o.Subject,this._data=[],this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._headerRowDefChanged=!1,this.viewChange=new i.BehaviorSubject({start:0,end:Number.MAX_VALUE}),r||n.nativeElement.setAttribute("role","grid")}return Object.defineProperty(t.prototype,"trackBy",{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)+"."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataSource",{get:function(){return this._dataSource},set:function(t){this._dataSource!==t&&this._switchDataSource(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._dataDiffer=this._differs.find([]).create(this._trackByFn),this._headerRowDef&&(this._headerRowDefChanged=!0)},t.prototype.ngAfterContentChecked=function(){if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDef&&!this._rowDefs.length)throw Error("Missing definitions for header and row, cannot determine which columns should be rendered.");this._renderUpdatedColumns(),this._headerRowDefChanged&&(this._renderHeaderRow(),this._headerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription&&this._observeRenderChanges()},t.prototype.ngOnDestroy=function(){this._rowPlaceholder.viewContainer.clear(),this._headerRowPlaceholder.viewContainer.clear(),this._onDestroy.next(),this._onDestroy.complete(),this.dataSource&&this.dataSource.disconnect(this)},t.prototype.setHeaderRowDef=function(t){this._headerRowDef=t,this._headerRowDefChanged=!0},t.prototype.addColumnDef=function(t){this._customColumnDefs.add(t)},t.prototype.removeColumnDef=function(t){this._customColumnDefs.delete(t)},t.prototype.addRowDef=function(t){this._customRowDefs.add(t)},t.prototype.removeRowDef=function(t){this._customRowDefs.delete(t)},t.prototype._cacheColumnDefs=function(){var t=this;this._columnDefsByName.clear();var e=this._contentColumnDefs?this._contentColumnDefs.toArray():[];this._customColumnDefs.forEach(function(t){return e.push(t)}),e.forEach(function(e){if(t._columnDefsByName.has(e.name))throw n=e.name,Error('Duplicate column definition name provided: "'+n+'".');var n;t._columnDefsByName.set(e.name,e)})},t.prototype._cacheRowDefs=function(){var t=this;this._rowDefs=this._contentRowDefs?this._contentRowDefs.toArray():[],this._customRowDefs.forEach(function(e){return t._rowDefs.push(e)});var e=this._rowDefs.filter(function(t){return!t.when});if(e.length>1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=e[0]},t.prototype._renderUpdatedColumns=function(){var t=this;this._rowDefs.forEach(function(e){e.getColumnsDiff()&&(t._dataDiffer.diff([]),t._rowPlaceholder.viewContainer.clear(),t._renderRowChanges())}),this._headerRowDef&&this._headerRowDef.getColumnsDiff()&&this._renderHeaderRow()},t.prototype._switchDataSource=function(t){this._data=[],this.dataSource&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||this._rowPlaceholder.viewContainer.clear(),this._dataSource=t},t.prototype._observeRenderChanges=function(){var t=this;this._renderChangeSubscription=this.dataSource.connect(this).pipe(r.takeUntil(this._onDestroy)).subscribe(function(e){t._data=e,t._renderRowChanges()})},t.prototype._renderHeaderRow=function(){this._headerRowPlaceholder.viewContainer.length>0&&this._headerRowPlaceholder.viewContainer.clear();var t=this._getHeaderCellTemplatesForRow(this._headerRowDef);t.length&&(this._headerRowPlaceholder.viewContainer.createEmbeddedView(this._headerRowDef.template,{cells:t}),t.forEach(function(t){d.mostRecentCellOutlet&&d.mostRecentCellOutlet._viewContainer.createEmbeddedView(t.template,{})}),this._changeDetectorRef.markForCheck())},t.prototype._renderRowChanges=function(){var t=this,e=this._dataDiffer.diff(this._data);if(e){var n=this._rowPlaceholder.viewContainer;e.forEachOperation(function(e,r,i){if(null==e.previousIndex)t._insertRow(e.item,i);else if(null==i)n.remove(r);else{var o=n.get(r);n.move(o,i)}}),this._updateRowIndexContext(),e.forEachIdentityChange(function(t){n.get(t.currentIndex).context.$implicit=t.item})}},t.prototype._getRowDef=function(t,e){if(1==this._rowDefs.length)return this._rowDefs[0];var n=this._rowDefs.find(function(n){return n.when&&n.when(e,t)})||this._defaultRowDef;if(!n)throw Error("Could not find a matching row definition for the provided row data.");return n},t.prototype._insertRow=function(t,e){var n=this._getRowDef(t,e),r={$implicit:t};this._rowPlaceholder.viewContainer.createEmbeddedView(n.template,r,e),this._getCellTemplatesForRow(n).forEach(function(t){d.mostRecentCellOutlet&&d.mostRecentCellOutlet._viewContainer.createEmbeddedView(t.template,r)}),this._changeDetectorRef.markForCheck()},t.prototype._updateRowIndexContext=function(){for(var t=this._rowPlaceholder.viewContainer,e=0,n=t.length;e<n;e++){var r=t.get(e);r.context.index=e,r.context.count=n,r.context.first=0===e,r.context.last=e===n-1,r.context.even=e%2==0,r.context.odd=!r.context.even}},t.prototype._getHeaderCellTemplatesForRow=function(t){var e=this;return t&&t.columns?t.columns.map(function(t){var n=e._columnDefsByName.get(t);if(!n)throw w(t);return n.headerCell}):[]},t.prototype._getCellTemplatesForRow=function(t){var e=this;return t.columns?t.columns.map(function(t){var n=e._columnDefsByName.get(t);if(!n)throw w(t);return n.cell}):[]},t.decorators=[{type:e.Component,args:[{selector:"cdk-table",exportAs:"cdkTable",template:E,host:{class:"cdk-table"},encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:e.IterableDiffers},{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:void 0,decorators:[{type:e.Attribute,args:["role"]}]}]},t.propDecorators={trackBy:[{type:e.Input}],dataSource:[{type:e.Input}],_rowPlaceholder:[{type:e.ViewChild,args:[C]}],_headerRowPlaceholder:[{type:e.ViewChild,args:[x]}],_contentColumnDefs:[{type:e.ContentChildren,args:[v]}],_contentRowDefs:[{type:e.ContentChildren,args:[h]}],_headerRowDef:[{type:e.ContentChild,args:[p]}]},t}()),k=[S,h,g,d,y,v,_,m,b,f,p,C,x],O=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule],exports:[k],declarations:[k]}]}],t.ctorParameters=function(){return[]},t}();t.DataSource=n.DataSource,t.RowPlaceholder=C,t.HeaderRowPlaceholder=x,t.CDK_TABLE_TEMPLATE=E,t.CdkTable=S,t.CdkCellDef=g,t.CdkHeaderCellDef=y,t.CdkColumnDef=v,t.CdkHeaderCell=b,t.CdkCell=_,t.CDK_ROW_TEMPLATE=l,t.BaseRowDef=u,t.CdkHeaderRowDef=p,t.CdkRowDef=h,t.CdkCellOutlet=d,t.CdkHeaderRow=f,t.CdkRow=m,t.CdkTableModule=O,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("@angular/cdk/collections"),t("rxjs/operators/takeUntil"),t("rxjs/BehaviorSubject"),t("rxjs/Subject"),t("@angular/common")):i((r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{},r.ng.cdk.table=r.ng.cdk.table||{}),r.ng.core,r.ng.cdk.collections,r.Rx.operators,r.Rx,r.Rx,r.ng.common)},{"@angular/cdk/collections":45,"@angular/common":56,"@angular/core":58,"rxjs/BehaviorSubject":65,"rxjs/Subject":72,"rxjs/operators/takeUntil":142}],55:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i,o,a,s,c){"use strict";var l=function(){return function(){}}(),u=function(){return function(){}}(),p=function(){function t(t){var e=this;this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){e.headers=new Map,t.split("\n").forEach(function(t){var n=t.indexOf(":");if(n>0){var r=t.slice(0,n),i=r.toLowerCase(),o=t.slice(n+1).trim();e.maybeSetNormalizedName(r,i),e.headers.has(i)?e.headers.get(i).push(o):e.headers.set(i,[o])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var r=t[n],i=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(i,r),e.maybeSetNormalizedName(n,i))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,n),this.headers.set(e,r);break;case"d":var i=t.value;if(i){var o=this.headers.get(e);if(!o)return;0===(o=o.filter(function(t){return-1===i.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),h=function(){function t(){}return t.prototype.encodeKey=function(t){return d(t)},t.prototype.encodeValue=function(t){return d(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function d(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var f=function(){function t(t){void 0===t&&(t={});var e,n,r,i=this;if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new h,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,r=new Map,e.length>0&&e.split("&").forEach(function(t){var e=t.indexOf("="),i=-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],o=i[0],a=i[1],s=r.get(o)||[];s.push(a),r.set(o,s)}),r)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(e){var n=t.fromObject[e];i.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],i=r.indexOf(e.value);-1!==i&&r.splice(i,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=null)},t}();function m(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function g(t){return"undefined"!=typeof Blob&&t instanceof Blob}function y(t){return"undefined"!=typeof FormData&&t instanceof FormData}var v=function(){function t(t,e,n,r){var i;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new p),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{var a=e.indexOf("?"),s=-1===a?"?":a<e.length-1?"&":"";this.urlWithParams=e+s+o}}else this.params=new f,this.urlWithParams=e}return t.prototype.serializeBody=function(){return null===this.body?null:m(this.body)||g(this.body)||y(this.body)||"string"==typeof this.body?this.body:this.body instanceof f?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()},t.prototype.detectContentTypeHeader=function(){return null===this.body?null:y(this.body)?null:g(this.body)?this.body.type||null:m(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof f?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null},t.prototype.clone=function(e){void 0===e&&(e={});var n=e.method||this.method,r=e.url||this.url,i=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,s=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,c=e.headers||this.headers,l=e.params||this.params;return void 0!==e.setHeaders&&(c=Object.keys(e.setHeaders).reduce(function(t,n){return t.set(n,e.setHeaders[n])},c)),e.setParams&&(l=Object.keys(e.setParams).reduce(function(t,n){return t.set(n,e.setParams[n])},l)),new t(n,r,o,{params:l,headers:c,reportProgress:s,responseType:i,withCredentials:a})},t}(),b={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};b[b.Sent]="Sent",b[b.UploadProgress]="UploadProgress",b[b.ResponseHeader]="ResponseHeader",b[b.DownloadProgress]="DownloadProgress",b[b.Response]="Response",b[b.User]="User";var _=function(){return function(t,e,n){void 0===e&&(e=200),void 0===n&&(n="OK"),this.headers=t.headers||new p,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}(),w=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=b.ResponseHeader,n}return a.__extends(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(_),C=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=b.Response,n.body=void 0!==e.body?e.body:null,n}return a.__extends(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(_),x=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.status>=200&&n.status<300?n.message="Http failure during parsing for "+(e.url||"(unknown url)"):n.message="Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return a.__extends(e,t),e}(_);function E(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var S=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,a){var s,c=this;if(void 0===a&&(a={}),t instanceof v)s=t;else{var l=void 0;l=a.headers instanceof p?a.headers:new p(a.headers);var u=void 0;a.params&&(u=a.params instanceof f?a.params:new f({fromObject:a.params})),s=new v(t,e,void 0!==a.body?a.body:null,{headers:l,params:u,reportProgress:a.reportProgress,responseType:a.responseType||"json",withCredentials:a.withCredentials})}var h=r.concatMap.call(n.of(s),function(t){return c.handler.handle(t)});if(t instanceof v||"events"===a.observe)return h;var d=i.filter.call(h,function(t){return t instanceof C});switch(a.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return o.map.call(d,function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body});case"blob":return o.map.call(d,function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body});case"text":return o.map.call(d,function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body});case"json":default:return o.map.call(d,function(t){return t.body})}case"response":return d;default:throw new Error("Unreachable: unhandled observe type "+a.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new f).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,E(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,E(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,E(n,e))},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:l}]},t}(),k=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),O=new e.InjectionToken("HTTP_INTERCEPTORS"),P=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}(),A=0,T=function(){return function(){}}(),M=function(){function t(t,e){this.callbackMap=t,this.document=e}return t.prototype.nextCallback=function(){return"ng_jsonp_callback_"+A++},t.prototype.handle=function(t){var e=this;if("JSONP"!==t.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==t.responseType)throw new Error("JSONP requests must use Json response type.");return new c.Observable(function(n){var r=e.nextCallback(),i=t.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,"="+r+"$1"),o=e.document.createElement("script");o.src=i;var a=null,s=!1,c=!1;e.callbackMap[r]=function(t){delete e.callbackMap[r],c||(a=t,s=!0)};var l=function(){o.parentNode&&o.parentNode.removeChild(o),delete e.callbackMap[r]},u=function(t){c||(l(),s?(n.next(new C({body:a,status:200,statusText:"OK",url:i})),n.complete()):n.error(new x({url:i,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")})))},p=function(t){c||(l(),n.error(new x({error:t,status:0,statusText:"JSONP Error",url:i})))};return o.addEventListener("load",u),o.addEventListener("error",p),e.document.body.appendChild(o),n.next({type:b.Sent}),function(){c=!0,o.removeEventListener("load",u),o.removeEventListener("error",p),l()}})},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:T},{type:void 0,decorators:[{type:e.Inject,args:[s.DOCUMENT]}]}]},t}(),I=function(){function t(t){this.jsonp=t}return t.prototype.intercept=function(t,e){return"JSONP"===t.method?this.jsonp.handle(t):e.handle(t)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:M}]},t}(),R=/^\)\]\}',?\n/;var D=function(){return function(){}}(),N=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}(),L=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new c.Observable(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var i=t.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(t.responseType){var o=t.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=t.serializeBody(),s=null,c=function(){if(null!==s)return s;var e,n=1223===r.status?204:r.status,i=r.statusText||"OK",o=new p(r.getAllResponseHeaders()),a=("responseURL"in(e=r)&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null)||t.url;return s=new w({headers:o,status:n,statusText:i,url:a})},l=function(){var e=c(),i=e.headers,o=e.status,a=e.statusText,s=e.url,l=null;204!==o&&(l=void 0===r.response?r.responseText:r.response),0===o&&(o=l?200:0);var u=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof l){var p=l;l=l.replace(R,"");try{l=""!==l?JSON.parse(l):null}catch(t){l=p,u&&(u=!1,l={error:t,text:l})}}u?(n.next(new C({body:l,headers:i,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new x({error:l,headers:i,status:o,statusText:a,url:s||void 0}))},u=function(t){var e=new x({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error"});n.error(e)},h=!1,d=function(e){h||(n.next(c()),h=!0);var i={type:b.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(i.total=e.total),"text"===t.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},f=function(t){var e={type:b.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",l),r.addEventListener("error",u),t.reportProgress&&(r.addEventListener("progress",d),null!==a&&r.upload&&r.upload.addEventListener("progress",f)),r.send(a),n.next({type:b.Sent}),function(){r.removeEventListener("error",u),r.removeEventListener("load",l),t.reportProgress&&(r.removeEventListener("progress",d),null!==a&&r.upload&&r.upload.removeEventListener("progress",f)),r.abort()}})},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:D}]},t}(),j=new e.InjectionToken("XSRF_COOKIE_NAME"),F=new e.InjectionToken("XSRF_HEADER_NAME"),V=function(){return function(){}}(),B=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=s.ɵparseCookieValue(t,this.cookieName),this.lastCookieString=t),this.lastToken},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[s.DOCUMENT]}]},{type:void 0,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:void 0,decorators:[{type:e.Inject,args:[j]}]}]},t}(),U=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:V},{type:void 0,decorators:[{type:e.Inject,args:[F]}]}]},t}();function H(t,e){return void 0===e&&(e=[]),e?e.reduceRight(function(t,e){return new k(t,e)},t):t}function z(){return"object"==typeof window?window:{}}var G=function(){function t(){}return t.disable=function(){return{ngModule:t,providers:[{provide:U,useClass:P}]}},t.withOptions=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[e.cookieName?{provide:j,useValue:e.cookieName}:[],e.headerName?{provide:F,useValue:e.headerName}:[]]}},t.decorators=[{type:e.NgModule,args:[{providers:[U,{provide:O,useExisting:U,multi:!0},{provide:V,useClass:B},{provide:j,useValue:"XSRF-TOKEN"},{provide:F,useValue:"X-XSRF-TOKEN"}]}]}],t.ctorParameters=function(){return[]},t}(),W=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[G.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})],providers:[S,{provide:l,useFactory:H,deps:[u,[new e.Optional,new e.Inject(O)]]},L,{provide:u,useExisting:L},N,{provide:D,useExisting:N}]}]}],t.ctorParameters=function(){return[]},t}(),q=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{providers:[M,{provide:T,useFactory:z},{provide:O,useClass:I,multi:!0}]}]}],t.ctorParameters=function(){return[]},t}();t.HttpBackend=u,t.HttpHandler=l,t.HttpClient=S,t.HttpHeaders=p,t.HTTP_INTERCEPTORS=O,t.JsonpClientBackend=M,t.JsonpInterceptor=I,t.HttpClientJsonpModule=q,t.HttpClientModule=W,t.HttpClientXsrfModule=G,t.ɵinterceptingHandler=H,t.HttpParams=f,t.HttpUrlEncodingCodec=h,t.HttpRequest=v,t.HttpErrorResponse=x,t.HttpEventType=b,t.HttpHeaderResponse=w,t.HttpResponse=C,t.HttpResponseBase=_,t.HttpXhrBackend=L,t.XhrFactory=D,t.HttpXsrfTokenExtractor=V,t.ɵa=P,t.ɵb=T,t.ɵc=z,t.ɵd=N,t.ɵg=B,t.ɵh=U,t.ɵe=j,t.ɵf=F,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("rxjs/observable/of"),t("rxjs/operator/concatMap"),t("rxjs/operator/filter"),t("rxjs/operator/map"),t("tslib"),t("@angular/common"),t("rxjs/Observable")):i((r.ng=r.ng||{},r.ng.common=r.ng.common||{},r.ng.common.http={}),r.ng.core,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.tslib,r.ng.common,r.Rx)},{"@angular/common":56,"@angular/core":58,"rxjs/Observable":68,"rxjs/observable/of":100,"rxjs/operator/concatMap":105,"rxjs/operator/filter":107,"rxjs/operator/map":110,tslib:171}],56:[function(t,e,n){var r,i;r=this,i=function(t,e){"use strict";var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function r(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o=function(){return function(){}}(),a=new e.InjectionToken("Location Initialized"),s=function(){return function(){}}(),c=new e.InjectionToken("appBaseHref"),l=function(){function t(n){var r=this;this._subject=new e.EventEmitter,this._platformStrategy=n;var i=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(u(i)),this._platformStrategy.onPopState(function(t){r._subject.emit({url:r.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=u(e),n&&r.startsWith(n)?r.substring(n.length):r));var n,r},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){var e=t.match(/#|\?|$/),n=e&&e.index||t.length,r=n-("/"===t[n-1]?1:0);return t.slice(0,r)+t.slice(n)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:s}]},t}();function u(t){return t.replace(/\/index.html$/,"")}var p=function(t){function n(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return r(n,t),n.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},n.prototype.getBaseHref=function(){return this._baseHref},n.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},n.prototype.prepareExternalUrl=function(t){var e=l.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},n.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},n.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},n.prototype.forward=function(){this._platformLocation.forward()},n.prototype.back=function(){this._platformLocation.back()},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:o},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[c]}]}]},n}(s),h=function(t){function n(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(n,t),n.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},n.prototype.getBaseHref=function(){return this._baseHref},n.prototype.prepareExternalUrl=function(t){return l.joinWithSlash(this._baseHref,t)},n.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+l.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},n.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));this._platformLocation.pushState(t,e,i)},n.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,i)},n.prototype.forward=function(){this._platformLocation.forward()},n.prototype.back=function(){this._platformLocation.back()},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:o},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[c]}]}]},n}(s),d={AOA:[,"Kz"],ARS:[,"$"],AUD:["A$","$"],BAM:[,"KM"],BBD:[,"$"],BDT:[,"৳"],BMD:[,"$"],BND:[,"$"],BOB:[,"Bs"],BRL:["R$"],BSD:[,"$"],BWP:[,"P"],BYN:[,"р."],BZD:[,"$"],CAD:["CA$","$"],CLP:[,"$"],CNY:["CN¥","¥"],COP:[,"$"],CRC:[,"₡"],CUC:[,"$"],CUP:[,"$"],CZK:[,"Kč"],DKK:[,"kr"],DOP:[,"$"],EGP:[,"E£"],ESP:[,"₧"],EUR:["€"],FJD:[,"$"],FKP:[,"£"],GBP:["£"],GEL:[,"₾"],GIP:[,"£"],GNF:[,"FG"],GTQ:[,"Q"],GYD:[,"$"],HKD:["HK$","$"],HNL:[,"L"],HRK:[,"kn"],HUF:[,"Ft"],IDR:[,"Rp"],ILS:["₪"],INR:["₹"],ISK:[,"kr"],JMD:[,"$"],JPY:["¥"],KHR:[,"៛"],KMF:[,"CF"],KPW:[,"₩"],KRW:["₩"],KYD:[,"$"],KZT:[,"₸"],LAK:[,"₭"],LBP:[,"L£"],LKR:[,"Rs"],LRD:[,"$"],LTL:[,"Lt"],LVL:[,"Ls"],MGA:[,"Ar"],MMK:[,"K"],MNT:[,"₮"],MUR:[,"Rs"],MXN:["MX$","$"],MYR:[,"RM"],NAD:[,"$"],NGN:[,"₦"],NIO:[,"C$"],NOK:[,"kr"],NPR:[,"Rs"],NZD:["NZ$","$"],PHP:[,"₱"],PKR:[,"Rs"],PLN:[,"zł"],PYG:[,"₲"],RON:[,"lei"],RUB:[,"₽"],RUR:[,"р."],RWF:[,"RF"],SBD:[,"$"],SEK:[,"kr"],SGD:[,"$"],SHP:[,"£"],SRD:[,"$"],SSP:[,"£"],STD:[,"Db"],SYP:[,"£"],THB:[,"฿"],TOP:[,"T$"],TRY:[,"₺"],TTD:[,"$"],TWD:["NT$","$"],UAH:[,"₴"],USD:["$"],UYU:[,"$"],VEF:[,"Bs"],VND:["₫"],XAF:["FCFA"],XCD:["EC$","$"],XOF:["CFA"],XPF:["CFPF"],ZAR:[,"R"],ZMW:[,"ZK"]};var f=["en",[["a","p"],["AM","PM"]],[["AM","PM"],,],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",,"{1} 'at' {0}"],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"$","US Dollar",function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],m={};function g(t,e,n){"string"!=typeof e&&(n=e,e=t[0]),e=e.toLowerCase().replace(/_/g,"-"),m[e]=t,n&&(m[e][18]=n)}var y={Decimal:0,Percent:1,Currency:2,Scientific:3};y[y.Decimal]="Decimal",y[y.Percent]="Percent",y[y.Currency]="Currency",y[y.Scientific]="Scientific";var v={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};v[v.Zero]="Zero",v[v.One]="One",v[v.Two]="Two",v[v.Few]="Few",v[v.Many]="Many",v[v.Other]="Other";var b={Format:0,Standalone:1};b[b.Format]="Format",b[b.Standalone]="Standalone";var _={Narrow:0,Abbreviated:1,Wide:2,Short:3};_[_.Narrow]="Narrow",_[_.Abbreviated]="Abbreviated",_[_.Wide]="Wide",_[_.Short]="Short";var w={Short:0,Medium:1,Long:2,Full:3};w[w.Short]="Short",w[w.Medium]="Medium",w[w.Long]="Long",w[w.Full]="Full";var C={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};C[C.Decimal]="Decimal",C[C.Group]="Group",C[C.List]="List",C[C.PercentSign]="PercentSign",C[C.PlusSign]="PlusSign",C[C.MinusSign]="MinusSign",C[C.Exponential]="Exponential",C[C.SuperscriptingExponent]="SuperscriptingExponent",C[C.PerMille]="PerMille",C[C.Infinity]="Infinity",C[C.NaN]="NaN",C[C.TimeSeparator]="TimeSeparator",C[C.CurrencyDecimal]="CurrencyDecimal",C[C.CurrencyGroup]="CurrencyGroup";var x={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6};function E(t){return B(t)[0]}function S(t,e,n){var r=B(t);return F(F([r[1],r[2]],e),n)}function k(t,e,n){var r=B(t);return F(F([r[3],r[4]],e),n)}function O(t,e,n){var r=B(t);return F(F([r[5],r[6]],e),n)}function P(t,e){return F(B(t)[7],e)}function A(t,e){return F(B(t)[10],e)}function T(t,e){return F(B(t)[11],e)}function M(t,e){return F(B(t)[12],e)}function I(t,e){var n=B(t),r=n[13][e];if(void 0===r){if(e===C.CurrencyDecimal)return n[13][C.Decimal];if(e===C.CurrencyGroup)return n[13][C.Group]}return r}function R(t,e){return B(t)[14][e]}function D(t){return B(t)[17]}function N(t){if(!t[18])throw new Error('Missing extra locale data for the locale "'+t[0]+'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.')}function L(t){var e=B(t);return N(e),(e[18][2]||[]).map(function(t){return"string"==typeof t?V(t):[V(t[0]),V(t[1])]})}function j(t,e,n){var r=B(t);return N(r),F(F([r[18][0],r[18][1]],e)||[],n)||[]}function F(t,e){for(var n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function V(t){var e=t.split(":");return{hours:+e[0],minutes:+e[1]}}function B(t){var e=t.toLowerCase().replace(/_/g,"-"),n=m[e];if(n)return n;var r=e.split("-")[0];if(n=m[r])return n;if("en"===r)return f;throw new Error('Missing locale data for the locale "'+t+'".')}function U(t,e){var n=d[t]||[],r=n[1];return"narrow"===e&&"string"==typeof r?r:n[0]||t}x[x.Sunday]="Sunday",x[x.Monday]="Monday",x[x.Tuesday]="Tuesday",x[x.Wednesday]="Wednesday",x[x.Thursday]="Thursday",x[x.Friday]="Friday",x[x.Saturday]="Saturday";var H=new e.InjectionToken("UseV4Plurals"),z=function(){return function(){}}();function G(t,e,n,r){var i="="+t;if(e.indexOf(i)>-1)return i;if(i=n.getPluralCategory(t,r),e.indexOf(i)>-1)return i;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}var W=function(t){function n(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return r(n,t),n.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):D(e||this.locale)(t)){case v.Zero:return"zero";case v.One:return"one";case v.Two:return"two";case v.Few:return"few";case v.Many:return"many";default:return"other"}},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[H]}]}]},n}(z);function q(t,e){"string"==typeof e&&(e=parseInt(e,10));var n=e,r=n.toString().replace(/^[^.]*\.?/,""),i=Math.floor(Math.abs(n)),o=r.length,a=parseInt(r,10),s=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(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?v.One:v.Other;case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?v.One:v.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===n?v.One:v.Other;case"ar":return 0===n?v.Zero:1===n?v.One:2===n?v.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?v.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?v.Many:v.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===i&&0===o?v.One:v.Other;case"be":return n%10==1&&n%100!=11?v.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?v.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?v.Many:v.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?v.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?v.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?v.Few:0!==n&&n%1e6==0?v.Many:v.Other;case"bs":case"hr":case"sr":return 0===o&&i%10==1&&i%100!=11||a%10==1&&a%100!=11?v.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)||a%10===Math.floor(a%10)&&a%10>=2&&a%10<=4&&!(a%100>=12&&a%100<=14)?v.Few:v.Other;case"cs":case"sk":return 1===i&&0===o?v.One:i===Math.floor(i)&&i>=2&&i<=4&&0===o?v.Few:0!==o?v.Many:v.Other;case"cy":return 0===n?v.Zero:1===n?v.One:2===n?v.Two:3===n?v.Few:6===n?v.Many:v.Other;case"da":return 1===n||0!==s&&(0===i||1===i)?v.One:v.Other;case"dsb":case"hsb":return 0===o&&i%100==1||a%100==1?v.One:0===o&&i%100==2||a%100==2?v.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||a%100===Math.floor(a%100)&&a%100>=3&&a%100<=4?v.Few:v.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?v.One:v.Other;case"fil":return 0===o&&(1===i||2===i||3===i)||0===o&&i%10!=4&&i%10!=6&&i%10!=9||0!==o&&a%10!=4&&a%10!=6&&a%10!=9?v.One:v.Other;case"ga":return 1===n?v.One:2===n?v.Two:n===Math.floor(n)&&n>=3&&n<=6?v.Few:n===Math.floor(n)&&n>=7&&n<=10?v.Many:v.Other;case"gd":return 1===n||11===n?v.One:2===n||12===n?v.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?v.Few:v.Other;case"gv":return 0===o&&i%10==1?v.One:0===o&&i%10==2?v.Two:0!==o||i%100!=0&&i%100!=20&&i%100!=40&&i%100!=60&&i%100!=80?0!==o?v.Many:v.Other:v.Few;case"he":return 1===i&&0===o?v.One:2===i&&0===o?v.Two:0!==o||n>=0&&n<=10||n%10!=0?v.Other:v.Many;case"is":return 0===s&&i%10==1&&i%100!=11||0!==s?v.One:v.Other;case"ksh":return 0===n?v.Zero:1===n?v.One:v.Other;case"kw":case"naq":case"se":case"smn":return 1===n?v.One:2===n?v.Two:v.Other;case"lag":return 0===n?v.Zero:0!==i&&1!==i||0===n?v.Other:v.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?v.Few:0!==a?v.Many:v.Other:v.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===o&&a%100===Math.floor(a%100)&&a%100>=11&&a%100<=19?v.Zero:n%10==1&&n%100!=11||2===o&&a%10==1&&a%100!=11||2!==o&&a%10==1?v.One:v.Other;case"mk":return 0===o&&i%10==1||a%10==1?v.One:v.Other;case"mt":return 1===n?v.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?v.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?v.Many:v.Other;case"pl":return 1===i&&0===o?v.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?v.Few:0===o&&1!==i&&i%10===Math.floor(i%10)&&i%10>=0&&i%10<=1||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=12&&i%100<=14?v.Many:v.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?v.One:v.Other;case"ro":return 1===i&&0===o?v.One:0!==o||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?v.Few:v.Other;case"ru":case"uk":return 0===o&&i%10==1&&i%100!=11?v.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?v.Few:0===o&&i%10==0||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=11&&i%100<=14?v.Many:v.Other;case"shi":return 0===i||1===n?v.One:n===Math.floor(n)&&n>=2&&n<=10?v.Few:v.Other;case"si":return 0===n||1===n||0===i&&1===a?v.One:v.Other;case"sl":return 0===o&&i%100==1?v.One:0===o&&i%100==2?v.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||0!==o?v.Few:v.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?v.One:v.Other;default:return v.Other}}var Y=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){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)})},t.decorators=[{type:e.Directive,args:[{selector:"[ngClass]"}]}],t.ctorParameters=function(){return[{type:e.IterableDiffers},{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer2}]},t.propDecorators={klass:[{type:e.Input,args:["class"]}],ngClass:[{type:e.Input}]},t}(),K=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 i=(this._moduleRef?this._moduleRef.componentFactoryResolver:n.get(e.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,n,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},t.decorators=[{type:e.Directive,args:[{selector:"[ngComponentOutlet]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef}]},t.propDecorators={ngComponentOutlet:[{type:e.Input}],ngComponentOutletInjector:[{type:e.Input}],ngComponentOutletContent:[{type:e.Input}],ngComponentOutletNgModuleFactory:[{type:e.Input}]},t}(),$=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}(),X=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 '"+((n=e).name||typeof n)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var n},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,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new $(null,e.ngForOf,-1,-1),i),a=new Q(t,o);n.push(a)}else if(null==i)e._viewContainer.remove(r);else{o=e._viewContainer.get(r);e._viewContainer.move(o,i);a=new Q(t,o);n.push(a)}});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);r=0;for(var i=this._viewContainer.length;r<i;r++){var o=this._viewContainer.get(r);o.context.index=r,o.context.count=i}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.decorators=[{type:e.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:e.IterableDiffers}]},t.propDecorators={ngForOf:[{type:e.Input}],ngForTrackBy:[{type:e.Input}],ngForTemplate:[{type:e.Input}]},t}(),Q=function(){return function(t,e){this.record=t,this.view=e}}();var Z=function(){function t(t,e){this._viewContainer=t,this._context=new J,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.decorators=[{type:e.Directive,args:[{selector:"[ngIf]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef}]},t.propDecorators={ngIf:[{type:e.Input}],ngIfThen:[{type:e.Input}],ngIfElse:[{type:e.Input}]},t}(),J=function(){return function(){this.$implicit=null,this.ngIf=null}}(),tt=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}(),et=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._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.decorators=[{type:e.Directive,args:[{selector:"[ngSwitch]"}]}],t.ctorParameters=function(){return[]},t.propDecorators={ngSwitch:[{type:e.Input}]},t}(),nt=function(){function t(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new tt(t,e)}return t.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},t.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchCase]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:et,decorators:[{type:e.Host}]}]},t.propDecorators={ngSwitchCase:[{type:e.Input}]},t}(),rt=function(){function t(t,e,n){n._addDefault(new tt(t,e))}return t.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchDefault]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:et,decorators:[{type:e.Host}]}]},t}(),it=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=G(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.decorators=[{type:e.Directive,args:[{selector:"[ngPlural]"}]}],t.ctorParameters=function(){return[{type:z}]},t.propDecorators={ngPlural:[{type:e.Input}]},t}(),ot=function(){function t(t,e,n,r){this.value=t;var i=!isNaN(Number(t));r.addCase(i?"="+t:t,new tt(n,e))}return t.decorators=[{type:e.Directive,args:[{selector:"[ngPluralCase]"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Attribute,args:["ngPluralCase"]}]},{type:e.TemplateRef},{type:e.ViewContainerRef},{type:it,decorators:[{type:e.Host}]}]},t}(),at=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],i=n[1];null!=(e=null!=e&&i?""+e+i:e)?this._renderer.setStyle(this._ngEl.nativeElement,r,e):this._renderer.removeStyle(this._ngEl.nativeElement,r)},t.decorators=[{type:e.Directive,args:[{selector:"[ngStyle]"}]}],t.ctorParameters=function(){return[{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer2}]},t.propDecorators={ngStyle:[{type:e.Input}]},t}(),st=function(){function t(t){this._viewContainerRef=t}return t.prototype.ngOnChanges=function(t){this._shouldRecreateView(t)?(this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))):this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)},t.prototype._shouldRecreateView=function(t){var e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)},t.prototype._hasContextShapeChanged=function(t){var e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(var r=0,i=n;r<i.length;r++){var o=i[r];if(-1===e.indexOf(o))return!0}return!1}return!0},t.prototype._updateExistingContext=function(t){for(var e=0,n=Object.keys(t);e<n.length;e++){var r=n[e];this._viewRef.context[r]=this.ngTemplateOutletContext[r]}},t.decorators=[{type:e.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef}]},t.propDecorators={ngTemplateOutletContext:[{type:e.Input}],ngTemplateOutlet:[{type:e.Input}]},t}(),ct=[Y,K,X,Z,st,at,et,nt,rt,it,ot],lt={},ut=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,pt={Short:0,ShortGMT:1,Long:2,Extended:3};pt[pt.Short]="Short",pt[pt.ShortGMT]="ShortGMT",pt[pt.Long]="Long",pt[pt.Extended]="Extended";var ht={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,Milliseconds:6,Day:7};ht[ht.FullYear]="FullYear",ht[ht.Month]="Month",ht[ht.Date]="Date",ht[ht.Hours]="Hours",ht[ht.Minutes]="Minutes",ht[ht.Seconds]="Seconds",ht[ht.Milliseconds]="Milliseconds",ht[ht.Day]="Day";var dt={DayPeriods:0,Days:1,Months:2,Eras:3};function ft(t,e,n,r){e=function t(e,n){var r=E(e);lt[r]=lt[r]||{};if(lt[r][n])return lt[r][n];var i="";switch(n){case"shortDate":i=A(e,w.Short);break;case"mediumDate":i=A(e,w.Medium);break;case"longDate":i=A(e,w.Long);break;case"fullDate":i=A(e,w.Full);break;case"shortTime":i=T(e,w.Short);break;case"mediumTime":i=T(e,w.Medium);break;case"longTime":i=T(e,w.Long);break;case"fullTime":i=T(e,w.Full);break;case"short":var o=t(e,"shortTime"),a=t(e,"shortDate");i=mt(M(e,w.Short),[o,a]);break;case"medium":var s=t(e,"mediumTime"),c=t(e,"mediumDate");i=mt(M(e,w.Medium),[s,c]);break;case"long":var l=t(e,"longTime"),u=t(e,"longDate");i=mt(M(e,w.Long),[l,u]);break;case"full":var p=t(e,"fullTime"),h=t(e,"fullDate");i=mt(M(e,w.Full),[p,h])}i&&(lt[r][n]=i);return i}(n,e)||e;for(var i,o=[];e;){if(!(i=ut.exec(e))){o.push(e);break}var a=(o=o.concat(i.slice(1))).pop();if(!a)break;e=a}var s,c,l,u,p,h,d,f=t.getTimezoneOffset();r&&(f=Et(r,f),s=t,c=r,l=!0?-1:1,u=s.getTimezoneOffset(),p=Et(c,u),h=s,d=l*(p-u),(h=new Date(h.getTime())).setMinutes(h.getMinutes()+d),t=h);var m="";return o.forEach(function(e){var r=function(t){if(xt[t])return xt[t];var e;switch(t){case"G":case"GG":case"GGG":e=vt(dt.Eras,_.Abbreviated);break;case"GGGG":e=vt(dt.Eras,_.Wide);break;case"GGGGG":e=vt(dt.Eras,_.Narrow);break;case"y":e=yt(ht.FullYear,1,0,!1,!0);break;case"yy":e=yt(ht.FullYear,2,0,!0,!0);break;case"yyy":e=yt(ht.FullYear,3,0,!1,!0);break;case"yyyy":e=yt(ht.FullYear,4,0,!1,!0);break;case"M":case"L":e=yt(ht.Month,1,1);break;case"MM":case"LL":e=yt(ht.Month,2,1);break;case"MMM":e=vt(dt.Months,_.Abbreviated);break;case"MMMM":e=vt(dt.Months,_.Wide);break;case"MMMMM":e=vt(dt.Months,_.Narrow);break;case"LLL":e=vt(dt.Months,_.Abbreviated,b.Standalone);break;case"LLLL":e=vt(dt.Months,_.Wide,b.Standalone);break;case"LLLLL":e=vt(dt.Months,_.Narrow,b.Standalone);break;case"w":e=Ct(1);break;case"ww":e=Ct(2);break;case"W":e=Ct(1,!0);break;case"d":e=yt(ht.Date,1);break;case"dd":e=yt(ht.Date,2);break;case"E":case"EE":case"EEE":e=vt(dt.Days,_.Abbreviated);break;case"EEEE":e=vt(dt.Days,_.Wide);break;case"EEEEE":e=vt(dt.Days,_.Narrow);break;case"EEEEEE":e=vt(dt.Days,_.Short);break;case"a":case"aa":case"aaa":e=vt(dt.DayPeriods,_.Abbreviated);break;case"aaaa":e=vt(dt.DayPeriods,_.Wide);break;case"aaaaa":e=vt(dt.DayPeriods,_.Narrow);break;case"b":case"bb":case"bbb":e=vt(dt.DayPeriods,_.Abbreviated,b.Standalone,!0);break;case"bbbb":e=vt(dt.DayPeriods,_.Wide,b.Standalone,!0);break;case"bbbbb":e=vt(dt.DayPeriods,_.Narrow,b.Standalone,!0);break;case"B":case"BB":case"BBB":e=vt(dt.DayPeriods,_.Abbreviated,b.Format,!0);break;case"BBBB":e=vt(dt.DayPeriods,_.Wide,b.Format,!0);break;case"BBBBB":e=vt(dt.DayPeriods,_.Narrow,b.Format,!0);break;case"h":e=yt(ht.Hours,1,-12);break;case"hh":e=yt(ht.Hours,2,-12);break;case"H":e=yt(ht.Hours,1);break;case"HH":e=yt(ht.Hours,2);break;case"m":e=yt(ht.Minutes,1);break;case"mm":e=yt(ht.Minutes,2);break;case"s":e=yt(ht.Seconds,1);break;case"ss":e=yt(ht.Seconds,2);break;case"S":e=yt(ht.Milliseconds,1);break;case"SS":e=yt(ht.Milliseconds,2);break;case"SSS":e=yt(ht.Milliseconds,3);break;case"Z":case"ZZ":case"ZZZ":e=bt(pt.Short);break;case"ZZZZZ":e=bt(pt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=bt(pt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=bt(pt.Long);break;default:return null}return xt[t]=e,e}(e);m+=r?r(t,n,f):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),m}function mt(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function gt(t,e,n,r,i){void 0===n&&(n="-");var o="";(t<0||i&&t<=0)&&(i?t=1-t:(t=-t,o=n));for(var a=""+t;a.length<e;)a="0"+a;return r&&(a=a.substr(a.length-e)),o+a}function yt(t,e,n,r,i){return void 0===n&&(n=0),void 0===r&&(r=!1),void 0===i&&(i=!1),function(o,a){var s=function(t,e,n){switch(t){case ht.FullYear:return e.getFullYear();case ht.Month:return e.getMonth();case ht.Date:return e.getDate();case ht.Hours:return e.getHours();case ht.Minutes:return e.getMinutes();case ht.Seconds:return e.getSeconds();case ht.Milliseconds:var r=1===n?100:2===n?10:1;return Math.round(e.getMilliseconds()/r);case ht.Day:return e.getDay();default:throw new Error('Unknown DateType value "'+t+'".')}}(t,o,e);return(n>0||s>-n)&&(s+=n),t===ht.Hours&&0===s&&-12===n&&(s=12),gt(s,e,I(a,C.MinusSign),r,i)}}function vt(t,e,n,r){return void 0===n&&(n=b.Format),void 0===r&&(r=!1),function(i,o){return function(t,e,n,r,i,o){switch(n){case dt.Months:return O(e,i,r)[t.getMonth()];case dt.Days:return k(e,i,r)[t.getDay()];case dt.DayPeriods:var a=t.getHours(),s=t.getMinutes();if(o){var c,l=L(e),u=j(e,i,r);if(l.forEach(function(t,e){if(Array.isArray(t)){var n=t[0],r=n.hours,i=n.minutes,o=t[1],l=o.hours,p=o.minutes;a>=r&&s>=i&&(a<l||a===l&&s<p)&&(c=u[e])}else{var h=t.hours,d=t.minutes;h===a&&d===s&&(c=u[e])}}),c)return c}return S(e,i,r)[a<12?0:1];case dt.Eras:return P(e,r)[t.getFullYear()<=0?0:1];default:var p=n;throw new Error("unexpected translation type "+p)}}(i,o,t,e,n,r)}}function bt(t){return function(e,n,r){var i=-1*r,o=I(n,C.MinusSign),a=i>0?Math.floor(i/60):Math.ceil(i/60);switch(t){case pt.Short:return(i>=0?"+":"")+gt(a,2,o)+gt(Math.abs(i%60),2,o);case pt.ShortGMT:return"GMT"+(i>=0?"+":"")+gt(a,1,o);case pt.Long:return"GMT"+(i>=0?"+":"")+gt(a,2,o)+":"+gt(Math.abs(i%60),2,o);case pt.Extended:return 0===r?"Z":(i>=0?"+":"")+gt(a,2,o)+":"+gt(Math.abs(i%60),2,o);default:throw new Error('Unknown zone width "'+t+'"')}}}dt[dt.DayPeriods]="DayPeriods",dt[dt.Days]="Days",dt[dt.Months]="Months",dt[dt.Eras]="Eras";var _t=0,wt=4;function Ct(t,e){return void 0===e&&(e=!1),function(n,r){var i,o,a,s;if(e){var c=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,l=n.getDate();i=1+Math.floor((l+c)/7)}else{var u=(a=n.getFullYear(),s=new Date(a,_t,1).getDay(),new Date(a,0,1+(s<=wt?wt:wt+7)-s)),p=(o=n,new Date(o.getFullYear(),o.getMonth(),o.getDate()+(wt-o.getDay()))).getTime()-u.getTime();i=1+Math.round(p/6048e5)}return gt(i,t,I(r,C.MinusSign))}}var xt={};function Et(t,e){t=t.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function St(t,n){return Error("InvalidPipeArgument: '"+n+"' for pipe '"+e.ɵstringify(t)+"'")}var kt=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ot=function(){function t(t){this.locale=t}return t.prototype.transform=function(e,n,r,i){if(void 0===n&&(n="mediumDate"),null==e||""===e||e!=e)return null;var o,a;if("string"==typeof e&&(e=e.trim()),At(e))o=e;else if(isNaN(e-parseFloat(e)))if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var s=e.split("-").map(function(t){return+t}),c=s[0],l=s[1],u=s[2];o=new Date(c,l-1,u)}else o="string"==typeof e&&(a=e.match(kt))?Pt(a):new Date(e);else o=new Date(parseFloat(e));if(!At(o))throw St(t,e);return ft(o,n,i||this.locale,r)},t.decorators=[{type:e.Pipe,args:[{name:"date",pure:!0}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}();function Pt(t){var e=new Date(0),n=0,r=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=+(t[9]+t[10]),r=+(t[9]+t[11])),i.call(e,+t[1],+t[2]-1,+t[3]);var a=+(t[4]||"0")-n,s=+(t[5]||"0")-r,c=+(t[6]||"0"),l=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,a,s,c,l),e}function At(t){return t instanceof Date&&!isNaN(t.valueOf())}var Tt,Mt=function(){function t(){}return t.format=function(t,e,n,r){void 0===r&&(r={});var i=r.minimumIntegerDigits,o=r.minimumFractionDigits,a=r.maximumFractionDigits,s=r.currency,c=r.currencyAsSymbol,l=void 0!==c&&c,u={minimumIntegerDigits:i,minimumFractionDigits:o,maximumFractionDigits:a,style:y[n].toLowerCase()};return n==y.Currency&&(u.currency="string"==typeof s?s:void 0,u.currencyDisplay=l?"symbol":"code"),new Intl.NumberFormat(e,u).format(t)},t}(),It=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,Rt={yMMMdjms:zt(Ht([Bt("year",1),Ut("month",3),Bt("day",1),Bt("hour",1),Bt("minute",1),Bt("second",1)])),yMdjm:zt(Ht([Bt("year",1),Bt("month",1),Bt("day",1),Bt("hour",1),Bt("minute",1)])),yMMMMEEEEd:zt(Ht([Bt("year",1),Ut("month",4),Ut("weekday",4),Bt("day",1)])),yMMMMd:zt(Ht([Bt("year",1),Ut("month",4),Bt("day",1)])),yMMMd:zt(Ht([Bt("year",1),Ut("month",3),Bt("day",1)])),yMd:zt(Ht([Bt("year",1),Bt("month",1),Bt("day",1)])),jms:zt(Ht([Bt("hour",1),Bt("second",1),Bt("minute",1)])),jm:zt(Ht([Bt("hour",1),Bt("minute",1)]))},Dt={yyyy:zt(Bt("year",4)),yy:zt(Bt("year",2)),y:zt(Bt("year",1)),MMMM:zt(Ut("month",4)),MMM:zt(Ut("month",3)),MM:zt(Bt("month",2)),M:zt(Bt("month",1)),LLLL:zt(Ut("month",4)),L:zt(Ut("month",1)),dd:zt(Bt("day",2)),d:zt(Bt("day",1)),HH:Nt(Lt(zt(Vt(Bt("hour",2),!1)))),H:Lt(zt(Vt(Bt("hour",1),!1))),hh:Nt(Lt(zt(Vt(Bt("hour",2),!0)))),h:Lt(zt(Vt(Bt("hour",1),!0))),jj:zt(Bt("hour",2)),j:zt(Bt("hour",1)),mm:Nt(zt(Bt("minute",2))),m:zt(Bt("minute",1)),ss:Nt(zt(Bt("second",2))),s:zt(Bt("second",1)),sss:zt(Bt("second",3)),EEEE:zt(Ut("weekday",4)),EEE:zt(Ut("weekday",3)),EE:zt(Ut("weekday",2)),E:zt(Ut("weekday",1)),a:(Tt=zt(Vt(Bt("hour",1),!0)),function(t,e){return Tt(t,e).split(" ")[1]}),Z:Ft("short"),z:Ft("long"),ww:zt({}),w:zt({}),G:zt(Ut("era",1)),GG:zt(Ut("era",2)),GGG:zt(Ut("era",3)),GGGG:zt(Ut("era",4))};function Nt(t){return function(e,n){var r=t(e,n);return 1==r.length?"0"+r:r}}function Lt(t){return function(e,n){return t(e,n).split(" ")[0]}}function jt(t,e,n){return new Intl.DateTimeFormat(e,n).format(t).replace(/[\u200e\u200f]/g,"")}function Ft(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,n){var r=jt(t,n,e);return r?r.substring(3):""}}function Vt(t,e){return t.hour12=e,t}function Bt(t,e){var n={};return n[t]=2===e?"2-digit":"numeric",n}function Ut(t,e){var n={};return n[t]=e<4?e>1?"short":"narrow":"long",n}function Ht(t){return t.reduce(function(t,e){return i({},t,e)},{})}function zt(t){return function(e,n){return jt(e,n,t)}}var Gt=new Map;var Wt=function(){function t(){}return t.format=function(t,e,n){return function(t,e,n){var r=Rt[t];if(r)return r(e,n);var i=t,o=Gt.get(i);if(!o){o=[];var a=void 0;It.exec(t);for(var s=t;s;)(a=It.exec(s))?s=(o=o.concat(a.slice(1))).pop():(o.push(s),s=null);Gt.set(i,o)}return o.reduce(function(t,r){var i,o=Dt[r];return t+(o?o(e,n):"''"===(i=r)?"'":i.replace(/(^'|'$)/g,"").replace(/''/g,"'"))},"")}(n,t,e)},t}(),qt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){if(void 0===n&&(n="mediumDate"),null==e||""===e||e!=e)return null;var r;if("string"==typeof e&&(e=e.trim()),Yt(e))r=e;else if(isNaN(e-parseFloat(e)))if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var i=e.split("-").map(function(t){return parseInt(t,10)}),o=i[0],a=i[1],s=i[2];r=new Date(o,a-1,s)}else r=new Date(e);else r=new Date(parseFloat(e));if(!Yt(r)){var c=void 0;if("string"!=typeof e||!(c=e.match(kt)))throw St(t,e);r=Pt(c)}return Wt.format(r,this._locale,t._ALIASES[n]||n)},t._ALIASES={medium:"yMMMdjms",short:"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},t.decorators=[{type:e.Pipe,args:[{name:"date",pure:!0}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}();function Yt(t){return t instanceof Date&&!isNaN(t.valueOf())}var Kt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,$t=22,Xt=".",Qt="0",Zt=";",Jt=",",te="#",ee="¤",ne="%";function re(t,e,n,r,i){void 0===i&&(i=null);var o,a={str:null},s=R(e,n);if("string"!=typeof t||isNaN(+t-parseFloat(t))){if("number"!=typeof t)return a.error=t+" is not a number",a;o=t}else o=+t;var c=function(t,e){void 0===e&&(e="-");var n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=t.split(Zt),i=r[0],o=r[1],a=-1!==i.indexOf(Xt)?i.split(Xt):[i.substring(0,i.lastIndexOf(Qt)+1),i.substring(i.lastIndexOf(Qt)+1)],s=a[0],c=a[1]||"";n.posPre=s.substr(0,s.indexOf(te));for(var l=0;l<c.length;l++){var u=c.charAt(l);u===Qt?n.minFrac=n.maxFrac=l+1:u===te?n.maxFrac=l+1:n.posSuf+=u}var p=s.split(Jt);if(n.gSize=p[1]?p[1].length:0,n.lgSize=p[2]||p[1]?(p[2]||p[1]).length:0,o){var h=i.length-n.posPre.length-n.posSuf.length,d=o.indexOf(te);n.negPre=o.substr(0,d).replace(/'/g,""),n.negSuf=o.substr(d+h).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}(s,I(e,C.MinusSign)),l="",u=!1;if(isFinite(o)){var p=function(t){var e,n,r,i,o,a=Math.abs(t)+"",s=0;(n=a.indexOf(Xt))>-1&&(a=a.replace(Xt,""));(r=a.search(/e/i))>0?(n<0&&(n=r),n+=+a.slice(r+1),a=a.substring(0,r)):n<0&&(n=a.length);for(r=0;a.charAt(r)===Qt;r++);if(r===(o=a.length))e=[0],n=1;else{for(o--;a.charAt(o)===Qt;)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=+a.charAt(r)}n>$t&&(e=e.splice(0,$t-1),s=n-1,n=1);return{digits:e,exponent:s,integerLen:n}}(o);n===y.Percent&&(p=function(t){if(0===t.digits[0])return t;var e=t.digits.length-t.integerLen;t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2);return t}(p));var h=c.minInt,d=c.minFrac,f=c.maxFrac;if(r){var m=r.match(Kt);if(null===m)return a.error=r+" is not a valid digit info",a;var g=m[1],v=m[3],b=m[5];null!=g&&(h=ie(g)),null!=v&&(d=ie(v)),null!=b?f=ie(b):null!=v&&d>f&&(f=d)}!function(t,e,n){if(e>n)throw new Error("The minimum number of digits after fraction ("+e+") is higher than the maximum ("+n+").");var r=t.digits,i=r.length-t.integerLen,o=Math.min(Math.max(e,i),n),a=o+t.integerLen,s=r[a];if(a>0){r.splice(Math.max(t.integerLen,a));for(var c=a;c<r.length;c++)r[c]=0}else{i=Math.max(0,i),t.integerLen=1,r.length=Math.max(1,a=o+1),r[0]=0;for(var l=1;l<a;l++)r[l]=0}if(s>=5)if(a-1<0){for(var u=0;u>a;u--)r.unshift(0),t.integerLen++;r.unshift(1),t.integerLen++}else r[a-1]++;for(;i<Math.max(0,o);i++)r.push(0);var p=0!==o,h=e+t.integerLen,d=r.reduceRight(function(t,e,n,r){return e+=t,r[n]=e<10?e:e-10,p&&(0===r[n]&&n>=h?r.pop():p=!1),e>=10?1:0},0);d&&(r.unshift(d),t.integerLen++)}(p,d,f);var _=p.digits,w=p.integerLen,x=p.exponent,E=[];for(u=_.every(function(t){return!t});w<h;w++)_.unshift(0);for(;w<0;w++)_.unshift(0);w>0?E=_.splice(w,_.length):(E=_,_=[0]);var S=[];for(_.length>=c.lgSize&&S.unshift(_.splice(-c.lgSize,_.length).join(""));_.length>c.gSize;)S.unshift(_.splice(-c.gSize,_.length).join(""));_.length&&S.unshift(_.join(""));var k=i?C.CurrencyGroup:C.Group;if(l=S.join(I(e,k)),E.length)l+=I(e,i?C.CurrencyDecimal:C.Decimal)+E.join("");x&&(l+=I(e,C.Exponential)+"+"+x)}else l=I(e,C.Infinity);return l=o<0&&!u?c.negPre+l+c.negSuf:c.posPre+l+c.posSuf,n===y.Currency&&null!==i?(a.str=l.replace(ee,i).replace(ee,""),a):n===y.Percent?(a.str=l.replace(new RegExp(ne,"g"),I(e,C.PercentSign)),a):(a.str=l,a)}function ie(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function oe(t,e,n,r,i,o,a){if(void 0===o&&(o=null),void 0===a&&(a=!1),null==n)return null;if("number"!=typeof(n="string"!=typeof n||isNaN(+n-parseFloat(n))?n:+n))throw St(t,n);var s,c,l;if(r!==y.Currency&&(s=1,c=0,l=3),i){var u=i.match(Kt);if(null===u)throw new Error(i+" is not a valid digit info for number pipes");null!=u[1]&&(s=ie(u[1])),null!=u[3]&&(c=ie(u[3])),null!=u[5]&&(l=ie(u[5]))}return Mt.format(n,e,r,{minimumIntegerDigits:s,minimumFractionDigits:c,maximumFractionDigits:l,currency:o,currencyAsSymbol:a})}var ae=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return oe(t,this._locale,e,y.Decimal,n)},t.decorators=[{type:e.Pipe,args:[{name:"number"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),se=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return oe(t,this._locale,e,y.Percent,n)},t.decorators=[{type:e.Pipe,args:[{name:"percent"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),ce=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n,r,i){return void 0===n&&(n="USD"),void 0===r&&(r=!1),oe(t,this._locale,e,y.Currency,i,n,r)},t.decorators=[{type:e.Pipe,args:[{name:"currency"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),le=[ae,se,ce,qt],ue=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}(),pe=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}()),he=new ue,de=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 pe;if(e.ɵisObservable(n))return he;throw St(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.decorators=[{type:e.Pipe,args:[{name:"async",pure:!1}]}],t.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]},t}(),fe=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw St(t,e);return e.toLowerCase()},t.decorators=[{type:e.Pipe,args:[{name:"lowercase"}]}],t.ctorParameters=function(){return[]},t}();var me=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw St(t,e);return e.split(/\b/g).map(function(t){return(e=t)?e[0].toUpperCase()+e.substr(1).toLowerCase():e;var e}).join("")},t.decorators=[{type:e.Pipe,args:[{name:"titlecase"}]}],t.ctorParameters=function(){return[]},t}(),ge=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw St(t,e);return e.toUpperCase()},t.decorators=[{type:e.Pipe,args:[{name:"uppercase"}]}],t.ctorParameters=function(){return[]},t}(),ye=/#/g,ve=function(){function t(t){this._localization=t}return t.prototype.transform=function(e,n,r){if(null==e)return"";if("object"!=typeof n||null===n)throw St(t,n);return n[G(e,Object.keys(n),this._localization,r)].replace(ye,e.toString())},t.decorators=[{type:e.Pipe,args:[{name:"i18nPlural",pure:!0}]}],t.ctorParameters=function(){return[{type:z}]},t}(),be=function(){function t(){}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw St(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""},t.decorators=[{type:e.Pipe,args:[{name:"i18nSelect",pure:!0}]}],t.ctorParameters=function(){return[]},t}(),_e=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t.decorators=[{type:e.Pipe,args:[{name:"json",pure:!1}]}],t.ctorParameters=function(){return[]},t}(),we=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n,r){if(Ee(e))return null;var i=re(e,r=r||this._locale,y.Decimal,n),o=i.str,a=i.error;if(a)throw St(t,a);return o},t.decorators=[{type:e.Pipe,args:[{name:"number"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),Ce=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n,r){if(Ee(e))return null;var i=re(e,r=r||this._locale,y.Percent,n),o=i.str,a=i.error;if(a)throw St(t,a);return o},t.decorators=[{type:e.Pipe,args:[{name:"percent"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),xe=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n,r,i,o){if(void 0===r&&(r="symbol"),Ee(e))return null;o=o||this._locale,"boolean"==typeof r&&(console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),r=r?"symbol":"code");var a=n||"USD";"code"!==r&&(a=U(a,"symbol"===r?"wide":"narrow"));var s=re(e,o,y.Currency,i,a),c=s.str,l=s.error;if(l)throw St(t,l);return c},t.decorators=[{type:e.Pipe,args:[{name:"currency"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}();function Ee(t){return null==t||""===t||t!=t}var Se=function(){function t(){}return t.prototype.transform=function(e,n,r){if(null==e)return e;if(!this.supports(e))throw St(t,e);return e.slice(n,r)},t.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},t.decorators=[{type:e.Pipe,args:[{name:"slice",pure:!1}]}],t.ctorParameters=function(){return[]},t}(),ke=[de,ge,fe,_e,Se,we,Ce,me,xe,Ot,ve,be],Oe=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[ct,ke],exports:[ct,ke],providers:[{provide:z,useClass:W}]}]}],t.ctorParameters=function(){return[]},t}(),Pe=q,Ae=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[le],exports:[le],providers:[{provide:H,useValue:Pe}]}]}],t.ctorParameters=function(){return[]},t}(),Te=new e.InjectionToken("DocumentToken"),Me="browser",Ie="server",Re="browserWorkerApp",De="browserWorkerUi";var Ne=new e.Version("5.2.2");t.ɵregisterLocaleData=g,t.NgLocaleLocalization=W,t.NgLocalization=z,t.registerLocaleData=g,t.Plural=v,t.NumberFormatStyle=y,t.FormStyle=b,t.TranslationWidth=_,t.FormatWidth=w,t.NumberSymbol=C,t.WeekDay=x,t.getCurrencySymbol=U,t.getLocaleDayPeriods=S,t.getLocaleDayNames=k,t.getLocaleMonthNames=O,t.getLocaleId=E,t.getLocaleEraNames=P,t.getLocaleWeekEndRange=function(t){return B(t)[9]},t.getLocaleFirstDayOfWeek=function(t){return B(t)[8]},t.getLocaleDateFormat=A,t.getLocaleDateTimeFormat=M,t.getLocaleExtraDayPeriodRules=L,t.getLocaleExtraDayPeriods=j,t.getLocalePluralCase=D,t.getLocaleTimeFormat=T,t.getLocaleNumberSymbol=I,t.getLocaleNumberFormat=R,t.getLocaleCurrencyName=function(t){return B(t)[16]||null},t.getLocaleCurrencySymbol=function(t){return B(t)[15]||null},t.ɵparseCookieValue=function(t,e){e=encodeURIComponent(e);for(var n=0,r=t.split(";");n<r.length;n++){var i=r[n],o=i.indexOf("="),a=-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],s=a[1];if(a[0].trim()===e)return decodeURIComponent(s)}return null},t.CommonModule=Oe,t.DeprecatedI18NPipesModule=Ae,t.NgClass=Y,t.NgForOf=X,t.NgForOfContext=$,t.NgIf=Z,t.NgIfContext=J,t.NgPlural=it,t.NgPluralCase=ot,t.NgStyle=at,t.NgSwitch=et,t.NgSwitchCase=nt,t.NgSwitchDefault=rt,t.NgTemplateOutlet=st,t.NgComponentOutlet=K,t.DOCUMENT=Te,t.AsyncPipe=de,t.DatePipe=Ot,t.I18nPluralPipe=ve,t.I18nSelectPipe=be,t.JsonPipe=_e,t.LowerCasePipe=fe,t.CurrencyPipe=xe,t.DecimalPipe=we,t.PercentPipe=Ce,t.SlicePipe=Se,t.UpperCasePipe=ge,t.TitleCasePipe=me,t.DeprecatedDatePipe=qt,t.DeprecatedCurrencyPipe=ce,t.DeprecatedDecimalPipe=ae,t.DeprecatedPercentPipe=se,t.ɵPLATFORM_BROWSER_ID=Me,t.ɵPLATFORM_SERVER_ID=Ie,t.ɵPLATFORM_WORKER_APP_ID=Re,t.ɵPLATFORM_WORKER_UI_ID=De,t.isPlatformBrowser=function(t){return t===Me},t.isPlatformServer=function(t){return t===Ie},t.isPlatformWorkerApp=function(t){return t===Re},t.isPlatformWorkerUi=function(t){return t===De},t.VERSION=Ne,t.PlatformLocation=o,t.LOCATION_INITIALIZED=a,t.LocationStrategy=s,t.APP_BASE_HREF=c,t.HashLocationStrategy=p,t.PathLocationStrategy=h,t.Location=l,t.ɵe=ct,t.ɵd=B,t.ɵa=H,t.ɵb=q,t.ɵg=le,t.ɵf=ke,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core")):i((r.ng=r.ng||{},r.ng.common={}),r.ng.core)},{"@angular/core":58}],57:[function(t,e,n){var r;r=this,function(t){"use strict";var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function n(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t};var i=M("Inject",function(t){return{token:t}}),o=M("InjectionToken",function(t){return{_desc:t}});var a=M("Attribute",function(t){return{attributeName:t}});var s=M("ContentChildren",function(t,e){return void 0===e&&(e={}),r({selector:t,first:!1,isViewQuery:!1,descendants:!1},e)}),c=M("ContentChild",function(t,e){return void 0===e&&(e={}),r({selector:t,first:!0,isViewQuery:!1,descendants:!0},e)}),l=M("ViewChildren",function(t,e){return void 0===e&&(e={}),r({selector:t,first:!1,isViewQuery:!0,descendants:!0},e)}),u=M("ViewChild",function(t,e){return r({selector:t,first:!0,isViewQuery:!0,descendants:!0},e)});var p=M("Directive",function(t){return void 0===t&&(t={}),t});var h={Emulated:0,Native:1,None:2};h[h.Emulated]="Emulated",h[h.Native]="Native",h[h.None]="None";var d={OnPush:0,Default:1};d[d.OnPush]="OnPush",d[d.Default]="Default";var f=M("Component",function(t){return void 0===t&&(t={}),r({changeDetection:d.Default},t)});var m=M("Pipe",function(t){return r({pure:!0},t)});var g=M("Input",function(t){return{bindingPropertyName:t}});var y=M("Output",function(t){return{bindingPropertyName:t}});var v=M("HostBinding",function(t){return{hostPropertyName:t}});var b=M("HostListener",function(t,e){return{eventName:t,args:e}});var _=M("NgModule",function(t){return t});var w={name:"custom-elements"},C={name:"no-errors-schema"},x=M("Optional"),E=M("Injectable"),S=M("Self"),k=M("SkipSelf"),O=M("Host"),P=Function,A={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};A[A.NONE]="NONE",A[A.HTML]="HTML",A[A.STYLE]="STYLE",A[A.SCRIPT]="SCRIPT",A[A.URL]="URL",A[A.RESOURCE_URL]="RESOURCE_URL";var T={Error:0,Warning:1,Ignore:2};function M(t,e){var n=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=e?e.apply(void 0,n):{};return r({ngMetadataName:t},o)};return n.isTypeOf=function(e){return e&&e.ngMetadataName===t},n.ngMetadataName=t,n}T[T.Error]="Error",T[T.Warning]="Warning",T[T.Ignore]="Ignore";var I=Object.freeze({Inject:function(){},createInject:i,createInjectionToken:o,Attribute:function(){},createAttribute:a,Query:function(){},createContentChildren:s,createContentChild:c,createViewChildren:l,createViewChild:u,Directive:function(){},createDirective:p,Component:function(){},ViewEncapsulation:h,ChangeDetectionStrategy:d,createComponent:f,Pipe:function(){},createPipe:m,Input:function(){},createInput:g,Output:function(){},createOutput:y,HostBinding:function(){},createHostBinding:v,HostListener:function(){},createHostListener:b,NgModule:function(){},createNgModule:_,ModuleWithProviders:function(){},SchemaMetadata:function(){},CUSTOM_ELEMENTS_SCHEMA:w,NO_ERRORS_SCHEMA:C,createOptional:x,createInjectable:E,createSelf:S,createSkipSelf:k,createHost:O,Type:P,SecurityContext:A,NodeFlags:{None:0,TypeElement:1,TypeText:2,ProjectedTemplate:4,CatRenderNode:3,TypeNgContent:8,TypePipe:16,TypePureArray:32,TypePureObject:64,TypePurePipe:128,CatPureExpression:224,TypeValueProvider:256,TypeClassProvider:512,TypeFactoryProvider:1024,TypeUseExistingProvider:2048,LazyProvider:4096,PrivateProvider:8192,TypeDirective:16384,Component:32768,CatProviderNoDirective:3840,CatProvider:20224,OnInit:65536,OnDestroy:131072,DoCheck:262144,OnChanges:524288,AfterContentInit:1048576,AfterContentChecked:2097152,AfterViewInit:4194304,AfterViewChecked:8388608,EmbeddedViews:16777216,ComponentView:33554432,TypeContentQuery:67108864,TypeViewQuery:134217728,StaticQuery:268435456,DynamicQuery:536870912,CatQuery:201326592,Types:201347067},DepFlags:{None:0,SkipSelf:1,Optional:2,Value:8},ArgumentType:{Inline:0,Dynamic:1},BindingFlags:{TypeElementAttribute:1,TypeElementClass:2,TypeElementStyle:4,TypeProperty:8,SyntheticProperty:16,SyntheticHostProperty:32,CatSyntheticProperty:48,Types:15},QueryBindingType:{First:0,All:1},QueryValueType:{ElementRef:0,RenderElement:1,TemplateRef:2,ViewContainerRef:3,Provider:4},ViewFlags:{None:0,OnPush:2},MissingTranslationStrategy:T,MetadataFactory:function(){},Route:function(){}}),R=/-+([a-z0-9])/g;function D(t,e){return N(t,":",e)}function N(t,e,n){var r=t.indexOf(e);return-1==r?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function L(t,e,n){return Array.isArray(t)?e.visitArray(t,n):"object"==typeof(r=t)&&null!==r&&Object.getPrototypeOf(r)===Y?e.visitStringMap(t,n):null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t?e.visitPrimitive(t,n):e.visitOther(t,n);var r}function j(t){return null!==t&&void 0!==t}function F(t){return void 0===t?null:t}var V=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return t.map(function(t){return L(t,n,e)})},t.prototype.visitStringMap=function(t,e){var n=this,r={};return Object.keys(t).forEach(function(i){r[i]=L(t[i],n,e)}),r},t.prototype.visitPrimitive=function(t,e){return t},t.prototype.visitOther=function(t,e){return t},t}(),B=function(t){if(Q(t))throw new Error("Illegal state: value cannot be a promise");return t},U=function(t,e){return Q(t)?t.then(e):e(t)},H=function(t){return t.some(Q)?Promise.all(t):t};function z(t,e){var n=Error(t);return n[G]=!0,e&&(n[W]=e),n}var G="ngSyntaxError",W="ngParseErrors";function q(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}var Y=Object.getPrototypeOf({});function K(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 i=t.charCodeAt(n+1);i>=56320&&i<=57343&&(n++,r=(r-55296<<10)+i-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 $(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map($).join(", ")+"]";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 X(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")?t():t}function Q(t){return!!t&&"function"==typeof t.then}var Z=function(){return function(t){this.full=t;var e=t.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}}(),J=new Z("5.2.2"),tt=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}(),et=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}(),nt=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}(),rt=function(){function t(t,e,n,r,i,o){this.name=t,this.type=e,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o,this.isAnimation=this.type===ft.Animation}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},t}(),it=function(){function t(e,n,r,i,o){this.name=e,this.target=n,this.phase=r,this.handler=i,this.sourceSpan=o,this.fullName=t.calcFullName(this.name,this.target,this.phase),this.isAnimation=!!this.phase}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)},t}(),ot=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}(),at=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}(),st=function(){function t(t,e,n,r,i,o,a,s,c,l,u,p,h){this.name=t,this.attrs=e,this.inputs=n,this.outputs=r,this.references=i,this.directives=o,this.providers=a,this.hasViewContainer=s,this.queryMatches=c,this.children=l,this.ngContentIndex=u,this.sourceSpan=p,this.endSourceSpan=h}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),ct=function(){function t(t,e,n,r,i,o,a,s,c,l,u){this.attrs=t,this.outputs=e,this.references=n,this.variables=r,this.directives=i,this.providers=o,this.hasViewContainer=a,this.queryMatches=s,this.children=c,this.ngContentIndex=l,this.sourceSpan=u}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}(),lt=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}(),ut=function(){function t(t,e,n,r,i,o){this.directive=t,this.inputs=e,this.hostProperties=n,this.hostEvents=r,this.contentQueryStartId=i,this.sourceSpan=o}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),pt=function(){function t(t,e,n,r,i,o,a){this.token=t,this.multiProvider=e,this.eager=n,this.providers=r,this.providerType=i,this.lifecycleHooks=o,this.sourceSpan=a}return t.prototype.visit=function(t,e){return null},t}(),ht={PublicService:0,PrivateService:1,Component:2,Directive:3,Builtin:4};ht[ht.PublicService]="PublicService",ht[ht.PrivateService]="PrivateService",ht[ht.Component]="Component",ht[ht.Directive]="Directive",ht[ht.Builtin]="Builtin";var dt=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}(),ft={Property:0,Attribute:1,Class:2,Style:3,Animation:4};ft[ft.Property]="Property",ft[ft.Attribute]="Attribute",ft[ft.Class]="Class",ft[ft.Style]="Style",ft[ft.Animation]="Animation";var mt=function(){function t(){}return t.prototype.visitNgContent=function(t,e){},t.prototype.visitEmbeddedTemplate=function(t,e){},t.prototype.visitElement=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.prototype.visitBoundText=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitDirective=function(t,e){},t.prototype.visitDirectiveProperty=function(t,e){},t}(),gt=function(t){function e(){return t.call(this)||this}return n(e,t),e.prototype.visitEmbeddedTemplate=function(t,e){return this.visitChildren(e,function(e){e(t.attrs),e(t.references),e(t.variables),e(t.directives),e(t.providers),e(t.children)})},e.prototype.visitElement=function(t,e){return this.visitChildren(e,function(e){e(t.attrs),e(t.inputs),e(t.outputs),e(t.references),e(t.directives),e(t.providers),e(t.children)})},e.prototype.visitDirective=function(t,e){return this.visitChildren(e,function(e){e(t.inputs),e(t.hostProperties),e(t.hostEvents)})},e.prototype.visitChildren=function(t,e){var n=[],r=this;return e(function(e){e&&e.length&&n.push(yt(r,e,t))}),[].concat.apply([],n)},e}(mt);function yt(t,e,n){void 0===n&&(n=null);var r=[],i=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=i(t);e&&r.push(e)}),r}var vt=function(){return function(t){var e=void 0===t?{}:t,n=e.defaultEncapsulation,r=void 0===n?h.Emulated:n,i=e.useJit,o=void 0===i||i,a=e.jitDevMode,s=void 0!==a&&a,c=e.missingTranslation,l=void 0===c?null:c,u=e.enableLegacyTemplate,p=e.preserveWhitespaces,d=e.strictInjectionParameters;this.defaultEncapsulation=r,this.useJit=!!o,this.jitDevMode=!!s,this.missingTranslation=l,this.enableLegacyTemplate=!0===u,this.preserveWhitespaces=bt(F(p)),this.strictInjectionParameters=!0===d}}();function bt(t,e){return void 0===e&&(e=!0),null===t?e:t}var _t=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}(),wt=function(){function t(){this.cache=new Map}return t.prototype.get=function(t,e,n){var r='"'+t+'".'+e+((n=n||[]).length?"."+n.join("."):""),i=this.cache.get(r);return i||(i=new _t(t,e,n),this.cache.set(r,i)),i},t}(),Ct=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function xt(t){return t.replace(/\W/g,"_")}var Et=0;function St(t){if(!t||!t.reference)return null;var e=t.reference;if(e instanceof _t)return e.name;if(e.__anonymousType)return e.__anonymousType;var n=$(e);return n.indexOf("(")>=0?(n="anonymous_"+Et++,e.__anonymousType=n):n=xt(n),n}function kt(t){var e=t.reference;return e instanceof _t?e.filePath:"./"+$(e)}function Ot(t,e){return"View_"+St({reference:t})+"_"+e}function Pt(t){return"RenderType_"+St({reference:t})}function At(t){return"HostView_"+St({reference:t})}function Tt(t){return St({reference:t})+"NgFactory"}var Mt={Pipe:0,Directive:1,NgModule:2,Injectable:3};function It(t){return null!=t.value?xt(t.value):St(t.identifier)}function Rt(t){return null!=t.identifier?t.identifier.reference:t.value}Mt[Mt.Pipe]="Pipe",Mt[Mt.Directive]="Directive",Mt[Mt.NgModule]="NgModule",Mt[Mt.Injectable]="Injectable";var Dt=function(){return function(t){var e=void 0===t?{}:t,n=e.moduleUrl,r=e.styles,i=e.styleUrls;this.moduleUrl=n||null,this.styles=Bt(r),this.styleUrls=Bt(i)}}(),Nt=function(){function t(t){var e=t.encapsulation,n=t.template,r=t.templateUrl,i=t.htmlAst,o=t.styles,a=t.styleUrls,s=t.externalStylesheets,c=t.animations,l=t.ngContentSelectors,u=t.interpolation,p=t.isInline,h=t.preserveWhitespaces;if(this.encapsulation=e,this.template=n,this.templateUrl=r,this.htmlAst=i,this.styles=Bt(o),this.styleUrls=Bt(a),this.externalStylesheets=Bt(s),this.animations=c?Ht(c):[],this.ngContentSelectors=l||[],u&&2!=u.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=u,this.isInline=p,this.preserveWhitespaces=h}return t.prototype.toSummary=function(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},t}(),Lt=function(){function t(t){var e=t.isHost,n=t.type,r=t.isComponent,i=t.selector,o=t.exportAs,a=t.changeDetection,s=t.inputs,c=t.outputs,l=t.hostListeners,u=t.hostProperties,p=t.hostAttributes,h=t.providers,d=t.viewProviders,f=t.queries,m=t.guards,g=t.viewQueries,y=t.entryComponents,v=t.template,b=t.componentViewType,_=t.rendererType,w=t.componentFactory;this.isHost=!!e,this.type=n,this.isComponent=r,this.selector=i,this.exportAs=o,this.changeDetection=a,this.inputs=s,this.outputs=c,this.hostListeners=l,this.hostProperties=u,this.hostAttributes=p,this.providers=Bt(h),this.viewProviders=Bt(d),this.queries=Bt(f),this.guards=m,this.viewQueries=Bt(g),this.entryComponents=Bt(y),this.template=v,this.componentViewType=b,this.rendererType=_,this.componentFactory=w}return t.create=function(e){var n=e.isHost,r=e.type,i=e.isComponent,o=e.selector,a=e.exportAs,s=e.changeDetection,c=e.inputs,l=e.outputs,u=e.host,p=e.providers,h=e.viewProviders,d=e.queries,f=e.guards,m=e.viewQueries,g=e.entryComponents,y=e.template,v=e.componentViewType,b=e.rendererType,_=e.componentFactory,w={},C={},x={};null!=u&&Object.keys(u).forEach(function(t){var e=u[t],n=t.match(Ct);null===n?x[t]=e:null!=n[1]?C[n[1]]=e:null!=n[2]&&(w[n[2]]=e)});var E={};null!=c&&c.forEach(function(t){var e=D(t,[t,t]);E[e[0]]=e[1]});var S={};return null!=l&&l.forEach(function(t){var e=D(t,[t,t]);S[e[0]]=e[1]}),new t({isHost:n,type:r,isComponent:!!i,selector:o,exportAs:a,changeDetection:s,inputs:E,outputs:S,hostListeners:w,hostProperties:C,hostAttributes:x,providers:p,viewProviders:h,queries:d,guards:f,viewQueries:m,entryComponents:g,template:y,componentViewType:v,rendererType:b,componentFactory:_})},t.prototype.toSummary=function(){return{summaryKind:Mt.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,guards:this.guards,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}(),jt=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:Mt.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),Ft=function(){function t(t){var e=t.type,n=t.providers,r=t.declaredDirectives,i=t.exportedDirectives,o=t.declaredPipes,a=t.exportedPipes,s=t.entryComponents,c=t.bootstrapComponents,l=t.importedModules,u=t.exportedModules,p=t.schemas,h=t.transitiveModule,d=t.id;this.type=e||null,this.declaredDirectives=Bt(r),this.exportedDirectives=Bt(i),this.declaredPipes=Bt(o),this.exportedPipes=Bt(a),this.providers=Bt(n),this.entryComponents=Bt(s),this.bootstrapComponents=Bt(c),this.importedModules=Bt(l),this.exportedModules=Bt(u),this.schemas=Bt(p),this.id=d||null,this.transitiveModule=h||null}return t.prototype.toSummary=function(){var t=this.transitiveModule;return{summaryKind:Mt.NgModule,type:this.type,entryComponents:t.entryComponents,providers:t.providers,modules:t.modules,exportedDirectives:t.exportedDirectives,exportedPipes:t.exportedPipes}},t}(),Vt=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}();function Bt(t){return t||[]}var Ut=function(){return function(t,e){var n=e.useClass,r=e.useValue,i=e.useExisting,o=e.useFactory,a=e.deps,s=e.multi;this.token=t,this.useClass=n||null,this.useValue=r,this.useExisting=i,this.useFactory=o||null,this.dependencies=a||null,this.multi=!!s}}();function Ht(t){return t.reduce(function(t,e){var n=Array.isArray(e)?Ht(e):e;return t.concat(n)},[])}function zt(t){return t.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function Gt(t,e,n){var r;return r=n.isInline?e.type.reference instanceof _t?e.type.reference.filePath+"."+e.type.reference.name+".html":St(t)+"/"+St(e.type)+".html":n.templateUrl,e.type.reference instanceof _t?r:zt(r)}function Wt(t,e){var n=t.moduleUrl.split(/\/\\/g);return zt("css/"+e+n[n.length-1]+".ngstyle.js")}function qt(t){return zt(St(t.type)+"/module.ngfactory.js")}function Yt(t,e){return zt(St(t)+"/"+St(e.type)+".ngfactory.js")}var Kt=function(){function t(t,e){void 0===e&&(e=-1),this.path=t,this.position=e}return Object.defineProperty(t.prototype,"empty",{get:function(){return!this.path||!this.path.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"head",{get:function(){return this.path[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tail",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t.prototype.parentOf=function(t){return t&&this.path[this.path.indexOf(t)-1]},t.prototype.childOf=function(t){return this.path[this.path.indexOf(t)+1]},t.prototype.first=function(t){for(var e=this.path.length-1;e>=0;e--){var n=this.path[e];if(n instanceof t)return n}},t.prototype.push=function(t){this.path.push(t)},t.prototype.pop=function(){return this.path.pop()},t}(),$t=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Xt=function(){function t(t,e,n,r,i){this.switchValue=t,this.type=e,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansion(this,e)},t}(),Qt=function(){function t(t,e,n,r,i){this.value=t,this.expression=e,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansionCase(this,e)},t}(),Zt=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}(),Jt=function(){function t(t,e,n,r,i,o){void 0===i&&(i=null),void 0===o&&(o=null),this.name=t,this.attrs=e,this.children=n,this.sourceSpan=r,this.startSourceSpan=i,this.endSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),te=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}();function ee(t,e,n){void 0===n&&(n=null);var r=[],i=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=i(t);e&&r.push(e)}),r}var ne=function(){function t(){}return t.prototype.visitElement=function(t,e){this.visitChildren(e,function(e){e(t.attrs),e(t.children)})},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){return this.visitChildren(e,function(e){e(t.cases)})},t.prototype.visitExpansionCase=function(t,e){},t.prototype.visitChildren=function(t,e){var n=[],r=this;return e(function(e){e&&n.push(ee(r,e,t))}),[].concat.apply([],n)},t}();function re(t,e){if(null!=e){if(!Array.isArray(e))throw new Error("Expected '"+t+"' to be an array of strings.");for(var n=0;n<e.length;n+=1)if("string"!=typeof e[n])throw new Error("Expected '"+t+"' to be an array of strings.")}}var ie=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function oe(t,e){if(!(null==e||Array.isArray(e)&&2==e.length))throw new Error("Expected '"+t+"' to be an array, [start, end].");if(null!=e){var n=e[0],r=e[1];ie.forEach(function(t){if(t.test(n)||t.test(r))throw new Error("['"+n+"', '"+r+"'] contains unusable interpolation symbol.")})}}var ae=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(oe("interpolation",e),new t(e[0],e[1])):se},t}(),se=new ae("{{","}}"),ce=function(){return function(t,e){this.style=t,this.styleUrls=e}}();function le(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(he);return null===e||"package"==e[1]||"asset"==e[1]}var ue=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,pe=/\/\*(?!#\s*(?:sourceURL|sourceMappingURL)=)[\s\S]+?\*\//g,he=/^([^:/?#]+):/,de={RAW_TEXT:0,ESCAPABLE_RAW_TEXT:1,PARSABLE_DATA:2};function fe(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 me(t){return"ng-container"===fe(t)[1]}function ge(t){return"ng-content"===fe(t)[1]}function ye(t){return"ng-template"===fe(t)[1]}function ve(t){return null===t?null:fe(t)[0]}function be(t,e){return t?":"+t+":"+e:e}de[de.RAW_TEXT]="RAW_TEXT",de[de.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",de[de.PARSABLE_DATA]="PARSABLE_DATA";var _e={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:"‌"},we="";_e.ngsp=we;var Ce="select",xe="link",Ee="rel",Se="href",ke="stylesheet",Oe="style",Pe="script",Ae="ngNonBindable",Te="ngProjectAs";function Me(t){var e=null,n=null,r=null,i=!1,o=null;t.attrs.forEach(function(t){var a=t.name.toLowerCase();a==Ce?e=t.value:a==Se?n=t.value:a==Ee?r=t.value:t.name==Ae?i=!0:t.name==Te&&t.value.length>0&&(o=t.value)}),e=function(t){if(null===t||0===t.length)return"*";return t}(e);var a=t.name.toLowerCase(),s=Ie.OTHER;return ge(a)?s=Ie.NG_CONTENT:a==Oe?s=Ie.STYLE:a==Pe?s=Ie.SCRIPT:a==xe&&r==ke&&(s=Ie.STYLESHEET),new Re(s,e,n,i,o)}var Ie={NG_CONTENT:0,STYLE:1,STYLESHEET:2,SCRIPT:3,OTHER:4};Ie[Ie.NG_CONTENT]="NG_CONTENT",Ie[Ie.STYLE]="STYLE",Ie[Ie.STYLESHEET]="STYLESHEET",Ie[Ie.SCRIPT]="SCRIPT",Ie[Ie.OTHER]="OTHER";var Re=function(){return function(t,e,n,r,i){this.type=t,this.selectAttr=e,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i}}();var De=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 e=this;if(j(t.template)){if(j(t.templateUrl))throw z("'"+$(t.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof t.template)throw z("The template specified for component "+$(t.componentType)+" is not a string")}else{if(!j(t.templateUrl))throw z("No template specified for component "+$(t.componentType));if("string"!=typeof t.templateUrl)throw z("The templateUrl specified for component "+$(t.componentType)+" is not a string")}if(j(t.preserveWhitespaces)&&"boolean"!=typeof t.preserveWhitespaces)throw z("The preserveWhitespaces option for component "+$(t.componentType)+" must be a boolean");return U(this._preParseTemplate(t),function(n){return e._normalizeTemplateMetadata(t,n)})},t.prototype._preParseTemplate=function(t){var e,n,r=this;return null!=t.template?(e=t.template,n=t.moduleUrl):(n=this._urlResolver.resolve(t.moduleUrl,t.templateUrl),e=this._fetch(n)),U(e,function(e){return r._preparseLoadedTemplate(t,e,n)})},t.prototype._preparseLoadedTemplate=function(t,e,n){var r=!!t.template,i=ae.fromArray(t.interpolation),o=this._htmlParser.parse(e,Gt({reference:t.ngModuleType},{type:{reference:t.componentType}},{isInline:r,templateUrl:n}),!0,i);if(o.errors.length>0)throw z("Template parse errors:\n"+o.errors.join("\n"));var a=this._normalizeStylesheet(new Dt({styles:t.styles,moduleUrl:t.moduleUrl})),s=new Ne;ee(s,o.rootNodes);var c=this._normalizeStylesheet(new Dt({styles:s.styles,styleUrls:s.styleUrls,moduleUrl:n}));return{template:e,templateUrl:n,isInline:r,htmlAst:o,styles:a.styles.concat(c.styles),inlineStyleUrls:a.styleUrls.concat(c.styleUrls),styleUrls:this._normalizeStylesheet(new Dt({styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})).styleUrls,ngContentSelectors:s.ngContentSelectors}},t.prototype._normalizeTemplateMetadata=function(t,e){var n=this;return U(this._loadMissingExternalStylesheets(e.styleUrls.concat(e.inlineStyleUrls)),function(r){return n._normalizeLoadedTemplateMetadata(t,e,r)})},t.prototype._normalizeLoadedTemplateMetadata=function(t,e,n){var r=this,i=e.styles.slice();this._inlineStyles(e.inlineStyleUrls,n,i);var o=e.styleUrls,a=o.map(function(t){var e=n.get(t),i=e.styles.slice();return r._inlineStyles(e.styleUrls,n,i),new Dt({moduleUrl:t,styles:i})}),s=t.encapsulation;return null==s&&(s=this._config.defaultEncapsulation),s===h.Emulated&&0===i.length&&0===o.length&&(s=h.None),new Nt({encapsulation:s,template:e.template,templateUrl:e.templateUrl,htmlAst:e.htmlAst,styles:i,styleUrls:o,ngContentSelectors:e.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:e.isInline,externalStylesheets:a,preserveWhitespaces:bt(t.preserveWhitespaces,this._config.preserveWhitespaces)})},t.prototype._inlineStyles=function(t,e,n){var r=this;t.forEach(function(t){var i=e.get(t);i.styles.forEach(function(t){return n.push(t)}),r._inlineStyles(i.styleUrls,e,n)})},t.prototype._loadMissingExternalStylesheets=function(t,e){var n=this;return void 0===e&&(e=new Map),U(H(t.filter(function(t){return!e.has(t)}).map(function(t){return U(n._fetch(t),function(r){var i=n._normalizeStylesheet(new Dt({styles:[r],moduleUrl:t}));return e.set(t,i),n._loadMissingExternalStylesheets(i.styleUrls,e)})})),function(t){return e})},t.prototype._normalizeStylesheet=function(t){var e=this,n=t.moduleUrl,r=t.styleUrls.filter(le).map(function(t){return e._urlResolver.resolve(n,t)}),i=t.styles.map(function(t){var i,o,a,s,c=(i=e._urlResolver,o=n,a=[],s=t.replace(pe,"").replace(ue,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[1]||t[2];return le(n)?(a.push(i.resolve(o,n)),""):t[0]}),new ce(s,a));return r.push.apply(r,c.styleUrls),c.style});return new Dt({styles:i,styleUrls:r,moduleUrl:n})},t}(),Ne=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 Ie.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case Ie.STYLE:var r="";t.children.forEach(function(t){t instanceof $t&&(r+=t.value)}),this.styles.push(r);break;case Ie.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,ee(this,t.children),n.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t,e){ee(this,t.cases)},t.prototype.visitExpansionCase=function(t,e){ee(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}(),Le=[u,l,c,s],je=function(){function t(t){this._reflector=t}return t.prototype.isDirective=function(t){var e=this._reflector.annotations(X(t));return e&&e.some(Fe)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=this._reflector.annotations(X(t));if(n){var r=Ve(n,Fe);if(r){var i=this._reflector.propMetadata(t),o=this._reflector.guards(t);return this._mergeWithPropertyMetadata(r,i,o,t)}}if(e)throw new Error("No Directive annotation found on "+$(t));return null},t.prototype._mergeWithPropertyMetadata=function(t,e,n,r){var i=[],o=[],a={},s={};return Object.keys(e).forEach(function(t){var n=Ve(e[t],function(t){return g.isTypeOf(t)});n&&(n.bindingPropertyName?i.push(t+": "+n.bindingPropertyName):i.push(t));var r=Ve(e[t],function(t){return y.isTypeOf(t)});r&&(r.bindingPropertyName?o.push(t+": "+r.bindingPropertyName):o.push(t)),e[t].filter(function(t){return v.isTypeOf(t)}).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>'.");a["["+e.hostPropertyName+"]"]=t}else a["["+t+"]"]=t}),e[t].filter(function(t){return b.isTypeOf(t)}).forEach(function(e){var n=e.args||[];a["("+e.eventName+")"]=t+"("+n.join(",")+")"});var c=Ve(e[t],function(t){return Le.some(function(e){return e.isTypeOf(t)})});c&&(s[t]=c)}),this._merge(t,i,o,a,s,n,r)},t.prototype._extractPublicName=function(t){return D(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,n=new Set,r=[],i=t.length-1;i>=0;i--){var o=t[i],a=this._extractPublicName(o);n.add(a),e.has(a)||(e.add(a),r.push(o))}return r.reverse()},t.prototype._merge=function(t,e,n,i,o,a,s){var c=this._dedupeBindings(t.inputs?t.inputs.concat(e):e),l=this._dedupeBindings(t.outputs?t.outputs.concat(n):n),u=t.host?r({},t.host,i):i,h=t.queries?r({},t.queries,o):o;if(f.isTypeOf(t)){var d=t;return f({selector:d.selector,inputs:c,outputs:l,host:u,exportAs:d.exportAs,moduleId:d.moduleId,queries:h,changeDetection:d.changeDetection,providers:d.providers,viewProviders:d.viewProviders,entryComponents:d.entryComponents,template:d.template,templateUrl:d.templateUrl,styles:d.styles,styleUrls:d.styleUrls,encapsulation:d.encapsulation,animations:d.animations,interpolation:d.interpolation,preserveWhitespaces:t.preserveWhitespaces})}return p({selector:t.selector,inputs:c,outputs:l,host:u,exportAs:t.exportAs,queries:h,providers:t.providers,guards:a})},t}();function Fe(t){return p.isTypeOf(t)||f.isTypeOf(t)}function Ve(t,e){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return t[n];return null}var Be=0,Ue=9,He=10,ze=11,Ge=12,We=13,qe=32,Ye=34,Ke=36,$e=39,Xe=43,Qe=45,Ze=47,Je=59,tn=61,en=62,nn=48,rn=57,on=65,an=69,sn=70,cn=90,ln=95,un=97,pn=101,hn=102,dn=110,fn=114,mn=116,gn=118,yn=122,vn=123,bn=160,_n=96;function wn(t){return t>=Ue&&t<=qe||t==bn}function Cn(t){return nn<=t&&t<=rn}function xn(t){return t>=un&&t<=yn||t>=on&&t<=cn}var En={Character:0,Identifier:1,Keyword:2,String:3,Operator:4,Number:5,Error:6};En[En.Character]="Character",En[En.Identifier]="Identifier",En[En.Keyword]="Keyword",En[En.String]="String",En[En.Operator]="Operator",En[En.Number]="Number",En[En.Error]="Error";var Sn=["var","let","as","null","undefined","true","false","if","else","this"],kn=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new Mn(t),n=[],r=e.scanToken();null!=r;)n.push(r),r=e.scanToken();return n},t}(),On=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==En.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==En.Number},t.prototype.isString=function(){return this.type==En.String},t.prototype.isOperator=function(t){return this.type==En.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==En.Identifier},t.prototype.isKeyword=function(){return this.type==En.Keyword},t.prototype.isKeywordLet=function(){return this.type==En.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==En.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==En.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==En.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==En.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==En.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==En.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==En.Error},t.prototype.toNumber=function(){return this.type==En.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case En.Character:case En.Identifier:case En.Keyword:case En.Operator:case En.String:case En.Error:return this.strValue;case En.Number:return this.numValue.toString();default:return null}},t}();function Pn(t,e){return new On(t,En.Character,e,String.fromCharCode(e))}function An(t,e){return new On(t,En.Operator,0,e)}var Tn=new On(-1,En.Character,0,""),Mn=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?Be:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,n=this.peek,r=this.index;n<=qe;){if(++r>=e){n=Be;break}n=t.charCodeAt(r)}if(this.peek=n,this.index=r,r>=e)return null;if(In(n))return this.scanIdentifier();if(Cn(n))return this.scanNumber(r);var i=r;switch(n){case 46:return this.advance(),Cn(this.peek)?this.scanNumber(i):Pn(i,46);case 40:case 41:case vn:case 125:case 91:case 93:case 44:case 58:case Je:return this.scanCharacter(i,n);case $e:case Ye:return this.scanString();case 35:case Xe:case Qe:case 42:case Ze:case 37:case 94:return this.scanOperator(i,String.fromCharCode(n));case 63:return this.scanComplexOperator(i,"?",46,".");case 60:case en:return this.scanComplexOperator(i,String.fromCharCode(n),tn,"=");case 33:case tn:return this.scanComplexOperator(i,String.fromCharCode(n),tn,"=",tn,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case bn:for(;wn(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(),Pn(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),An(t,e)},t.prototype.scanComplexOperator=function(t,e,n,r,i,o){this.advance();var a=e;return this.peek==n&&(this.advance(),a+=r),null!=i&&this.peek==i&&(this.advance(),a+=o),An(t,a)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();Dn(this.peek);)this.advance();var e,n,r=this.input.substring(t,this.index);return Sn.indexOf(r)>-1?(n=r,new On(t,En.Keyword,0,n)):(e=r,new On(t,En.Identifier,0,e))},t.prototype.scanNumber=function(t){var e,n,r=this.index===t;for(this.advance();;){if(Cn(this.peek));else if(46==this.peek)r=!1;else{if((n=this.peek)!=pn&&n!=an)break;if(this.advance(),((e=this.peek)==Qe||e==Xe)&&this.advance(),!Cn(this.peek))return this.error("Invalid exponent",-1);r=!1}this.advance()}var i,o=this.input.substring(t,this.index),a=r?function(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}(o):parseFloat(o);return i=a,new On(t,En.Number,i,"")},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var n="",r=this.index,i=this.input;this.peek!=e;)if(92==this.peek){n+=i.substring(r,this.index),this.advance();var o=void 0;if(this.peek=this.peek,117==this.peek){var a=i.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(a))return this.error("Invalid unicode escape [\\u"+a+"]",0);o=parseInt(a,16);for(var s=0;s<5;s++)this.advance()}else o=Ln(this.peek),this.advance();n+=String.fromCharCode(o),r=this.index}else{if(this.peek==Be)return this.error("Unterminated quote",0);this.advance()}var c,l=i.substring(r,this.index);return this.advance(),c=n+l,new On(t,En.String,0,c)},t.prototype.error=function(t,e){var n,r,i=this.index+e;return n=i,r="Lexer Error: "+t+" at column "+i+" in expression ["+this.input+"]",new On(n,En.Error,0,r)},t}();function In(t){return un<=t&&t<=yn||on<=t&&t<=cn||t==ln||t==Ke}function Rn(t){if(0==t.length)return!1;var e=new Mn(t);if(!In(e.peek))return!1;for(e.advance();e.peek!==Be;){if(!Dn(e.peek))return!1;e.advance()}return!0}function Dn(t){return xn(t)||Cn(t)||t==ln||t==Ke}function Nn(t){return t===$e||t===Ye||t===_n}function Ln(t){switch(t){case dn:return He;case hn:return Ge;case fn:return We;case mn:return Ue;case gn:return ze;default:return t}}var jn=function(){return function(t,e,n,r){this.input=e,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+t+" "+n+" ["+e+"] in "+r}}(),Fn=function(){return function(t,e){this.start=t,this.end=e}}(),Vn=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}(),Bn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.prefix=n,o.uninterpretedExpression=r,o.location=i,o}return n(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}(Vn),Un=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(Vn),Hn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(Vn),zn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(Vn),Gn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.condition=n,o.trueExp=r,o.falseExp=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(Vn),Wn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(Vn),qn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.value=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(Vn),Yn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(Vn),Kn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.obj=n,i.key=r,i}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(Vn),$n=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.obj=n,o.key=r,o.value=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(Vn),Xn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.exp=n,o.name=r,o.args=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(Vn),Qn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(Vn),Zn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(Vn),Jn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keys=n,i.values=r,i}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(Vn),tr=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.strings=n,i.expressions=r,i}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(Vn),er=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.operation=n,o.left=r,o.right=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(Vn),nr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(Vn),rr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitNonNullAssert(this,e)},e}(Vn),ir=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.args=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(Vn),or=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.args=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(Vn),ar=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.target=n,i.args=r,i}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(Vn),sr=function(t){function e(e,n,r,i){var o=t.call(this,new Fn(0,null==n?0:n.length))||this;return o.ast=e,o.source=n,o.location=r,o.errors=i,o}return n(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}(Vn),cr=function(){return function(t,e,n,r,i){this.span=t,this.key=e,this.keyIsVar=n,this.name=r,this.expression=i}}(),lr=function(){function t(){}return t.prototype.visitBinary=function(t,e){},t.prototype.visitChain=function(t,e){},t.prototype.visitConditional=function(t,e){},t.prototype.visitFunctionCall=function(t,e){},t.prototype.visitImplicitReceiver=function(t,e){},t.prototype.visitInterpolation=function(t,e){},t.prototype.visitKeyedRead=function(t,e){},t.prototype.visitKeyedWrite=function(t,e){},t.prototype.visitLiteralArray=function(t,e){},t.prototype.visitLiteralMap=function(t,e){},t.prototype.visitLiteralPrimitive=function(t,e){},t.prototype.visitMethodCall=function(t,e){},t.prototype.visitPipe=function(t,e){},t.prototype.visitPrefixNot=function(t,e){},t.prototype.visitNonNullAssert=function(t,e){},t.prototype.visitPropertyRead=function(t,e){},t.prototype.visitPropertyWrite=function(t,e){},t.prototype.visitQuote=function(t,e){},t.prototype.visitSafeMethodCall=function(t,e){},t.prototype.visitSafePropertyRead=function(t,e){},t}(),ur=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.visitNonNullAssert=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}(),pr=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t,e){return t},t.prototype.visitInterpolation=function(t,e){return new tr(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t,e){return new Qn(t.span,t.value)},t.prototype.visitPropertyRead=function(t,e){return new Wn(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t,e){return new qn(t.span,t.receiver.visit(this),t.name,t.value.visit(this))},t.prototype.visitSafePropertyRead=function(t,e){return new Yn(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t,e){return new ir(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t,e){return new or(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t,e){return new ar(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t,e){return new Zn(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t,e){return new Jn(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t,e){return new er(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t,e){return new nr(t.span,t.expression.visit(this))},t.prototype.visitNonNullAssert=function(t,e){return new rr(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t,e){return new Gn(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t,e){return new Xn(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t,e){return new Kn(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t,e){return new $n(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 zn(t.span,this.visitAll(t.expressions))},t.prototype.visitQuote=function(t,e){return new Bn(t.span,t.prefix,t.uninterpretedExpression,t.location)},t}();var hr=function(){return function(t,e,n){this.strings=t,this.expressions=e,this.offsets=n}}(),dr=function(){return function(t,e,n){this.templateBindings=t,this.warnings=e,this.errors=n}}();function fr(t){var e=q(t.start)+"([\\s\\S]*?)"+q(t.end);return new RegExp(e,"g")}var mr=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,n){void 0===n&&(n=se),this._checkNoInterpolation(t,e,n);var r=this._stripComments(t),i=this._lexer.tokenize(this._stripComments(t)),o=new gr(t,e,i,r.length,!0,this.errors,t.length-r.length).parseChain();return new sr(o,t,e,this.errors)},t.prototype.parseBinding=function(t,e,n){void 0===n&&(n=se);var r=this._parseBindingAst(t,e,n);return new sr(r,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,n){void 0===n&&(n=se);var r=this._parseBindingAst(t,e,n),i=yr.check(r);return i.length>0&&this._reportError("Host binding expression cannot contain "+i.join(" "),t,e),new sr(r,t,e,this.errors)},t.prototype._reportError=function(t,e,n,r){this.errors.push(new jn(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 i=this._stripComments(t),o=this._lexer.tokenize(i);return new gr(t,e,o,i.length,!1,this.errors,t.length-i.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(!Rn(r))return null;var i=t.substring(n+1);return new Bn(new Fn(0,t.length),r,i,e)},t.prototype.parseTemplateBindings=function(t,e,n){var r=this._lexer.tokenize(e);if(t){var i=this._lexer.tokenize(t).map(function(t){return t.index=0,t});r.unshift.apply(r,i)}return new gr(e,n,r,e.length,!1,this.errors,0).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,n){void 0===n&&(n=se);var r=this.splitInterpolation(t,e,n);if(null==r)return null;for(var i=[],o=0;o<r.expressions.length;++o){var a=r.expressions[o],s=this._stripComments(a),c=this._lexer.tokenize(s),l=new gr(t,e,c,s.length,!1,this.errors,r.offsets[o]+(a.length-s.length)).parseChain();i.push(l)}return new sr(new tr(new Fn(0,null==t?0:t.length),r.strings,i),t,e,this.errors)},t.prototype.splitInterpolation=function(t,e,n){void 0===n&&(n=se);var r=fr(n),i=t.split(r);if(i.length<=1)return null;for(var o=[],a=[],s=[],c=0,l=0;l<i.length;l++){var u=i[l];l%2==0?(o.push(u),c+=u.length):u.trim().length>0?(c+=n.start.length,a.push(u),s.push(c),c+=u.length+n.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",t,"at column "+this._findInterpolationErrorColumn(i,l,n)+" in",e),a.push("$implict"),s.push(c))}return new hr(o,a,s)},t.prototype.wrapLiteralPrimitive=function(t,e){return new sr(new Qn(new Fn(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),i=t.charCodeAt(n+1);if(r===Ze&&i==Ze&&null==e)return n;e===r?e=null:null==e&&Nn(r)&&(e=r)}return null},t.prototype._checkNoInterpolation=function(t,e,n){var r=fr(n),i=t.split(r);i.length>1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(i,1,n)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,n){for(var r="",i=0;i<e;i++)r+=i%2==0?t[i]:""+n.start+t[i]+n.end;return r.length},t}(),gr=function(){function t(t,e,n,r,i,o,a){this.input=t,this.location=e,this.tokens=n,this.inputLength=r,this.parseAction=i,this.errors=o,this.offset=a,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]:Tn},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 Fn(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(Je))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(Je););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==t.length?new Un(this.span(e)):1==t.length?t[0]:new zn(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 Xn(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 i=this.inputIndex,o=this.input.substring(t,i);this.error("Conditional expression "+o+" requires all 3 expressions"),r=new Un(this.span(t))}return new Gn(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 er(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 er(this.span(t.span.start),"&&",t,e)}return t},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==En.Operator;){var e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();var n=this.parseRelational();t=new er(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==En.Operator;){var e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();var n=this.parseAdditive();t=new er(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==En.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var n=this.parseMultiplicative();t=new er(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==En.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();t=new er(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==En.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 er(this.span(t),e,new Qn(new Fn(t,t),0),n);case"!":return this.advance(),n=this.parsePrefix(),new nr(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 $n(this.span(t.span.start),t,e,n)}else t=new Kn(this.span(t.span.start),t,e)}else if(this.optionalCharacter(40)){this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(41),t=new ar(this.span(t.span.start),t,r)}else{if(!this.optionalOperator("!"))return t;t=new rr(this.span(t.span.start),t)}},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 Qn(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new Qn(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new Qn(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new Qn(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new Hn(this.span(t));if(this.optionalCharacter(91)){this.rbracketsExpected++;var n=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new Zn(this.span(t),n)}if(this.next.isCharacter(vn))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new Hn(this.span(t)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new Qn(this.span(t),r)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new Qn(this.span(t),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new Un(this.span(t))):(this.error("Unexpected token "+this.next),new Un(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(vn),!this.optionalCharacter(125)){this.rbracesExpected++;do{var r=this.next.isString(),i=this.expectIdentifierOrKeywordOrString();t.push({key:i,quoted:r}),this.expectCharacter(58),e.push(this.parsePipe())}while(this.optionalCharacter(44));this.rbracesExpected--,this.expectCharacter(125)}return new Jn(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 i=this.parseCallArguments();this.expectCharacter(41),this.rparensExpected--;var o=this.span(n);return e?new or(o,t,r,i):new ir(o,t,r,i)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new Un(this.span(n))):new Yn(this.span(n),t,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new Un(this.span(n));var a=this.parseConditional();return new qn(this.span(n),t,r,a)}return new Wn(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;this.index<this.tokens.length;){var n=this.inputIndex,r=this.peekKeywordLet();r&&this.advance();var i=this.expectTemplateBindingKey(),o=i;r||(null==e?e=o:o=e+o[0].toUpperCase()+o.substring(1)),this.optionalCharacter(58);var a=null,s=null;if(r)a=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.peekKeywordAs()){var c=this.inputIndex;this.advance(),a=i,o=this.expectTemplateBindingKey(),r=!0}else if(this.next!==Tn&&!this.peekKeywordLet()){var l=this.inputIndex,u=this.parsePipe(),p=this.input.substring(l-this.offset,this.inputIndex-this.offset);s=new sr(u,p,this.location,this.errors)}if(t.push(new cr(this.span(n),o,r,a,s)),this.peekKeywordAs()&&!r){c=this.inputIndex;this.advance();var h=this.expectTemplateBindingKey();t.push(new cr(this.span(c),h,!0,o,null))}this.optionalCharacter(Je)||this.optionalCharacter(44)}return new dr(t,[],this.errors)},t.prototype.error=function(t,e){void 0===e&&(e=null),this.errors.push(new jn(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(Je)&&(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 jn(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next},t}(),yr=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.visitNonNullAssert=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}(),vr=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,i=this.offset,o=this.line,a=this.col;i>0&&e<0;){if(i--,e++,(c=n.charCodeAt(i))==He){o--;var s=n.substr(0,i-1).lastIndexOf(String.fromCharCode(He));a=s>0?i-s:i}else a--}for(;i<r&&e>0;){var c=n.charCodeAt(i);i++,e--,c==He?(o++,a=0):a++}return new t(this.file,i,o,a)},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 i=r,o=0,a=0;o<t&&r>0&&(o++,"\n"!=n[--r]||++a!=e););for(o=0,a=0;o<t&&i<n.length-1&&(o++,"\n"!=n[++i]||++a!=e););return{before:n.substring(r,this.offset),after:n.substring(this.offset,i+1)}}return null},t}(),br=function(){return function(t,e){this.content=t,this.url=e}}(),_r=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}(),wr={WARNING:0,ERROR:1};wr[wr.WARNING]="WARNING",wr[wr.ERROR]="ERROR";var Cr=function(){function t(t,e,n){void 0===n&&(n=wr.ERROR),this.span=t,this.msg=e,this.level=n}return t.prototype.contextualMessage=function(){var t=this.span.start.getContext(100,3);return t?this.msg+' ("'+t.before+"["+wr[this.level]+" ->]"+t.after+'")':this.msg},t.prototype.toString=function(){var t=this.span.details?", "+this.span.details:"";return this.contextualMessage()+": "+this.span.start+t},t}();function xr(t,e){var n=kt(e),r=null!=n?"in "+t+" "+St(e)+" in "+n:"in "+t+" "+St(e),i=new br("",r);return new _r(new vr(i,-1,-1,-1),new vr(i,-1,-1,-1))}var Er={TAG_OPEN_START:0,TAG_OPEN_END:1,TAG_OPEN_END_VOID:2,TAG_CLOSE:3,TEXT:4,ESCAPABLE_RAW_TEXT:5,RAW_TEXT:6,COMMENT_START:7,COMMENT_END:8,CDATA_START:9,CDATA_END:10,ATTR_NAME:11,ATTR_VALUE:12,DOC_TYPE:13,EXPANSION_FORM_START:14,EXPANSION_CASE_VALUE:15,EXPANSION_CASE_EXP_START:16,EXPANSION_CASE_EXP_END:17,EXPANSION_FORM_END:18,EOF:19};Er[Er.TAG_OPEN_START]="TAG_OPEN_START",Er[Er.TAG_OPEN_END]="TAG_OPEN_END",Er[Er.TAG_OPEN_END_VOID]="TAG_OPEN_END_VOID",Er[Er.TAG_CLOSE]="TAG_CLOSE",Er[Er.TEXT]="TEXT",Er[Er.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",Er[Er.RAW_TEXT]="RAW_TEXT",Er[Er.COMMENT_START]="COMMENT_START",Er[Er.COMMENT_END]="COMMENT_END",Er[Er.CDATA_START]="CDATA_START",Er[Er.CDATA_END]="CDATA_END",Er[Er.ATTR_NAME]="ATTR_NAME",Er[Er.ATTR_VALUE]="ATTR_VALUE",Er[Er.DOC_TYPE]="DOC_TYPE",Er[Er.EXPANSION_FORM_START]="EXPANSION_FORM_START",Er[Er.EXPANSION_CASE_VALUE]="EXPANSION_CASE_VALUE",Er[Er.EXPANSION_CASE_EXP_START]="EXPANSION_CASE_EXP_START",Er[Er.EXPANSION_CASE_EXP_END]="EXPANSION_CASE_EXP_END",Er[Er.EXPANSION_FORM_END]="EXPANSION_FORM_END",Er[Er.EOF]="EOF";var Sr=function(){return function(t,e,n){this.type=t,this.parts=e,this.sourceSpan=n}}(),kr=function(t){function e(e,n,r){var i=t.call(this,r,e)||this;return i.tokenType=n,i}return n(e,t),e}(Cr),Or=function(){return function(t,e){this.tokens=t,this.errors=e}}();var Pr=/\r\n?/g;function Ar(t){return'Unexpected character "'+(t===Be?"EOF":String.fromCharCode(t))+'"'}function Tr(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or  "&#x<hex>;" syntax'}var Mr=function(){return function(t){this.error=t}}(),Ir=function(){function t(t,e,n,r){void 0===r&&(r=se),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(Pr,"\n")},t.prototype.tokenize=function(){for(;this._peek!==Be;){var t=this._getLocation();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(t):this._attemptCharCode(Qe)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(Ze)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(t){if(!(t instanceof Mr))throw t;this.errors.push(t.error)}}return this._beginToken(Er.EOF),this._endToken([]),new Or(function(t){for(var e=[],n=void 0,r=0;r<t.length;r++){var i=t[r];n&&n.type==Er.TEXT&&i.type==Er.TEXT?(n.parts[0]+=i.parts[0],n.sourceSpan.end=i.sourceSpan.end):(n=i,e.push(n))}return e}(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(jr(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(((t=this._peek)===tn||xn(t)||Cn(t))&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;var t;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 vr(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 _r(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 Sr(this._currentTokenType,t,new _r(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 kr(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new Mr(n)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(Ar(Be),this._getSpan());this._peek===He?(this._line++,this._column=0):this._peek!==He&&this._peek!==We&&this._column++,this._index++,this._peek=this._index>=this._length?Be:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?Be:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t&&(this._advance(),!0)},t.prototype._attemptCharCodeCaseInsensitive=function(t){return e=this._peek,n=t,Fr(e)==Fr(n)&&(this._advance(),!0);var e,n},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(Ar(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(Ar(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(Ar(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(Lr),this._peek!=Je)return this._restorePosition(e),"&";this._advance();var n=this._input.substring(t.offset+1,this._index-1),r=_e[n];if(!r)throw this._createError(Tr(n),this._getSpan(t));return r}var i=this._attemptCharCode(120)||this._attemptCharCode(88),o=this._getLocation().offset;if(this._attemptCharCodeUntilFn(Nr),this._peek!=Je)throw this._createError(Ar(this._peek),this._getSpan());this._advance();var a=this._input.substring(o,this._index-1);try{var s=parseInt(a,i?16:10);return String.fromCharCode(s)}catch(e){var c=this._input.substring(t.offset+1,this._index-1);throw this._createError(Tr(c),this._getSpan(t))}},t.prototype._consumeRawText=function(t,e,n){var r,i=this._getLocation();this._beginToken(t?Er.ESCAPABLE_RAW_TEXT:Er.RAW_TEXT,i);for(var o=[];r=this._getLocation(),!this._attemptCharCode(e)||!n();)for(this._index>r.offset&&o.push(this._input.substring(r.offset,this._index));this._peek!==e;)o.push(this._readChar(t));return this._endToken([this._processCarriageReturns(o.join(""))],r)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(Er.COMMENT_START,t),this._requireCharCode(Qe),this._endToken([]);var n=this._consumeRawText(!1,Qe,function(){return e._attemptStr("->")});this._beginToken(Er.COMMENT_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(Er.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,93,function(){return e._attemptStr("]>")});this._beginToken(Er.CDATA_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(Er.DOC_TYPE,t),this._attemptUntilChar(en),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t,e,n=this._index,r=null;58!==this._peek&&!(((t=this._peek)<un||yn<t)&&(t<on||cn<t)&&(t<nn||t>rn));)this._advance();return 58===this._peek?(this._advance(),r=this._input.substring(n,this._index-1),e=this._index):e=n,this._requireCharCodeUntilFn(Dr,this._index===e?1:0),[r,this._input.substring(e,this._index)]},t.prototype._consumeTagOpen=function(t){var e,n,r=this._savePosition();try{if(!xn(this._peek))throw this._createError(Ar(this._peek),this._getSpan());var i=this._index;for(this._consumeTagOpenStart(t),n=(e=this._input.substring(i,this._index)).toLowerCase(),this._attemptCharCodeUntilFn(Rr);this._peek!==Ze&&this._peek!==en;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(Rr),this._attemptCharCode(tn)&&(this._attemptCharCodeUntilFn(Rr),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Rr);this._consumeTagOpenEnd()}catch(e){if(e instanceof Mr)return this._restorePosition(r),this._beginToken(Er.TEXT,t),void this._endToken(["<"]);throw e}var o=this._getTagDefinition(e).contentType;o===de.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):o===de.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(Ze)&&(n._attemptCharCodeUntilFn(Rr),!!n._attemptStrCaseInsensitive(t)&&(n._attemptCharCodeUntilFn(Rr),n._attemptCharCode(en)))});this._beginToken(Er.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(Er.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(Er.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){var t;if(this._beginToken(Er.ATTR_VALUE),this._peek===$e||this._peek===Ye){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(Dr,1),t=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(Ze)?Er.TAG_OPEN_END_VOID:Er.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(en),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(Er.TAG_CLOSE,t),this._attemptCharCodeUntilFn(Rr);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Rr),this._requireCharCode(en),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(Er.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(vn),this._endToken([]),this._expansionCaseStack.push(Er.EXPANSION_FORM_START),this._beginToken(Er.RAW_TEXT,this._getLocation());var t=this._readUntil(44);this._endToken([t],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(Rr),this._beginToken(Er.RAW_TEXT,this._getLocation());var e=this._readUntil(44);this._endToken([e],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(Rr)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(Er.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(vn).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(Rr),this._beginToken(Er.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(vn),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(Rr),this._expansionCaseStack.push(Er.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(Er.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(125),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(Rr),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(Er.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(Er.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===Be)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(jr(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]===Er.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Er.EXPANSION_FORM_START},t}();function Rr(t){return!wn(t)||t===Be}function Dr(t){return wn(t)||t===en||t===Ze||t===$e||t===Ye||t===tn}function Nr(t){return t==Je||t==Be||!((e=t)>=un&&e<=hn||e>=on&&e<=sn||Cn(e));var e}function Lr(t){return t==Je||t==Be||!xn(t)}function jr(t,e,n){var r=!!n&&t.indexOf(n.start,e)==e;return t.charCodeAt(e)==vn&&!r}function Fr(t){return t>=un&&t<=yn?t-un+on:t}var Vr=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.elementName=e,i}return n(e,t),e.create=function(t,n,r){return new e(t,n,r)},e}(Cr),Br=function(){return function(t,e){this.rootNodes=t,this.errors=e}}(),Ur=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=se);var i,o,a,s,c,l=(i=t,o=e,a=this.getTagDefinition,c=r,void 0===(s=n)&&(s=!1),void 0===c&&(c=se),new Ir(new br(i,o),a,s,c).tokenize()),u=new Hr(l.tokens,this.getTagDefinition).build();return new Br(u.rootNodes,l.errors.concat(u.errors))},t}(),Hr=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!==Er.EOF;)this._peek.type===Er.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===Er.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===Er.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===Er.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===Er.TEXT||this._peek.type===Er.RAW_TEXT||this._peek.type===Er.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===Er.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new Br(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(Er.CDATA_END)},t.prototype._consumeComment=function(t){var e=this._advanceIf(Er.RAW_TEXT);this._advanceIf(Er.COMMENT_END);var n=null!=e?e.parts[0].trim():null;this._addToParent(new te(n,t.sourceSpan))},t.prototype._consumeExpansion=function(t){for(var e=this._advance(),n=this._advance(),r=[];this._peek.type===Er.EXPANSION_CASE_VALUE;){var i=this._parseExpansionCase();if(!i)return;r.push(i)}if(this._peek.type===Er.EXPANSION_FORM_END){var o=new _r(t.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new Xt(e.parts[0],n.parts[0],r,o,e.sourceSpan)),this._advance()}else this._errors.push(Vr.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."))},t.prototype._parseExpansionCase=function(){var e=this._advance();if(this._peek.type!==Er.EXPANSION_CASE_EXP_START)return this._errors.push(Vr.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var n=this._advance(),r=this._collectExpansionExpTokens(n);if(!r)return null;var i=this._advance();r.push(new Sr(Er.EOF,[],i.sourceSpan));var o=new t(r,this.getTagDefinition).build();if(o.errors.length>0)return this._errors=this._errors.concat(o.errors),null;var a=new _r(e.sourceSpan.start,i.sourceSpan.end),s=new _r(n.sourceSpan.start,i.sourceSpan.end);return new Qt(e.parts[0],o.rootNodes,a,e.sourceSpan,s)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],n=[Er.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==Er.EXPANSION_FORM_START&&this._peek.type!==Er.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===Er.EXPANSION_CASE_EXP_END){if(!zr(n,Er.EXPANSION_CASE_EXP_START))return this._errors.push(Vr.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return e}if(this._peek.type===Er.EXPANSION_FORM_END){if(!zr(n,Er.EXPANSION_FORM_START))return this._errors.push(Vr.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===Er.EOF)return this._errors.push(Vr.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 $t(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){var t=this._getParentElement();t&&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===Er.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(e,n,this._getParentElement()),o=!1;if(this._peek.type===Er.TAG_OPEN_END_VOID){this._advance(),o=!0;var a=this.getTagDefinition(i);a.canSelfClose||null!==ve(i)||a.isVoid||this._errors.push(Vr.create(i,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===Er.TAG_OPEN_END&&(this._advance(),o=!1);var s=this._peek.sourceSpan.start,c=new _r(t.sourceSpan.start,s),l=new Jt(i,r,[],c,c,void 0);this._pushElement(l),o&&(this._popElement(i),l.endSourceSpan=c)},t.prototype._pushElement=function(t){var e=this._getParentElement();e&&this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop();var n=this.getTagDefinition(t.name),r=this._getParentElementSkippingContainers(),i=r.parent,o=r.container;if(i&&n.requireExtraParent(i.name)){var a=new Jt(n.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(i,o,a)}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(Vr.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(Vr.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=be(t.parts[0],t.parts[1]),n=t.sourceSpan.end,r="",i=void 0;if(this._peek.type===Er.ATTR_VALUE){var o=this._advance();r=o.parts[0],n=o.sourceSpan.end,i=o.sourceSpan}return new Zt(e,r,new _r(t.sourceSpan.start,n),i)},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(!me(this._elementStack[e].name))return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:null,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=ve(n.name)),be(t,e)},t}();function zr(t,e){return t.length>0&&t[t.length-1]===e}function Gr(t){return t.id||function(t){var e,n,r=K(t),i=function(t,e){for(var n=Array(t.length+3>>>2),r=0;r<n.length;r++)n[r]=oi(t,4*r,e);return n}(r,Jr.Big),o=8*r.length,a=new Array(80),s=[1732584193,4023233417,2562383102,271733878,3285377520],c=s[0],l=s[1],u=s[2],p=s[3],h=s[4];i[o>>5]|=128<<24-o%32,i[15+(o+64>>9<<4)]=o;for(var d=0;d<i.length;d+=16){for(var f=[c,l,u,p,h],m=f[0],g=f[1],y=f[2],v=f[3],b=f[4],_=0;_<80;_++){a[_]=_<16?i[d+_]:ri(a[_-3]^a[_-8]^a[_-14]^a[_-16],1);var w=$r(_,l,u,p),C=w[0],x=w[1],E=[ri(c,5),C,h,x,a[_]].reduce(ti);e=[p,u,ri(l,30),c,E],h=e[0],p=e[1],u=e[2],l=e[3],c=e[4]}n=[ti(c,m),ti(l,g),ti(u,y),ti(p,v),ti(h,b)],c=n[0],l=n[1],u=n[2],p=n[3],h=n[4]}return function(t){for(var e="",n=0;n<t.length;n++){var r=ii(t,n);e+=(r>>>4).toString(16)+(15&r).toString(16)}return e.toLowerCase()}(ai([c,l,u,p,h]))}((e=t.nodes,e.map(function(t){return t.visit(Yr,null)})).join("")+"["+t.meaning+"]");var e}function Wr(t){if(t.id)return t.id;var e=new Kr;return function(t,e){var n,r=Xr(t),i=r[0],o=r[1];if(e){var a=Xr(e),s=a[0],c=a[1];b=1,_=(v=[i,o])[0],w=v[1],u=[s,c],p=(l=[_<<b|w>>>32-b,w<<b|_>>>32-b])[0],h=l[1],d=u[0],f=u[1],m=ei(h,f),g=m[0],y=m[1],n=[ti(ti(p,d),g),y],i=n[0],o=n[1]}var l,u,p,h,d,f,m,g,y;var v,b,_,w;return function(t){for(var e="",n="1",r=t.length-1;r>=0;r--)e=si(e,ci(ii(t,r),n)),n=ci(256,n);return e.split("").reverse().join("")}(ai([2147483647&i,o]))}(t.nodes.map(function(t){return t.visit(e,null)}).join(""),t.meaning)}var qr=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}(),Yr=new qr;var Kr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(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}(qr);function $r(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 Xr(t){var e=K(t),n=[Qr(e,0),Qr(e,102072)],r=n[0],i=n[1];return 0!=r||0!=i&&1!=i||(r^=319790063,i^=-1801410264),[r,i]}function Qr(t,e){var n,r,i=[2654435769,2654435769],o=i[0],a=i[1],s=t.length;for(n=0;n+12<=s;n+=12)o=(r=Zr([o=ti(o,oi(t,n,Jr.Little)),a=ti(a,oi(t,n+4,Jr.Little)),e=ti(e,oi(t,n+8,Jr.Little))]))[0],a=r[1],e=r[2];return Zr([o=ti(o,oi(t,n,Jr.Little)),a=ti(a,oi(t,n+4,Jr.Little)),e=ti(e=ti(e,s),oi(t,n+8,Jr.Little)<<8)])[2]}function Zr(t){var e=t[0],n=t[1],r=t[2];return e=ni(e=ni(e,n),r),e^=r>>>13,n=ni(n=ni(n,r),e),n^=e<<8,r=ni(r=ni(r,e),n),r^=n>>>13,e=ni(e=ni(e,n),r),e^=r>>>12,n=ni(n=ni(n,r),e),n^=e<<16,r=ni(r=ni(r,e),n),r^=n>>>5,e=ni(e=ni(e,n),r),e^=r>>>3,n=ni(n=ni(n,r),e),n^=e<<10,r=ni(r=ni(r,e),n),[e,n,r^=n>>>15]}var Jr={Little:0,Big:1};function ti(t,e){return ei(t,e)[1]}function ei(t,e){var n=(65535&t)+(65535&e),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function ni(t,e){var n=(65535&t)-(65535&e);return(t>>16)-(e>>16)+(n>>16)<<16|65535&n}function ri(t,e){return t<<e|t>>>32-e}function ii(t,e){return e>=t.length?0:255&t.charCodeAt(e)}function oi(t,e,n){var r=0;if(n===Jr.Big)for(var i=0;i<4;i++)r+=ii(t,e+i)<<24-8*i;else for(i=0;i<4;i++)r+=ii(t,e+i)<<8*i;return r}function ai(t){return t.reduce(function(t,e){return t+function(t){for(var e="",n=0;n<4;n++)e+=String.fromCharCode(t>>>8*(3-n)&255);return e}(e)},"")}function si(t,e){for(var n="",r=Math.max(t.length,e.length),i=0,o=0;i<r||o;i++){var a=o+ +(t[i]||0)+ +(e[i]||0);a>=10?(o=1,n+=a-10):(o=0,n+=a)}return n}function ci(t,e){for(var n="",r=e;0!==t;t>>>=1)1&t&&(n=si(n,r)),r=si(r,r);return n}Jr[Jr.Little]="Little",Jr[Jr.Big]="Big";var li=function(){return function(t,e,n,r,i,o){this.nodes=t,this.placeholders=e,this.placeholderToMessage=n,this.meaning=r,this.description=i,this.id=o,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=[]}}(),ui=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),pi=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),hi=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}(),di=function(){function t(t,e,n,r,i,o,a){this.tag=t,this.attrs=e,this.startName=n,this.closeName=r,this.children=i,this.isVoid=o,this.sourceSpan=a}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),fi=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}(),mi=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}(),gi=function(){function t(){}return t.prototype.visitText=function(t,e){return new ui(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 pi(r,t.sourceSpan)},t.prototype.visitIcu=function(t,e){var n=this,r={};Object.keys(t.cases).forEach(function(i){return r[i]=t.cases[i].visit(n,e)});var i=new hi(t.expression,t.type,r,t.sourceSpan);return i.expressionPlaceholder=t.expressionPlaceholder,i},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new di(t.tag,t.attrs,t.startName,t.closeName,r,t.isVoid,t.sourceSpan)},t.prototype.visitPlaceholder=function(t,e){return new fi(t.value,t.name,t.sourceSpan)},t.prototype.visitIcuPlaceholder=function(t,e){return new mi(t.value,t.name,t.sourceSpan)},t}(),yi=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}(),vi=function(){function t(t){var e=void 0===t?{}:t,n=e.closedByChildren,r=e.requiredParents,i=e.implicitNamespacePrefix,o=e.contentType,a=void 0===o?de.PARSABLE_DATA:o,s=e.closedByParent,c=void 0!==s&&s,l=e.isVoid,u=void 0!==l&&l,p=e.ignoreFirstLf,h=void 0!==p&&p,d=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,n&&n.length>0&&n.forEach(function(t){return d.closedByChildren[t]=!0}),this.isVoid=u,this.closedByParent=c||u,r&&r.length>0&&(this.requiredParents={},this.parentToAdd=r[0],r.forEach(function(t){return d.requiredParents[t]=!0})),this.implicitNamespacePrefix=i||null,this.contentType=a,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}(),bi={base:new vi({isVoid:!0}),meta:new vi({isVoid:!0}),area:new vi({isVoid:!0}),embed:new vi({isVoid:!0}),link:new vi({isVoid:!0}),img:new vi({isVoid:!0}),input:new vi({isVoid:!0}),param:new vi({isVoid:!0}),hr:new vi({isVoid:!0}),br:new vi({isVoid:!0}),source:new vi({isVoid:!0}),track:new vi({isVoid:!0}),wbr:new vi({isVoid:!0}),p:new vi({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 vi({closedByChildren:["tbody","tfoot"]}),tbody:new vi({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new vi({closedByChildren:["tbody"],closedByParent:!0}),tr:new vi({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new vi({closedByChildren:["td","th"],closedByParent:!0}),th:new vi({closedByChildren:["td","th"],closedByParent:!0}),col:new vi({requiredParents:["colgroup"],isVoid:!0}),svg:new vi({implicitNamespacePrefix:"svg"}),math:new vi({implicitNamespacePrefix:"math"}),li:new vi({closedByChildren:["li"],closedByParent:!0}),dt:new vi({closedByChildren:["dt","dd"]}),dd:new vi({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new vi({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new vi({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new vi({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new vi({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new vi({closedByChildren:["optgroup"],closedByParent:!0}),option:new vi({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new vi({ignoreFirstLf:!0}),listing:new vi({ignoreFirstLf:!0}),style:new vi({contentType:de.RAW_TEXT}),script:new vi({contentType:de.RAW_TEXT}),title:new vi({contentType:de.ESCAPABLE_RAW_TEXT}),textarea:new vi({contentType:de.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},_i=new vi;function wi(t){return bi[t.toLowerCase()]||_i}var Ci={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"},xi=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 i=t.toUpperCase(),o=Ci[i]||"TAG_"+i,a=this._generateUniqueName(n?o:"START_"+o);return this._signatureToName[r]=a,a},t.prototype.getCloseTagPlaceholderName=function(t){var e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];var n=t.toUpperCase(),r=Ci[n]||"TAG_"+n,i=this._generateUniqueName("CLOSE_"+r);return this._signatureToName[e]=i,i},t.prototype.getPlaceholderName=function(t,e){var n=t.toUpperCase(),r="PH: "+n+"="+e;if(this._signatureToName[r])return this._signatureToName[r];var i=this._generateUniqueName(n);return this._signatureToName[r]=i,i},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}(),Ei=new mr(new kn);var Si=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 Xt,this._icuDepth=0,this._placeholderRegistry=new xi,this._placeholderToContent={},this._placeholderToMessage={};var i=ee(this,t,{});return new li(i,this._placeholderToContent,this._placeholderToMessage,e,n,r)},t.prototype.visitElement=function(t,e){var n=ee(this,t.children),r={};t.attrs.forEach(function(t){r[t.name]=t.value});var i=wi(t.name).isVoid,o=this._placeholderRegistry.getStartTagPlaceholderName(t.name,r,i);this._placeholderToContent[o]=t.sourceSpan.toString();var a="";return i||(a=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[a]="</"+t.name+">"),new di(t.name,r,o,a,n,i,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 i={},o=new hi(e.switchValue,e.type,i,e.sourceSpan);if(e.cases.forEach(function(t){i[t.value]=new pi(t.expression.map(function(t){return t.visit(r,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var a=this._placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return o.expressionPlaceholder=a,this._placeholderToContent[a]=e.switchValue,o}var s=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),c=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[s]=c.toI18nMessage([e],"","",""),new mi(o,s,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 ui(t,e);for(var r=[],i=new pi(r,e),o=this._interpolationConfig,a=o.start,s=o.end,c=0;c<n.strings.length-1;c++){var l=n.expressions[c],u=l.split(ki)[2]||"INTERPOLATION",p=this._placeholderRegistry.getPlaceholderName(u,l);n.strings[c].length&&r.push(new ui(n.strings[c],e)),r.push(new fi(l,p,e)),this._placeholderToContent[p]=a+l+s}var h=n.strings.length-1;return n.strings[h].length&&r.push(new ui(n.strings[h],e)),i},t}(),ki=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;var Oi=function(t){function e(e,n){return t.call(this,e,n)||this}return n(e,t),e}(Cr),Pi="i18n",Ai="i18n-",Ti=/^i18n:?/,Mi="|",Ii="@@",Ri=!1;var Di=function(){return function(t,e){this.messages=t,this.errors=e}}(),Ni={Extract:0,Merge:1};Ni[Ni.Extract]="Extract",Ni[Ni.Merge]="Merge";var Li=function(){function t(t,e){this._implicitTags=t,this._implicitAttrs=e}return t.prototype.extract=function(t,e){var n=this;return this._init(Ni.Extract,e),t.forEach(function(t){return t.visit(n,null)}),this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Di(this._messages,this._errors)},t.prototype.merge=function(t,e,n){this._init(Ni.Merge,n),this._translations=e;var r=new Jt("wrapper",[],t,void 0,void 0,void 0).visit(this,null);return this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Br(r.children,this._errors)},t.prototype.visitExpansionCase=function(t,e){var n=ee(this,t.expression,e);if(this._mode===Ni.Merge)return new Qt(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=ee(this,t.cases,e);return this._mode===Ni.Merge&&(t=new Xt(t.switchValue,t.type,r,t.sourceSpan,t.switchValueSourceSpan)),this._inIcu=n,t},t.prototype.visitComment=function(t,e){var n,r=!!((n=t)instanceof te&&n.value&&n.value.startsWith("i18n"));if(r&&this._isInTranslatableSection)this._reportError(t,"Could not start a block inside a translatable section");else{var i,o=!!((i=t)instanceof te&&i.value&&"/i18n"===i.value);if(!o||this._inI18nBlock){if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(o){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(t,this._blockChildren),this._inI18nBlock=!1;var a=this._addMessage(this._blockChildren,this._blockMeaningAndDesc);return ee(this,this._translateMessage(t,a))}return void this._reportError(t,"I18N blocks should not cross element boundaries")}}else if(r){if(!Ri&&console&&console.warn){Ri=!0;var s=t.sourceSpan.details?", "+t.sourceSpan.details:"";console.warn("I18n comments are deprecated, use an <ng-container> element instead ("+t.sourceSpan.start+s+")")}this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(Ti,"").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,i=this._inImplicitNode,o=[],a=void 0,s=t.attrs.find(function(t){return t.name===Pi})||null,c=s?s.value:"",l=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,u=!i&&l;if(this._inImplicitNode=i||l,this._isInTranslatableSection||this._inIcu)(s||u)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==Ni.Extract&&ee(this,t.children);else{if(s||u){this._inI18nNode=!0;var p=this._addMessage(t.children,c);a=this._translateMessage(t,p)}if(this._mode==Ni.Extract){var h=s||u;h&&this._openTranslatableSection(t),ee(this,t.children),h&&this._closeTranslatableSection(t,t.children)}}this._mode===Ni.Merge&&(a||t.children).forEach(function(t){var r=t.visit(n,e);r&&!n._isInTranslatableSection&&(o=o.concat(r))});if(this._visitAttributesOf(t),this._depth--,this._inI18nNode=r,this._inImplicitNode=i,this._mode===Ni.Merge){var d=this._translateAttributes(t);return new Jt(t.name,d,o,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){var n;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=(n=new Si(Ei,e),function(t,e,r,i){return n.toI18nMessage(t,e,r,i)})},t.prototype._visitAttributesOf=function(t){var e=this,n={},r=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith(Ai)}).forEach(function(t){return n[t.name.slice(Ai.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 Zt&&!t[0].value)return null;var n=ji(e),r=n.meaning,i=n.description,o=n.id,a=this._createI18nMessage(t,r,i,o);return this._messages.push(a),a},t.prototype._translateMessage=function(t,e){if(e&&this._mode===Ni.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(Ai)&&(r[t.name.slice(Ai.length)]=ji(t.value))});var i=[];return n.forEach(function(n){if(n.name!==Pi&&!n.name.startsWith(Ai))if(n.value&&""!=n.value&&r.hasOwnProperty(n.name)){var o=r[n.name],a=o.meaning,s=o.description,c=o.id,l=e._createI18nMessage([n],a,s,c),u=e._translations.get(l);if(u)if(0==u.length)i.push(new Zt(n.name,"",n.sourceSpan));else if(u[0]instanceof $t){var p=u[0].value;i.push(new Zt(n.name,p,n.sourceSpan))}else e._reportError(t,'Unexpected translation for attribute "'+n.name+'" (id="'+(c||e._translations.digest(l))+'")');else e._reportError(t,'Translation unavailable for attribute "'+n.name+'" (id="'+(c||e._translations.digest(l))+'")')}else i.push(n)}),i},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 te?0:1)},0))for(var r=this._messages.length-1;r>=n;r--){var i=this._messages[r].nodes;if(!(1==i.length&&i[0]instanceof ui)){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 Oi(t.sourceSpan,e))},t}();function ji(t){if(!t)return{meaning:"",description:"",id:""};var e=t.indexOf(Ii),n=t.indexOf(Mi),r=e>-1?[t.slice(0,e),t.slice(e+2)]:[t,""],i=r[0],o=r[1],a=n>-1?[i.slice(0,n),i.slice(n+1)]:["",i];return{meaning:a[0],description:a[1],id:o}}var Fi=new(function(){function t(){this.closedByParent=!1,this.contentType=de.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}());function Vi(t){return Fi}var Bi=function(t){function e(){return t.call(this,Vi)||this}return n(e,t),e.prototype.parse=function(e,n,r){return void 0===r&&(r=!1),t.prototype.parse.call(this,e,n,r)},e}(Ur),Ui=function(){function t(){}return t.prototype.createNameMapper=function(t){return null},t}(),Hi=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 n(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}(yi),zi=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}());function Gi(t){return t.map(function(t){return t.visit(zi)}).join("")}var Wi=function(){function t(t){var e=this;this.attrs={},Object.keys(t).forEach(function(n){e.attrs[n]=Qi(t[n])})}return t.prototype.visit=function(t){return t.visitDeclaration(this)},t}(),qi=function(){function t(t,e){this.rootTag=t,this.dtd=e}return t.prototype.visit=function(t){return t.visitDoctype(this)},t}(),Yi=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]=Qi(e[t])})}return t.prototype.visit=function(t){return t.visitTag(this)},t}(),Ki=function(){function t(t){this.value=Qi(t)}return t.prototype.visit=function(t){return t.visitText(this)},t}(),$i=function(t){function e(e){return void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))||this}return n(e,t),e}(Ki),Xi=[[/&/g,"&amp;"],[/"/g,"&quot;"],[/'/g,"&apos;"],[/</g,"&lt;"],[/>/g,"&gt;"]];function Qi(t){return Xi.reduce(function(t,e){return t.replace(e[0],e[1])},t)}var Zi="trans-unit",Ji=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.write=function(t,e){var n=new to,r=[];t.forEach(function(t){var e=[];t.sources.forEach(function(t){var n=new Yi("context-group",{purpose:"location"});n.children.push(new $i(10),new Yi("context",{"context-type":"sourcefile"},[new Ki(t.filePath)]),new $i(10),new Yi("context",{"context-type":"linenumber"},[new Ki(""+t.startLine)]),new $i(8)),e.push(new $i(8),n)});var i,o=new Yi(Zi,{id:t.id,datatype:"html"});(i=o.children).push.apply(i,[new $i(8),new Yi("source",{},n.serialize(t.nodes))].concat(e)),t.description&&o.children.push(new $i(8),new Yi("note",{priority:"1",from:"description"},[new Ki(t.description)])),t.meaning&&o.children.push(new $i(8),new Yi("note",{priority:"1",from:"meaning"},[new Ki(t.meaning)])),o.children.push(new $i(6)),r.push(new $i(6),o)});var i=new Yi("body",{},r.concat([new $i(4)])),o=new Yi("file",{"source-language":e||"en",datatype:"plaintext",original:"ng2.template"},[new $i(4),i,new $i(2)]),a=new Yi("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new $i(2),o,new $i]);return Gi([new Wi({version:"1.0",encoding:"UTF-8"}),new $i,a,new $i])},e.prototype.load=function(t,e){var n=(new eo).parse(t,e),r=n.locale,i=n.msgIdToHtml,o=n.errors,a={},s=new no;if(Object.keys(i).forEach(function(t){var n=s.convert(i[t],e),r=n.i18nNodes,c=n.errors;o.push.apply(o,c),a[t]=r}),o.length)throw new Error("xliff parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Gr(t)},e}(Ui),to=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Ki(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 Ki("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new Ki(e+" {")].concat(t.cases[e].visit(n),[new Ki("} ")]))}),r.push(new Ki("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=function(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}(t.tag);if(t.isVoid)return[new Yi("x",{id:t.startName,ctype:n,"equiv-text":"<"+t.tag+"/>"})];var r=new Yi("x",{id:t.startName,ctype:n,"equiv-text":"<"+t.tag+">"}),i=new Yi("x",{id:t.closeName,ctype:n,"equiv-text":"</"+t.tag+">"});return[r].concat(this.serialize(t.children),[i])},t.prototype.visitPlaceholder=function(t,e){return[new Yi("x",{id:t.name,"equiv-text":"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(t,e){var n="{"+t.value.expression+", "+t.value.type+", "+Object.keys(t.value.cases).map(function(t){return t+" {...}"}).join(" ")+"}";return[new Yi("x",{id:t.name,"equiv-text":n})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),eo=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new Bi).parse(t,e,!1);return this._errors=n.errors,ee(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case Zi: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):(ee(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,"<"+Zi+'> misses the "id" attribute');break;case"source":case"seg-source":break;case"target":var i=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,a=t.startSourceSpan.start.file.content.slice(i,o);this._unitMlString=a;break;case"file":var s=t.attrs.find(function(t){return"target-language"===t.name});s&&(this._locale=s.value),ee(this,t.children,null);break;default:ee(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 Oi(t.sourceSpan,e))},t}(),no=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Bi).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],ee(this,n.rootNodes)),errors:this._errors}},t.prototype.visitText=function(t,e){return new ui(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});return n?new fi("",n.value,t.sourceSpan):(this._addError(t,'<x> misses the "id" attribute'),null)}return"mrk"===t.name?[].concat.apply([],ee(this,t.children)):(this._addError(t,"Unexpected tag"),null)},t.prototype.visitExpansion=function(t,e){var n={};return ee(this,t.cases).forEach(function(e){n[e.value]=new pi(e.nodes,t.sourceSpan)}),new hi(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:ee(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 Oi(t.sourceSpan,e))},t}();var ro=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.write=function(t,e){var n=new io,r=[];t.forEach(function(t){var e=new Yi("unit",{id:t.id}),i=new Yi("notes");(t.description||t.meaning)&&(t.description&&i.children.push(new $i(8),new Yi("note",{category:"description"},[new Ki(t.description)])),t.meaning&&i.children.push(new $i(8),new Yi("note",{category:"meaning"},[new Ki(t.meaning)]))),t.sources.forEach(function(t){i.children.push(new $i(8),new Yi("note",{category:"location"},[new Ki(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),i.children.push(new $i(6)),e.children.push(new $i(6),i);var o=new Yi("segment");o.children.push(new $i(8),new Yi("source",{},n.serialize(t.nodes)),new $i(6)),e.children.push(new $i(6),o,new $i(4)),r.push(new $i(4),e)});var i=new Yi("file",{original:"ng.template",id:"ngi18n"},r.concat([new $i(2)])),o=new Yi("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:e||"en"},[new $i(2),i,new $i]);return Gi([new Wi({version:"1.0",encoding:"UTF-8"}),new $i,o,new $i])},e.prototype.load=function(t,e){var n=(new oo).parse(t,e),r=n.locale,i=n.msgIdToHtml,o=n.errors,a={},s=new ao;if(Object.keys(i).forEach(function(t){var n=s.convert(i[t],e),r=n.i18nNodes,c=n.errors;o.push.apply(o,c),a[t]=r}),o.length)throw new Error("xliff2 parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Wr(t)},e}(Ui),io=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Ki(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 Ki("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new Ki(e+" {")].concat(t.cases[e].visit(n),[new Ki("} ")]))}),r.push(new Ki("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=function(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"}}(t.tag);if(t.isVoid)return[new Yi("ph",{id:(this._nextPlaceholderId++).toString(),equiv:t.startName,type:r,disp:"<"+t.tag+"/>"})];var i=new Yi("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:t.startName,equivEnd:t.closeName,type:r,dispStart:"<"+t.tag+">",dispEnd:"</"+t.tag+">"}),o=[].concat.apply([],t.children.map(function(t){return t.visit(n)}));return o.length?o.forEach(function(t){return i.children.push(t)}):i.children.push(new Ki("")),[i]},t.prototype.visitPlaceholder=function(t,e){var n=(this._nextPlaceholderId++).toString();return[new Yi("ph",{id:n,equiv:t.name,disp:"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(t,e){var n=Object.keys(t.value.cases).map(function(t){return t+" {...}"}).join(" "),r=(this._nextPlaceholderId++).toString();return[new Yi("ph",{id:r,equiv:t.name,disp:"{"+t.value.expression+", "+t.value.type+", "+n+"}"})]},t.prototype.serialize=function(t){var e=this;return this._nextPlaceholderId=0,[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),oo=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new Bi).parse(t,e,!1);return this._errors=n.errors,ee(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):(ee(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 i=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,a=t.startSourceSpan.start.file.content.slice(i,o);this._unitMlString=a;break;case"xliff":var s=t.attrs.find(function(t){return"trgLang"===t.name});s&&(this._locale=s.value);var c=t.attrs.find(function(t){return"version"===t.name});if(c){var l=c.value;"2.0"!==l?this._addError(t,"The XLIFF file version "+l+" is not compatible with XLIFF 2.0 serializer"):ee(this,t.children,null)}break;default:ee(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 Oi(t.sourceSpan,e))},t}(),ao=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Bi).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],ee(this,n.rootNodes)),errors:this._errors}},t.prototype.visitText=function(t,e){return new ui(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 fi("",r.value,t.sourceSpan)];this._addError(t,'<ph> misses the "equiv" attribute');break;case"pc":var i=t.attrs.find(function(t){return"equivStart"===t.name}),o=t.attrs.find(function(t){return"equivEnd"===t.name});if(i){if(o){var a=i.value,s=o.value,c=[];return c.concat.apply(c,[new fi("",a,t.sourceSpan)].concat(t.children.map(function(t){return t.visit(n,null)}),[new fi("",s,t.sourceSpan)]))}this._addError(t,'<ph> misses the "equivEnd" attribute')}else this._addError(t,'<ph> misses the "equivStart" attribute');break;case"mrk":return[].concat.apply([],ee(this,t.children));default:this._addError(t,"Unexpected tag")}return null},t.prototype.visitExpansion=function(t,e){var n={};return ee(this,t.cases).forEach(function(e){n[e.value]=new pi(e.nodes,t.sourceSpan)}),new hi(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:[].concat.apply([],ee(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 Oi(t.sourceSpan,e))},t}();var so="messagebundle",co=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.write=function(t,e){var n=new po,r=new lo,i=new Yi(so);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 Yi("source",{},[new Ki(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),i.children.push(new $i(2),new Yi("msg",e,n.concat(r.serialize(t.nodes))))}),i.children.push(new $i),Gi([new Wi({version:"1.0",encoding:"UTF-8"}),new $i,new qi(so,'<!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 $i,n.addDefaultExamples(i),new $i])},e.prototype.load=function(t,e){throw new Error("Unsupported")},e.prototype.digest=function(t){return uo(t)},e.prototype.createNameMapper=function(t){return new Hi(t,ho)},e}(Ui),lo=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Ki(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 Ki("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new Ki(e+" {")].concat(t.cases[e].visit(n),[new Ki("} ")]))}),r.push(new Ki("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=new Yi("ex",{},[new Ki("<"+t.tag+">")]),r=new Yi("ph",{name:t.startName},[n]);if(t.isVoid)return[r];var i=new Yi("ex",{},[new Ki("</"+t.tag+">")]),o=new Yi("ph",{name:t.closeName},[i]);return[r].concat(this.serialize(t.children),[o])},t.prototype.visitPlaceholder=function(t,e){var n=new Yi("ex",{},[new Ki("{{"+t.value+"}}")]);return[new Yi("ph",{name:t.name},[n])]},t.prototype.visitIcuPlaceholder=function(t,e){var n=new Yi("ex",{},[new Ki("{"+t.value.expression+", "+t.value.type+", "+Object.keys(t.value.cases).map(function(t){return t+" {...}"}).join(" ")+"}")]);return[new Yi("ph",{name:t.name},[n])]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}();function uo(t){return Wr(t)}var po=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 Ki(t.attrs.name||"...");t.children=[new Yi("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}();function ho(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var fo="translationbundle",mo="translation",go=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.write=function(t,e){throw new Error("Unsupported")},e.prototype.load=function(t,e){var n=(new yo).parse(t,e),r=n.locale,i=n.msgIdToHtml,o=n.errors,a={},s=new vo;if(Object.keys(i).forEach(function(t){var n,r,o;n=a,r=t,o=function(){var n=s.convert(i[t],e),r=n.i18nNodes,o=n.errors;if(o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return r},Object.defineProperty(n,r,{configurable:!0,enumerable:!0,get:function(){var t=o();return Object.defineProperty(n,r,{enumerable:!0,value:t}),t},set:function(t){throw new Error("Could not overwrite an XTB translation")}})}),o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return uo(t)},e.prototype.createNameMapper=function(t){return new Hi(t,ho)},e}(Ui);var yo=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._bundleDepth=0,this._msgIdToHtml={};var n=(new Bi).parse(t,e,!1);return this._errors=n.errors,ee(this,n.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case fo:this._bundleDepth++,this._bundleDepth>1&&this._addError(t,"<"+fo+"> elements can not be nested");var n=t.attrs.find(function(t){return"lang"===t.name});n&&(this._locale=n.value),ee(this,t.children,null),this._bundleDepth--;break;case mo:var r=t.attrs.find(function(t){return"id"===t.name});if(r){var i=r.value;if(this._msgIdToHtml.hasOwnProperty(i))this._addError(t,"Duplicated translations for msg "+i);else{var o=t.startSourceSpan.end.offset,a=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content.slice(o,a);this._msgIdToHtml[i]=s}}else this._addError(t,"<"+mo+'> 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 Oi(t.sourceSpan,e))},t}(),vo=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Bi).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:ee(this,n.rootNodes),errors:this._errors}},t.prototype.visitText=function(t,e){return new ui(t.value,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){var n={};return ee(this,t.cases).forEach(function(e){n[e.value]=new pi(e.nodes,t.sourceSpan)}),new hi(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:ee(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 fi("",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 Oi(t.sourceSpan,e))},t}(),bo=function(t){function e(){return t.call(this,wi)||this}return n(e,t),e.prototype.parse=function(e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=se),t.prototype.parse.call(this,e,n,r,i)},e}(Ur),_o=function(){function t(t,e,n,r,i,o){void 0===t&&(t={}),void 0===i&&(i=T.Warning),this._i18nNodesByMsgId=t,this.digest=n,this.mapperFactory=r,this._i18nToHtml=new wo(t,e,n,r,i,o)}return t.load=function(e,n,r,i,o){var a=r.load(e,n),s=a.locale;return new t(a.i18nNodesByMsgId,s,function(t){return r.digest(t)},function(t){return r.createNameMapper(t)},i,o)},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}(),wo=function(){function t(t,e,n,r,i,o){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this._locale=e,this._digest=n,this._mapperFactory=r,this._missingTranslationStrategy=i,this._console=o,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 bo).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,i=Object.keys(t.attrs).map(function(e){return e+'="'+t.attrs[e]+'"'}).join(" ");return t.isVoid?"<"+r+" "+i+"/>":"<"+r+" "+i+">"+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 e,n=this,r=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(r))e=this._i18nNodesByMsgId[r],this._mapper=function(t){return i?i.toInternalName(t):t};else{if(this._missingTranslationStrategy===T.Error){var o=this._locale?' for locale "'+this._locale+'"':"";this._addError(t.nodes[0],'Missing translation for message "'+r+'"'+o)}else if(this._console&&this._missingTranslationStrategy===T.Warning){o=this._locale?' for locale "'+this._locale+'"':"";this._console.warn('Missing translation for message "'+r+'"'+o)}e=t.nodes,this._mapper=function(t){return t}}var a=e.map(function(t){return t.visit(n)}).join(""),s=this._contextStack.pop();return this._srcMsg=s.msg,this._mapper=s.mapper,a},t.prototype._addError=function(t,e){this._errors.push(new Oi(t.sourceSpan,e))},t}(),Co=function(){function t(t,e,n,r,i){if(void 0===r&&(r=T.Warning),this._htmlParser=t,e){var o=function(t){switch(t=(t||"xlf").toLowerCase()){case"xmb":return new co;case"xtb":return new go;case"xliff2":case"xlf2":return new ro;case"xliff":case"xlf":default:return new Ji}}(n);this._translationBundle=_o.load(e,"i18n",o,r,i)}else this._translationBundle=new _o({},null,Gr,void 0,r,i)}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=se);var i,o,a,s=this._htmlParser.parse(t,e,n,r);return s.errors.length?new Br(s.rootNodes,s.errors):(i=s.rootNodes,o=this._translationBundle,a=r,new Li([],{}).merge(i,o,a))},t}();var xo=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,Eo=/\.ngfactory\.|\.ngsummary\./,So=/\.ngsummary\./,ko=/NgSummary$/;function Oo(t,e){void 0===e&&(e=!1);var n=Ao(t,e);return n[0]+".ngfactory"+To(n[1])}function Po(t){return t.replace(Eo,".")}function Ao(t,e){if(void 0===e&&(e=!1),t.endsWith(".d.ts"))return[t.slice(0,-5),e?".ts":".d.ts"];var n=t.lastIndexOf(".");return-1!==n?[t.substring(0,n),t.substring(n)]:[t,""]}function To(t){return".tsx"===t?".ts":t}function Mo(t){return t.replace(xo,"")+".ngsummary.json"}function Io(t,e){void 0===e&&(e=!1);var n=Ao(Po(t),e);return n[0]+".ngsummary"+n[1]}function Ro(t){return t+"NgSummary"}var Do=/\u0275\d+/;function No(t){return Do.test(t)}var Lo="@angular/core",jo=function(){function t(){}return t.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleName:Lo},t.ElementRef={name:"ElementRef",moduleName:Lo},t.NgModuleRef={name:"NgModuleRef",moduleName:Lo},t.ViewContainerRef={name:"ViewContainerRef",moduleName:Lo},t.ChangeDetectorRef={name:"ChangeDetectorRef",moduleName:Lo},t.QueryList={name:"QueryList",moduleName:Lo},t.TemplateRef={name:"TemplateRef",moduleName:Lo},t.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleName:Lo},t.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleName:Lo},t.ComponentFactory={name:"ComponentFactory",moduleName:Lo},t.ComponentRef={name:"ComponentRef",moduleName:Lo},t.NgModuleFactory={name:"NgModuleFactory",moduleName:Lo},t.createModuleFactory={name:"ɵcmf",moduleName:Lo},t.moduleDef={name:"ɵmod",moduleName:Lo},t.moduleProviderDef={name:"ɵmpd",moduleName:Lo},t.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleName:Lo},t.Injector={name:"Injector",moduleName:Lo},t.ViewEncapsulation={name:"ViewEncapsulation",moduleName:Lo},t.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:Lo},t.SecurityContext={name:"SecurityContext",moduleName:Lo},t.LOCALE_ID={name:"LOCALE_ID",moduleName:Lo},t.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleName:Lo},t.inlineInterpolate={name:"ɵinlineInterpolate",moduleName:Lo},t.interpolate={name:"ɵinterpolate",moduleName:Lo},t.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleName:Lo},t.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleName:Lo},t.Renderer={name:"Renderer",moduleName:Lo},t.viewDef={name:"ɵvid",moduleName:Lo},t.elementDef={name:"ɵeld",moduleName:Lo},t.anchorDef={name:"ɵand",moduleName:Lo},t.textDef={name:"ɵted",moduleName:Lo},t.directiveDef={name:"ɵdid",moduleName:Lo},t.providerDef={name:"ɵprd",moduleName:Lo},t.queryDef={name:"ɵqud",moduleName:Lo},t.pureArrayDef={name:"ɵpad",moduleName:Lo},t.pureObjectDef={name:"ɵpod",moduleName:Lo},t.purePipeDef={name:"ɵppd",moduleName:Lo},t.pipeDef={name:"ɵpid",moduleName:Lo},t.nodeValue={name:"ɵnov",moduleName:Lo},t.ngContentDef={name:"ɵncd",moduleName:Lo},t.unwrapValue={name:"ɵunv",moduleName:Lo},t.createRendererType2={name:"ɵcrt",moduleName:Lo},t.RendererType2={name:"RendererType2",moduleName:Lo},t.ViewDefinition={name:"ɵViewDefinition",moduleName:Lo},t.createComponentFactory={name:"ɵccf",moduleName:Lo},t}();function Fo(t){return{identifier:{reference:t}}}function Vo(t,e){return Fo(t.resolveExternalReference(e))}var Bo={OnInit:0,OnDestroy:1,DoCheck:2,OnChanges:3,AfterContentInit:4,AfterContentChecked:5,AfterViewInit:6,AfterViewChecked:7};Bo[Bo.OnInit]="OnInit",Bo[Bo.OnDestroy]="OnDestroy",Bo[Bo.DoCheck]="DoCheck",Bo[Bo.OnChanges]="OnChanges",Bo[Bo.AfterContentInit]="AfterContentInit",Bo[Bo.AfterContentChecked]="AfterContentChecked",Bo[Bo.AfterViewInit]="AfterViewInit",Bo[Bo.AfterViewChecked]="AfterViewChecked";var Uo=[Bo.OnInit,Bo.OnDestroy,Bo.DoCheck,Bo.OnChanges,Bo.AfterContentInit,Bo.AfterContentChecked,Bo.AfterViewInit,Bo.AfterViewChecked];function Ho(t,e,n){return t.hasLifecycleHook(n,function(t){switch(t){case Bo.OnInit:return"ngOnInit";case Bo.OnDestroy:return"ngOnDestroy";case Bo.DoCheck:return"ngDoCheck";case Bo.OnChanges:return"ngOnChanges";case Bo.AfterContentInit:return"ngAfterContentInit";case Bo.AfterContentChecked:return"ngAfterContentChecked";case Bo.AfterViewInit:return"ngAfterViewInit";case Bo.AfterViewChecked:return"ngAfterViewChecked"}}(e))}var zo=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),Go=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var n,r=[],i=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},o=new t,a=o,s=!1;for(zo.lastIndex=0;n=zo.exec(e);){if(n[1]){if(s)throw new Error("Nesting :not is not allowed in a selector");s=!0,a=new t,o.notSelectors.push(a)}if(n[2]&&a.setElement(n[2]),n[3]&&a.addClassName(n[3]),n[4]&&a.addAttribute(n[4],n[6]),n[7]&&(s=!1,a=o),n[8]){if(s)throw new Error("Multiple selectors in :not are not supported");i(r,o),o=a=new t}}return i(r,o),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 wi(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}(),Wo=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 qo(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,i=t.element,o=t.classNames,a=t.attrs,s=new Yo(t,e,n);i&&((l=0===a.length&&0===o.length)?this._addTerminal(r._elementMap,i,s):r=this._addPartial(r._elementPartialMap,i));if(o)for(var c=0;c<o.length;c++){var l=0===a.length&&c===o.length-1,u=o[c];l?this._addTerminal(r._classMap,u,s):r=this._addPartial(r._classPartialMap,u)}if(a)for(c=0;c<a.length;c+=2){l=c===a.length-2;var p=a[c],h=a[c+1];if(l){var d=r._attrValueMap,f=d.get(p);f||(f=new Map,d.set(p,f)),this._addTerminal(f,h,s)}else{var m=r._attrValuePartialMap,g=m.get(p);g||(g=new Map,m.set(p,g)),r=this._addPartial(g,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,i=t.classNames,o=t.attrs,a=0;a<this._listContexts.length;a++)this._listContexts[a].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,r,t,e)||n,n=this._matchPartial(this._elementPartialMap,r,t,e)||n,i)for(a=0;a<i.length;a++){var s=i[a];n=this._matchTerminal(this._classMap,s,t,e)||n,n=this._matchPartial(this._classPartialMap,s,t,e)||n}if(o)for(a=0;a<o.length;a+=2){var c=o[a],l=o[a+1],u=this._attrValueMap.get(c);l&&(n=this._matchTerminal(u,"",t,e)||n),n=this._matchTerminal(u,l,t,e)||n;var p=this._attrValuePartialMap.get(c);l&&(n=this._matchPartial(p,"",t,e)||n),n=this._matchPartial(p,l,t,e)||n}return n},t.prototype._matchTerminal=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var i=t.get(e)||[],o=t.get("*");if(o&&(i=i.concat(o)),0===i.length)return!1;for(var a=!1,s=0;s<i.length;s++)a=i[s].finalize(n,r)||a;return a},t.prototype._matchPartial=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var i=t.get(e);return!!i&&i.match(n,r)},t}(),qo=function(){return function(t){this.selectors=t,this.alreadyMatched=!1}}(),Yo=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;!(this.notSelectors.length>0)||this.listContext&&this.listContext.alreadyMatched||(n=!Wo.createNotMatcher(this.notSelectors).match(t,null));return!n||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),n},t}(),Ko="ngComponentType",$o=function(){function t(t,e,n,r,i,o,a,s,c,l,u,p){this._config=t,this._htmlParser=e,this._ngModuleResolver=n,this._directiveResolver=r,this._pipeResolver=i,this._summaryResolver=o,this._schemaRegistry=a,this._directiveNormalizer=s,this._console=c,this._staticSymbolCache=l,this._reflector=u,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.getReflector=function(){return this._reflector},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,e){var n=null,r=function(){if(!n)throw new Error("Illegal state: Class "+e+" for type "+$(t)+" is not compiled yet!");return n.apply(this,arguments)};return r.setDelegate=function(t){n=t,r.prototype=t.prototype},r.overriddenName=e,r},t.prototype.getGeneratedClass=function(t,e){return t instanceof _t?this._staticSymbolCache.get(Oo(t.filePath),e):this._createProxyClass(t,e)},t.prototype.getComponentViewClass=function(t){return this.getGeneratedClass(t,Ot(t,0))},t.prototype.getHostComponentViewClass=function(t){return this.getGeneratedClass(t,At(t))},t.prototype.getHostComponentType=function(t){var e=St({reference:t})+"_Host";if(t instanceof _t)return this._staticSymbolCache.get(t.filePath,e);var n=function(){};return n.overriddenName=e,n},t.prototype.getRendererType=function(t){return t instanceof _t?this._staticSymbolCache.get(Oo(t.filePath),Pt(t)):{}},t.prototype.getComponentFactory=function(t,e,n,r){if(e instanceof _t)return this._staticSymbolCache.get(Oo(e.filePath),Tt(e));var i=this.getHostComponentViewClass(e);return this._reflector.resolveExternalReference(jo.createComponentFactory)(t,e,i,n,r,[])},t.prototype.initComponentFactory=function(t,e){var n;t instanceof _t||(n=t.ngContentSelectors).push.apply(n,e)},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.getHostComponentMetadata=function(t,e){var n=this.getHostComponentType(t.type.reference);e||(e=this.getHostComponentViewClass(n));var r=Go.parse(t.selector)[0].getMatchingElementTemplate(),i=this._htmlParser.parse(r,"");return Lt.create({isHost:!0,type:{reference:n,diDeps:[],lifecycleHooks:[]},template:new Nt({encapsulation:h.None,template:r,templateUrl:"",htmlAst:i,styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null,preserveWhitespaces:!1}),exportAs:null,changeDetection:d.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],guards:{},viewQueries:[],componentViewType:e,rendererType:{id:"__Host__",encapsulation:h.None,styles:[],data:{}},entryComponents:[],componentFactory:null})},t.prototype.loadDirectiveMetadata=function(t,e,n){var r=this;if(this._directiveCache.has(e))return null;e=X(e);var i,o,a=this.getNonNormalizedDirectiveMetadata(e),s=a.annotation,c=a.metadata,l=function(t){var n=new Lt({isHost:!1,type:c.type,isComponent:c.isComponent,selector:c.selector,exportAs:c.exportAs,changeDetection:c.changeDetection,inputs:c.inputs,outputs:c.outputs,hostListeners:c.hostListeners,hostProperties:c.hostProperties,hostAttributes:c.hostAttributes,providers:c.providers,viewProviders:c.viewProviders,queries:c.queries,guards:c.guards,viewQueries:c.viewQueries,entryComponents:c.entryComponents,componentViewType:c.componentViewType,rendererType:c.rendererType,componentFactory:c.componentFactory,template:t});return t&&r.initComponentFactory(c.componentFactory,t.ngContentSelectors),r._directiveCache.set(e,n),r._summaryCache.set(e,n.toSummary()),null};if(c.isComponent){var u=c.template,p=this._directiveNormalizer.normalizeTemplate({ngModuleType:t,componentType:e,moduleUrl:this._reflector.componentModuleUrl(e,s),encapsulation:u.encapsulation,template:u.template,templateUrl:u.templateUrl,styles:u.styles,styleUrls:u.styleUrls,animations:u.animations,interpolation:u.interpolation,preserveWhitespaces:u.preserveWhitespaces});return Q(p)&&n?(this._reportError((i=e,(o=Error("Can't compile synchronously as "+$(i)+" is still being loaded!"))[Ko]=i,o),e),null):U(p,l)}return l(null),null},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var e=this;if(!(t=X(t)))return null;var n=this._nonNormalizedDirectiveCache.get(t);if(n)return n;var r=this._directiveResolver.resolve(t,!1);if(!r)return null;var i=void 0;if(f.isTypeOf(r)){re("styles",(a=r).styles),re("styleUrls",a.styleUrls),oe("interpolation",a.interpolation);var o=a.animations;i=new Nt({encapsulation:F(a.encapsulation),template:F(a.template),templateUrl:F(a.templateUrl),htmlAst:null,styles:a.styles||[],styleUrls:a.styleUrls||[],animations:o||[],interpolation:F(a.interpolation),isInline:!!a.template,externalStylesheets:[],ngContentSelectors:[],preserveWhitespaces:F(r.preserveWhitespaces)})}var a,s=null,c=[],l=[],u=r.selector;f.isTypeOf(r)?(s=(a=r).changeDetection,a.viewProviders&&(c=this._getProvidersMetadata(a.viewProviders,l,'viewProviders for "'+Jo(t)+'"',[],t)),a.entryComponents&&(l=Xo(a.entryComponents).map(function(t){return e._getEntryComponentMetadata(t)}).concat(l)),u||(u=this._schemaRegistry.getDefaultComponentElementName())):u||(this._reportError(z("Directive "+Jo(t)+" has no selector, please add it!"),t),u="error");var p=[];null!=r.providers&&(p=this._getProvidersMetadata(r.providers,l,'providers for "'+Jo(t)+'"',[],t));var h=[],d=[];null!=r.queries&&(h=this._getQueriesMetadata(r.queries,!1,t),d=this._getQueriesMetadata(r.queries,!0,t));var m=Lt.create({isHost:!1,selector:u,exportAs:F(r.exportAs),isComponent:!!i,type:this._getTypeMetadata(t),template:i,changeDetection:s,inputs:r.inputs||[],outputs:r.outputs||[],host:r.host||{},providers:p||[],viewProviders:c||[],queries:h||[],guards:r.guards||{},viewQueries:d||[],entryComponents:l,componentViewType:i?this.getComponentViewClass(t):null,rendererType:i?this.getRendererType(t):null,componentFactory:null});return i&&(m.componentFactory=this.getComponentFactory(u,t,m.inputs,m.outputs)),n={metadata:m,annotation:r},this._nonNormalizedDirectiveCache.set(t,n),n},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(z("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+Jo(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,Mt.Directive);return e||this._reportError(z("Illegal state: Could not load the summary for directive "+Jo(t)+"."),t),e},t.prototype.isDirective=function(t){return!!this._loadSummary(t,Mt.Directive)||this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return!!this._loadSummary(t,Mt.Pipe)||this._pipeResolver.isPipe(t)},t.prototype.isNgModule=function(t){return!!this._loadSummary(t,Mt.NgModule)||this._ngModuleResolver.isNgModule(t)},t.prototype.getNgModuleSummary=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,Mt.NgModule);if(!n){var r=this.getNgModuleMetadata(t,!1,e);(n=r?r.toSummary():null)&&this._summaryCache.set(t,n)}return n},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=this.getNgModuleMetadata(t,n),o=[];return i&&(i.declaredDirectives.forEach(function(n){var i=r.loadDirectiveMetadata(t,n.reference,e);i&&o.push(i)}),i.declaredPipes.forEach(function(t){return r._loadPipeMetadata(t.reference)})),Promise.all(o)},t.prototype.getNgModuleMetadata=function(t,e,n){var r=this;void 0===e&&(e=!0),void 0===n&&(n=null),t=X(t);var i=this._ngModuleCache.get(t);if(i)return i;var o=this._ngModuleResolver.resolve(t,e);if(!o)return null;var a=[],s=[],c=[],l=[],u=[],p=[],h=[],d=[],f=[];o.imports&&Xo(o.imports).forEach(function(e){var i=void 0;if(Qo(e))i=e;else if(e&&e.ngModule){var o=e;i=o.ngModule,o.providers&&p.push.apply(p,r._getProvidersMetadata(o.providers,h,"provider for the NgModule '"+Jo(i)+"'",[],e))}if(i){if(!r._checkSelfImport(t,i))if(n||(n=new Set),n.has(i))r._reportError(z(r._getTypeDescriptor(i)+" '"+Jo(e)+"' is imported recursively by the module '"+Jo(t)+"'."),t);else{n.add(i);var a=r.getNgModuleSummary(i,n);n.delete(i),a?l.push(a):r._reportError(z("Unexpected "+r._getTypeDescriptor(e)+" '"+Jo(e)+"' imported by the module '"+Jo(t)+"'. Please add a @NgModule annotation."),t)}}else r._reportError(z("Unexpected value '"+Jo(e)+"' imported by the module '"+Jo(t)+"'"),t)}),o.exports&&Xo(o.exports).forEach(function(e){if(Qo(e))if(n||(n=new Set),n.has(e))r._reportError(z(r._getTypeDescriptor(e)+" '"+$(e)+"' is exported recursively by the module '"+Jo(t)+"'"),t);else{n.add(e);var i=r.getNgModuleSummary(e,n);n.delete(e),i?u.push(i):s.push(r._getIdentifierMetadata(e))}else r._reportError(z("Unexpected value '"+Jo(e)+"' exported by the module '"+Jo(t)+"'"),t)});var m=this._getTransitiveNgModuleMetadata(l,u);o.declarations&&Xo(o.declarations).forEach(function(e){if(Qo(e)){var n=r._getIdentifierMetadata(e);if(r.isDirective(e))m.addDirective(n),a.push(n),r._addTypeToModule(e,t);else{if(!r.isPipe(e))return void r._reportError(z("Unexpected "+r._getTypeDescriptor(e)+" '"+Jo(e)+"' declared by the module '"+Jo(t)+"'. Please add a @Pipe/@Directive/@Component annotation."),t);m.addPipe(n),m.pipes.push(n),c.push(n),r._addTypeToModule(e,t)}}else r._reportError(z("Unexpected value '"+Jo(e)+"' declared by the module '"+Jo(t)+"'"),t)});var g=[],y=[];return s.forEach(function(e){if(m.directivesSet.has(e.reference))g.push(e),m.addExportedDirective(e);else{if(!m.pipesSet.has(e.reference))return void r._reportError(z("Can't export "+r._getTypeDescriptor(e.reference)+" "+Jo(e.reference)+" from "+Jo(t)+" as it was neither declared nor imported!"),t);y.push(e),m.addExportedPipe(e)}}),o.providers&&p.push.apply(p,this._getProvidersMetadata(o.providers,h,"provider for the NgModule '"+Jo(t)+"'",[],t)),o.entryComponents&&h.push.apply(h,Xo(o.entryComponents).map(function(t){return r._getEntryComponentMetadata(t)})),o.bootstrap&&Xo(o.bootstrap).forEach(function(e){Qo(e)?d.push(r._getIdentifierMetadata(e)):r._reportError(z("Unexpected value '"+Jo(e)+"' used in the bootstrap property of module '"+Jo(t)+"'"),t)}),h.push.apply(h,d.map(function(t){return r._getEntryComponentMetadata(t.reference)})),o.schemas&&f.push.apply(f,Xo(o.schemas)),i=new Ft({type:this._getTypeMetadata(t),providers:p,entryComponents:h,bootstrapComponents:d,schemas:f,declaredDirectives:a,exportedDirectives:g,declaredPipes:c,exportedPipes:y,importedModules:l,exportedModules:u,transitiveModule:m,id:o.id||null}),h.forEach(function(t){return m.addEntryComponent(t)}),p.forEach(function(t){return m.addProvider(t,i.type)}),m.addModule(i.type),this._ngModuleCache.set(t,i),i},t.prototype._checkSelfImport=function(t,e){return t===e&&(this._reportError(z("'"+Jo(t)+"' module can't import itself"),t),!0)},t.prototype._getTypeDescriptor=function(t){if(Qo(t)){if(this.isDirective(t))return"directive";if(this.isPipe(t))return"pipe";if(this.isNgModule(t))return"module"}return t.provide?"provider":"value"},t.prototype._addTypeToModule=function(t,e){var n=this._ngModuleOfTypes.get(t);n&&n!==e?this._reportError(z("Type "+Jo(t)+" is part of the declarations of 2 modules: "+Jo(n)+" and "+Jo(e)+"! Please consider moving "+Jo(t)+" to a higher module that imports "+Jo(n)+" and "+Jo(e)+". You can also create a new NgModule that exports and includes "+Jo(t)+" then import that NgModule in "+Jo(n)+" and "+Jo(e)+"."),e):this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var n=new Vt,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 i=Rt(t.provider.token),o=r.get(i);o||(o=new Set,r.set(i,o));var a=t.module.reference;!e.has(i)&&o.has(a)||(o.add(a),e.add(i),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{reference:t=X(t)}},t.prototype.isInjectable=function(t){return this._reflector.annotations(t).some(function(t){return E.isTypeOf(t)})},t.prototype.getInjectableSummary=function(t){return{summaryKind:Mt.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype._getInjectableMetadata=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,Mt.Injectable);return n?n.type:this._getTypeMetadata(t,e)},t.prototype._getTypeMetadata=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=!0);var r,i,o=this._getIdentifierMetadata(t);return{reference:o.reference,diDeps:this._getDependenciesMetadata(o.reference,e,n),lifecycleHooks:(r=this._reflector,i=o.reference,Uo.filter(function(t){return Ho(r,t,i)}))}},t.prototype._getFactoryMetadata=function(t,e){return void 0===e&&(e=null),{reference:t=X(t),diDeps:this._getDependenciesMetadata(t,e)}},t.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(z("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+Jo(t)+"."),t),e||null},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,Mt.Pipe);return e||this._reportError(z("Illegal state: Could not load the summary for pipe "+Jo(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=X(t);var e=this._pipeResolver.resolve(t),n=new jt({type:this._getTypeMetadata(t),name:e.name,pure:!!e.pure});return this._pipeCache.set(t,n),this._summaryCache.set(t,n.toSummary()),n},t.prototype._getDependenciesMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var s=!1,c=(e||this._reflector.parameters(t)||[]).map(function(t){var e=!1,n=!1,c=!1,l=!1,u=!1,p=null;return Array.isArray(t)?t.forEach(function(t){O.isTypeOf(t)?n=!0:S.isTypeOf(t)?c=!0:k.isTypeOf(t)?l=!0:x.isTypeOf(t)?u=!0:a.isTypeOf(t)?(e=!0,p=t.attributeName):i.isTypeOf(t)?p=t.token:o.isTypeOf(t)||t instanceof _t?p=t:Qo(t)&&null==p&&(p=t)}):p=t,null==p?(s=!0,null):{isAttribute:e,isHost:n,isSelf:c,isSkipSelf:l,isOptional:u,token:r._getTokenMetadata(p)}});if(s){var l=c.map(function(t){return t?Jo(t.token):"?"}).join(", "),u="Can't resolve all parameters for "+Jo(t)+": ("+l+").";n||this._config.strictInjectionParameters?this._reportError(z(u),t):this._console.warn("Warning: "+u+" This will become an error in Angular v6.x")}return c},t.prototype._getTokenMetadata=function(t){return"string"==typeof(t=X(t))?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,e,n,r,i){var o=this;return void 0===r&&(r=[]),t.forEach(function(a,s){if(Array.isArray(a))o._getProvidersMetadata(a,e,n,r);else{var c=void 0;if((a=X(a))&&"object"==typeof a&&a.hasOwnProperty("provide"))o._validateProvider(a),c=new Ut(a.provide,a);else{if(!Qo(a)){if(void 0===a)return void o._reportError(z("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<s?t.push(""+Jo(e)):n==s?t.push("?"+Jo(e)+"?"):n==s+1&&t.push("..."),t},[]).join(", ");return void o._reportError(z("Invalid "+(n||"provider")+" - only instances of Provider and Type are allowed, got: ["+l+"]"),i)}c=new Ut(a,{useClass:a})}c.token===o._reflector.resolveExternalReference(jo.ANALYZE_FOR_ENTRY_COMPONENTS)?e.push.apply(e,o._getEntryComponentsFromProvider(c,i)):r.push(o.getProviderMetadata(c))}}),r},t.prototype._validateProvider=function(t){t.hasOwnProperty("useClass")&&null==t.useClass&&this._reportError(z("Invalid provider for "+Jo(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,r,i=this,o=[],a=[];return t.useFactory||t.useExisting||t.useClass?(this._reportError(z("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),e),[]):t.multi?(n=t.useValue,r=a,L(n,new Zo,r),a.forEach(function(t){var e=i._getEntryComponentMetadata(t.reference,!1);e&&o.push(e)}),o):(this._reportError(z("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,Mt.Directive);if(r&&r.isComponent)return{componentType:t,componentFactory:r.componentFactory};if(e)throw z(t.name+" cannot be used as an entry component.");return null},t.prototype.getProviderMetadata=function(t){var e=void 0,n=null,r=null,i=this._getTokenMetadata(t.token);return t.useClass?(e=(n=this._getInjectableMetadata(t.useClass,t.dependencies)).diDeps,t.token===t.useClass&&(i={identifier:n})):t.useFactory&&(e=(r=this._getFactoryMetadata(t.useFactory,t.dependencies)).diDeps),{token:i,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,i=[];return Object.keys(t).forEach(function(o){var a=t[o];a.isViewQuery===e&&i.push(r._getQueryMetadata(a,o,n))}),i},t.prototype._queryVarBindings=function(t){return t.split(/\s*,\s*/)},t.prototype._getQueryMetadata=function(t,e,n){var r,i=this;return"string"==typeof t.selector?r=this._queryVarBindings(t.selector).map(function(t){return i._getTokenMetadata(t)}):t.selector?r=[this._getTokenMetadata(t.selector)]:(this._reportError(z("Can't construct a query for the property \""+e+'" of "'+Jo(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}();function Xo(t){return(e=function t(e,n){if(void 0===n&&(n=[]),e)for(var r=0;r<e.length;r++){var i=X(e[r]);Array.isArray(i)?t(i,n):n.push(i)}return n}(t))?Array.from(new Set(e)):[];var e}function Qo(t){return t instanceof _t||t instanceof P}var Zo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.visitOther=function(t,e){e.push({reference:t})},e}(V);function Jo(t){return t instanceof _t?t.name+" in "+t.filePath:$(t)}var ta={Const:0};ta[ta.Const]="Const";var ea=function(){function t(t){void 0===t&&(t=null),this.modifiers=t,t||(this.modifiers=[])}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),na={Dynamic:0,Bool:1,String:2,Int:3,Number:4,Function:5,Inferred:6};na[na.Dynamic]="Dynamic",na[na.Bool]="Bool",na[na.String]="String",na[na.Int]="Int",na[na.Number]="Number",na[na.Function]="Function",na[na.Inferred]="Inferred";var ra=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.name=e,r}return n(e,t),e.prototype.visitType=function(t,e){return t.visitBuiltintType(this,e)},e}(ea),ia=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.value=e,r}return n(e,t),e.prototype.visitType=function(t,e){return t.visitExpressionType(this,e)},e}(ea),oa=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.of=e,r}return n(e,t),e.prototype.visitType=function(t,e){return t.visitArrayType(this,e)},e}(ea),aa=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 n(e,t),e.prototype.visitType=function(t,e){return t.visitMapType(this,e)},e}(ea),sa=new ra(na.Dynamic),ca=new ra(na.Inferred),la=new ra(na.Bool),ua=(new ra(na.Int),new ra(na.Number),new ra(na.String),new ra(na.Function),{Equals:0,NotEquals:1,Identical:2,NotIdentical:3,Minus:4,Plus:5,Divide:6,Multiply:7,Modulo:8,And:9,Or:10,Lower:11,LowerEquals:12,Bigger:13,BiggerEquals:14});function pa(t,e){return null==t||null==e?t==e:t.isEquivalent(e)}function ha(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(!t[r].isEquivalent(e[r]))return!1;return!0}ua[ua.Equals]="Equals",ua[ua.NotEquals]="NotEquals",ua[ua.Identical]="Identical",ua[ua.NotIdentical]="NotIdentical",ua[ua.Minus]="Minus",ua[ua.Plus]="Plus",ua[ua.Divide]="Divide",ua[ua.Multiply]="Multiply",ua[ua.Modulo]="Modulo",ua[ua.And]="And",ua[ua.Or]="Or",ua[ua.Lower]="Lower",ua[ua.LowerEquals]="LowerEquals",ua[ua.Bigger]="Bigger",ua[ua.BiggerEquals]="BiggerEquals";var da=function(){function t(t,e){this.type=t||null,this.sourceSpan=e||null}return t.prototype.prop=function(t,e){return new Ra(this,t,null,e)},t.prototype.key=function(t,e,n){return new Da(this,t,e,n)},t.prototype.callMethod=function(t,e,n){return new _a(this,t,e,null,n)},t.prototype.callFn=function(t,e){return new wa(this,t,null,e)},t.prototype.instantiate=function(t,e,n){return new Ca(this,t,e,n)},t.prototype.conditional=function(t,e,n){return void 0===e&&(e=null),new ka(this,t,e,null,n)},t.prototype.equals=function(t,e){return new Ia(ua.Equals,this,t,null,e)},t.prototype.notEquals=function(t,e){return new Ia(ua.NotEquals,this,t,null,e)},t.prototype.identical=function(t,e){return new Ia(ua.Identical,this,t,null,e)},t.prototype.notIdentical=function(t,e){return new Ia(ua.NotIdentical,this,t,null,e)},t.prototype.minus=function(t,e){return new Ia(ua.Minus,this,t,null,e)},t.prototype.plus=function(t,e){return new Ia(ua.Plus,this,t,null,e)},t.prototype.divide=function(t,e){return new Ia(ua.Divide,this,t,null,e)},t.prototype.multiply=function(t,e){return new Ia(ua.Multiply,this,t,null,e)},t.prototype.modulo=function(t,e){return new Ia(ua.Modulo,this,t,null,e)},t.prototype.and=function(t,e){return new Ia(ua.And,this,t,null,e)},t.prototype.or=function(t,e){return new Ia(ua.Or,this,t,null,e)},t.prototype.lower=function(t,e){return new Ia(ua.Lower,this,t,null,e)},t.prototype.lowerEquals=function(t,e){return new Ia(ua.LowerEquals,this,t,null,e)},t.prototype.bigger=function(t,e){return new Ia(ua.Bigger,this,t,null,e)},t.prototype.biggerEquals=function(t,e){return new Ia(ua.BiggerEquals,this,t,null,e)},t.prototype.isBlank=function(t){return this.equals(Ba,t)},t.prototype.cast=function(t,e){return new Aa(this,t,e)},t.prototype.toStmt=function(){return new Wa(this,null)},t}(),fa={This:0,Super:1,CatchError:2,CatchStack:3};fa[fa.This]="This",fa[fa.Super]="Super",fa[fa.CatchError]="CatchError",fa[fa.CatchStack]="CatchStack";var ma=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return"string"==typeof e?(i.name=e,i.builtin=null):(i.name=null,i.builtin=e),i}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.name===t.name&&this.builtin===t.builtin},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 ga(this.name,t,null,this.sourceSpan)},e}(da),ga=function(t){function e(e,n,r,i){var o=t.call(this,r||n.type,i)||this;return o.name=e,o.value=n,o}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.name===t.name&&this.value.isEquivalent(t.value)},e.prototype.visitExpression=function(t,e){return t.visitWriteVarExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return new za(this.name,this.value,t,e,this.sourceSpan)},e}(da),ya=function(t){function e(e,n,r,i,o){var a=t.call(this,i||r.type,o)||this;return a.receiver=e,a.index=n,a.value=r,a}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.index.isEquivalent(t.index)&&this.value.isEquivalent(t.value)},e.prototype.visitExpression=function(t,e){return t.visitWriteKeyExpr(this,e)},e}(da),va=function(t){function e(e,n,r,i,o){var a=t.call(this,i||r.type,o)||this;return a.receiver=e,a.name=n,a.value=r,a}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name&&this.value.isEquivalent(t.value)},e.prototype.visitExpression=function(t,e){return t.visitWritePropExpr(this,e)},e}(da),ba={ConcatArray:0,SubscribeObservable:1,Bind:2};ba[ba.ConcatArray]="ConcatArray",ba[ba.SubscribeObservable]="SubscribeObservable",ba[ba.Bind]="Bind";var _a=function(t){function e(e,n,r,i,o){var a=t.call(this,i,o)||this;return a.receiver=e,a.args=r,"string"==typeof n?(a.name=n,a.builtin=null):(a.name=null,a.builtin=n),a}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name&&this.builtin===t.builtin&&ha(this.args,t.args)},e.prototype.visitExpression=function(t,e){return t.visitInvokeMethodExpr(this,e)},e}(da),wa=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.fn=e,o.args=n,o}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.fn.isEquivalent(t.fn)&&ha(this.args,t.args)},e.prototype.visitExpression=function(t,e){return t.visitInvokeFunctionExpr(this,e)},e}(da),Ca=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.classExpr=e,o.args=n,o}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.classExpr.isEquivalent(t.classExpr)&&ha(this.args,t.args)},e.prototype.visitExpression=function(t,e){return t.visitInstantiateExpr(this,e)},e}(da),xa=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.value=e,i}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.value===t.value},e.prototype.visitExpression=function(t,e){return t.visitLiteralExpr(this,e)},e}(da),Ea=function(t){function e(e,n,r,i){void 0===r&&(r=null);var o=t.call(this,n,i)||this;return o.value=e,o.typeParams=r,o}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.value.name===t.value.name&&this.value.moduleName===t.value.moduleName&&this.value.runtime===t.value.runtime},e.prototype.visitExpression=function(t,e){return t.visitExternalExpr(this,e)},e}(da),Sa=function(){return function(t,e,n){this.moduleName=t,this.name=e,this.runtime=n}}(),ka=function(t){function e(e,n,r,i,o){void 0===r&&(r=null);var a=t.call(this,i||n.type,o)||this;return a.condition=e,a.falseCase=r,a.trueCase=n,a}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.condition.isEquivalent(t.condition)&&this.trueCase.isEquivalent(t.trueCase)&&pa(this.falseCase,t.falseCase)},e.prototype.visitExpression=function(t,e){return t.visitConditionalExpr(this,e)},e}(da),Oa=function(t){function e(e,n){var r=t.call(this,la,n)||this;return r.condition=e,r}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.condition.isEquivalent(t.condition)},e.prototype.visitExpression=function(t,e){return t.visitNotExpr(this,e)},e}(da),Pa=function(t){function e(e,n){var r=t.call(this,e.type,n)||this;return r.condition=e,r}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.condition.isEquivalent(t.condition)},e.prototype.visitExpression=function(t,e){return t.visitAssertNotNullExpr(this,e)},e}(da),Aa=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.value=e,i}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.value.isEquivalent(t.value)},e.prototype.visitExpression=function(t,e){return t.visitCastExpr(this,e)},e}(da),Ta=function(){function t(t,e){void 0===e&&(e=null),this.name=t,this.type=e}return t.prototype.isEquivalent=function(t){return this.name===t.name},t}(),Ma=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.params=e,o.statements=n,o}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&ha(this.params,t.params)&&ha(this.statements,t.statements)},e.prototype.visitExpression=function(t,e){return t.visitFunctionExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===e&&(e=null),new Ga(t,this.params,this.statements,this.type,e,this.sourceSpan)},e}(da),Ia=function(t){function e(e,n,r,i,o){var a=t.call(this,i||n.type,o)||this;return a.operator=e,a.rhs=r,a.lhs=n,a}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.operator===t.operator&&this.lhs.isEquivalent(t.lhs)&&this.rhs.isEquivalent(t.rhs)},e.prototype.visitExpression=function(t,e){return t.visitBinaryOperatorExpr(this,e)},e}(da),Ra=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.receiver=e,o.name=n,o}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name},e.prototype.visitExpression=function(t,e){return t.visitReadPropExpr(this,e)},e.prototype.set=function(t){return new va(this.receiver,this.name,t,null,this.sourceSpan)},e}(da),Da=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.receiver=e,o.index=n,o}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.index.isEquivalent(t.index)},e.prototype.visitExpression=function(t,e){return t.visitReadKeyExpr(this,e)},e.prototype.set=function(t){return new ya(this.receiver,this.index,t,null,this.sourceSpan)},e}(da),Na=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.entries=e,i}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&ha(this.entries,t.entries)},e.prototype.visitExpression=function(t,e){return t.visitLiteralArrayExpr(this,e)},e}(da),La=function(){function t(t,e,n){this.key=t,this.value=e,this.quoted=n}return t.prototype.isEquivalent=function(t){return this.key===t.key&&this.value.isEquivalent(t.value)},t}(),ja=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.entries=e,i.valueType=null,n&&(i.valueType=n.valueType),i}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&ha(this.entries,t.entries)},e.prototype.visitExpression=function(t,e){return t.visitLiteralMapExpr(this,e)},e}(da),Fa=function(t){function e(e,n){var r=t.call(this,e[e.length-1].type,n)||this;return r.parts=e,r}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&ha(this.parts,t.parts)},e.prototype.visitExpression=function(t,e){return t.visitCommaExpr(this,e)},e}(da),Va=(new ma(fa.This,null,null),new ma(fa.Super,null,null),new ma(fa.CatchError,null,null),new ma(fa.CatchStack,null,null),new xa(null,null,null)),Ba=new xa(null,ca,null),Ua={Final:0,Private:1,Exported:2};Ua[Ua.Final]="Final",Ua[Ua.Private]="Private",Ua[Ua.Exported]="Exported";var Ha=function(){function t(t,e){this.modifiers=t||[],this.sourceSpan=e||null}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),za=function(t){function e(e,n,r,i,o){void 0===i&&(i=null);var a=t.call(this,i,o)||this;return a.name=e,a.value=n,a.type=r||n.type,a}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.name===t.name&&this.value.isEquivalent(t.value)},e.prototype.visitStatement=function(t,e){return t.visitDeclareVarStmt(this,e)},e}(Ha),Ga=function(t){function e(e,n,r,i,o,a){void 0===o&&(o=null);var s=t.call(this,o,a)||this;return s.name=e,s.params=n,s.statements=r,s.type=i||null,s}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&ha(this.params,t.params)&&ha(this.statements,t.statements)},e.prototype.visitStatement=function(t,e){return t.visitDeclareFunctionStmt(this,e)},e}(Ha),Wa=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.expr=e,r}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.expr.isEquivalent(t.expr)},e.prototype.visitStatement=function(t,e){return t.visitExpressionStmt(this,e)},e}(Ha),qa=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.value=e,r}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.value.isEquivalent(t.value)},e.prototype.visitStatement=function(t,e){return t.visitReturnStmt(this,e)},e}(Ha),Ya=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}(),Ka=(function(t){function e(e,n,r){void 0===r&&(r=null);var i=t.call(this,n,r)||this;return i.name=e,i}n(e,t),e.prototype.isEquivalent=function(t){return this.name===t.name}}(Ya),function(t){function e(e,n,r,i,o){void 0===o&&(o=null);var a=t.call(this,i,o)||this;return a.name=e,a.params=n,a.body=r,a}return n(e,t),e.prototype.isEquivalent=function(t){return this.name===t.name&&ha(this.body,t.body)},e}(Ya)),$a=function(t){function e(e,n,r,i){void 0===i&&(i=null);var o=t.call(this,r,i)||this;return o.name=e,o.body=n,o}return n(e,t),e.prototype.isEquivalent=function(t){return this.name===t.name&&ha(this.body,t.body)},e}(Ya),Xa=function(t){function e(e,n,r,i,o,a,s,c){void 0===s&&(s=null);var l=t.call(this,s,c)||this;return l.name=e,l.parent=n,l.fields=r,l.getters=i,l.constructorMethod=o,l.methods=a,l}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.name===t.name&&pa(this.parent,t.parent)&&ha(this.fields,t.fields)&&ha(this.getters,t.getters)&&this.constructorMethod.isEquivalent(t.constructorMethod)&&ha(this.methods,t.methods)},e.prototype.visitStatement=function(t,e){return t.visitDeclareClassStmt(this,e)},e}(Ha),Qa=function(t){function e(e,n,r,i){void 0===r&&(r=[]);var o=t.call(this,null,i)||this;return o.condition=e,o.trueCase=n,o.falseCase=r,o}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.condition.isEquivalent(t.condition)&&ha(this.trueCase,t.trueCase)&&ha(this.falseCase,t.falseCase)},e.prototype.visitStatement=function(t,e){return t.visitIfStmt(this,e)},e}(Ha),Za=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.comment=e,r}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e},e.prototype.visitStatement=function(t,e){return t.visitCommentStmt(this,e)},e}(Ha),Ja=function(t){function e(e,n,r){var i=t.call(this,null,r)||this;return i.bodyStmts=e,i.catchStmts=n,i}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&ha(this.bodyStmts,t.bodyStmts)&&ha(this.catchStmts,t.catchStmts)},e.prototype.visitStatement=function(t,e){return t.visitTryCatchStmt(this,e)},e}(Ha),ts=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.error=e,r}return n(e,t),e.prototype.isEquivalent=function(t){return t instanceof Ja&&this.error.isEquivalent(t.error)},e.prototype.visitStatement=function(t,e){return t.visitThrowStmt(this,e)},e}(Ha),es=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 ga(t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWriteKeyExpr=function(t,e){return this.transformExpr(new ya(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 va(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 _a(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 wa(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 Ca(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 ka(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 Oa(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitAssertNotNullExpr=function(t,e){return this.transformExpr(new Pa(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCastExpr=function(t,e){return this.transformExpr(new Aa(t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitFunctionExpr=function(t,e){return this.transformExpr(new Ma(t.params,this.visitAllStatements(t.statements,e),t.type,t.sourceSpan),e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return this.transformExpr(new Ia(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 Ra(t.receiver.visitExpression(this,e),t.name,t.type,t.sourceSpan),e)},t.prototype.visitReadKeyExpr=function(t,e){return this.transformExpr(new Da(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 Na(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 La(t.key,t.value.visitExpression(n,e),t.quoted)}),i=new aa(t.valueType,null);return this.transformExpr(new ja(r,i,t.sourceSpan),e)},t.prototype.visitCommaExpr=function(t,e){return this.transformExpr(new Fa(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 za(t.name,t.value.visitExpression(this,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.transformStmt(new Ga(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 Wa(t.expr.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitReturnStmt=function(t,e){return this.transformStmt(new qa(t.value.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitDeclareClassStmt=function(t,e){var n=this,r=t.parent.visitExpression(this,e),i=t.getters.map(function(t){return new $a(t.name,n.visitAllStatements(t.body,e),t.type,t.modifiers)}),o=t.constructorMethod&&new Ka(t.constructorMethod.name,t.constructorMethod.params,this.visitAllStatements(t.constructorMethod.body,e),t.constructorMethod.type,t.constructorMethod.modifiers),a=t.methods.map(function(t){return new Ka(t.name,t.params,n.visitAllStatements(t.body,e),t.type,t.modifiers)});return this.transformStmt(new Xa(t.name,r,t.fields,i,o,a,t.modifiers,t.sourceSpan),e)},t.prototype.visitIfStmt=function(t,e){return this.transformStmt(new Qa(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 Ja(this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t.sourceSpan),e)},t.prototype.visitThrowStmt=function(t,e){return this.transformStmt(new ts(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}(),ns=function(){function t(){}return t.prototype.visitType=function(t,e){return t},t.prototype.visitExpression=function(t,e){return t.type&&t.type.visitType(this,e),t},t.prototype.visitBuiltintType=function(t,e){return this.visitType(t,e)},t.prototype.visitExpressionType=function(t,e){return t.value.visitExpression(this,e),this.visitType(t,e)},t.prototype.visitArrayType=function(t,e){return this.visitType(t,e)},t.prototype.visitMapType=function(t,e){return this.visitType(t,e)},t.prototype.visitReadVarExpr=function(t,e){return this.visitExpression(t,e)},t.prototype.visitWriteVarExpr=function(t,e){return t.value.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitWriteKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitWritePropExpr=function(t,e){return t.receiver.visitExpression(this,e),t.value.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitInvokeMethodExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitAllExpressions(t.args,e),this.visitExpression(t,e)},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),this.visitExpression(t,e)},t.prototype.visitInstantiateExpr=function(t,e){return t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),this.visitExpression(t,e)},t.prototype.visitLiteralExpr=function(t,e){return this.visitExpression(t,e)},t.prototype.visitExternalExpr=function(t,e){var n=this;return t.typeParams&&t.typeParams.forEach(function(t){return t.visitType(n,e)}),this.visitExpression(t,e)},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitNotExpr=function(t,e){return t.condition.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitAssertNotNullExpr=function(t,e){return t.condition.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitFunctionExpr=function(t,e){return this.visitAllStatements(t.statements,e),this.visitExpression(t,e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e),this.visitExpression(t,e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return t.entries.forEach(function(t){return t.value.visitExpression(n,e)}),this.visitExpression(t,e)},t.prototype.visitCommaExpr=function(t,e){return this.visitAllExpressions(t.parts,e),this.visitExpression(t,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.type&&t.type.visitType(this,e),t},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.visitAllStatements(t.statements,e),t.type&&t.type.visitType(this,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}();function rs(t){var e=new is;return e.visitAllStatements(t,null),e.varNames}var is=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.varNames=new Set,e}return n(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}(ns);var os=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.externalReferences=[],e}return n(e,t),e.prototype.visitExternalExpr=function(e,n){return this.externalReferences.push(e.value),t.prototype.visitExternalExpr.call(this,e,n)},e}(ns);function as(t,e){if(!e)return t;var n=new cs(e);return t.visitStatement(n,null)}function ss(t,e){if(!e)return t;var n=new cs(e);return t.visitExpression(n,null)}var cs=function(t){function e(e){var n=t.call(this)||this;return n.sourceSpan=e,n}return n(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}(es);function ls(t,e,n){return new ma(t,e,n)}function us(t,e,n){return void 0===e&&(e=null),new Ea(t,null,e,n)}function ps(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),null!=t?hs(us(t,e,null),n):null}function hs(t,e){return void 0===e&&(e=null),new ia(t,e)}function ds(t,e,n){return new Na(t,e,n)}function fs(t,e){return void 0===e&&(e=null),new ja(t.map(function(t){return new La(t.key,t.value,t.quoted)}),e,null)}function ms(t,e,n,r){return new Ma(t,e,n,r)}function gs(t,e,n){return new xa(t,e,n)}var ys=function(t){function e(e,n){return t.call(this,n,e)||this}return n(e,t),e}(Cr),vs=function(){return function(t,e){var n=this;this.reflector=t,this.component=e,this.errors=[],this.viewQueries=(r=e,i=1,o=new Map,r.viewQueries&&r.viewQueries.forEach(function(t){return Es(o,{meta:t,queryId:i++})}),o),this.viewProviders=new Map,e.viewProviders.forEach(function(t){null==n.viewProviders.get(Rt(t.token))&&n.viewProviders.set(Rt(t.token),!0)});var r,i,o}}(),bs=function(){function t(t,e,n,r,i,o,a,s,c){var l=this;this.viewContext=t,this._parent=e,this._isViewRoot=n,this._directiveAsts=r,this._sourceSpan=c,this._transformedProviders=new Map,this._seenProviders=new Map,this._queriedTokens=new Map,this.transformedHasViewContainer=!1,this._attrs={},i.forEach(function(t){return l._attrs[t.name]=t.value});var u,p,h,d,f,m,g,y=r.map(function(t){return t.directive});if(this._allProviders=(u=y,p=c,h=t.errors,d=new Map,u.forEach(function(t){xs([{token:{identifier:t.type},useClass:t.type}],t.isComponent?ht.Component:ht.Directive,!0,p,h,d)}),u.filter(function(t){return t.isComponent}).concat(u.filter(function(t){return!t.isComponent})).forEach(function(t){xs(t.providers,ht.PublicService,!1,p,h,d),xs(t.viewProviders,ht.PrivateService,!1,p,h,d)}),d),this._contentQueries=(f=y,m=s,g=new Map,f.forEach(function(t,e){t.queries&&t.queries.forEach(function(t){return Es(g,{meta:t,queryId:m++})})}),g),Array.from(this._allProviders.values()).forEach(function(t){l._addQueryReadsTo(t.token,t.token,l._queriedTokens)}),a){var v=Vo(this.viewContext.reflector,jo.TemplateRef);this._addQueryReadsTo(v,v,this._queriedTokens)}o.forEach(function(t){var e=t.value||Vo(l.viewContext.reflector,jo.ElementRef);l._addQueryReadsTo({value:t.name},e,l._queriedTokens)}),this._queriedTokens.get(this.viewContext.reflector.resolveExternalReference(jo.ViewContainerRef))&&(this.transformedHasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){(t.eager||l._queriedTokens.get(Rt(t.token)))&&l._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(){var t=[],e=[];return this._transformedProviders.forEach(function(n){n.eager?e.push(n):t.push(n)}),t.concat(e)},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,"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,i=Rt(r),o=n.get(i);o||(o=[],n.set(i,o)),o.push({queryId:t.queryId,value:r})})},t.prototype._getQueriesFor=function(t){for(var e,n=[],r=this,i=0;null!==r;)(e=r._contentQueries.get(Rt(t)))&&n.push.apply(n,e.filter(function(t){return t.meta.descendants||i<=1})),r._directiveAsts.length>0&&i++,r=r._parent;return(e=this.viewContext.viewQueries.get(Rt(t)))&&n.push.apply(n,e),n},t.prototype._getOrCreateLocalProvider=function(t,e,n){var r=this,i=this._allProviders.get(Rt(e));if(!i||(t===ht.Directive||t===ht.PublicService)&&i.providerType===ht.PrivateService||(t===ht.PrivateService||t===ht.PublicService)&&i.providerType===ht.Builtin)return null;var o=this._transformedProviders.get(Rt(e));if(o)return o;if(null!=this._seenProviders.get(Rt(e)))return this.viewContext.errors.push(new ys("Cannot instantiate cyclic dependency! "+It(e),this._sourceSpan)),null;this._seenProviders.set(Rt(e),!0);var a=i.providers.map(function(t){var e=t.useValue,o=t.useExisting,a=void 0;if(null!=t.useExisting){var s=r._getDependency(i.providerType,{token:t.useExisting},n);null!=s.token?o=s.token:(o=null,e=s.value)}else if(t.useFactory){a=(t.deps||t.useFactory.diDeps).map(function(t){return r._getDependency(i.providerType,t,n)})}else if(t.useClass){a=(t.deps||t.useClass.diDeps).map(function(t){return r._getDependency(i.providerType,t,n)})}return ws(t,{useExisting:o,useValue:e,deps:a})});return o=Cs(i,{eager:n,providers:a}),this._transformedProviders.set(Rt(e),o),o},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===ht.Directive||t===ht.Component){if(Rt(e.token)===this.viewContext.reflector.resolveExternalReference(jo.Renderer)||Rt(e.token)===this.viewContext.reflector.resolveExternalReference(jo.ElementRef)||Rt(e.token)===this.viewContext.reflector.resolveExternalReference(jo.ChangeDetectorRef)||Rt(e.token)===this.viewContext.reflector.resolveExternalReference(jo.TemplateRef))return e;Rt(e.token)===this.viewContext.reflector.resolveExternalReference(jo.ViewContainerRef)&&(this.transformedHasViewContainer=!0)}if(Rt(e.token)===this.viewContext.reflector.resolveExternalReference(jo.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,i=n,o=null;if(e.isSkipSelf||(o=this._getLocalDependency(t,e,n)),e.isSelf)!o&&e.isOptional&&(o={isValue:!0,value:null});else{for(;!o&&r._parent;){var a=r;r=r._parent,a._isViewRoot&&(i=!1),o=r._getLocalDependency(ht.PublicService,e,i)}o||(o=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===Rt(e.token)||null!=this.viewContext.viewProviders.get(Rt(e.token))?e:e.isOptional?o={isValue:!0,value:null}:null)}return o||this.viewContext.errors.push(new ys("No provider for "+It(e.token),this._sourceSpan)),o},t}(),_s=function(){function t(t,e,n,r){var i=this;this.reflector=t,this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,e.transitiveModule.modules.forEach(function(t){xs([{token:{identifier:t},useClass:t}],ht.PublicService,!0,r,i._errors,i._allProviders)}),xs(e.transitiveModule.providers.map(function(t){return t.provider}).concat(n),ht.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)}var n=[],r=[];return this._transformedProviders.forEach(function(t){t.eager?r.push(t):n.push(t)}),n.concat(r)},t.prototype._getOrCreateLocalProvider=function(t,e){var n=this,r=this._allProviders.get(Rt(t));if(!r)return null;var i=this._transformedProviders.get(Rt(t));if(i)return i;if(null!=this._seenProviders.get(Rt(t)))return this._errors.push(new ys("Cannot instantiate cyclic dependency! "+It(t),r.sourceSpan)),null;this._seenProviders.set(Rt(t),!0);var o=r.providers.map(function(t){var i=t.useValue,o=t.useExisting,a=void 0;if(null!=t.useExisting){var s=n._getDependency({token:t.useExisting},e,r.sourceSpan);null!=s.token?o=s.token:(o=null,i=s.value)}else if(t.useFactory){a=(t.deps||t.useFactory.diDeps).map(function(t){return n._getDependency(t,e,r.sourceSpan)})}else if(t.useClass){a=(t.deps||t.useClass.diDeps).map(function(t){return n._getDependency(t,e,r.sourceSpan)})}return ws(t,{useExisting:o,useValue:i,deps:a})});return i=Cs(r,{eager:e,providers:o}),this._transformedProviders.set(Rt(t),i),i},t.prototype._getDependency=function(t,e,n){void 0===e&&(e=!1);var r=!1;t.isSkipSelf||null==t.token||(Rt(t.token)===this.reflector.resolveExternalReference(jo.Injector)||Rt(t.token)===this.reflector.resolveExternalReference(jo.ComponentFactoryResolver)?r=!0:null!=this._getOrCreateLocalProvider(t.token,e)&&(r=!0));var i=t;return t.isSelf&&!r&&(t.isOptional?i={isValue:!0,value:null}:this._errors.push(new ys("No provider for "+It(t.token),n))),i},t}();function ws(t,e){var n=e.useExisting,r=e.useValue,i=e.deps;return{token:t.token,useClass:t.useClass,useExisting:n,useFactory:t.useFactory,useValue:r,deps:i,multi:t.multi}}function Cs(t,e){var n=e.eager,r=e.providers;return new pt(t.token,t.multiProvider,t.eager||n,r,t.providerType,t.lifecycleHooks,t.sourceSpan)}function xs(t,e,n,r,i,o){t.forEach(function(t){var a=o.get(Rt(t.token));if(null!=a&&!!a.multiProvider!=!!t.multi&&i.push(new ys("Mixing multi and non multi provider is not possible for token "+It(a.token),r)),a)t.multi||(a.providers.length=0),a.providers.push(t);else{var s=t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[],c=!(t.useClass||t.useExisting||t.useFactory);a=new pt(t.token,!!t.multi,n||c,[t],e,s,r),o.set(Rt(t.token),a)}})}function Es(t,e){e.meta.selectors.forEach(function(n){var r=t.get(Rt(n));r||(r=[],t.set(Rt(n),r)),r.push(e)})}function Ss(t,e,n){return void 0===n&&(n=null),L(e,new ks(t),n)}var ks=function(){function t(t){this.ctx=t}return t.prototype.visitArray=function(t,e){var n=this;return ds(t.map(function(t){return L(t,n,null)}),e)},t.prototype.visitStringMap=function(t,e){var n=this,r=[],i=new Set(t&&t.$quoted$);return Object.keys(t).forEach(function(e){r.push(new La(e,L(t[e],n,null),i.has(e)))}),new ja(r,e)},t.prototype.visitPrimitive=function(t,e){return gs(t,e)},t.prototype.visitOther=function(t,e){return t instanceof da?t:this.ctx.importExpr(t)},t}();function Os(t,e){var n=0;e.eager||(n|=4096),e.providerType===ht.PrivateService&&(n|=8192),e.lifecycleHooks.forEach(function(t){t!==Bo.OnDestroy&&e.providerType!==ht.Directive&&e.providerType!==ht.Component||(n|=Ms(t))});var r=e.multiProvider?function(t,e,n){var r=[],i=[],o=n.map(function(e,n){var r;if(e.useClass){var i=a(n,e.deps||e.useClass.diDeps);r=t.importExpr(e.useClass.reference).instantiate(i)}else if(e.useFactory){var i=a(n,e.deps||e.useFactory.diDeps);r=t.importExpr(e.useFactory.reference).callFn(i)}else if(e.useExisting){var i=a(n,[{token:e.useExisting}]);r=i[0]}else r=Ss(t,e.useValue);return r});return{providerExpr:ms(i,[new qa(ds(o))],ca),flags:1024|e,depsExpr:ds(r)};function a(e,n){return n.map(function(n,o){var a="p"+e+"_"+o;return i.push(new Ta(a,sa)),r.push(Ts(t,n)),ls(a)})}}(t,n,e.providers):Ps(t,n,e.providerType,e.providers[0]);return{providerExpr:r.providerExpr,flags:r.flags,depsExpr:r.depsExpr,tokenExpr:As(t,e.token)}}function Ps(t,e,n,r){var i,o;return n===ht.Directive||n===ht.Component?(i=t.importExpr(r.useClass.reference),e|=16384,o=r.deps||r.useClass.diDeps):r.useClass?(i=t.importExpr(r.useClass.reference),e|=512,o=r.deps||r.useClass.diDeps):r.useFactory?(i=t.importExpr(r.useFactory.reference),e|=1024,o=r.deps||r.useFactory.diDeps):r.useExisting?(i=Va,e|=2048,o=[{token:r.useExisting}]):(i=Ss(t,r.useValue),e|=256,o=[]),{providerExpr:i,flags:e,depsExpr:ds(o.map(function(e){return Ts(t,e)}))}}function As(t,e){return e.identifier?t.importExpr(e.identifier.reference):gs(e.value)}function Ts(t,e){var n=e.isValue?Ss(t,e.value):As(t,e.token),r=0;return e.isSkipSelf&&(r|=1),e.isOptional&&(r|=2),e.isValue&&(r|=8),0===r?n:ds([gs(r),n])}function Ms(t){var e=0;switch(t){case Bo.AfterContentChecked:e=2097152;break;case Bo.AfterContentInit:e=1048576;break;case Bo.AfterViewChecked:e=8388608;break;case Bo.AfterViewInit:e=4194304;break;case Bo.DoCheck:e=262144;break;case Bo.OnChanges:e=524288;break;case Bo.OnDestroy:e=131072;break;case Bo.OnInit:e=65536}return e}function Is(t,e,n,r){var i=r.map(function(t){return e.importExpr(t.componentFactory)}),o=Vo(t,jo.ComponentFactoryResolver),a={diDeps:[{isValue:!0,value:ds(i)},{token:o,isSkipSelf:!0,isOptional:!0},{token:Vo(t,jo.NgModuleRef)}],lifecycleHooks:[],reference:t.resolveExternalReference(jo.CodegenComponentFactoryResolver)},s=Ps(e,n,ht.PrivateService,{token:o,multi:!1,useClass:a});return{providerExpr:s.providerExpr,flags:s.flags,depsExpr:s.depsExpr,tokenExpr:As(e,o)}}var Rs=function(){return function(t){this.ngModuleFactoryVar=t}}(),Ds=ls("_l"),Ns=function(){function t(t){this.reflector=t}return t.prototype.compile=function(t,e,n){var r=xr("NgModule",e.type),i=e.transitiveModule.entryComponents,o=e.bootstrapComponents,a=new _s(this.reflector,e,n,r),s=[Is(this.reflector,t,0,i)].concat(a.parse().map(function(e){return Os(t,e)})).map(function(t){var e=t.providerExpr,n=t.depsExpr,r=t.flags,i=t.tokenExpr;return us(jo.moduleProviderDef).callFn([gs(r),i,e,n])}),c=us(jo.moduleDef).callFn([ds(s)]),l=ms([new Ta(Ds.name)],[new qa(c)],ca),u=St(e.type)+"NgFactory";if(this._createNgModuleFactory(t,e.type.reference,us(jo.createModuleFactory).callFn([t.importExpr(e.type.reference),ds(o.map(function(e){return t.importExpr(e.reference)})),l])),e.id){var p=us(jo.RegisterModuleFactoryFn).callFn([gs(e.id),ls(u)]).toStmt();t.statements.push(p)}return new Rs(u)},t.prototype.createStub=function(t,e){this._createNgModuleFactory(t,e,Va)},t.prototype._createNgModuleFactory=function(t,e,n){var r=ls(St({reference:e})+"NgFactory").set(n).toDeclStmt(ps(jo.NgModuleFactory,[hs(t.importExpr(e))],[ta.Const]),[Ua.Final,Ua.Exported]);t.statements.push(r)},t}(),Ls=function(){function t(t){this._reflector=t}return t.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(_.isTypeOf)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=Ve(this._reflector.annotations(t),_.isTypeOf);if(n)return n;if(e)throw new Error("No NgModule metadata found for '"+$(t)+"'.");return null},t}(),js=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(i,o){e.set(i,o),n.push(i),r.push(t.sourcesContent.get(i)||null)});var i="",o=0,a=0,s=0,c=0;return this.lines.forEach(function(t){o=0,i+=t.map(function(t){var n=Fs(t.col0-o);return o=t.col0,null!=t.sourceUrl&&(n+=Fs(e.get(t.sourceUrl)-a),a=e.get(t.sourceUrl),n+=Fs(t.sourceLine0-s),s=t.sourceLine0,n+=Fs(t.sourceCol0-c),c=t.sourceCol0),n}).join(","),i+=";"}),i=i.slice(0,-1),{file:this.file||"",version:3,sourceRoot:"",sources:n,sourcesContent:r,mappings:i}},t.prototype.toJsComment=function(){return this.hasMappings?"//# sourceMappingURL=data:application/json;base64,"+function(t){var e="";t=K(t);for(var n=0;n<t.length;){var r=t.charCodeAt(n++),i=t.charCodeAt(n++),o=t.charCodeAt(n++);e+=Bs(r>>2),e+=Bs((3&r)<<4|(isNaN(i)?0:i>>4)),e+=isNaN(i)?"=":Bs((15&i)<<2|o>>6),e+=isNaN(i)||isNaN(o)?"=":Bs(63&o)}return e}(JSON.stringify(this,null,0)):""},t}();function Fs(t){t=t<0?1+(-t<<1):t<<1;var e="";do{var n=31&t;(t>>=5)>0&&(n|=32),e+=Bs(n)}while(t>0);return e}var Vs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Bs(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return Vs[t]}var Us=/'|\\|\n|\r|\$/g,Hs=/^[$A-Z_][0-9A-Z_$]*$/i,zs="  ",Gs=ls("error",null,null),Ws=ls("stack",null,null),qs=function(){return function(t){this.indent=t,this.partsLength=0,this.parts=[],this.srcSpans=[]}}(),Ys=function(){function t(t){this._indent=t,this._classes=[],this._preambleLineCount=0,this._lines=[new qs(t)]}return t.createRoot=function(){return new t(0)},Object.defineProperty(t.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),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.lineLength=function(){return this._currentLine.indent*zs.length+this._currentLine.partsLength},t.prototype.print=function(t,e,n){void 0===n&&(n=!1),e.length>0&&(this._currentLine.parts.push(e),this._currentLine.partsLength+=e.length,this._currentLine.srcSpans.push(t&&t.sourceSpan||null)),n&&this._lines.push(new qs(this._indent))},t.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},t.prototype.incIndent=function(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},t.prototype.decIndent=function(){this._indent--,this.lineIsEmpty()&&(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?Xs(t.indent)+t.parts.join(""):""}).join("\n")},t.prototype.toSourceMapGenerator=function(t,e){void 0===e&&(e=0);for(var n=new js(t),r=!1,i=function(){r||(n.addSource(t," ").addMapping(0,t,0,0),r=!0)},o=0;o<e;o++)n.addLine(),i();return this.sourceLines.forEach(function(t,e){n.addLine();for(var o=t.srcSpans,a=t.parts,s=t.indent*zs.length,c=0;c<o.length&&!o[c];)s+=a[c].length,c++;for(c<o.length&&0===e&&0===s?r=!0:i();c<o.length;){var l=o[c],u=l.start.file,p=l.start.line,h=l.start.col;for(n.addSource(u.url,u.content).addMapping(s,u.url,p,h),s+=a[c].length,c++;c<o.length&&(l===o[c]||!o[c]);)s+=a[c].length,c++}}),n},t.prototype.setPreambleLineCount=function(t){return this._preambleLineCount=t},t.prototype.spanOf=function(t,e){var n=this._lines[t-this._preambleLineCount];if(n)for(var r=e-Xs(n.indent).length,i=0;i<n.parts.length;i++){var o=n.parts[i];if(o.length>r)return n.srcSpans[i];r-=o.length}return null},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}(),Ks=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.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.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.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.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 fa.Super:n="super";break;case fa.This:n="this";break;case fa.CatchError:n=Gs.name;break;case fa.CatchStack:n=Ws.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,$s(n,this._escapeDollarInStrings)):e.print(t,""+n),null},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.visitAssertNotNullExpr=function(t,e){return t.condition.visitExpression(this,e),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var n;switch(t.operator){case ua.Equals:n="==";break;case ua.Identical:n="===";break;case ua.NotEquals:n="!=";break;case ua.NotIdentical:n="!==";break;case ua.And:n="&&";break;case ua.Or:n="||";break;case ua.Plus:n="+";break;case ua.Minus:n="-";break;case ua.Divide:n="/";break;case ua.Multiply:n="*";break;case ua.Modulo:n="%";break;case ua.Lower:n="<";break;case ua.LowerEquals:n="<=";break;case ua.Bigger:n=">";break;case ua.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){return e.print(t,"["),this.visitAllExpressions(t.entries,e,","),e.print(t,"]"),null},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return e.print(t,"{"),this.visitAllObjects(function(r){e.print(t,$s(r.key,n._escapeDollarInStrings,r.quoted)+":"),r.value.visitExpression(n,e)},t.entries,e,","),e.print(t,"}"),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){var r=this;this.visitAllObjects(function(t){return t.visitExpression(r,e)},t,e,n)},t.prototype.visitAllObjects=function(t,e,n,r){for(var i=!1,o=0;o<e.length;o++)o>0&&(n.lineLength()>80?(n.print(null,r,!0),i||(n.incIndent(),n.incIndent(),i=!0)):n.print(null,r,!1)),t(e[o]);i&&(n.decIndent(),n.decIndent())},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}();function $s(t,e,n){if(void 0===n&&(n=!0),null==t)return null;var r=t.replace(Us,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||!Hs.test(r)?"'"+r+"'":r}function Xs(t){for(var e="",n=0;n<t;n++)e+=zs;return e}function Qs(t){var e=new Js,n=Ys.createRoot();return(Array.isArray(t)?t:[t]).forEach(function(t){if(t instanceof Ha)t.visitStatement(e,n);else if(t instanceof da)t.visitExpression(e,n);else{if(!(t instanceof ea))throw new Error("Don't know how to print debug info for "+t);t.visitType(e,n)}}),n.toSource()}var Zs=function(){function t(){}return t.prototype.emitStatementsAndContext=function(t,e,n,r,i){void 0===n&&(n=""),void 0===r&&(r=!0);var o=new Js(i),a=Ys.createRoot();o.visitAllStatements(e,a);var s=n?n.split("\n"):[];o.reexports.forEach(function(t,e){var n=t.map(function(t){return t.name+" as "+t.as}).join(",");s.push("export {"+n+"} from '"+e+"';")}),o.importsWithPrefixes.forEach(function(t,e){s.push("import * as "+t+" from '"+e+"';")});var c=r?a.toSourceMapGenerator(t,s.length).toJsComment():"",l=s.concat([a.toSource(),c]);return c&&l.push(""),a.setPreambleLineCount(s.length),{sourceText:l.join("\n"),context:a}},t.prototype.emitStatements=function(t,e,n){return void 0===n&&(n=""),this.emitStatementsAndContext(t,e,n).sourceText},t}(),Js=function(t){function e(e){var n=t.call(this,!1)||this;return n.referenceFilter=e,n.typeExpression=0,n.importsWithPrefixes=new Map,n.reexports=new Map,n}return n(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!=ca?(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.visitAssertNotNullExpr=function(e,n){var r=t.prototype.visitAssertNotNullExpr.call(this,e,n);return n.print(e,"!"),r},e.prototype.visitDeclareVarStmt=function(t,e){if(t.hasModifier(Ua.Exported)&&t.value instanceof Ea&&!t.type){var n=t.value.value,r=n.name,i=n.moduleName;if(i){var o=this.reexports.get(i);return o||(o=[],this.reexports.set(i,o)),o.push({name:r,as:t.name}),null}}return t.hasModifier(Ua.Exported)&&e.print(t,"export "),t.hasModifier(Ua.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),t.hasModifier(Ua.Exported)&&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(Ua.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(Ua.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(Ua.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 t.hasModifier(Ua.Exported)&&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 ("+Gs.name+") {"),e.incIndent();var n=[Ws.set(Gs.prop("stack",null)).toDeclStmt(null,[Ua.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 na.Bool:n="boolean";break;case na.Dynamic:n="any";break;case na.Function:n="Function";break;case na.Number:case na.Int:n="number";break;case na.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 ba.ConcatArray:e="concat";break;case ba.SubscribeObservable:e="subscribe";break;case ba.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._visitIdentifier=function(t,e,n){var r=this,i=t.name,o=t.moduleName;if(this.referenceFilter&&this.referenceFilter(t))n.print(null,"(null as any)");else{if(o){var a=this.importsWithPrefixes.get(o);null==a&&(a="i"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(o,a)),n.print(null,a+".")}if(n.print(null,i),this.typeExpression>0)(e||[]).length>0&&(n.print(null,"<"),this.visitAllObjects(function(t){return t.visitType(r,n)},e,n,","),n.print(null,">"))}},e.prototype._printColonType=function(t,e,n){t!==ca&&(e.print(null,":"),this.visitType(t,e,n))},e}(Ks),tc=function(){function t(t){this._reflector=t}return t.prototype.isPipe=function(t){var e=this._reflector.annotations(X(t));return e&&e.some(m.isTypeOf)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=this._reflector.annotations(X(t));if(n){var r=Ve(n,m.isTypeOf);if(r)return r}if(e)throw new Error("No Pipe decorator found on "+$(t));return null},t}(),ec={};function nc(t,e){for(var n=0,r=e;n<r.length;n++){var i=r[n];ec[i.toLowerCase()]=t}}nc(A.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),nc(A.STYLE,["*|style"]),nc(A.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"]),nc(A.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 rc=function(){return function(){}}(),ic="boolean",oc="number",ac="string",sc="object",cc=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,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,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*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,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,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","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,referrerPolicy,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]|","slot^[HTMLElement]|name","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: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","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|"],lc={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},uc=function(t){function e(){var e=t.call(this)||this;return e._schema={},cc.forEach(function(t){var n={},r=t.split("|"),i=r[0],o=r[1].split(","),a=i.split("^"),s=a[0],c=a[1];s.split(",").forEach(function(t){return e._schema[t.toLowerCase()]=n});var l=c&&e._schema[c.toLowerCase()];l&&Object.keys(l).forEach(function(t){n[t]=l[t]}),o.forEach(function(t){if(t.length>0)switch(t[0]){case"*":break;case"!":n[t.substring(1)]=ic;break;case"#":n[t.substring(1)]=oc;break;case"%":n[t.substring(1)]=sc;break;default:n[t]=ac}})}),e}return n(e,t),e.prototype.hasProperty=function(t,e,n){if(n.some(function(t){return t.name===C.name}))return!0;if(t.indexOf("-")>-1){if(me(t)||ge(t))return!1;if(n.some(function(t){return t.name===w.name}))return!0}return!!(this._schema[t.toLowerCase()]||this._schema.unknown)[e]},e.prototype.hasElement=function(t,e){if(e.some(function(t){return t.name===C.name}))return!0;if(t.indexOf("-")>-1){if(me(t)||ge(t))return!0;if(e.some(function(t){return t.name===w.name}))return!0}return!!this._schema[t.toLowerCase()]},e.prototype.securityContext=function(t,e,n){n&&(e=this.getMappedPropName(e)),t=t.toLowerCase(),e=e.toLowerCase();var r=ec[t+"|"+e];return r||((r=ec["*|"+e])||A.NONE)},e.prototype.getMappedPropName=function(t){return lc[t]||t},e.prototype.getDefaultComponentElementName=function(){return"ng-component"},e.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}},e.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}},e.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},e.prototype.normalizeAnimationStyleProperty=function(t){return t.replace(R,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})},e.prototype.normalizeAnimationStyleValue=function(t,e,n){var r="",i=n.toString().trim(),o=null;if(function(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}}(t)&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&(o="Please provide a CSS unit value for "+e+":"+n)}return{error:o,value:i+r}},e}(rc);var pc=function(){function t(){this.strictStyling=!0}return t.prototype.shimCssText=function(t,e,n){void 0===n&&(n="");var r=t.match(Tc)||[];return t=t.replace(Ac,""),t=this._insertDirectives(t),[this._scopeCssText(t,e,n)].concat(r).join("\n")},t.prototype._insertDirectives=function(t){return t=this._insertPolyfillDirectivesInCssText(t),this._insertPolyfillRulesInCssText(t)},t.prototype._insertPolyfillDirectivesInCssText=function(t){return t.replace(dc,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(fc,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(mc.lastIndex=0;null!==(e=mc.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,bc,this._colonHostPartReplacer)},t.prototype._convertColonHostContext=function(t){return this._convertColonRule(t,_c,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(","),i=[],o=0;o<r.length;o++){var a=r[o].trim();if(!a)break;i.push(n(wc,a,t[3]))}return i.join(",")}return wc+t[3]})},t.prototype._colonHostContextPartReplacer=function(t,e,n){return e.indexOf(gc)>-1?this._colonHostPartReplacer(t,e,n):t+e+n+", "+e+" "+t+n},t.prototype._colonHostPartReplacer=function(t,e,n){return t+e.replace(gc,"")+n},t.prototype._convertShadowDOMSelectors=function(t){return xc.reduce(function(t,e){return t.replace(e," ")},t)},t.prototype._scopeSelectors=function(t,e,n){var r,i,o,a=this;return r=function(t){var r=t.selector,i=t.content;return"@"!=t.selector[0]?r=a._scopeSelector(t.selector,e,n,a.strictStyling):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(i=a._scopeSelectors(t.content,e,n)),new Lc(r,i)},i=function(t){for(var e=t.split(Ic),n=[],r=[],i=0,o=[],a=0;a<e.length;a++){var s=e[a];s==Dc&&i--,i>0?o.push(s):(o.length>0&&(r.push(o.join("")),n.push(Nc),o=[]),n.push(s)),s==Rc&&i++}o.length>0&&(r.push(o.join("")),n.push(Nc));return new jc(n.join(""),r)}(t),o=0,i.escapedString.replace(Mc,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[2],a="",s=t[4],c="";s&&s.startsWith("{"+Nc)&&(a=i.blocks[o++],s=s.substring(Nc.length+1),c="{");var l=r(new Lc(n,a));return""+t[1]+l.selector+t[3]+c+l.content+s})},t.prototype._scopeSelector=function(t,e,n,r){var i=this;return t.split(",").map(function(t){return t.trim().split(Ec)}).map(function(t){var o,a=t[0],s=t.slice(1);return[(o=a,i._selectorNeedsScoping(o,e)?r?i._applyStrictSelectorScope(o,e,n):i._applySelectorScope(o,e,n):o)].concat(s).join(" ")}).join(", ")},t.prototype._selectorNeedsScoping=function(t,e){return!this._makeScopeMatcher(e).test(t)},t.prototype._makeScopeMatcher=function(t){return t=t.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+t+")"+Sc,"m")},t.prototype._applySelectorScope=function(t,e,n){return this._applySimpleSelectorScope(t,e,n)},t.prototype._applySimpleSelectorScope=function(t,e,n){if(kc.lastIndex=0,kc.test(t)){var r=this.strictStyling?"["+n+"]":e;return t.replace(Cc,function(t,e){return e.replace(/([^:]*)(:*)(.*)/,function(t,e,n,i){return e+r+n+i})}).replace(kc,r+" ")}return e+" "+t},t.prototype._applyStrictSelectorScope=function(t,e,n){for(var r,i=this,o="["+(e=e.replace(/\[is=([^\]]*)\]/g,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(wc)>-1)r=i._applySimpleSelectorScope(t,e,n);else{var a=t.replace(kc,"");if(a.length>0){var s=a.match(/([^:]*)(:*)(.*)/);s&&(r=s[1]+o+s[2]+s[3])}}return r},s=new hc(t),c="",l=0,u=/( |>|\+|~(?!=))\s*/g,p=!((t=s.content()).indexOf(wc)>-1);null!==(r=u.exec(t));){var h=r[1],d=t.slice(l,r.index).trim();c+=((p=p||d.indexOf(wc)>-1)?a(d):d)+" "+h+" ",l=u.lastIndex}var f=t.substring(l);return c+=(p=p||f.indexOf(wc)>-1)?a(f):f,s.restore(c)},t.prototype._insertPolyfillHostInCssText=function(t){return t.replace(Pc,yc).replace(Oc,gc)},t}(),hc=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 i="__ph-"+e.index+"__";return e.placeholders.push(r),e.index++,n+i})}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}(),dc=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,fc=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,mc=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,gc="-shadowcsshost",yc="-shadowcsscontext",vc=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",bc=new RegExp("("+gc+vc,"gim"),_c=new RegExp("("+yc+vc,"gim"),wc=gc+"-no-combinator",Cc=/-shadowcsshost-no-combinator([^\s]*)/,xc=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Ec=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,Sc="([>\\s~+[.,{:][\\s\\S]*)?$",kc=/-shadowcsshost/gim,Oc=/:host/gim,Pc=/:host-context/gim,Ac=/\/\*\s*[\s\S]*?\*\//g;var Tc=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;var Mc=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,Ic=/([{}])/g,Rc="{",Dc="}",Nc="%BLOCK%",Lc=function(){return function(t,e){this.selector=t,this.content=e}}();var jc=function(){return function(t,e){this.escapedString=t,this.blocks=e}}();var Fc=function(){return function(t,e,n){this.name=t,this.moduleUrl=e,this.setValue=n}}(),Vc=function(){return function(t,e,n,r,i){this.outputCtx=t,this.stylesVar=e,this.dependencies=n,this.isShimmed=r,this.meta=i}}(),Bc=function(){function t(t){this._urlResolver=t,this._shadowCss=new pc}return t.prototype.compileComponent=function(t,e){var n=e.template;return this._compileStyles(t,e,new Dt({styles:n.styles,styleUrls:n.styleUrls,moduleUrl:kt(e.type)}),this.needsStyleShim(e),!0)},t.prototype.compileStyles=function(t,e,n,r){return void 0===r&&(r=this.needsStyleShim(e)),this._compileStyles(t,e,n,r,!1)},t.prototype.needsStyleShim=function(t){return t.template.encapsulation===h.Emulated},t.prototype._compileStyles=function(t,e,n,r,i){var o=this,a=n.styles.map(function(t){return gs(o._shimIfNeeded(t,r))}),s=[];n.styleUrls.forEach(function(e){var n=a.length;a.push(null),s.push(new Fc(Uc(null),e,function(e){return a[n]=t.importExpr(e)}))});var c=Uc(i?e:null),l=ls(c).set(ds(a,new oa(sa,[ta.Const]))).toDeclStmt(null,i?[Ua.Final]:[Ua.Final,Ua.Exported]);return t.statements.push(l),new Vc(t,c,s,r,n)},t.prototype._shimIfNeeded=function(t,e){return e?this._shadowCss.shimCssText(t,"_ngcontent-%COMP%","_nghost-%COMP%"):t},t}();function Uc(t){var e="styles";return t&&(e+="_"+St(t.type)),e}var Hc="ngPreserveWhitespaces",zc=new Set(["pre","template","textarea","script","style"]),Gc=" \f\n\r\t\v ᠎ - \u2028\u2029   \ufeff",Wc=new RegExp("[^"+Gc+"]"),qc=new RegExp("["+Gc+"]{2,}","g");function Yc(t){return t.replace(new RegExp(we,"g")," ")}var Kc=function(){function t(){}return t.prototype.visitElement=function(t,e){return zc.has(t.name)||t.attrs.some(function(t){return t.name===Hc})?new Jt(t.name,ee(this,t.attrs),t.children,t.sourceSpan,t.startSourceSpan,t.endSourceSpan):new Jt(t.name,t.attrs,ee(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t,e){return t.name!==Hc?t:null},t.prototype.visitText=function(t,e){return t.value.match(Wc)?new $t(Yc(t.value).replace(qc," "),t.sourceSpan):null},t.prototype.visitComment=function(t,e){return t},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}();var $c=["zero","one","two","few","many","other"];function Xc(t){var e=new Jc;return new Qc(ee(e,t),e.isExpanded,e.errors)}var Qc=function(){return function(t,e,n){this.nodes=t,this.expanded=e,this.errors=n}}(),Zc=function(t){function e(e,n){return t.call(this,e,n)||this}return n(e,t),e}(Cr),Jc=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t,e){return new Jt(t.name,t.attrs,ee(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?(a=t,s=this.errors,c=a.cases.map(function(t){-1!=$c.indexOf(t.value)||t.value.match(/^=\d+$/)||s.push(new Zc(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+$c.join(", ")));var e=Xc(t.expression);return s.push.apply(s,e.errors),new Jt("ng-template",[new Zt("ngPluralCase",""+t.value,t.valueSourceSpan)],e.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),l=new Zt("[ngPlural]",a.switchValue,a.switchValueSourceSpan),new Jt("ng-container",[l],c,a.sourceSpan,a.sourceSpan,a.sourceSpan)):(n=t,r=this.errors,i=n.cases.map(function(t){var e=Xc(t.expression);return r.push.apply(r,e.errors),"other"===t.value?new Jt("ng-template",[new Zt("ngSwitchDefault","",t.valueSourceSpan)],e.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new Jt("ng-template",[new Zt("ngSwitchCase",""+t.value,t.valueSourceSpan)],e.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),o=new Zt("[ngSwitch]",n.switchValue,n.switchValueSourceSpan),new Jt("ng-container",[o],i,n.sourceSpan,n.sourceSpan,n.sourceSpan));var n,r,i,o,a,s,c,l},t.prototype.visitExpansionCase=function(t,e){throw new Error("Should not be reached")},t}();var tl={DEFAULT:0,LITERAL_ATTR:1,ANIMATION:2};tl[tl.DEFAULT]="DEFAULT",tl[tl.LITERAL_ATTR]="LITERAL_ATTR",tl[tl.ANIMATION]="ANIMATION";var el=function(){return function(t,e,n,r){this.name=t,this.expression=e,this.type=n,this.sourceSpan=r,this.isLiteral=this.type===tl.LITERAL_ATTR,this.isAnimation=this.type===tl.ANIMATION}}(),nl=function(){function t(t,e,n,r,i){var o=this;this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=n,this._targetErrors=i,this.pipesByName=new Map,this._usedPipes=new Map,r.forEach(function(t){return o.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 i=[];return Object.keys(t.hostProperties).forEach(function(e){var o=t.hostProperties[e];"string"==typeof o?r.parsePropertyBinding(e,o,!0,n,[],i):r._reportError('Value of the host property binding "'+e+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",n)}),i.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(i){var o=t.hostListeners[i];"string"==typeof o?n.parseEvent(i,o,e,[],r):n._reportError('Value of the host listener "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",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,i,o){for(var a=this._parseTemplateBindings(t,e,n),s=0;s<a.length;s++){var c=a[s];c.keyIsVar?o.push(new at(c.key,c.name,n)):c.expression?this._parsePropertyAst(c.key,c.expression,n,r,i):(r.push([c.key,""]),this.parseLiteralAttr(c.key,null,n,r,i))}},t.prototype._parseTemplateBindings=function(t,e,n){var r=this,i=n.start.toString();try{var o=this._exprParser.parseTemplateBindings(t,e,i);return this._reportExpressionParserErrors(o.errors,n),o.templateBindings.forEach(function(t){t.expression&&r._checkPipes(t.expression,n)}),o.warnings.forEach(function(t){r._reportError(t,n,wr.WARNING)}),o.templateBindings}catch(t){return this._reportError(""+t,n),[]}},t.prototype.parseLiteralAttr=function(t,e,n,r,i){il(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,wr.ERROR),this._parseAnimation(t,e,n,r,i)):i.push(new el(t,this._exprParser.wrapLiteralPrimitive(e,""),tl.LITERAL_ATTR,n))},t.prototype.parsePropertyBinding=function(t,e,n,r,i,o){var a=!1;t.startsWith("animate-")?(a=!0,t=t.substring("animate-".length)):il(t)&&(a=!0,t=t.substring(1)),a?this._parseAnimation(t,e,r,i,o):this._parsePropertyAst(t,this._parseBinding(e,n,r),r,i,o)},t.prototype.parsePropertyInterpolation=function(t,e,n,r,i){var o=this.parseInterpolation(e,n);return!!o&&(this._parsePropertyAst(t,o,n,r,i),!0)},t.prototype._parsePropertyAst=function(t,e,n,r,i){r.push([t,e.source]),i.push(new el(t,e,tl.DEFAULT,n))},t.prototype._parseAnimation=function(t,e,n,r,i){var o=this._parseBinding(e||"undefined",!1,n);r.push([t,o.source]),i.push(new el(t,o,tl.ANIMATION,n))},t.prototype._parseBinding=function(t,e,n){var r=n.start.toString();try{var i=e?this._exprParser.parseSimpleBinding(t,r,this._interpolationConfig):this._exprParser.parseBinding(t,r,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,n),this._checkPipes(i,n),i}catch(t){return this._reportError(""+t,n),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype.createElementPropertyAst=function(t,e){if(e.isAnimation)return new rt(e.name,ft.Animation,A.NONE,e.expression,null,e.sourceSpan);var n=null,r=void 0,i=null,o=e.name.split("."),a=void 0;if(o.length>1)if("attr"==o[0]){i=o[1],this._validatePropertyOrAttributeName(i,e.sourceSpan,!0),a=ol(this._schemaRegistry,t,i,!0);var s=i.indexOf(":");if(s>-1)i=be(i.substring(0,s),i.substring(s+1));r=ft.Attribute}else"class"==o[0]?(i=o[1],r=ft.Class,a=[A.NONE]):"style"==o[0]&&(n=o.length>2?o[2]:null,i=o[1],r=ft.Style,a=[A.STYLE]);return null===i&&(i=this._schemaRegistry.getMappedPropName(e.name),a=ol(this._schemaRegistry,t,i,!1),r=ft.Property,this._validatePropertyOrAttributeName(i,e.sourceSpan,!1)),new rt(i,r,a[0],e.expression,n,e.sourceSpan)},t.prototype.parseEvent=function(t,e,n,r,i){il(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,n,i)):this._parseEvent(t,e,n,r,i)},t.prototype._parseAnimationEvent=function(t,e,n,r){var i=N(t,".",[t,""]),o=i[0],a=i[1].toLowerCase();if(a)switch(a){case"start":case"done":var s=this._parseAction(e,n);r.push(new it(o,null,a,s,n));break;default:this._reportError('The provided animation output phase value "'+a+'" for "@'+o+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+o+") is missing its phase value name (start or done are currently supported)",n)},t.prototype._parseEvent=function(t,e,n,r,i){var o=D(t,[null,t]),a=o[0],s=o[1],c=this._parseAction(e,n);r.push([t,c.source]),i.push(new it(s,a,null,c,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 Un?(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=wr.ERROR),this._targetErrors.push(new Cr(e,t,n))},t.prototype._reportExpressionParserErrors=function(t,e){for(var n=0,r=t;n<r.length;n++){var i=r[n];this._reportError(i.message,e)}},t.prototype._checkPipes=function(t,e){var n=this;if(t){var r=new rl;t.visit(r),r.pipes.forEach(function(t,r){var i=n.pipesByName.get(r);i?n._usedPipes.set(r,i):n._reportError("The pipe '"+r+"' could not be found",new _r(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,wr.ERROR)},t}(),rl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pipes=new Map,e}return n(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}(ur);function il(t){return"@"==t[0]}function ol(t,e,n,r){var i=[];return Go.parse(e).forEach(function(e){var o=e.element?[e.element]:t.allKnownElementNames(),a=new Set(e.notSelectors.filter(function(t){return t.isElementSelector()}).map(function(t){return t.element})),s=o.filter(function(t){return!a.has(t)});i.push.apply(i,s.map(function(e){return t.securityContext(e,n,r)}))}),0===i.length?[A.NONE]:Array.from(new Set(i)).sort()}var al=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,sl="template",cl="class",ll=Go.parse("*")[0],ul="The <template> element is deprecated. Use <ng-template> instead",pl="The template attribute is deprecated. Use an ng-template element instead.",hl={};var dl=function(t){function e(e,n,r){return t.call(this,n,e,r)||this}return n(e,t),e}(Cr),fl=function(){return function(t,e,n){this.templateAst=t,this.usedPipes=e,this.errors=n}}(),ml=function(){function t(t,e,n,r,i,o,a){this._config=t,this._reflector=e,this._exprParser=n,this._schemaRegistry=r,this._htmlParser=i,this._console=o,this.transforms=a}return t.prototype.parse=function(t,e,n,r,i,o,a){var s,c=this.tryParse(t,e,n,r,i,o,a),l=c.errors.filter(function(t){return t.level===wr.WARNING}).filter((s=[pl,ul],function(t){return-1===s.indexOf(t.msg)||(hl[t.msg]=(hl[t.msg]||0)+1,hl[t.msg]<=1)})),u=c.errors.filter(function(t){return t.level===wr.ERROR});if(l.length>0&&this._console.warn("Template parse warnings:\n"+l.join("\n")),u.length>0)throw z("Template parse errors:\n"+u.join("\n"),u);return{template:c.templateAst,pipes:c.usedPipes}},t.prototype.tryParse=function(t,e,n,r,i,o,a){var s,c="string"==typeof e?this._htmlParser.parse(e,o,!0,this.getInterpolationConfig(t)):e;return a||(s=c,c=new Br(ee(new Kc,s.rootNodes),s.errors)),this.tryParseHtml(this.expandHtml(c),t,n,r,i)},t.prototype.tryParseHtml=function(t,e,n,r,i){var o,a=t.errors,s=[];if(t.rootNodes.length>0){var c=Sl(n),l=Sl(r),u=new vs(this._reflector,e),p=void 0;e.template&&e.template.interpolation&&(p={start:e.template.interpolation[0],end:e.template.interpolation[1]});var h=new nl(this._exprParser,p,this._schemaRegistry,l,a),d=new gl(this._reflector,this._config,u,c,h,this._schemaRegistry,i,a);o=ee(d,t.rootNodes,Cl),a.push.apply(a,u.errors),s.push.apply(s,h.getUsedPipes())}else o=[];return this._assertNoReferenceDuplicationOnTemplate(o,a),a.length>0?new fl(o,s,a):(this.transforms&&this.transforms.forEach(function(t){o=yt(t,o)}),new fl(o,s,a))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var n=t.errors;if(0==n.length||e){var r=Xc(t.rootNodes);n.push.apply(n,r.errors),t=new Br(r.nodes,n)}return t},t.prototype.getInterpolationConfig=function(t){if(t.template)return ae.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 i=new dl('Reference "#'+r+'" is defined several times',t.sourceSpan,wr.ERROR);e.push(i)}})})},t}(),gl=function(){function t(t,e,n,r,i,o,a,s){var c=this;this.reflector=t,this.config=e,this.providerViewContext=n,this._bindingParser=i,this._schemaRegistry=o,this._schemas=a,this._targetErrors=s,this.selectorMatcher=new Wo,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=n.component.viewQueries.length+1,r.forEach(function(t,e){var n=Go.parse(t.selector);c.selectorMatcher.addSelectables(n,t),c.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(ll),r=Yc(t.value),i=this._bindingParser.parseInterpolation(r,t.sourceSpan);return i?new et(i,n,t.sourceSpan):new tt(r,n,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return new nt(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,i=t.name,o=Me(t);if(o.type===Ie.SCRIPT||o.type===Ie.STYLE)return null;if(o.type===Ie.STYLESHEET&&le(o.hrefAttr))return null;var a=[],s=[],c=[],l=[],u=[],p=[],h=[],d=[],f=!1,m=[],g=function(t,e,n){if(ye(t.name))return!0;var r=fe(t.name)[1];if(r.toLowerCase()===sl&&e&&r.toLowerCase()===sl)return n(ul,t.sourceSpan),!0;return!1}(t,this.config.enableLegacyTemplate,function(t,e){return n._reportError(t,e,wr.WARNING)});t.attrs.forEach(function(t){var e,r,i=n._parseAttr(g,t,a,s,u,c,l),o=n._normalizeAttributeName(t.name);n.config.enableLegacyTemplate&&"template"==o?(n._reportError(pl,t.sourceSpan,wr.WARNING),e=t.value):o.startsWith("*")&&(e=t.value,r=o.substring("*".length)+":");var y=null!=e;y&&(f&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),f=!0,n._bindingParser.parseInlineTemplateBinding(r,e,t.sourceSpan,h,p,d)),i||y||(m.push(n.visitAttribute(t,null)),a.push([t.name,t.value]))});var y=wl(i,a),v=this._parseDirectives(this.selectorMatcher,y),b=v.directives,_=v.matchElement,w=[],C=new Set,x=this._createDirectiveAsts(g,t.name,b,s,c,t.sourceSpan,w,C),E=this._createElementPropertyAsts(t.name,s,C),S=e.isTemplateElement||f,k=new bs(this.providerViewContext,e.providerContext,S,x,m,w,g,r,t.sourceSpan),O=ee(o.nonBindable?xl:this,t.children,_l.create(g,x,g?e.providerContext:k));k.afterElement();var P,A=null!=o.projectAs?Go.parse(o.projectAs)[0]:y,T=e.findNgContentIndex(A);if(o.type===Ie.NG_CONTENT)t.children&&!t.children.every(El)&&this._reportError("<ng-content> element cannot have content.",t.sourceSpan),P=new dt(this.ngContentCount++,f?null:T,t.sourceSpan);else if(g)this._assertAllEventsPublishedByDirectives(x,u),this._assertNoComponentsNorElementBindingsOnTemplate(x,E,t.sourceSpan),P=new ct(m,u,w,l,k.transformedDirectiveAsts,k.transformProviders,k.transformedHasViewContainer,k.queryMatches,O,f?null:T,t.sourceSpan);else{this._assertElementExists(_,t),this._assertOnlyOneComponent(x,t.sourceSpan);var M=f?null:e.findNgContentIndex(A);P=new st(i,m,E,u,w,k.transformedDirectiveAsts,k.transformProviders,k.transformedHasViewContainer,k.queryMatches,O,f?null:M,t.sourceSpan,t.endSourceSpan||null)}if(f){var I=this.contentQueryStartId,R=wl(sl,h),D=this._parseDirectives(this.selectorMatcher,R).directives,N=new Set,L=this._createDirectiveAsts(!0,t.name,D,p,[],t.sourceSpan,[],N),j=this._createElementPropertyAsts(t.name,p,N);this._assertNoComponentsNorElementBindingsOnTemplate(L,j,t.sourceSpan);var F=new bs(this.providerViewContext,e.providerContext,e.isTemplateElement,L,[],[],!0,I,t.sourceSpan);F.afterElement(),P=new ct([],[],[],d,F.transformedDirectiveAsts,F.transformProviders,F.transformedHasViewContainer,F.queryMatches,[P],T,t.sourceSpan)}return P},t.prototype._parseAttr=function(t,e,n,r,i,o,a){var s=this._normalizeAttributeName(e.name),c=e.value,l=e.sourceSpan,u=s.match(al),p=!1;if(null!==u)if(p=!0,null!=u[1])this._bindingParser.parsePropertyBinding(u[7],c,!1,l,n,r);else if(u[2])if(t){var h=u[7];this._parseVariable(h,c,l,a)}else this._reportError('"let-" is only supported on ng-template elements.',l);else if(u[3]){h=u[7];this._parseReference(h,c,l,o)}else u[4]?this._bindingParser.parseEvent(u[7],c,l,n,i):u[5]?(this._bindingParser.parsePropertyBinding(u[7],c,!1,l,n,r),this._parseAssignmentEvent(u[7],c,l,n,i)):u[6]?this._bindingParser.parseLiteralAttr(s,c,l,n,r):u[8]?(this._bindingParser.parsePropertyBinding(u[8],c,!1,l,n,r),this._parseAssignmentEvent(u[8],c,l,n,i)):u[9]?this._bindingParser.parsePropertyBinding(u[9],c,!1,l,n,r):u[10]&&this._bindingParser.parseEvent(u[10],c,l,n,i);else p=this._bindingParser.parsePropertyInterpolation(s,c,l,n,r);return p||this._bindingParser.parseLiteralAttr(s,c,l,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 at(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 vl(t,e,n))},t.prototype._parseAssignmentEvent=function(t,e,n,r,i){this._bindingParser.parseEvent(t+"Change",e+"=$event",n,r,i)},t.prototype._parseDirectives=function(t,e){var n=this,r=new Array(this.directivesIndex.size),i=!1;return t.match(e,function(t,e){r[n.directivesIndex.get(e)]=e,i=i||t.hasElementSelector()}),{directives:r.filter(function(t){return!!t}),matchElement:i}},t.prototype._createDirectiveAsts=function(t,e,n,r,i,o,a,s){var c=this,l=new Set,u=null,p=n.map(function(t){var n=new _r(o.start,o.end,"Directive "+St(t.type));t.isComponent&&(u=t);var p=[],h=c._bindingParser.createDirectiveHostPropertyAsts(t,e,n);h=c._checkPropertiesInSchema(e,h);var d=c._bindingParser.createDirectiveHostEventAsts(t,n);c._createDirectivePropertyAsts(t.inputs,r,p,s),i.forEach(function(e){(0===e.value.length&&t.isComponent||e.isReferenceToDirective(t))&&(a.push(new ot(e.name,Fo(t.type.reference),e.sourceSpan)),l.add(e.name))});var f=c.contentQueryStartId;return c.contentQueryStartId+=t.queries.length,new ut(t,p,h,d,f,n)});return i.forEach(function(e){if(e.value.length>0)l.has(e.name)||c._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!u){var n=null;t&&(n=Vo(c.reflector,jo.TemplateRef)),a.push(new ot(e.name,n,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,n,r){if(t){var i=new Map;e.forEach(function(t){var e=i.get(t.name);e&&!e.isLiteral||i.set(t.name,t)}),Object.keys(t).forEach(function(e){var o=t[e],a=i.get(o);a&&(r.add(a.name),kl(a.expression)||n.push(new lt(e,a.name,a.expression,a.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(t,e,n){var r=this,i=[];return e.forEach(function(e){e.isLiteral||n.has(e.name)||i.push(r._bindingParser.createElementPropertyAst(t,e))}),this._checkPropertiesInSchema(t,i)},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 St(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,i=this._findComponentDirectiveNames(t);i.length>0&&this._reportError("Components on an embedded template: "+i.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===ft.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!kl(e.value)})},t.prototype._reportError=function(t,e,n){void 0===n&&(n=wr.ERROR),this._targetErrors.push(new Cr(e,t,n))},t}(),yl=function(){function t(){}return t.prototype.visitElement=function(t,e){var n=Me(t);if(n.type===Ie.SCRIPT||n.type===Ie.STYLE||n.type===Ie.STYLESHEET)return null;var r=t.attrs.map(function(t){return[t.name,t.value]}),i=wl(t.name,r),o=e.findNgContentIndex(i),a=ee(this,t.children,Cl);return new st(t.name,ee(this,t.attrs),[],[],[],[],[],!1,[],a,o,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return new nt(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(ll);return new tt(t.value,n,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),vl=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.isReferenceToDirective=function(t){return-1!==(e=t.exportAs,e?e.split(",").map(function(t){return t.trim()}):[]).indexOf(this.value);var e},t}();function bl(t){return t.trim().split(/\s+/g)}var _l=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 i=new Wo,o=null,a=n.find(function(t){return t.directive.isComponent});if(a)for(var s=a.directive.template.ngContentSelectors,c=0;c<s.length;c++){"*"===s[c]?o=c:i.addSelectables(Go.parse(s[c]),c)}return new t(e,i,o,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}();function wl(t,e){var n=new Go,r=fe(t)[1];n.setElement(r);for(var i=0;i<e.length;i++){var o=e[i][0],a=fe(o)[1],s=e[i][1];if(n.addAttribute(a,s),o.toLowerCase()==cl)bl(s).forEach(function(t){return n.addClassName(t)})}return n}var Cl=new _l(!0,new Wo,null,null),xl=new yl;function El(t){return t instanceof $t&&0==t.value.trim().length}function Sl(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 kl(t){return t instanceof sr&&(t=t.ast),t instanceof Un}var Ol=function(){function t(){}return t.event=ls("$event"),t}(),Pl=function(){return function(t,e){this.stmts=t,this.allowDefault=e}}();function Al(t,e,n,r){t||(t=new Ul);var i=Tl({createLiteralArrayConverter:function(t){return function(t){return ds(t)}},createLiteralMapConverter:function(t){return function(e){return fs(t.map(function(t,n){return{key:t.key,value:e[n],quoted:t.quoted}}))}},createPipeConverter:function(t){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: "+t)}},n),o=new Bl(t,e,r),a=[];!function t(e,n){Array.isArray(e)?e.forEach(function(e){return t(e,n)}):n.push(e)}(i.visit(o,Ll.Statement),a),function(t,e,n){for(var r=t-1;r>=0;r--)n.unshift(Nl(e,r))}(o.temporaryCount,r,a);var s=a.length-1,c=null;if(s>=0){var l=function(t){{if(t instanceof Wa)return t.expr;if(t instanceof qa)return t.value}return null}(a[s]);l&&(c=ls("pd_"+r),a[s]=c.set(l.cast(sa).notIdentical(gs(!1))).toDeclStmt(null,[Ua.Final]))}return new Pl(a,c)}function Tl(t,e){return n=e,r=new Vl(t),n.visit(r);var n,r}var Ml=function(){return function(t,e){this.stmts=t,this.currValExpr=e}}(),Il={General:0,TrySimple:1};function Rl(t,e,n,r,i){t||(t=new Ul);var o=ls("currVal_"+r),a=[],s=new Bl(t,e,r),c=n.visit(s,Ll.Expression);if(s.temporaryCount)for(var l=0;l<s.temporaryCount;l++)a.push(Nl(r,l));else if(i==Il.TrySimple)return new Ml([],c);return a.push(o.set(c).toDeclStmt(sa,[Ua.Final])),new Ml(a,o)}function Dl(t,e){return"tmp_"+t+"_"+e}function Nl(t,e){return new za(Dl(t,e),Va)}Il[Il.General]="General",Il[Il.TrySimple]="TrySimple";var Ll={Statement:0,Expression:1};function jl(t,e){if(t!==Ll.Expression)throw new Error("Expected an expression, but saw "+e)}function Fl(t,e){return t===Ll.Statement?e.toStmt():e}Ll[Ll.Statement]="Statement",Ll[Ll.Expression]="Expression";var Vl=function(t){function e(e){var n=t.call(this)||this;return n._converterFactory=e,n}return n(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 Hl(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 Hl(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 Hl(t.span,r,this._converterFactory.createLiteralMapConverter(t.keys))},e}(pr),Bl=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=ua.Plus;break;case"-":n=ua.Minus;break;case"*":n=ua.Multiply;break;case"/":n=ua.Divide;break;case"%":n=ua.Modulo;break;case"&&":n=ua.And;break;case"||":n=ua.Or;break;case"==":n=ua.Equals;break;case"!=":n=ua.NotEquals;break;case"===":n=ua.Identical;break;case"!==":n=ua.NotIdentical;break;case"<":n=ua.Lower;break;case">":n=ua.Bigger;break;case"<=":n=ua.LowerEquals;break;case">=":n=ua.BiggerEquals;break;default:throw new Error("Unsupported operation "+t.operation)}return Fl(e,new Ia(n,this._visit(t.left,Ll.Expression),this._visit(t.right,Ll.Expression)))},t.prototype.visitChain=function(t,e){return function(t,e){if(t!==Ll.Statement)throw new Error("Expected a statement, but saw "+e)}(e,t),this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return Fl(e,this._visit(t.condition,Ll.Expression).conditional(this._visit(t.trueExp,Ll.Expression),this._visit(t.falseExp,Ll.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=this.visitAll(t.args,Ll.Expression);return Fl(e,t instanceof Hl?t.converter(n):this._visit(t.target,Ll.Expression).callFn(n))},t.prototype.visitImplicitReceiver=function(t,e){return jl(e,t),this._implicitReceiver},t.prototype.visitInterpolation=function(t,e){jl(e,t);for(var n=[gs(t.expressions.length)],r=0;r<t.strings.length-1;r++)n.push(gs(t.strings[r])),n.push(this._visit(t.expressions[r],Ll.Expression));return n.push(gs(t.strings[t.strings.length-1])),t.expressions.length<=9?us(jo.inlineInterpolate).callFn(n):us(jo.interpolate).callFn([n[0],ds(n.slice(1))])},t.prototype.visitKeyedRead=function(t,e){var n=this.leftMostSafeNode(t);return n?this.convertSafeAccess(t,n,e):Fl(e,this._visit(t.obj,Ll.Expression).key(this._visit(t.key,Ll.Expression)))},t.prototype.visitKeyedWrite=function(t,e){var n=this._visit(t.obj,Ll.Expression),r=this._visit(t.key,Ll.Expression),i=this._visit(t.value,Ll.Expression);return Fl(e,n.key(r).set(i))},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){var n=null===t.value||void 0===t.value||!0===t.value||!0===t.value?ca:void 0;return Fl(e,gs(t.value,n))},t.prototype._getLocal=function(t){return this._localResolver.getLocal(t)},t.prototype.visitMethodCall=function(t,e){if(t.receiver instanceof Hn&&"$any"==t.name){if(1!=(r=this.visitAll(t.args,Ll.Expression)).length)throw new Error("Invalid call to $any, expected 1 argument but received "+(r.length||"none"));return r[0].cast(sa)}var n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);var r=this.visitAll(t.args,Ll.Expression),i=null,o=this._visit(t.receiver,Ll.Expression);if(o===this._implicitReceiver){var a=this._getLocal(t.name);a&&(i=a.callFn(r))}return null==i&&(i=o.callMethod(t.name,r)),Fl(e,i)},t.prototype.visitPrefixNot=function(t,e){return Fl(e,(n=this._visit(t.expression,Ll.Expression),new Oa(n,r)));var n,r},t.prototype.visitNonNullAssert=function(t,e){return Fl(e,(n=this._visit(t.expression,Ll.Expression),new Pa(n,r)));var n,r},t.prototype.visitPropertyRead=function(t,e){var n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);var r=null,i=this._visit(t.receiver,Ll.Expression);return i===this._implicitReceiver&&(r=this._getLocal(t.name)),null==r&&(r=i.prop(t.name)),Fl(e,r)},t.prototype.visitPropertyWrite=function(t,e){var n=this._visit(t.receiver,Ll.Expression);if(n===this._implicitReceiver&&this._getLocal(t.name))throw new Error("Cannot assign to a reference or variable!");return Fl(e,n.prop(t.name).set(this._visit(t.value,Ll.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,Ll.Expression),i=void 0;this.needsTemporary(e.receiver)&&(r=(i=this.allocateTemporary()).set(r),this._resultMap.set(e.receiver,i));var o=r.isBlank();e instanceof or?this._nodeMap.set(e,new ir(e.span,e.receiver,e.name,e.args)):this._nodeMap.set(e,new Wn(e.span,e.receiver,e.name));var a=this._visit(t,Ll.Expression);return this._nodeMap.delete(e),i&&this.releaseTemporary(i),Fl(n,o.conditional(gs(null),a))},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},visitNonNullAssert: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)};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 e=this,t.expressions.some(function(t){return n(e,t)});var e},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)},visitNonNullAssert: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 ma(Dl(this.bindingId,t))},t.prototype.releaseTemporary=function(t){if(this._currentTemporary--,t.name!=Dl(this.bindingId,this._currentTemporary))throw new Error("Temporary "+t.name+" released out of order")},t}();var Ul=function(){function t(){}return t.prototype.getLocal=function(t){return t===Ol.event.name?Ol.event:null},t}();var Hl=function(t){function e(e,n,r){var i=t.call(this,e,null,n)||this;return i.args=n,i.converter=r,i}return n(e,t),e}(ar),zl=function(){function t(t,e){this.options=t,this.reflector=e}return t.prototype.compileComponent=function(t,e,n,r,i,o){var a=this,s=new Map;r.forEach(function(t){return s.set(t.name,t.type.reference)});var c=0,l=function(t,n){var r=c++;return new ql(a.options,a.reflector,i,t,e.type.reference,e.isHost,r,s,n,o,l)},u=l(null,[]);return u.visitAll([],n),u.build(t)},t}(),Gl="_any",Wl=new(function(){function t(){}return t.prototype.getLocal=function(t){return t===Ol.event.name?ls(Gl):null},t}()),ql=function(){function t(t,e,n,r,i,o,a,s,c,l,u){this.options=t,this.reflector=e,this.externalReferenceVars=n,this.parent=r,this.component=i,this.isHostComponent=o,this.embeddedViewIndex=a,this.pipes=s,this.guards=c,this.ctx=l,this.viewBuilderFactory=u,this.refOutputVars=new Map,this.variables=[],this.children=[],this.updates=[],this.actions=[]}return t.prototype.getOutputVar=function(t){var e;if(!(e=t===this.component&&this.isHostComponent?Gl:t instanceof _t?this.externalReferenceVars.get(t):Gl))throw new Error("Illegal State: referring to a type without a variable "+JSON.stringify(t));return e},t.prototype.getTypeGuardExpressions=function(t){for(var e=this.guards.slice(),n=0,r=t.directives;n<r.length;n++)for(var i=r[n],o=0,a=i.inputs;o<a.length;o++){var s=a[o],c=i.directive.guards[s.directiveName];if(c){var l="UseIf"===c;e.push({guard:c,useIf:l,expression:{context:this.component,value:s.value}})}}return e},t.prototype.visitAll=function(t,e){this.variables=t,yt(this,e)},t.prototype.build=function(t,e){var n=this;void 0===e&&(e=[]),this.children.forEach(function(n){return n.build(t,e)});var r=[ls(Gl).set(Va).toDeclStmt(sa)],i=0;if(this.updates.forEach(function(t){var e=n.preprocessUpdateExpression(t),o=e.sourceSpan,a=e.context,s=e.value,c=""+i++,l=Rl(a===n.component?n:Wl,ls(n.getOutputVar(a)),s,c,Il.General),u=l.stmts,p=l.currValExpr;u.push(new Wa(p)),r.push.apply(r,u.map(function(t){return as(t,o)}))}),this.actions.forEach(function(t){var e=t.sourceSpan,o=t.context,a=t.value,s=""+i++,c=Al(o===n.component?n:Wl,ls(n.getOutputVar(o)),a,s).stmts;r.push.apply(r,c.map(function(t){return as(t,e)}))}),this.guards.length){for(var o=void 0,a=0,s=this.guards;a<s.length;a++){var c=s[a],l=this.preprocessUpdateExpression(c.expression),u=l.context,p=l.value,h=""+i++,d=Rl(u===this.component?this:Wl,ls(this.getOutputVar(u)),p,h,Il.TrySimple),f=d.stmts,m=d.currValExpr;if(0==f.length){var g=c.useIf?m:this.ctx.importExpr(c.guard).callFn([m]);o=o?o.and(g):g}}o&&(r=[new Qa(o,r)])}var y="_View_"+t+"_"+this.embeddedViewIndex,v=new Ga(y,[],r);return e.push(v),e},t.prototype.visitBoundText=function(t,e){var n=this;t.value.ast.expressions.forEach(function(e){return n.updates.push({context:n.component,value:e,sourceSpan:t.sourceSpan})})},t.prototype.visitEmbeddedTemplate=function(t,e){if(this.visitElementOrTemplate(t),this.options.fullTemplateTypeCheck){var n=this.getTypeGuardExpressions(t),r=this.viewBuilderFactory(this,n);this.children.push(r),r.visitAll(t.variables,t.children)}},t.prototype.visitElement=function(t,e){var n=this;this.visitElementOrTemplate(t);t.inputs.forEach(function(t){n.updates.push({context:n.component,value:t.value,sourceSpan:t.sourceSpan})}),yt(this,t.children)},t.prototype.visitElementOrTemplate=function(t){var e=this;t.directives.forEach(function(t){e.visitDirective(t)}),t.references.forEach(function(t){var n=null;n=t.value&&t.value.identifier&&e.options.fullTemplateTypeCheck?t.value.identifier.reference:na.Dynamic,e.refOutputVars.set(t.name,n)}),t.outputs.forEach(function(t){e.actions.push({context:e.component,value:t.handler,sourceSpan:t.sourceSpan})})},t.prototype.visitDirective=function(t){var e=this,n=t.directive.type.reference;t.inputs.forEach(function(t){return e.updates.push({context:e.component,value:t.value,sourceSpan:t.sourceSpan})}),this.options.fullTemplateTypeCheck&&(t.hostProperties.forEach(function(t){return e.updates.push({context:n,value:t.value,sourceSpan:t.sourceSpan})}),t.hostEvents.forEach(function(t){return e.actions.push({context:n,value:t.handler,sourceSpan:t.sourceSpan})}))},t.prototype.getLocal=function(t){if(t==Ol.event.name)return ls(this.getOutputVar(na.Dynamic));for(var e=this;e;e=e.parent){var n=void 0;if(null==(n=e.refOutputVars.get(t)))e.variables.find(function(e){return e.name===t})&&(n=na.Dynamic);if(null!=n)return ls(this.getOutputVar(n))}return null},t.prototype.pipeOutputVar=function(t){var e=this.pipes.get(t);if(!e)throw new Error("Illegal State: Could not find pipe "+t+" in template of "+this.component);return this.getOutputVar(e)},t.prototype.preprocessUpdateExpression=function(t){var e=this;return{sourceSpan:t.sourceSpan,context:t.context,value:Tl({createLiteralArrayConverter:function(t){return function(t){var n=ds(t);return e.options.fullTemplateTypeCheck?n:n.cast(sa)}},createLiteralMapConverter:function(t){return function(n){var r=fs(t.map(function(t,e){return{key:t.key,value:n[e],quoted:t.quoted}}));return e.options.fullTemplateTypeCheck?r:r.cast(sa)}},createPipeConverter:function(t,n){return function(n){return(e.options.fullTemplateTypeCheck?ls(e.pipeOutputVar(t)):ls(e.getOutputVar(na.Dynamic))).callMethod("transform",n)}}},t.value)}},t.prototype.visitNgContent=function(t,e){},t.prototype.visitText=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}(),Yl="class",Kl="style",$l=function(){return function(t,e){this.viewClassVar=t,this.rendererTypeVar=e}}(),Xl=function(){function t(t){this._reflector=t}return t.prototype.compileComponent=function(t,e,n,r,i){var o=this,a=0,s=function t(e,n){void 0===n&&(n=new Map);e.forEach(function(e){var r=new Set,i=new Set,o=void 0;e instanceof st?(t(e.children,n),e.children.forEach(function(t){var e=n.get(t);e.staticQueryIds.forEach(function(t){return r.add(t)}),e.dynamicQueryIds.forEach(function(t){return i.add(t)})}),o=e.queryMatches):e instanceof ct&&(t(e.children,n),e.children.forEach(function(t){var e=n.get(t);e.staticQueryIds.forEach(function(t){return i.add(t)}),e.dynamicQueryIds.forEach(function(t){return i.add(t)})}),o=e.queryMatches),o&&o.forEach(function(t){return r.add(t.queryId)}),i.forEach(function(t){return r.delete(t)}),n.set(e,{staticQueryIds:r,dynamicQueryIds:i})});return n}(n),c=void 0;if(!e.isHost){var l=e.template,u=[];l.animations&&l.animations.length&&u.push(new La("animation",Ss(t,l.animations),!0));var p=ls(Pt(e.type.reference));c=p.name,t.statements.push(p.set(us(jo.createRendererType2).callFn([new ja([new La("encapsulation",gs(l.encapsulation),!1),new La("styles",r,!1),new La("data",new ja(u),!1)])])).toDeclStmt(ps(jo.RendererType2),[Ua.Final,Ua.Exported]))}var h,d=function(n){var r=a++;return new ru(o._reflector,t,n,e,r,i,s,d)},f=d(null);return f.visitAll([],n),(h=t.statements).push.apply(h,f.build()),new $l(f.viewName,c)},t}(),Ql=ls("_l"),Zl=ls("_v"),Jl=ls("_ck"),tu=ls("_co"),eu=ls("en"),nu=ls("ad"),ru=function(){function t(t,e,n,r,i,o,a,s){this.reflector=t,this.outputCtx=e,this.parent=n,this.component=r,this.embeddedViewIndex=i,this.usedPipes=o,this.staticQueryIds=a,this.viewBuilderFactory=s,this.nodes=[],this.purePipeNodeIndices=Object.create(null),this.refNodeIndices=Object.create(null),this.variables=[],this.children=[],this.compType=this.embeddedViewIndex>0?sa:hs(e.importExpr(this.component.type.reference)),this.viewName=Ot(this.component.type.reference,this.embeddedViewIndex)}return t.prototype.visitAll=function(t,e){var n,r,i,o=this;if(this.variables=t,this.parent||this.usedPipes.forEach(function(t){t.pure&&(o.purePipeNodeIndices[t.name]=o._createPipe(null,t))}),!this.parent){var a=(n=this.staticQueryIds,r=new Set,i=new Set,Array.from(n.values()).forEach(function(t){t.staticQueryIds.forEach(function(t){return r.add(t)}),t.dynamicQueryIds.forEach(function(t){return i.add(t)})}),i.forEach(function(t){return r.delete(t)}),{staticQueryIds:r,dynamicQueryIds:i});this.component.viewQueries.forEach(function(t,e){var n=e+1,r=t.first?0:1,i=134217728|su(a,n,t.first);o.nodes.push(function(){return{sourceSpan:null,nodeFlags:i,nodeDef:us(jo.queryDef).callFn([gs(i),gs(n),new ja([new La(t.propertyName,gs(r),!1)])])}})})}yt(this,e),this.parent&&(0===e.length||function t(e){var n=e[e.length-1];if(n instanceof ct)return n.hasViewContainer;if(n instanceof st)return me(n.name)&&n.children.length?t(n.children):n.hasViewContainer;return n instanceof dt}(e))&&this.nodes.push(function(){return{sourceSpan:null,nodeFlags:1,nodeDef:us(jo.anchorDef).callFn([gs(0),Va,Va,gs(0)])}})},t.prototype.build=function(t){void 0===t&&(t=[]),this.children.forEach(function(e){return e.build(t)});var e=this._createNodeExpressions(),n=e.updateRendererStmts,r=e.updateDirectivesStmts,i=e.nodeDefExprs,o=this._createUpdateFn(n),a=this._createUpdateFn(r),s=0;this.parent||this.component.changeDetection!==d.OnPush||(s|=2);var c=new Ga(this.viewName,[new Ta(Ql.name)],[new qa(us(jo.viewDef).callFn([gs(s),ds(i),a,o]))],ps(jo.ViewDefinition),0===this.embeddedViewIndex?[Ua.Exported]:[]);return t.push(c),t},t.prototype._createUpdateFn=function(t){var e;if(t.length>0){var n=[];!this.component.isHost&&rs(t).has(tu.name)&&n.push(tu.set(Zl.prop("component")).toDeclStmt(this.compType)),e=ms([new Ta(Jl.name,ca),new Ta(Zl.name,ca)],n.concat(t),ca)}else e=Va;return e},t.prototype.visitNgContent=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:8,nodeDef:us(jo.ngContentDef).callFn([gs(t.ngContentIndex),gs(t.index)])}})},t.prototype.visitText=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:us(jo.textDef).callFn([gs(-1),gs(t.ngContentIndex),ds([gs(t.value)])])}})},t.prototype.visitBoundText=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var i=t.value.ast,o=i.expressions.map(function(e,i){return n._preprocessUpdateExpression({nodeIndex:r,bindingIndex:i,sourceSpan:t.sourceSpan,context:tu,value:e})}),a=r;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:us(jo.textDef).callFn([gs(a),gs(t.ngContentIndex),ds(i.strings.map(function(t){return gs(t)}))]),updateRenderer:o}}},t.prototype.visitEmbeddedTemplate=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var i=this._visitElementOrTemplate(r,t),o=i.flags,a=i.queryMatchesExpr,s=i.hostEvents,c=this.viewBuilderFactory(this);this.children.push(c),c.visitAll(t.variables,t.children);var l=this.nodes.length-r-1;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|o,nodeDef:us(jo.anchorDef).callFn([gs(o),a,gs(t.ngContentIndex),gs(l),n._createElementHandleEventFn(r,s),ls(c.viewName)])}}},t.prototype.visitElement=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var i=me(t.name)?null:t.name,o=this._visitElementOrTemplate(r,t),a=o.flags,s=o.usedEvents,c=o.queryMatchesExpr,l=o.hostBindings,u=o.hostEvents,p=[],h=[],d=[];if(i){var f=t.inputs.map(function(t){return{context:tu,inputAst:t,dirAst:null}}).concat(l);f.length&&(h=f.map(function(t,e){return n._preprocessUpdateExpression({context:t.context,nodeIndex:r,bindingIndex:e,sourceSpan:t.inputAst.sourceSpan,value:t.inputAst.value})}),p=f.map(function(t){return function(t,e){switch(t.type){case ft.Attribute:return ds([gs(1),gs(t.name),gs(t.securityContext)]);case ft.Property:return ds([gs(8),gs(t.name),gs(t.securityContext)]);case ft.Animation:var n=8|(e&&e.directive.isComponent?32:16);return ds([gs(n),gs("@"+t.name),gs(t.securityContext)]);case ft.Class:return ds([gs(2),gs(t.name),Va]);case ft.Style:return ds([gs(4),gs(t.name),gs(t.unit)])}}(t.inputAst,t.dirAst)})),d=s.map(function(t){var e=t[0],n=t[1];return ds([gs(e),gs(n)])})}yt(this,t.children);var m=this.nodes.length-r-1,g=t.directives.find(function(t){return t.directive.isComponent}),y=Va,v=Va;g&&(v=this.outputCtx.importExpr(g.directive.componentViewType),y=this.outputCtx.importExpr(g.directive.rendererType));var b=r;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|a,nodeDef:us(jo.elementDef).callFn([gs(b),gs(a),c,gs(t.ngContentIndex),gs(m),gs(i),i?(e=t,o=Object.create(null),e.attrs.forEach(function(t){o[t.name]=t.value}),e.directives.forEach(function(t){Object.keys(t.directive.hostAttributes).forEach(function(e){var n,r,i=t.directive.hostAttributes[e],a=o[e];o[e]=null!=a?(r=i,(n=e)==Yl||n==Kl?a+" "+r:r):i})}),ds(Object.keys(o).sort().map(function(t){return ds([gs(t),gs(o[t])])}))):Va,p.length?ds(p):Va,d.length?ds(d):Va,n._createElementHandleEventFn(r,u),v,y]),updateRenderer:h};var e,o}},t.prototype._visitElementOrTemplate=function(t,e){var n=this,r=0;e.hasViewContainer&&(r|=16777216);var i=new Map;e.outputs.forEach(function(t){var e=au(t,null),n=e.name,r=e.target;i.set(cu(r,n),[r,n])}),e.directives.forEach(function(t){t.hostEvents.forEach(function(e){var n=au(e,t),r=n.name,o=n.target;i.set(cu(o,r),[o,r])})});var o=[],a=[];this._visitComponentFactoryResolverProvider(e.directives),e.providers.forEach(function(r,s){var c=void 0,l=void 0;if(e.directives.forEach(function(t,e){t.directive.type.reference===Rt(r.token)&&(c=t,l=e)}),c){var u=n._visitDirective(r,c,l,t,e.references,e.queryMatches,i,n.staticQueryIds.get(e)),p=u.hostBindings,h=u.hostEvents;o.push.apply(o,p),a.push.apply(a,h)}else n._visitProvider(r,e.queryMatches)});var s=[];return e.queryMatches.forEach(function(t){var e=void 0;Rt(t.value)===n.reflector.resolveExternalReference(jo.ElementRef)?e=0:Rt(t.value)===n.reflector.resolveExternalReference(jo.ViewContainerRef)?e=3:Rt(t.value)===n.reflector.resolveExternalReference(jo.TemplateRef)&&(e=2),null!=e&&s.push(ds([gs(t.queryId),gs(e)]))}),e.references.forEach(function(e){var r=void 0;e.value?Rt(e.value)===n.reflector.resolveExternalReference(jo.TemplateRef)&&(r=2):r=1,null!=r&&(n.refNodeIndices[e.name]=t,s.push(ds([gs(e.name),gs(r)])))}),e.outputs.forEach(function(t){a.push({context:tu,eventAst:t,dirAst:null})}),{flags:r,usedEvents:Array.from(i.values()),queryMatchesExpr:s.length?ds(s):Va,hostBindings:o,hostEvents:a}},t.prototype._visitDirective=function(t,e,n,r,i,o,a,s){var c=this,l=this.nodes.length;this.nodes.push(null),e.directive.queries.forEach(function(t,n){var r=e.contentQueryStartId+n,i=67108864|su(s,r,t.first),o=t.first?0:1;c.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:i,nodeDef:us(jo.queryDef).callFn([gs(i),gs(r),new ja([new La(t.propertyName,gs(o),!1)])])}})});var u=this.nodes.length-l-1,p=this._visitProviderOrDirective(t,o),h=p.flags,d=p.queryMatchExprs,f=p.providerExpr,m=p.depsExpr;i.forEach(function(e){e.value&&Rt(e.value)===Rt(t.token)&&(c.refNodeIndices[e.name]=l,d.push(ds([gs(e.name),gs(4)])))}),e.directive.isComponent&&(h|=32768);var g=e.inputs.map(function(t,e){var n=ds([gs(e),gs(t.directiveName)]);return new La(t.directiveName,n,!1)}),y=[],v=e.directive;Object.keys(v.outputs).forEach(function(t){var e=v.outputs[t];a.has(e)&&y.push(new La(t,gs(e),!1))});var b=[];(e.inputs.length||(327680&h)>0)&&(b=e.inputs.map(function(t,e){return c._preprocessUpdateExpression({nodeIndex:l,bindingIndex:e,sourceSpan:t.sourceSpan,context:tu,value:t.value})}));var _=us(jo.nodeValue).callFn([Zl,gs(l)]),w=e.hostProperties.map(function(t){return{context:_,dirAst:e,inputAst:t}}),C=e.hostEvents.map(function(t){return{context:_,eventAst:t,dirAst:e}}),x=l;return this.nodes[l]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:16384|h,nodeDef:us(jo.directiveDef).callFn([gs(x),gs(h),d.length?ds(d):Va,gs(u),f,m,g.length?new ja(g):Va,y.length?new ja(y):Va]),updateDirectives:b,directive:e.directive.type}},{hostBindings:w,hostEvents:C}},t.prototype._visitProvider=function(t,e){this._addProviderNode(this._visitProviderOrDirective(t,e))},t.prototype._visitComponentFactoryResolverProvider=function(t){var e=t.find(function(t){return t.directive.isComponent});if(e&&e.directive.entryComponents.length){var n=Is(this.reflector,this.outputCtx,8192,e.directive.entryComponents),r=n.providerExpr,i=n.depsExpr,o=n.flags,a=n.tokenExpr;this._addProviderNode({providerExpr:r,depsExpr:i,flags:o,tokenExpr:a,queryMatchExprs:[],sourceSpan:e.sourceSpan})}},t.prototype._addProviderNode=function(t){this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:t.flags,nodeDef:us(jo.providerDef).callFn([gs(t.flags),t.queryMatchExprs.length?ds(t.queryMatchExprs):Va,t.tokenExpr,t.providerExpr,t.depsExpr])}})},t.prototype._visitProviderOrDirective=function(t,e){var n=[];e.forEach(function(e){Rt(e.value)===Rt(t.token)&&n.push(ds([gs(e.queryId),gs(4)]))});var r=Os(this.outputCtx,t),i=r.providerExpr,o=r.depsExpr,a=r.flags,s=r.tokenExpr;return{flags:0|a,queryMatchExprs:n,providerExpr:i,depsExpr:o,tokenExpr:s,sourceSpan:t.sourceSpan}},t.prototype.getLocal=function(t){if(t==Ol.event.name)return Ol.event;for(var e=Zl,n=this;n;n=n.parent,e=e.prop("parent").cast(sa)){var r=n.refNodeIndices[t];if(null!=r)return us(jo.nodeValue).callFn([e,gs(r)]);var i=n.variables.find(function(e){return e.name===t});if(i){var o=i.value||"$implicit";return e.prop("context").prop(o)}}return null},t.prototype._createLiteralArrayConverter=function(t,e){if(0===e){var n=us(jo.EMPTY_ARRAY);return function(){return n}}var r=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:32,nodeDef:us(jo.pureArrayDef).callFn([gs(r),gs(e)])}}),function(t){return iu(r,t)}},t.prototype._createLiteralMapConverter=function(t,e){if(0===e.length){var n=us(jo.EMPTY_MAP);return function(){return n}}var i=fs(e.map(function(t,e){return r({},t,{value:gs(e)})})),o=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:64,nodeDef:us(jo.pureObjectDef).callFn([gs(o),i])}}),function(t){return iu(o,t)}},t.prototype._createPipeConverter=function(t,e,n){var r=this.usedPipes.find(function(t){return t.name===e});if(r.pure){var i=this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:128,nodeDef:us(jo.purePipeDef).callFn([gs(i),gs(n)])}});for(var o=Zl,a=this;a.parent;)a=a.parent,o=o.prop("parent").cast(sa);var s=a.purePipeNodeIndices[e],c=us(jo.nodeValue).callFn([o,gs(s)]);return function(e){return ou(t.nodeIndex,t.bindingIndex,iu(i,[c].concat(e)))}}var l=this._createPipe(t.sourceSpan,r),u=us(jo.nodeValue).callFn([Zl,gs(l)]);return function(e){return ou(t.nodeIndex,t.bindingIndex,u.callMethod("transform",e))}},t.prototype._createPipe=function(t,e){var n=this,r=this.nodes.length,i=0;e.type.lifecycleHooks.forEach(function(t){t===Bo.OnDestroy&&(i|=Ms(t))});var o=e.type.diDeps.map(function(t){return Ts(n.outputCtx,t)});return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:16,nodeDef:us(jo.pipeDef).callFn([gs(i),n.outputCtx.importExpr(e.type.reference),ds(o)])}}),r},t.prototype._preprocessUpdateExpression=function(t){var e=this;return{nodeIndex:t.nodeIndex,bindingIndex:t.bindingIndex,sourceSpan:t.sourceSpan,context:t.context,value:Tl({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(){var t=this,e=0,n=[],r=[],i=this.nodes.map(function(t,e){var i=t(),a=i.nodeDef,s=i.nodeFlags,c=i.updateDirectives,l=i.updateRenderer,u=i.sourceSpan;return l&&n.push.apply(n,o(e,u,l,!1)),c&&r.push.apply(r,o(e,u,c,(327680&s)>0)),ss(3&s?new Fa([Ql.callFn([]).callFn([]),a]):a,u)});return{updateRendererStmts:n,updateDirectivesStmts:r,nodeDefExprs:i};function o(n,r,i,o){var a=[],s=i.map(function(n){var r=n.sourceSpan,i=n.context,o=n.value,s=""+e++,c=Rl(i===tu?t:null,i,o,s,Il.General),l=c.stmts,u=c.currValExpr;return a.push.apply(a,l.map(function(t){return as(t,r)})),ss(u,r)});return(i.length||o)&&a.push(as(iu(n,s).toStmt(),r)),a}},t.prototype._createElementHandleEventFn=function(t,e){var n,r=this,i=[],o=0;if(e.forEach(function(t){var e=t.context,n=t.eventAst,a=t.dirAst,s=""+o++,c=Al(e===tu?r:null,e,n.handler,s),l=c.stmts,u=c.allowDefault,p=l;u&&p.push(nu.set(u.and(nu)).toStmt());var h=au(n,a),d=cu(h.target,h.name);i.push(as(new Qa(gs(d).identical(eu),p),n.sourceSpan))}),i.length>0){var a=[nu.set(gs(!0)).toDeclStmt(la)];!this.component.isHost&&rs(i).has(tu.name)&&a.push(tu.set(Zl.prop("component")).toDeclStmt(this.compType)),n=ms([new Ta(Zl.name,ca),new Ta(eu.name,ca),new Ta(Ol.event.name,ca)],a.concat(i,[new qa(nu)]),ca)}else n=Va;return n},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}();function iu(t,e){return e.length>10?Jl.callFn([Zl,gs(t),gs(1),ds(e)]):Jl.callFn([Zl,gs(t),gs(0)].concat(e))}function ou(t,e,n){return us(jo.unwrapValue).callFn([Zl,gs(t),gs(e),n])}function au(t,e){return t.isAnimation?{name:"@"+t.name+"."+t.phase,target:e&&e.directive.isComponent?"component":null}:t}function su(t,e,n){var r=0;return!n||!t.staticQueryIds.has(e)&&t.dynamicQueryIds.has(e)?r|=536870912:r|=268435456,r}function cu(t,e){return t?t+":"+e:e}var lu=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 i,o,a,s,c,l=(i=r.rootNodes,o=n,a=this._implicitTags,s=this._implicitAttrs,new Li(a,s).extract(i,o));return l.errors.length?l.errors:((c=this._messages).push.apply(c,l.messages),[])},t.prototype.getMessages=function(){return this._messages},t.prototype.write=function(t,e){var n={},r=new uu;this._messages.forEach(function(e){var r,i=t.digest(e);n.hasOwnProperty(i)?(r=n[i].sources).push.apply(r,e.sources):n[i]=e});var i=Object.keys(n).map(function(i){var o=t.createNameMapper(n[i]),a=n[i],s=o?r.convert(a.nodes,o):a.nodes,c=new li(s,{},{},a.meaning,a.description,i);return c.sources=a.sources,e&&c.sources.forEach(function(t){return t.filePath=e(t.filePath)}),c});return t.write(i,this._locale)},t}(),uu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(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),i=t.closeName?e.toPublicName(t.closeName):t.closeName,o=t.children.map(function(t){return t.visit(n,e)});return new di(t.tag,t.attrs,r,i,o,t.isVoid,t.sourceSpan)},e.prototype.visitPlaceholder=function(t,e){return new fi(t.value,e.toPublicName(t.name),t.sourceSpan)},e.prototype.visitIcuPlaceholder=function(t,e){return new mi(t.value,e.toPublicName(t.name),t.sourceSpan)},e}(gi),pu=function(){function t(t,e,n){this.srcFileUrl=t,this.genFileUrl=e,"string"==typeof n?(this.source=n,this.stmts=null):(this.source=null,this.stmts=n)}return t.prototype.isEquivalent=function(t){return this.genFileUrl===t.genFileUrl&&(this.source?this.source===t.source:null!=t.stmts&&ha(this.stmts,t.stmts))},t}();function hu(t,e){for(var n=[],r=0,i=t.transitiveModule.providers;r<i.length;r++){var o=i[r],a=o.provider,s=o.module;if(Rt(a.token)===e.ROUTES)for(var c=0,l=du(a.useValue);c<l.length;c++){var u=l[c];n.push(fu(u,e,s.reference))}}return n}function du(t,e){if(void 0===e&&(e=[]),"string"==typeof t)e.push(t);else if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){du(r[n],e)}else t.loadChildren?du(t.loadChildren,e):t.children&&du(t.children,e);return e}function fu(t,e,n){var r=t.split("#"),i=r[0],o=r[1],a=e.resolveExternalReference({moduleName:i,name:o},n?n.filePath:void 0);return{route:t,module:n||a,referencedModule:a}}var mu=function(){return function(t,e){this.symbol=t,this.metadata=e}}(),gu=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,this.knownFileNameToModuleNames=new Map}return t.prototype.resolveSymbol=function(t){if(t.members.length>0)return this._resolveSymbolMembers(t);var e=this._resolveSymbolFromSummary(t);if(e)return e;var n=this.resolvedSymbols.get(t);return n||(this._createSymbolsOf(t.filePath),this.resolvedSymbols.get(t))},t.prototype.getImportAs=function(t,e){if(void 0===e&&(e=!0),t.members.length){var n=this.getStaticSymbol(t.filePath,t.name);return(i=this.getImportAs(n,e))?this.getStaticSymbol(i.filePath,i.name,t.members):null}var r=t.filePath.replace(So,".");if(r!==t.filePath){var i,o=t.name.replace(ko,"");n=this.getStaticSymbol(r,o,t.members);return(i=this.getImportAs(n,e))?this.getStaticSymbol(Io(i.filePath),Ro(i.name),n.members):null}var a=e&&this.summaryResolver.getImportAs(t)||null;return a||(a=this.importAs.get(t)),a},t.prototype.getResourcePath=function(t){return this.symbolResourcePaths.get(t)||t.filePath},t.prototype.getTypeArity=function(t){if(e=t.filePath,Eo.test(e))return null;for(var e,n=vu(this.resolveSymbol(t));n&&n.metadata instanceof _t;)n=vu(this.resolveSymbol(n.metadata));return n&&n.metadata&&n.metadata.arity||null},t.prototype.getKnownModuleName=function(t){return this.knownFileNameToModuleNames.get(t)||null},t.prototype.recordImportAs=function(t,e){t.assertNoMembers(),e.assertNoMembers(),this.importAs.set(t,e)},t.prototype.recordModuleNameForFileName=function(t,e){this.knownFileNameToModuleNames.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 i=r[n];this.resolvedSymbols.delete(i),this.importAs.delete(i),this.symbolResourcePaths.delete(i)}}},t.prototype.ignoreErrorsFor=function(t){var e=this.errorRecorder;this.errorRecorder=function(){};try{return t()}finally{this.errorRecorder=e}},t.prototype._resolveSymbolMembers=function(t){var e=t.members,n=this.resolveSymbol(this.getStaticSymbol(t.filePath,t.name));if(!n)return null;var r=vu(n.metadata);if(r instanceof _t)return new mu(t,this.getStaticSymbol(r.filePath,r.name,e));if(!r||"class"!==r.__symbolic){for(var i=r,o=0;o<e.length&&i;o++)i=i[e[o]];return new mu(t,i)}return r.statics&&1===e.length?new mu(t,r.statics[e[0]]):null},t.prototype._resolveSymbolFromSummary=function(t){var e=this.summaryResolver.resolveSummary(t);return e?new mu(t,e.metadata):null},t.prototype.getStaticSymbol=function(t,e,n){return this.staticSymbolCache.get(t,e,n)},t.prototype.hasDecorators=function(t){var e=this.getModuleMetadata(t);return!!e.metadata&&Object.keys(e.metadata).some(function(t){var n=e.metadata[t];return n&&"class"===n.__symbolic&&n.decorators})},t.prototype.getSymbolsOf=function(t){var e=this.summaryResolver.getSymbolsOf(t);if(e)return e;this._createSymbolsOf(t);var n=[];return this.resolvedSymbols.forEach(function(e){e.symbol.filePath===t&&n.push(e.symbol)}),n},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.importAs&&this.knownFileNameToModuleNames.set(t,r.importAs),r.exports)for(var i=function(r){if(r.export)r.export.forEach(function(i){var o,a=o=yu(o="string"==typeof i?i:i.as);"string"!=typeof i&&(a=yu(i.name));var s=e.resolveModule(r.from,t);if(s){var c=e.getStaticSymbol(s,a),l=e.getStaticSymbol(t,o);n.push(e.createExport(l,c))}});else{var i=o.resolveModule(r.from,t);if(i)o.getSymbolsOf(i).forEach(function(r){var i=e.getStaticSymbol(t,r.name);n.push(e.createExport(i,r))})}},o=this,a=0,s=r.exports;a<s.length;a++){i(s[a])}if(r.metadata){var c=new Set(Object.keys(r.metadata).map(yu)),l=r.origins||{};Object.keys(r.metadata).forEach(function(i){var o=r.metadata[i],a=yu(i),s=e.getStaticSymbol(t,a),u=l.hasOwnProperty(i)&&l[i];if(u){var p=e.resolveModule(u,t);p?e.symbolResourcePaths.set(s,p):e.reportError(new Error("Couldn't resolve original symbol for "+u+" from "+t))}n.push(e.createResolvedSymbol(s,t,c,o))})}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,i,o){var a,s=this;if(this.summaryResolver.isLibraryFile(t.filePath)&&o&&"class"===o.__symbolic){var c={__symbolic:"class",arity:o.arity};return new mu(t,c)}var l=function(){return a||(a=s.host.getOutputName(e.replace(/((\.ts)|(\.d\.ts)|)$/,".ts").replace(/^.*node_modules[/\\]/,""))),a},u=this,p=L(o,new(function(o){function a(){return null!==o&&o.apply(this,arguments)||this}return n(a,o),a.prototype.visitStringMap=function(n,a){var s=n.__symbolic;if("function"===s){var c=a.length;a.push.apply(a,n.parameters||[]);var p=o.prototype.visitStringMap.call(this,n,a);return a.length=c,p}if("reference"!==s)return"error"===s?r({},n,{fileName:l()}):o.prototype.visitStringMap.call(this,n,a);var h=n.module,d=n.name?yu(n.name):n.name;if(!d)return null;var f=void 0;return h?(f=u.resolveModule(h,t.filePath))?{__symbolic:"resolved",symbol:u.getStaticSymbol(f,d),line:n.line,character:n.character,fileName:l()}:{__symbolic:"error",message:"Could not resolve "+h+" relative to "+t.filePath+".",line:n.line,character:n.character,fileName:l()}:a.indexOf(d)>=0?{__symbolic:"reference",name:d}:i.has(d)?u.getStaticSymbol(e,d):void 0},a}(V)),[]),h=vu(p);return h instanceof _t?this.createExport(t,h):new mu(t,p)},t.prototype.createExport=function(t,e){return t.assertNoMembers(),e.assertNoMembers(),this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(e.filePath)&&this.importAs.set(e,this.getImportAs(t)||t),new mu(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&&t.version>r&&(r=t.version,e=t)})}if(e||(e={__symbolic:"module",version:4,module:t,metadata:{}}),4!=e.version){var i=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 4";this.reportError(new Error(i))}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:""))),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}();function yu(t){return t.startsWith("___")?t.substr(1):t}function vu(t){return t&&"resolved"===t.__symbolic?t.symbol:t}function bu(t,e,n){var r=Ro(e.name);t.statements.push(ms([],[new qa(n)],new oa(sa)).toDeclStmt(r,[Ua.Final,Ua.Exported]))}var _u=function(t){function e(e,n,r){var i=t.call(this)||this;return i.symbolResolver=e,i.summaryResolver=n,i.srcFileName=r,i.symbols=[],i.indexBySymbol=new Map,i.reexportedBy=new Map,i.processedSummaryBySymbol=new Map,i.processedSummaries=[],i.unprocessedSymbolSummariesBySymbol=new Map,i.moduleName=e.getKnownModuleName(r),i}return n(e,t),e.prototype.addSummary=function(t){var e,n,r=this,i=this.unprocessedSymbolSummariesBySymbol.get(t.symbol),o=this.processedSummaryBySymbol.get(t.symbol);if(i||(i={symbol:t.symbol,metadata:void 0},this.unprocessedSymbolSummariesBySymbol.set(t.symbol,i),o={symbol:this.processValue(t.symbol,0)},this.processedSummaries.push(o),this.processedSummaryBySymbol.set(t.symbol,o)),!i.metadata&&t.metadata){var a=t.metadata||{};if("class"===a.__symbolic){var s={};Object.keys(a).forEach(function(t){"decorators"!==t&&(s[t]=a[t])}),a=s}else xu(a)&&(xu(n=a)&&vu(n.expression)instanceof _t||xu(e=a)&&e.expression&&"select"===e.expression.__symbolic&&vu(e.expression.expression)instanceof _t||(a={__symbolic:"error",message:"Complex function calls are not supported."}));if(i.metadata=a,o.metadata=this.processValue(a,1),a instanceof _t&&this.summaryResolver.isLibraryFile(a.filePath)){var c=this.symbols[this.indexBySymbol.get(a)];No(c.name)||this.reexportedBy.set(c,t.symbol)}}if(!i.type&&t.type&&(i.type=t.type,o.type=this.processValue(t.type,0),t.type.summaryKind===Mt.NgModule)){var l=t.type;l.exportedDirectives.concat(l.exportedPipes).forEach(function(t){var e=t.reference;if(r.summaryResolver.isLibraryFile(e.filePath)&&!r.unprocessedSymbolSummariesBySymbol.has(e)){var n=r.summaryResolver.resolveSummary(e);n&&r.addSummary(n)}})}},e.prototype.serialize=function(){var t=this,e=[];return{json:JSON.stringify({moduleName:this.moduleName,summaries:this.processedSummaries,symbols:this.symbols.map(function(n,r){n.assertNoMembers();var i=void 0;if(t.summaryResolver.isLibraryFile(n.filePath)){var o=t.reexportedBy.get(n);if(o)i=t.indexBySymbol.get(o);else{var a=t.unprocessedSymbolSummariesBySymbol.get(n);a&&a.metadata&&"interface"===a.metadata.__symbolic||(i=n.name+"_"+r,e.push({symbol:n,exportAs:i}))}}return{__symbol:r,name:n.name,filePath:t.summaryResolver.toSummaryFileName(n.filePath,t.srcFileName),importAs:i}})}),exportAs:e}},e.prototype.processValue=function(t,e){return L(t,this,e)},e.prototype.visitOther=function(t,e){if(t instanceof _t){var n=this.symbolResolver.getStaticSymbol(t.filePath,t.name);return{__symbol:this.visitStaticSymbol(n,e),members:t.members}}},e.prototype.visitStaticSymbol=function(t,e){var n=this.indexBySymbol.get(t),r=null;if(1&e&&this.summaryResolver.isLibraryFile(t.filePath)){if(this.unprocessedSymbolSummariesBySymbol.has(t))return n;(r=this.loadSummary(t))&&r.metadata instanceof _t&&(n=this.visitStaticSymbol(r.metadata,e),r=null)}else if(null!=n)return n;return null==n&&(n=this.symbols.length,this.symbols.push(t)),this.indexBySymbol.set(t,n),r&&this.addSummary(r),n},e.prototype.loadSummary=function(t){var e=this.summaryResolver.resolveSummary(t);if(!e){var n=this.symbolResolver.resolveSymbol(t);n&&(e={symbol:n.symbol,metadata:n.metadata})}return e},e}(V),wu=function(){function t(t,e,n){this.outputCtx=t,this.symbolResolver=e,this.summaryResolver=n,this.data=[]}return t.prototype.addSourceType=function(t,e){this.data.push({summary:t,metadata:e,isLibrary:!1})},t.prototype.addLibType=function(t){this.data.push({summary:t,metadata:null,isLibrary:!0})},t.prototype.serialize=function(t){for(var e=this,n=new Map,r=0,i=t;r<i.length;r++){var o=i[r],a=o.symbol,s=o.exportAs;n.set(a,s)}for(var c=new Set,l=0,u=this.data;l<u.length;l++){var p=u[l],h=p.summary,d=p.metadata,f=p.isLibrary;if(h.summaryKind===Mt.NgModule){c.add(h.type.reference);for(var m=0,g=h.modules;m<g.length;m++){var y=g[m];c.add(y.reference)}}if(!f){Ro(h.type.reference.name);bu(this.outputCtx,h.type.reference,this.serializeSummaryWithDeps(h,d))}}c.forEach(function(t){if(e.summaryResolver.isLibraryFile(t.filePath)){var r=Ro(n.get(t)||t.name);e.outputCtx.statements.push(ls(r).set(e.serializeSummaryRef(t)).toDeclStmt(null,[Ua.Exported]))}})},t.prototype.serializeSummaryWithDeps=function(t,e){var n=this,r=[this.serializeSummary(t)],i=[];if(e instanceof Ft)r.push.apply(r,e.declaredDirectives.concat(e.declaredPipes).map(function(t){return t.reference}).concat(e.transitiveModule.modules.map(function(t){return t.reference}).filter(function(t){return t!==e.type.reference})).map(function(t){return n.serializeSummaryRef(t)})),i=e.providers;else if(t.summaryKind===Mt.Directive){var o=t;i=o.providers.concat(o.viewProviders)}return r.push.apply(r,i.filter(function(t){return!!t.useClass}).map(function(t){return n.serializeSummary({summaryKind:Mt.Injectable,type:t.useClass})})),ds(r)},t.prototype.serializeSummaryRef=function(t){var e=this.symbolResolver.getStaticSymbol(Io(t.filePath),Ro(t.name));return this.outputCtx.importExpr(e)},t.prototype.serializeSummary=function(t){var e=this.outputCtx;return L(t,new(function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return ds(t.map(function(t){return L(t,n,e)}))},t.prototype.visitStringMap=function(t,e){var n=this;return new ja(Object.keys(t).map(function(r){return new La(r,L(t[r],n,e),!1)}))},t.prototype.visitPrimitive=function(t,e){return gs(t)},t.prototype.visitOther=function(t,n){if(t instanceof _t)return e.importExpr(t);throw new Error("Illegal State: Encountered value "+t)},t}()),null)},t}(),Cu=function(t){function e(e,n){var r=t.call(this)||this;return r.symbolCache=e,r.summaryResolver=n,r}return n(e,t),e.prototype.deserialize=function(t,e){var n=this,r=JSON.parse(e),i=[];this.symbols=r.symbols.map(function(e){return n.symbolCache.get(n.summaryResolver.fromSummaryFileName(e.filePath,t),e.name)}),r.symbols.forEach(function(e,r){var o=n.symbols[r],a=e.importAs;"number"==typeof a?i.push({symbol:o,importAs:n.symbols[a]}):"string"==typeof a&&i.push({symbol:o,importAs:n.symbolCache.get(Oo(t),a)})});var o=L(r.summaries,this,null);return{moduleName:r.moduleName,summaries:o,importAs:i}},e.prototype.visitStringMap=function(e,n){if("__symbol"in e){var r=this.symbols[e.__symbol],i=e.members;return i.length?this.symbolCache.get(r.filePath,r.name,i):r}return t.prototype.visitStringMap.call(this,e,n)},e}(V);function xu(t){return t&&"call"===t.__symbolic}var Eu={Basic:1,TypeCheck:2,All:3};Eu[Eu.Basic]="Basic",Eu[Eu.TypeCheck]="TypeCheck",Eu[Eu.All]="All";var Su=function(){function t(t,e,n,r,i,o,a,s,c,l,u,p,h){this._config=t,this._options=e,this._host=n,this._reflector=r,this._metadataResolver=i,this._templateParser=o,this._styleCompiler=a,this._viewCompiler=s,this._typeCheckCompiler=c,this._ngModuleCompiler=l,this._outputEmitter=u,this._summaryResolver=p,this._symbolResolver=h,this._templateAstCache=new Map,this._analyzedFiles=new Map}return t.prototype.clearCache=function(){this._metadataResolver.clearCache()},t.prototype.analyzeModulesSync=function(t){var e=this,n=Tu(t,this._host,this._symbolResolver,this._metadataResolver);return n.ngModules.forEach(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!0)}),n},t.prototype.analyzeModulesAsync=function(t){var e=this,n=Tu(t,this._host,this._symbolResolver,this._metadataResolver);return Promise.all(n.ngModules.map(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){return n})},t.prototype._analyzeFile=function(t){var e=this._analyzedFiles.get(t);return e||(e=Iu(this._host,this._symbolResolver,this._metadataResolver,t),this._analyzedFiles.set(t,e)),e},t.prototype.findGeneratedFileNames=function(t){var e=this,n=[],r=this._analyzeFile(t);(this._options.allowEmptyCodegenFiles||r.directives.length||r.pipes.length||r.injectables.length||r.ngModules.length||r.exportsNonSourceFiles)&&(n.push(Oo(r.fileName,!0)),this._options.enableSummariesForJit&&n.push(Io(r.fileName,!0)));var i=To(Ao(r.fileName,!0)[1]);return r.directives.forEach(function(t){var o=e._metadataResolver.getNonNormalizedDirectiveMetadata(t).metadata;o.isComponent&&o.template.styleUrls.forEach(function(t){var a=e._host.resourceNameToFileName(t,r.fileName);if(!a)throw z("Couldn't resolve resource "+t+" relative to "+r.fileName);var s=(o.template.encapsulation||e._config.defaultEncapsulation)===h.Emulated;n.push(Pu(a,s,i)),e._options.allowEmptyCodegenFiles&&n.push(Pu(a,!s,i))})}),n},t.prototype.emitBasicStub=function(t,e){var n=this._createOutputContext(t);if(t.endsWith(".ngfactory.ts")){if(!e)throw new Error("Assertion error: require the original file for .ngfactory.ts stubs. File: "+t);var r=this._analyzeFile(e);this._createNgFactoryStub(n,r,Eu.Basic)}else if(t.endsWith(".ngsummary.ts")){if(this._options.enableSummariesForJit){if(!e)throw new Error("Assertion error: require the original file for .ngsummary.ts stubs. File: "+t);r=this._analyzeFile(e);ku(n),r.ngModules.forEach(function(t){var e,r;e=n,r=t.type.reference,bu(e,r,Va)})}}else t.endsWith(".ngstyle.ts")&&ku(n);return this._codegenSourceModule("unknown",n)},t.prototype.emitTypeCheckStub=function(t,e){var n=this._analyzeFile(e),r=this._createOutputContext(t);return t.endsWith(".ngfactory.ts")&&this._createNgFactoryStub(r,n,Eu.TypeCheck),r.statements.length>0?this._codegenSourceModule(n.fileName,r):null},t.prototype.loadFilesAsync=function(t){var e=this,n=t.map(function(t){return e._analyzeFile(t)}),r=[];return n.forEach(function(t){return t.ngModules.forEach(function(t){return r.push(e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1))})}),Promise.all(r).then(function(t){return Du(n)})},t.prototype.loadFilesSync=function(t){var e=this,n=t.map(function(t){return e._analyzeFile(t)});return n.forEach(function(t){return t.ngModules.forEach(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!0)})}),Du(n)},t.prototype._createNgFactoryStub=function(t,e,n){var r=this,i=0;e.ngModules.forEach(function(e,o){r._ngModuleCompiler.createStub(t,e.type.reference);var a=e.transitiveModule.directives.map(function(t){return t.reference}).concat(e.transitiveModule.pipes.map(function(t){return t.reference}),e.importedModules.map(function(t){return t.type.reference}),e.exportedModules.map(function(t){return t.type.reference}),r._externalIdentifierReferences([jo.TemplateRef,jo.ElementRef])),s=new Map;a.forEach(function(t,e){s.set(t,"_decl"+o+"_"+e)}),s.forEach(function(e,n){t.statements.push(ls(e).set(Va.cast(sa)).toDeclStmt(hs(t.importExpr(n,null,!1))))}),n&Eu.TypeCheck&&e.declaredDirectives.forEach(function(n){var o=r._metadataResolver.getDirectiveMetadata(n.reference);o.isComponent&&(i++,r._createTypeCheckBlock(t,o.type.reference.name+"_Host_"+i,e,r._metadataResolver.getHostComponentMetadata(o),[o.type],s),r._createTypeCheckBlock(t,o.type.reference.name+"_"+i,e,o,e.transitiveModule.directives,s))})}),0===t.statements.length&&ku(t)},t.prototype._externalIdentifierReferences=function(t){for(var e=[],n=0,r=t;n<r.length;n++){var i=r[n],o=Vo(this._reflector,i);o.identifier&&e.push(o.identifier.reference)}return e},t.prototype._createTypeCheckBlock=function(t,e,n,r,i,o){var a,s=this._parseTemplate(r,n,i),c=s.template,l=s.pipes;(a=t.statements).push.apply(a,this._typeCheckCompiler.compileComponent(e,r,c,l,o,t))},t.prototype.emitMessageBundle=function(t,e){var n=this,r=[],i=new bo,o=new lu(i,[],{},e);if(t.files.forEach(function(t){var e=[];t.directives.forEach(function(t){var r=n._metadataResolver.getDirectiveMetadata(t);r&&r.isComponent&&e.push(r)}),e.forEach(function(e){var n=e.template.template,i=ae.fromArray(e.template.interpolation);r.push.apply(r,o.updateFromTemplate(n,t.fileName,i))})}),r.length)throw new Error(r.map(function(t){return t.toString()}).join("\n"));return o},t.prototype.emitAllImpls=function(t){var e=this,n=t.ngModuleByPipeOrDirective;return Ht(t.files.map(function(t){return e._compileImplFile(t.fileName,n,t.directives,t.pipes,t.ngModules,t.injectables)}))},t.prototype._compileImplFile=function(t,e,n,r,i,o){var a=this,s=To(Ao(t,!0)[1]),c=[],l=this._createOutputContext(Oo(t,!0));if(c.push.apply(c,this._createSummary(t,n,r,i,o,l)),i.forEach(function(t){return a._compileModule(l,t)}),n.forEach(function(n){var r=a._metadataResolver.getDirectiveMetadata(n);if(r.isComponent){var i=e.get(n);if(!i)throw new Error("Internal Error: cannot determine the module for component "+St(r.type)+"!");var o=a._styleCompiler.compileComponent(l,r);r.template.externalStylesheets.forEach(function(e){var n=a._styleCompiler.needsStyleShim(r);c.push(a._codegenStyles(t,r,e,n,s)),a._options.allowEmptyCodegenFiles&&c.push(a._codegenStyles(t,r,e,!n,s))});a._compileComponent(l,r,i,i.transitiveModule.directives,o,s);a._compileComponentFactory(l,r,i,s)}}),l.statements.length>0||this._options.allowEmptyCodegenFiles){var u=this._codegenSourceModule(t,l);c.unshift(u)}return c},t.prototype._createSummary=function(t,e,n,r,i,o){var a=this,s=this._symbolResolver.getSymbolsOf(t).map(function(t){return a._symbolResolver.resolveSymbol(t)}),c=r.map(function(t){return{summary:a._metadataResolver.getNgModuleSummary(t.type.reference),metadata:a._metadataResolver.getNgModuleMetadata(t.type.reference)}}).concat(e.map(function(t){return{summary:a._metadataResolver.getDirectiveSummary(t),metadata:a._metadataResolver.getDirectiveMetadata(t)}}),n.map(function(t){return{summary:a._metadataResolver.getPipeSummary(t),metadata:a._metadataResolver.getPipeMetadata(t)}}),i.map(function(t){return{summary:a._metadataResolver.getInjectableSummary(t),metadata:a._metadataResolver.getInjectableSummary(t).type}})),l=this._options.enableSummariesForJit?this._createOutputContext(Io(t,!0)):null,u=function(t,e,n,r,i,o){var a=new _u(r,n,t);i.forEach(function(t){return a.addSummary({symbol:t.symbol,metadata:t.metadata})}),o.forEach(function(t){var e=t.summary;t.metadata,a.addSummary({symbol:e.type.reference,metadata:void 0,type:e})});var s=a.serialize(),c=s.json,l=s.exportAs;if(e){var u=new wu(e,r,n);o.forEach(function(t){var e=t.summary,n=t.metadata;u.addSourceType(e,n)}),a.unprocessedSymbolSummariesBySymbol.forEach(function(t){n.isLibraryFile(t.symbol.filePath)&&t.type&&u.addLibType(t.type)}),u.serialize(l)}return{json:c,exportAs:l}}(t,l,this._summaryResolver,this._symbolResolver,s,c),p=u.json;u.exportAs.forEach(function(t){o.statements.push(ls(t.exportAs).set(o.importExpr(t.symbol)).toDeclStmt(null,[Ua.Exported]))});var h=[new pu(t,Mo(t),p)];return l&&h.push(this._codegenSourceModule(t,l)),h},t.prototype._compileModule=function(t,e){var n=[];if(this._options.locale){var r=this._options.locale.replace(/_/g,"-");n.push({token:Vo(this._reflector,jo.LOCALE_ID),useValue:r})}this._options.i18nFormat&&n.push({token:Vo(this._reflector,jo.TRANSLATIONS_FORMAT),useValue:this._options.i18nFormat}),this._ngModuleCompiler.compile(t,e,n)},t.prototype._compileComponentFactory=function(t,e,n,r){var i=this._metadataResolver.getHostComponentMetadata(e),o=this._compileComponent(t,i,n,[e.type],null,r).viewClassVar,a=Tt(e.type.reference),s=[];for(var c in e.inputs){var l=e.inputs[c];s.push(new La(c,gs(l),!1))}var u=[];for(var c in e.outputs){l=e.outputs[c];u.push(new La(c,gs(l),!1))}t.statements.push(ls(a).set(us(jo.createComponentFactory).callFn([gs(e.selector),t.importExpr(e.type.reference),ls(o),new ja(s),new ja(u),ds(e.template.ngContentSelectors.map(function(t){return gs(t)}))])).toDeclStmt(ps(jo.ComponentFactory,[hs(t.importExpr(e.type.reference))],[ta.Const]),[Ua.Final,Ua.Exported]))},t.prototype._compileComponent=function(t,e,n,r,i,o){var a=this._parseTemplate(e,n,r),s=a.template,c=a.pipes,l=i?ls(i.stylesVar):ds([]),u=this._viewCompiler.compileComponent(t,e,s,l,c);return i&&Ou(this._symbolResolver,i,this._styleCompiler.needsStyleShim(e),o),u},t.prototype._parseTemplate=function(t,e,n){var r=this;if(this._templateAstCache.has(t.type.reference))return this._templateAstCache.get(t.type.reference);var i=t.template.preserveWhitespaces,o=n.map(function(t){return r._metadataResolver.getDirectiveSummary(t.reference)}),a=e.transitiveModule.pipes.map(function(t){return r._metadataResolver.getPipeSummary(t.reference)}),s=this._templateParser.parse(t,t.template.htmlAst,o,a,e.schemas,Gt(e.type,t,t.template),i);return this._templateAstCache.set(t.type.reference,s),s},t.prototype._createOutputContext=function(t){var e=this;return{statements:[],genFilePath:t,importExpr:function(n,r,i){if(void 0===r&&(r=null),void 0===i&&(i=!0),!(n instanceof _t))throw new Error("Internal error: unknown identifier "+JSON.stringify(n));var o=e._symbolResolver.getTypeArity(n)||0,a=e._symbolResolver.getImportAs(n,i)||n,s=a.filePath,c=a.name,l=a.members,u=e._fileNameToModuleName(s,t),p=u===e._fileNameToModuleName(t,t)?null:u,h=r||[],d=o-h.length,f=h.concat(new Array(d).fill(sa));return l.reduce(function(t,e){return t.prop(e)},us(new Sa(p,c,null),f))}}},t.prototype._fileNameToModuleName=function(t,e){return this._summaryResolver.getKnownModuleName(t)||this._symbolResolver.getKnownModuleName(t)||this._host.fileNameToModuleName(t,e)},t.prototype._codegenStyles=function(t,e,n,r,i){var o=this._createOutputContext(Pu(n.moduleUrl,r,i)),a=this._styleCompiler.compileStyles(o,e,n,r);return Ou(this._symbolResolver,a,r,i),this._codegenSourceModule(t,o)},t.prototype._codegenSourceModule=function(t,e){return new pu(t,e.genFilePath,e.statements)},t.prototype.listLazyRoutes=function(t,e){var n=this;if(t)return function t(e,r,i){void 0===r&&(r=new Set);void 0===i&&(i=[]);if(r.has(e)||!e.name)return i;r.add(e);var o=hu(n._metadataResolver.getNgModuleMetadata(e,!0),n._reflector);for(var a=0,s=o;a<s.length;a++){var c=s[a];i.push(c),t(c.referencedModule,r,i)}return i}(fu(t,this._reflector).referencedModule);if(e){for(var r=[],i=0,o=e.ngModules;i<o.length;i++)for(var a=0,s=hu(o[i],this._reflector);a<s.length;a++){var c=s[a];r.push(c)}return r}throw new Error("Either route or analyzedModules has to be specified!")},t}();function ku(t){t.statements.push(us(jo.ComponentFactory).toStmt())}function Ou(t,e,n,r){e.dependencies.forEach(function(e){e.setValue(t.getStaticSymbol(Pu(e.moduleUrl,n,r),e.name))})}function Pu(t,e,n){return t+(e?".shim":"")+".ngstyle"+n}function Au(t,e,n,r){var i,o,a,s,c,l,u;return Ru((i=t,o=e,a=n,s=r,c=new Set,l=[],u=function(t){if(c.has(t)||!o.isSourceFile(t))return!1;c.add(t);var e=Iu(o,a,s,t);l.push(e),e.ngModules.forEach(function(t){t.transitiveModule.modules.forEach(function(t){return u(t.reference.filePath)})})},i.forEach(function(t){return u(t)}),l))}function Tu(t,e,n,r){return Mu(Au(t,e,n,r))}function Mu(t){if(t.symbolsMissingModule&&t.symbolsMissingModule.length)throw z(t.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 t}function Iu(t,e,n,r){var i=[],o=[],a=[],s=[],c=e.hasDecorators(r),l=!1;return r.endsWith(".d.ts")&&!c||e.getSymbolsOf(r).forEach(function(r){var c=e.resolveSymbol(r).metadata;if(c&&"error"!==c.__symbolic){var u,p,h,d,f=!1;if("class"===c.__symbolic)if(n.isDirective(r))f=!0,i.push(r);else if(n.isPipe(r))f=!0,o.push(r);else if(n.isNgModule(r)){var m=n.getNgModuleMetadata(r,!1);m&&(f=!0,s.push(m))}else n.isInjectable(r)&&(f=!0,a.push(r));f||(l=l||(u=t,p=c,h=!1,d=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;t.forEach(function(t){return L(t,n,e)})},t.prototype.visitStringMap=function(t,e){var n=this;Object.keys(t).forEach(function(r){return L(t[r],n,e)})},t.prototype.visitPrimitive=function(t,e){},t.prototype.visitOther=function(t,e){t instanceof _t&&!u.isSourceFile(t.filePath)&&(h=!0)},t}(),L(p,new d,null),h))}}),{fileName:r,directives:i,pipes:o,ngModules:s,injectables:a,exportsNonSourceFiles:l}}function Ru(t){var e=[],n=new Map,r=new Set;t.forEach(function(t){t.ngModules.forEach(function(t){e.push(t),t.declaredDirectives.forEach(function(e){return n.set(e.reference,t)}),t.declaredPipes.forEach(function(e){return n.set(e.reference,t)})}),t.directives.forEach(function(t){return r.add(t)}),t.pipes.forEach(function(t){return r.add(t)})});var i=[];return r.forEach(function(t){n.has(t)||i.push(t)}),{ngModules:e,ngModuleByPipeOrDirective:n,symbolsMissingModule:i,files:t}}function Du(t){return Mu(Ru(t))}var Nu="ngFormattedMessage";function Lu(t,e){if(void 0===e&&(e=0),!t)return"";var n=t.position?t.position.fileName+"("+(t.position.line+1)+","+(t.position.column+1)+")":"",r=n&&0!==e?" at "+n:"",i=""+(n&&0===e?n+": ":"")+t.message+r;return""+function t(e){if(e<=0)return"";if(e<6)return[""," ","  ","   ","    ","     "][e];var n=t(Math.floor(e/2));return n+n+(e%2==1?" ":"")}(e)+i+(t.next&&"\n"+Lu(t.next,e+2)||"")}function ju(t){var e=z(Lu(t)+".");return e[Nu]=!0,e.chain=t,e.position=t.position,e}var Fu="@angular/core",Vu=/^\$.*\$$/,Bu={__symbolic:"ignore"},Uu="useValue",Hu="provide",zu=new Set([Uu,"useFactory","data"]);function Gu(t){return t&&"ignore"==t.__symbolic}var Wu=function(){function t(t,e,n,r,i){void 0===n&&(n=[]),void 0===r&&(r=[]);var o=this;this.summaryResolver=t,this.symbolResolver=e,this.errorRecorder=i,this.annotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.staticCache=new Map,this.conversionMap=new Map,this.resolvedExternalReferences=new Map,this.annotationForParentClassWithSummaryKind=new Map,this.initializeConversionMap(),n.forEach(function(t){return o._registerDecoratorOrConstructor(o.getStaticSymbol(t.filePath,t.name),t.ctor)}),r.forEach(function(t){return o._registerFunction(o.getStaticSymbol(t.filePath,t.name),t.fn)}),this.annotationForParentClassWithSummaryKind.set(Mt.Directive,[p,f]),this.annotationForParentClassWithSummaryKind.set(Mt.Pipe,[m]),this.annotationForParentClassWithSummaryKind.set(Mt.NgModule,[_]),this.annotationForParentClassWithSummaryKind.set(Mt.Injectable,[E,m,p,f,_])}return t.prototype.componentModuleUrl=function(t){var e=this.findSymbolDeclaration(t);return this.symbolResolver.getResourcePath(e)},t.prototype.resolveExternalReference=function(t,e){var n=void 0;if(!e){n=t.moduleName+":"+t.name;var r=this.resolvedExternalReferences.get(n);if(r)return r}var i=this.symbolResolver.getSymbolByModule(t.moduleName,t.name,e),o=this.findSymbolDeclaration(i);return e||(this.symbolResolver.recordModuleNameForFileName(i.filePath,t.moduleName),this.symbolResolver.recordImportAs(o,i)),n&&this.resolvedExternalReferences.set(n,o),o},t.prototype.findDeclaration=function(t,e,n){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(t,e,n))},t.prototype.tryFindDeclaration=function(t,e){var n=this;return this.symbolResolver.ignoreErrorsFor(function(){return n.findDeclaration(t,e)})},t.prototype.findSymbolDeclaration=function(t){var e=this.symbolResolver.resolveSymbol(t);if(e){var n=e.metadata;if(n&&"resolved"===n.__symbolic&&(n=n.symbol),n instanceof _t)return this.findSymbolDeclaration(e.metadata)}return t},t.prototype.annotations=function(t){var e=this.annotationCache.get(t);if(!e){e=[];var n=this.getTypeMetadata(t),r=this.findParentType(t,n);if(r){var i=this.annotations(r);e.push.apply(e,i)}var o=[];if(n.decorators&&(o=this.simplify(t,n.decorators),e.push.apply(e,o)),r&&!this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(r.filePath)){var a=this.summaryResolver.resolveSummary(r);if(a&&a.type){var s=this.annotationForParentClassWithSummaryKind.get(a.type.summaryKind);s.some(function(t){return o.some(function(e){return t.isTypeOf(e)})})||this.reportError(ap(Yu("Class "+t.name+" in "+t.filePath+" extends from a "+Mt[a.type.summaryKind]+" in another compilation unit without duplicating the decorator",void 0,"Please add a "+s.map(function(t){return t.ngMetadataName}).join(" or ")+" decorator to the class"),t),t)}}this.annotationCache.set(t,e.filter(function(t){return!!t}))}return e},t.prototype.propMetadata=function(t){var e=this,n=this.propertyCache.get(t);if(!n){var r=this.getTypeMetadata(t);n={};var i=this.findParentType(t,r);if(i){var o=this.propMetadata(i);Object.keys(o).forEach(function(t){n[t]=o[t]})}var a=r.members||{};Object.keys(a).forEach(function(r){var i=a[r].find(function(t){return"property"==t.__symbolic||"method"==t.__symbolic}),o=[];n[r]&&o.push.apply(o,n[r]),n[r]=o,i&&i.decorators&&o.push.apply(o,e.simplify(t,i.decorators))}),this.propertyCache.set(t,n)}return n},t.prototype.parameters=function(t){var e=this;if(!(t instanceof _t))return this.reportError(new Error("parameters received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),[];try{var n=this.parameterCache.get(t);if(!n){var r=this.getTypeMetadata(t),i=this.findParentType(t,r),o=r?r.members:null,a=o?o.__ctor__:null;if(a){var s=a.find(function(t){return"constructor"==t.__symbolic}),c=s.parameters||[],l=this.simplify(t,s.parameterDecorators||[]);n=[],c.forEach(function(r,i){var o=[],a=e.trySimplify(t,r);a&&o.push(a);var s=l?l[i]:null;s&&o.push.apply(o,s),n.push(o)})}else i&&(n=this.parameters(i));n||(n=[]),this.parameterCache.set(t,n)}return n}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 i=this._methodNames(r);Object.keys(i).forEach(function(t){e[t]=i[t]})}var o=n.members||{};Object.keys(o).forEach(function(t){var n=o[t].some(function(t){return"method"==t.__symbolic});e[t]=e[t]||n}),this.methodCache.set(t,e)}return e},t.prototype._staticMembers=function(t){var e=this.staticCache.get(t);if(!e){var n=this.getTypeMetadata(t).statics||{};e=Object.keys(n),this.staticCache.set(t,e)}return e},t.prototype.findParentType=function(t,e){var n=this.trySimplify(t,e.extends);if(n instanceof _t)return n},t.prototype.hasLifecycleHook=function(t,e){t instanceof _t||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.guards=function(t){if(!(t instanceof _t))return this.reportError(new Error("guards received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),{};for(var e={},n=0,r=this._staticMembers(t);n<r.length;n++){var i=r[n];if(i.endsWith("TypeGuard")){var o=i.substr(0,i.length-"TypeGuard".length),a=void 0;o.endsWith("UseIf")?(o=i.substr(0,o.length-"UseIf".length),a="UseIf"):a=this.getStaticSymbol(t.filePath,t.name,[i]),e[o]=a}}return 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(Fu,"InjectionToken"),this.opaqueToken=this.findDeclaration(Fu,"OpaqueToken"),this.ROUTES=this.tryFindDeclaration("@angular/router","ROUTES"),this.ANALYZE_FOR_ENTRY_COMPONENTS=this.findDeclaration(Fu,"ANALYZE_FOR_ENTRY_COMPONENTS"),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"Host"),O),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"Injectable"),E),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"Self"),S),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"SkipSelf"),k),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"Inject"),i),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"Optional"),x),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"Attribute"),a),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"ContentChild"),c),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"ContentChildren"),s),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"ViewChild"),u),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"ViewChildren"),l),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"Input"),g),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"Output"),y),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"Pipe"),m),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"HostBinding"),v),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"HostListener"),b),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"Directive"),p),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"Component"),f),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"NgModule"),_),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"Host"),O),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"Self"),S),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"SkipSelf"),k),this._registerDecoratorOrConstructor(this.findDeclaration(Fu,"Optional"),x)},t.prototype.getStaticSymbol=function(t,e,n){return this.symbolResolver.getStaticSymbol(t,e,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){var n,r=this,i=rp.empty,o=new Map;try{n=function t(e,n,a,s){function c(t){var e=r.symbolResolver.resolveSymbol(t);return e?e.metadata:null}function l(n){return t(e,n,a,0)}function u(n,i){if(n===e)return t(n,i,a+1,s);try{return t(n,i,a+1,s)}catch(t){if(!Ku(t))throw t;var o=t.chain?"references '"+t.symbol.name+"'":function(t){if(t.summary)return t.summary;switch(t.message){case $u:if(t.context&&t.context.className)return"references non-exported class "+t.context.className;break;case Xu:return"is not initialized";case Qu:return"is a destructured variable";case Zu:return"could not be resolved";case Ju:return t.context&&t.context.name?"calls '"+t.context.name+"'":"calls a function";case tp:return t.context&&t.context.name?"references local variable "+t.context.name:"references a local variable"}return"contains the error"}(t),c={message:"'"+n.name+"' "+o,position:t.position,next:t.chain};r.error({message:t.message,advise:t.advise,context:t.context,chain:c,symbol:n},e)}}function p(n){if(np(n))return n;if(n instanceof Array){for(var h=[],d=0,f=n;d<f.length;d++){var m=f[d];if(m&&"spread"===m.__symbolic){var g=l(m.expression);if(Array.isArray(g)){for(var y=0,v=g;y<v.length;y++){var b=v[y];h.push(b)}continue}}var _=p(m);Gu(_)||h.push(_)}return h}if(n instanceof _t)return n===r.injectionToken||r.conversionMap.has(n)||s>0&&!n.members.length?n:null!=(T=c(w=n))?u(w,T):w;if(n){if(n.__symbolic){var w=void 0;switch(n.__symbolic){case"binop":var C=p(n.left);if(Gu(C))return C;var x=p(n.right);if(Gu(x))return x;switch(n.operator){case"&&":return C&&x;case"||":return C||x;case"|":return C|x;case"^":return C^x;case"&":return C&x;case"==":return C==x;case"!=":return C!=x;case"===":return C===x;case"!==":return C!==x;case"<":return C<x;case">":return C>x;case"<=":return C<=x;case">=":return C>=x;case"<<":return C<<x;case">>":return C>>x;case"+":return C+x;case"-":return C-x;case"*":return C*x;case"/":return C/x;case"%":return C%x}return null;case"if":return p(p(n.condition)?n.thenExpression:n.elseExpression);case"pre":var E=p(n.operand);if(Gu(E))return E;switch(n.operator){case"+":return E;case"-":return-E;case"!":return!E;case"~":return~E}return null;case"index":var S=l(n.expression),k=l(n.index);return S&&np(k)?S[k]:null;case"select":var O=n.member,P=e,A=p(n.expression);if(A instanceof _t){var T,M=A.members.concat(O);return null!=(T=c(P=r.getStaticSymbol(A.filePath,A.name,M)))?u(P,T):P}return A&&np(O)?u(P,A[O]):null;case"reference":var I=n.name,R=i.resolve(I);if(R!=rp.missing)return R;break;case"resolved":try{return p(n.symbol)}catch(t){throw Ku(t)&&null!=n.fileName&&null!=n.line&&null!=n.character&&(t.position={fileName:n.fileName,line:n.line,column:n.character}),t}case"class":case"function":return e;case"new":case"call":if((w=t(e,n.expression,a+1,0))instanceof _t){if(w===r.injectionToken||w===r.opaqueToken)return e;var D=n.arguments||[],N=r.conversionMap.get(w);if(N){var L=D.map(function(t){return u(e,t)}).map(function(t){return Gu(t)?void 0:t});return N(e,L)}return function(t,n,s,c){if(n&&"function"==n.__symbolic){o.get(t)&&r.error({message:"Recursion is not supported",summary:"called '"+t.name+"' recursively",value:n},t);try{var l=n.value;if(l&&(0!=a||"error"!=l.__symbolic)){var h=n.parameters,d=n.defaults;s=s.map(function(t){return u(e,t)}).map(function(t){return Gu(t)?void 0:t}),d&&d.length>s.length&&s.push.apply(s,d.slice(s.length).map(function(t){return p(t)})),o.set(t,!0);for(var f=rp.build(),m=0;m<h.length;m++)f.define(h[m],s[m]);var g,y=i;try{i=f.done(),g=u(t,l)}finally{i=y}return g}}finally{o.delete(t)}}if(0===a)return Bu;var v=void 0;if(c&&"resolved"==c.__symbolic){var b=c.line,_=c.character,w=c.fileName;null!=w&&null!=b&&null!=_&&(v={fileName:w,line:b,column:_})}r.error({message:Ju,context:t,value:n,position:v},e)}(w,c(w),D,n.expression)}return Bu;case"error":var j=n.message;return null!=n.line?r.error({message:j,context:n.context,value:n,position:{fileName:n.fileName,line:n.line,column:n.character}},e):r.error({message:j,context:n.context},e),Bu;case"ignore":return n}return null}return function(t,e){if(!t)return{};var n={};return Object.keys(t).forEach(function(r){var i=e(t[r],r);Gu(i)||(Vu.test(r)?Object.defineProperty(n,r,{enumerable:!1,configurable:!0,value:i}):n[r]=i)}),n}(n,function(i,o){if(zu.has(o)){if(o===Uu&&Hu in n){var c=p(n.provide);if(c===r.ROUTES||c==r.ANALYZE_FOR_ENTRY_COMPONENTS)return p(i)}return t(e,i,a,s+1)}return p(i)})}return Bu}return p(n)}(t,e,0,0)}catch(e){if(!this.errorRecorder)throw ap(e,t);this.reportError(e,t)}if(!Gu(n))return n},t.prototype.getTypeMetadata=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata?e.metadata:{__symbolic:"class"}},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(ap(t,e),e&&e.filePath||n)},t.prototype.error=function(t,e){var n=t.message,r=t.summary,i=t.advise,o=t.position,a=t.context,s=(t.value,t.symbol),c=t.chain;this.reportError(Yu(n,r,i,o,s,a,c),e)},t}(),qu="ngMetadataError";function Yu(t,e,n,r,i,o,a){var s=z(t);return s[qu]=!0,n&&(s.advise=n),r&&(s.position=r),e&&(s.summary=e),o&&(s.context=o),a&&(s.chain=a),i&&(s.symbol=i),s}function Ku(t){return!!t[qu]}var $u="Reference to non-exported class",Xu="Variable not initialized",Qu="Destructuring not supported",Zu="Could not resolve type",Ju="Function call not supported",tp="Reference to a local symbol",ep="Lambda not supported";function np(t){return null===t||"function"!=typeof t&&"object"!=typeof t}var rp=function(){function t(){}return 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 ip(e):t.empty}}},t.missing={},t.empty={resolve:function(e){return t.missing}},t}(),ip=function(t){function e(e){var n=t.call(this)||this;return n.bindings=e,n}return n(e,t),e.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):rp.missing},e}(rp);function op(t,e){return{message:""+function(t,e){switch(t){case $u:if(e&&e.className)return"References to a non-exported class are not supported in decorators but "+e.className+" was referenced.";break;case Xu:return"Only initialized variables and constants can be referenced in decorators because the value of this variable is needed by the template compiler";case Qu:return"Referencing an exported destructured variable or constant is not supported in decorators and this value is needed by the template compiler";case Zu:if(e&&e.typeName)return"Could not resolve type "+e.typeName;break;case Ju:return e&&e.name?"Function calls are not supported in decorators but '"+e.name+"' was called":"Function calls are not supported in decorators";case tp:if(e&&e.name)return"Reference to a local (non-exported) symbols are not supported in decorators but '"+e.name+"' was referenced";break;case ep:return"Function expressions are not supported in decorators"}return t}(t.message,t.context)+(t.symbol?" in '"+t.symbol.name+"'":""),position:t.position,next:t.next?op(t.next,e):e?{message:e}:void 0}}function ap(t,e){if(Ku(t)){var n=t.position;return ju(op({message:"Error during template compile of '"+e.name+"'",position:n,next:{message:t.message,next:t.chain,context:t.context,symbol:t.symbol}},t.advise||function(t,e){switch(t){case $u:if(e&&e.className)return"Consider exporting '"+e.className+"'";break;case Qu:return"Consider simplifying to avoid destructuring";case tp:if(e&&e.name)return"Consider exporting '"+e.name+"'";break;case ep:return"Consider changing the function expression into an exported function"}}(t.message,t.context)))}return t}var sp=function(){function t(t,e){this.host=t,this.staticSymbolCache=e,this.summaryCache=new Map,this.loadedFilePaths=new Map,this.importAs=new Map,this.knownFileNameToModuleNames=new Map}return t.prototype.isLibraryFile=function(t){return!this.host.isSourceFile(Po(t))},t.prototype.toSummaryFileName=function(t,e){return this.host.toSummaryFileName(t,e)},t.prototype.fromSummaryFileName=function(t,e){return this.host.fromSummaryFileName(t,e)},t.prototype.resolveSummary=function(t){var e=t.members.length?this.staticSymbolCache.get(t.filePath,t.name):t,n=this.summaryCache.get(e);return n||(this._loadSummaryFile(t.filePath),n=this.summaryCache.get(t)),e===t&&n||null},t.prototype.getSymbolsOf=function(t){return this._loadSummaryFile(t)?Array.from(this.summaryCache.keys()).filter(function(e){return e.filePath===t}):null},t.prototype.getImportAs=function(t){return t.assertNoMembers(),this.importAs.get(t)},t.prototype.getKnownModuleName=function(t){return this.knownFileNameToModuleNames.get(t)||null},t.prototype.addSummary=function(t){this.summaryCache.set(t.symbol,t)},t.prototype._loadSummaryFile=function(t){var e=this,n=this.loadedFilePaths.get(t);if(null!=n)return n;var r,i,o,a=null;if(this.isLibraryFile(t)){var s=Mo(t);try{a=this.host.loadSummary(s)}catch(t){throw console.error("Error loading summary file "+s),t}}if(n=null!=a,this.loadedFilePaths.set(t,n),a){var c=(r=this.staticSymbolCache,i=t,o=a,new Cu(r,this).deserialize(i,o)),l=c.moduleName,u=c.summaries,p=c.importAs;u.forEach(function(t){return e.summaryCache.set(t.symbol,t)}),l&&this.knownFileNameToModuleNames.set(t,l),p.forEach(function(t){e.importAs.set(t.symbol,t.importAs)})}return n},t}();function cp(t){return{resolve:function(e,n){var r=t.resourceNameToFileName(n,e);if(!r)throw z("Couldn't resolve resource "+n+" from "+e);return r}}}var lp=function(){return function(){}}(),up=function(){function t(){this._summaries=new Map}return t.prototype.isLibraryFile=function(){return!1},t.prototype.toSummaryFileName=function(t){return t},t.prototype.fromSummaryFileName=function(t){return t},t.prototype.resolveSummary=function(t){return this._summaries.get(t)||null},t.prototype.getSymbolsOf=function(){return[]},t.prototype.getImportAs=function(t){return t},t.prototype.getKnownModuleName=function(t){return null},t.prototype.addSummary=function(t){this._summaries.set(t.symbol,t)},t}();function pp(t,e,n,r,i){for(var o=r.createChildWihtLocalVars(),a=0;a<t.length;a++)o.vars.set(t[a],e[a]);var s=i.visitAllStatements(n,o);return s?s.value:null}var hp=function(){function t(t,e,n,r){this.parent=t,this.instance=e,this.className=n,this.vars=r,this.exports=[]}return t.prototype.createChildWihtLocalVars=function(){return new t(this,this.instance,this.className,new Map)},t}(),dp=function(){return function(t){this.value=t}}();var fp=function(){function t(t){this.reflector=t}return t.prototype.debugAst=function(t){return Qs(t)},t.prototype.visitDeclareVarStmt=function(t,e){return e.vars.set(t.name,t.value.visitExpression(this,e)),t.hasModifier(Ua.Exported)&&e.exports.push(t.name),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 fa.Super:return e.instance.__proto__;case fa.This:return e.instance;case fa.CatchError:n=gp;break;case fa.CatchStack:n=yp;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),i=t.value.visitExpression(this,e);return n[r]=i,i},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),i=this.visitAllExpressions(t.args,e);if(null!=t.builtin)switch(t.builtin){case ba.ConcatArray:n=r.concat.apply(r,i);break;case ba.SubscribeObservable:n=r.subscribe({next:i[0]});break;case ba.Bind:n=r.bind.apply(r,i);break;default:throw new Error("Unknown builtin method "+t.builtin)}else n=r[t.name].apply(r,i);return n},t.prototype.visitInvokeFunctionExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.fn;return r instanceof ma&&r.builtin===fa.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 dp(t.value.visitExpression(this,e))},t.prototype.visitDeclareClassStmt=function(t,e){var n=function(t,e,n){var r={};t.getters.forEach(function(i){r[i.name]={configurable:!1,get:function(){var r=new hp(e,this,t.name,e.vars);return pp([],[],i.body,r,n)}}}),t.methods.forEach(function(i){var o=i.params.map(function(t){return t.name});r[i.name]={writable:!1,configurable:!1,value:function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];var s=new hp(e,this,t.name,e.vars);return pp(o,r,i.body,s,n)}}});var i=t.constructorMethod.params.map(function(t){return t.name}),o=function(){for(var r=this,o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=new hp(e,this,t.name,e.vars);t.fields.forEach(function(t){r[t.name]=void 0}),pp(i,o,t.constructorMethod.body,s,n)},a=t.parent?t.parent.visitExpression(n,e):Object;return o.prototype=Object.create(a.prototype,r),o}(t,e,this);return e.vars.set(t.name,n),t.hasModifier(Ua.Exported)&&e.exports.push(t.name),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(gp,r),n.vars.set(yp,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 this.reflector.resolveExternalReference(t.value)},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.visitAssertNotNullExpr=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 mp(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,mp(n,t.statements,e,this)),t.hasModifier(Ua.Exported)&&e.exports.push(t.name),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var n=this,r=function(){return t.lhs.visitExpression(n,e)},i=function(){return t.rhs.visitExpression(n,e)};switch(t.operator){case ua.Equals:return r()==i();case ua.Identical:return r()===i();case ua.NotEquals:return r()!=i();case ua.NotIdentical:return r()!==i();case ua.And:return r()&&i();case ua.Or:return r()||i();case ua.Plus:return r()+i();case ua.Minus:return r()-i();case ua.Divide:return r()/i();case ua.Multiply:return r()*i();case ua.Modulo:return r()%i();case ua.Lower:return r()<i();case ua.LowerEquals:return r()<=i();case ua.Bigger:return r()>i();case ua.BiggerEquals:return r()>=i();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 dp)return r}return null},t}();function mp(t,e,n,r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return pp(t,i,e,n,r)}}var gp="error",yp="stack";function vp(t,e,n,r){var i=new bp(n),o=Ys.createRoot();return i.visitAllStatements(e,o),i.createReturnStmt(o),function(t,e,n,r){var i=e.toSource()+"\n//# sourceURL="+t,o=[],a=[];for(var s in n)o.push(s),a.push(n[s]);if(r){var c=(new(Function.bind.apply(Function,[void 0].concat(o.concat("return null;"))))).toString(),l=c.slice(0,c.indexOf("return null;")).split("\n").length-1;i+="\n"+e.toSourceMapGenerator(t,l).toJsComment()}return(new(Function.bind.apply(Function,[void 0].concat(o.concat(i))))).apply(void 0,a)}(t,o,i.getArgs(),r)}var bp=function(t){function e(e){var n=t.call(this)||this;return n.reflector=e,n._evalArgNames=[],n._evalArgValues=[],n._evalExportedVars=[],n}return n(e,t),e.prototype.createReturnStmt=function(t){new qa(new ja(this._evalExportedVars.map(function(t){return new La(t,ls(t),!1)}))).visitStatement(this,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=this.reflector.resolveExternalReference(t.value),r=this._evalArgValues.indexOf(n);if(-1===r){r=this._evalArgValues.length,this._evalArgValues.push(n);var i=St({reference:n})||"val";this._evalArgNames.push("jit_"+i+"_"+r)}return e.print(t,this._evalArgNames[r]),null},e.prototype.visitDeclareVarStmt=function(e,n){return e.hasModifier(Ua.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareVarStmt.call(this,e,n)},e.prototype.visitDeclareFunctionStmt=function(e,n){return e.hasModifier(Ua.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareFunctionStmt.call(this,e,n)},e.prototype.visitDeclareClassStmt=function(e,n){return e.hasModifier(Ua.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareClassStmt.call(this,e,n)},e}(function(t){function e(){return t.call(this,!1)||this}return n(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===fa.This)n.print(e,"self");else{if(e.builtin===fa.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 ma&&r.builtin===fa.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 ("+Gs.name+") {"),e.incIndent();var n=[Ws.set(Gs.prop("stack")).toDeclStmt(null,[Ua.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 ba.ConcatArray:e="concat";break;case ba.SubscribeObservable:e="subscribe";break;case ba.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e}(Ks)),_p=function(){function t(t,e,n,r,i,o,a,s,c,l){this._metadataResolver=t,this._templateParser=e,this._styleCompiler=n,this._viewCompiler=r,this._ngModuleCompiler=i,this._summaryResolver=o,this._reflector=a,this._compilerConfig=s,this._console=c,this.getExtraNgModuleProviders=l,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._sharedStylesheetCount=0,this._addedAotSummaries=new Set}return t.prototype.compileModuleSync=function(t){return B(this._compileModuleAndComponents(t,!0))},t.prototype.compileModuleAsync=function(t){return Promise.resolve(this._compileModuleAndComponents(t,!1))},t.prototype.compileModuleAndAllComponentsSync=function(t){return B(this._compileModuleAndAllComponents(t,!0))},t.prototype.compileModuleAndAllComponentsAsync=function(t){return Promise.resolve(this._compileModuleAndAllComponents(t,!1))},t.prototype.getComponentFactory=function(t){return this._metadataResolver.getDirectiveSummary(t).componentFactory},t.prototype.loadAotSummaries=function(t){this.clearCache(),this._addAotSummaries(t)},t.prototype._addAotSummaries=function(t){if(!this._addedAotSummaries.has(t)){this._addedAotSummaries.add(t);for(var e=t(),n=0;n<e.length;n++){var r=e[n];if("function"==typeof r)this._addAotSummaries(r);else{var i=r;this._summaryResolver.addSummary({symbol:i.type.reference,metadata:null,type:i})}}}},t.prototype.hasAotSummary=function(t){return!!this._summaryResolver.resolveSummary(t)},t.prototype._filterJitIdentifiers=function(t){var e=this;return t.map(function(t){return t.reference}).filter(function(t){return!e.hasAotSummary(t)})},t.prototype._compileModuleAndComponents=function(t,e){var n=this;return U(this._loadModules(t,e),function(){return n._compileComponents(t,null),n._compileModule(t)})},t.prototype._compileModuleAndAllComponents=function(t,e){var n=this;return U(this._loadModules(t,e),function(){var e=[];return n._compileComponents(t,e),{ngModuleFactory:n._compileModule(t),componentFactories:e}})},t.prototype._loadModules=function(t,e){var n=this,r=[],i=this._metadataResolver.getNgModuleMetadata(t);return this._filterJitIdentifiers(i.transitiveModule.modules).forEach(function(t){var i=n._metadataResolver.getNgModuleMetadata(t);n._filterJitIdentifiers(i.declaredDirectives).forEach(function(t){var o=n._metadataResolver.loadDirectiveMetadata(i.type.reference,t,e);o&&r.push(o)}),n._filterJitIdentifiers(i.declaredPipes).forEach(function(t){return n._metadataResolver.getOrLoadPipeMetadata(t)})}),H(r)},t.prototype._compileModule=function(t){var e=this._compiledNgModuleCache.get(t);if(!e){var n=this._metadataResolver.getNgModuleMetadata(t),r=this.getExtraNgModuleProviders(n.type.reference),i=xp(),o=this._ngModuleCompiler.compile(i,n,r);e=this._interpretOrJit(qt(n),i.statements)[o.ngModuleFactoryVar],this._compiledNgModuleCache.set(n.type.reference,e)}return e},t.prototype._compileComponents=function(t,e){var n=this,r=this._metadataResolver.getNgModuleMetadata(t),i=new Map,o=new Set,a=this._filterJitIdentifiers(r.transitiveModule.modules);a.forEach(function(t){var r=n._metadataResolver.getNgModuleMetadata(t);n._filterJitIdentifiers(r.declaredDirectives).forEach(function(t){i.set(t,r);var a=n._metadataResolver.getDirectiveMetadata(t);if(a.isComponent&&(o.add(n._createCompiledTemplate(a,r)),e)){var s=n._createCompiledHostTemplate(a.type.reference,r);o.add(s),e.push(a.componentFactory)}})}),a.forEach(function(t){var e=n._metadataResolver.getNgModuleMetadata(t);n._filterJitIdentifiers(e.declaredDirectives).forEach(function(t){var e=n._metadataResolver.getDirectiveMetadata(t);e.isComponent&&e.entryComponents.forEach(function(t){var e=i.get(t.componentType);o.add(n._createCompiledHostTemplate(t.componentType,e))})}),e.entryComponents.forEach(function(t){if(!n.hasAotSummary(t.componentType.reference)){var e=i.get(t.componentType);o.add(n._createCompiledHostTemplate(t.componentType,e))}})}),o.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,e){if(!e)throw new Error("Component "+$(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 r=this._metadataResolver.getDirectiveMetadata(t);Cp(r);var i=this._metadataResolver.getHostComponentMetadata(r,r.componentFactory.viewDefFactory);n=new wp(!0,r.type,i,e,[r.type]),this._compiledHostTemplateCache.set(t,n)}return n},t.prototype._createCompiledTemplate=function(t,e){var n=this._compiledTemplateCache.get(t.type.reference);return n||(Cp(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,i=xp(),o=this._styleCompiler.compileComponent(i,n);n.template.externalStylesheets.forEach(function(t){var i=e._styleCompiler.compileStyles(xp(),n,t);r.set(t.moduleUrl,i)}),this._resolveStylesCompileResult(o,r);t.ngModule.transitiveModule.pipes.map(function(t){return e._metadataResolver.getPipeSummary(t.reference)});var a=this._parseTemplate(n,t.ngModule,t.directives),s=a.template,c=a.pipes,l=this._viewCompiler.compileComponent(i,n,s,ls(o.stylesVar),c),u=this._interpretOrJit(Yt(t.ngModule.type,t.compMeta),i.statements),p=u[l.viewClassVar],h=u[l.rendererTypeVar];t.compiled(p,h)}},t.prototype._parseTemplate=function(t,e,n){var r=this,i=t.template.preserveWhitespaces,o=n.map(function(t){return r._metadataResolver.getDirectiveSummary(t.reference)}),a=e.transitiveModule.pipes.map(function(t){return r._metadataResolver.getPipeSummary(t.reference)});return this._templateParser.parse(t,t.template.htmlAst,o,a,e.schemas,Gt(e.type,t,t.template),i)},t.prototype._resolveStylesCompileResult=function(t,e){var n=this;t.dependencies.forEach(function(t,r){var i=e.get(t.moduleUrl),o=n._resolveAndEvalStylesCompileResult(i,e);t.setValue(o)})},t.prototype._resolveAndEvalStylesCompileResult=function(t,e){return this._resolveStylesCompileResult(t,e),this._interpretOrJit(Wt(t.meta,this._sharedStylesheetCount++),t.outputCtx.statements)[t.stylesVar]},t.prototype._interpretOrJit=function(t,e){return this._compilerConfig.useJit?vp(t,e,this._reflector,this._compilerConfig.jitDevMode):function(t,e){var n=new hp(null,null,null,new Map);new fp(e).visitAllStatements(t,n);var r={};return n.exports.forEach(function(t){r[t]=n.vars.get(t)}),r}(e,this._reflector)},t}(),wp=function(){function t(t,e,n,r,i){this.isHost=t,this.compType=e,this.compMeta=n,this.ngModule=r,this.directives=i,this._viewClass=null,this.isCompiled=!1}return t.prototype.compiled=function(t,e){for(var n in this._viewClass=t,this.compMeta.componentViewType.setDelegate(t),e)this.compMeta.rendererType[n]=e[n];this.isCompiled=!0},t}();function Cp(t){if(!t.isComponent)throw new Error("Could not compile '"+St(t.type)+"' because it is not a component.")}function xp(){return{statements:[],genFilePath:"",importExpr:function(t){return us({name:St(t),moduleName:null,runtime:t})}}}var Ep=function(){return function(){}}();var Sp=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=function(t,e){var n=Pp(encodeURI(e)),r=Pp(t);{if(null!=n[Op.Scheme])return Ap(n);n[Op.Scheme]=r[Op.Scheme]}for(var i=Op.Scheme;i<=Op.Port;i++)null==n[i]&&(n[i]=r[i]);if("/"==n[Op.Path][0])return Ap(n);var o=r[Op.Path];null==o&&(o="/");var a=o.lastIndexOf("/");return o=o.substring(0,a+1)+n[Op.Path],n[Op.Path]=o,Ap(n)}(t,n));var r=Pp(n),i=this._packagePrefix;if(null!=i&&null!=r&&"package"==r[Op.Scheme]){var o=r[Op.Path];return(i=i.replace(/\/+$/,""))+"/"+(o=o.replace(/^\/+/,""))}return n},t}();var kp=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),Op={Scheme:1,UserInfo:2,Domain:3,Port:4,Path:5,QueryData:6,Fragment:7};function Pp(t){return t.match(kp)}function Ap(t){var e,n,r,i,o,a,s,c,l=t[Op.Path];return l=null==l?"":function(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",n="/"===t[t.length-1]?"/":"",r=t.split("/"),i=[],o=0,a=0;a<r.length;a++){var s=r[a];switch(s){case"":case".":break;case"..":i.length>0?i.pop():o++;break;default:i.push(s)}}if(""==e){for(;o-- >0;)i.unshift("..");0===i.length&&i.push(".")}return e+i.join("/")+n}(l),t[Op.Path]=l,e=t[Op.Scheme],n=t[Op.UserInfo],r=t[Op.Domain],i=t[Op.Port],o=l,a=t[Op.QueryData],s=t[Op.Fragment],c=[],null!=e&&c.push(e+":"),null!=r&&(c.push("//"),null!=n&&c.push(n+"@"),c.push(r),null!=i&&c.push(":"+i)),null!=o&&c.push(o),null!=a&&c.push("?"+a),null!=s&&c.push("#"+s),c.join("")}Op[Op.Scheme]="Scheme",Op[Op.UserInfo]="UserInfo",Op[Op.Domain]="Domain",Op[Op.Port]="Port",Op[Op.Path]="Path",Op[Op.QueryData]="QueryData",Op[Op.Fragment]="Fragment";var Tp=function(){function t(){}return t.prototype.get=function(t){return""},t}(),Mp=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=Tu(t,this.host,this.staticSymbolResolver,this.metadataResolver),r=n.files,i=n.ngModules;return Promise.all(i.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 i=r.template.template,o=ae.fromArray(r.template.interpolation);t.push.apply(t,e.messageBundle.updateFromTemplate(i,n.fileName,o))})}),t.length)throw new Error(t.map(function(t){return t.toString()}).join("\n"));return e.messageBundle})},t.create=function(e,n){var r=new bo,i=cp(e),o=new wt,a=new sp(e,o),s=new gu(e,o,a),c=new Wu(a,s),l=new vt({defaultEncapsulation:h.Emulated,useJit:!1}),u=new De({get:function(t){return e.loadResource(t)}},i,r,l),p=new uc,d=new $o(l,r,new Ls(c),new je(c),new tc(c),a,p,u,console,o,c),f=new lu(r,[],{},n);return{extractor:new t(e,s,f,d),staticReflector:c}},t}();t.core=I,t.CompilerConfig=vt,t.preserveWhitespacesDefault=bt,t.isLoweredSymbol=No,t.createLoweredSymbol=function(t){return"ɵ"+t},t.Identifiers=jo,t.JitCompiler=_p,t.DirectiveResolver=je,t.PipeResolver=tc,t.NgModuleResolver=Ls,t.DEFAULT_INTERPOLATION_CONFIG=se,t.InterpolationConfig=ae,t.NgModuleCompiler=Ns,t.AssertNotNull=Pa,t.BinaryOperator=ua,t.BinaryOperatorExpr=Ia,t.BuiltinMethod=ba,t.BuiltinVar=fa,t.CastExpr=Aa,t.ClassStmt=Xa,t.CommaExpr=Fa,t.CommentStmt=Za,t.ConditionalExpr=ka,t.DeclareFunctionStmt=Ga,t.DeclareVarStmt=za,t.ExpressionStatement=Wa,t.ExternalExpr=Ea,t.ExternalReference=Sa,t.FunctionExpr=Ma,t.IfStmt=Qa,t.InstantiateExpr=Ca,t.InvokeFunctionExpr=wa,t.InvokeMethodExpr=_a,t.LiteralArrayExpr=Na,t.LiteralExpr=xa,t.LiteralMapExpr=ja,t.NotExpr=Oa,t.ReadKeyExpr=Da,t.ReadPropExpr=Ra,t.ReadVarExpr=ma,t.ReturnStatement=qa,t.ThrowStmt=ts,t.TryCatchStmt=Ja,t.WriteKeyExpr=ya,t.WritePropExpr=va,t.WriteVarExpr=ga,t.StmtModifier=Ua,t.Statement=Ha,t.collectExternalReferences=function(t){var e=new os;return e.visitAllStatements(t,null),e.externalReferences},t.EmitterVisitorContext=Ys,t.ViewCompiler=Xl,t.getParseErrors=function(t){return t[W]||[]},t.isSyntaxError=function(t){return t[G]},t.syntaxError=z,t.Version=Z,t.VERSION=J,t.TextAst=tt,t.BoundTextAst=et,t.AttrAst=nt,t.BoundElementPropertyAst=rt,t.BoundEventAst=it,t.ReferenceAst=ot,t.VariableAst=at,t.ElementAst=st,t.EmbeddedTemplateAst=ct,t.BoundDirectivePropertyAst=lt,t.DirectiveAst=ut,t.ProviderAst=pt,t.ProviderAstType=ht,t.NgContentAst=dt,t.PropertyBindingType=ft,t.NullTemplateVisitor=mt,t.RecursiveTemplateAstVisitor=gt,t.templateVisitAll=yt,t.identifierName=St,t.identifierModuleUrl=kt,t.viewClassName=Ot,t.rendererTypeName=Pt,t.hostViewClassName=At,t.componentFactoryName=Tt,t.CompileSummaryKind=Mt,t.tokenName=It,t.tokenReference=Rt,t.CompileStylesheetMetadata=Dt,t.CompileTemplateMetadata=Nt,t.CompileDirectiveMetadata=Lt,t.CompilePipeMetadata=jt,t.CompileNgModuleMetadata=Ft,t.TransitiveCompileNgModuleMetadata=Vt,t.ProviderMeta=Ut,t.flatten=Ht,t.templateSourceUrl=Gt,t.sharedStylesheetJitUrl=Wt,t.ngModuleJitUrl=qt,t.templateJitUrl=Yt,t.createAotUrlResolver=cp,t.createAotCompiler=function(t,e,n){var r=e.translations||"",i=cp(t),o=new wt,a=new sp(t,o),s=new gu(t,o,a),c=new Wu(a,s,[],[],n),l=new Co(new bo,r,e.i18nFormat,e.missingTranslation,console),u=new vt({defaultEncapsulation:h.Emulated,useJit:!1,enableLegacyTemplate:!0===e.enableLegacyTemplate,missingTranslation:e.missingTranslation,preserveWhitespaces:e.preserveWhitespaces,strictInjectionParameters:e.strictInjectionParameters}),p=new De({get:function(e){return t.loadResource(e)}},i,l,u),d=new mr(new kn),f=new uc,m=new ml(u,c,d,f,l,console,[]),g=new $o(u,l,new Ls(c),new je(c),new tc(c),a,f,p,console,o,c,n),y=new Xl(c),v=new zl(e,c);return{compiler:new Su(u,e,t,c,g,m,new Bc(i),y,v,new Ns(c),new Zs,a,s),reflector:c}},t.AotCompiler=Su,t.analyzeNgModules=Au,t.analyzeAndValidateNgModules=Tu,t.analyzeFile=Iu,t.mergeAnalyzedFiles=Ru,t.GeneratedFile=pu,t.toTypeScript=function(t,e){if(void 0===e&&(e=""),!t.stmts)throw new Error("Illegal state: No stmts present on GeneratedFile "+t.genFileUrl);return(new Zs).emitStatements(t.genFileUrl,t.stmts,e)},t.formattedError=ju,t.isFormattedError=function(t){return!!t[Nu]},t.StaticReflector=Wu,t.StaticSymbol=_t,t.StaticSymbolCache=wt,t.ResolvedStaticSymbol=mu,t.StaticSymbolResolver=gu,t.unescapeIdentifier=yu,t.unwrapResolvedMetadata=vu,t.AotSummaryResolver=sp,t.AstPath=Kt,t.SummaryResolver=lp,t.JitSummaryResolver=up,t.CompileReflector=Ep,t.createUrlResolverWithoutPackagePrefix=function(){return new Sp},t.createOfflineCompileUrlResolver=function(){return new Sp(".")},t.UrlResolver=Sp,t.getUrlScheme=function(t){var e=Pp(t);return e&&e[Op.Scheme]||""},t.ResourceLoader=Tp,t.ElementSchemaRegistry=rc,t.Extractor=Mp,t.I18NHtmlParser=Co,t.MessageBundle=lu,t.Serializer=Ui,t.Xliff=Ji,t.Xliff2=ro,t.Xmb=co,t.Xtb=go,t.DirectiveNormalizer=De,t.ParserError=jn,t.ParseSpan=Fn,t.AST=Vn,t.Quote=Bn,t.EmptyExpr=Un,t.ImplicitReceiver=Hn,t.Chain=zn,t.Conditional=Gn,t.PropertyRead=Wn,t.PropertyWrite=qn,t.SafePropertyRead=Yn,t.KeyedRead=Kn,t.KeyedWrite=$n,t.BindingPipe=Xn,t.LiteralPrimitive=Qn,t.LiteralArray=Zn,t.LiteralMap=Jn,t.Interpolation=tr,t.Binary=er,t.PrefixNot=nr,t.NonNullAssert=rr,t.MethodCall=ir,t.SafeMethodCall=or,t.FunctionCall=ar,t.ASTWithSource=sr,t.TemplateBinding=cr,t.NullAstVisitor=lr,t.RecursiveAstVisitor=ur,t.AstTransformer=pr,t.visitAstChildren=function(t,e,n){function r(t){e.visit&&e.visit(t,n)||t.visit(e,n)}function i(t){t.forEach(r)}t.visit({visitBinary:function(t){r(t.left),r(t.right)},visitChain:function(t){i(t.expressions)},visitConditional:function(t){r(t.condition),r(t.trueExp),r(t.falseExp)},visitFunctionCall:function(t){t.target&&r(t.target),i(t.args)},visitImplicitReceiver:function(t){},visitInterpolation:function(t){i(t.expressions)},visitKeyedRead:function(t){r(t.obj),r(t.key)},visitKeyedWrite:function(t){r(t.obj),r(t.key),r(t.obj)},visitLiteralArray:function(t){i(t.expressions)},visitLiteralMap:function(t){},visitLiteralPrimitive:function(t){},visitMethodCall:function(t){r(t.receiver),i(t.args)},visitPipe:function(t){r(t.exp),i(t.args)},visitPrefixNot:function(t){r(t.expression)},visitNonNullAssert:function(t){r(t.expression)},visitPropertyRead:function(t){r(t.receiver)},visitPropertyWrite:function(t){r(t.receiver),r(t.value)},visitQuote:function(t){},visitSafeMethodCall:function(t){r(t.receiver),i(t.args)},visitSafePropertyRead:function(t){r(t.receiver)}})},t.TokenType=En,t.Lexer=kn,t.Token=On,t.EOF=Tn,t.isIdentifier=Rn,t.isQuote=Nn,t.SplitInterpolation=hr,t.TemplateBindingParseResult=dr,t.Parser=mr,t._ParseAST=gr,t.ERROR_COMPONENT_TYPE=Ko,t.CompileMetadataResolver=$o,t.Text=$t,t.Expansion=Xt,t.ExpansionCase=Qt,t.Attribute=Zt,t.Element=Jt,t.Comment=te,t.visitAll=ee,t.RecursiveVisitor=ne,t.findNode=function(t,e){var r=[];return ee(new(function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return n(i,t),i.prototype.visit=function(t,n){var i=function t(e){var n=e.sourceSpan.start.offset,r=e.sourceSpan.end.offset;return e instanceof Jt&&(e.endSourceSpan?r=e.endSourceSpan.end.offset:e.children&&e.children.length&&(r=t(e.children[e.children.length-1]).end)),{start:n,end:r}}(t);if(!(i.start<=e&&e<i.end))return!0;r.push(t)},i}(ne)),t),new Kt(r,e)},t.ParseTreeResult=Br,t.TreeError=Vr,t.HtmlParser=bo,t.HtmlTagDefinition=vi,t.getHtmlTagDefinition=wi,t.TagContentType=de,t.splitNsName=fe,t.isNgContainer=me,t.isNgContent=ge,t.isNgTemplate=ye,t.getNsPrefix=ve,t.mergeNsAndName=be,t.NAMED_ENTITIES=_e,t.NGSP_UNICODE=we,t.debugOutputAstAsTypeScript=Qs,t.TypeScriptEmitter=Zs,t.ParseLocation=vr,t.ParseSourceFile=br,t.ParseSourceSpan=_r,t.ParseErrorLevel=wr,t.ParseError=Cr,t.typeSourceSpan=xr,t.DomElementSchemaRegistry=uc,t.CssSelector=Go,t.SelectorMatcher=Wo,t.SelectorListContext=qo,t.SelectorContext=Yo,t.StylesCompileDependency=Fc,t.CompiledStylesheet=Vc,t.StyleCompiler=Bc,t.TemplateParseError=dl,t.TemplateParseResult=fl,t.TemplateParser=ml,t.splitClasses=bl,t.createElementCssSelector=wl,t.removeSummaryDuplicates=Sl,Object.defineProperty(t,"__esModule",{value:!0})}("object"==typeof n&&void 0!==e?n:(r.ng=r.ng||{},r.ng.compiler={}))},{}],58:[function(t,e,n){(function(r){var i,o;i=this,o=function(t,e,n,i,o){"use strict";var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function s(t,e){function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var c=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},l=function(){function t(t){this._desc=t,this.ngMetadataName="InjectionToken"}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),u="__annotations__",p="__paramaters__",h="__prop__metadata__";function d(t,e,n,r){var i=f(e);function o(t){if(this instanceof o)return i.call(this,t),this;var e=new o(t),n=function(t){return(t.hasOwnProperty(u)?t[u]:Object.defineProperty(t,u,{value:[]})[u]).push(e),t};return r&&r(n),n}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o}function f(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(t){var r=t.apply(void 0,e);for(var i in r)this[i]=r[i]}}}function m(t,e,n){var r=f(e);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof i)return r.apply(this,t),this;var n,o=new((n=i).bind.apply(n,[void 0].concat(t)));return a.annotation=o,a;function a(t,e,n){for(var r=t.hasOwnProperty(p)?t[p]:Object.defineProperty(t,p,{value:[]})[p];r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(o),t}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i}function g(t,e,n){var r=f(e);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof i)return r.apply(this,t),this;var n,o=new((n=i).bind.apply(n,[void 0].concat(t)));return function(t,e){var n=t.constructor,r=n.hasOwnProperty(h)?n[h]:Object.defineProperty(n,h,{value:{}})[h];r[e]=r.hasOwnProperty(e)&&r[e]||[],r[e].unshift(o)}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i}var y=new l("AnalyzeForEntryComponents"),v=m("Attribute",function(t){return{attributeName:t}}),b=function(){return function(){}}(),_=g("ContentChildren",function(t,e){return void 0===e&&(e={}),c({selector:t,first:!1,isViewQuery:!1,descendants:!1},e)},b),w=g("ContentChild",function(t,e){return void 0===e&&(e={}),c({selector:t,first:!0,isViewQuery:!1,descendants:!0},e)},b),C=g("ViewChildren",function(t,e){return void 0===e&&(e={}),c({selector:t,first:!1,isViewQuery:!0,descendants:!0},e)},b),x=g("ViewChild",function(t,e){return c({selector:t,first:!0,isViewQuery:!0,descendants:!0},e)},b),E={OnPush:0,Default:1};E[E.OnPush]="OnPush",E[E.Default]="Default";var S={CheckOnce:0,Checked:1,CheckAlways:2,Detached:3,Errored:4,Destroyed:5};S[S.CheckOnce]="CheckOnce",S[S.Checked]="Checked",S[S.CheckAlways]="CheckAlways",S[S.Detached]="Detached",S[S.Errored]="Errored",S[S.Destroyed]="Destroyed";var k=d("Directive",function(t){return void 0===t&&(t={}),t}),O=d("Component",function(t){return void 0===t&&(t={}),c({changeDetection:E.Default},t)},k),P=d("Pipe",function(t){return c({pure:!0},t)}),A=g("Input",function(t){return{bindingPropertyName:t}}),T=g("Output",function(t){return{bindingPropertyName:t}}),M=g("HostBinding",function(t){return{hostPropertyName:t}}),I=g("HostListener",function(t,e){return{eventName:t,args:e}}),R=d("NgModule",function(t){return t}),D={Emulated:0,Native:1,None:2};D[D.Emulated]="Emulated",D[D.Native]="Native",D[D.None]="None";var N=function(){return function(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}(),L=new N("5.2.2"),j=m("Inject",function(t){return{token:t}}),F=m("Optional"),V=d("Injectable"),B=m("Self"),U=m("SkipSelf"),H=m("Host"),z="undefined"!=typeof window&&window,G="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,W=z||void 0!==r&&r||G,q=null;function Y(){if(!q){var t=W.Symbol;if(t&&t.iterator)q=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&&(q=r)}}return q}function K(t){Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function $(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function X(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(X).join(", ")+"]";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 Q(t){return t.__forward_ref__=Q,t.toString=function(){return X(this())},t}function Z(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===Q?t():t}var J="__source",tt=new Object,et=tt,nt=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=tt),e===tt)throw new Error("NullInjectorError: No provider for "+X(t)+"!");return e},t}(),rt=function(){function t(){}return t.create=function(t,e){return Array.isArray(t)?new ft(t,e):new ft(t.providers,t.parent,t.name||null)},t.THROW_IF_NOT_FOUND=tt,t.NULL=new nt,t}(),it=function(t){return t},ot=[],at=it,st=function(){return Array.prototype.slice.call(arguments)},ct={},lt=function(t){for(var e in t)if(t[e]===ct)return e;throw Error("!prop")}({provide:String,useValue:ct}),ut="ngTempTokenPath",pt=rt.NULL,ht=/\n/gm,dt="ɵ",ft=function(){function t(t,e,n){void 0===e&&(e=pt),void 0===n&&(n=null),this.parent=e,this.source=n;var r=this._records=new Map;r.set(rt,{token:rt,fn:it,deps:ot,value:this,useNew:!1}),function t(e,n){if(n)if((n=Z(n))instanceof Array)for(var r=0;r<n.length;r++)t(e,n[r]);else{if("function"==typeof n)throw vt("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw vt("Unexpected provider",n);var i=Z(n.provide),o=function(t){var e=function(t){var e=ot,n=t.deps;if(n&&n.length){e=[];for(var r=0;r<n.length;r++){var i=6,o=Z(n[r]);if(o instanceof Array)for(var a=0,s=o;a<s.length;a++){var c=s[a];c instanceof F||c==F?i|=1:c instanceof U||c==U?i&=-3:c instanceof B||c==B?i&=-5:o=c instanceof j?c.token:Z(c)}e.push({token:o,options:i})}}else if(t.useExisting){var o=Z(t.useExisting);e=[{token:o,options:6}]}else if(!(n||lt in t))throw vt("'deps' required",t);return e}(t),n=it,r=ot,i=!1,o=Z(t.provide);if(lt in t)r=t.useValue;else if(t.useFactory)n=t.useFactory;else if(t.useExisting);else if(t.useClass)i=!0,n=Z(t.useClass);else{if("function"!=typeof o)throw vt("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",t);i=!0,n=o}return{deps:e,fn:n,useNew:i,value:r}}(n);if(!0===n.multi){var a=e.get(i);if(a){if(a.fn!==st)throw mt(i)}else e.set(i,a={token:n.provide,deps:[],useNew:!1,fn:st,value:ot});i=n,a.deps.push({token:i,options:6})}var s=e.get(i);if(s&&s.fn==st)throw mt(i);e.set(i,o)}}(r,t)}return t.prototype.get=function(t,e){var n=this._records.get(t);try{return gt(t,n,this._records,this.parent,e)}catch(e){var r=e[ut];throw t[J]&&r.unshift(t[J]),e.message=yt("\n"+e.message,r,this.source),e.ngTokenPath=r,e[ut]=null,e}},t.prototype.toString=function(){var t=[];return this._records.forEach(function(e,n){return t.push(X(n))}),"StaticInjector["+t.join(", ")+"]"},t}();function mt(t){return vt("Cannot mix multi providers and regular providers",t)}function gt(t,e,n,r,i){try{return function(t,e,n,r,i){var o,a;if(e){if((o=e.value)==at)throw Error(dt+"Circular dependency");if(o===ot){e.value=at;var s=void 0,c=e.useNew,l=e.fn,u=e.deps,p=ot;if(u.length){p=[];for(var h=0;h<u.length;h++){var d=u[h],f=d.options,m=2&f?n.get(d.token):void 0;p.push(gt(d.token,m,n,m||4&f?r:pt,1&f?null:rt.THROW_IF_NOT_FOUND))}}e.value=o=c?new((a=l).bind.apply(a,[void 0].concat(p))):l.apply(s,p)}}else o=r.get(t,i);return o}(t,e,n,r,i)}catch(n){throw n instanceof Error||(n=new Error(n)),(n[ut]=n[ut]||[]).unshift(t),e&&e.value==at&&(e.value=ot),n}}function yt(t,e,n){void 0===n&&(n=null),t=t&&"\n"===t.charAt(0)&&t.charAt(1)==dt?t.substr(2):t;var r=X(e);if(e instanceof Array)r=e.map(X).join(" -> ");else if("object"==typeof e){var i=[];for(var o in e)if(e.hasOwnProperty(o)){var a=e[o];i.push(o+":"+("string"==typeof a?JSON.stringify(a):X(a)))}r="{"+i.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(ht,"\n  ")}function vt(t,e){return new Error(yt(t,e))}var bt="ngDebugContext",_t="ngOriginalError",wt="ngErrorLogger";function Ct(t){return t[bt]}function xt(t){return t[_t]}function Et(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,e)}var St=function(){function t(){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),n=this._findContext(t),r=t[wt]||Et;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?Ct(t)?Ct(t):this._findContext(xt(t)):null},t.prototype._findOriginalError=function(t){for(var e=xt(t);e&&xt(e);)e=xt(e);return e},t}();function kt(t){return t.length>1?" ("+function(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}(t.slice().reverse()).map(function(t){return X(t.token)}).join(" -> ")+")":""}function Ot(t,e,n,r){var i,o,a,s=[e],c=n(s),l=r?(o=c+" caused by: "+((i=r)instanceof Error?i.message:i),(a=Error(o))[_t]=i,a):Error(c);return l.addKey=Pt,l.keys=s,l.injectors=[t],l.constructResolvingMessage=n,l[_t]=r,l}function Pt(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)}function At(t,e){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];o&&0!=o.length?n.push(o.map(X).join(" ")):n.push("?")}return Error("Cannot resolve all parameters for '"+X(t)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+X(t)+"' is decorated with Injectable.")}var Tt=function(){function t(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!");this.displayName=X(this.token)}return t.get=function(t){return Mt.get(Z(t))},Object.defineProperty(t,"numberOfKeys",{get:function(){return Mt.numberOfKeys},enumerable:!0,configurable:!0}),t}(),Mt=new(function(){function t(){this._allKeys=new Map}return t.prototype.get=function(t){if(t instanceof Tt)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var e=new Tt(t,Tt.numberOfKeys);return this._allKeys.set(t,e),e},Object.defineProperty(t.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),t}()),It=Function;function Rt(t){return"function"==typeof t}var Dt=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,Nt=function(){function t(t){this._reflect=t||W.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(Dt.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,i=r.map(function(t){return t&&t.type}),o=r.map(function(t){return t&&Lt(t.decorators)});return this._zipTypesAndAnnotations(i,o)}var a=t.hasOwnProperty(p)&&t[p],s=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return s||a?this._zipTypesAndAnnotations(s,a):new Array(t.length).fill(void 0)},t.prototype.parameters=function(t){if(!Rt(t))return[];var e=jt(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?Lt(t.decorators):t.hasOwnProperty(u)?t[u]:null},t.prototype.annotations=function(t){if(!Rt(t))return[];var e=jt(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,i={};return Object.keys(r).forEach(function(t){i[t]=Lt(r[t])}),i}return t.hasOwnProperty(h)?t[h]:null},t.prototype.propMetadata=function(t){if(!Rt(t))return{};var e=jt(t),n={};if(e!==Object){var r=this.propMetadata(e);Object.keys(r).forEach(function(t){n[t]=r[t]})}var i=this._ownPropMetadata(t,e);return i&&Object.keys(i).forEach(function(t){var e=[];n.hasOwnProperty(t)&&e.push.apply(e,n[t]),e.push.apply(e,i[t]),n[t]=e}),n},t.prototype.hasLifecycleHook=function(t,e){return t instanceof It&&e in t.prototype},t.prototype.guards=function(t){return{}},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){return new Function("o","args","if (!o."+t+") throw new Error('\""+t+"\" is undefined');\n        return o."+t+".apply(o, args);")},t.prototype.importUri=function(t){return"object"==typeof t&&t.filePath?t.filePath:"./"+X(t)},t.prototype.resourceUri=function(t){return"./"+X(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return r},t.prototype.resolveEnum=function(t,e){return t[e]},t}();function Lt(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 jt(t){var e=Object.getPrototypeOf(t.prototype);return(e?e.constructor:null)||Object}var Ft=new(function(){function t(t){this.reflectionCapabilities=t}return t.prototype.updateCapabilities=function(t){this.reflectionCapabilities=t},t.prototype.factory=function(t){return this.reflectionCapabilities.factory(t)},t.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},t.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},t.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},t.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},t.prototype.getter=function(t){return this.reflectionCapabilities.getter(t)},t.prototype.setter=function(t){return this.reflectionCapabilities.setter(t)},t.prototype.method=function(t){return this.reflectionCapabilities.method(t)},t.prototype.importUri=function(t){return this.reflectionCapabilities.importUri(t)},t.prototype.resourceUri=function(t){return this.reflectionCapabilities.resourceUri(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return this.reflectionCapabilities.resolveIdentifier(t,e,n,r)},t.prototype.resolveEnum=function(t,e){return this.reflectionCapabilities.resolveEnum(t,e)},t}())(new Nt),Vt=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}(),Bt=[],Ut=function(){return function(t,e,n){this.key=t,this.resolvedFactories=e,this.multiProvider=n,this.resolvedFactory=this.resolvedFactories[0]}}(),Ht=function(){return function(t,e){this.factory=t,this.dependencies=e}}();function zt(t){var e,n;if(t.useClass){var r=Z(t.useClass);e=Ft.factory(r),n=qt(r)}else t.useExisting?(e=function(t){return t},n=[Vt.fromKey(Tt.get(t.useExisting))]):t.useFactory?(e=t.useFactory,n=function(t,e){{if(e){var n=e.map(function(t){return[t]});return e.map(function(e){return Yt(t,e,n)})}return qt(t)}}(t.useFactory,t.deps)):(e=function(){return t.useValue},n=Bt);return new Ht(e,n)}function Gt(t){return new Ut(Tt.get(t.provide),[zt(t)],t.multi||!1)}function Wt(t){var e=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e.get(r.key.id);if(i){if(r.multiProvider!==i.multiProvider)throw Error("Cannot mix multi providers and regular providers, got: "+i+" "+r);if(r.multiProvider)for(var o=0;o<r.resolvedFactories.length;o++)i.resolvedFactories.push(r.resolvedFactories[o]);else e.set(r.key.id,r)}else{var a=void 0;a=r.multiProvider?new Ut(r.key,r.resolvedFactories.slice(),r.multiProvider):r,e.set(r.key.id,a)}}return e}(function t(e,n){e.forEach(function(e){if(e instanceof It)n.push({provide:e,useClass:e});else if(e&&"object"==typeof e&&void 0!==e.provide)n.push(e);else{if(!(e instanceof Array))throw Error("Invalid provider - only instances of Provider and Type are allowed, got: "+e);t(e,n)}});return n}(t,[]).map(Gt),new Map);return Array.from(e.values())}function qt(t){var e=Ft.parameters(t);if(!e)return[];if(e.some(function(t){return null==t}))throw At(t,e);return e.map(function(n){return Yt(t,n,e)})}function Yt(t,e,n){var r=null,i=!1;if(!Array.isArray(e))return Kt(e instanceof j?e.token:e,i,null);for(var o=null,a=0;a<e.length;++a){var s=e[a];s instanceof It?r=s:s instanceof j?r=s.token:s instanceof F?i=!0:s instanceof B||s instanceof U?o=s:s instanceof l&&(r=s)}if(null!=(r=Z(r)))return Kt(r,i,o);throw At(t,n)}function Kt(t,e,n){return new Vt(Tt.get(t),e,n)}var $t=new Object,Xt=function(){function t(){}return t.resolve=function(t){return Wt(t)},t.resolveAndCreate=function(e,n){var r=t.resolve(e);return t.fromResolvedProviders(r,n)},t.fromResolvedProviders=function(t,e){return new Qt(t,e)},t}(),Qt=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]=$t}return t.prototype.get=function(t,e){return void 0===e&&(e=et),this._getByKey(Tt.get(t),null,e)},t.prototype.resolveAndCreateChild=function(t){var e=Xt.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(Xt.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 Error("Index "+t+" is out-of-bounds.");return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw e=this,n=t.key,Ot(e,n,function(t){return"Cannot instantiate cyclic dependency!"+kt(t)});var e,n;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,i,o,a,s=this,c=e.factory;try{n=e.dependencies.map(function(t){return s._getByReflectiveDependency(t)})}catch(e){throw e.addKey&&e.addKey(this,t.key),e}try{r=c.apply(void 0,n)}catch(e){throw i=this,o=e,e.stack,a=t.key,Ot(i,a,function(t){var e=X(t[0].token);return o.message+": Error during instantiation of "+e+"!"+kt(t)+"."},o)}return r},t.prototype._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:et)},t.prototype._getByKey=function(e,n,r){return e===t.INJECTOR_KEY?this:n instanceof B?this._getByKeySelf(e,r):this._getByKeyDefault(e,r,n)},t.prototype._getObjByKeyId=function(t){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===$t&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return $t},t.prototype._throwOrNull=function(t,e){if(e!==et)return e;throw Ot(this,t,function(t){return"No provider for "+X(t[0].token)+"!"+kt(t)})},t.prototype._getByKeySelf=function(t,e){var n=this._getObjByKeyId(t.id);return n!==$t?n:this._throwOrNull(t,e)},t.prototype._getByKeyDefault=function(e,n,r){var i;for(i=r instanceof U?this.parent:this;i instanceof t;){var o=i,a=o._getObjByKeyId(e.id);if(a!==$t)return a;i=o.parent}return null!==i?i.get(e.token,n):this._throwOrNull(e,n)},Object.defineProperty(t.prototype,"displayName",{get:function(){return"ReflectiveInjector(providers: ["+function(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}(this,function(t){return' "'+t.key.displayName+'" '}).join(", ")+"])"},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.displayName},t.INJECTOR_KEY=Tt.get(rt),t}();function Zt(t){return!!t&&"function"==typeof t.then}var Jt=new l("Application Initializer"),te=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 i=this.appInits[r]();Zt(i)&&e.push(i)}Promise.all(e).then(function(){n()}).catch(function(e){t.reject(e)}),0===e.length&&n(),this.initialized=!0}},t.decorators=[{type:V}],t.ctorParameters=function(){return[{type:Array,decorators:[{type:j,args:[Jt]},{type:F}]}]},t}(),ee=new l("AppId");function ne(){return""+ie()+ie()+ie()}var re={provide:ee,useFactory:ne,deps:[]};function ie(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var oe=new l("Platform Initializer"),ae=new l("Platform ID"),se=new l("appBootstrapListener"),ce=new l("Application Packages Root URL"),le=function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t.decorators=[{type:V}],t.ctorParameters=function(){return[]},t}(),ue=function(){return function(t,e){this.ngModuleFactory=t,this.componentFactories=e}}();function pe(){throw new Error("Runtime compiler is not loaded")}var he=function(){function t(){}return t.prototype.compileModuleSync=function(t){throw pe()},t.prototype.compileModuleAsync=function(t){throw pe()},t.prototype.compileModuleAndAllComponentsSync=function(t){throw pe()},t.prototype.compileModuleAndAllComponentsAsync=function(t){throw pe()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(t){},t.decorators=[{type:V}],t.ctorParameters=function(){return[]},t}(),de=new l("compilerOptions"),fe=function(){return function(){}}(),me=function(){return function(){}}(),ge=function(){return function(){}}();function ye(t){var e=Error("No component factory found for "+X(t)+". Did you add it to @NgModule.entryComponents?");return e[_e]=t,e}var ve,be,_e="ngComponent",we=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw ye(t)},t}(),Ce=function(){function t(){}return t.NULL=new we,t}(),xe=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 i=t[r];this._factories.set(i.componentType,i)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t);if(!e&&this._parent&&(e=this._parent.resolveComponentFactory(t)),!e)throw ye(t);return new Ee(e,this._ngModule)},t}(),Ee=function(t){function e(e,n){var r=t.call(this)||this;return r.factory=e,r.ngModule=n,r.selector=e.selector,r.componentType=e.componentType,r.ngContentSelectors=e.ngContentSelectors,r.inputs=e.inputs,r.outputs=e.outputs,r}return s(e,t),e.prototype.create=function(t,e,n,r){return this.factory.create(t,e,n,r||this.ngModule)},e}(ge),Se=function(){return function(){}}(),ke=function(){return function(){}}();function Oe(){var t=W.wtf;return!(!t||!(ve=t.trace))&&(be=ve.events,!0)}function Pe(t,e){return void 0===e&&(e=null),be.createScope(t,e)}function Ae(t,e){return ve.leaveScope(t,e),e}function Te(t,e){return ve.beginTimeRange(t,e)}function Me(t){ve.endTimeRange(t)}var Ie=Oe();function Re(t,e){return null}var De=Ie?Pe:function(t,e){return Re},Ne=Ie?Ae:function(t,e){return e},Le=Ie?Te:function(t,e){return null},je=Ie?Me:function(t){return null},Fe=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return s(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var i,o=function(t){return null},a=function(){return null};return e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(a=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(o=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(a=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()})),t.prototype.subscribe.call(this,i,o,a)},e}(o.Subject),Ve=function(){function t(t){var e=t.enableLongStackTrace,n=void 0!==e&&e;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Fe(!1),this.onMicrotaskEmpty=new Fe(!1),this.onStable=new Fe(!1),this.onError=new Fe(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();var r;this._nesting=0,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)),(r=this)._inner=r._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(t,e,n,i,o,a){try{return ze(r),t.invokeTask(n,i,o,a)}finally{Ge(r)}},onInvoke:function(t,e,n,i,o,a,s){try{return ze(r),t.invoke(n,i,o,a,s)}finally{Ge(r)}},onHasTask:function(t,e,n,i){t.hasTask(n,i),e===n&&("microTask"==i.change?(r.hasPendingMicrotasks=i.microTask,He(r)):"macroTask"==i.change&&(r.hasPendingMacrotasks=i.macroTask))},onHandleError:function(t,e,n,i){return t.handleError(n,i),r.runOutsideAngular(function(){return r.onError.emit(i)}),!1}})}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,e,n){return this._inner.run(t,e,n)},t.prototype.runTask=function(t,e,n,r){var i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,t,Ue,Be,Be);try{return i.runTask(o,e,n)}finally{i.cancelTask(o)}},t.prototype.runGuarded=function(t,e,n){return this._inner.runGuarded(t,e,n)},t.prototype.runOutsideAngular=function(t){return this._outer.run(t)},t}();function Be(){}var Ue={};function He(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(function(){return t.onStable.emit(null)})}finally{t.isStable=!0}}}function ze(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Ge(t){t._nesting--,He(t)}var We=function(){function t(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Fe,this.onMicrotaskEmpty=new Fe,this.onStable=new Fe,this.onError=new Fe}return t.prototype.run=function(t){return t()},t.prototype.runGuarded=function(t){return t()},t.prototype.runOutsideAngular=function(t){return t()},t.prototype.runTask=function(t){return t()},t}(),qe=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(){Ve.assertNotInAngularZone(),K(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()?K(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.findProviders=function(t,e,n){return[]},t.decorators=[{type:V}],t.ctorParameters=function(){return[{type:Ve}]},t}(),Ye=function(){function t(){this._applications=new Map,$e.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},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),$e.findTestabilityInTree(this,t,e)},t.decorators=[{type:V}],t.ctorParameters=function(){return[]},t}();var Ke,$e=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),Xe=!0,Qe=!1,Ze=new l("AllowMultipleToken");function Je(){return Qe=!0,Xe}var tn=function(){return function(t,e){this.name=t,this.token=e}}();function en(t){if(Ke&&!Ke.destroyed&&!Ke.injector.get(Ze,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ke=t.get(an);var e=t.get(oe,null);return e&&e.forEach(function(t){return t()}),Ke}function nn(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,i=new l(r);return function(e){void 0===e&&(e=[]);var o=on();if(!o||o.injector.get(Ze,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{var a=n.concat(e).concat({provide:i,useValue:!0});en(rt.create({providers:a,name:r}))}return rn(i)}}function rn(t){var e=on();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 on(){return Ke&&!Ke.destroyed?Ke:null}var an=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n=this,r=function(t){var e;e="noop"===t?new We:("zone.js"===t?void 0:t)||new Ve({enableLongStackTrace:Je()});return e}(e?e.ngZone:void 0),i=[{provide:Ve,useValue:r}];return r.run(function(){var e=rt.create({providers:i,parent:n.injector,name:t.moduleType.name}),o=t.create(e),a=o.injector.get(St,null);if(!a)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.onDestroy(function(){return ln(n._modules,o)}),r.runOutsideAngular(function(){return r.onError.subscribe({next:function(t){a.handleError(t)}})}),function(t,e,n){try{var r=n();return Zt(r)?r.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):r}catch(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}}(a,r,function(){var t=o.injector.get(te);return t.runInitializers(),t.donePromise.then(function(){return n._moduleDoBootstrap(o),o})})})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=this.injector.get(fe),i=sn({},e);return r.createCompiler([i]).compileModuleAsync(t).then(function(t){return n.bootstrapModuleFactory(t,i)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(cn);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+X(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t.decorators=[{type:V}],t.ctorParameters=function(){return[{type:rt}]},t}();function sn(t,e){return t=Array.isArray(e)?e.reduce(sn,t):c({},t,e)}var cn=function(){function t(t,r,o,a,s,c){var l=this;this._zone=t,this._console=r,this._injector=o,this._exceptionHandler=a,this._componentFactoryResolver=s,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Je(),this._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run(function(){l.tick()})}});var u=new e.Observable(function(t){l._stable=l._zone.isStable&&!l._zone.hasPendingMacrotasks&&!l._zone.hasPendingMicrotasks,l._zone.runOutsideAngular(function(){t.next(l._stable),t.complete()})}),p=new e.Observable(function(t){var e;l._zone.runOutsideAngular(function(){e=l._zone.onStable.subscribe(function(){Ve.assertNotInAngularZone(),K(function(){l._stable||l._zone.hasPendingMacrotasks||l._zone.hasPendingMicrotasks||(l._stable=!0,t.next(!0))})})});var n=l._zone.onUnstable.subscribe(function(){Ve.assertInAngularZone(),l._stable&&(l._stable=!1,l._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=n.merge(u,i.share.call(p))}return t.prototype.bootstrap=function(t,e){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof ge?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n instanceof Ee?null:this._injector.get(Se),o=e||n.selector,a=n.create(rt.NULL,[],o,i);a.onDestroy(function(){r._unloadComponent(a)});var s=a.injector.get(qe,null);return s&&a.injector.get(Ye).registerApplication(a.location.nativeElement,s),this._loadComponent(a),Je()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),a},t.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(t){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(t)})}finally{this._runningTick=!1,Ne(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;ln(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(se,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),ln(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=De("ApplicationRef#tick()"),t.decorators=[{type:V}],t.ctorParameters=function(){return[{type:Ve},{type:le},{type:rt},{type:St},{type:Ce},{type:te}]},t}();function ln(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var un=function(){return function(t,e,n,r,i,o){this.id=t,this.templateUrl=e,this.slotCount=n,this.encapsulation=r,this.styles=i,this.animations=o}}(),pn=function(){return function(){}}(),hn=function(){return function(){}}(),dn=(new l("Renderer2Interceptor"),function(){return function(){}}()),fn=function(){return function(){}}(),mn={Important:1,DashCase:2};mn[mn.Important]="Important",mn[mn.DashCase]="DashCase";var gn=function(){return function(){}}(),yn=function(){return function(t){this.nativeElement=t}}(),vn=function(){return function(){}}(),bn=new Map;var _n=function(){function t(){this.dirty=!0,this._results=[],this.changes=new Fe}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[Y()]=function(){return this._results[Y()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}();var wn=function(){return function(){}}(),Cn={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},xn=function(){function t(t,e){this._compiler=t,this._config=e||Cn}return t.prototype.load=function(t){return this._compiler instanceof he?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,n=t.split("#"),r=n[0],i=n[1];return void 0===i&&(i="default"),System.import(r).then(function(t){return t[i]}).then(function(t){return En(t,r,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split("#"),n=e[0],r=e[1],i="NgFactory";return void 0===r&&(r="default",i=""),System.import(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then(function(t){return t[r+i]}).then(function(t){return En(t,n,r)})},t.decorators=[{type:V}],t.ctorParameters=function(){return[{type:he},{type:wn,decorators:[{type:F}]}]},t}();function En(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var Sn=function(){return function(){}}(),kn=function(){return function(){}}(),On=function(){return function(){}}(),Pn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(On),An=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(Pn),Tn=function(){return function(t,e){this.name=t,this.callback=e}}(),Mn=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof In?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),In=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return s(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,r=this,i=this.childNodes.indexOf(t);-1!==i&&((n=this.childNodes).splice.apply(n,[i+1,0].concat(e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=r}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return function t(e,n,r){e.childNodes.forEach(function(e){e instanceof In&&(n(e)&&r.push(e),t(e,n,r))})}(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return function t(e,n,r){e instanceof In&&e.childNodes.forEach(function(e){n(e)&&r.push(e),e instanceof In&&t(e,n,r)})}(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}(Mn);var Rn=new Map;function Dn(t){return Rn.get(t)||null}function Nn(t){Rn.set(t.nativeNode,t)}function Ln(t,e){var n=Vn(t),r=Vn(e);return n&&r?function(t,e,n){var r=t[Y()](),i=e[Y()]();for(;;){var o=r.next(),a=i.next();if(o.done&&a.done)return!0;if(o.done||a.done)return!1;if(!n(o.value,a.value))return!1}}(t,e,Ln):!(n||!(t&&("object"==typeof t||"function"==typeof t))||r||!(e&&("object"==typeof e||"function"==typeof e)))||$(t,e)}var jn=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),Fn=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function Vn(t){return!!Bn(t)&&(Array.isArray(t)||!(t instanceof Map)&&Y()in t)}function Bn(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var Un=function(){function t(){}return t.prototype.supports=function(t){return Vn(t)},t.prototype.create=function(t){return new zn(t)},t}(),Hn=function(t,e){return e},zn=function(){function t(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Hn}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex<Yn(n,r,i)?e:n,a=Yn(o,r,i),s=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);var c=a-r,l=s-r;if(c!=l){for(var u=0;u<c;u++){var p=u<i.length?i[u]:i[u]=0,h=p+u;l<=h&&h<c&&(i[u]=p+1)}i[o.previousIndex]=l-c}}a!==s&&t(o,a,s)}},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=[]),!Vn(t))throw new Error("Error trying to diff '"+X(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,i,o=this._itHead,a=!1;if(Array.isArray(t)){this.length=t.length;for(var s=0;s<this.length;s++)r=t[s],i=this._trackByFn(s,r),null!==o&&$(o.trackById,i)?(a&&(o=this._verifyReinsertion(o,r,i,s)),$(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,s),a=!0),o=o._next}else n=0,function(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var r=t[Y()](),i=void 0;!(i=r.next()).done;)e(i.value)}(t,function(t){i=e._trackByFn(n,t),null!==o&&$(o.trackById,i)?(a&&(o=e._verifyReinsertion(o,t,i,n)),$(o.item,t)||e._addIdentityChange(o,t)):(o=e._mismatch(o,t,i,n),a=!0),o=o._next,n++}),this.length=n;return this._truncate(o),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 i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?($(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?($(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new Gn(e,n),i,r),t},t.prototype._verifyReinsertion=function(t,e,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,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,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._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 qn),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 qn),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}(),Gn=function(){return function(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}}(),Wn=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)&&$(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}(),qn=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 Wn,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}();function Yn(t,e,n){var r=t.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+e+i}var Kn=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||Bn(t)},t.prototype.create=function(){return new $n},t}(),$n=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||Bn(t)))throw new Error("Error trying to diff '"+X(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 i=e._getOrCreateRecordForKey(r,t);n=e._insertBeforeOrAppend(n,i)}}),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,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new Xn(t);return this._records.set(t,o),o.currentValue=e,this._addToAdditions(o),o},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){$(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._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(n){return e(t[n],n)})},t}(),Xn=function(){return function(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}}(),Qn=function(){function t(t){this.factories=t}return t.create=function(e,n){if(null!=n){var r=n.factories.slice();return new t(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 IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new U,new F]]}},t.prototype.find=function(t){var e,n=this.factories.find(function(e){return e.supports(t)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'")},t}();var Zn=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 U,new F]]}},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}(),Jn=[new Kn],tr=[new Un],er=new Qn(tr),nr=new Zn(Jn),rr=nn(null,"core",[{provide:ae,useValue:"unknown"},{provide:an,deps:[rt]},{provide:Ye,deps:[]},{provide:le,deps:[]}]),ir=new l("LocaleId"),or=new l("Translations"),ar=new l("TranslationsFormat"),sr={Error:0,Warning:1,Ignore:2};function cr(){return er}function lr(){return nr}function ur(t){return t||"en-US"}sr[sr.Error]="Error",sr[sr.Warning]="Warning",sr[sr.Ignore]="Ignore";var pr=function(){function t(t){}return t.decorators=[{type:R,args:[{providers:[cn,te,he,re,{provide:Qn,useFactory:cr},{provide:Zn,useFactory:lr},{provide:ir,useFactory:ur,deps:[[new j(ir),new F,new U]]}]}]}],t.ctorParameters=function(){return[{type:cn}]},t}(),hr={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};hr[hr.NONE]="NONE",hr[hr.HTML]="HTML",hr[hr.STYLE]="STYLE",hr[hr.SCRIPT]="SCRIPT",hr[hr.URL]="URL",hr[hr.RESOURCE_URL]="RESOURCE_URL";var dr=function(){return function(){}}();function fr(t,e,n){var r=t.state,i=1792&r;return i===e?(t.state=-1793&r|n,t.initIndex=-1,!0):i===n}function mr(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function gr(t,e){return t.nodes[e]}function yr(t,e){return t.nodes[e]}function vr(t,e){return t.nodes[e]}function br(t,e){return t.nodes[e]}function _r(t,e){return t.nodes[e]}var wr=function(){return function(){}}(),Cr={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides: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};function xr(t,e,n,r){var i,o,a="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(a+=" 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 ?"),i=t,Er(o=new Error(a),i),o}function Er(t,e){t[bt]=e,t[wt]=e.logError.bind(e)}function Sr(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}var kr=function(){},Or=new Map;function Pr(t){var e=Or.get(t);return e||(e=X(t)+"_"+Or.size,Or.set(t,e)),e}var Ar="$$undefined",Tr="$$empty";var Mr=0;function Ir(t){if(t&&t.id===Ar){var e=null!=t.encapsulation&&t.encapsulation!==D.None||t.styles.length||Object.keys(t.data).length;t.id=e?"c"+Mr++:Tr}return t&&t.id===Tr&&(t=null),t||null}function Rr(t,e,n,r){var i=t.oldValues;return!(!(2&t.state)&&$(i[e.bindingIndex+n],r))}function Dr(t,e,n,r){return!!Rr(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function Nr(t,e,n,r){var i=t.oldValues[e.bindingIndex+n];if(1&t.state||!Ln(i,r)){var o=e.bindings[e.bindingIndex].name;throw xr(Cr.createDebugContext(t,e.nodeIndex),o+": "+i,o+": "+r,0!=(1&t.state))}}function Lr(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function jr(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function Fr(t,e,n,r){try{return Lr(33554432&t.def.nodes[e].flags?yr(t,e).componentView:t),Cr.handleEvent(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}function Vr(t){return t.parent?yr(t.parent,t.parentNodeDef.nodeIndex):null}function Br(t){return t.parent?t.parentNodeDef.parent:null}function Ur(t,e){switch(201347067&e.flags){case 1:return yr(t,e.nodeIndex).renderElement;case 2:return gr(t,e.nodeIndex).renderText}}function Hr(t,e){return t?t+":"+e:e}function zr(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function Gr(t){return 1<<t%32}function Wr(t){var e={},n=0,r={};return t&&t.forEach(function(t){var i=t[0],o=t[1];"number"==typeof i?(e[i]=o,n|=Gr(i)):r[i]=o}),{matchedQueries:e,references:r,matchedQueryIds:n}}function qr(t,e){return t.map(function(t){var n,r;return Array.isArray(t)?(r=t[0],n=t[1]):(r=0,n=t),n&&("function"==typeof n||"object"==typeof n)&&e&&Object.defineProperty(n,J,{value:e,configurable:!0}),{flags:r,token:n,tokenKey:Pr(n)}})}function Yr(t,e,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===D.Native?yr(t,n.renderParent.nodeIndex).renderElement:void 0:e}var Kr=new WeakMap;function $r(t){var e=Kr.get(t);return e||((e=t(function(){return kr})).factory=t,Kr.set(t,e)),e}function Xr(t,e,n,r,i){3===e&&(n=t.renderer.parentNode(Ur(t,t.def.lastRenderRootNode))),Qr(t,e,0,t.def.nodes.length-1,n,r,i)}function Qr(t,e,n,r,i,o,a){for(var s=n;s<=r;s++){var c=t.def.nodes[s];11&c.flags&&Jr(t,c,e,i,o,a),s+=c.childCount}}function Zr(t,e,n,r,i,o){for(var a=t;a&&!zr(a);)a=a.parent;for(var s=a.parent,c=Br(a),l=c.nodeIndex+1,u=c.nodeIndex+c.childCount,p=l;p<=u;p++){var h=s.def.nodes[p];h.ngContentIndex===e&&Jr(s,h,n,r,i,o),p+=h.childCount}if(!s.parent){var d=t.root.projectableNodes[e];if(d)for(p=0;p<d.length;p++)ti(t,d[p],n,r,i,o)}}function Jr(t,e,n,r,i,o){if(8&e.flags)Zr(t,e.ngContent.index,n,r,i,o);else{var a=Ur(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags){if(16&e.bindingFlags&&ti(t,a,n,r,i,o),32&e.bindingFlags)ti(yr(t,e.nodeIndex).componentView,a,n,r,i,o)}else ti(t,a,n,r,i,o);if(16777216&e.flags)for(var s=yr(t,e.nodeIndex).viewContainer._embeddedViews,c=0;c<s.length;c++)Xr(s[c],n,r,i,o);1&e.flags&&!e.element.name&&Qr(t,n,e.nodeIndex+1,e.nodeIndex+e.childCount,r,i,o)}}function ti(t,e,n,r,i,o){var a=t.renderer;switch(n){case 1:a.appendChild(r,e);break;case 2:a.insertBefore(r,e,i);break;case 3:a.removeChild(r,e);break;case 0:o.push(e)}}var ei=/^:([^:]+):(.+)$/;function ni(t){if(":"===t[0]){var e=t.match(ei);return[e[1],e[2]]}return["",t]}function ri(t){for(var e=0,n=0;n<t.length;n++)e|=t[n].flags;return e}function ii(t){return null!=t?t.toString():""}function oi(t,e,n){var r,i=n.element,o=t.root.selectorOrNode,a=t.renderer;if(t.parent||!o){r=i.name?a.createElement(i.name,i.ns):a.createComment("");var s=Yr(t,e,n);s&&a.appendChild(s,r)}else r=a.selectRootElement(o);if(i.attrs)for(var c=0;c<i.attrs.length;c++){var l=i.attrs[c],u=l[0],p=l[1],h=l[2];a.setAttribute(r,p,h,u)}return r}function ai(t,e,n,r){for(var i=0;i<n.outputs.length;i++){var o=n.outputs[i],a=si(t,n.nodeIndex,Hr(o.target,o.eventName)),s=o.target,c=t;"component"===o.target&&(s=null,c=e);var l=c.renderer.listen(s||r,o.eventName,a);t.disposables[n.outputIndex+i]=l}}function si(t,e,n){return function(r){return Fr(t,e,n,r)}}function ci(t,e,n,r){if(!Dr(t,e,n,r))return!1;var i,o,a,s,c,l,u,p,h,d,f=e.bindings[n],m=yr(t,e.nodeIndex),g=m.renderElement,y=f.name;switch(15&f.flags){case 1:!function(t,e,n,r,i,o){var a=e.securityContext,s=a?t.root.sanitizer.sanitize(a,o):o;s=null!=s?s.toString():null;var c=t.renderer;null!=o?c.setAttribute(n,i,s,r):c.removeAttribute(n,i,r)}(t,f,g,f.ns,y,r);break;case 2:u=g,p=y,h=r,d=t.renderer,h?d.addClass(u,p):d.removeClass(u,p);break;case 4:!function(t,e,n,r,i){var o=t.root.sanitizer.sanitize(hr.STYLE,i);if(null!=o){o=o.toString();var a=e.suffix;null!=a&&(o+=a)}else o=null;var s=t.renderer;null!=o?s.setStyle(n,r,o):s.removeStyle(n,r)}(t,f,g,y,r);break;case 8:var v=33554432&e.flags&&32&f.flags?m.componentView:t;i=v,o=g,a=y,s=r,c=f.securityContext,l=c?i.root.sanitizer.sanitize(c,s):s,i.renderer.setProperty(o,a,l)}return!0}var li=new Object,ui=Pr(rt),pi=Pr(Se);function hi(t,e,n){if(void 0===n&&(n=rt.THROW_IF_NOT_FOUND),8&e.flags)return e.token;if(2&e.flags&&(n=null),1&e.flags)return t._parent.get(e.token,n);var r=e.tokenKey;switch(r){case ui:case pi:return t}var i=t._def.providersByKey[r];if(i){var o=t._providers[i.index];return void 0===o&&(o=t._providers[i.index]=di(t,i)),o===li?void 0:o}return t._parent.get(e.token,n)}function di(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(hi(t,n[0]));case 2:return new e(hi(t,n[0]),hi(t,n[1]));case 3:return new e(hi(t,n[0]),hi(t,n[1]),hi(t,n[2]));default:for(var i=new Array(r),o=0;o<r;o++)i[o]=hi(t,n[o]);return new(e.bind.apply(e,[void 0].concat(i)))}}(t,e.value,e.deps);break;case 1024:n=function(t,e,n){var r=n.length;switch(r){case 0:return e();case 1:return e(hi(t,n[0]));case 2:return e(hi(t,n[0]),hi(t,n[1]));case 3:return e(hi(t,n[0]),hi(t,n[1]),hi(t,n[2]));default:for(var i=Array(r),o=0;o<r;o++)i[o]=hi(t,n[o]);return e.apply(void 0,i)}}(t,e.value,e.deps);break;case 2048:n=hi(t,e.deps[0]);break;case 256:n=e.value}return void 0===n?li:n}function fi(t,e,n,r){var i=e.viewContainer._embeddedViews;null!==n&&void 0!==n||(n=i.length),r.viewContainerParent=t,vi(i,n,r),function(t,e){var n=Vr(e);if(!n||n===t||16&e.state)return;e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]);r.push(e),function(t,e){if(4&e.flags)return;t.nodeFlags|=4,e.flags|=4;var n=e.parent;for(;n;)n.childFlags|=4,n=n.parent}(e.parent.def,e.parentNodeDef)}(e,r),Cr.dirtyParentQueries(r),gi(e,n>0?i[n-1]:null,r)}function mi(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,bi(n,e),Cr.dirtyParentQueries(r),yi(r),r}function gi(t,e,n){var r=e?Ur(e,e.def.lastRenderRootNode):t.renderElement;Xr(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function yi(t){Xr(t,3,null,null,void 0)}function vi(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function bi(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var _i=new Object;function wi(t){return t.viewDefFactory}var Ci=function(t){function e(e,n,r,i,o,a){var s=t.call(this)||this;return s.selector=e,s.componentType=n,s._inputs=i,s._outputs=o,s.ngContentSelectors=a,s.viewDefFactory=r,s}return s(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 i=$r(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,a=Cr.createRootView(t,e||[],n,i,r,_i),s=vr(a,o).instance;return n&&a.renderer.setAttribute(yr(a,0).renderElement,"ng-version",L.full),new xi(a,new Si(a),s)},e}(ge),xi=function(t){function e(e,n,r){var i=t.call(this)||this;return i._view=e,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return s(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new yn(yr(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Pi(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(me);var Ei=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 yn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Pi(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=Br(t),t=t.parent;return t?new Pi(t,e):new Pi(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=mi(this._data,t);Cr.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new Si(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,i){var o=n||this.parentInjector;i||t instanceof Ee||(i=o.get(Se));var a=t.create(o,r,void 0,i);return this.insert(a.hostView,e),a},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n=t,r=n._view;return fi(this._view,this._data,e,r),n.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,a,s=this._embeddedViews.indexOf(t._view);return n=this._data,r=s,i=e,o=n.viewContainer._embeddedViews,a=o[r],bi(o,r),null==i&&(i=o.length),vi(o,i,a),Cr.dirtyParentQueries(a),yi(a),gi(n,i>0?o[i-1]:null,a),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=mi(this._data,t);e&&Cr.destroyView(e)},t.prototype.detach=function(t){var e=mi(this._data,t);return e?new Si(e):null},t}();var Si=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return Xr(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){Lr(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{Cr.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Cr.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)),Cr.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,yi(this._view),Cr.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}();var ki=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return s(e,t),e.prototype.createEmbeddedView=function(t){return new Si(Cr.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new yn(yr(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(Sn);function Oi(t,e){return new Pi(t,e)}var Pi=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){void 0===e&&(e=rt.THROW_IF_NOT_FOUND);var n=!!this.elDef&&0!=(33554432&this.elDef.flags);return Cr.resolveDep(this.view,this.elDef,n,{flags:0,token:t,tokenKey:Pr(t)},e)},t}();var Ai=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=ni(e),r=n[0],i=n[1],o=this.delegate.createElement(i,r);return t&&this.delegate.appendChild(t,o),o},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),i=0;i<e.length;i++)this.delegate.insertBefore(n,e[i],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=ni(e),i=r[0],o=r[1];null!=n?this.delegate.setAttribute(t,o,n,i):this.delegate.removeAttribute(t,o,i)},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}();function Ti(t,e,n,r){return new Mi(t,e,n,r)}var Mi=function(){function t(t,e,n,r){this._moduleType=t,this._parent=e,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(t){for(var e=t._def,n=t._providers=new Array(e.providers.length),r=0;r<e.providers.length;r++){var i=e.providers[r];4096&i.flags||(n[r]=di(t,i))}}(this)}return t.prototype.get=function(t,e){return void 0===e&&(e=rt.THROW_IF_NOT_FOUND),hi(this,{token:t,tokenKey:Pr(t),flags:0},e)},Object.defineProperty(t.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this.get(Ce)},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+X(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,function(t,e){for(var n=t._def,r=0;r<n.providers.length;r++)if(131072&n.providers[r].flags){var i=t._providers[r];i&&i!==li&&i.ngOnDestroy()}}(this),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t}(),Ii=Pr(hn),Ri=Pr(gn),Di=Pr(yn),Ni=Pr(kn),Li=Pr(Sn),ji=Pr(On),Fi=Pr(rt);function Vi(t,e,n,r,i,o,a,s,c){var l=Wr(n),u=l.matchedQueries,p=l.references,h=l.matchedQueryIds;c||(c=[]),s||(s=[]),o=Z(o);var d=qr(a,X(i));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:u,matchedQueryIds:h,references:p,ngContentIndex:-1,childCount:r,bindings:s,bindingFlags:ri(s),outputs:c,element:null,provider:{token:i,value:o,deps:d},text:null,query:null,ngContent:null}}function Bi(t,e){for(var n=t;n.parent&&!zr(n);)n=n.parent;return Gi(n.parent,Br(n),!0,e.provider.value,e.provider.deps)}function Ui(t,e){var n=(32768&e.flags)>0,r=Gi(t,e.parent,n,e.provider.value,e.provider.deps);if(e.outputs.length)for(var i=0;i<e.outputs.length;i++){var o=e.outputs[i],a=r[o.propName].subscribe(Hi(t,e.parent.nodeIndex,o.eventName));t.disposables[e.outputIndex+i]=a.unsubscribe.bind(a)}return r}function Hi(t,e,n){return function(r){return Fr(t,e,n,r)}}function zi(t,e){var n=(8192&e.flags)>0,r=e.provider;switch(201347067&e.flags){case 512:return Gi(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,i){var o=i.length;switch(o){case 0:return r();case 1:return r(qi(t,e,n,i[0]));case 2:return r(qi(t,e,n,i[0]),qi(t,e,n,i[1]));case 3:return r(qi(t,e,n,i[0]),qi(t,e,n,i[1]),qi(t,e,n,i[2]));default:for(var a=Array(o),s=0;s<o;s++)a[s]=qi(t,e,n,i[s]);return r.apply(void 0,a)}}(t,e.parent,n,r.value,r.deps);case 2048:return qi(t,e.parent,n,r.deps[0]);case 256:return r.value}}function Gi(t,e,n,r,i){var o=i.length;switch(o){case 0:return new r;case 1:return new r(qi(t,e,n,i[0]));case 2:return new r(qi(t,e,n,i[0]),qi(t,e,n,i[1]));case 3:return new r(qi(t,e,n,i[0]),qi(t,e,n,i[1]),qi(t,e,n,i[2]));default:for(var a=new Array(o),s=0;s<o;s++)a[s]=qi(t,e,n,i[s]);return new(r.bind.apply(r,[void 0].concat(a)))}}var Wi={};function qi(t,e,n,r,i){if(void 0===i&&(i=rt.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var o=t;2&r.flags&&(i=null);var a=r.tokenKey;for(a===ji&&(n=!(!e||!e.element.componentView)),e&&1&r.flags&&(n=!1,e=e.parent);t;){if(e)switch(a){case Ii:var s=Yi(t,e,n);return new Ai(s.renderer);case Ri:return(s=Yi(t,e,n)).renderer;case Di:return new yn(yr(t,e.nodeIndex).renderElement);case Ni:return yr(t,e.nodeIndex).viewContainer;case Li:if(e.element.template)return yr(t,e.nodeIndex).template;break;case ji:var c=Yi(t,e,n);return new Si(c);case Fi:return Oi(t,e);default:var l=(n?e.element.allProviders:e.element.publicProviders)[a];if(l){var u=vr(t,l.nodeIndex);return u||(u={instance:zi(t,l)},t.nodes[l.nodeIndex]=u),u.instance}}n=zr(t),e=Br(t),t=t.parent}var p=o.root.injector.get(r.token,Wi);return p!==Wi||i===Wi?p:o.root.ngModule.injector.get(r.token,i)}function Yi(t,e,n){var r;if(n)r=yr(t,e.nodeIndex).componentView;else for(r=t;r.parent&&!zr(r);)r=r.parent;return r}function Ki(t,e,n,r,i,o){if(32768&n.flags){var a=yr(t,n.parent.nodeIndex).componentView;2&a.def.flags&&(a.state|=8)}var s=n.bindings[r].name;if(e.instance[s]=i,524288&n.flags){o=o||{};var c=jn.unwrap(t.oldValues[n.bindingIndex+r]);o[n.bindings[r].nonMinifiedName]=new Fn(c,i,0!=(2&t.state))}return t.oldValues[n.bindingIndex+r]=i,o}function $i(t,e){if(t.def.nodeFlags&e)for(var n=t.def.nodes,r=0,i=0;i<n.length;i++){var o=n[i],a=o.parent;for(!a&&o.flags&e&&Qi(t,i,o.flags&e,r++),0==(o.childFlags&e)&&(i+=o.childCount);a&&1&a.flags&&i===a.nodeIndex+a.childCount;)a.directChildFlags&e&&(r=Xi(t,a,e,r)),a=a.parent}}function Xi(t,e,n,r){for(var i=e.nodeIndex+1;i<=e.nodeIndex+e.childCount;i++){var o=t.def.nodes[i];o.flags&n&&Qi(t,i,o.flags&n,r++),i+=o.childCount}return r}function Qi(t,e,n,r){var i=vr(t,e);if(i){var o=i.instance;o&&(Cr.setCurrentNode(t,e),1048576&n&&mr(t,512,r)&&o.ngAfterContentInit(),2097152&n&&o.ngAfterContentChecked(),4194304&n&&mr(t,768,r)&&o.ngAfterViewInit(),8388608&n&&o.ngAfterViewChecked(),131072&n&&o.ngOnDestroy())}}function Zi(t){for(var e,n=t.def.nodeMatchedQueries;t.parent&&((e=t).parent&&!(32768&e.parentNodeDef.flags));){var r=t.parentNodeDef;t=t.parent;for(var i=r.nodeIndex+r.childCount,o=0;o<=i;o++){67108864&(a=t.def.nodes[o]).flags&&536870912&a.flags&&(a.query.filterId&n)===a.query.filterId&&_r(t,o).setDirty(),!(1&a.flags&&o+a.childCount<r.nodeIndex)&&67108864&a.childFlags&&536870912&a.childFlags||(o+=a.childCount)}}if(134217728&t.def.nodeFlags)for(o=0;o<t.def.nodes.length;o++){var a;134217728&(a=t.def.nodes[o]).flags&&536870912&a.flags&&_r(t,o).setDirty(),o+=a.childCount}}function Ji(t,e){var n=_r(t,e.nodeIndex);if(n.dirty){var r,i=void 0;if(67108864&e.flags){var o=e.parent.parent;i=to(t,o.nodeIndex,o.nodeIndex+o.childCount,e.query,[]),r=vr(t,e.parent.nodeIndex).instance}else 134217728&e.flags&&(i=to(t,0,t.def.nodes.length-1,e.query,[]),r=t.component);n.reset(i);for(var a=e.query.bindings,s=!1,c=0;c<a.length;c++){var l=a[c],u=void 0;switch(l.bindingType){case 0:u=n.first;break;case 1:u=n,s=!0}r[l.propName]=u}s&&n.notifyOnChanges()}}function to(t,e,n,r,i){for(var o=e;o<=n;o++){var a=t.def.nodes[o],s=a.matchedQueries[r.id];if(null!=s&&i.push(eo(t,a,s)),1&a.flags&&a.element.template&&(a.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var c=yr(t,o);if((a.childMatchedQueries&r.filterId)===r.filterId&&(to(t,o+1,o+a.childCount,r,i),o+=a.childCount),16777216&a.flags)for(var l=c.viewContainer._embeddedViews,u=0;u<l.length;u++){var p=l[u],h=Vr(p);h&&h===c&&to(p,0,p.def.nodes.length-1,r,i)}var d=c.template._projectedViews;if(d)for(u=0;u<d.length;u++){var f=d[u];to(f,0,f.def.nodes.length-1,r,i)}}(a.childMatchedQueries&r.filterId)!==r.filterId&&(o+=a.childCount)}return i}function eo(t,e,n){if(null!=n)switch(n){case 1:return yr(t,e.nodeIndex).renderElement;case 0:return new yn(yr(t,e.nodeIndex).renderElement);case 2:return yr(t,e.nodeIndex).template;case 3:return yr(t,e.nodeIndex).viewContainer;case 4:return vr(t,e.nodeIndex).instance}}function no(t,e,n){for(var r=new Array(n.length),i=0;i<n.length;i++){var o=n[i];r[i]={flags:8,name:o,ns:null,nonMinifiedName:o,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:ri(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function ro(t,e,n){var r,i=t.renderer;r=i.createText(n.text.prefix);var o=Yr(t,e,n);return o&&i.appendChild(o,r),{renderText:r}}function io(t,e){return(null!=t?t.toString():"")+e.suffix}function oo(t){return 0!=(1&t.flags)&&null===t.element.name}function ao(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var i=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=i&&e.nodeIndex+e.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function so(t,e,n,r){var i=uo(t.root,t.renderer,t,e,n);return po(i,t.component,r),ho(i),i}function co(t,e,n){var r=uo(t,t.renderer,null,null,e);return po(r,n,n),ho(r),r}function lo(t,e,n,r){var i,o=e.element.componentRendererType;return i=o?t.root.rendererFactory.createRenderer(r,o):t.root.renderer,uo(t.root,i,t,e.element.componentProvider,n)}function uo(t,e,n,r,i){var o=new Array(i.nodes.length),a=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:a,initIndex:-1}}function po(t,e,n){t.component=e,t.context=n}function ho(t){var e;if(zr(t)){var n=t.parentNodeDef;e=yr(t.parent,n.parent.nodeIndex).renderElement}for(var r,i,o,a,s,c=t.def,l=t.nodes,u=0;u<c.nodes.length;u++){var p=c.nodes[u];Cr.setCurrentNode(t,u);var h=void 0;switch(201347067&p.flags){case 1:var d=oi(t,e,p),f=void 0;if(33554432&p.flags){var m=$r(p.element.componentView);f=Cr.createComponentView(t,p,m,d)}ai(t,f,p,d),h={renderElement:d,componentView:f,viewContainer:null,template:p.element.template?(a=t,s=p,new ki(a,s)):void 0},16777216&p.flags&&(h.viewContainer=new Ei(t,p,h));break;case 2:h=ro(t,e,p);break;case 512:case 1024:case 2048:case 256:if(!((h=l[u])||4096&p.flags))h={instance:zi(t,p)};break;case 16:h={instance:Bi(t,p)};break;case 16384:if(!(h=l[u]))h={instance:Ui(t,p)};if(32768&p.flags)po(yr(t,p.parent.nodeIndex).componentView,h.instance,h.instance);break;case 32:case 64:case 128:h={value:void 0};break;case 67108864:case 134217728:h=new _n;break;case 8:void 0,(o=Yr(r=t,e,i=p))&&Zr(r,i.ngContent.index,1,o,null,void 0),h=void 0}l[u]=h}Co(t,wo.CreateViewNodes),ko(t,201326592,268435456,0)}function fo(t){yo(t),Cr.updateDirectives(t,1),xo(t,wo.CheckNoChanges),Cr.updateRenderer(t,1),Co(t,wo.CheckNoChanges),t.state&=-97}function mo(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,fr(t,0,256),yo(t),Cr.updateDirectives(t,0),xo(t,wo.CheckAndUpdate),ko(t,67108864,536870912,0);var e=fr(t,256,512);$i(t,2097152|(e?1048576:0)),Cr.updateRenderer(t,0),Co(t,wo.CheckAndUpdate),ko(t,134217728,536870912,0),$i(t,8388608|((e=fr(t,512,768))?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97,fr(t,768,1024)}function go(t,e,n,r,i,o,a,s,c,l,u,p,h){return 0===n?function(t,e,n,r,i,o,a,s,c,l,u,p){switch(201347067&e.flags){case 1:return A=t,M=n,I=r,R=i,D=o,N=a,L=s,j=c,F=l,V=u,B=p,U=(T=e).bindings.length,H=!1,U>0&&ci(A,T,0,M)&&(H=!0),U>1&&ci(A,T,1,I)&&(H=!0),U>2&&ci(A,T,2,R)&&(H=!0),U>3&&ci(A,T,3,D)&&(H=!0),U>4&&ci(A,T,4,N)&&(H=!0),U>5&&ci(A,T,5,L)&&(H=!0),U>6&&ci(A,T,6,j)&&(H=!0),U>7&&ci(A,T,7,F)&&(H=!0),U>8&&ci(A,T,8,V)&&(H=!0),U>9&&ci(A,T,9,B)&&(H=!0),H;case 2:return function(t,e,n,r,i,o,a,s,c,l,u,p){var h=!1,d=e.bindings,f=d.length;if(f>0&&Dr(t,e,0,n)&&(h=!0),f>1&&Dr(t,e,1,r)&&(h=!0),f>2&&Dr(t,e,2,i)&&(h=!0),f>3&&Dr(t,e,3,o)&&(h=!0),f>4&&Dr(t,e,4,a)&&(h=!0),f>5&&Dr(t,e,5,s)&&(h=!0),f>6&&Dr(t,e,6,c)&&(h=!0),f>7&&Dr(t,e,7,l)&&(h=!0),f>8&&Dr(t,e,8,u)&&(h=!0),f>9&&Dr(t,e,9,p)&&(h=!0),h){var m=e.text.prefix;f>0&&(m+=io(n,d[0])),f>1&&(m+=io(r,d[1])),f>2&&(m+=io(i,d[2])),f>3&&(m+=io(o,d[3])),f>4&&(m+=io(a,d[4])),f>5&&(m+=io(s,d[5])),f>6&&(m+=io(c,d[6])),f>7&&(m+=io(l,d[7])),f>8&&(m+=io(u,d[8])),f>9&&(m+=io(p,d[9]));var g=gr(t,e.nodeIndex).renderText;t.renderer.setValue(g,m)}return h}(t,e,n,r,i,o,a,s,c,l,u,p);case 16384:return f=n,m=r,g=i,y=o,v=a,b=s,_=c,w=l,C=u,x=p,E=vr(h=t,(d=e).nodeIndex),S=E.instance,k=!1,O=void 0,(P=d.bindings.length)>0&&Rr(h,d,0,f)&&(k=!0,O=Ki(h,E,d,0,f,O)),P>1&&Rr(h,d,1,m)&&(k=!0,O=Ki(h,E,d,1,m,O)),P>2&&Rr(h,d,2,g)&&(k=!0,O=Ki(h,E,d,2,g,O)),P>3&&Rr(h,d,3,y)&&(k=!0,O=Ki(h,E,d,3,y,O)),P>4&&Rr(h,d,4,v)&&(k=!0,O=Ki(h,E,d,4,v,O)),P>5&&Rr(h,d,5,b)&&(k=!0,O=Ki(h,E,d,5,b,O)),P>6&&Rr(h,d,6,_)&&(k=!0,O=Ki(h,E,d,6,_,O)),P>7&&Rr(h,d,7,w)&&(k=!0,O=Ki(h,E,d,7,w,O)),P>8&&Rr(h,d,8,C)&&(k=!0,O=Ki(h,E,d,8,C,O)),P>9&&Rr(h,d,9,x)&&(k=!0,O=Ki(h,E,d,9,x,O)),O&&S.ngOnChanges(O),65536&d.flags&&mr(h,256,d.nodeIndex)&&S.ngOnInit(),262144&d.flags&&S.ngDoCheck(),k;case 32:case 64:case 128:return function(t,e,n,r,i,o,a,s,c,l,u,p){var h=e.bindings,d=!1,f=h.length;if(f>0&&Dr(t,e,0,n)&&(d=!0),f>1&&Dr(t,e,1,r)&&(d=!0),f>2&&Dr(t,e,2,i)&&(d=!0),f>3&&Dr(t,e,3,o)&&(d=!0),f>4&&Dr(t,e,4,a)&&(d=!0),f>5&&Dr(t,e,5,s)&&(d=!0),f>6&&Dr(t,e,6,c)&&(d=!0),f>7&&Dr(t,e,7,l)&&(d=!0),f>8&&Dr(t,e,8,u)&&(d=!0),f>9&&Dr(t,e,9,p)&&(d=!0),d){var m=br(t,e.nodeIndex),g=void 0;switch(201347067&e.flags){case 32:g=new Array(h.length),f>0&&(g[0]=n),f>1&&(g[1]=r),f>2&&(g[2]=i),f>3&&(g[3]=o),f>4&&(g[4]=a),f>5&&(g[5]=s),f>6&&(g[6]=c),f>7&&(g[7]=l),f>8&&(g[8]=u),f>9&&(g[9]=p);break;case 64:g={},f>0&&(g[h[0].name]=n),f>1&&(g[h[1].name]=r),f>2&&(g[h[2].name]=i),f>3&&(g[h[3].name]=o),f>4&&(g[h[4].name]=a),f>5&&(g[h[5].name]=s),f>6&&(g[h[6].name]=c),f>7&&(g[h[7].name]=l),f>8&&(g[h[8].name]=u),f>9&&(g[h[9].name]=p);break;case 128:var y=n;switch(f){case 1:g=y.transform(n);break;case 2:g=y.transform(r);break;case 3:g=y.transform(r,i);break;case 4:g=y.transform(r,i,o);break;case 5:g=y.transform(r,i,o,a);break;case 6:g=y.transform(r,i,o,a,s);break;case 7:g=y.transform(r,i,o,a,s,c);break;case 8:g=y.transform(r,i,o,a,s,c,l);break;case 9:g=y.transform(r,i,o,a,s,c,l,u);break;case 10:g=y.transform(r,i,o,a,s,c,l,u,p)}}m.value=g}return d}(t,e,n,r,i,o,a,s,c,l,u,p);default:throw"unreachable"}var h,d,f,m,g,y,v,b,_,w,C,x,E,S,k,O,P;var A,T,M,I,R,D,N,L,j,F,V,B,U,H}(t,e,r,i,o,a,s,c,l,u,p,h):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,i=0;i<n.length;i++)ci(t,e,i,n[i])&&(r=!0);return r}(t,e,n);case 2:return function(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)Dr(t,e,o,n[o])&&(i=!0);if(i){var a="";for(o=0;o<n.length;o++)a+=io(n[o],r[o]);a=e.text.prefix+a;var s=gr(t,e.nodeIndex).renderText;t.renderer.setValue(s,a)}return i}(t,e,n);case 16384:return function(t,e,n){for(var r=vr(t,e.nodeIndex),i=r.instance,o=!1,a=void 0,s=0;s<n.length;s++)Rr(t,e,s,n[s])&&(o=!0,a=Ki(t,r,e,s,n[s],a));return a&&i.ngOnChanges(a),65536&e.flags&&mr(t,256,e.nodeIndex)&&i.ngOnInit(),262144&e.flags&&i.ngDoCheck(),o}(t,e,n);case 32:case 64:case 128:return function(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)Dr(t,e,o,n[o])&&(i=!0);if(i){var a=br(t,e.nodeIndex),s=void 0;switch(201347067&e.flags){case 32:s=n;break;case 64:for(s={},o=0;o<n.length;o++)s[r[o].name]=n[o];break;case 128:var c=n[0],l=n.slice(1);s=c.transform.apply(c,l)}a.value=s}return i}(t,e,n);default:throw"unreachable"}}(t,e,r)}function yo(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 i=yr(t,n).template._projectedViews;if(i)for(var o=0;o<i.length;o++){var a=i[o];a.state|=32,jr(a,t)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function vo(t,e,n,r,i,o,a,s,c,l,u,p,h){return 0===n?function(t,e,n,r,i,o,a,s,c,l,u,p){var h=e.bindings.length;h>0&&Nr(t,e,0,n);h>1&&Nr(t,e,1,r);h>2&&Nr(t,e,2,i);h>3&&Nr(t,e,3,o);h>4&&Nr(t,e,4,a);h>5&&Nr(t,e,5,s);h>6&&Nr(t,e,6,c);h>7&&Nr(t,e,7,l);h>8&&Nr(t,e,8,u);h>9&&Nr(t,e,9,p)}(t,e,r,i,o,a,s,c,l,u,p,h):function(t,e,n){for(var r=0;r<n.length;r++)Nr(t,e,r,n[r])}(t,e,r),!1}function bo(t,e){if(_r(t,e.nodeIndex).dirty)throw xr(Cr.createDebugContext(t,e.nodeIndex),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!=(1&t.state))}function _o(t){if(!(128&t.state)){if(xo(t,wo.Destroy),Co(t,wo.Destroy),$i(t,131072),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();!function(t){if(16&t.state){var e=Vr(t);if(e){var n=e.template._projectedViews;n&&(bi(n,n.indexOf(t)),Cr.dirtyParentQueries(t))}}}(t),t.renderer.destroyNode&&function(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(yr(t,n).renderElement):2&r.flags?t.renderer.destroyNode(gr(t,n).renderText):(67108864&r.flags||134217728&r.flags)&&_r(t,n).destroy()}}(t),zr(t)&&t.renderer.destroy(),t.state|=128}}var wo={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};function Co(t,e){var n=t.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];33554432&i.flags?Eo(yr(t,r).componentView,e):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function xo(t,e){var n=t.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];if(16777216&i.flags)for(var o=yr(t,r).viewContainer._embeddedViews,a=0;a<o.length;a++)Eo(o[a],e);else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function Eo(t,e){var n=t.state;switch(e){case wo.CheckNoChanges:0==(128&n)&&(12==(12&n)?fo(t):64&n&&So(t,wo.CheckNoChangesProjectedViews));break;case wo.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?fo(t):64&n&&So(t,e));break;case wo.CheckAndUpdate:0==(128&n)&&(12==(12&n)?mo(t):64&n&&So(t,wo.CheckAndUpdateProjectedViews));break;case wo.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?mo(t):64&n&&So(t,e));break;case wo.Destroy:_o(t);break;case wo.CreateViewNodes:ho(t)}}function So(t,e){xo(t,e),Co(t,e)}function ko(t,e,n,r){if(t.def.nodeFlags&e&&t.def.nodeFlags&n)for(var i=t.def.nodes.length,o=0;o<i;o++){var a=t.def.nodes[o];if(a.flags&e&&a.flags&n)switch(Cr.setCurrentNode(t,a.nodeIndex),r){case 0:Ji(t,a);break;case 1:bo(t,a)}a.childFlags&e&&a.childFlags&n||(o+=a.childCount)}}wo[wo.CreateViewNodes]="CreateViewNodes",wo[wo.CheckNoChanges]="CheckNoChanges",wo[wo.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",wo[wo.CheckAndUpdate]="CheckAndUpdate",wo[wo.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",wo[wo.Destroy]="Destroy";var Oo=!1;function Po(){if(!Oo){Oo=!0;var t=Je()?{setCurrentNode:Xo,createRootView:To,createEmbeddedView:Io,createComponentView:Ro,createNgModuleRef:Do,overrideProvider:jo,overrideComponentView:Fo,clearOverrides:Vo,checkAndUpdateView:zo,checkNoChangesView:Go,destroyView:Wo,createDebugContext:function(t,e){return new sa(t,e)},handleEvent:Qo,updateDirectives:Zo,updateRenderer:Jo}:{setCurrentNode:function(){},createRootView:Ao,createEmbeddedView:so,createComponentView:lo,createNgModuleRef:Ti,overrideProvider:kr,overrideComponentView:kr,clearOverrides:kr,checkAndUpdateView:mo,checkNoChangesView:fo,destroyView:_o,createDebugContext:function(t,e){return new sa(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?Uo:Ho,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?Uo:Ho,t)}};Cr.setCurrentNode=t.setCurrentNode,Cr.createRootView=t.createRootView,Cr.createEmbeddedView=t.createEmbeddedView,Cr.createComponentView=t.createComponentView,Cr.createNgModuleRef=t.createNgModuleRef,Cr.overrideProvider=t.overrideProvider,Cr.overrideComponentView=t.overrideComponentView,Cr.clearOverrides=t.clearOverrides,Cr.checkAndUpdateView=t.checkAndUpdateView,Cr.checkNoChangesView=t.checkNoChangesView,Cr.destroyView=t.destroyView,Cr.resolveDep=qi,Cr.createDebugContext=t.createDebugContext,Cr.handleEvent=t.handleEvent,Cr.updateDirectives=t.updateDirectives,Cr.updateRenderer=t.updateRenderer,Cr.dirtyParentQueries=Zi}}function Ao(t,e,n,r,i,o){return co(Mo(t,i,i.injector.get(fn),e,n),r,o)}function To(t,e,n,r,i,o){var a=i.injector.get(fn),s=Mo(t,i,new pa(a),e,n),c=Bo(r);return la($o.create,co,null,[s,c,o])}function Mo(t,e,n,r,i){var o=e.injector.get(dr),a=e.injector.get(St);return{ngModule:e,injector:t,projectableNodes:r,selectorOrNode:i,sanitizer:o,rendererFactory:n,renderer:n.createRenderer(null,null),errorHandler:a}}function Io(t,e,n,r){var i=Bo(n);return la($o.create,so,null,[t,e,i,r])}function Ro(t,e,n,r){var i=Lo.get(e.element.componentProvider.provider.token);return n=i||Bo(n),la($o.create,lo,null,[t,e,n,r])}function Do(t,e,n,r){return Ti(t,e,n,function(t){var e=function(t){var e=!1,n=!1;if(0===No.size)return{hasOverrides:e,hasDeprecatedOverrides:n};return t.providers.forEach(function(t){var r=No.get(t.token);3840&t.flags&&r&&(e=!0,n=n||r.deprecatedBehavior)}),{hasOverrides:e,hasDeprecatedOverrides:n}}(t),n=e.hasOverrides,r=e.hasDeprecatedOverrides;if(!n)return t;return function(t){for(var e=0;e<t.providers.length;e++){var n=t.providers[e];r&&(n.flags|=4096);var i=No.get(n.token);i&&(n.flags=-3841&n.flags|i.flags,n.deps=qr(i.deps),n.value=i.value)}}(t=t.factory(function(){return kr})),t}(r))}var No=new Map,Lo=new Map;function jo(t){No.set(t.token,t)}function Fo(t,e){var n=$r($r(wi(e)).nodes[0].element.componentView);Lo.set(t,n)}function Vo(){No.clear(),Lo.clear()}function Bo(t){if(0===No.size)return t;var e=function(t){for(var e=[],n=null,r=0;r<t.nodes.length;r++){var i=t.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&No.has(i.provider.token)&&(e.push(n.nodeIndex),n=null)}return e}(t);if(0===e.length)return t;t=t.factory(function(){return kr});for(var n=0;n<e.length;n++)r(t,e[n]);return t;function r(t,e){for(var n=e+1;n<t.nodes.length;n++){var r=t.nodes[n];if(1&r.flags)return;if(3840&r.flags){var i=r.provider,o=No.get(i.token);o&&(r.flags=-3841&r.flags|o.flags,i.deps=qr(o.deps),i.value=o.value)}}}}function Uo(t,e,n,r,i,o,a,s,c,l,u,p,h){var d=t.def.nodes[e];return go(t,d,n,r,i,o,a,s,c,l,u,p,h),224&d.flags?br(t,e).value:void 0}function Ho(t,e,n,r,i,o,a,s,c,l,u,p,h){var d=t.def.nodes[e];return vo(t,d,n,r,i,o,a,s,c,l,u,p,h),224&d.flags?br(t,e).value:void 0}function zo(t){return la($o.detectChanges,mo,null,[t])}function Go(t){return la($o.checkNoChanges,fo,null,[t])}function Wo(t){return la($o.destroy,_o,null,[t])}var qo,Yo,Ko,$o={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};function Xo(t,e){Yo=t,Ko=e}function Qo(t,e,n,r){return Xo(t,e),la($o.handleEvent,t.def.handleEvent,null,[t,e,n,r])}function Zo(t,e){if(128&t.state)throw Sr($o[qo]);return Xo(t,oa(t,0)),t.def.updateDirectives(function(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var a=t.def.nodes[n];0===e?ta(t,a,r,i):ea(t,a,r,i);16384&a.flags&&Xo(t,oa(t,n));return 224&a.flags?br(t,a.nodeIndex).value:void 0},t)}function Jo(t,e){if(128&t.state)throw Sr($o[qo]);return Xo(t,aa(t,0)),t.def.updateRenderer(function(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var a=t.def.nodes[n];0===e?ta(t,a,r,i):ea(t,a,r,i);3&a.flags&&Xo(t,aa(t,n));return 224&a.flags?br(t,a.nodeIndex).value:void 0},t)}function ta(t,e,n,r){if(go.apply(void 0,[t,e,n].concat(r))){var i=1===n?r[0]:r;if(16384&e.flags){for(var o={},a=0;a<e.bindings.length;a++){var s=e.bindings[a],c=i[a];8&s.flags&&(o[na(s.nonMinifiedName)]=ia(c))}var l=e.parent,u=yr(t,l.nodeIndex).renderElement;if(l.element.name)for(var p in o){null!=(c=o[p])?t.renderer.setAttribute(u,p,c):t.renderer.removeAttribute(u,p)}else t.renderer.setValue(u,"bindings="+JSON.stringify(o,null,2))}}}function ea(t,e,n,r){vo.apply(void 0,[t,e,n].concat(r))}function na(t){return"ng-reflect-"+(t=t.replace(/[$@]/g,"_").replace(ra,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()}))}$o[$o.create]="create",$o[$o.detectChanges]="detectChanges",$o[$o.checkNoChanges]="checkNoChanges",$o[$o.destroy]="destroy",$o[$o.handleEvent]="handleEvent";var ra=/([A-Z])/g;function ia(t){try{return null!=t?t.toString().slice(0,30):t}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function oa(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 aa(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}var sa=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=Br(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return yr(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return Oi(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.nodeIndex+1;e<=this.elDef.nodeIndex+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){ca(this.elView,this.elDef,t);for(var e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&ca(this.elView,n,t),e+=n.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=function(t){for(;t&&!zr(t);)t=t.parent;if(t.parent)return yr(t.parent,Br(t).nodeIndex);return null}(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?Ur(this.view,this.nodeDef):Ur(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];2&this.nodeDef.flags?(e=this.view.def,n=this.nodeDef.nodeIndex):(e=this.elView.def,n=this.elDef.nodeIndex);var o=function(t,e){for(var n=-1,r=0;r<=e;r++){var i=t.nodes[r];3&i.flags&&n++}return n}(e,n),a=-1;e.factory(function(){return++a===o?(e=t.error).bind.apply(e,[t].concat(r)):kr;var e}),a<o&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,r))},t}();function ca(t,e,n){for(var r in e.references)n[r]=eo(t,e,e.references[r])}function la(t,e,n,r){var i,o,a=qo,s=Yo,c=Ko;try{qo=t;var l=e.apply(n,r);return Yo=s,Ko=c,qo=a,l}catch(t){if(Ct(t)||!Yo)throw t;throw i=t,o=ua(),i instanceof Error||(i=new Error(i.toString())),Er(i,o),i}}function ua(){return Yo?new sa(Yo,Ko):null}var pa=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new ha(this.delegate.createRenderer(t,e))},t.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},t.prototype.end=function(){this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},t}(),ha=function(){function t(t){this.delegate=t,this.data=this.delegate.data}return t.prototype.destroyNode=function(t){var e;e=Dn(t),Rn.delete(e.nativeNode),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=ua();if(r){var i=new In(n,null,r);i.name=t,Nn(i)}return n},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),n=ua();return n&&Nn(new Mn(e,null,n)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),n=ua();return n&&Nn(new Mn(e,null,n)),e},t.prototype.appendChild=function(t,e){var n=Dn(t),r=Dn(e);n&&r&&n instanceof In&&n.addChild(r),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,n){var r=Dn(t),i=Dn(e),o=Dn(n);r&&i&&r instanceof In&&r.insertBefore(o,i),this.delegate.insertBefore(t,e,n)},t.prototype.removeChild=function(t,e){var n=Dn(t),r=Dn(e);n&&r&&n instanceof In&&n.removeChild(r),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t){var e=this.delegate.selectRootElement(t),n=ua();return n&&Nn(new In(e,null,n)),e},t.prototype.setAttribute=function(t,e,n,r){var i=Dn(t);if(i&&i instanceof In){var o=r?r+":"+e:e;i.attributes[o]=n}this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){var r=Dn(t);if(r&&r instanceof In){var i=n?n+":"+e:e;r.attributes[i]=null}this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){var n=Dn(t);n&&n instanceof In&&(n.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var n=Dn(t);n&&n instanceof In&&(n.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){var i=Dn(t);i&&i instanceof In&&(i.styles[e]=n),this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){var r=Dn(t);r&&r instanceof In&&(r.styles[e]=null),this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){var r=Dn(t);r&&r instanceof In&&(r.properties[e]=n),this.delegate.setProperty(t,e,n)},t.prototype.listen=function(t,e,n){if("string"!=typeof t){var r=Dn(t);r&&r.listeners.push(new Tn(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}();var da=function(t){function e(e,n,r){var i=t.call(this)||this;return i.moduleType=e,i._bootstrapComponents=n,i._ngModuleDefFactory=r,i}return s(e,t),e.prototype.create=function(t){Po();var e=$r(this._ngModuleDefFactory);return Cr.createNgModuleRef(this.moduleType,t||rt.NULL,this._bootstrapComponents,e)},e}(ke);function fa(t){return"string"==typeof t?'"'+t+'"':""+t}function ma(t,e,n,r){t!=e&&va(t,e,n,"==",r)}function ga(t,e){ya(t,null,e)}function ya(t,e,n){t==e&&va(t,e,n,"!=")}function va(t,e,n,r,i){throw void 0===i&&(i=fa),new Error("ASSERT: expected "+n+" "+r+" "+i(e)+" but was "+i(t)+"!")}function ba(t,e){ya(t,null,"node"),ma(3&t.flags,e,"Node.type",_a)}function _a(t){return 1==t?"Projection":0==t?"Container":2==t?"View":3==t?"Element":"??? "+t+" ???"}function wa(t,e,n,r){ngDevMode&&ba(t,0),ngDevMode&&ba(e,2);var i=function(t){for(var e=t;e;){ngDevMode&&ba(e,0);var n=e.data.renderParent;if(null!==n)return n.native;var r=e.parent;if(ngDevMode&&ga(r,"container.parent"),3==(3&r.flags))return null;ngDevMode&&ba(r,2),e=r.parent}return null}(t),o=e.child;if(i)for(;o;){var a=3&o.flags,s=null,c=t.view.renderer,l=c.listen;if(3===a)n?l?c.insertBefore(i,o.native,r):i.insertBefore(o.native,r,!0):l?c.removeChild(i,o.native):i.removeChild(o.native),s=o.next;else if(0===a){var u=o.data;n?l?c.appendChild(i,o.native):i.appendChild(o.native):l?c.removeChild(i,o.native):i.removeChild(o.native),s=u.views.length?u.views[0].child:null}else s=1===a?o.data[0]:o.child;if(null===s){for(;o&&!o.next;)(o=o.parent)===e&&(o=null);o=o&&o.next}else o=s}}function Ca(t,e){var n=t.data.views,r=n[e];return e>0&&xa(n[e-1],r.next),n.splice(e,1),function(t){for(var e=t;e;){var n=null;if(e.views&&e.views.length?n=e.views[0].data:e.child?n=e.child:e.next&&(Sa(e),n=e.next),null==n){for(;e&&!e.next;)Sa(e),e=Ea(e,t);Sa(e||t),n=e&&e.next}e=n}}(r.data),wa(t,r,!1),t.query&&t.query.removeView(t,r,e),r}function xa(t,e){t.next=e,t.data.next=e?e.data:null}function Ea(t,e){var n;return(n=t.node)&&2==(3&n.flags)?n.parent.data:t.parent===e?null:t.parent}function Sa(t){if(t.cleanup){for(var e=t.cleanup,n=0;n<e.length-1;n+=2)"string"==typeof e[n]?(e[n+1].removeEventListener(e[n],e[n+2],e[n+3]),n+=2):e[n].call(e[n+1]);t.cleanup=null}}function ka(t,e,n){if(null!==e&&3==(3&t.flags)&&(t.view!==n||null===t.data)){var r=n.renderer;return r.listen?r.appendChild(t.native,e):t.native.appendChild(e),!0}return!1}function Oa(t){return"function"==typeof t?t.name||t:"string"==typeof t?t:null==t?"":""+t}"undefined"==typeof ngDevMode&&("undefined"!=typeof window&&(window.ngDevMode=!0),"undefined"!=typeof self&&(self.ngDevMode=!0),void 0!==r&&(r.ngDevMode=!0));!function(){function t(){this.dirty=!1,this._valuesTree=null,this._values=null}Object.defineProperty(t.prototype,"length",{get:function(){return ngDevMode&&ga(this._values,"refreshed"),this._values.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){ngDevMode&&ga(this._values,"refreshed");var t=this._values;return t.length?t[0]:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){ngDevMode&&ga(this._values,"refreshed");var t=this._values;return t.length?t[t.length-1]:null},enumerable:!0,configurable:!0}),t.prototype._refresh=function(){return null===this._values&&(this._values=this._valuesTree,!0)},t.prototype.map=function(t){throw new Error("Method not implemented.")},t.prototype.filter=function(t){throw new Error("Method not implemented.")},t.prototype.find=function(t){throw new Error("Method not implemented.")},t.prototype.reduce=function(t,e){throw new Error("Method not implemented.")},t.prototype.forEach=function(t){throw new Error("Method not implemented.")},t.prototype.some=function(t){throw new Error("Method not implemented.")},t.prototype.toArray=function(){return ngDevMode&&ga(this._values,"refreshed"),this._values},t.prototype.toString=function(){throw new Error("Method not implemented.")},t.prototype.reset=function(t){throw new Error("Method not implemented.")},t.prototype.notifyOnChanges=function(){throw new Error("Method not implemented.")},t.prototype.setDirty=function(){throw new Error("Method not implemented.")},t.prototype.destroy=function(){throw new Error("Method not implemented.")}}();var Pa={Important:1,DashCase:2};Pa[Pa.Important]="Important",Pa[Pa.DashCase]="DashCase";var Aa,Ta,Ma,Ia,Ra,Da,Na,La,ja,Fa,Va,Ba={createRenderer:function(t,e){return document}},Ua="__ngHostLNode__";function Ha(t,e){var n=Da;return ja=t.data,Fa=t.bindingStartIndex||0,Ra=t.ngStaticData,La=t.creationMode,Va=t.viewHookStartIndex,t.cleanup,Aa=t.renderer,null!=e&&(Ma=e,Ia=!0),Da=t,n}function za(t){!function(){if(null==Va)return;var t=Va,e=t;for(;t<ja.length;)ja[t+1].call(ja[t+2]),16===ja[t]&&(e<t&&(ja[e]=ja[t],ja[e+1]=ja[t+1],ja[e+2]=ja[t+2]),e+=3),t+=3;ja.length=e}(),Ha(t,null)}function Ga(t,e,n){return{parent:Da,id:t,node:null,data:[],ngStaticData:n,cleanup:null,renderer:e,child:null,tail:null,next:null,bindingStartIndex:null,creationMode:!0,viewHookStartIndex:null}}function Wa(t,e,n,r){var i=Ia?Ma:Ma&&Ma.parent,o=(Ia?Na:Ma&&Ma.query)||i&&i.query&&i.query.child(),a=null!=r,s={flags:e,native:n,view:Da,parent:i,child:null,next:null,nodeInjector:i?i.nodeInjector:null,data:a?r:null,query:o,staticData:null};return 2==(2&e)&&a&&(ngDevMode&&ma(r.node,null,"viewState.node"),r.node=s),null!=t&&(ngDevMode&&ma(ja.length,t,"data.length not in sequence"),ja[t]=s,t>=Ra.length?Ra[t]=null:s.staticData=Ra[t],Ia?(Na=null,Ma.view!==Da&&2!=(3&Ma.flags)||(ngDevMode&&ma(Ma.child,null,"previousNode.child"),Ma.child=s)):Ma&&(ngDevMode&&ma(Ma.next,null,"previousNode.next"),Ma.next=s)),Ma=s,Ia=!0,s}function qa(t){return t.ngStaticData||(t.ngStaticData=[])}function Ya(t,e){return new Error("Renderer: "+t+" ["+Oa(e)+"]")}function Ka(t,e){Ia=!1,Ma=null,Wa(0,3,t,Ga(-1,Aa,qa(e.template)))}function $a(t,e,n,r){return{tagName:t,attrs:e,localNames:r?[r,-1]:null,initialInputs:void 0,inputs:void 0,outputs:void 0,containerStatic:n}}function Xa(t,e){ngDevMode&&ma(Da.bindingStartIndex,null,"bindingStartIndex");var n=null!=e?Aa.createText?Aa.createText(Oa(e)):Aa.createTextNode(Oa(e)):null,r=Wa(t,3,n);Ia=!1,ka(r.parent,n,Da)}function Qa(t,e,n,r){var i;if(null==e)ngDevMode&&rs(t),i=ja[t];else{ngDevMode&&ma(Da.bindingStartIndex,null,"bindingStartIndex"),ngDevMode&&ma(Ia,!0,"isParent");var o=Ma.flags;if(0===(4092&o)?o=t<<12|4|3&o:o+=4,Ma.flags=o,ngDevMode&&rs(t-1),Object.defineProperty(e,Ua,{enumerable:!1,value:Ma}),ja[t]=i=e,t>=Ra.length&&(Ra[t]=n,r)){ngDevMode&&ga(Ma.staticData,"previousOrParentNode.staticData");var a=Ma.staticData;(a.localNames||(a.localNames=[])).push(r,t)}var s=n.diPublic;s&&s(n);var c=Ma.staticData;c&&c.attrs&&function(t,e,n){var r=((4092&Ma.flags)>>2)-1,i=n.initialInputs;(void 0===i||r>=i.length)&&(i=function(t,e,n){var r=n.initialInputs||(n.initialInputs=[]);r[t]=null;for(var i=n.attrs,o=0;o<i.length;o+=2){var a=i[o],s=e[a];if(void 0!==s){var c=r[t]||(r[t]=[]);c.push(s,i[1|o])}}return r}(r,e,n));var o=i[r];if(o)for(var a=0;a<o.length;a+=2)t[o[a]]=o[1|a]}(i,n.inputs,c)}return i}Da=Ga(null,null,[]);var Za=function(t,e,n){ngDevMode&&rs(e);var r=ja[e];ngDevMode&&ba(r,3),ngDevMode&&ya(r.data,null,"isComponent"),ngDevMode&&rs(t);var i=r.data;ngDevMode&&ya(i,null,"hostView");var o=ja[t],a=Ha(i,r);try{n(o,La)}finally{i.creationMode=!1,za(a)}};function Ja(t){return Da.tail?Da.tail.next=t:Da.child=t,Da.tail=t,t}var ts={};function es(t){var e,n,r;return(e=La)?("number"!=typeof Da.bindingStartIndex&&(Fa=Da.bindingStartIndex=ja.length),ja[Fa++]=t):((e=t!==ts&&(n=ja[Fa],r=t,!(n!=n&&r!=r)&&n!==r))&&(ja[Fa]=t),Fa++),e?t:ts}function ns(){ya(Ma.parent,null,"isParent")}function rs(t,e){var n,r;null==e&&(e=ja),(n=e?e.length:0)<(r=t)&&va(n,r,"data.length",">")}function is(t){ngDevMode&&ga(t,"component");var e=t[Ua];ngDevMode&&!e&&Ya("Not a directive instance",t),ngDevMode&&ga(e.data,"hostNode.data"),function(t,e,n,r){var i=Ha(e,t);try{Ta.begin&&Ta.begin(),r?(Ra=r.ngStaticData||(r.ngStaticData=[]),r(n,La)):n.constructor.ngComponentDef.r(1,0)}finally{Ta.end&&Ta.end(),e.creationMode=!1,za(i)}}(e,e.view,t),!1}var os={};function as(){}function ss(t){if(null==t)return os;var e={};for(var n in t)e[t[n]]=n;return e}function cs(t,e){return{type:7,name:t,definitions:e,options:{}}}function ls(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}}function us(t,e){return void 0===e&&(e=null),{type:3,steps:t,options:e}}function ps(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}}function hs(t){return{type:6,styles:t,offset:null}}function ds(t,e,n){return{type:0,name:t,styles:e,options:n}}function fs(t){return{type:5,steps:t}}function ms(t,e,n){return void 0===n&&(n=null),{type:1,expr:t,animation:e,options:n}}t.createPlatform=en,t.assertPlatform=rn,t.destroyPlatform=function(){Ke&&!Ke.destroyed&&Ke.destroy()},t.getPlatform=on,t.PlatformRef=an,t.ApplicationRef=cn,t.enableProdMode=function(){if(Qe)throw new Error("Cannot enable prod mode after platform setup.");Xe=!1},t.isDevMode=Je,t.createPlatformFactory=nn,t.NgProbeToken=tn,t.APP_ID=ee,t.PACKAGE_ROOT_URL=ce,t.PLATFORM_INITIALIZER=oe,t.PLATFORM_ID=ae,t.APP_BOOTSTRAP_LISTENER=se,t.APP_INITIALIZER=Jt,t.ApplicationInitStatus=te,t.DebugElement=In,t.DebugNode=Mn,t.asNativeElements=function(t){return t.map(function(t){return t.nativeElement})},t.getDebugNode=Dn,t.Testability=qe,t.TestabilityRegistry=Ye,t.setTestabilityGetter=function(t){$e=t},t.TRANSLATIONS=or,t.TRANSLATIONS_FORMAT=ar,t.LOCALE_ID=ir,t.MissingTranslationStrategy=sr,t.ApplicationModule=pr,t.wtfCreateScope=De,t.wtfLeave=Ne,t.wtfStartTimeRange=Le,t.wtfEndTimeRange=je,t.Type=It,t.EventEmitter=Fe,t.ErrorHandler=St,t.Sanitizer=dr,t.SecurityContext=hr,t.ANALYZE_FOR_ENTRY_COMPONENTS=y,t.Attribute=v,t.ContentChild=w,t.ContentChildren=_,t.Query=b,t.ViewChild=x,t.ViewChildren=C,t.Component=O,t.Directive=k,t.HostBinding=M,t.HostListener=I,t.Input=A,t.Output=T,t.Pipe=P,t.CUSTOM_ELEMENTS_SCHEMA={name:"custom-elements"},t.NO_ERRORS_SCHEMA={name:"no-errors-schema"},t.NgModule=R,t.ViewEncapsulation=D,t.Version=N,t.VERSION=L,t.forwardRef=Q,t.resolveForwardRef=Z,t.Injector=rt,t.ReflectiveInjector=Xt,t.ResolvedReflectiveFactory=Ht,t.ReflectiveKey=Tt,t.InjectionToken=l,t.Inject=j,t.Optional=F,t.Injectable=V,t.Self=B,t.SkipSelf=U,t.Host=H,t.NgZone=Ve,t.RenderComponentType=un,t.Renderer=hn,t.Renderer2=gn,t.RendererFactory2=fn,t.RendererStyleFlags2=mn,t.RootRenderer=dn,t.COMPILER_OPTIONS=de,t.Compiler=he,t.CompilerFactory=fe,t.ModuleWithComponentFactories=ue,t.ComponentFactory=ge,t.ComponentRef=me,t.ComponentFactoryResolver=Ce,t.ElementRef=yn,t.NgModuleFactory=ke,t.NgModuleRef=Se,t.NgModuleFactoryLoader=vn,t.getModuleFactory=function(t){var e=bn.get(t);if(!e)throw new Error("No module with ID "+t+" loaded");return e},t.QueryList=_n,t.SystemJsNgModuleLoader=xn,t.SystemJsNgModuleLoaderConfig=wn,t.TemplateRef=Sn,t.ViewContainerRef=kn,t.EmbeddedViewRef=An,t.ViewRef=Pn,t.ChangeDetectionStrategy=E,t.ChangeDetectorRef=On,t.DefaultIterableDiffer=zn,t.IterableDiffers=Qn,t.KeyValueDiffers=Zn,t.SimpleChange=Fn,t.WrappedValue=jn,t.platformCore=rr,t.ɵALLOW_MULTIPLE_PLATFORMS=Ze,t.ɵAPP_ID_RANDOM_PROVIDER=re,t.ɵdevModeEqual=Ln,t.ɵisListLikeIterable=Vn,t.ɵChangeDetectorStatus=S,t.ɵisDefaultChangeDetectionStrategy=function(t){return null==t||t===E.Default},t.ɵConsole=le,t.ɵComponentFactory=ge,t.ɵCodegenComponentFactoryResolver=xe,t.ɵReflectionCapabilities=Nt,t.ɵRenderDebugInfo=pn,t.ɵglobal=W,t.ɵlooseIdentical=$,t.ɵstringify=X,t.ɵmakeDecorator=d,t.ɵisObservable=function(t){return!!t&&"function"==typeof t.subscribe},t.ɵisPromise=Zt,t.ɵclearOverrides=function(){return Po(),Cr.clearOverrides()},t.ɵoverrideComponentView=function(t,e){return Po(),Cr.overrideComponentView(t,e)},t.ɵoverrideProvider=function(t){return Po(),Cr.overrideProvider(t)},t.ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR=Wi,t.ɵdefineComponent=function(t){var e={type:t.type,diPublic:null,n:t.factory,tag:t.tag||null,template:t.template||null,r:t.refresh||function(e,n){Za(e,n,t.template)},h:t.hostBindings||as,inputs:ss(t.inputs),outputs:ss(t.outputs),methods:ss(t.methods),rendererType:Ir(t.rendererType)||null},n=t.features;return n&&n.forEach(function(t){return t(e)}),e},t.ɵdetectChanges=is,t.ɵrenderComponent=function(t,e){void 0===e&&(e={});var n,r=e.rendererFactory||Ba,i=t.ngComponentDef,o=function(t,e){ngDevMode&&rs(-1),Ta=t;var n=t.createRenderer(null,null),r="string"==typeof e?n.selectRootElement?n.selectRootElement(e):n.querySelector(e):e;if(ngDevMode&&!r)throw Ya("string"==typeof e?"Host node with selector not found:":"Host node is required:",e);return r}(r,e.host||i.tag),a=Ha(Ga(-1,r.createRenderer(o,i.rendererType),[]),null);try{Ka(o,i),n=Qa(1,i.n(),i)}finally{za(a)}return e.features&&e.features.forEach(function(t){return t(n,i)}),is(n),n},t.ɵC=function(t,e,n,r,i){ngDevMode&&ma(Da.bindingStartIndex,null,"bindingStartIndex");var o=Aa.createComment(ngDevMode?"container":""),a=null,s=Ia?Ma:Ma.parent;ngDevMode&&ya(s,null,"currentParent"),ka(s,o,Da)&&(a=s);var c=Wa(t,0,o,{views:[],nextIndex:0,renderParent:a,template:null==e?null:e,next:null,parent:Da});null==c.staticData&&(c.staticData=Ra[t]=$a(n||null,r||null,[],i||null)),Ja(c.data)},t.ɵD=Qa,t.ɵE=function(t,e,n,r){var i,o;if(null==e){var a=ja[t];o=a&&a.native}else{ngDevMode&&ma(Da.bindingStartIndex,null,"bindingStartIndex");var s="string"!=typeof e,c=s?e.tag:e;if(null===c)throw"for now name is required";o=Aa.createElement(c);var l=null;if(s){var u=qa(e.template);l=Ja(Ga(-1,Ta.createRenderer(o,e.rendererType),u))}null==(i=Wa(t,3,o,l)).staticData&&(ngDevMode&&rs(t-1),i.staticData=Ra[t]=$a(c,n||null,null,r||null)),n&&function(t,e){ngDevMode&&ma(e.length%2,0,"attrs.length % 2");for(var n=Aa.setAttribute,r=0;r<e.length;r+=2)n?Aa.setAttribute(t,e[r],e[1|r]):t.setAttribute(e[r],e[1|r])}(o,n),ka(i.parent,o,Da)}return o},t.ɵT=Xa,t.ɵV=function(t){var e=Ia?Ma:Ma.parent;ngDevMode&&ba(e,0);var n=e.data,r=n.views,i=!La&&n.nextIndex<r.length&&r[n.nextIndex],o=i&&t===i.data.id;if(o)Ma=r[n.nextIndex++],ngDevMode&&ba(Ma,2),Ia=!0,Ha(i.data,Ma);else{var a=Ga(t,Aa,function(t,e){ngDevMode&&ba(e,0);var n=e.staticData.containerStatic;return(t>=n.length||null==n[t])&&(n[t]=[]),n[t]}(t,e));Ha(a,Wa(null,2,null,a)),n.nextIndex++}return!o},t.ɵb=es,t.ɵb1=function(t,e,n){return es(e)===ts?ts:t+Oa(e)+n},t.ɵc=function(){Ia?Ia=!1:(ngDevMode&&ns(),Ma=Ma.parent),ngDevMode&&ba(Ma,0);var t=Ma.query;t&&t.addNode(Ma)},t.ɵcR=function(t){ngDevMode&&rs(t),Ma=ja[t],ngDevMode&&ba(Ma,0),Ia=!0,Ma.data.nextIndex=0},t.ɵcr=function(){Ia?Ia=!1:(ngDevMode&&ba(Ma,2),ngDevMode&&ns(),Ma=Ma.parent),ngDevMode&&ba(Ma,0);var t=Ma;ngDevMode&&ba(t,0);for(var e=t.data.nextIndex;e<t.data.views.length;)Ca(t,e)},t.ɵe=function(){Ia?Ia=!1:(ngDevMode&&ns(),Ma=Ma.parent),ngDevMode&&ba(Ma,3);var t=Ma.query;t&&t.addNode(Ma)},t.ɵp=function(t,e,n){if(n!==ts){var r=ja[t],i=r.staticData;void 0===i.inputs&&(i.inputs=null,i=function(t,e,n){void 0===n&&(n=!1);for(var r=t>>12,i=r,o=r+((4092&t)>>2);i<o;i++){var a=Ra[i],s=n?a.inputs:a.outputs;for(var c in s)if(s.hasOwnProperty(c)){var l=s[c],u=n?e.inputs||(e.inputs={}):e.outputs||(e.outputs={}),p=u.hasOwnProperty(c);p?u[c].push(i,l):u[c]=[i,l]}}return e}(r.flags,i,!0));var o,a=i.inputs;if(a&&(o=a[e]))!function(t,e){for(var n=0;n<t.length;n+=2)ngDevMode&&rs(t[n]),ja[t[n]][t[1|n]]=e}(o,n);else{var s=r.native;Aa.setProperty?Aa.setProperty(s,e,n):s.setProperty?s.setProperty(e,n):s[e]=n}}},t.ɵs=function(t,e,n,r){if(n!==ts){var i=ja[t];null==n?Aa.removeStyle?Aa.removeStyle(i.native,e,Pa.DashCase):i.native.style.removeProperty(e):Aa.setStyle?Aa.setStyle(i.native,e,r?Oa(n)+r:Oa(n),Pa.DashCase):i.native.style.setProperty(e,r?Oa(n)+r:Oa(n))}},t.ɵt=function(t,e){var n=t<ja.length&&ja[t];n&&n.native?e!==ts&&(Aa.setValue?Aa.setValue(n.native,Oa(e)):n.native.textContent=Oa(e)):n?(n.native=Aa.createText?Aa.createText(Oa(e)):Aa.createTextNode(Oa(e)),function(t,e){var n=t.parent;if(3==(3&n.flags)&&(n.view!==e||null===n.data)){for(var r=t.next,i=null;r&&null===(i=r.native);)r=r.next;var o=e.renderer;o.listen?o.insertBefore(n.native,t.native,i):n.native.insertBefore(t.native,i,!1)}}(n,Da)):Xa(t,e)},t.ɵv=function(){Ia=!1;var t=Ma=Da.node,e=Ma.parent;ngDevMode&&ba(t,2),ngDevMode&&ba(e,0);var n,r,i,o,a,s,c,l,u,p=e.data,h=p.nextIndex<=p.views.length?p.views[p.nextIndex-1]:null;(null==h||h.data.id!==t.data.id)&&(n=e,r=t,i=p.nextIndex-1,l=n.data,u=l.views,i>0&&xa(u[i-1],r),i<u.length&&u[i].data.id!==r.data.id?(xa(r,u[i]),u.splice(i,0,r)):i>=u.length&&u.push(r),l.nextIndex<=i&&l.nextIndex++,null!==n.data.renderParent&&wa(n,r,!0,(o=i,a=l,s=n.native,c=a.views,o+1<c.length?c[o+1].child.native:s)),n.query&&n.query.insertView(n,r,i),Da.creationMode=!1),za(Da.parent),ngDevMode&&ma(Ia,!1,"isParent"),ngDevMode&&ba(Ma,2)},t.ɵregisterModuleFactory=function(t,e){var n=bn.get(t);if(n)throw new Error("Duplicate module registered for "+t+" - "+n.moduleType.name+" vs "+e.moduleType.name);bn.set(t,e)},t.ɵEMPTY_ARRAY=[],t.ɵEMPTY_MAP={},t.ɵand=function(t,e,n,r,i,o){t|=1;var a=Wr(e),s=a.matchedQueries,c=a.references;return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:s,matchedQueryIds:a.matchedQueryIds,references:c,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:o?$r(o):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||kr},provider:null,text:null,query:null,ngContent:null}},t.ɵccf=function(t,e,n,r,i,o){return new Ci(t,e,n,r,i,o)},t.ɵcmf=function(t,e,n){return new da(t,e,n)},t.ɵcrt=function(t){return{id:Ar,styles:t.styles,encapsulation:t.encapsulation,data:t.data}},t.ɵdid=function(t,e,n,r,i,o,a,s){var c=[];if(a)for(var l in a){var u=a[l],p=u[0],h=u[1];c[p]={flags:8,name:l,nonMinifiedName:h,ns:null,securityContext:null,suffix:null}}var d=[];if(s)for(var f in s)d.push({type:1,propName:f,target:null,eventName:s[f]});return Vi(t,e|=16384,n,r,i,i,o,c,d)},t.ɵeld=function(t,e,n,r,i,o,a,s,c,l,u,p){void 0===a&&(a=[]),l||(l=kr);var h=Wr(n),d=h.matchedQueries,f=h.references,m=h.matchedQueryIds,g=null,y=null;o&&(g=(R=ni(o))[0],y=R[1]),s=s||[];for(var v=new Array(s.length),b=0;b<s.length;b++){var _=s[b],w=_[0],C=_[1],x=_[2],E=ni(C),S=E[0],k=E[1],O=void 0,P=void 0;switch(15&w){case 4:P=x;break;case 1:case 8:O=x}v[b]={flags:w,ns:S,name:k,nonMinifiedName:k,securityContext:O,suffix:P}}c=c||[];var A=new Array(c.length);for(b=0;b<c.length;b++){var T=c[b],M=T[0],I=T[1];A[b]={type:0,target:M,eventName:I,propName:null}}var R,D=(a=a||[]).map(function(t){var e=t[0],n=t[1],r=ni(e);return[r[0],r[1],n]});return p=Ir(p),u&&(e|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:m,references:f,ngContentIndex:r,childCount:i,bindings:v,bindingFlags:ri(v),outputs:A,element:{ns:g,name:y,attrs:D,template:null,componentProvider:null,componentView:u||null,componentRendererType:p,publicProviders:null,allProviders:null,handleEvent:l||kr},provider:null,text:null,query:null,ngContent:null}},t.ɵelementEventFullName=Hr,t.ɵgetComponentViewDefinitionFactory=wi,t.ɵinlineInterpolate=function(t,e,n,r,i,o,a,s,c,l,u,p,h,d,f,m,g,y,v,b){switch(t){case 1:return e+ii(n)+r;case 2:return e+ii(n)+r+ii(i)+o;case 3:return e+ii(n)+r+ii(i)+o+ii(a)+s;case 4:return e+ii(n)+r+ii(i)+o+ii(a)+s+ii(c)+l;case 5:return e+ii(n)+r+ii(i)+o+ii(a)+s+ii(c)+l+ii(u)+p;case 6:return e+ii(n)+r+ii(i)+o+ii(a)+s+ii(c)+l+ii(u)+p+ii(h)+d;case 7:return e+ii(n)+r+ii(i)+o+ii(a)+s+ii(c)+l+ii(u)+p+ii(h)+d+ii(f)+m;case 8:return e+ii(n)+r+ii(i)+o+ii(a)+s+ii(c)+l+ii(u)+p+ii(h)+d+ii(f)+m+ii(g)+y;case 9:return e+ii(n)+r+ii(i)+o+ii(a)+s+ii(c)+l+ii(u)+p+ii(h)+d+ii(f)+m+ii(g)+y+ii(v)+b;default:throw new Error("Does not support more than 9 expressions")}},t.ɵinterpolate=function(t,e){for(var n="",r=0;r<2*t;r+=2)n=n+e[r]+ii(e[r+1]);return n+e[2*t]},t.ɵmod=function(t){for(var e={},n=0;n<t.length;n++){var r=t[n];r.index=n,e[Pr(r.token)]=r}return{factory:null,providersByKey:e,providers:t}},t.ɵmpd=function(t,e,n,r){return n=Z(n),{index:-1,deps:qr(r,X(e)),flags:t,token:e,value:n}},t.ɵncd=function(t,e){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-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}}},t.ɵnov=function(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=yr(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return gr(t,n.nodeIndex).renderText;if(20240&n.flags)return vr(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)},t.ɵpid=function(t,e,n){return Vi(-1,t|=16,null,0,e,e,n)},t.ɵprd=function(t,e,n,r,i){return Vi(-1,t,e,0,n,r,i)},t.ɵpad=function(t,e){return no(32,t,new Array(e))},t.ɵpod=function(t,e){for(var n=Object.keys(e),r=n.length,i=new Array(r),o=0;o<r;o++){var a=n[o];i[e[a]]=a}return no(64,t,i)},t.ɵppd=function(t,e){return no(128,t,new Array(e+1))},t.ɵqud=function(t,e,n){var r=[];for(var i in n){var o=n[i];r.push({propName:i,bindingType:o})}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-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:Gr(e),bindings:r},ngContent:null}},t.ɵted=function(t,e,n){for(var r=new Array(n.length-1),i=1;i<n.length;i++)r[i-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[i]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}},t.ɵunv=function(t,e,n,r){if(jn.isWrapped(r)){r=jn.unwrap(r);var i=t.def.nodes[e].bindingIndex+n,o=jn.unwrap(t.oldValues[i]);t.oldValues[i]=new jn(o)}return r},t.ɵvid=function(t,e,n,r){for(var i=0,o=0,a=0,s=0,c=0,l=null,u=null,p=!1,h=!1,d=null,f=0;f<e.length;f++){var m=e[f];if(m.nodeIndex=f,m.parent=l,m.bindingIndex=i,m.outputIndex=o,m.renderParent=u,a|=m.flags,c|=m.matchedQueryIds,m.element){var g=m.element;g.publicProviders=l?l.element.publicProviders:Object.create(null),g.allProviders=g.publicProviders,p=!1,h=!1,m.element.template&&(c|=m.element.template.nodeMatchedQueries)}if(ao(l,m,e.length),i+=m.bindings.length,o+=m.outputs.length,!u&&3&m.flags&&(d=m),20224&m.flags){p||(p=!0,l.element.publicProviders=Object.create(l.element.publicProviders),l.element.allProviders=l.element.publicProviders);var y=0!=(8192&m.flags),v=0!=(32768&m.flags);!y||v?l.element.publicProviders[Pr(m.provider.token)]=m:(h||(h=!0,l.element.allProviders=Object.create(l.element.publicProviders)),l.element.allProviders[Pr(m.provider.token)]=m),v&&(l.element.componentProvider=m)}if(l?(l.childFlags|=m.flags,l.directChildFlags|=m.flags,l.childMatchedQueries|=m.matchedQueryIds,m.element&&m.element.template&&(l.childMatchedQueries|=m.element.template.nodeMatchedQueries)):s|=m.flags,m.childCount>0)l=m,oo(m)||(u=m);else for(;l&&f===l.nodeIndex+l.childCount;){var b=l.parent;b&&(b.childFlags|=l.childFlags,b.childMatchedQueries|=l.childMatchedQueries),u=(l=b)&&oo(l)?l.renderParent:l}}return{factory:null,nodeFlags:a,rootNodeFlags:s,nodeMatchedQueries:c,flags:t,nodes:e,updateDirectives:n||kr,updateRenderer:r||kr,handleEvent:function(t,n,r,i){return e[n].element.handleEvent(t,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:d}},t.AUTO_STYLE="*",t.trigger=function(t,e){return cs(t,e)},t.animate=function(t,e){return ls(t,e)},t.group=function(t){return us(t)},t.sequence=function(t){return ps(t)},t.style=function(t){return hs(t)},t.state=function(t,e){return ds(t,e)},t.keyframes=function(t){return fs(t)},t.transition=function(t,e){return ms(t,e)},t.ɵbf=ls,t.ɵbg=us,t.ɵbk=fs,t.ɵbh=ps,t.ɵbj=ds,t.ɵbi=hs,t.ɵbl=ms,t.ɵbe=cs,t.ɵn=cr,t.ɵo=lr,t.ɵq=ur,t.ɵi=ne,t.ɵj=er,t.ɵk=nr,t.ɵl=Un,t.ɵm=Kn,t.ɵf=Qt,t.ɵg=Vt,t.ɵh=Wt,t.ɵr=Ie,t.ɵw=Pe,t.ɵu=Oe,t.ɵz=Me,t.ɵx=Ae,t.ɵy=Te,t.ɵbc=Oa,t.ɵa=m,t.ɵd=g,t.ɵba=Vi,t.ɵbb=wr,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?o(n,t("rxjs/Observable"),t("rxjs/observable/merge"),t("rxjs/operator/share"),t("rxjs/Subject")):o((i.ng=i.ng||{},i.ng.core={}),i.Rx,i.Rx.Observable,i.Rx.Observable.prototype,i.Rx)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"rxjs/Observable":68,"rxjs/Subject":72,"rxjs/observable/merge":99,"rxjs/operator/share":114}],59:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i,o){"use strict";var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function s(t,e){function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var c=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},l=function(){function t(){}return 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,"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,"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,"status",{get:function(){return this.control?this.control.status: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,"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}(),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(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);function p(t){return null==t||0===t.length}var h=new e.InjectionToken("NgValidators"),d=new e.InjectionToken("NgAsyncValidators"),f=/^(?=.{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])?)*$/,m=function(){function t(){}return t.min=function(t){return function(e){if(p(e.value)||p(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}},t.max=function(t){return function(e){if(p(e.value)||p(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return p(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return f.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(p(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){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(p(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(g);return 0==e.length?null:function(t){return v((n=t,e.map(function(t){return t(n)})));var n}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(g);return 0==e.length?null:function(t){var r,o,a=(r=t,o=e,o.map(function(t){return t(r)})).map(y);return i.map.call(n.forkJoin(a),v)}},t}();function g(t){return null!=t}function y(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 v(t){var e=t.reduce(function(t,e){return null!=e?c({},t,e):t},{});return 0===Object.keys(e).length?null:e}var b=new e.InjectionToken("NgValueAccessor"),_={provide:b,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.setProperty(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.setProperty(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:[_]}]}],t.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef}]},t}(),C={provide:b,useExisting:e.forwardRef(function(){return E}),multi:!0};var x=new e.InjectionToken("CompositionEventMode"),E=function(){function t(t,e,n){var r;this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=o.ɵgetDOM()?o.ɵgetDOM().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setProperty(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.setProperty(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.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)":"$any(this)._handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"$any(this)._compositionStart()","(compositionend)":"$any(this)._compositionEnd($event.target.value)"},providers:[C]}]}],t.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[x]}]}]},t}();function S(t){return t.validate?function(e){return t.validate(e)}:t}function k(t){return t.validate?function(e){return t.validate(e)}:t}var O={provide:b,useExisting:e.forwardRef(function(){return P}),multi:!0},P=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.setProperty(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.setProperty(this._elementRef.nativeElement,"disabled",t)},t.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:[O]}]}],t.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef}]},t}();function A(){throw new Error("unimplemented")}var T=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return s(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return A()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return A()},enumerable:!0,configurable:!0}),e}(l),M={provide:b,useExisting:e.forwardRef(function(){return R}),multi:!0},I=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.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}(),R=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(T),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.setProperty(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.setProperty(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.decorators=[{type:e.Directive,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[M]}]}],t.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef},{type:I},{type:e.Injector}]},t.propDecorators={name:[{type:e.Input}],formControlName:[{type:e.Input}],value:[{type:e.Input}]},t}(),D={provide:b,useExisting:e.forwardRef(function(){return N}),multi:!0},N=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.setProperty(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.setProperty(this._elementRef.nativeElement,"disabled",t)},t.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:[D]}]}],t.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef}]},t}(),L={provide:b,useExisting:e.forwardRef(function(){return F}),multi:!0};function j(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}var F=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.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=j(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(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=t.split(":")[0];return this._optionMap.has(e)?this._optionMap.get(e):t},t.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:[L]}]}],t.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef}]},t.propDecorators={compareWith:[{type:e.Input}]},t}(),V=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(j(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.setProperty(this._element.nativeElement,"value",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t.decorators=[{type:e.Directive,args:[{selector:"option"}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2},{type:F,decorators:[{type:e.Optional},{type:e.Host}]}]},t.propDecorators={ngValue:[{type:e.Input,args:["ngValue"]}],value:[{type:e.Input,args:["value"]}]},t}(),B={provide:b,useExisting:e.forwardRef(function(){return H}),multi:!0};function U(t,e){return null==t?""+e:("string"==typeof e&&(e="'"+e+"'"),e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}var H=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,n=this;if(this.value=t,Array.isArray(t)){var r=t.map(function(t){return n._getOptionId(t)});e=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o<i.length;o++){var a=i.item(o),s=e._getOptionValue(a.value);r.push(s)}else for(i=n.options,o=0;o<i.length;o++){if((a=i.item(o)).selected){s=e._getOptionValue(a.value);r.push(s)}}e.value=r,t(r)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(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.split(":")[0];return this._optionMap.has(e)?this._optionMap.get(e)._value:t},t.decorators=[{type:e.Directive,args:[{selector:"select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]",host:{"(change)":"onChange($event.target)","(blur)":"onTouched()"},providers:[B]}]}],t.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef}]},t.propDecorators={compareWith:[{type:e.Input}]},t}(),z=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(U(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(U(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setProperty(this._element.nativeElement,"value",t)},t.prototype._setSelected=function(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t.decorators=[{type:e.Directive,args:[{selector:"option"}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2},{type:H,decorators:[{type:e.Optional},{type:e.Host}]}]},t.propDecorators={ngValue:[{type:e.Input,args:["ngValue"]}],value:[{type:e.Input,args:["value"]}]},t}();function G(t,e){return e.path.concat([t])}function W(t,e){var n,r,i,o,a;t||$(e,"Cannot find control with"),e.valueAccessor||$(e,"No value accessor for form control with"),t.validator=m.compose([t.validator,e.validator]),t.asyncValidator=m.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),n=t,(r=e).valueAccessor.registerOnChange(function(t){n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&q(n,r)}),i=e,t.registerOnChange(function(t,e){i.valueAccessor.writeValue(t),e&&i.viewToModelUpdate(t)}),o=t,(a=e).valueAccessor.registerOnTouched(function(){o._pendingTouched=!0,"blur"===o.updateOn&&o._pendingChange&&q(o,a),"submit"!==o.updateOn&&o.markAsTouched()}),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 q(t,e){e.viewToModelUpdate(t._pendingValue),t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),t._pendingChange=!1}function Y(t,e){null==t&&$(e,"Cannot find control with"),t.validator=m.compose([t.validator,e.validator]),t.asyncValidator=m.composeAsync([t.asyncValidator,e.asyncValidator])}function K(t){return $(t,"There is no FormControl instance attached to form control element with")}function $(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 X(t){return null!=t?m.compose(t.map(S)):null}function Q(t){return null!=t?m.composeAsync(t.map(k)):null}function Z(t,n){if(!t.hasOwnProperty("model"))return!1;var r=t.model;return!!r.isFirstChange()||!e.ɵlooseIdentical(n,r.currentValue)}var J=[w,N,P,F,H,R];function tt(t,e){t._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function et(t,e){if(!e)return null;var n=void 0,r=void 0,i=void 0;return e.forEach(function(e){var o;e.constructor===E?n=e:(o=e,J.some(function(t){return o.constructor===t})?(r&&$(t,"More than one built-in value accessor matches form control with"),r=e):(i&&$(t,"More than one custom value accessor matches form control with"),i=e))}),i||(r||(n||($(t,"No valid value accessor for form control with"),null)))}function nt(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(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 G(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 X(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Q(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(u),it=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}(),ot={"[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"},at=function(t){function n(e){return t.call(this,e)||this}return s(n,t),n.decorators=[{type:e.Directive,args:[{selector:"[formControlName],[ngModel],[formControl]",host:ot}]}],n.ctorParameters=function(){return[{type:T,decorators:[{type:e.Self}]}]},n}(it),st=function(t){function n(e){return t.call(this,e)||this}return s(n,t),n.decorators=[{type:e.Directive,args:[{selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:ot}]}],n.ctorParameters=function(){return[{type:u,decorators:[{type:e.Self}]}]},n}(it),ct="VALID",lt="INVALID",ut="PENDING",pt="DISABLED";function ht(t){var e=ft(t)?t.validators:t;return Array.isArray(e)?X(e):e||null}function dt(t,e){var n=ft(e)?e.asyncValidators:t;return Array.isArray(n)?Q(n):n||null}function ft(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var mt=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,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.status===ct},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.status===lt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.status==ut},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.status===pt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.status!==pt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=ht(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=dt(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){void 0===t&&(t={}),this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)},t.prototype.markAsUntouched=function(t){void 0===t&&(t={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype.markAsDirty=function(t){void 0===t&&(t={}),this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)},t.prototype.markAsPristine=function(t){void 0===t&&(t={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype.markAsPending=function(t){void 0===t&&(t={}),this.status=ut,this._parent&&!t.onlySelf&&this._parent.markAsPending(t)},t.prototype.disable=function(t){void 0===t&&(t={}),this.status=pt,this.errors=null,this._forEachChild(function(t){t.disable({onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(!!t.onlySelf),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){void 0===t&&(t={}),this.status=ct,this._forEachChild(function(t){t.enable({onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(!!t.onlySelf),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.updateValueAndValidity=function(t){void 0===t&&(t={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==ct&&this.status!==ut||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)},t.prototype._updateTreeValidity=function(t){void 0===t&&(t={emitEvent:!0}),this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})},t.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?pt:ct},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this.status=ut;var n=y(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){void 0===e&&(e={}),this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)},t.prototype.get=function(t){return e=this,r=".",null==(n=t)?null:(n instanceof Array||(n=n.split(r)),n instanceof Array&&0===n.length?null:n.reduce(function(t,e){return t instanceof yt?t.controls[e]||null:t instanceof vt&&t.at(e)||null},e));var e,n,r},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()?pt:this.errors?lt:this._anyControlsHaveStatus(ut)?ut:this._anyControlsHaveStatus(lt)?lt:ct},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){void 0===t&&(t={}),this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype._updateTouched=function(t){void 0===t&&(t={}),this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},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.prototype._setUpdateStrategy=function(t){ft(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t}(),gt=function(t){function e(e,n,r){void 0===e&&(e=null);var i=t.call(this,ht(n),dt(r,n))||this;return i._onChange=[],i._applyFormState(e),i._setUpdateStrategy(n),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return s(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this.value=this._pendingValue=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),this._pendingChange=!1},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._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange))&&(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0)},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t},e}(mt),yt=function(t){function e(e,n,r){var i=t.call(this,ht(n),dt(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return s(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 gt?e.value:e.getRawValue(),t})},e.prototype._syncPendingControls=function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),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,i){n=n||e.contains(i)&&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}(mt),vt=function(t){function e(e,n,r){var i=t.call(this,ht(n),dt(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return s(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 gt?t.value:t.getRawValue()})},e.prototype._syncPendingControls=function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},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}(mt),bt={provide:u,useExisting:e.forwardRef(function(){return wt})},_t=Promise.resolve(null),wt=function(t){function n(n,r){var i=t.call(this)||this;return i.submitted=!1,i._directives=[],i.ngSubmit=new e.EventEmitter,i.form=new yt({},X(n),Q(r)),i}return s(n,t),n.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},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;_t.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}),e._directives.push(t)})},n.prototype.getControl=function(t){return this.form.get(t.path)},n.prototype.removeControl=function(t){var e=this;_t.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),nt(e._directives,t)})},n.prototype.addFormGroup=function(t){var e=this;_t.then(function(){var n=e._findContainer(t.path),r=new yt({});Y(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},n.prototype.removeFormGroup=function(t){var e=this;_t.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;_t.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,tt(this.form,this._directives),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._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},n.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},n.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"}]}],n.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[h]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[d]}]}]},n.propDecorators={options:[{type:e.Input,args:["ngFormOptions"]}]},n}(u),Ct='\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    });',xt='\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    });',Et='\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    });',St='\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>',kt='\n    <div [formGroup]="myGroup">\n       <input formControlName="firstName">\n       <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n    </div>\n  ',Ot=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      '+Ct+"\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      "+kt)},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      "+xt+"\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      "+St)},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      "+xt+"\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      "+St)},t}(),Pt={provide:u,useExisting:e.forwardRef(function(){return At})},At=function(t){function n(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return s(n,t),n.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof wt||Ot.modelGroupParentException()},n.decorators=[{type:e.Directive,args:[{selector:"[ngModelGroup]",providers:[Pt],exportAs:"ngModelGroup"}]}],n.ctorParameters=function(){return[{type:u,decorators:[{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[h]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[d]}]}]},n.propDecorators={name:[{type:e.Input,args:["ngModelGroup"]}]},n}(rt),Tt={provide:T,useExisting:e.forwardRef(function(){return It})},Mt=Promise.resolve(null),It=function(t){function n(n,r,i,o){var a=t.call(this)||this;return a.control=new gt,a._registered=!1,a.update=new e.EventEmitter,a._parent=n,a._rawValidators=r||[],a._rawAsyncValidators=i||[],a.valueAccessor=et(a,o),a}return s(n,t),n.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Z(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,"path",{get:function(){return this._parent?G(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 X(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return Q(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),n.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},n.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},n.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},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 At)&&this._parent instanceof rt?Ot.formGroupNameException():this._parent instanceof At||this._parent instanceof wt||Ot.modelParentException()},n.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Ot.missingNameException()},n.prototype._updateValue=function(t){var e=this;Mt.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;Mt.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},n.decorators=[{type:e.Directive,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[Tt],exportAs:"ngModel"}]}],n.ctorParameters=function(){return[{type:u,decorators:[{type:e.Optional},{type:e.Host}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[h]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[d]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[b]}]}]},n.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"]}]},n}(T),Rt=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      "+Ct)},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        '+xt+"\n\n        Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n        "+St)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n       Example:\n\n       "+Ct)},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      "+xt)},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)},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}(),Dt={provide:T,useExisting:e.forwardRef(function(){return Nt})},Nt=function(t){function n(n,r,i){var o=t.call(this)||this;return o.update=new e.EventEmitter,o._rawValidators=n||[],o._rawAsyncValidators=r||[],o.valueAccessor=et(o,i),o}return s(n,t),Object.defineProperty(n.prototype,"isDisabled",{set:function(t){Rt.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})),Z(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 X(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return Q(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.decorators=[{type:e.Directive,args:[{selector:"[formControl]",providers:[Dt],exportAs:"ngForm"}]}],n.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[h]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[d]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[b]}]}]},n.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"]}]},n}(T),Lt={provide:u,useExisting:e.forwardRef(function(){return jt})},jt=function(t){function n(n,r){var i=t.call(this)||this;return i._validators=n,i._asyncValidators=r,i.submitted=!1,i.directives=[],i.form=null,i.ngSubmit=new e.EventEmitter,i}return s(n,t),n.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},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){nt(this.directives,t)},n.prototype.addFormGroup=function(t){var e=this.form.get(t.path);Y(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);Y(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,tt(this.form,this.directives),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,r,i=t.form.get(e.path);e.control!==i&&(n=e.control,(r=e).valueAccessor.registerOnChange(function(){return K(r)}),r.valueAccessor.registerOnTouched(function(){return K(r)}),r._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),r._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),n&&n._clearChangeFns(),i&&W(i,e),e.control=i)}),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=X(this._validators);this.form.validator=m.compose([this.form.validator,t]);var e=Q(this._asyncValidators);this.form.asyncValidator=m.composeAsync([this.form.asyncValidator,e])},n.prototype._checkFormPresent=function(){this.form||Rt.missingFormException()},n.decorators=[{type:e.Directive,args:[{selector:"[formGroup]",providers:[Lt],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],n.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[h]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[d]}]}]},n.propDecorators={form:[{type:e.Input,args:["formGroup"]}],ngSubmit:[{type:e.Output}]},n}(u),Ft={provide:u,useExisting:e.forwardRef(function(){return Vt})},Vt=function(t){function n(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return s(n,t),n.prototype._checkParentType=function(){Ht(this._parent)&&Rt.groupParentException()},n.decorators=[{type:e.Directive,args:[{selector:"[formGroupName]",providers:[Ft]}]}],n.ctorParameters=function(){return[{type:u,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[h]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[d]}]}]},n.propDecorators={name:[{type:e.Input,args:["formGroupName"]}]},n}(rt),Bt={provide:u,useExisting:e.forwardRef(function(){return Ut})},Ut=function(t){function n(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return s(n,t),n.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},n.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(n.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},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,"path",{get:function(){return G(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return X(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return Q(this._asyncValidators)},enumerable:!0,configurable:!0}),n.prototype._checkParentType=function(){Ht(this._parent)&&Rt.arrayParentException()},n.decorators=[{type:e.Directive,args:[{selector:"[formArrayName]",providers:[Bt]}]}],n.ctorParameters=function(){return[{type:u,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[h]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[d]}]}]},n.propDecorators={name:[{type:e.Input,args:["formArrayName"]}]},n}(u);function Ht(t){return!(t instanceof Vt||t instanceof jt||t instanceof Ut)}var zt={provide:T,useExisting:e.forwardRef(function(){return Gt})},Gt=function(t){function n(n,r,i,o){var a=t.call(this)||this;return a._added=!1,a.update=new e.EventEmitter,a._parent=n,a._rawValidators=r||[],a._rawAsyncValidators=i||[],a.valueAccessor=et(a,o),a}return s(n,t),Object.defineProperty(n.prototype,"isDisabled",{set:function(t){Rt.disabledAttrWarning()},enumerable:!0,configurable:!0}),n.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),Z(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 G(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 X(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return Q(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),n.prototype._checkParentType=function(){!(this._parent instanceof Vt)&&this._parent instanceof rt?Rt.ngModelGroupException():this._parent instanceof Vt||this._parent instanceof jt||this._parent instanceof Ut||Rt.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.decorators=[{type:e.Directive,args:[{selector:"[formControlName]",providers:[zt]}]}],n.ctorParameters=function(){return[{type:u,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[h]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[d]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[b]}]}]},n.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"]}]},n}(T),Wt={provide:h,useExisting:e.forwardRef(function(){return Yt}),multi:!0},qt={provide:h,useExisting:e.forwardRef(function(){return Kt}),multi:!0},Yt=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?m.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.decorators=[{type:e.Directive,args:[{selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[Wt],host:{"[attr.required]":'required ? "" : null'}}]}],t.ctorParameters=function(){return[]},t.propDecorators={required:[{type:e.Input}]},t}(),Kt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.prototype.validate=function(t){return this.required?m.requiredTrue(t):null},n.decorators=[{type:e.Directive,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[qt],host:{"[attr.required]":'required ? "" : null'}}]}],n.ctorParameters=function(){return[]},n}(Yt),$t={provide:h,useExisting:e.forwardRef(function(){return Xt}),multi:!0},Xt=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?m.email(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.decorators=[{type:e.Directive,args:[{selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[$t]}]}],t.ctorParameters=function(){return[]},t.propDecorators={email:[{type:e.Input}]},t}(),Qt={provide:h,useExisting:e.forwardRef(function(){return Zt}),multi:!0},Zt=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=m.minLength(parseInt(this.minlength,10))},t.decorators=[{type:e.Directive,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[Qt],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],t.ctorParameters=function(){return[]},t.propDecorators={minlength:[{type:e.Input}]},t}(),Jt={provide:h,useExisting:e.forwardRef(function(){return te}),multi:!0},te=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=m.maxLength(parseInt(this.maxlength,10))},t.decorators=[{type:e.Directive,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[Jt],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],t.ctorParameters=function(){return[]},t.propDecorators={maxlength:[{type:e.Input}]},t}(),ee={provide:h,useExisting:e.forwardRef(function(){return ne}),multi:!0},ne=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=m.pattern(this.pattern)},t.decorators=[{type:e.Directive,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[ee],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],t.ctorParameters=function(){return[]},t.propDecorators={pattern:[{type:e.Input}]},t}(),re=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,i=null!=e?e.asyncValidator:null;return new yt(n,r,i)},t.prototype.control=function(t,e,n){return new gt(t,e,n)},t.prototype.array=function(t,e,n){var r=this,i=t.map(function(t){return r._createControl(t)});return new vt(i,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 gt||t instanceof yt||t instanceof vt)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.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}(),ie=new e.Version("5.2.2"),oe=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}}]}],t.ctorParameters=function(){return[]},t}(),ae=[oe,V,z,E,P,N,w,F,H,R,at,st,Yt,Zt,te,ne,Kt,Xt],se=[It,At,wt],ce=[Nt,jt,Gt,Vt,Ut],le=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:ae,exports:ae}]}],t.ctorParameters=function(){return[]},t}(),ue=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:se,providers:[I],exports:[le,se]}]}],t.ctorParameters=function(){return[]},t}(),pe=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[ce],providers:[re,I],exports:[le,ce]}]}],t.ctorParameters=function(){return[]},t}();t.AbstractControlDirective=l,t.AbstractFormGroupDirective=rt,t.CheckboxControlValueAccessor=w,t.ControlContainer=u,t.NG_VALUE_ACCESSOR=b,t.COMPOSITION_BUFFER_MODE=x,t.DefaultValueAccessor=E,t.NgControl=T,t.NgControlStatus=at,t.NgControlStatusGroup=st,t.NgForm=wt,t.NgModel=It,t.NgModelGroup=At,t.RadioControlValueAccessor=R,t.FormControlDirective=Nt,t.FormControlName=Gt,t.FormGroupDirective=jt,t.FormArrayName=Ut,t.FormGroupName=Vt,t.NgSelectOption=V,t.SelectControlValueAccessor=F,t.SelectMultipleControlValueAccessor=H,t.CheckboxRequiredValidator=Kt,t.EmailValidator=Xt,t.MaxLengthValidator=te,t.MinLengthValidator=Zt,t.PatternValidator=ne,t.RequiredValidator=Yt,t.FormBuilder=re,t.AbstractControl=mt,t.FormArray=vt,t.FormControl=gt,t.FormGroup=yt,t.NG_ASYNC_VALIDATORS=d,t.NG_VALIDATORS=h,t.Validators=m,t.VERSION=ie,t.FormsModule=ue,t.ReactiveFormsModule=pe,t.ɵba=le,t.ɵz=ce,t.ɵx=ae,t.ɵy=se,t.ɵa=_,t.ɵb=C,t.ɵc=it,t.ɵd=ot,t.ɵe=bt,t.ɵf=Tt,t.ɵg=Pt,t.ɵbf=oe,t.ɵbb=O,t.ɵbc=P,t.ɵh=M,t.ɵi=I,t.ɵbd=D,t.ɵbe=N,t.ɵj=Dt,t.ɵk=zt,t.ɵl=Lt,t.ɵn=Bt,t.ɵm=Ft,t.ɵo=L,t.ɵq=z,t.ɵp=B,t.ɵs=qt,t.ɵt=$t,t.ɵv=Jt,t.ɵu=Qt,t.ɵw=ee,t.ɵr=Wt,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("rxjs/observable/forkJoin"),t("rxjs/observable/fromPromise"),t("rxjs/operator/map"),t("@angular/platform-browser")):i((r.ng=r.ng||{},r.ng.forms={}),r.ng.core,r.Rx.Observable,r.Rx.Observable,r.Rx.Observable.prototype,r.ng.platformBrowser)},{"@angular/core":58,"@angular/platform-browser":63,"rxjs/observable/forkJoin":94,"rxjs/observable/fromPromise":98,"rxjs/operator/map":110}],60:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i,o,a,s,c,l,u,p,h,d,f,m,g,y,v,b,_,w,C,x,E,S,k,O,P,A,T,M,I,R,D,N,L,j,F,V,B,U,H,z,G,W){"use strict";var q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function Y(t,e){function n(){this.constructor=t}q(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var K=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},$=function(){function t(){}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t}(),X=function(){function t(){}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t}(),Q=new e.InjectionToken("mat-sanity-checks"),Z=function(){function t(t){this._sanityChecksEnabled=t,this._hasDoneGlobalChecks=!1,this._hasCheckedHammer=!1,this._document="object"==typeof document&&document?document:null,this._window="object"==typeof window&&window?window:null,this._areChecksEnabled()&&!this._hasDoneGlobalChecks&&(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._hasDoneGlobalChecks=!0)}return t.prototype._areChecksEnabled=function(){return this._sanityChecksEnabled&&e.isDevMode()&&!this._isTestEnv()},t.prototype._isTestEnv=function(){return this._window&&(this._window.__karma__||this._window.jasmine)},t.prototype._checkDoctypeIsDefined=function(){this._document&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")},t.prototype._checkThemeIsPresent=function(){if(this._document&&"function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);var e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}},t.prototype._checkHammerIsAvailable=function(){!this._hasCheckedHammer&&this._window&&(this._areChecksEnabled()&&!this._window.Hammer&&console.warn("Could not find HammerJS. Certain Angular Material components may not work correctly."),this._hasCheckedHammer=!0)},t.decorators=[{type:e.NgModule,args:[{imports:[n.BidiModule],exports:[n.BidiModule],providers:[{provide:Q,useValue:!0}]}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Q]}]}]},t}();function J(t){return function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.apply(this,e)||this;return r._disabled=!1,r}return Y(e,t),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),e}(t)}function tt(t,e){return function(t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.apply(this,n)||this;return i.color=e,i}return Y(n,t),Object.defineProperty(n.prototype,"color",{get:function(){return this._color},set:function(t){var n=t||e;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),n&&this._elementRef.nativeElement.classList.add("mat-"+n),this._color=n)},enumerable:!0,configurable:!0}),n}(t)}function et(t){return function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.apply(this,e)||this;return r._disableRipple=!1,r}return Y(e,t),Object.defineProperty(e.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),e}(t)}function nt(t,e){return void 0===e&&(e=0),function(t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.apply(this,n)||this;return i._tabIndex=e,i}return Y(n,t),Object.defineProperty(n.prototype,"tabIndex",{get:function(){return this.disabled?-1:this._tabIndex},set:function(t){this._tabIndex=null!=t?t:e},enumerable:!0,configurable:!0}),n}(t)}function rt(t){return function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.apply(this,e)||this;return r.errorState=!1,r.stateChanges=new i.Subject,r}return Y(e,t),e.prototype.updateErrorState=function(){var t=this.errorState,e=this._parentFormGroup||this._parentForm,n=this.errorStateMatcher||this._defaultErrorStateMatcher,r=this.ngControl?this.ngControl.control:null,i=n.isErrorState(r,e);i!==t&&(this.errorState=i,this.stateChanges.next())},e}(t)}var it=new e.InjectionToken("MAT_DATE_LOCALE"),ot={provide:it,useExisting:e.LOCALE_ID},at=function(){function t(){this._localeChanges=new i.Subject}return Object.defineProperty(t.prototype,"localeChanges",{get:function(){return this._localeChanges},enumerable:!0,configurable:!0}),t.prototype.deserialize=function(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()},t.prototype.setLocale=function(t){this.locale=t,this._localeChanges.next()},t.prototype.compareDate=function(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)},t.prototype.sameDate=function(t,e){if(t&&e){var n=this.isValid(t),r=this.isValid(e);return n&&r?!this.compareDate(t,e):n==r}return t==e},t.prototype.clampDate=function(t,e,n){return e&&this.compareDate(t,e)<0?e:n&&this.compareDate(t,n)>0?n:t},t}(),st=new e.InjectionToken("mat-date-formats"),ct="undefined"!=typeof Intl,lt={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},ut=dt(31,function(t){return String(t+1)}),pt={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},ht=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function dt(t,e){for(var n=Array(t),r=0;r<t;r++)n[r]=e(r);return n}var ft=function(t){function n(e){var n=t.call(this)||this;return t.prototype.setLocale.call(n,e),n.useUtcForDisplay=!("object"==typeof document&&document&&/(msie|trident)/i.test(navigator.userAgent)),n}return Y(n,t),n.prototype.getYear=function(t){return t.getFullYear()},n.prototype.getMonth=function(t){return t.getMonth()},n.prototype.getDate=function(t){return t.getDate()},n.prototype.getDayOfWeek=function(t){return t.getDay()},n.prototype.getMonthNames=function(t){var e=this;if(ct){var n=new Intl.DateTimeFormat(this.locale,{month:t});return dt(12,function(t){return e._stripDirectionalityCharacters(n.format(new Date(2017,t,1)))})}return lt[t]},n.prototype.getDateNames=function(){var t=this;if(ct){var e=new Intl.DateTimeFormat(this.locale,{day:"numeric"});return dt(31,function(n){return t._stripDirectionalityCharacters(e.format(new Date(2017,0,n+1)))})}return ut},n.prototype.getDayOfWeekNames=function(t){var e=this;if(ct){var n=new Intl.DateTimeFormat(this.locale,{weekday:t});return dt(7,function(t){return e._stripDirectionalityCharacters(n.format(new Date(2017,0,t+1)))})}return pt[t]},n.prototype.getYearName=function(t){if(ct){var e=new Intl.DateTimeFormat(this.locale,{year:"numeric"});return this._stripDirectionalityCharacters(e.format(t))}return String(this.getYear(t))},n.prototype.getFirstDayOfWeek=function(){return 0},n.prototype.getNumDaysInMonth=function(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))},n.prototype.clone=function(t){return this.createDate(this.getYear(t),this.getMonth(t),this.getDate(t))},n.prototype.createDate=function(t,e,n){if(e<0||e>11)throw Error('Invalid month index "'+e+'". Month index has to be between 0 and 11.');if(n<1)throw Error('Invalid date "'+n+'". Date has to be greater than 0.');var r=this._createDateWithOverflow(t,e,n);if(r.getMonth()!=e)throw Error('Invalid date "'+n+'" for month with index "'+e+'".');return r},n.prototype.today=function(){return new Date},n.prototype.parse=function(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null},n.prototype.format=function(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(ct){this.useUtcForDisplay&&(t=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())),e=K({},e,{timeZone:"utc"}));var n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(n.format(t))}return this._stripDirectionalityCharacters(t.toDateString())},n.prototype.addCalendarYears=function(t,e){return this.addCalendarMonths(t,12*e)},n.prototype.addCalendarMonths=function(t,e){var n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n},n.prototype.addCalendarDays=function(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)},n.prototype.toIso8601=function(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")},n.prototype.deserialize=function(e){if("string"==typeof e){if(!e)return null;if(ht.test(e)){var n=new Date(e);if(this.isValid(n))return n}}return t.prototype.deserialize.call(this,e)},n.prototype.isDateInstance=function(t){return t instanceof Date},n.prototype.isValid=function(t){return!isNaN(t.getTime())},n.prototype.invalid=function(){return new Date(NaN)},n.prototype._createDateWithOverflow=function(t,e,n){var r=new Date(t,e,n);return t>=0&&t<100&&r.setFullYear(this.getYear(r)-1900),r},n.prototype._2digit=function(t){return("00"+t).slice(-2)},n.prototype._stripDirectionalityCharacters=function(t){return t.replace(/[\u200e\u200f]/g,"")},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[it]}]}]},n}(at),mt={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},gt=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{providers:[{provide:at,useClass:ft},ot]}]}],t.ctorParameters=function(){return[]},t}(),yt=mt,vt=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[gt],providers:[{provide:st,useValue:yt}]}]}],t.ctorParameters=function(){return[]},t}(),bt=function(){function t(){}return t.prototype.isErrorState=function(t,e){return!!(t&&t.invalid&&(t.dirty||e&&e.submitted))},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}(),_t=function(){function t(){}return t.prototype.isErrorState=function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}(),wt=new e.InjectionToken("MAT_HAMMER_OPTIONS"),Ct=function(t){function n(e,n){var r=t.call(this)||this;return r._hammerOptions=e,r._hammer="undefined"!=typeof window?window.Hammer:null,r.events=r._hammer?["longpress","slide","slidestart","slideend","slideright","slideleft"]:[],n&&n._checkHammerIsAvailable(),r}return Y(n,t),n.prototype.buildHammer=function(t){var e=new this._hammer(t,this._hammerOptions||void 0),n=new this._hammer.Pan,r=new this._hammer.Swipe,i=new this._hammer.Press,o=this._createRecognizer(n,{event:"slide",threshold:0},r),a=this._createRecognizer(i,{event:"longpress",time:500});return n.recognizeWith(r),e.add([r,i,n,o,a]),e},n.prototype._createRecognizer=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=new t.constructor(e);return n.push(t),n.forEach(function(t){return i.recognizeWith(t)}),i},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[wt]}]},{type:Z,decorators:[{type:e.Optional}]}]},n}(o.HammerGestureConfig),xt=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-line], [matLine]",host:{class:"mat-line"}}]}],t.ctorParameters=function(){return[]},t}(),Et=function(){function t(t,e){var n=this;this._lines=t,this._element=e,this._setLineClass(this._lines.length),this._lines.changes.subscribe(function(){n._setLineClass(n._lines.length)})}return t.prototype._setLineClass=function(t){this._resetClasses(),2===t||3===t?this._setClass("mat-"+t+"-line",!0):t>3&&this._setClass("mat-multi-line",!0)},t.prototype._resetClasses=function(){this._setClass("mat-2-line",!1),this._setClass("mat-3-line",!1),this._setClass("mat-multi-line",!1)},t.prototype._setClass=function(t,e){e?this._element.nativeElement.classList.add(t):this._element.nativeElement.classList.remove(t)},t}(),St=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[Z],exports:[xt,Z],declarations:[xt]}]}],t.ctorParameters=function(){return[]},t}(),kt={FADING_IN:0,VISIBLE:1,FADING_OUT:2,HIDDEN:3};kt[kt.FADING_IN]="FADING_IN",kt[kt.VISIBLE]="VISIBLE",kt[kt.FADING_OUT]="FADING_OUT",kt[kt.HIDDEN]="HIDDEN";var Ot=function(){function t(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=kt.HIDDEN}return t.prototype.fadeOut=function(){this._renderer.fadeOutRipple(this)},t}(),Pt=800,At=function(){function t(t,e,n,r){var i=this;this._target=t,this._ngZone=e,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._eventOptions=!!s.supportsPassiveEventListeners()&&{passive:!0},this.onMousedown=function(t){var e=i._lastTouchStartEvent&&Date.now()<i._lastTouchStartEvent+Pt;i._target.rippleDisabled||e||(i._isPointerDown=!0,i.fadeInRipple(t.clientX,t.clientY,i._target.rippleConfig))},this.onTouchStart=function(t){i._target.rippleDisabled||(i._lastTouchStartEvent=Date.now(),i._isPointerDown=!0,i.fadeInRipple(t.touches[0].clientX,t.touches[0].clientY,i._target.rippleConfig))},this.onPointerUp=function(){i._isPointerDown&&(i._isPointerDown=!1,i._activeRipples.forEach(function(t){t.config.persistent||t.state!==kt.VISIBLE||t.fadeOut()}))},r.isBrowser&&(this._containerElement=n.nativeElement,this._triggerEvents.set("mousedown",this.onMousedown),this._triggerEvents.set("mouseup",this.onPointerUp),this._triggerEvents.set("mouseleave",this.onPointerUp),this._triggerEvents.set("touchstart",this.onTouchStart),this._triggerEvents.set("touchend",this.onPointerUp))}return t.prototype.fadeInRipple=function(t,e,n){var r=this;void 0===n&&(n={});var i=this._containerElement.getBoundingClientRect();n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);var o,a,s,c,l,u,p=n.radius||(o=t,a=e,s=i,c=Math.max(Math.abs(o-s.left),Math.abs(o-s.right)),l=Math.max(Math.abs(a-s.top),Math.abs(a-s.bottom)),Math.sqrt(c*c+l*l)),h=450/(n.speedFactor||1),d=t-i.left,f=e-i.top,m=document.createElement("div");m.classList.add("mat-ripple-element"),m.style.left=d-p+"px",m.style.top=f-p+"px",m.style.height=2*p+"px",m.style.width=2*p+"px",m.style.backgroundColor=n.color||null,m.style.transitionDuration=h+"ms",this._containerElement.appendChild(m),u=m,window.getComputedStyle(u).getPropertyValue("opacity"),m.style.transform="scale(1)";var g=new Ot(this,m,n);return g.state=kt.FADING_IN,this._activeRipples.add(g),this.runTimeoutOutsideZone(function(){g.state=kt.VISIBLE,n.persistent||r._isPointerDown||g.fadeOut()},h),g},t.prototype.fadeOutRipple=function(t){if(this._activeRipples.delete(t)){var e=t.element;e.style.transitionDuration="400ms",e.style.opacity="0",t.state=kt.FADING_OUT,this.runTimeoutOutsideZone(function(){t.state=kt.HIDDEN,e.parentNode.removeChild(e)},400)}},t.prototype.fadeOutAll=function(){this._activeRipples.forEach(function(t){return t.fadeOut()})},t.prototype.setupTriggerEvents=function(t){var e=this;t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular(function(){e._triggerEvents.forEach(function(n,r){return t.addEventListener(r,n,e._eventOptions)})}),this._triggerElement=t)},t.prototype.runTimeoutOutsideZone=function(t,e){void 0===e&&(e=0),this._ngZone.runOutsideAngular(function(){return setTimeout(t,e)})},t.prototype._removeTriggerEvents=function(){var t=this;this._triggerElement&&this._triggerEvents.forEach(function(e,n){t._triggerElement.removeEventListener(n,e,t._eventOptions)})},t}();var Tt=new e.InjectionToken("mat-ripple-global-options"),Mt=function(){function t(t,e,n,r){this._elementRef=t,this.radius=0,this.speedFactor=1,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new At(this,e,t,n)}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=t,this._setupTriggerEventsIfEnabled()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"trigger",{get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()},t.prototype.ngOnDestroy=function(){this._rippleRenderer._removeTriggerEvents()},t.prototype.launch=function(t,e,n){return void 0===n&&(n=this),this._rippleRenderer.fadeInRipple(t,e,n)},t.prototype.fadeOutAll=function(){this._rippleRenderer.fadeOutAll()},Object.defineProperty(t.prototype,"rippleConfig",{get:function(){return{centered:this.centered,speedFactor:this.speedFactor*(this._globalOptions.baseSpeedFactor||1),radius:this.radius,color:this.color}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rippleDisabled",{get:function(){return this.disabled||!!this._globalOptions.disabled},enumerable:!0,configurable:!0}),t.prototype._setupTriggerEventsIfEnabled=function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)},t.decorators=[{type:e.Directive,args:[{selector:"[mat-ripple], [matRipple]",exportAs:"matRipple",host:{class:"mat-ripple","[class.mat-ripple-unbounded]":"unbounded"}}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.NgZone},{type:s.Platform},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Tt]}]}]},t.propDecorators={color:[{type:e.Input,args:["matRippleColor"]}],unbounded:[{type:e.Input,args:["matRippleUnbounded"]}],centered:[{type:e.Input,args:["matRippleCentered"]}],radius:[{type:e.Input,args:["matRippleRadius"]}],speedFactor:[{type:e.Input,args:["matRippleSpeedFactor"]}],disabled:[{type:e.Input,args:["matRippleDisabled"]}],trigger:[{type:e.Input,args:["matRippleTrigger"]}]},t}(),It=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[Z,s.PlatformModule],exports:[Mt,Z],declarations:[Mt]}]}],t.ctorParameters=function(){return[]},t}(),Rt=function(){function t(){this.state="unchecked",this.disabled=!1}return t.decorators=[{type:e.Component,args:[{encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,selector:"mat-pseudo-checkbox",styles:[".mat-pseudo-checkbox{width:20px;height:20px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0,0,.2,.1),background-color 90ms cubic-bezier(0,0,.2,.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:'';border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0,0,.2,.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:9px;left:2px;width:16px;opacity:1}.mat-pseudo-checkbox-checked::after{top:5px;left:3px;width:12px;height:5px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1}"],template:"",host:{class:"mat-pseudo-checkbox","[class.mat-pseudo-checkbox-indeterminate]":'state === "indeterminate"',"[class.mat-pseudo-checkbox-checked]":'state === "checked"',"[class.mat-pseudo-checkbox-disabled]":"disabled"}}]}],t.ctorParameters=function(){return[]},t.propDecorators={state:[{type:e.Input}],disabled:[{type:e.Input}]},t}(),Dt=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{exports:[Rt],declarations:[Rt]}]}],t.ctorParameters=function(){return[]},t}(),Nt=function(){return function(){}}(),Lt=J(Nt),jt=0,Ft=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._labelId="mat-optgroup-label-"+jt++,e}return Y(n,t),n.decorators=[{type:e.Component,args:[{selector:"mat-optgroup",exportAs:"matOptgroup",template:'<label class="mat-optgroup-label" [id]="_labelId">{{ label }}</label><ng-content select="mat-option"></ng-content>',encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,inputs:["disabled"],host:{class:"mat-optgroup",role:"group","[class.mat-optgroup-disabled]":"disabled","[attr.aria-disabled]":"disabled.toString()","[attr.aria-labelledby]":"_labelId"}}]}],n.ctorParameters=function(){return[]},n.propDecorators={label:[{type:e.Input}]},n}(Lt),Vt=0,Bt=function(){return function(t,e){void 0===e&&(e=!1),this.source=t,this.isUserInput=e}}(),Ut=new e.InjectionToken("MAT_OPTION_PARENT_COMPONENT"),Ht=function(){function t(t,n,r,i){this._element=t,this._changeDetectorRef=n,this._parent=r,this.group=i,this._selected=!1,this._active=!1,this._disabled=!1,this._id="mat-option-"+Vt++,this.onSelectionChange=new e.EventEmitter}return Object.defineProperty(t.prototype,"multiple",{get:function(){return this._parent&&this._parent.multiple},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.group&&this.group.disabled||this._disabled},set:function(t){this._disabled=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableRipple",{get:function(){return this._parent&&this._parent.disableRipple},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._active},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewValue",{get:function(){return(this._getHostElement().textContent||"").trim()},enumerable:!0,configurable:!0}),t.prototype.select=function(){this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent()},t.prototype.deselect=function(){this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent()},t.prototype.focus=function(){var t=this._getHostElement();"function"==typeof t.focus&&t.focus()},t.prototype.setActiveStyles=function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())},t.prototype.setInactiveStyles=function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())},t.prototype.getLabel=function(){return this.viewValue},t.prototype._handleKeydown=function(t){t.keyCode!==c.ENTER&&t.keyCode!==c.SPACE||(this._selectViaInteraction(),t.preventDefault())},t.prototype._selectViaInteraction=function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))},t.prototype._getTabIndex=function(){return this.disabled?"-1":"0"},t.prototype._getHostElement=function(){return this._element.nativeElement},t.prototype._emitSelectionChangeEvent=function(t){void 0===t&&(t=!1),this.onSelectionChange.emit(new Bt(this,t))},t.countGroupLabelsBeforeOption=function(t,e,n){if(n.length){for(var r=e.toArray(),i=n.toArray(),o=0,a=0;a<t+1;a++)r[a].group&&r[a].group===i[o]&&o++;return o}return 0},t.decorators=[{type:e.Component,args:[{selector:"mat-option",exportAs:"matOption",host:{role:"option","[attr.tabindex]":"_getTabIndex()","[class.mat-selected]":"selected","[class.mat-option-multiple]":"multiple","[class.mat-active]":"active","[id]":"id","[attr.aria-selected]":"selected.toString()","[attr.aria-disabled]":"disabled.toString()","[class.mat-option-disabled]":"disabled","(click)":"_selectViaInteraction()","(keydown)":"_handleKeydown($event)",class:"mat-option"},template:'<mat-pseudo-checkbox *ngIf="multiple" class="mat-option-pseudo-checkbox" [state]="selected ? \'checked\' : \'\'" [disabled]="disabled"></mat-pseudo-checkbox><span class="mat-option-text"><ng-content></ng-content></span><div class="mat-option-ripple" mat-ripple [matRippleTrigger]="_getHostElement()" [matRippleDisabled]="disabled || disableRipple"></div>',encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ChangeDetectorRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Ut]}]},{type:Ft,decorators:[{type:e.Optional}]}]},t.propDecorators={value:[{type:e.Input}],disabled:[{type:e.Input}],onSelectionChange:[{type:e.Output}]},t}(),zt=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[It,a.CommonModule,Dt],exports:[Ht,Ft],declarations:[Ht,Ft]}]}],t.ctorParameters=function(){return[]},t}(),Gt=new e.InjectionToken("mat-label-global-options");function Wt(t,e){var n=e.trim();t.style.transform=n,t.style.webkitTransform=n}var qt=0,Yt=function(){function t(){this.id="mat-error-"+qt++}return t.decorators=[{type:e.Directive,args:[{selector:"mat-error",host:{class:"mat-error",role:"alert","[attr.id]":"id"}}]}],t.ctorParameters=function(){return[]},t.propDecorators={id:[{type:e.Input}]},t}(),Kt=function(){return function(){}}();function $t(){return Error("Placeholder attribute and child element were both specified.")}function Xt(t){return Error("A hint was already declared for 'align=\""+t+"\"'.")}function Qt(){return Error("mat-form-field must contain a MatFormFieldControl.")}var Zt=0,Jt=function(){function t(){this.align="start",this.id="mat-hint-"+Zt++}return t.decorators=[{type:e.Directive,args:[{selector:"mat-hint",host:{class:"mat-hint","[class.mat-right]":'align == "end"',"[attr.id]":"id","[attr.align]":"null"}}]}],t.ctorParameters=function(){return[]},t.propDecorators={align:[{type:e.Input}],id:[{type:e.Input}]},t}(),te=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-placeholder"}]}],t.ctorParameters=function(){return[]},t}(),ee=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-label"}]}],t.ctorParameters=function(){return[]},t}(),ne=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[matPrefix]"}]}],t.ctorParameters=function(){return[]},t}(),re=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[matSuffix]"}]}],t.ctorParameters=function(){return[]},t}(),ie={transitionMessages:_.trigger("transitionMessages",[_.state("enter",_.style({opacity:1,transform:"translateY(0%)"})),_.transition("void => enter",[_.style({opacity:0,transform:"translateY(-100%)"}),_.animate("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},oe=0,ae=function(){function t(t,e,n){this._elementRef=t,this._changeDetectorRef=e,this.color="primary",this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+oe++,this._labelOptions=n||{},this.floatLabel=this._labelOptions.float||"auto"}return Object.defineProperty(t.prototype,"dividerColor",{get:function(){return this.color},set:function(t){this.color=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideRequiredMarker",{get:function(){return this._hideRequiredMarker},set:function(t){this._hideRequiredMarker=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_shouldAlwaysFloat",{get:function(){return"always"===this._floatLabel&&!this._showAlwaysAnimate},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_canLabelFloat",{get:function(){return"never"!==this._floatLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hintLabel",{get:function(){return this._hintLabel},set:function(t){this._hintLabel=t,this._processHints()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"floatPlaceholder",{get:function(){return this._floatLabel},set:function(t){this.floatLabel=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"floatLabel",{get:function(){return this._floatLabel},set:function(t){t!==this._floatLabel&&(this._floatLabel=t||this._labelOptions.float||"auto",this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this._validateControlChild(),this._control.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+this._control.controlType),this._control.stateChanges.pipe(v.startWith(null)).subscribe(function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()});var e=this._control.ngControl;e&&e.valueChanges&&e.valueChanges.subscribe(function(){t._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(v.startWith(null)).subscribe(function(){t._processHints(),t._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(v.startWith(null)).subscribe(function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})},t.prototype.ngAfterContentChecked=function(){this._validateControlChild()},t.prototype.ngAfterViewInit=function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()},t.prototype._shouldForward=function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]},t.prototype._hasPlaceholder=function(){return!(!this._control.placeholder&&!this._placeholderChild)},t.prototype._hasLabel=function(){return!!this._labelChild},t.prototype._shouldLabelFloat=function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._control.shouldPlaceholderFloat||this._shouldAlwaysFloat)},t.prototype._hideControlPlaceholder=function(){return!this._hasLabel()||!this._shouldLabelFloat()},t.prototype._hasFloatingLabel=function(){return this._hasLabel()||this._hasPlaceholder()},t.prototype._getDisplayedMessages=function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"},t.prototype._animateAndLockLabel=function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._showAlwaysAnimate=!0,this._floatLabel="always",b.fromEvent(this._label.nativeElement,"transitionend").pipe(d.take(1)).subscribe(function(){t._showAlwaysAnimate=!1}),this._changeDetectorRef.markForCheck())},t.prototype._validatePlaceholders=function(){if(this._control.placeholder&&this._placeholderChild)throw $t()},t.prototype._processHints=function(){this._validateHints(),this._syncDescribedByIds()},t.prototype._validateHints=function(){var t,e,n=this;this._hintChildren&&this._hintChildren.forEach(function(r){if("start"==r.align){if(t||n.hintLabel)throw Xt("start");t=r}else if("end"==r.align){if(e)throw Xt("end");e=r}})},t.prototype._syncDescribedByIds=function(){if(this._control){var t=[];if("hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find(function(t){return"start"===t.align}):null,n=this._hintChildren?this._hintChildren.find(function(t){return"end"===t.align}):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&(t=this._errorChildren.map(function(t){return t.id}));this._control.setDescribedByIds(t)}},t.prototype._validateControlChild=function(){if(!this._control)throw Qt()},t.decorators=[{type:e.Component,args:[{selector:"mat-input-container, mat-form-field",exportAs:"matFormField",template:'<div class="mat-input-wrapper mat-form-field-wrapper"><div class="mat-input-flex mat-form-field-flex" #connectionContainer (click)="_control.onContainerClick && _control.onContainerClick($event)"><div class="mat-input-prefix mat-form-field-prefix" *ngIf="_prefixChildren.length"><ng-content select="[matPrefix]"></ng-content></div><div class="mat-input-infix mat-form-field-infix" #inputContainer><ng-content></ng-content><span class="mat-form-field-label-wrapper mat-input-placeholder-wrapper mat-form-field-placeholder-wrapper"><label class="mat-form-field-label mat-input-placeholder mat-form-field-placeholder" [attr.for]="_control.id" [attr.aria-owns]="_control.id" [class.mat-empty]="_control.empty && !_shouldAlwaysFloat" [class.mat-form-field-empty]="_control.empty && !_shouldAlwaysFloat" [class.mat-accent]="color == \'accent\'" [class.mat-warn]="color == \'warn\'" #label *ngIf="_hasFloatingLabel()" [ngSwitch]="_hasLabel()"><ng-container *ngSwitchCase="false"><ng-content select="mat-placeholder"></ng-content>{{_control.placeholder}}</ng-container><ng-content select="mat-label" *ngSwitchCase="true"></ng-content><span class="mat-placeholder-required mat-form-field-required-marker" aria-hidden="true" *ngIf="!hideRequiredMarker && _control.required && !_control.disabled">&nbsp;*</span></label></span></div><div class="mat-input-suffix mat-form-field-suffix" *ngIf="_suffixChildren.length"><ng-content select="[matSuffix]"></ng-content></div></div><div class="mat-input-underline mat-form-field-underline" #underline><span class="mat-input-ripple mat-form-field-ripple" [class.mat-accent]="color == \'accent\'" [class.mat-warn]="color == \'warn\'"></span></div><div class="mat-input-subscript-wrapper mat-form-field-subscript-wrapper" [ngSwitch]="_getDisplayedMessages()"><div *ngSwitchCase="\'error\'" [@transitionMessages]="_subscriptAnimationState"><ng-content select="mat-error"></ng-content></div><div class="mat-input-hint-wrapper mat-form-field-hint-wrapper" *ngSwitchCase="\'hint\'" [@transitionMessages]="_subscriptAnimationState"><div *ngIf="hintLabel" [id]="_hintLabelId" class="mat-hint">{{hintLabel}}</div><ng-content select="mat-hint:not([align=\'end\'])"></ng-content><div class="mat-input-hint-spacer mat-form-field-hint-spacer"></div><ng-content select="mat-hint[align=\'end\']"></ng-content></div></div></div>',styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none}.mat-form-field-prefix .mat-icon,.mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-prefix .mat-icon-button,.mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform:perspective(100px);-ms-transform:none;transform-origin:0 0;transition:transform .4s cubic-bezier(.25,.8,.25,1),color .4s cubic-bezier(.25,.8,.25,1),width .4s cubic-bezier(.25,.8,.25,1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-empty.mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-placeholder-wrapper .mat-form-field-placeholder,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-placeholder-wrapper .mat-form-field-placeholder{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-placeholder-wrapper .mat-form-field-placeholder,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-placeholder-wrapper .mat-form-field-placeholder{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;height:1px;width:100%}.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.mat-form-field-underline .mat-form-field-ripple{position:absolute;top:0;left:0;width:100%;height:2px;transform-origin:50%;transform:scaleX(.5);visibility:hidden;opacity:0;transition:background-color .3s cubic-bezier(.55,0,.55,.2)}.mat-form-field-invalid:not(.mat-focused) .mat-form-field-underline .mat-form-field-ripple{height:1px}.mat-focused .mat-form-field-underline .mat-form-field-ripple,.mat-form-field-invalid .mat-form-field-underline .mat-form-field-ripple{visibility:visible;opacity:1;transform:scaleX(1);transition:transform .3s cubic-bezier(.25,.8,.25,1),opacity .1s cubic-bezier(.25,.8,.25,1),background-color .3s cubic-bezier(.25,.8,.25,1)}.mat-form-field-subscript-wrapper{position:absolute;width:100%;overflow:hidden}.mat-form-field-label-wrapper .mat-icon,.mat-form-field-subscript-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block} .mat-input-element{font:inherit;background:0 0;color:currentColor;border:none;outline:0;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element[type=date]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=month]::after,.mat-input-element[type=time]::after,.mat-input-element[type=week]::after{content:' ';white-space:pre;width:1px}.mat-input-element::placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-input-element::-moz-placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-input-element::-webkit-input-placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-input-element:-ms-input-placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent!important;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent!important;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent!important;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent!important;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-autosize{resize:none}"],animations:[ie.transitionMessages],host:{class:"mat-input-container mat-form-field","[class.mat-input-invalid]":"_control.errorState","[class.mat-form-field-invalid]":"_control.errorState","[class.mat-form-field-can-float]":"_canLabelFloat","[class.mat-form-field-should-float]":"_shouldLabelFloat()","[class.mat-form-field-hide-placeholder]":"_hideControlPlaceholder()","[class.mat-form-field-disabled]":"_control.disabled","[class.mat-focused]":"_control.focused","[class.mat-primary]":'color == "primary"',"[class.mat-accent]":'color == "accent"',"[class.mat-warn]":'color == "warn"',"[class.ng-untouched]":'_shouldForward("untouched")',"[class.ng-touched]":'_shouldForward("touched")',"[class.ng-pristine]":'_shouldForward("pristine")',"[class.ng-dirty]":'_shouldForward("dirty")',"[class.ng-valid]":'_shouldForward("valid")',"[class.ng-invalid]":'_shouldForward("invalid")',"[class.ng-pending]":'_shouldForward("pending")'},encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ChangeDetectorRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Gt]}]}]},t.propDecorators={color:[{type:e.Input}],dividerColor:[{type:e.Input}],hideRequiredMarker:[{type:e.Input}],hintLabel:[{type:e.Input}],floatPlaceholder:[{type:e.Input}],floatLabel:[{type:e.Input}],underlineRef:[{type:e.ViewChild,args:["underline"]}],_connectionContainerRef:[{type:e.ViewChild,args:["connectionContainer"]}],_inputContainerRef:[{type:e.ViewChild,args:["inputContainer"]}],_label:[{type:e.ViewChild,args:["label"]}],_control:[{type:e.ContentChild,args:[Kt]}],_placeholderChild:[{type:e.ContentChild,args:[te]}],_labelChild:[{type:e.ContentChild,args:[ee]}],_errorChildren:[{type:e.ContentChildren,args:[Yt]}],_hintChildren:[{type:e.ContentChildren,args:[Jt]}],_prefixChildren:[{type:e.ContentChildren,args:[ne]}],_suffixChildren:[{type:e.ContentChildren,args:[re]}]},t}(),se=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[Yt,Jt,ae,te,ne,re,ee],imports:[a.CommonModule,s.PlatformModule],exports:[Yt,Jt,ae,te,ne,re,ee]}]}],t.ctorParameters=function(){return[]},t}(),ce=0,le=function(){return function(t,e){this.source=t,this.option=e}}(),ue=function(){return function(){}}(),pe=et(ue),he=function(t){function n(n,r){var i=t.call(this)||this;return i._changeDetectorRef=n,i._elementRef=r,i.showPanel=!1,i._isOpen=!1,i.displayWith=null,i.optionSelected=new e.EventEmitter,i._classList={},i.id="mat-autocomplete-"+ce++,i}return Y(n,t),Object.defineProperty(n.prototype,"isOpen",{get:function(){return this._isOpen&&this.showPanel},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"classList",{set:function(t){var e=this;t&&t.length&&(t.split(" ").forEach(function(t){return e._classList[t.trim()]=!0}),this._elementRef.nativeElement.className="")},enumerable:!0,configurable:!0}),n.prototype.ngAfterContentInit=function(){this._keyManager=new l.ActiveDescendantKeyManager(this.options).withWrap(),this._setVisibility()},n.prototype._setScrollTop=function(t){this.panel&&(this.panel.nativeElement.scrollTop=t)},n.prototype._getScrollTop=function(){return this.panel?this.panel.nativeElement.scrollTop:0},n.prototype._setVisibility=function(){this.showPanel=!!this.options.length,this._classList["mat-autocomplete-visible"]=this.showPanel,this._classList["mat-autocomplete-hidden"]=!this.showPanel,this._changeDetectorRef.markForCheck()},n.prototype._emitSelectEvent=function(t){var e=new le(this,t);this.optionSelected.emit(e)},n.decorators=[{type:e.Component,args:[{selector:"mat-autocomplete",template:'<ng-template><div class="mat-autocomplete-panel" role="listbox" [id]="id" [ngClass]="_classList" #panel><ng-content></ng-content></div></ng-template>',styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative}.mat-autocomplete-panel:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,exportAs:"matAutocomplete",inputs:["disableRipple"],host:{class:"mat-autocomplete"},providers:[{provide:Ut,useExisting:n}]}]}],n.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef}]},n.propDecorators={template:[{type:e.ViewChild,args:[e.TemplateRef]}],panel:[{type:e.ViewChild,args:["panel"]}],options:[{type:e.ContentChildren,args:[Ht,{descendants:!0}]}],optionGroups:[{type:e.ContentChildren,args:[Ft]}],displayWith:[{type:e.Input}],optionSelected:[{type:e.Output}],classList:[{type:e.Input,args:["class"]}]},n}(pe),de=new e.InjectionToken("mat-autocomplete-scroll-strategy");function fe(t){return function(){return t.scrollStrategies.reposition()}}var me={provide:de,deps:[u.Overlay],useFactory:fe},ge={provide:y.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return ve}),multi:!0};function ye(){return Error("Attempting to open an undefined instance of `mat-autocomplete`. Make sure that the id passed to the `matAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.")}var ve=function(){function t(t,e,n,r,o,a,s,c,l){this._element=t,this._overlay=e,this._viewContainerRef=n,this._zone=r,this._changeDetectorRef=o,this._scrollStrategy=a,this._dir=s,this._formField=c,this._document=l,this._panelOpen=!1,this._manuallyFloatingLabel=!1,this._escapeEventStream=new i.Subject,this._onChange=function(){},this._onTouched=function(){}}return t.prototype.ngOnDestroy=function(){this._destroyPanel(),this._escapeEventStream.complete()},Object.defineProperty(t.prototype,"panelOpen",{get:function(){return this._panelOpen&&this.autocomplete.showPanel},enumerable:!0,configurable:!0}),t.prototype.openPanel=function(){this._attachOverlay(),this._floatLabel()},t.prototype.closePanel=function(){this._resetLabel(),this._panelOpen&&(this.autocomplete._isOpen=this._panelOpen=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._changeDetectorRef.detectChanges())},Object.defineProperty(t.prototype,"panelClosingActions",{get:function(){var t=this;return w.merge(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(h.filter(function(){return t._panelOpen})),this._escapeEventStream,this._outsideClickStream,this._overlayRef?this._overlayRef.detachments().pipe(h.filter(function(){return t._panelOpen})):C.of())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"optionSelections",{get:function(){return w.merge.apply(void 0,this.autocomplete.options.map(function(t){return t.onSelectionChange}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeOption",{get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_outsideClickStream",{get:function(){var t=this;return this._document?w.merge(b.fromEvent(this._document,"click"),b.fromEvent(this._document,"touchend")).pipe(h.filter(function(e){var n=e.target,r=t._formField?t._formField._elementRef.nativeElement:null;return t._panelOpen&&n!==t._element.nativeElement&&(!r||!r.contains(n))&&!!t._overlayRef&&!t._overlayRef.overlayElement.contains(n)})):C.of(null)},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e=this;Promise.resolve(null).then(function(){return e._setTriggerValue(t)})},t.prototype.registerOnChange=function(t){this._onChange=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.setDisabledState=function(t){this._element.nativeElement.disabled=t},t.prototype._handleKeydown=function(t){var e=t.keyCode;if(e===c.ESCAPE&&this.panelOpen)this._resetActiveItem(),this._escapeEventStream.next(),t.stopPropagation();else if(this.activeOption&&e===c.ENTER&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else{var n=this.autocomplete._keyManager.activeItem,r=e===c.UP_ARROW||e===c.DOWN_ARROW;this.panelOpen||e===c.TAB?this.autocomplete._keyManager.onKeydown(t):r&&this.openPanel(),(r||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption()}},t.prototype._handleInput=function(t){document.activeElement===t.target&&(this._onChange(t.target.value),this.openPanel())},t.prototype._handleFocus=function(){this._element.nativeElement.readOnly||(this._attachOverlay(),this._floatLabel(!0))},t.prototype._floatLabel=function(t){void 0===t&&(t=!1),this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)},t.prototype._resetLabel=function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)},t.prototype._scrollToOption=function(){var t=this.autocomplete._keyManager.activeItemIndex||0,e=48*(t+Ht.countGroupLabelsBeforeOption(t,this.autocomplete.options,this.autocomplete.optionGroups)),n=this.autocomplete._getScrollTop();if(e<n)this.autocomplete._setScrollTop(e);else if(e+48>n+256){var r=e-256+48;this.autocomplete._setScrollTop(Math.max(0,r))}},t.prototype._subscribeToClosingActions=function(){var t=this,e=this._zone.onStable.asObservable().pipe(d.take(1)),n=this.autocomplete.options.changes.pipe(m.tap(function(){return t._positionStrategy.recalculateLastPosition()}),g.delay(0));return w.merge(e,n).pipe(f.switchMap(function(){return t._resetActiveItem(),t.autocomplete._setVisibility(),t.panelClosingActions}),d.take(1)).subscribe(function(e){return t._setValueAndClose(e)})},t.prototype._destroyPanel=function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)},t.prototype._setTriggerValue=function(t){var e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,n=null!=e?e:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n},t.prototype._setValueAndClose=function(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()},t.prototype._clearPreviousSelectedOption=function(t){this.autocomplete.options.forEach(function(e){e!=t&&e.selected&&e.deselect()})},t.prototype._attachOverlay=function(){if(!this.autocomplete)throw ye();this._overlayRef?this._overlayRef.updateSize({width:this._getHostWidth()}):(this._portal=new p.TemplatePortal(this.autocomplete.template,this._viewContainerRef),this._overlayRef=this._overlay.create(this._getOverlayConfig())),this._overlayRef&&!this._overlayRef.hasAttached()&&(this._overlayRef.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions()),this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._panelOpen=!0},t.prototype._getOverlayConfig=function(){return new u.OverlayConfig({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getHostWidth(),direction:this._dir?this._dir.value:"ltr"})},t.prototype._getOverlayPosition=function(){return this._positionStrategy=this._overlay.position().connectedTo(this._getConnectedElement(),{originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}).withFallbackPosition({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),this._positionStrategy},t.prototype._getConnectedElement=function(){return this._formField?this._formField._connectionContainerRef:this._element},t.prototype._getHostWidth=function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width},t.prototype._resetActiveItem=function(){this.autocomplete._keyManager.setActiveItem(-1)},t.decorators=[{type:e.Directive,args:[{selector:"input[matAutocomplete], textarea[matAutocomplete]",host:{role:"combobox",autocomplete:"off","aria-autocomplete":"list","[attr.aria-activedescendant]":"activeOption?.id","[attr.aria-expanded]":"panelOpen.toString()","[attr.aria-owns]":"autocomplete?.id","(focusin)":"_handleFocus()","(blur)":"_onTouched()","(input)":"_handleInput($event)","(keydown)":"_handleKeydown($event)"},providers:[ge]}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:u.Overlay},{type:e.ViewContainerRef},{type:e.NgZone},{type:e.ChangeDetectorRef},{type:void 0,decorators:[{type:e.Inject,args:[de]}]},{type:n.Directionality,decorators:[{type:e.Optional}]},{type:ae,decorators:[{type:e.Optional},{type:e.Host}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[a.DOCUMENT]}]}]},t.propDecorators={autocomplete:[{type:e.Input,args:["matAutocomplete"]}]},t}(),be=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[zt,u.OverlayModule,Z,a.CommonModule],exports:[he,zt,ve,Z],declarations:[he,ve],providers:[me]}]}],t.ctorParameters=function(){return[]},t}(),_e="accent",we=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"button[mat-button], a[mat-button]",host:{class:"mat-button"}}]}],t.ctorParameters=function(){return[]},t}(),Ce=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"button[mat-raised-button], a[mat-raised-button]",host:{class:"mat-raised-button"}}]}],t.ctorParameters=function(){return[]},t}(),xe=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"button[mat-icon-button], a[mat-icon-button]",host:{class:"mat-icon-button"}}]}],t.ctorParameters=function(){return[]},t}(),Ee=function(){function t(t,e){(t||e).color=_e}return t.decorators=[{type:e.Directive,args:[{selector:"button[mat-fab], a[mat-fab]",host:{class:"mat-fab"}}]}],t.ctorParameters=function(){return[{type:Pe,decorators:[{type:e.Self},{type:e.Optional},{type:e.Inject,args:[e.forwardRef(function(){return Pe})]}]},{type:Ae,decorators:[{type:e.Self},{type:e.Optional},{type:e.Inject,args:[e.forwardRef(function(){return Ae})]}]}]},t}(),Se=function(){function t(t,e){(t||e).color=_e}return t.decorators=[{type:e.Directive,args:[{selector:"button[mat-mini-fab], a[mat-mini-fab]",host:{class:"mat-mini-fab"}}]}],t.ctorParameters=function(){return[{type:Pe,decorators:[{type:e.Self},{type:e.Optional},{type:e.Inject,args:[e.forwardRef(function(){return Pe})]}]},{type:Ae,decorators:[{type:e.Self},{type:e.Optional},{type:e.Inject,args:[e.forwardRef(function(){return Ae})]}]}]},t}(),ke=function(){return function(t){this._elementRef=t}}(),Oe=tt(J(et(ke))),Pe=function(t){function n(e,n,r){var i=t.call(this,e)||this;return i._platform=n,i._focusMonitor=r,i._isRoundButton=i._hasHostAttributes("mat-fab","mat-mini-fab"),i._isIconButton=i._hasHostAttributes("mat-icon-button"),i._focusMonitor.monitor(i._elementRef.nativeElement,!0),i}return Y(n,t),n.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef.nativeElement)},n.prototype.focus=function(){this._getHostElement().focus()},n.prototype._getHostElement=function(){return this._elementRef.nativeElement},n.prototype._isRippleDisabled=function(){return this.disableRipple||this.disabled},n.prototype._hasHostAttributes=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return!!this._platform.isBrowser&&e.some(function(e){return t._getHostElement().hasAttribute(e)})},n.decorators=[{type:e.Component,args:[{selector:"button[mat-button], button[mat-raised-button], button[mat-icon-button],\n             button[mat-fab], button[mat-mini-fab]",exportAs:"matButton",host:{"[disabled]":"disabled || null"},template:'<span class="mat-button-wrapper"><ng-content></ng-content></span><div matRipple class="mat-button-ripple" [class.mat-button-ripple-round]="_isRoundButton || _isIconButton" [matRippleDisabled]="_isRippleDisabled()" [matRippleCentered]="_isIconButton" [matRippleTrigger]="_getHostElement()"></div><div class="mat-button-focus-overlay"></div>',styles:[".mat-button,.mat-fab,.mat-icon-button,.mat-mini-fab,.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:88px;line-height:36px;padding:0 16px;border-radius:2px}[disabled].mat-button,[disabled].mat-fab,[disabled].mat-icon-button,[disabled].mat-mini-fab,[disabled].mat-raised-button{cursor:default}.cdk-keyboard-focused.mat-button .mat-button-focus-overlay,.cdk-keyboard-focused.mat-fab .mat-button-focus-overlay,.cdk-keyboard-focused.mat-icon-button .mat-button-focus-overlay,.cdk-keyboard-focused.mat-mini-fab .mat-button-focus-overlay,.cdk-keyboard-focused.mat-raised-button .mat-button-focus-overlay,.cdk-program-focused.mat-button .mat-button-focus-overlay,.cdk-program-focused.mat-fab .mat-button-focus-overlay,.cdk-program-focused.mat-icon-button .mat-button-focus-overlay,.cdk-program-focused.mat-mini-fab .mat-button-focus-overlay,.cdk-program-focused.mat-raised-button .mat-button-focus-overlay{opacity:1}.mat-button::-moz-focus-inner,.mat-fab::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-mini-fab::-moz-focus-inner,.mat-raised-button::-moz-focus-inner{border:0}.mat-fab,.mat-mini-fab,.mat-raised-button{transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1)}.mat-fab:not([class*=mat-elevation-z]),.mat-mini-fab:not([class*=mat-elevation-z]),.mat-raised-button:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-fab:not([disabled]):active:not([class*=mat-elevation-z]),.mat-mini-fab:not([disabled]):active:not([class*=mat-elevation-z]),.mat-raised-button:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}[disabled].mat-fab,[disabled].mat-mini-fab,[disabled].mat-raised-button{box-shadow:none}.mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{transition:none;opacity:0}.mat-button:hover .mat-button-focus-overlay{opacity:1}.mat-fab{min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-mini-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button .mat-icon,.mat-icon-button i{line-height:24px}.mat-button,.mat-fab,.mat-icon-button,.mat-mini-fab,.mat-raised-button{color:currentColor}.mat-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*{vertical-align:middle}.mat-button-focus-overlay,.mat-button-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-focus-overlay{background-color:rgba(0,0,0,.12);border-radius:inherit;opacity:0;transition:opacity .2s cubic-bezier(.35,0,.25,1),background-color .2s cubic-bezier(.35,0,.25,1)}@media screen and (-ms-high-contrast:active){.mat-button-focus-overlay{background-color:rgba(255,255,255,.5)}}.mat-button-ripple-round{border-radius:50%;z-index:1}@media screen and (-ms-high-contrast:active){.mat-button,.mat-fab,.mat-icon-button,.mat-mini-fab,.mat-raised-button{outline:solid 1px}}"],inputs:["disabled","disableRipple","color"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[{type:e.ElementRef},{type:s.Platform},{type:l.FocusMonitor}]},n}(Oe),Ae=function(t){function n(e,n,r){return t.call(this,r,e,n)||this}return Y(n,t),n.prototype._haltDisabledEvents=function(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())},n.decorators=[{type:e.Component,args:[{selector:"a[mat-button], a[mat-raised-button], a[mat-icon-button], a[mat-fab], a[mat-mini-fab]",exportAs:"matButton, matAnchor",host:{"[attr.tabindex]":"disabled ? -1 : 0","[attr.disabled]":"disabled || null","[attr.aria-disabled]":"disabled.toString()","(click)":"_haltDisabledEvents($event)"},inputs:["disabled","disableRipple","color"],template:'<span class="mat-button-wrapper"><ng-content></ng-content></span><div matRipple class="mat-button-ripple" [class.mat-button-ripple-round]="_isRoundButton || _isIconButton" [matRippleDisabled]="_isRippleDisabled()" [matRippleCentered]="_isIconButton" [matRippleTrigger]="_getHostElement()"></div><div class="mat-button-focus-overlay"></div>',styles:[".mat-button,.mat-fab,.mat-icon-button,.mat-mini-fab,.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:88px;line-height:36px;padding:0 16px;border-radius:2px}[disabled].mat-button,[disabled].mat-fab,[disabled].mat-icon-button,[disabled].mat-mini-fab,[disabled].mat-raised-button{cursor:default}.cdk-keyboard-focused.mat-button .mat-button-focus-overlay,.cdk-keyboard-focused.mat-fab .mat-button-focus-overlay,.cdk-keyboard-focused.mat-icon-button .mat-button-focus-overlay,.cdk-keyboard-focused.mat-mini-fab .mat-button-focus-overlay,.cdk-keyboard-focused.mat-raised-button .mat-button-focus-overlay,.cdk-program-focused.mat-button .mat-button-focus-overlay,.cdk-program-focused.mat-fab .mat-button-focus-overlay,.cdk-program-focused.mat-icon-button .mat-button-focus-overlay,.cdk-program-focused.mat-mini-fab .mat-button-focus-overlay,.cdk-program-focused.mat-raised-button .mat-button-focus-overlay{opacity:1}.mat-button::-moz-focus-inner,.mat-fab::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-mini-fab::-moz-focus-inner,.mat-raised-button::-moz-focus-inner{border:0}.mat-fab,.mat-mini-fab,.mat-raised-button{transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1)}.mat-fab:not([class*=mat-elevation-z]),.mat-mini-fab:not([class*=mat-elevation-z]),.mat-raised-button:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-fab:not([disabled]):active:not([class*=mat-elevation-z]),.mat-mini-fab:not([disabled]):active:not([class*=mat-elevation-z]),.mat-raised-button:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}[disabled].mat-fab,[disabled].mat-mini-fab,[disabled].mat-raised-button{box-shadow:none}.mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{transition:none;opacity:0}.mat-button:hover .mat-button-focus-overlay{opacity:1}.mat-fab{min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-mini-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button .mat-icon,.mat-icon-button i{line-height:24px}.mat-button,.mat-fab,.mat-icon-button,.mat-mini-fab,.mat-raised-button{color:currentColor}.mat-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*{vertical-align:middle}.mat-button-focus-overlay,.mat-button-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-focus-overlay{background-color:rgba(0,0,0,.12);border-radius:inherit;opacity:0;transition:opacity .2s cubic-bezier(.35,0,.25,1),background-color .2s cubic-bezier(.35,0,.25,1)}@media screen and (-ms-high-contrast:active){.mat-button-focus-overlay{background-color:rgba(255,255,255,.5)}}.mat-button-ripple-round{border-radius:50%;z-index:1}@media screen and (-ms-high-contrast:active){.mat-button,.mat-fab,.mat-icon-button,.mat-mini-fab,.mat-raised-button{outline:solid 1px}}"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[{type:s.Platform},{type:l.FocusMonitor},{type:e.ElementRef}]},n}(Pe),Te=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule,It,Z,l.A11yModule],exports:[Pe,Ae,Se,Ee,Z,we,Ce,xe],declarations:[Pe,Ae,Se,Ee,we,Ce,xe]}]}],t.ctorParameters=function(){return[]},t}(),Me=function(){return function(){}}(),Ie=J(Me),Re={provide:y.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return Le}),multi:!0},De=0,Ne=function(){return function(){}}(),Le=function(t){function n(n){var r=t.call(this)||this;return r._changeDetector=n,r._value=null,r._name="mat-button-toggle-group-"+De++,r._vertical=!1,r._selected=null,r._controlValueAccessorChangeFn=function(){},r._onTouched=function(){},r.valueChange=new e.EventEmitter,r.change=new e.EventEmitter,r}return Y(n,t),Object.defineProperty(n.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t,this._updateButtonToggleNames()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"vertical",{get:function(){return this._vertical},set:function(t){this._vertical=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this._value},set:function(t){this._value!=t&&(this._value=t,this.valueChange.emit(t),this._updateSelectedButtonToggleFromValue())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=t,this.value=t?t.value:null,t&&!t.checked&&(t.checked=!0)},enumerable:!0,configurable:!0}),n.prototype._updateButtonToggleNames=function(){var t=this;this._buttonToggles&&this._buttonToggles.forEach(function(e){e.name=t._name})},n.prototype._updateSelectedButtonToggleFromValue=function(){var t=this,e=null!=this._selected&&this._selected.value==this._value;if(null!=this._buttonToggles&&!e){var n=this._buttonToggles.filter(function(e){return e.value==t._value})[0];n?this.selected=n:null==this.value&&(this.selected=null,this._buttonToggles.forEach(function(t){t.checked=!1}))}},n.prototype._emitChangeEvent=function(){var t=new Ne;t.source=this._selected,t.value=this._value,this._controlValueAccessorChangeFn(t.value),this.change.emit(t)},n.prototype.writeValue=function(t){this.value=t,this._changeDetector.markForCheck()},n.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},n.prototype.registerOnTouched=function(t){this._onTouched=t},n.prototype.setDisabledState=function(t){this.disabled=t,this._markButtonTogglesForCheck()},n.prototype._markButtonTogglesForCheck=function(){this._buttonToggles&&this._buttonToggles.forEach(function(t){return t._markForCheck()})},n.decorators=[{type:e.Directive,args:[{selector:"mat-button-toggle-group:not([multiple])",providers:[Re],inputs:["disabled"],host:{role:"radiogroup",class:"mat-button-toggle-group","[class.mat-button-toggle-vertical]":"vertical"},exportAs:"matButtonToggleGroup"}]}],n.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]},n.propDecorators={_buttonToggles:[{type:e.ContentChildren,args:[e.forwardRef(function(){return Fe})]}],name:[{type:e.Input}],vertical:[{type:e.Input}],value:[{type:e.Input}],valueChange:[{type:e.Output}],selected:[{type:e.Input}],change:[{type:e.Output}]},n}(Ie),je=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._vertical=!1,e}return Y(n,t),Object.defineProperty(n.prototype,"vertical",{get:function(){return this._vertical},set:function(t){this._vertical=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),n.decorators=[{type:e.Directive,args:[{selector:"mat-button-toggle-group[multiple]",exportAs:"matButtonToggleGroup",inputs:["disabled"],host:{class:"mat-button-toggle-group","[class.mat-button-toggle-vertical]":"vertical",role:"group"}}]}],n.ctorParameters=function(){return[]},n.propDecorators={vertical:[{type:e.Input}]},n}(Ie),Fe=function(){function t(t,n,r,i,o,a){var s=this;this._changeDetectorRef=r,this._buttonToggleDispatcher=i,this._elementRef=o,this._focusMonitor=a,this.ariaLabel="",this.ariaLabelledby=null,this._checked=!1,this._disabled=!1,this._value=null,this._isSingleSelector=!1,this._removeUniqueSelectionListener=function(){},this.change=new e.EventEmitter,this.buttonToggleGroup=t,this.buttonToggleGroupMultiple=n,this.buttonToggleGroup?(this._removeUniqueSelectionListener=i.listen(function(t,e){t!=s.id&&e==s.name&&(s.checked=!1,s._changeDetectorRef.markForCheck())}),this._type="radio",this.name=this.buttonToggleGroup.name,this._isSingleSelector=!0):(this._type="checkbox",this._isSingleSelector=!1)}return Object.defineProperty(t.prototype,"inputId",{get:function(){return this.id+"-input"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(t){this._isSingleSelector&&t&&(this._buttonToggleDispatcher.notify(this.id,this.name),this._changeDetectorRef.markForCheck()),this._checked=t,t&&this._isSingleSelector&&this.buttonToggleGroup.value!=this.value&&(this.buttonToggleGroup.selected=this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value!=t&&(null!=this.buttonToggleGroup&&this.checked&&(this.buttonToggleGroup.value=t),this._value=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled||null!=this.buttonToggleGroup&&this.buttonToggleGroup.disabled||null!=this.buttonToggleGroupMultiple&&this.buttonToggleGroupMultiple.disabled},set:function(t){this._disabled=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){null==this.id&&(this.id="mat-button-toggle-"+De++),this.buttonToggleGroup&&this._value==this.buttonToggleGroup.value&&(this._checked=!0),this._focusMonitor.monitor(this._elementRef.nativeElement,!0)},t.prototype.focus=function(){this._inputElement.nativeElement.focus()},t.prototype._toggle=function(){this.checked=!this.checked},t.prototype._onInputChange=function(t){if(t.stopPropagation(),this._isSingleSelector){var e=this.buttonToggleGroup.selected!=this;this.checked=!0,this.buttonToggleGroup.selected=this,this.buttonToggleGroup._onTouched(),e&&this.buttonToggleGroup._emitChangeEvent()}else this._toggle();this._emitChangeEvent()},t.prototype._onInputClick=function(t){t.stopPropagation()},t.prototype._emitChangeEvent=function(){var t=new Ne;t.source=this,t.value=this._value,this.change.emit(t)},t.prototype.ngOnDestroy=function(){this._removeUniqueSelectionListener()},t.prototype._markForCheck=function(){this._changeDetectorRef.markForCheck()},t.decorators=[{type:e.Component,args:[{selector:"mat-button-toggle",template:'<label [attr.for]="inputId" class="mat-button-toggle-label"><input #input class="mat-button-toggle-input cdk-visually-hidden" [type]="_type" [id]="inputId" [checked]="checked" [disabled]="disabled || null" [name]="name" [attr.aria-label]="ariaLabel" [attr.aria-labelledby]="ariaLabelledby" (change)="_onInputChange($event)" (click)="_onInputClick($event)"><div class="mat-button-toggle-label-content"><ng-content></ng-content></div></label><div class="mat-button-toggle-focus-overlay"></div>',styles:[".mat-button-toggle-group,.mat-button-toggle-standalone{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);position:relative;display:inline-flex;flex-direction:row;border-radius:2px;cursor:pointer;white-space:nowrap;overflow:hidden}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle-disabled .mat-button-toggle-label-content{cursor:default}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay,.mat-button-toggle.cdk-program-focused .mat-button-toggle-focus-overlay{opacity:1}.mat-button-toggle-label-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;cursor:pointer}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;top:0;left:0;right:0;bottom:0;position:absolute}"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,exportAs:"matButtonToggle",changeDetection:e.ChangeDetectionStrategy.OnPush,host:{"[class.mat-button-toggle-standalone]":"!buttonToggleGroup && !buttonToggleGroupMultiple","[class.mat-button-toggle-checked]":"checked","[class.mat-button-toggle-disabled]":"disabled",class:"mat-button-toggle","[attr.id]":"id"}}]}],t.ctorParameters=function(){return[{type:Le,decorators:[{type:e.Optional}]},{type:je,decorators:[{type:e.Optional}]},{type:e.ChangeDetectorRef},{type:x.UniqueSelectionDispatcher},{type:e.ElementRef},{type:l.FocusMonitor}]},t.propDecorators={ariaLabel:[{type:e.Input,args:["aria-label"]}],ariaLabelledby:[{type:e.Input,args:["aria-labelledby"]}],_inputElement:[{type:e.ViewChild,args:["input"]}],id:[{type:e.Input}],name:[{type:e.Input}],checked:[{type:e.Input}],value:[{type:e.Input}],disabled:[{type:e.Input}],change:[{type:e.Output}]},t}(),Ve=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[Z,l.A11yModule],exports:[Le,je,Fe,Z],declarations:[Le,je,Fe],providers:[x.UNIQUE_SELECTION_DISPATCHER_PROVIDER]}]}],t.ctorParameters=function(){return[]},t}(),Be=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-card-content",host:{class:"mat-card-content"}}]}],t.ctorParameters=function(){return[]},t}(),Ue=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-card-title, [mat-card-title], [matCardTitle]",host:{class:"mat-card-title"}}]}],t.ctorParameters=function(){return[]},t}(),He=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]",host:{class:"mat-card-subtitle"}}]}],t.ctorParameters=function(){return[]},t}(),ze=function(){function t(){this.align="start"}return t.decorators=[{type:e.Directive,args:[{selector:"mat-card-actions",exportAs:"matCardActions",host:{class:"mat-card-actions","[class.mat-card-actions-align-end]":'align === "end"'}}]}],t.ctorParameters=function(){return[]},t.propDecorators={align:[{type:e.Input}]},t}(),Ge=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-card-footer",host:{class:"mat-card-footer"}}]}],t.ctorParameters=function(){return[]},t}(),We=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-card-image], [matCardImage]",host:{class:"mat-card-image"}}]}],t.ctorParameters=function(){return[]},t}(),qe=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-card-sm-image], [matCardImageSmall]",host:{class:"mat-card-sm-image"}}]}],t.ctorParameters=function(){return[]},t}(),Ye=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-card-md-image], [matCardImageMedium]",host:{class:"mat-card-md-image"}}]}],t.ctorParameters=function(){return[]},t}(),Ke=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-card-lg-image], [matCardImageLarge]",host:{class:"mat-card-lg-image"}}]}],t.ctorParameters=function(){return[]},t}(),$e=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-card-xl-image], [matCardImageXLarge]",host:{class:"mat-card-xl-image"}}]}],t.ctorParameters=function(){return[]},t}(),Xe=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-card-avatar], [matCardAvatar]",host:{class:"mat-card-avatar"}}]}],t.ctorParameters=function(){return[]},t}(),Qe=function(){function t(){}return t.decorators=[{type:e.Component,args:[{selector:"mat-card",exportAs:"matCard",template:'<ng-content></ng-content><ng-content select="mat-card-footer"></ng-content>',styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(.4,0,.2,1);display:block;position:relative;padding:24px;border-radius:2px}.mat-card:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-card .mat-divider{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider{left:auto;right:0}.mat-card .mat-divider.mat-divider-inset{position:static;margin:0}@media screen and (-ms-high-contrast:active){.mat-card{outline:solid 1px}}.mat-card-flat{box-shadow:none}.mat-card-actions,.mat-card-content,.mat-card-subtitle,.mat-card-title{display:block;margin-bottom:16px}.mat-card-actions{margin-left:-16px;margin-right:-16px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 48px);margin:0 -24px 16px -24px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-footer{display:block;margin:0 -24px -24px -24px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button{margin:0 4px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header-text{margin:0 8px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0}.mat-card-lg-image,.mat-card-md-image,.mat-card-sm-image{margin:-8px 0}.mat-card-title-group{display:flex;justify-content:space-between;margin:0 -8px}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}@media (max-width:600px){.mat-card{padding:24px 16px}.mat-card-actions{margin-left:-8px;margin-right:-8px}.mat-card-image{width:calc(100% + 32px);margin:16px -16px}.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}.mat-card-header{margin:-8px 0 0 0}.mat-card-footer{margin-left:-16px;margin-right:-16px}}.mat-card-content>:first-child,.mat-card>:first-child{margin-top:0}.mat-card-content>:last-child:not(.mat-card-footer),.mat-card>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-24px}.mat-card>.mat-card-actions:last-child{margin-bottom:-16px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child{margin-left:0;margin-right:0}.mat-card-subtitle:not(:first-child),.mat-card-title:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,host:{class:"mat-card"}}]}],t.ctorParameters=function(){return[]},t}(),Ze=function(){function t(){}return t.decorators=[{type:e.Component,args:[{selector:"mat-card-header",template:'<ng-content select="[mat-card-avatar], [matCardAvatar]"></ng-content><div class="mat-card-header-text"><ng-content select="mat-card-title, mat-card-subtitle, [mat-card-title], [mat-card-subtitle]"></ng-content></div><ng-content></ng-content>',encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,host:{class:"mat-card-header"}}]}],t.ctorParameters=function(){return[]},t}(),Je=function(){function t(){}return t.decorators=[{type:e.Component,args:[{selector:"mat-card-title-group",template:'<div><ng-content select="mat-card-title, mat-card-subtitle, [mat-card-title], [mat-card-subtitle]"></ng-content></div><ng-content select="img"></ng-content><ng-content></ng-content>',encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,host:{class:"mat-card-title-group"}}]}],t.ctorParameters=function(){return[]},t}(),tn=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[Z],exports:[Qe,Ze,Je,Be,Ue,He,ze,Ge,qe,Ye,Ke,We,$e,Xe,Z],declarations:[Qe,Ze,Je,Be,Ue,He,ze,Ge,qe,Ye,Ke,We,$e,Xe]}]}],t.ctorParameters=function(){return[]},t}(),en=new e.InjectionToken("mat-checkbox-click-action"),nn=0,rn={provide:y.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return ln}),multi:!0},on={Init:0,Checked:1,Unchecked:2,Indeterminate:3};on[on.Init]="Init",on[on.Checked]="Checked",on[on.Unchecked]="Unchecked",on[on.Indeterminate]="Indeterminate";var an=function(){return function(){}}(),sn=function(){return function(t){this._elementRef=t}}(),cn=nt(tt(et(J(sn)),"accent")),ln=function(t){function n(n,r,i,o,a){var s=t.call(this,n)||this;return s._changeDetectorRef=r,s._focusMonitor=i,s._clickAction=a,s.ariaLabel="",s.ariaLabelledby=null,s._uniqueId="mat-checkbox-"+ ++nn,s.id=s._uniqueId,s.labelPosition="after",s.name=null,s.change=new e.EventEmitter,s.indeterminateChange=new e.EventEmitter,s._rippleConfig={centered:!0,radius:25,speedFactor:1.5},s.onTouched=function(){},s._currentAnimationClass="",s._currentCheckState=on.Init,s._checked=!1,s._indeterminate=!1,s._controlValueAccessorChangeFn=function(){},s.tabIndex=parseInt(o)||0,s}return Y(n,t),Object.defineProperty(n.prototype,"inputId",{get:function(){return(this.id||this._uniqueId)+"-input"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"required",{get:function(){return this._required},set:function(t){this._required=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"align",{get:function(){return"after"==this.labelPosition?"start":"end"},set:function(t){this.labelPosition="start"==t?"after":"before"},enumerable:!0,configurable:!0}),n.prototype.ngAfterViewInit=function(){var t=this;this._focusMonitor.monitor(this._inputElement.nativeElement,!1).subscribe(function(e){return t._onInputFocusChange(e)})},n.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._inputElement.nativeElement)},Object.defineProperty(n.prototype,"checked",{get:function(){return this._checked},set:function(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"indeterminate",{get:function(){return this._indeterminate},set:function(t){var e=t!=this._indeterminate;this._indeterminate=t,e&&(this._indeterminate?this._transitionCheckState(on.Indeterminate):this._transitionCheckState(this.checked?on.Checked:on.Unchecked),this.indeterminateChange.emit(this._indeterminate))},enumerable:!0,configurable:!0}),n.prototype._isRippleDisabled=function(){return this.disableRipple||this.disabled},n.prototype._onLabelTextChange=function(){this._changeDetectorRef.markForCheck()},n.prototype.writeValue=function(t){this.checked=!!t},n.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},n.prototype.registerOnTouched=function(t){this.onTouched=t},n.prototype.setDisabledState=function(t){this.disabled=t,this._changeDetectorRef.markForCheck()},n.prototype._getAriaChecked=function(){return this.checked?"true":this.indeterminate?"mixed":"false"},n.prototype._transitionCheckState=function(t){var e=this._currentCheckState,n=this._elementRef.nativeElement;e!==t&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0&&n.classList.add(this._currentAnimationClass))},n.prototype._emitChangeEvent=function(){var t=new an;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)},n.prototype._onInputFocusChange=function(t){this._focusRipple||"keyboard"!==t?t||(this._removeFocusRipple(),this.onTouched()):this._focusRipple=this._ripple.launch(0,0,K({persistent:!0},this._rippleConfig))},n.prototype.toggle=function(){this.checked=!this.checked},n.prototype._onInputClick=function(t){var e=this;t.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then(function(){e._indeterminate=!1,e.indeterminateChange.emit(e._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?on.Checked:on.Unchecked),this._emitChangeEvent())},n.prototype.focus=function(){this._focusMonitor.focusVia(this._inputElement.nativeElement,"keyboard")},n.prototype._onInteractionEvent=function(t){t.stopPropagation()},n.prototype._getAnimationClassForCheckStateTransition=function(t,e){var n="";switch(t){case on.Init:if(e===on.Checked)n="unchecked-checked";else{if(e!=on.Indeterminate)return"";n="unchecked-indeterminate"}break;case on.Unchecked:n=e===on.Checked?"unchecked-checked":"unchecked-indeterminate";break;case on.Checked:n=e===on.Unchecked?"checked-unchecked":"checked-indeterminate";break;case on.Indeterminate:n=e===on.Checked?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-"+n},n.prototype._removeFocusRipple=function(){this._focusRipple&&(this._focusRipple.fadeOut(),this._focusRipple=null)},n.decorators=[{type:e.Component,args:[{selector:"mat-checkbox",template:'<label [attr.for]="inputId" class="mat-checkbox-layout" #label><div class="mat-checkbox-inner-container" [class.mat-checkbox-inner-container-no-side-margin]="!checkboxLabel.textContent || !checkboxLabel.textContent.trim()"><input #input class="mat-checkbox-input cdk-visually-hidden" type="checkbox" [id]="inputId" [required]="required" [checked]="checked" [attr.value]="value" [disabled]="disabled" [attr.name]="name" [tabIndex]="tabIndex" [indeterminate]="indeterminate" [attr.aria-label]="ariaLabel" [attr.aria-labelledby]="ariaLabelledby" [attr.aria-checked]="_getAriaChecked()" (change)="_onInteractionEvent($event)" (click)="_onInputClick($event)"><div matRipple class="mat-checkbox-ripple" [matRippleTrigger]="label" [matRippleDisabled]="_isRippleDisabled()" [matRippleRadius]="_rippleConfig.radius" [matRippleSpeedFactor]="_rippleConfig.speedFactor" [matRippleCentered]="_rippleConfig.centered"></div><div class="mat-checkbox-frame"></div><div class="mat-checkbox-background"><svg version="1.1" focusable="false" class="mat-checkbox-checkmark" viewBox="0 0 24 24" xml:space="preserve"><path class="mat-checkbox-checkmark-path" fill="none" stroke="white" d="M4.1,12.7 9,17.6 20.3,6.3"/></svg><div class="mat-checkbox-mixedmark"></div></div></div><span class="mat-checkbox-label" #checkboxLabel (cdkObserveContent)="_onLabelTextChange()"><span style="display:none">&nbsp;</span><ng-content></ng-content></span></label>',styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.91026}50%{animation-timing-function:cubic-bezier(0,0,.2,.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0,0,0,1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(.4,0,1,1);stroke-dashoffset:0}to{stroke-dashoffset:-22.91026}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0,0,.2,.1);opacity:1;transform:rotate(0)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(.14,0,0,1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0,0,.2,.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(.14,0,0,1);opacity:1;transform:rotate(0)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}100%,32.8%{opacity:0;transform:scaleX(0)}}.mat-checkbox-checkmark,.mat-checkbox-mixedmark{width:calc(100% - 4px)}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1);cursor:pointer}.mat-checkbox-layout{cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-inner-container{display:inline-block;height:20px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:20px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0,0,.2,.1);border-width:2px;border-style:solid}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0,0,.2,.1),opacity 90ms cubic-bezier(0,0,.2,.1)}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.91026;stroke-dasharray:22.91026;stroke-width:2.66667px}.mat-checkbox-mixedmark{height:2px;opacity:0;transform:scaleX(0) rotate(0)}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0s mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0s mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0s mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0s mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0s mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:.5s linear 0s mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:.5s linear 0s mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:.3s linear 0s mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-ripple{position:absolute;left:-15px;top:-15px;height:50px;width:50px;z-index:1;pointer-events:none}"],exportAs:"matCheckbox",host:{class:"mat-checkbox","[id]":"id","[class.mat-checkbox-indeterminate]":"indeterminate","[class.mat-checkbox-checked]":"checked","[class.mat-checkbox-disabled]":"disabled","[class.mat-checkbox-label-before]":'labelPosition == "before"'},providers:[rn],inputs:["disabled","disableRipple","color","tabIndex"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ChangeDetectorRef},{type:l.FocusMonitor},{type:void 0,decorators:[{type:e.Attribute,args:["tabindex"]}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[en]}]}]},n.propDecorators={ariaLabel:[{type:e.Input,args:["aria-label"]}],ariaLabelledby:[{type:e.Input,args:["aria-labelledby"]}],id:[{type:e.Input}],required:[{type:e.Input}],align:[{type:e.Input}],labelPosition:[{type:e.Input}],name:[{type:e.Input}],change:[{type:e.Output}],indeterminateChange:[{type:e.Output}],value:[{type:e.Input}],_inputElement:[{type:e.ViewChild,args:["input"]}],_ripple:[{type:e.ViewChild,args:[Mt]}],checked:[{type:e.Input}],indeterminate:[{type:e.Input}]},n}(cn),un={provide:y.NG_VALIDATORS,useExisting:e.forwardRef(function(){return pn}),multi:!0},pn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Directive,args:[{selector:"mat-checkbox[required][formControlName],\n             mat-checkbox[required][formControl], mat-checkbox[required][ngModel]",providers:[un],host:{"[attr.required]":'required ? "" : null'}}]}],n.ctorParameters=function(){return[]},n}(y.CheckboxRequiredValidator),hn=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule,It,Z,E.ObserversModule,l.A11yModule],exports:[ln,pn,Z],declarations:[ln,pn]}]}],t.ctorParameters=function(){return[]},t}(),dn=function(){return function(t,e,n){void 0===n&&(n=!1),this.source=t,this.selected=e,this.isUserInput=n}}(),fn=function(){return function(t){this._elementRef=t}}(),mn=tt(J(fn),"primary"),gn=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-basic-chip, [mat-basic-chip]",host:{class:"mat-basic-chip"}}]}],t.ctorParameters=function(){return[]},t}(),yn=function(t){function n(n){var r=t.call(this,n)||this;return r._elementRef=n,r._selected=!1,r._selectable=!0,r._removable=!0,r._hasFocus=!1,r._onFocus=new i.Subject,r._onBlur=new i.Subject,r.selectionChange=new e.EventEmitter,r.destroyed=new e.EventEmitter,r.destroy=r.destroyed,r.removed=new e.EventEmitter,r.onRemove=r.removed,r}return Y(n,t),Object.defineProperty(n.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=r.coerceBooleanProperty(t),this.selectionChange.emit({source:this,isUserInput:!1,selected:t})},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return void 0!=this._value?this._value:this._elementRef.nativeElement.textContent},set:function(t){this._value=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selectable",{get:function(){return this._selectable},set:function(t){this._selectable=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"removable",{get:function(){return this._removable},set:function(t){this._removable=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"ariaSelected",{get:function(){return this.selectable?this.selected.toString():null},enumerable:!0,configurable:!0}),n.prototype.ngOnDestroy=function(){this.destroyed.emit({chip:this})},n.prototype.select=function(){this._selected=!0,this.selectionChange.emit({source:this,isUserInput:!1,selected:!0})},n.prototype.deselect=function(){this._selected=!1,this.selectionChange.emit({source:this,isUserInput:!1,selected:!1})},n.prototype.selectViaInteraction=function(){this._selected=!0,this.selectionChange.emit({source:this,isUserInput:!0,selected:!0})},n.prototype.toggleSelected=function(t){return void 0===t&&(t=!1),this._selected=!this.selected,this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected}),this.selected},n.prototype.focus=function(){this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})},n.prototype.remove=function(){this.removable&&this.removed.emit({chip:this})},n.prototype._handleClick=function(t){this.disabled||(t.preventDefault(),t.stopPropagation(),this.focus())},n.prototype._handleKeydown=function(t){if(!this.disabled)switch(t.keyCode){case c.DELETE:case c.BACKSPACE:this.remove(),t.preventDefault();break;case c.SPACE:this.selectable&&this.toggleSelected(!0),t.preventDefault()}},n.prototype._blur=function(){this._hasFocus=!1,this._onBlur.next({chip:this})},n.decorators=[{type:e.Directive,args:[{selector:"mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]",inputs:["color","disabled"],exportAs:"matChip",host:{class:"mat-chip","[attr.tabindex]":"disabled ? null : -1",role:"option","[class.mat-chip-selected]":"selected","[attr.disabled]":"disabled || null","[attr.aria-disabled]":"disabled.toString()","[attr.aria-selected]":"ariaSelected","(click)":"_handleClick($event)","(keydown)":"_handleKeydown($event)","(focus)":"_hasFocus = true","(blur)":"_blur()"}}]}],n.ctorParameters=function(){return[{type:e.ElementRef}]},n.propDecorators={selected:[{type:e.Input}],value:[{type:e.Input}],selectable:[{type:e.Input}],removable:[{type:e.Input}],selectionChange:[{type:e.Output}],destroyed:[{type:e.Output}],destroy:[{type:e.Output}],removed:[{type:e.Output}],onRemove:[{type:e.Output,args:["remove"]}]},n}(mn),vn=function(){function t(t){this._parentChip=t}return t.prototype._handleClick=function(){this._parentChip.removable&&this._parentChip.remove()},t.decorators=[{type:e.Directive,args:[{selector:"[matChipRemove]",host:{class:"mat-chip-remove","(click)":"_handleClick()"}}]}],t.ctorParameters=function(){return[{type:yn}]},t}(),bn=function(){return function(t,e,n,r){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=r}}(),_n=rt(bn),wn=0,Cn=function(){return function(t,e){this.source=t,this.value=e}}(),xn=function(t){function i(n,r,i,o,a,s,c){var l=t.call(this,s,o,a,c)||this;return l._elementRef=n,l._changeDetectorRef=r,l._dir=i,l.ngControl=c,l.controlType="mat-chip-list",l._lastDestroyedIndex=null,l._chipSet=new WeakMap,l._tabOutSubscription=S.Subscription.EMPTY,l._selectable=!0,l._multiple=!1,l._uid="mat-chip-list-"+wn++,l._required=!1,l._disabled=!1,l._tabIndex=0,l._userTabIndex=null,l._onTouched=function(){},l._onChange=function(){},l._compareWith=function(t,e){return t===e},l.ariaOrientation="horizontal",l.change=new e.EventEmitter,l.valueChange=new e.EventEmitter,l.ngControl&&(l.ngControl.valueAccessor=l),l}return Y(i,t),Object.defineProperty(i.prototype,"selected",{get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"role",{get:function(){return this.empty?null:"listbox"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"multiple",{get:function(){return this._multiple},set:function(t){this._multiple=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"compareWith",{get:function(){return this._compareWith},set:function(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this._value},set:function(t){this.writeValue(t),this._value=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){return this._id||this._uid},set:function(t){this._id=t,this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"required",{get:function(){return this._required},set:function(t){this._required=r.coerceBooleanProperty(t),this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"placeholder",{get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"focused",{get:function(){return this.chips.some(function(t){return t._hasFocus})||this._chipInput&&this._chipInput.focused},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"empty",{get:function(){return(!this._chipInput||this._chipInput.empty)&&0===this.chips.length},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"shouldLabelFloat",{get:function(){return!this.empty||this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"disabled",{get:function(){return this.ngControl?this.ngControl.disabled:this._disabled},set:function(t){this._disabled=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"selectable",{get:function(){return this._selectable},set:function(t){this._selectable=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tabIndex",{set:function(t){this._userTabIndex=t,this._tabIndex=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"chipSelectionChanges",{get:function(){return w.merge.apply(void 0,this.chips.map(function(t){return t.selectionChange}))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"chipFocusChanges",{get:function(){return w.merge.apply(void 0,this.chips.map(function(t){return t._onFocus}))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"chipBlurChanges",{get:function(){return w.merge.apply(void 0,this.chips.map(function(t){return t._onBlur}))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"chipRemoveChanges",{get:function(){return w.merge.apply(void 0,this.chips.map(function(t){return t.destroy}))},enumerable:!0,configurable:!0}),i.prototype.ngAfterContentInit=function(){var t=this;this._keyManager=new l.FocusKeyManager(this.chips).withWrap(),this._tabOutSubscription=this._keyManager.tabOut.subscribe(function(){t._tabIndex=-1,setTimeout(function(){return t._tabIndex=t._userTabIndex||0})}),this._changeSubscription=this.chips.changes.pipe(v.startWith(null)).subscribe(function(){t._resetChips(),t._initializeSelection(),t._updateTabIndex(),t._updateFocusForDestroyedChips()})},i.prototype.ngOnInit=function(){this._selectionModel=new x.SelectionModel(this.multiple,void 0,!1),this.stateChanges.next()},i.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState()},i.prototype.ngOnDestroy=function(){this._tabOutSubscription.unsubscribe(),this._changeSubscription&&this._changeSubscription.unsubscribe(),this._dropSubscriptions(),this.stateChanges.complete()},i.prototype.registerInput=function(t){this._chipInput=t},i.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},i.prototype.writeValue=function(t){this.chips&&this._setSelectionByValue(t,!1)},i.prototype.registerOnChange=function(t){this._onChange=t},i.prototype.registerOnTouched=function(t){this._onTouched=t},i.prototype.setDisabledState=function(t){this.disabled=t,this._elementRef.nativeElement.disabled=t,this.stateChanges.next()},i.prototype.onContainerClick=function(){this.focus()},i.prototype.focus=function(){this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(),this.stateChanges.next()))},i.prototype._focusInput=function(){this._chipInput&&this._chipInput.focus()},i.prototype._keydown=function(t){var e=t.keyCode,n=t.target,r=this._isInputEmpty(n),i=this._dir&&"rtl"==this._dir.value,o=e===(i?c.RIGHT_ARROW:c.LEFT_ARROW),a=e===(i?c.LEFT_ARROW:c.RIGHT_ARROW),s=e===c.BACKSPACE;if(r&&s)return this._keyManager.setLastItemActive(),void t.preventDefault();n&&n.classList.contains("mat-chip")&&(o?(this._keyManager.setPreviousItemActive(),t.preventDefault()):a?(this._keyManager.setNextItemActive(),t.preventDefault()):this._keyManager.onKeydown(t)),this.stateChanges.next()},i.prototype._updateTabIndex=function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)},i.prototype._updateKeyManager=function(t){var e=this.chips.toArray().indexOf(t);this._isValidIndex(e)&&(t._hasFocus&&(e<this.chips.length-1?this._keyManager.setActiveItem(e):e-1>=0&&this._keyManager.setActiveItem(e-1)),this._keyManager.activeItemIndex===e&&(this._lastDestroyedIndex=e))},i.prototype._updateFocusForDestroyedChips=function(){var t=this.chips;if(null!=this._lastDestroyedIndex&&t.length>0){var e=Math.min(this._lastDestroyedIndex,t.length-1);this._keyManager.setActiveItem(e);var n=this._keyManager.activeItem;n&&n.focus()}this._lastDestroyedIndex=null},i.prototype._isValidIndex=function(t){return t>=0&&t<this.chips.length},i.prototype._isInputEmpty=function(t){return!(!t||"input"!==t.nodeName.toLowerCase())&&!t.value},i.prototype._setSelectionByValue=function(t,e){var n=this;if(void 0===e&&(e=!0),this._clearSelection(),this.chips.forEach(function(t){return t.deselect()}),Array.isArray(t))t.forEach(function(t){return n._selectValue(t,e)}),this._sortValues();else{var r=this._selectValue(t,e);if(r){var i=this.chips.toArray().indexOf(r);e?this._keyManager.setActiveItem(i):this._keyManager.updateActiveItemIndex(i)}}},i.prototype._selectValue=function(t,e){var n=this;void 0===e&&(e=!0);var r=this.chips.find(function(e){return null!=e.value&&n._compareWith(e.value,t)});return r&&(e?r.selectViaInteraction():r.select(),this._selectionModel.select(r)),r},i.prototype._initializeSelection=function(){var t=this;Promise.resolve().then(function(){(t.ngControl||t._value)&&(t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value,!1),t.stateChanges.next())})},i.prototype._clearSelection=function(t){this._selectionModel.clear(),this.chips.forEach(function(e){e!==t&&e.deselect()}),this.stateChanges.next()},i.prototype._sortValues=function(){var t=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(e){e.selected&&t._selectionModel.select(e)}),this.stateChanges.next())},i.prototype._propagateChanges=function(t){var e=null;e=Array.isArray(this.selected)?this.selected.map(function(t){return t.value}):this.selected?this.selected.value:t,this._value=e,this.change.emit(new Cn(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()},i.prototype._blur=function(){var t=this;this.disabled||(this._chipInput?setTimeout(function(){t.focused||t._markAsTouched()}):this._markAsTouched())},i.prototype._markAsTouched=function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()},i.prototype._resetChips=function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()},i.prototype._dropSubscriptions=function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null)},i.prototype._listenToChipsSelection=function(){var t=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(e){e.source.selected?t._selectionModel.select(e.source):t._selectionModel.deselect(e.source),t.multiple||t.chips.forEach(function(e){!t._selectionModel.isSelected(e)&&e.selected&&e.deselect()}),e.isUserInput&&t._propagateChanges()})},i.prototype._listenToChipsFocus=function(){var t=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(e){var n=t.chips.toArray().indexOf(e.chip);t._isValidIndex(n)&&t._keyManager.updateActiveItemIndex(n),t.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(e){t._blur(),t.stateChanges.next()})},i.prototype._listenToChipsRemoved=function(){var t=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(e){t._updateKeyManager(e.chip)})},i.decorators=[{type:e.Component,args:[{selector:"mat-chip-list",template:'<div class="mat-chip-list-wrapper"><ng-content></ng-content></div>',exportAs:"matChipList",host:{"[attr.tabindex]":"_tabIndex","[attr.aria-describedby]":"_ariaDescribedby || null","[attr.aria-required]":"required.toString()","[attr.aria-disabled]":"disabled.toString()","[attr.aria-invalid]":"errorState","[attr.aria-multiselectable]":"multiple","[attr.role]":"role","[class.mat-chip-list-disabled]":"disabled","[class.mat-chip-list-invalid]":"errorState","[class.mat-chip-list-required]":"required","[attr.aria-orientation]":"ariaOrientation",class:"mat-chip-list","(focus)":"focus()","(blur)":"_blur()","(keydown)":"_keydown($event)"},providers:[{provide:Kt,useExisting:i}],styles:[".mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:baseline}.mat-chip:not(.mat-basic-chip){transition:box-shadow 280ms cubic-bezier(.4,0,.2,1);display:inline-flex;padding:7px 12px;border-radius:24px;align-items:center;cursor:default}.mat-chip:not(.mat-basic-chip)+.mat-chip:not(.mat-basic-chip){margin:0 0 0 8px}[dir=rtl] .mat-chip:not(.mat-basic-chip)+.mat-chip:not(.mat-basic-chip){margin:0 8px 0 0}.mat-form-field-prefix .mat-chip:not(.mat-basic-chip):last-child{margin-right:8px}[dir=rtl] .mat-form-field-prefix .mat-chip:not(.mat-basic-chip):last-child{margin-left:8px}.mat-chip:not(.mat-basic-chip) .mat-chip-remove.mat-icon{width:1em;height:1em}.mat-chip:not(.mat-basic-chip):focus{box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12);outline:0}@media screen and (-ms-high-contrast:active){.mat-chip:not(.mat-basic-chip){outline:solid 1px}}.mat-chip-list-stacked .mat-chip-list-wrapper{display:block}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-chip:not(.mat-basic-chip){display:block;margin:0;margin-bottom:8px}[dir=rtl] .mat-chip-list-stacked .mat-chip-list-wrapper .mat-chip:not(.mat-basic-chip){margin:0;margin-bottom:8px}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-chip:not(.mat-basic-chip):last-child,[dir=rtl] .mat-chip-list-stacked .mat-chip-list-wrapper .mat-chip:not(.mat-basic-chip):last-child{margin-bottom:0}.mat-form-field-prefix .mat-chip-list-wrapper{margin-bottom:8px}.mat-chip-remove{margin-right:-4px;margin-left:6px;cursor:pointer}[dir=rtl] .mat-chip-remove{margin-right:6px;margin-left:-4px}input.mat-chip-input{width:150px;margin:3px;flex:1 0 150px}"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],i.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ChangeDetectorRef},{type:n.Directionality,decorators:[{type:e.Optional}]},{type:y.NgForm,decorators:[{type:e.Optional}]},{type:y.FormGroupDirective,decorators:[{type:e.Optional}]},{type:_t},{type:y.NgControl,decorators:[{type:e.Optional},{type:e.Self}]}]},i.propDecorators={errorStateMatcher:[{type:e.Input}],multiple:[{type:e.Input}],compareWith:[{type:e.Input}],value:[{type:e.Input}],id:[{type:e.Input}],required:[{type:e.Input}],placeholder:[{type:e.Input}],disabled:[{type:e.Input}],ariaOrientation:[{type:e.Input,args:["aria-orientation"]}],selectable:[{type:e.Input}],tabIndex:[{type:e.Input}],change:[{type:e.Output}],valueChange:[{type:e.Output}],chips:[{type:e.ContentChildren,args:[yn]}]},i}(_n),En=function(){function t(t){this._elementRef=t,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=[c.ENTER],this.chipEnd=new e.EventEmitter,this.placeholder="",this._inputElement=this._elementRef.nativeElement}return Object.defineProperty(t.prototype,"chipList",{set:function(t){t&&(this._chipList=t,this._chipList.registerInput(this))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"addOnBlur",{get:function(){return this._addOnBlur},set:function(t){this._addOnBlur=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){var t=this._inputElement.value;return null==t||""===t},enumerable:!0,configurable:!0}),t.prototype._keydown=function(t){this._emitChipEnd(t)},t.prototype._blur=function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()},t.prototype._focus=function(){this.focused=!0,this._chipList.stateChanges.next()},t.prototype._emitChipEnd=function(t){!this._inputElement.value&&t&&this._chipList._keydown(t),(!t||this.separatorKeyCodes.indexOf(t.keyCode)>-1)&&(this.chipEnd.emit({input:this._inputElement,value:this._inputElement.value}),t&&t.preventDefault())},t.prototype._onInput=function(){this._chipList.stateChanges.next()},t.prototype.focus=function(){this._inputElement.focus()},t.decorators=[{type:e.Directive,args:[{selector:"input[matChipInputFor]",exportAs:"matChipInput, matChipInputFor",host:{class:"mat-chip-input mat-input-element","(keydown)":"_keydown($event)","(blur)":"_blur()","(focus)":"_focus()","(input)":"_onInput()"}}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={chipList:[{type:e.Input,args:["matChipInputFor"]}],addOnBlur:[{type:e.Input,args:["matChipInputAddOnBlur"]}],separatorKeyCodes:[{type:e.Input,args:["matChipInputSeparatorKeyCodes"]}],chipEnd:[{type:e.Output,args:["matChipInputTokenEnd"]}],placeholder:[{type:e.Input}]},t}(),Sn=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[],exports:[xn,yn,En,vn,vn,gn],declarations:[xn,yn,En,vn,vn,gn],providers:[_t]}]}],t.ctorParameters=function(){return[]},t}(),kn=function(){return function(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.direction="ltr",this.ariaDescribedBy=null,this.ariaLabel=null,this.autoFocus=!0,this.closeOnNavigation=!0}}(),On={slideDialog:_.trigger("slideDialog",[_.state("enter",_.style({transform:"none",opacity:1})),_.state("void",_.style({transform:"translate3d(0, 25%, 0) scale(0.9)",opacity:0})),_.state("exit",_.style({transform:"translate3d(0, 25%, 0)",opacity:0})),_.transition("* => *",_.animate("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function Pn(){throw Error("Attempting to attach dialog content after content is already attached")}var An=function(t){function n(n,r,i,o){var a=t.call(this)||this;return a._elementRef=n,a._focusTrapFactory=r,a._changeDetectorRef=i,a._document=o,a._elementFocusedBeforeDialogWasOpened=null,a._state="enter",a._animationStateChanged=new e.EventEmitter,a._ariaLabelledBy=null,a}return Y(n,t),n.prototype.attachComponentPortal=function(t){return this._portalOutlet.hasAttached()&&Pn(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)},n.prototype.attachTemplatePortal=function(t){return this._portalOutlet.hasAttached()&&Pn(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(t)},n.prototype._trapFocus=function(){this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)),this._config.autoFocus&&this._focusTrap.focusInitialElementWhenReady()},n.prototype._restoreFocus=function(){var t=this._elementFocusedBeforeDialogWasOpened;t&&"function"==typeof t.focus&&t.focus(),this._focusTrap&&this._focusTrap.destroy()},n.prototype._savePreviouslyFocusedElement=function(){var t=this;this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,Promise.resolve().then(function(){return t._elementRef.nativeElement.focus()}))},n.prototype._onAnimationDone=function(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)},n.prototype._onAnimationStart=function(t){this._animationStateChanged.emit(t)},n.prototype._startExitAnimation=function(){this._state="exit",this._changeDetectorRef.markForCheck()},n.decorators=[{type:e.Component,args:[{selector:"mat-dialog-container",template:"<ng-template cdkPortalOutlet></ng-template>",styles:[".mat-dialog-container{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);display:block;padding:24px;border-radius:2px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%}@media screen and (-ms-high-contrast:active){.mat-dialog-container{outline:solid 1px}}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch;-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:12px 0;display:flex;flex-wrap:wrap}.mat-dialog-actions:last-child{margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button+.mat-button,.mat-dialog-actions .mat-button+.mat-raised-button,.mat-dialog-actions .mat-raised-button+.mat-button,.mat-dialog-actions .mat-raised-button+.mat-raised-button{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button+.mat-button,[dir=rtl] .mat-dialog-actions .mat-button+.mat-raised-button,[dir=rtl] .mat-dialog-actions .mat-raised-button+.mat-button,[dir=rtl] .mat-dialog-actions .mat-raised-button+.mat-raised-button{margin-left:0;margin-right:8px}"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.Default,animations:[On.slideDialog],host:{class:"mat-dialog-container",tabindex:"-1","[attr.role]":"_config?.role","[attr.aria-labelledby]":"_config?.ariaLabel ? null : _ariaLabelledBy","[attr.aria-label]":"_config?.ariaLabel","[attr.aria-describedby]":"_config?.ariaDescribedBy || null","[@slideDialog]":"_state","(@slideDialog.start)":"_onAnimationStart($event)","(@slideDialog.done)":"_onAnimationDone($event)"}}]}],n.ctorParameters=function(){return[{type:e.ElementRef},{type:l.FocusTrapFactory},{type:e.ChangeDetectorRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[a.DOCUMENT]}]}]},n.propDecorators={_portalOutlet:[{type:e.ViewChild,args:[p.CdkPortalOutlet]}]},n}(p.BasePortalOutlet),Tn=0,Mn=function(){function t(t,e,n,r){void 0===r&&(r="mat-dialog-"+Tn++);var o=this;this._overlayRef=t,this._containerInstance=e,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpen=new i.Subject,this._afterClosed=new i.Subject,this._beforeClose=new i.Subject,this._locationChanges=S.Subscription.EMPTY,e._animationStateChanged.pipe(h.filter(function(t){return"done"===t.phaseName&&"enter"===t.toState}),d.take(1)).subscribe(function(){o._afterOpen.next(),o._afterOpen.complete()}),e._animationStateChanged.pipe(h.filter(function(t){return"done"===t.phaseName&&"exit"===t.toState}),d.take(1)).subscribe(function(){o._overlayRef.dispose(),o._locationChanges.unsubscribe(),o._afterClosed.next(o._result),o._afterClosed.complete(),o.componentInstance=null}),t.keydownEvents().pipe(h.filter(function(t){return t.keyCode===c.ESCAPE&&!o.disableClose})).subscribe(function(){return o.close()}),n&&(this._locationChanges=n.subscribe(function(){o._containerInstance._config.closeOnNavigation&&o.close()}))}return t.prototype.close=function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe(h.filter(function(t){return"start"===t.phaseName}),d.take(1)).subscribe(function(){e._beforeClose.next(t),e._beforeClose.complete(),e._overlayRef.detachBackdrop()}),this._containerInstance._startExitAnimation()},t.prototype.afterOpen=function(){return this._afterOpen.asObservable()},t.prototype.afterClosed=function(){return this._afterClosed.asObservable()},t.prototype.beforeClose=function(){return this._beforeClose.asObservable()},t.prototype.backdropClick=function(){return this._overlayRef.backdropClick()},t.prototype.keydownEvents=function(){return this._overlayRef.keydownEvents()},t.prototype.updatePosition=function(t){var e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this},t.prototype.updateSize=function(t,e){return void 0===t&&(t="auto"),void 0===e&&(e="auto"),this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this},t.prototype._getPositionStrategy=function(){return this._overlayRef.getConfig().positionStrategy},t}(),In=new e.InjectionToken("MatDialogData"),Rn=new e.InjectionToken("mat-dialog-default-options"),Dn=new e.InjectionToken("mat-dialog-scroll-strategy");function Nn(t){return function(){return t.scrollStrategies.block()}}var Ln={provide:Dn,deps:[u.Overlay],useFactory:Nn},jn=function(){function t(t,e,n,r,o,a,s){var c=this;this._overlay=t,this._injector=e,this._location=n,this._defaultOptions=r,this._scrollStrategy=o,this._parentDialog=a,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new i.Subject,this._afterOpenAtThisLevel=new i.Subject,this._ariaHiddenElements=new Map,this.afterAllClosed=k.defer(function(){return c.openDialogs.length?c._afterAllClosed:c._afterAllClosed.pipe(v.startWith(void 0))})}return Object.defineProperty(t.prototype,"openDialogs",{get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"afterOpen",{get:function(){return this._parentDialog?this._parentDialog.afterOpen:this._afterOpenAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_afterAllClosed",{get:function(){var t=this._parentDialog;return t?t._afterAllClosed:this._afterAllClosedAtThisLevel},enumerable:!0,configurable:!0}),t.prototype.open=function(t,e){var n,r,i=this;if(n=e,r=this._defaultOptions||new kn,(e=K({},r,n)).id&&this.getDialogById(e.id))throw Error('Dialog with id "'+e.id+'" exists already. The dialog id must be unique.');var o=this._createOverlay(e),a=this._attachDialogContainer(o,e),s=this._attachDialogContent(t,a,o,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(function(){return i._removeOpenDialog(s)}),this.afterOpen.next(s),s},t.prototype.closeAll=function(){for(var t=this.openDialogs.length;t--;)this.openDialogs[t].close()},t.prototype.getDialogById=function(t){return this.openDialogs.find(function(e){return e.id===t})},t.prototype._createOverlay=function(t){var e=this._getOverlayConfig(t);return this._overlay.create(e)},t.prototype._getOverlayConfig=function(t){var e=new u.OverlayConfig({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight});return t.backdropClass&&(e.backdropClass=t.backdropClass),e},t.prototype._attachDialogContainer=function(t,e){var n=new p.ComponentPortal(An,e.viewContainerRef),r=t.attach(n);return r.instance._config=e,r.instance},t.prototype._attachDialogContent=function(t,n,r,i){var o=new Mn(r,n,this._location,i.id);if(i.hasBackdrop&&r.backdropClick().subscribe(function(){o.disableClose||o.close()}),t instanceof e.TemplateRef)n.attachTemplatePortal(new p.TemplatePortal(t,null,{$implicit:i.data,dialogRef:o}));else{var a=this._createInjector(i,o,n),s=n.attachComponentPortal(new p.ComponentPortal(t,void 0,a));o.componentInstance=s.instance}return o.updateSize(i.width,i.height).updatePosition(i.position),o},t.prototype._createInjector=function(t,e,r){var i=t&&t.viewContainerRef&&t.viewContainerRef.injector,o=new WeakMap;return o.set(Mn,e),o.set(An,r),o.set(In,t.data),o.set(n.Directionality,{value:t.direction,change:C.of()}),new p.PortalInjector(i||this._injector,o)},t.prototype._removeOpenDialog=function(t){var e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))},t.prototype._hideNonDialogContentFromAssistiveTechnology=function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,n=e.length-1;n>-1;n--){var r=e[n];r===t||"SCRIPT"===r.nodeName||"STYLE"===r.nodeName||r.hasAttribute("aria-live")||(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:u.Overlay},{type:e.Injector},{type:a.Location,decorators:[{type:e.Optional}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Rn]}]},{type:void 0,decorators:[{type:e.Inject,args:[Dn]}]},{type:t,decorators:[{type:e.Optional},{type:e.SkipSelf}]},{type:u.OverlayContainer}]},t}();var Fn=0,Vn=function(){function t(t){this.dialogRef=t,this.ariaLabel="Close dialog"}return t.prototype.ngOnChanges=function(t){var e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)},t.decorators=[{type:e.Directive,args:[{selector:"button[mat-dialog-close], button[matDialogClose]",exportAs:"matDialogClose",host:{"(click)":"dialogRef.close(dialogResult)","[attr.aria-label]":"ariaLabel",type:"button"}}]}],t.ctorParameters=function(){return[{type:Mn}]},t.propDecorators={ariaLabel:[{type:e.Input,args:["aria-label"]}],dialogResult:[{type:e.Input,args:["mat-dialog-close"]}],_matDialogClose:[{type:e.Input,args:["matDialogClose"]}]},t}(),Bn=function(){function t(t){this._container=t,this.id="mat-dialog-title-"+Fn++}return t.prototype.ngOnInit=function(){var t=this;this._container&&!this._container._ariaLabelledBy&&Promise.resolve().then(function(){return t._container._ariaLabelledBy=t.id})},t.decorators=[{type:e.Directive,args:[{selector:"[mat-dialog-title], [matDialogTitle]",exportAs:"matDialogTitle",host:{class:"mat-dialog-title","[id]":"id"}}]}],t.ctorParameters=function(){return[{type:An,decorators:[{type:e.Optional}]}]},t.propDecorators={id:[{type:e.Input}]},t}(),Un=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-dialog-content], mat-dialog-content, [matDialogContent]",host:{class:"mat-dialog-content"}}]}],t.ctorParameters=function(){return[]},t}(),Hn=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-dialog-actions], mat-dialog-actions, [matDialogActions]",host:{class:"mat-dialog-actions"}}]}],t.ctorParameters=function(){return[]},t}(),zn=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule,u.OverlayModule,p.PortalModule,l.A11yModule,Z],exports:[An,Vn,Bn,Un,Hn,Z],declarations:[An,Vn,Bn,Hn,Un],providers:[jn,Ln],entryComponents:[An]}]}],t.ctorParameters=function(){return[]},t}();function Gn(t){return Error('Unable to find icon with the name "'+t+'"')}function Wn(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function qn(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \""+t+'".')}var Yn=function(){return function(t){this.url=t,this.svgElement=null}}(),Kn=function(){function t(t,e,n){this._httpClient=t,this._sanitizer=e,this._document=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons"}return t.prototype.addSvgIcon=function(t,e){return this.addSvgIconInNamespace("",t,e)},t.prototype.addSvgIconInNamespace=function(t,e,n){var r=Zn(t,e);return this._svgIconConfigs.set(r,new Yn(n)),this},t.prototype.addSvgIconSet=function(t){return this.addSvgIconSetInNamespace("",t)},t.prototype.addSvgIconSetInNamespace=function(t,e){var n=new Yn(e),r=this._iconSetConfigs.get(t);return r?r.push(n):this._iconSetConfigs.set(t,[n]),this},t.prototype.registerFontClassAlias=function(t,e){return void 0===e&&(e=t),this._fontCssClassesByAlias.set(t,e),this},t.prototype.classNameForFontAlias=function(t){return this._fontCssClassesByAlias.get(t)||t},t.prototype.setDefaultFontSetClass=function(t){return this._defaultFontSetClass=t,this},t.prototype.getDefaultFontSetClass=function(){return this._defaultFontSetClass},t.prototype.getSvgIconFromUrl=function(t){var n=this,r=this._sanitizer.sanitize(e.SecurityContext.RESOURCE_URL,t);if(!r)throw qn(t);var i=this._cachedIconsByUrl.get(r);return i?C.of(Qn(i)):this._loadSvgIconFromConfig(new Yn(t)).pipe(m.tap(function(t){return n._cachedIconsByUrl.set(r,t)}),A.map(function(t){return Qn(t)}))},t.prototype.getNamedSvgIcon=function(t,e){void 0===e&&(e="");var n=Zn(e,t),r=this._svgIconConfigs.get(n);if(r)return this._getSvgFromConfig(r);var i=this._iconSetConfigs.get(e);return i?this._getSvgFromIconSetConfigs(t,i):R._throw(Gn(n))},t.prototype._getSvgFromConfig=function(t){return t.svgElement?C.of(Qn(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(m.tap(function(e){return t.svgElement=e}),A.map(function(t){return Qn(t)}))},t.prototype._getSvgFromIconSetConfigs=function(t,n){var r=this,i=this._extractIconWithNameFromAnySet(t,n);if(i)return C.of(i);var o=n.filter(function(t){return!t.svgElement}).map(function(t){return r._loadSvgIconSetFromConfig(t).pipe(O.catchError(function(n){var i=r._sanitizer.sanitize(e.SecurityContext.RESOURCE_URL,t.url);return console.log("Loading icon set URL: "+i+" failed: "+n),C.of(null)}),m.tap(function(e){e&&(t.svgElement=e)}))});return I.forkJoin(o).pipe(A.map(function(){var e=r._extractIconWithNameFromAnySet(t,n);if(!e)throw Gn(t);return e}))},t.prototype._extractIconWithNameFromAnySet=function(t,e){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.svgElement){var i=this._extractSvgIconFromSet(r.svgElement,t);if(i)return i}}return null},t.prototype._loadSvgIconFromConfig=function(t){var e=this;return this._fetchUrl(t.url).pipe(A.map(function(t){return e._createSvgElementForSingleIcon(t)}))},t.prototype._loadSvgIconSetFromConfig=function(t){var e=this;return this._fetchUrl(t.url).pipe(A.map(function(t){return e._svgElementFromString(t)}))},t.prototype._createSvgElementForSingleIcon=function(t){var e=this._svgElementFromString(t);return this._setSvgAttributes(e),e},t.prototype._extractSvgIconFromSet=function(t,e){var n=t.querySelector("#"+e);if(!n)return null;var r=n.cloneNode(!0);if(r.id="","svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r));var i=this._svgElementFromString("<svg></svg>");return i.appendChild(r),this._setSvgAttributes(i)},t.prototype._svgElementFromString=function(t){if(this._document||"undefined"!=typeof document){var e=(this._document||document).createElement("DIV");e.innerHTML=t;var n=e.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}throw new Error("MatIconRegistry could not resolve document.")},t.prototype._toSvgElement=function(t){for(var e=this._svgElementFromString("<svg></svg>"),n=0;n<t.childNodes.length;n++)1===t.childNodes[n].nodeType&&e.appendChild(t.childNodes[n].cloneNode(!0));return e},t.prototype._setSvgAttributes=function(t){return t.getAttribute("xmlns")||t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),t},t.prototype._fetchUrl=function(t){var n=this;if(!this._httpClient)throw Wn();var r=this._sanitizer.sanitize(e.SecurityContext.RESOURCE_URL,t);if(!r)throw qn(t);var i=this._inProgressUrlFetches.get(r);if(i)return i;var o=this._httpClient.get(r,{responseType:"text"}).pipe(P.finalize(function(){return n._inProgressUrlFetches.delete(r)}),T.share());return this._inProgressUrlFetches.set(r,o),o},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:M.HttpClient,decorators:[{type:e.Optional}]},{type:o.DomSanitizer},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[a.DOCUMENT]}]}]},t}();function $n(t,e,n,r){return t||new Kn(e,n,r)}var Xn={provide:Kn,deps:[[new e.Optional,new e.SkipSelf,Kn],[new e.Optional,M.HttpClient],o.DomSanitizer,[new e.Optional,a.DOCUMENT]],useFactory:$n};function Qn(t){return t.cloneNode(!0)}function Zn(t,e){return t+":"+e}var Jn=function(){return function(t){this._elementRef=t}}(),tr=tt(Jn),er=function(t){function n(e,n,r){var i=t.call(this,e)||this;return i._iconRegistry=n,r||e.nativeElement.setAttribute("aria-hidden","true"),i}return Y(n,t),Object.defineProperty(n.prototype,"fontSet",{get:function(){return this._fontSet},set:function(t){this._fontSet=this._cleanupFontValue(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fontIcon",{get:function(){return this._fontIcon},set:function(t){this._fontIcon=this._cleanupFontValue(t)},enumerable:!0,configurable:!0}),n.prototype._splitIconName=function(t){if(!t)return["",""];var e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error('Invalid icon name: "'+t+'"')}},n.prototype.ngOnChanges=function(t){var e=this;if(t.svgIcon)if(this.svgIcon){var n=this._splitIconName(this.svgIcon),r=n[0],i=n[1];this._iconRegistry.getNamedSvgIcon(i,r).pipe(d.take(1)).subscribe(function(t){return e._setSvgElement(t)},function(t){return console.log("Error retrieving icon: "+t.message)})}else this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()},n.prototype.ngOnInit=function(){this._usingFontIcon()&&this._updateFontIconClasses()},n.prototype._usingFontIcon=function(){return!this.svgIcon},n.prototype._setSvgElement=function(t){this._clearSvgElement(),this._elementRef.nativeElement.appendChild(t)},n.prototype._clearSvgElement=function(){for(var t=this._elementRef.nativeElement,e=t.childNodes.length,n=0;n<e;n++)t.removeChild(t.childNodes[n])},n.prototype._updateFontIconClasses=function(){if(this._usingFontIcon()){var t=this._elementRef.nativeElement,e=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();e!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),e&&t.classList.add(e),this._previousFontSetClass=e),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}},n.prototype._cleanupFontValue=function(t){return"string"==typeof t?t.trim().split(" ")[0]:t},n.decorators=[{type:e.Component,args:[{template:"<ng-content></ng-content>",selector:"mat-icon",exportAs:"matIcon",styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}"],inputs:["color"],host:{role:"img",class:"mat-icon"},encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[{type:e.ElementRef},{type:Kn},{type:void 0,decorators:[{type:e.Attribute,args:["aria-hidden"]}]}]},n.propDecorators={svgIcon:[{type:e.Input}],fontSet:[{type:e.Input}],fontIcon:[{type:e.Input}]},n}(tr),nr=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[Z],exports:[er,Z],declarations:[er],providers:[Xn]}]}],t.ctorParameters=function(){return[]},t}(),rr=function(){function t(t,e,n){this._elementRef=t,this._platform=e,this._ngZone=n,this._destroyed=new i.Subject}return Object.defineProperty(t.prototype,"minRows",{get:function(){return this._minRows},set:function(t){this._minRows=t,this._setMinHeight()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxRows",{get:function(){return this._maxRows},set:function(t){this._maxRows=t,this._setMaxHeight()},enumerable:!0,configurable:!0}),t.prototype._setMinHeight=function(){var t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&this._setTextareaStyle("minHeight",t)},t.prototype._setMaxHeight=function(){var t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&this._setTextareaStyle("maxHeight",t)},t.prototype.ngAfterViewInit=function(){var t=this;this._platform.isBrowser&&(this.resizeToFitContent(),this._ngZone&&this._ngZone.runOutsideAngular(function(){b.fromEvent(window,"resize").pipe(D.auditTime(16),N.takeUntil(t._destroyed)).subscribe(function(){return t.resizeToFitContent(!0)})}))},t.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},t.prototype._setTextareaStyle=function(t,e){this._elementRef.nativeElement.style[t]=e},t.prototype._cacheTextareaLineHeight=function(){if(!this._cachedLineHeight){var t=this._elementRef.nativeElement,e=t.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",t.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,t.parentNode.removeChild(e),this._setMinHeight(),this._setMaxHeight()}},t.prototype.ngDoCheck=function(){this._platform.isBrowser&&this.resizeToFitContent()},t.prototype.resizeToFitContent=function(t){if(void 0===t&&(t=!1),this._cacheTextareaLineHeight(),this._cachedLineHeight){var e=this._elementRef.nativeElement,n=e.value;if(n!==this._previousValue||t){var r=e.placeholder;e.style.height="auto",e.style.overflow="hidden",e.placeholder="",e.style.height=e.scrollHeight+"px",e.style.overflow="",e.placeholder=r,this._previousValue=n}}},t.decorators=[{type:e.Directive,args:[{selector:"textarea[mat-autosize], textarea[matTextareaAutosize]",exportAs:"matTextareaAutosize",host:{class:"mat-autosize",rows:"1"}}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:s.Platform},{type:e.NgZone}]},t.propDecorators={minRows:[{type:e.Input,args:["matAutosizeMinRows"]}],maxRows:[{type:e.Input,args:["matAutosizeMaxRows"]}]},t}();function ir(t){return Error('Input type "'+t+"\" isn't supported by matInput.")}var or=new e.InjectionToken("MAT_INPUT_VALUE_ACCESSOR"),ar=["button","checkbox","file","hidden","image","radio","range","reset","submit"],sr=0,cr=function(){return function(t,e,n,r){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=r}}(),lr=rt(cr),ur=function(t){function n(e,n,r,o,a,c,l){var u=t.call(this,c,o,a,r)||this;return u._elementRef=e,u._platform=n,u.ngControl=r,u._type="text",u._disabled=!1,u._required=!1,u._uid="mat-input-"+sr++,u._readonly=!1,u.focused=!1,u._isServer=!1,u.stateChanges=new i.Subject,u.controlType="mat-input",u.placeholder="",u._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(t){return s.getSupportedInputTypes().has(t)}),u._inputValueAccessor=l||u._elementRef.nativeElement,u._previousNativeValue=u.value,u.id=u.id,n.IOS&&e.nativeElement.addEventListener("keyup",function(t){var e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))}),u._isServer=!u._platform.isBrowser,u}return Y(n,t),Object.defineProperty(n.prototype,"disabled",{get:function(){return this.ngControl?this.ngControl.disabled:this._disabled},set:function(t){this._disabled=r.coerceBooleanProperty(t),this.focused&&(this.focused=!1,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t||this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"required",{get:function(){return this._required},set:function(t){this._required=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea()&&s.getSupportedInputTypes().has(this._type)&&(this._elementRef.nativeElement.type=this._type)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this._inputValueAccessor.value},set:function(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readonly",{get:function(){return this._readonly},set:function(t){this._readonly=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),n.prototype.ngOnChanges=function(){this.stateChanges.next()},n.prototype.ngOnDestroy=function(){this.stateChanges.complete()},n.prototype.ngDoCheck=function(){this.ngControl?this.updateErrorState():this._dirtyCheckNativeValue()},n.prototype.focus=function(){this._elementRef.nativeElement.focus()},n.prototype._focusChanged=function(t){t===this.focused||this.readonly||(this.focused=t,this.stateChanges.next())},n.prototype._onInput=function(){},n.prototype._dirtyCheckNativeValue=function(){var t=this.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())},n.prototype._validateType=function(){if(ar.indexOf(this._type)>-1)throw ir(this._type)},n.prototype._isNeverEmpty=function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1},n.prototype._isBadInput=function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput},n.prototype._isTextarea=function(){var t=this._elementRef.nativeElement,e=this._platform.isBrowser?t.nodeName:t.name;return!!e&&"textarea"===e.toLowerCase()},Object.defineProperty(n.prototype,"empty",{get:function(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"shouldLabelFloat",{get:function(){return this.focused||!this.empty},enumerable:!0,configurable:!0}),n.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},n.prototype.onContainerClick=function(){this.focus()},n.decorators=[{type:e.Directive,args:[{selector:"input[matInput], textarea[matInput]",exportAs:"matInput",host:{class:"mat-input-element mat-form-field-autofill-control","[class.mat-input-server]":"_isServer","[attr.id]":"id","[placeholder]":"placeholder","[disabled]":"disabled","[required]":"required","[readonly]":"readonly","[attr.aria-describedby]":"_ariaDescribedby || null","[attr.aria-invalid]":"errorState","[attr.aria-required]":"required.toString()","(blur)":"_focusChanged(false)","(focus)":"_focusChanged(true)","(input)":"_onInput()"},providers:[{provide:Kt,useExisting:n}]}]}],n.ctorParameters=function(){return[{type:e.ElementRef},{type:s.Platform},{type:y.NgControl,decorators:[{type:e.Optional},{type:e.Self}]},{type:y.NgForm,decorators:[{type:e.Optional}]},{type:y.FormGroupDirective,decorators:[{type:e.Optional}]},{type:_t},{type:void 0,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[or]}]}]},n.propDecorators={disabled:[{type:e.Input}],id:[{type:e.Input}],placeholder:[{type:e.Input}],required:[{type:e.Input}],type:[{type:e.Input}],errorStateMatcher:[{type:e.Input}],value:[{type:e.Input}],readonly:[{type:e.Input}]},n}(lr),pr=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[ur,rr],imports:[a.CommonModule,se,s.PlatformModule],exports:[se,ur,rr],providers:[_t]}]}],t.ctorParameters=function(){return[]},t}();function hr(t){return Error("MatDatepicker: No provider found for "+t+". You must import one of the following modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a custom implementation.")}var dr=function(){function t(){this.changes=new i.Subject,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}return t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}(),fr=function(){return function(t,e,n,r){this.value=t,this.displayValue=e,this.ariaLabel=n,this.enabled=r}}(),mr=function(){function t(){this.numCols=7,this.allowDisabledSelection=!1,this.activeCell=0,this.cellAspectRatio=1,this.selectedValueChange=new e.EventEmitter}return t.prototype._cellClicked=function(t){(this.allowDisabledSelection||t.enabled)&&this.selectedValueChange.emit(t.value)},Object.defineProperty(t.prototype,"_firstRowOffset",{get:function(){return this.rows&&this.rows.length&&this.rows[0].length?this.numCols-this.rows[0].length:0},enumerable:!0,configurable:!0}),t.prototype._isActiveCell=function(t,e){var n=t*this.numCols+e;return t&&(n-=this._firstRowOffset),n==this.activeCell},t.decorators=[{type:e.Component,args:[{selector:"[mat-calendar-body]",template:'<tr *ngIf="_firstRowOffset < labelMinRequiredCells" aria-hidden="true"><td class="mat-calendar-body-label" [attr.colspan]="numCols" [style.paddingTop.%]="50 * cellAspectRatio / numCols" [style.paddingBottom.%]="50 * cellAspectRatio / numCols">{{label}}</td></tr><tr *ngFor="let row of rows; let rowIndex = index" role="row"><td *ngIf="rowIndex === 0 && _firstRowOffset" aria-hidden="true" class="mat-calendar-body-label" [attr.colspan]="_firstRowOffset" [style.paddingTop.%]="50 * cellAspectRatio / numCols" [style.paddingBottom.%]="50 * cellAspectRatio / numCols">{{_firstRowOffset >= labelMinRequiredCells ? label : \'\'}}</td><td *ngFor="let item of row; let colIndex = index" role="gridcell" class="mat-calendar-body-cell" [tabindex]="_isActiveCell(rowIndex, colIndex) ? 0 : -1" [class.mat-calendar-body-disabled]="!item.enabled" [class.mat-calendar-body-active]="_isActiveCell(rowIndex, colIndex)" [attr.aria-label]="item.ariaLabel" [attr.aria-disabled]="!item.enabled || null" (click)="_cellClicked(item)" [style.width.%]="100 / numCols" [style.paddingTop.%]="50 * cellAspectRatio / numCols" [style.paddingBottom.%]="50 * cellAspectRatio / numCols"><div class="mat-calendar-body-cell-content" [class.mat-calendar-body-selected]="selectedValue === item.value" [class.mat-calendar-body-today]="todayValue === item.value">{{item.displayValue}}</div></td></tr>',styles:[".mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.71429%;padding-right:4.71429%}.mat-calendar-body-cell{position:relative;height:0;line-height:0;text-align:center;outline:0;cursor:pointer}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-cell-content{position:absolute;top:5%;left:5%;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}[dir=rtl] .mat-calendar-body-label{text-align:right}"],host:{class:"mat-calendar-body",role:"grid","attr.aria-readonly":"true"},exportAs:"matCalendarBody",encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[]},t.propDecorators={label:[{type:e.Input}],rows:[{type:e.Input}],todayValue:[{type:e.Input}],selectedValue:[{type:e.Input}],labelMinRequiredCells:[{type:e.Input}],numCols:[{type:e.Input}],allowDisabledSelection:[{type:e.Input}],activeCell:[{type:e.Input}],cellAspectRatio:[{type:e.Input}],selectedValueChange:[{type:e.Output}]},t}(),gr=function(){function t(t,n,r){if(this._dateAdapter=t,this._dateFormats=n,this._changeDetectorRef=r,this.selectedChange=new e.EventEmitter,this._userSelection=new e.EventEmitter,!this._dateAdapter)throw hr("DateAdapter");if(!this._dateFormats)throw hr("MAT_DATE_FORMATS");var i=this._dateAdapter.getFirstDayOfWeek(),o=this._dateAdapter.getDayOfWeekNames("narrow"),a=this._dateAdapter.getDayOfWeekNames("long").map(function(t,e){return{long:t,narrow:o[e]}});this._weekdays=a.slice(i).concat(a.slice(0,i)),this._activeDate=this._dateAdapter.today()}return Object.defineProperty(t.prototype,"activeDate",{get:function(){return this._activeDate},set:function(t){var e=this._activeDate;this._activeDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today(),this._hasSameMonthAndYear(e,this._activeDate)||this._init()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedDate=this._getDateInCurrentMonth(this._selected)},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._init()},t.prototype._dateSelected=function(t){if(this._selectedDate!=t){var e=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.createDate(e,n,t);this.selectedChange.emit(r)}this._userSelection.emit()},t.prototype._init=function(){this._selectedDate=this._getDateInCurrentMonth(this.selected),this._todayDate=this._getDateInCurrentMonth(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();var t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._createWeekCells(),this._changeDetectorRef.markForCheck()},t.prototype._createWeekCells=function(){var t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(var n=0,r=this._firstWeekOffset;n<t;n++,r++){7==r&&(this._weeks.push([]),r=0);var i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),n+1),o=!this.dateFilter||this.dateFilter(i),a=this._dateAdapter.format(i,this._dateFormats.display.dateA11yLabel);this._weeks[this._weeks.length-1].push(new fr(n+1,e[n],a,o))}},t.prototype._getDateInCurrentMonth=function(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null},t.prototype._hasSameMonthAndYear=function(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))},t.prototype._getValidDateOrNull=function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null},t.decorators=[{type:e.Component,args:[{selector:"mat-month-view",template:'<table class="mat-calendar-table"><thead class="mat-calendar-table-header"><tr><th *ngFor="let day of _weekdays" [attr.aria-label]="day.long">{{day.narrow}}</th></tr><tr><th class="mat-calendar-table-header-divider" colspan="7" aria-hidden="true"></th></tr></thead><tbody mat-calendar-body [label]="_monthLabel" [rows]="_weeks" [todayValue]="_todayDate" [selectedValue]="_selectedDate" [labelMinRequiredCells]="3" [activeCell]="_dateAdapter.getDate(activeDate) - 1" (selectedValueChange)="_dateSelected($event)"></tbody></table>',exportAs:"matMonthView",encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:at,decorators:[{type:e.Optional}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[st]}]},{type:e.ChangeDetectorRef}]},t.propDecorators={activeDate:[{type:e.Input}],selected:[{type:e.Input}],dateFilter:[{type:e.Input}],selectedChange:[{type:e.Output}],_userSelection:[{type:e.Output}]},t}(),yr=function(){function t(t,n){if(this._dateAdapter=t,this._changeDetectorRef=n,this.selectedChange=new e.EventEmitter,!this._dateAdapter)throw hr("DateAdapter");this._activeDate=this._dateAdapter.today()}return Object.defineProperty(t.prototype,"activeDate",{get:function(){return this._activeDate},set:function(t){var e=this._activeDate;this._activeDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today(),Math.floor(this._dateAdapter.getYear(e)/24)!=Math.floor(this._dateAdapter.getYear(this._activeDate)/24)&&this._init()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedYear=this._selected&&this._dateAdapter.getYear(this._selected)},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._init()},t.prototype._init=function(){var t=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var e=this._dateAdapter.getYear(this._activeDate),n=e%24;this._years=[];for(var r=0,i=[];r<24;r++)i.push(e-n+r),4==i.length&&(this._years.push(i.map(function(e){return t._createCellForYear(e)})),i=[]);this._changeDetectorRef.markForCheck()},t.prototype._yearSelected=function(t){var e=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,e,1));this.selectedChange.emit(this._dateAdapter.createDate(t,e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))},t.prototype._getActiveCell=function(){return this._dateAdapter.getYear(this.activeDate)%24},t.prototype._createCellForYear=function(t){var e=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return new fr(t,e,e,!0)},t.prototype._getValidDateOrNull=function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null},t.decorators=[{type:e.Component,args:[{selector:"mat-multi-year-view",template:'<table class="mat-calendar-table"><thead class="mat-calendar-table-header"><tr><th class="mat-calendar-table-header-divider" colspan="4"></th></tr></thead><tbody mat-calendar-body allowDisabledSelection="true" [rows]="_years" [todayValue]="_todayYear" [selectedValue]="_selectedYear" [numCols]="4" [cellAspectRatio]="4 / 7" [activeCell]="_getActiveCell()" (selectedValueChange)="_yearSelected($event)"></tbody></table>',exportAs:"matMultiYearView",encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:at,decorators:[{type:e.Optional}]},{type:e.ChangeDetectorRef}]},t.propDecorators={activeDate:[{type:e.Input}],selected:[{type:e.Input}],dateFilter:[{type:e.Input}],selectedChange:[{type:e.Output}]},t}(),vr=function(){function t(t,n,r){if(this._dateAdapter=t,this._dateFormats=n,this._changeDetectorRef=r,this.selectedChange=new e.EventEmitter,!this._dateAdapter)throw hr("DateAdapter");if(!this._dateFormats)throw hr("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}return Object.defineProperty(t.prototype,"activeDate",{get:function(){return this._activeDate},set:function(t){var e=this._activeDate;this._activeDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today(),this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(this._activeDate)&&this._init()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedMonth=this._getMonthInCurrentYear(this._selected)},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._init()},t.prototype._monthSelected=function(t){var e=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1));this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,Math.min(this._dateAdapter.getDate(this.activeDate),e)))},t.prototype._init=function(){var t=this;this._selectedMonth=this._getMonthInCurrentYear(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);var e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(function(n){return n.map(function(n){return t._createCellForMonth(n,e[n])})}),this._changeDetectorRef.markForCheck()},t.prototype._getMonthInCurrentYear=function(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null},t.prototype._createCellForMonth=function(t,e){var n=this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),this._dateFormats.display.monthYearA11yLabel);return new fr(t,e.toLocaleUpperCase(),n,this._isMonthEnabled(t))},t.prototype._isMonthEnabled=function(t){if(!this.dateFilter)return!0;for(var e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1);this._dateAdapter.getMonth(e)==t;e=this._dateAdapter.addCalendarDays(e,1))if(this.dateFilter(e))return!0;return!1},t.prototype._getValidDateOrNull=function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null},t.decorators=[{type:e.Component,args:[{selector:"mat-year-view",template:'<table class="mat-calendar-table"><thead class="mat-calendar-table-header"><tr><th class="mat-calendar-table-header-divider" colspan="4"></th></tr></thead><tbody mat-calendar-body allowDisabledSelection="true" [label]="_yearLabel" [rows]="_months" [todayValue]="_todayMonth" [selectedValue]="_selectedMonth" [labelMinRequiredCells]="2" [numCols]="4" [cellAspectRatio]="4 / 7" [activeCell]="_dateAdapter.getMonth(activeDate)" (selectedValueChange)="_monthSelected($event)"></tbody></table>',exportAs:"matYearView",encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:at,decorators:[{type:e.Optional}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[st]}]},{type:e.ChangeDetectorRef}]},t.propDecorators={activeDate:[{type:e.Input}],selected:[{type:e.Input}],dateFilter:[{type:e.Input}],selectedChange:[{type:e.Output}]},t}(),br=function(){function t(t,n,r,i,o,a){var s=this;if(this._elementRef=t,this._intl=n,this._ngZone=r,this._dateAdapter=i,this._dateFormats=o,this.startView="month",this.selectedChange=new e.EventEmitter,this._userSelection=new e.EventEmitter,this._dateFilterForViews=function(t){return!!t&&(!s.dateFilter||s.dateFilter(t))&&(!s.minDate||s._dateAdapter.compareDate(t,s.minDate)>=0)&&(!s.maxDate||s._dateAdapter.compareDate(t,s.maxDate)<=0)},!this._dateAdapter)throw hr("DateAdapter");if(!this._dateFormats)throw hr("MAT_DATE_FORMATS");this._intlChanges=n.changes.subscribe(function(){return a.markForCheck()})}return Object.defineProperty(t.prototype,"startAt",{get:function(){return this._startAt},set:function(t){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minDate",{get:function(){return this._minDate},set:function(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxDate",{get:function(){return this._maxDate},set:function(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_activeDate",{get:function(){return this._clampedActiveDate},set:function(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_periodButtonText",{get:function(){if("month"==this._currentView)return this._dateAdapter.format(this._activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this._currentView)return this._dateAdapter.getYearName(this._activeDate);var t=this._dateAdapter.getYear(this._activeDate);return this._dateAdapter.getYearName(this._dateAdapter.createDate(t-t%24,0,1))+" – "+this._dateAdapter.getYearName(this._dateAdapter.createDate(t+24-1-t%24,0,1))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_periodButtonLabel",{get:function(){return"month"==this._currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_prevButtonLabel",{get:function(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this._currentView]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_nextButtonLabel",{get:function(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this._currentView]},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._activeDate=this.startAt||this._dateAdapter.today(),this._focusActiveCell(),this._currentView=this.startView},t.prototype.ngOnDestroy=function(){this._intlChanges.unsubscribe()},t.prototype.ngOnChanges=function(t){var e=t.minDate||t.maxDate||t.dateFilter;if(e&&!e.firstChange){var n=this.monthView||this.yearView||this.multiYearView;n&&n._init()}},t.prototype._dateSelected=function(t){this._dateAdapter.sameDate(t,this.selected)||this.selectedChange.emit(t)},t.prototype._userSelected=function(){this._userSelection.emit()},t.prototype._goToDateInView=function(t,e){this._activeDate=t,this._currentView=e},t.prototype._currentPeriodClicked=function(){this._currentView="month"==this._currentView?"multi-year":"month"},t.prototype._previousClicked=function(){this._activeDate="month"==this._currentView?this._dateAdapter.addCalendarMonths(this._activeDate,-1):this._dateAdapter.addCalendarYears(this._activeDate,"year"==this._currentView?-1:-24)},t.prototype._nextClicked=function(){this._activeDate="month"==this._currentView?this._dateAdapter.addCalendarMonths(this._activeDate,1):this._dateAdapter.addCalendarYears(this._activeDate,"year"==this._currentView?1:24)},t.prototype._previousEnabled=function(){return!this.minDate||(!this.minDate||!this._isSameView(this._activeDate,this.minDate))},t.prototype._nextEnabled=function(){return!this.maxDate||!this._isSameView(this._activeDate,this.maxDate)},t.prototype._handleCalendarBodyKeydown=function(t){"month"==this._currentView?this._handleCalendarBodyKeydownInMonthView(t):"year"==this._currentView?this._handleCalendarBodyKeydownInYearView(t):this._handleCalendarBodyKeydownInMultiYearView(t)},t.prototype._focusActiveCell=function(){var t=this;this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.asObservable().pipe(d.take(1)).subscribe(function(){t._elementRef.nativeElement.querySelector(".mat-calendar-body-active").focus()})})},t.prototype._isSameView=function(t,e){return"month"==this._currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(e):"year"==this._currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e):Math.floor(this._dateAdapter.getYear(t)/24)==Math.floor(this._dateAdapter.getYear(e)/24)},t.prototype._handleCalendarBodyKeydownInMonthView=function(t){switch(t.keyCode){case c.LEFT_ARROW:this._activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-1);break;case c.RIGHT_ARROW:this._activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1);break;case c.UP_ARROW:this._activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case c.DOWN_ARROW:this._activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case c.HOME:this._activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case c.END:this._activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case c.PAGE_UP:this._activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case c.PAGE_DOWN:this._activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case c.ENTER:return void(this._dateFilterForViews(this._activeDate)&&(this._dateSelected(this._activeDate),this._userSelected(),t.preventDefault()));default:return}this._focusActiveCell(),t.preventDefault()},t.prototype._handleCalendarBodyKeydownInYearView=function(t){switch(t.keyCode){case c.LEFT_ARROW:this._activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case c.RIGHT_ARROW:this._activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case c.UP_ARROW:this._activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case c.DOWN_ARROW:this._activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case c.HOME:this._activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case c.END:this._activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case c.PAGE_UP:this._activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case c.PAGE_DOWN:this._activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case c.ENTER:this._goToDateInView(this._activeDate,"month");break;default:return}this._focusActiveCell(),t.preventDefault()},t.prototype._handleCalendarBodyKeydownInMultiYearView=function(t){switch(t.keyCode){case c.LEFT_ARROW:this._activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-1);break;case c.RIGHT_ARROW:this._activeDate=this._dateAdapter.addCalendarYears(this._activeDate,1);break;case c.UP_ARROW:this._activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case c.DOWN_ARROW:this._activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case c.HOME:this._activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-this._dateAdapter.getYear(this._activeDate)%24);break;case c.END:this._activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-this._dateAdapter.getYear(this._activeDate)%24-1);break;case c.PAGE_UP:this._activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case c.PAGE_DOWN:this._activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:24);break;case c.ENTER:this._goToDateInView(this._activeDate,"year");break;default:return}this._focusActiveCell(),t.preventDefault()},t.prototype._getValidDateOrNull=function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null},t.decorators=[{type:e.Component,args:[{selector:"mat-calendar",template:'<div class="mat-calendar-header"><div class="mat-calendar-controls"><button mat-button class="mat-calendar-period-button" (click)="_currentPeriodClicked()" [attr.aria-label]="_periodButtonLabel">{{_periodButtonText}}<div class="mat-calendar-arrow" [class.mat-calendar-invert]="_currentView != \'month\'"></div></button><div class="mat-calendar-spacer"></div><button mat-icon-button class="mat-calendar-previous-button" [disabled]="!_previousEnabled()" (click)="_previousClicked()" [attr.aria-label]="_prevButtonLabel"></button> <button mat-icon-button class="mat-calendar-next-button" [disabled]="!_nextEnabled()" (click)="_nextClicked()" [attr.aria-label]="_nextButtonLabel"></button></div></div><div class="mat-calendar-content" (keydown)="_handleCalendarBodyKeydown($event)" [ngSwitch]="_currentView" cdkMonitorSubtreeFocus><mat-month-view *ngSwitchCase="\'month\'" [activeDate]="_activeDate" [selected]="selected" [dateFilter]="_dateFilterForViews" (selectedChange)="_dateSelected($event)" (_userSelection)="_userSelected()"></mat-month-view><mat-year-view *ngSwitchCase="\'year\'" [activeDate]="_activeDate" [selected]="selected" [dateFilter]="_dateFilterForViews" (selectedChange)="_goToDateInView($event, \'month\')"></mat-year-view><mat-multi-year-view *ngSwitchCase="\'multi-year\'" [activeDate]="_activeDate" [selected]="selected" [dateFilter]="_dateFilterForViews" (selectedChange)="_goToDateInView($event, \'year\')"></mat-multi-year-view></div>',styles:[".mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:0}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-next-button,.mat-calendar-previous-button{position:relative}.mat-calendar-next-button::after,.mat-calendar-previous-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:'';margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-next-button,[dir=rtl] .mat-calendar-previous-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:'';position:absolute;top:0;left:-8px;right:-8px;height:1px}"],host:{class:"mat-calendar"},exportAs:"matCalendar",encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:dr},{type:e.NgZone},{type:at,decorators:[{type:e.Optional}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[st]}]},{type:e.ChangeDetectorRef}]},t.propDecorators={startAt:[{type:e.Input}],startView:[{type:e.Input}],selected:[{type:e.Input}],minDate:[{type:e.Input}],maxDate:[{type:e.Input}],dateFilter:[{type:e.Input}],selectedChange:[{type:e.Output}],_userSelection:[{type:e.Output}],monthView:[{type:e.ViewChild,args:[gr]}],yearView:[{type:e.ViewChild,args:[vr]}],multiYearView:[{type:e.ViewChild,args:[yr]}]},t}(),_r=0,wr=new e.InjectionToken("mat-datepicker-scroll-strategy");function Cr(t){return function(){return t.scrollStrategies.reposition()}}var xr={provide:wr,deps:[u.Overlay],useFactory:Cr},Er=function(){function t(){}return t.prototype.ngAfterContentInit=function(){this._calendar._focusActiveCell()},t.decorators=[{type:e.Component,args:[{selector:"mat-datepicker-content",template:'<mat-calendar cdkTrapFocus [id]="datepicker.id" [ngClass]="datepicker.panelClass" [startAt]="datepicker.startAt" [startView]="datepicker.startView" [minDate]="datepicker._minDate" [maxDate]="datepicker._maxDate" [dateFilter]="datepicker._dateFilter" [selected]="datepicker._selected" (selectedChange)="datepicker._select($event)" (_userSelection)="datepicker.close()"></mat-calendar>',styles:[".mat-datepicker-content{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);display:block}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content-touch{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12);display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation:landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation:portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}"],host:{class:"mat-datepicker-content","[class.mat-datepicker-content-touch]":"datepicker.touchUi"},exportAs:"matDatepickerContent",encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[]},t.propDecorators={_calendar:[{type:e.ViewChild,args:[br]}]},t}(),Sr=function(){function t(t,n,r,o,a,s,c,l){if(this._dialog=t,this._overlay=n,this._ngZone=r,this._viewContainerRef=o,this._scrollStrategy=a,this._dateAdapter=s,this._dir=c,this._document=l,this.startView="month",this._touchUi=!1,this.selectedChanged=new e.EventEmitter,this.openedStream=new e.EventEmitter,this.closedStream=new e.EventEmitter,this._opened=!1,this.id="mat-datepicker-"+_r++,this._validSelected=null,this._focusedElementBeforeOpen=null,this._inputSubscription=S.Subscription.EMPTY,this._disabledChange=new i.Subject,!this._dateAdapter)throw hr("DateAdapter")}return Object.defineProperty(t.prototype,"startAt",{get:function(){return this._startAt||(this._datepickerInput?this._datepickerInput.value:null)},set:function(t){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touchUi",{get:function(){return this._touchUi},set:function(t){this._touchUi=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled},set:function(t){var e=r.coerceBooleanProperty(t);e!==this._disabled&&(this._disabled=e,this._disabledChange.next(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"opened",{get:function(){return this._opened},set:function(t){t?this.open():this.close()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_selected",{get:function(){return this._validSelected},set:function(t){this._validSelected=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_minDate",{get:function(){return this._datepickerInput&&this._datepickerInput.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_maxDate",{get:function(){return this._datepickerInput&&this._datepickerInput.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_dateFilter",{get:function(){return this._datepickerInput&&this._datepickerInput._dateFilter},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.close(),this._inputSubscription.unsubscribe(),this._disabledChange.complete(),this._popupRef&&this._popupRef.dispose()},t.prototype._select=function(t){var e=this._selected;this._selected=t,this._dateAdapter.sameDate(e,this._selected)||this.selectedChanged.emit(t)},t.prototype._registerInput=function(t){var e=this;if(this._datepickerInput)throw Error("A MatDatepicker can only be associated with a single input.");this._datepickerInput=t,this._inputSubscription=this._datepickerInput._valueChange.subscribe(function(t){return e._selected=t})},t.prototype.open=function(){if(!this._opened&&!this.disabled){if(!this._datepickerInput)throw Error("Attempted to open an MatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit()}},t.prototype.close=function(){var t=this;if(this._opened){this._popupRef&&this._popupRef.hasAttached()&&this._popupRef.detach(),this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null),this._calendarPortal&&this._calendarPortal.isAttached&&this._calendarPortal.detach();var e=function(){t._opened&&(t._opened=!1,t.closedStream.emit(),t._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(e)):e()}},t.prototype._openAsDialog=function(){var t=this;this._dialogRef=this._dialog.open(Er,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog"}),this._dialogRef.afterClosed().subscribe(function(){return t.close()}),this._dialogRef.componentInstance.datepicker=this},t.prototype._openAsPopup=function(){var t=this;(this._calendarPortal||(this._calendarPortal=new p.ComponentPortal(Er,this._viewContainerRef)),this._popupRef||this._createPopup(),this._popupRef.hasAttached())||(this._popupRef.attach(this._calendarPortal).instance.datepicker=this,this._ngZone.onStable.asObservable().pipe(d.take(1)).subscribe(function(){t._popupRef.updatePosition()}))},t.prototype._createPopup=function(){var t=this,e=new u.OverlayConfig({positionStrategy:this._createPopupPositionStrategy(),hasBackdrop:!0,backdropClass:"mat-overlay-transparent-backdrop",direction:this._dir?this._dir.value:"ltr",scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(e),w.merge(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(h.filter(function(t){return t.keyCode===c.ESCAPE}))).subscribe(function(){return t.close()})},t.prototype._createPopupPositionStrategy=function(){var t=this._datepickerInput._getPopupFallbackOffset();return this._overlay.position().connectedTo(this._datepickerInput.getPopupConnectionElementRef(),{originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}).withFallbackPosition({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"},void 0,t).withFallbackPosition({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"}).withFallbackPosition({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"},void 0,t)},t.prototype._getValidDateOrNull=function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null},t.decorators=[{type:e.Component,args:[{selector:"mat-datepicker",template:"",exportAs:"matDatepicker",changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],t.ctorParameters=function(){return[{type:jn},{type:u.Overlay},{type:e.NgZone},{type:e.ViewContainerRef},{type:void 0,decorators:[{type:e.Inject,args:[wr]}]},{type:at,decorators:[{type:e.Optional}]},{type:n.Directionality,decorators:[{type:e.Optional}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[a.DOCUMENT]}]}]},t.propDecorators={startAt:[{type:e.Input}],startView:[{type:e.Input}],touchUi:[{type:e.Input}],disabled:[{type:e.Input}],selectedChanged:[{type:e.Output}],panelClass:[{type:e.Input}],openedStream:[{type:e.Output,args:["opened"]}],closedStream:[{type:e.Output,args:["closed"]}],opened:[{type:e.Input}]},t}(),kr={provide:y.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return Ar}),multi:!0},Or={provide:y.NG_VALIDATORS,useExisting:e.forwardRef(function(){return Ar}),multi:!0},Pr=function(){return function(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}(),Ar=function(){function t(t,n,r,i){var o=this;if(this._elementRef=t,this._dateAdapter=n,this._dateFormats=r,this._formField=i,this.dateChange=new e.EventEmitter,this.dateInput=new e.EventEmitter,this._valueChange=new e.EventEmitter,this._disabledChange=new e.EventEmitter,this._onTouched=function(){},this._cvaOnChange=function(){},this._validatorOnChange=function(){},this._datepickerSubscription=S.Subscription.EMPTY,this._localeSubscription=S.Subscription.EMPTY,this._parseValidator=function(){return o._lastValueValid?null:{matDatepickerParse:{text:o._elementRef.nativeElement.value}}},this._minValidator=function(t){var e=o._getValidDateOrNull(o._dateAdapter.deserialize(t.value));return!o.min||!e||o._dateAdapter.compareDate(o.min,e)<=0?null:{matDatepickerMin:{min:o.min,actual:e}}},this._maxValidator=function(t){var e=o._getValidDateOrNull(o._dateAdapter.deserialize(t.value));return!o.max||!e||o._dateAdapter.compareDate(o.max,e)>=0?null:{matDatepickerMax:{max:o.max,actual:e}}},this._filterValidator=function(t){var e=o._getValidDateOrNull(o._dateAdapter.deserialize(t.value));return o._dateFilter&&e&&!o._dateFilter(e)?{matDatepickerFilter:!0}:null},this._validator=y.Validators.compose([this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]),this._lastValueValid=!1,!this._dateAdapter)throw hr("DateAdapter");if(!this._dateFormats)throw hr("MAT_DATE_FORMATS");this._localeSubscription=n.localeChanges.subscribe(function(){o.value=o.value})}return Object.defineProperty(t.prototype,"matDatepicker",{set:function(t){this.registerDatepicker(t)},enumerable:!0,configurable:!0}),t.prototype.registerDatepicker=function(t){t&&(this._datepicker=t,this._datepicker._registerInput(this))},Object.defineProperty(t.prototype,"matDatepickerFilter",{set:function(t){this._dateFilter=t,this._validatorOnChange()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=!t||this._dateAdapter.isValid(t),t=this._getValidDateOrNull(t);var e=this.value;this._value=t,this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):"",this._dateAdapter.sameDate(e,t)||this._valueChange.emit(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this._min},set:function(t){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this._max},set:function(t){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return!!this._disabled},set:function(t){var e=r.coerceBooleanProperty(t);this._disabled!==e&&(this._disabled=e,this._disabledChange.emit(e))},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this._datepicker&&(this._datepickerSubscription=this._datepicker.selectedChanged.subscribe(function(e){t.value=e,t._cvaOnChange(e),t._onTouched(),t.dateInput.emit(new Pr(t,t._elementRef.nativeElement)),t.dateChange.emit(new Pr(t,t._elementRef.nativeElement))}))},t.prototype.ngOnDestroy=function(){this._datepickerSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this._disabledChange.complete()},t.prototype.registerOnValidatorChange=function(t){this._validatorOnChange=t},t.prototype.validate=function(t){return this._validator?this._validator(t):null},t.prototype.getPopupConnectionElementRef=function(){return this._formField?this._formField.underlineRef:this._elementRef},t.prototype._getPopupFallbackOffset=function(){return this._formField?-this._formField._inputContainerRef.nativeElement.clientHeight:0},t.prototype.writeValue=function(t){this.value=t},t.prototype.registerOnChange=function(t){this._cvaOnChange=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype._onKeydown=function(t){t.altKey&&t.keyCode===c.DOWN_ARROW&&(this._datepicker.open(),t.preventDefault())},t.prototype._onInput=function(t){var e=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=!e||this._dateAdapter.isValid(e),e=this._getValidDateOrNull(e),this._value=e,this._cvaOnChange(e),this._valueChange.emit(e),this.dateInput.emit(new Pr(this,this._elementRef.nativeElement))},t.prototype._onChange=function(){this.dateChange.emit(new Pr(this,this._elementRef.nativeElement))},t.prototype._getValidDateOrNull=function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null},t.decorators=[{type:e.Directive,args:[{selector:"input[matDatepicker]",providers:[kr,Or,{provide:or,useExisting:t}],host:{"[attr.aria-haspopup]":"true","[attr.aria-owns]":"(_datepicker?.opened && _datepicker.id) || null","[attr.min]":"min ? _dateAdapter.toIso8601(min) : null","[attr.max]":"max ? _dateAdapter.toIso8601(max) : null","[disabled]":"disabled","(input)":"_onInput($event.target.value)","(change)":"_onChange()","(blur)":"_onTouched()","(keydown)":"_onKeydown($event)"},exportAs:"matDatepickerInput"}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:at,decorators:[{type:e.Optional}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[st]}]},{type:ae,decorators:[{type:e.Optional}]}]},t.propDecorators={matDatepicker:[{type:e.Input}],matDatepickerFilter:[{type:e.Input}],value:[{type:e.Input}],min:[{type:e.Input}],max:[{type:e.Input}],disabled:[{type:e.Input}],dateChange:[{type:e.Output}],dateInput:[{type:e.Output}]},t}(),Tr=function(){function t(t,e){this._intl=t,this._changeDetectorRef=e,this._stateChanges=S.Subscription.EMPTY}return Object.defineProperty(t.prototype,"disabled",{get:function(){return void 0===this._disabled?this.datepicker.disabled:!!this._disabled},set:function(t){this._disabled=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){t.datepicker&&this._watchStateChanges()},t.prototype.ngOnDestroy=function(){this._stateChanges.unsubscribe()},t.prototype.ngAfterContentInit=function(){this._watchStateChanges()},t.prototype._open=function(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())},t.prototype._watchStateChanges=function(){var t=this,e=this.datepicker?this.datepicker._disabledChange:C.of(),n=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput._disabledChange:C.of();this._stateChanges.unsubscribe(),this._stateChanges=w.merge(this._intl.changes,e,n).subscribe(function(){return t._changeDetectorRef.markForCheck()})},t.decorators=[{type:e.Component,args:[{selector:"mat-datepicker-toggle",template:'<button mat-icon-button type="button" [attr.aria-label]="_intl.openCalendarLabel" [disabled]="disabled" (click)="_open($event)"><mat-icon><svg viewBox="0 0 24 24" width="100%" height="100%" fill="currentColor" style="vertical-align: top" focusable="false"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/></svg></mat-icon></button>',host:{class:"mat-datepicker-toggle"},exportAs:"matDatepickerToggle",encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:dr},{type:e.ChangeDetectorRef}]},t.propDecorators={datepicker:[{type:e.Input,args:["for"]}],disabled:[{type:e.Input}]},t}(),Mr=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule,Te,zn,nr,u.OverlayModule,l.A11yModule],exports:[br,mr,Sr,Er,Ar,Tr,gr,vr,yr],declarations:[br,mr,Sr,Er,Ar,Tr,gr,vr,yr],providers:[dr,xr],entryComponents:[Er]}]}],t.ctorParameters=function(){return[]},t}(),Ir=function(){function t(){this._vertical=!1,this._inset=!1}return Object.defineProperty(t.prototype,"vertical",{get:function(){return this._vertical},set:function(t){this._vertical=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inset",{get:function(){return this._inset},set:function(t){this._inset=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.decorators=[{type:e.Component,args:[{selector:"mat-divider",host:{role:"separator","[attr.aria-orientation]":'vertical ? "vertical" : "horizontal"',"[class.mat-divider-vertical]":"vertical","[class.mat-divider-inset]":"inset",class:"mat-divider"},template:"",styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush,preserveWhitespaces:!1}]}],t.ctorParameters=function(){return[]},t.propDecorators={vertical:[{type:e.Input}],inset:[{type:e.Input}]},t}(),Rr=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[Z,a.CommonModule],exports:[Ir,Z],declarations:[Ir]}]}],t.ctorParameters=function(){return[]},t}(),Dr=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._hideToggle=!1,e.displayMode="default",e}return Y(n,t),Object.defineProperty(n.prototype,"hideToggle",{get:function(){return this._hideToggle},set:function(t){this._hideToggle=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),n.decorators=[{type:e.Directive,args:[{selector:"mat-accordion",exportAs:"matAccordion",host:{class:"mat-accordion"}}]}],n.ctorParameters=function(){return[]},n.propDecorators={hideToggle:[{type:e.Input}],displayMode:[{type:e.Input}]},n}(L.CdkAccordion),Nr=function(){function t(t){this._template=t}return t.decorators=[{type:e.Directive,args:[{selector:"ng-template[matExpansionPanelContent]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}(),Lr="225ms cubic-bezier(0.4,0.0,0.2,1)",jr={indicatorRotate:_.trigger("indicatorRotate",[_.state("collapsed",_.style({transform:"rotate(0deg)"})),_.state("expanded",_.style({transform:"rotate(180deg)"})),_.transition("expanded <=> collapsed",_.animate(Lr))]),expansionHeaderHeight:_.trigger("expansionHeight",[_.state("collapsed",_.style({height:"{{collapsedHeight}}"}),{params:{collapsedHeight:"48px"}}),_.state("expanded",_.style({height:"{{expandedHeight}}"}),{params:{expandedHeight:"64px"}}),_.transition("expanded <=> collapsed",_.animate(Lr))]),bodyExpansion:_.trigger("bodyExpansion",[_.state("collapsed",_.style({height:"0px",visibility:"hidden"})),_.state("expanded",_.style({height:"*",visibility:"visible"})),_.transition("expanded <=> collapsed",_.animate(Lr))])},Fr=function(t){function n(e,n,r){return t.call(this,e,n,r)||this}return Y(n,t),n.decorators=[{type:e.Component,args:[{template:"",encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[{type:Dr},{type:e.ChangeDetectorRef},{type:x.UniqueSelectionDispatcher}]},n}(L.CdkAccordionItem),Vr=J(Fr),Br=function(t){function n(e,n,r,o){var a=t.call(this,e,n,r)||this;return a._viewContainerRef=o,a._hideToggle=!1,a._inputChanges=new i.Subject,a.accordion=e,a}return Y(n,t),Object.defineProperty(n.prototype,"hideToggle",{get:function(){return this._hideToggle},set:function(t){this._hideToggle=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),n.prototype._getHideToggle=function(){return this.accordion?this.accordion.hideToggle:this.hideToggle},n.prototype._hasSpacing=function(){return!!this.accordion&&"default"===(this.expanded?this.accordion.displayMode:this._getExpandedState())},n.prototype._getExpandedState=function(){return this.expanded?"expanded":"collapsed"},n.prototype.ngAfterContentInit=function(){var t=this;this._lazyContent&&this.opened.pipe(v.startWith(null),h.filter(function(){return t.expanded&&!t._portal}),d.take(1)).subscribe(function(){t._portal=new p.TemplatePortal(t._lazyContent._template,t._viewContainerRef)})},n.prototype.ngOnChanges=function(t){this._inputChanges.next(t)},n.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this._inputChanges.complete()},n.decorators=[{type:e.Component,args:[{styles:[".mat-expansion-panel{transition:box-shadow 280ms cubic-bezier(.4,0,.2,1);box-sizing:content-box;display:block;margin:0;transition:margin 225ms cubic-bezier(.4,0,.2,1)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-expanded .mat-expansion-panel-content{overflow:visible}.mat-expansion-panel-content,.mat-expansion-panel-content.ng-animating{overflow:hidden}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion .mat-expansion-panel-spacing:first-child{margin-top:0}.mat-accordion .mat-expansion-panel-spacing:last-child{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button{margin-left:0;margin-right:8px}"],selector:"mat-expansion-panel",exportAs:"matExpansionPanel",template:'<ng-content select="mat-expansion-panel-header"></ng-content><div class="mat-expansion-panel-content" [class.mat-expanded]="expanded" [@bodyExpansion]="_getExpandedState()" [id]="id"><div class="mat-expansion-panel-body"><ng-content></ng-content><ng-template [cdkPortalOutlet]="_portal"></ng-template></div><ng-content select="mat-action-row"></ng-content></div>',encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,inputs:["disabled","expanded"],outputs:["opened","closed"],animations:[jr.bodyExpansion],host:{class:"mat-expansion-panel","[class.mat-expanded]":"expanded","[class.mat-expansion-panel-spacing]":"_hasSpacing()"},providers:[{provide:Vr,useExisting:e.forwardRef(function(){return n})}]}]}],n.ctorParameters=function(){return[{type:Dr,decorators:[{type:e.Optional},{type:e.Host}]},{type:e.ChangeDetectorRef},{type:x.UniqueSelectionDispatcher},{type:e.ViewContainerRef}]},n.propDecorators={hideToggle:[{type:e.Input}],_lazyContent:[{type:e.ContentChild,args:[Nr]}]},n}(Vr),Ur=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-action-row",host:{class:"mat-action-row"}}]}],t.ctorParameters=function(){return[]},t}(),Hr=function(){function t(t,e,n,r){var i=this;this.panel=t,this._element=e,this._focusMonitor=n,this._changeDetectorRef=r,this._parentChangeSubscription=S.Subscription.EMPTY,this._parentChangeSubscription=w.merge(t.opened,t.closed,t._inputChanges.pipe(h.filter(function(t){return!(!t.hideToggle&&!t.disabled)}))).subscribe(function(){return i._changeDetectorRef.markForCheck()}),n.monitor(e.nativeElement,!1)}return t.prototype._toggle=function(){this.panel.disabled||this.panel.toggle()},t.prototype._isExpanded=function(){return this.panel.expanded},t.prototype._getExpandedState=function(){return this.panel._getExpandedState()},t.prototype._getPanelId=function(){return this.panel.id},t.prototype._showToggle=function(){return!this.panel.hideToggle&&!this.panel.disabled},t.prototype._keyup=function(t){switch(t.keyCode){case c.SPACE:case c.ENTER:t.preventDefault(),this._toggle();break;default:return}},t.prototype.ngOnDestroy=function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element.nativeElement)},t.decorators=[{type:e.Component,args:[{selector:"mat-expansion-panel-header",styles:[".mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:0}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-description,.mat-expansion-panel-header-title{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-description,[dir=rtl] .mat-expansion-panel-header-title{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:'';display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}"],template:'<span class="mat-content"><ng-content select="mat-panel-title"></ng-content><ng-content select="mat-panel-description"></ng-content><ng-content></ng-content></span><span [@indicatorRotate]="_getExpandedState()" *ngIf="_showToggle()" class="mat-expansion-indicator"></span>',encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,animations:[jr.indicatorRotate,jr.expansionHeaderHeight],host:{class:"mat-expansion-panel-header",role:"button","[attr.tabindex]":"panel.disabled ? -1 : 0","[attr.aria-controls]":"_getPanelId()","[attr.aria-expanded]":"_isExpanded()","[attr.aria-disabled]":"panel.disabled","[class.mat-expanded]":"_isExpanded()","(click)":"_toggle()","(keyup)":"_keyup($event)","[@expansionHeight]":"{\n        value: _getExpandedState(),\n        params: {\n          collapsedHeight: collapsedHeight,\n          expandedHeight: expandedHeight\n        }\n    }"}}]}],t.ctorParameters=function(){return[{type:Br,decorators:[{type:e.Host}]},{type:e.ElementRef},{type:l.FocusMonitor},{type:e.ChangeDetectorRef}]},t.propDecorators={expandedHeight:[{type:e.Input}],collapsedHeight:[{type:e.Input}]},t}(),zr=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-panel-description",host:{class:"mat-expansion-panel-header-description"}}]}],t.ctorParameters=function(){return[]},t}(),Gr=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-panel-title",host:{class:"mat-expansion-panel-header-title"}}]}],t.ctorParameters=function(){return[]},t}(),Wr=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule,l.A11yModule,L.CdkAccordionModule,p.PortalModule],exports:[Dr,Br,Ur,Hr,Gr,zr,Nr],declarations:[Fr,Dr,Br,Ur,Hr,Gr,zr,Nr],providers:[x.UNIQUE_SELECTION_DISPATCHER_PROVIDER]}]}],t.ctorParameters=function(){return[]},t}();function qr(t){return""+(t||"")}function Yr(t){return"string"==typeof t?parseInt(t,10):t}var Kr=function(){function t(t){this._element=t,this._rowspan=1,this._colspan=1}return Object.defineProperty(t.prototype,"rowspan",{get:function(){return this._rowspan},set:function(t){this._rowspan=Yr(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"colspan",{get:function(){return this._colspan},set:function(t){this._colspan=Yr(t)},enumerable:!0,configurable:!0}),t.prototype._setStyle=function(t,e){this._element.nativeElement.style[t]=e},t.decorators=[{type:e.Component,args:[{selector:"mat-grid-tile",exportAs:"matGridTile",host:{class:"mat-grid-tile"},template:'<figure class="mat-figure"><ng-content></ng-content></figure>',styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-footer,.mat-grid-tile .mat-grid-tile-header{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-footer>*,.mat-grid-tile .mat-grid-tile-header>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-grid-tile .mat-grid-tile-footer.mat-2-line,.mat-grid-tile .mat-grid-tile-header.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={rowspan:[{type:e.Input}],colspan:[{type:e.Input}]},t}(),$r=function(){function t(t){this._element=t}return t.prototype.ngAfterContentInit=function(){this._lineSetter=new Et(this._lines,this._element)},t.decorators=[{type:e.Component,args:[{selector:"mat-grid-tile-header, mat-grid-tile-footer",template:'<ng-content select="[mat-grid-avatar], [matGridAvatar]"></ng-content><div class="mat-grid-list-text"><ng-content select="[mat-line], [matLine]"></ng-content></div><ng-content></ng-content>',changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={_lines:[{type:e.ContentChildren,args:[xt]}]},t}(),Xr=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-grid-avatar], [matGridAvatar]",host:{class:"mat-grid-avatar"}}]}],t.ctorParameters=function(){return[]},t}(),Qr=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-grid-tile-header",host:{class:"mat-grid-tile-header"}}]}],t.ctorParameters=function(){return[]},t}(),Zr=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-grid-tile-footer",host:{class:"mat-grid-tile-footer"}}]}],t.ctorParameters=function(){return[]},t}(),Jr=function(){function t(t,e){var n=this;this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(t),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map(function(t){return n._trackTile(t)})}return Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.rowIndex+1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowspan",{get:function(){var t=Math.max.apply(Math,this.tracker);return t>1?this.rowCount+t-1:this.rowCount},enumerable:!0,configurable:!0}),t.prototype._trackTile=function(t){var e=this._findMatchingGap(t.colspan);return this._markTilePosition(e,t),this.columnIndex=e+t.colspan,new ti(this.rowIndex,e)},t.prototype._findMatchingGap=function(t){if(t>this.tracker.length)throw Error("mat-grid-list: tile with colspan "+t+' is wider than grid with cols="'+this.tracker.length+'".');var e=-1,n=-1;do{this.columnIndex+t>this.tracker.length?this._nextRow():-1!=(e=this.tracker.indexOf(0,this.columnIndex))?(n=this._findGapEndIndex(e),this.columnIndex=e+1):this._nextRow()}while(n-e<t);return e},t.prototype._nextRow=function(){this.columnIndex=0,this.rowIndex++;for(var t=0;t<this.tracker.length;t++)this.tracker[t]=Math.max(0,this.tracker[t]-1)},t.prototype._findGapEndIndex=function(t){for(var e=t+1;e<this.tracker.length;e++)if(0!=this.tracker[e])return e;return this.tracker.length},t.prototype._markTilePosition=function(t,e){for(var n=0;n<e.colspan;n++)this.tracker[t+n]=e.rowspan},t}(),ti=function(){return function(t,e){this.row=t,this.col=e}}(),ei=function(){function t(){this._rows=0,this._rowspan=0}return t.prototype.init=function(t,e,n,r){this._gutterSize=ai(t),this._rows=e.rowCount,this._rowspan=e.rowspan,this._cols=n,this._direction=r},t.prototype.getBaseTileSize=function(t,e){return"("+t+"% - ("+this._gutterSize+" * "+e+"))"},t.prototype.getTilePosition=function(t,e){return 0===e?"0":oi("("+t+" + "+this._gutterSize+") * "+e)},t.prototype.getTileSize=function(t,e){return"("+t+" * "+e+") + ("+(e-1)+" * "+this._gutterSize+")"},t.prototype.setStyle=function(t,e,n){var r=100/this._cols,i=(this._cols-1)/this._cols;this.setColStyles(t,n,r,i),this.setRowStyles(t,e,r,i)},t.prototype.setColStyles=function(t,e,n,r){var i=this.getBaseTileSize(n,r),o="ltr"===this._direction?"left":"right";t._setStyle(o,this.getTilePosition(i,e)),t._setStyle("width",oi(this.getTileSize(i,t.colspan)))},t.prototype.getGutterSpan=function(){return this._gutterSize+" * ("+this._rowspan+" - 1)"},t.prototype.getTileSpan=function(t){return this._rowspan+" * "+this.getTileSize(t,1)},t.prototype.getComputedHeight=function(){return null},t}(),ni=function(t){function e(e){var n=t.call(this)||this;return n.fixedRowHeight=e,n}return Y(e,t),e.prototype.init=function(e,n,r,i){t.prototype.init.call(this,e,n,r,i),this.fixedRowHeight=ai(this.fixedRowHeight)},e.prototype.setRowStyles=function(t,e){t._setStyle("top",this.getTilePosition(this.fixedRowHeight,e)),t._setStyle("height",oi(this.getTileSize(this.fixedRowHeight,t.rowspan)))},e.prototype.getComputedHeight=function(){return["height",oi(this.getTileSpan(this.fixedRowHeight)+" + "+this.getGutterSpan())]},e.prototype.reset=function(t){t._setListStyle(["height",null]),t._tiles.forEach(function(t){t._setStyle("top",null),t._setStyle("height",null)})},e}(ei),ri=function(t){function e(e){var n=t.call(this)||this;return n._parseRatio(e),n}return Y(e,t),e.prototype.setRowStyles=function(t,e,n,r){var i=n/this.rowHeightRatio;this.baseTileHeight=this.getBaseTileSize(i,r),t._setStyle("margin-top",this.getTilePosition(this.baseTileHeight,e)),t._setStyle("padding-top",oi(this.getTileSize(this.baseTileHeight,t.rowspan)))},e.prototype.getComputedHeight=function(){return["padding-bottom",oi(this.getTileSpan(this.baseTileHeight)+" + "+this.getGutterSpan())]},e.prototype.reset=function(t){t._setListStyle(["padding-bottom",null]),t._tiles.forEach(function(t){t._setStyle("margin-top",null),t._setStyle("padding-top",null)})},e.prototype._parseRatio=function(t){var e=t.split(":");if(2!==e.length)throw Error('mat-grid-list: invalid ratio given for row-height: "'+t+'"');this.rowHeightRatio=parseFloat(e[0])/parseFloat(e[1])},e}(ei),ii=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Y(e,t),e.prototype.setRowStyles=function(t,e){var n=100/this._rowspan,r=(this._rows-1)/this._rows,i=this.getBaseTileSize(n,r);t._setStyle("top",this.getTilePosition(i,e)),t._setStyle("height",oi(this.getTileSize(i,t.rowspan)))},e.prototype.reset=function(t){t._tiles.forEach(function(t){t._setStyle("top",null),t._setStyle("height",null)})},e}(ei);function oi(t){return"calc("+t+")"}function ai(t){return t.match(/px|em|rem/)?t:t+"px"}var si=function(){function t(t,e){this._element=t,this._dir=e,this._gutter="1px"}return Object.defineProperty(t.prototype,"cols",{get:function(){return this._cols},set:function(t){this._cols=Yr(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gutterSize",{get:function(){return this._gutter},set:function(t){this._gutter=qr(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowHeight",{set:function(t){var e=qr(t);e!==this._rowHeight&&(this._rowHeight=e,this._setTileStyler(this._rowHeight))},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._checkCols(),this._checkRowHeight()},t.prototype.ngAfterContentChecked=function(){this._layoutTiles()},t.prototype._checkCols=function(){if(!this.cols)throw Error('mat-grid-list: must pass in number of columns. Example: <mat-grid-list cols="3">')},t.prototype._checkRowHeight=function(){this._rowHeight||this._setTileStyler("1:1")},t.prototype._setTileStyler=function(t){this._tileStyler&&this._tileStyler.reset(this),"fit"===t?this._tileStyler=new ii:t&&t.indexOf(":")>-1?this._tileStyler=new ri(t):this._tileStyler=new ni(t)},t.prototype._layoutTiles=function(){var t=this,e=new Jr(this.cols,this._tiles),n=this._dir?this._dir.value:"ltr";this._tileStyler.init(this.gutterSize,e,this.cols,n),this._tiles.forEach(function(n,r){var i=e.positions[r];t._tileStyler.setStyle(n,i.row,i.col)}),this._setListStyle(this._tileStyler.getComputedHeight())},t.prototype._setListStyle=function(t){t&&(this._element.nativeElement.style[t[0]]=t[1])},t.decorators=[{type:e.Component,args:[{selector:"mat-grid-list",exportAs:"matGridList",template:"<div><ng-content></ng-content></div>",styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-footer,.mat-grid-tile .mat-grid-tile-header{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-footer>*,.mat-grid-tile .mat-grid-tile-header>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-grid-tile .mat-grid-tile-footer.mat-2-line,.mat-grid-tile .mat-grid-tile-header.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}"],host:{class:"mat-grid-list"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:n.Directionality,decorators:[{type:e.Optional}]}]},t.propDecorators={_tiles:[{type:e.ContentChildren,args:[Kr]}],cols:[{type:e.Input}],gutterSize:[{type:e.Input}],rowHeight:[{type:e.Input}]},t}(),ci=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[St,Z],exports:[si,Kr,$r,St,Z,Qr,Zr,Xr],declarations:[si,Kr,$r,Qr,Zr,Xr]}]}],t.ctorParameters=function(){return[]},t}(),li=function(){return function(){}}(),ui=et(li),pi=function(){return function(){}}(),hi=et(pi),di=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Component,args:[{selector:"mat-nav-list",exportAs:"matNavList",host:{role:"navigation",class:"mat-nav-list"},template:"<ng-content></ng-content>",styles:[".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list .mat-subheader,.mat-nav-list .mat-subheader,.mat-selection-list .mat-subheader{margin:0}.mat-list,.mat-nav-list,.mat-selection-list{padding-top:8px;display:block}.mat-list .mat-subheader,.mat-nav-list .mat-subheader,.mat-selection-list .mat-subheader{height:48px;line-height:16px}.mat-list .mat-subheader:first-child,.mat-nav-list .mat-subheader:first-child,.mat-selection-list .mat-subheader:first-child{margin-top:-8px}.mat-list .mat-list-item,.mat-list .mat-list-option,.mat-nav-list .mat-list-item,.mat-nav-list .mat-list-option,.mat-selection-list .mat-list-item,.mat-selection-list .mat-list-option{display:block;height:48px}.mat-list .mat-list-item .mat-list-item-content,.mat-list .mat-list-option .mat-list-item-content,.mat-nav-list .mat-list-item .mat-list-item-content,.mat-nav-list .mat-list-option .mat-list-item-content,.mat-selection-list .mat-list-item .mat-list-item-content,.mat-selection-list .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list .mat-list-item .mat-list-item-content-reverse,.mat-list .mat-list-option .mat-list-item-content-reverse,.mat-nav-list .mat-list-item .mat-list-item-content-reverse,.mat-nav-list .mat-list-option .mat-list-item-content-reverse,.mat-selection-list .mat-list-item .mat-list-item-content-reverse,.mat-selection-list .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list .mat-list-item .mat-list-item-ripple,.mat-list .mat-list-option .mat-list-item-ripple,.mat-nav-list .mat-list-item .mat-list-item-ripple,.mat-nav-list .mat-list-option .mat-list-item-ripple,.mat-selection-list .mat-list-item .mat-list-item-ripple,.mat-selection-list .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list .mat-list-item.mat-list-item-avatar,.mat-list .mat-list-option.mat-list-item-avatar,.mat-nav-list .mat-list-item.mat-list-item-avatar,.mat-nav-list .mat-list-option.mat-list-item-avatar,.mat-selection-list .mat-list-item.mat-list-item-avatar,.mat-selection-list .mat-list-option.mat-list-item-avatar{height:56px}.mat-list .mat-list-item.mat-2-line,.mat-list .mat-list-option.mat-2-line,.mat-nav-list .mat-list-item.mat-2-line,.mat-nav-list .mat-list-option.mat-2-line,.mat-selection-list .mat-list-item.mat-2-line,.mat-selection-list .mat-list-option.mat-2-line{height:72px}.mat-list .mat-list-item.mat-3-line,.mat-list .mat-list-option.mat-3-line,.mat-nav-list .mat-list-item.mat-3-line,.mat-nav-list .mat-list-option.mat-3-line,.mat-selection-list .mat-list-item.mat-3-line,.mat-selection-list .mat-list-option.mat-3-line{height:88px}.mat-list .mat-list-item.mat-multi-line,.mat-list .mat-list-option.mat-multi-line,.mat-nav-list .mat-list-item.mat-multi-line,.mat-nav-list .mat-list-option.mat-multi-line,.mat-selection-list .mat-list-item.mat-multi-line,.mat-selection-list .mat-list-option.mat-multi-line{height:auto}.mat-list .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list .mat-list-option.mat-multi-line .mat-list-item-content,.mat-nav-list .mat-list-item.mat-multi-line .mat-list-item-content,.mat-nav-list .mat-list-option.mat-multi-line .mat-list-item-content,.mat-selection-list .mat-list-item.mat-multi-line .mat-list-item-content,.mat-selection-list .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list .mat-list-item .mat-list-text,.mat-list .mat-list-option .mat-list-text,.mat-nav-list .mat-list-item .mat-list-text,.mat-nav-list .mat-list-option .mat-list-text,.mat-selection-list .mat-list-item .mat-list-text,.mat-selection-list .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0 16px}.mat-list .mat-list-item .mat-list-text>*,.mat-list .mat-list-option .mat-list-text>*,.mat-nav-list .mat-list-item .mat-list-text>*,.mat-nav-list .mat-list-option .mat-list-text>*,.mat-selection-list .mat-list-item .mat-list-text>*,.mat-selection-list .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-list .mat-list-item .mat-list-text:empty,.mat-list .mat-list-option .mat-list-text:empty,.mat-nav-list .mat-list-item .mat-list-text:empty,.mat-nav-list .mat-list-option .mat-list-text:empty,.mat-selection-list .mat-list-item .mat-list-text:empty,.mat-selection-list .mat-list-option .mat-list-text:empty{display:none}.mat-list .mat-list-item .mat-list-text:nth-child(2),.mat-list .mat-list-option .mat-list-text:nth-child(2),.mat-nav-list .mat-list-item .mat-list-text:nth-child(2),.mat-nav-list .mat-list-option .mat-list-text:nth-child(2),.mat-selection-list .mat-list-item .mat-list-text:nth-child(2),.mat-selection-list .mat-list-option .mat-list-text:nth-child(2){padding:0}.mat-list .mat-list-item .mat-list-avatar,.mat-list .mat-list-option .mat-list-avatar,.mat-nav-list .mat-list-item .mat-list-avatar,.mat-nav-list .mat-list-option .mat-list-avatar,.mat-selection-list .mat-list-item .mat-list-avatar,.mat-selection-list .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%}.mat-list .mat-list-item .mat-list-icon,.mat-list .mat-list-option .mat-list-icon,.mat-nav-list .mat-list-item .mat-list-icon,.mat-nav-list .mat-list-option .mat-list-icon,.mat-selection-list .mat-list-item .mat-list-icon,.mat-selection-list .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list .mat-list-item .mat-divider,.mat-list .mat-list-option .mat-divider,.mat-nav-list .mat-list-item .mat-divider,.mat-nav-list .mat-list-option .mat-divider,.mat-selection-list .mat-list-item .mat-divider,.mat-selection-list .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%}[dir=rtl] .mat-list .mat-list-item .mat-divider,[dir=rtl] .mat-list .mat-list-option .mat-divider,[dir=rtl] .mat-nav-list .mat-list-item .mat-divider,[dir=rtl] .mat-nav-list .mat-list-option .mat-divider,[dir=rtl] .mat-selection-list .mat-list-item .mat-divider,[dir=rtl] .mat-selection-list .mat-list-option .mat-divider{left:auto;right:0}.mat-list .mat-list-item .mat-divider.mat-divider-inset,.mat-list .mat-list-option .mat-divider.mat-divider-inset,.mat-nav-list .mat-list-item .mat-divider.mat-divider-inset,.mat-nav-list .mat-list-option .mat-divider.mat-divider-inset,.mat-selection-list .mat-list-item .mat-divider.mat-divider-inset,.mat-selection-list .mat-list-option .mat-divider.mat-divider-inset{left:72px;width:calc(100% - 72px);margin:0}[dir=rtl] .mat-list .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-list .mat-list-option .mat-divider.mat-divider-inset,[dir=rtl] .mat-nav-list .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-nav-list .mat-list-option .mat-divider.mat-divider-inset,[dir=rtl] .mat-selection-list .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-selection-list .mat-list-option .mat-divider.mat-divider-inset{left:auto;right:72px}.mat-list[dense],.mat-nav-list[dense],.mat-selection-list[dense]{padding-top:4px;display:block}.mat-list[dense] .mat-subheader,.mat-nav-list[dense] .mat-subheader,.mat-selection-list[dense] .mat-subheader{height:40px;line-height:8px}.mat-list[dense] .mat-subheader:first-child,.mat-nav-list[dense] .mat-subheader:first-child,.mat-selection-list[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list[dense] .mat-list-item,.mat-list[dense] .mat-list-option,.mat-nav-list[dense] .mat-list-item,.mat-nav-list[dense] .mat-list-option,.mat-selection-list[dense] .mat-list-item,.mat-selection-list[dense] .mat-list-option{display:block;height:40px}.mat-list[dense] .mat-list-item .mat-list-item-content,.mat-list[dense] .mat-list-option .mat-list-item-content,.mat-nav-list[dense] .mat-list-item .mat-list-item-content,.mat-nav-list[dense] .mat-list-option .mat-list-item-content,.mat-selection-list[dense] .mat-list-item .mat-list-item-content,.mat-selection-list[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list[dense] .mat-list-option .mat-list-item-content-reverse,.mat-nav-list[dense] .mat-list-item .mat-list-item-content-reverse,.mat-nav-list[dense] .mat-list-option .mat-list-item-content-reverse,.mat-selection-list[dense] .mat-list-item .mat-list-item-content-reverse,.mat-selection-list[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list[dense] .mat-list-item .mat-list-item-ripple,.mat-list[dense] .mat-list-option .mat-list-item-ripple,.mat-nav-list[dense] .mat-list-item .mat-list-item-ripple,.mat-nav-list[dense] .mat-list-option .mat-list-item-ripple,.mat-selection-list[dense] .mat-list-item .mat-list-item-ripple,.mat-selection-list[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list[dense] .mat-list-item.mat-list-item-avatar,.mat-list[dense] .mat-list-option.mat-list-item-avatar,.mat-nav-list[dense] .mat-list-item.mat-list-item-avatar,.mat-nav-list[dense] .mat-list-option.mat-list-item-avatar,.mat-selection-list[dense] .mat-list-item.mat-list-item-avatar,.mat-selection-list[dense] .mat-list-option.mat-list-item-avatar{height:48px}.mat-list[dense] .mat-list-item.mat-2-line,.mat-list[dense] .mat-list-option.mat-2-line,.mat-nav-list[dense] .mat-list-item.mat-2-line,.mat-nav-list[dense] .mat-list-option.mat-2-line,.mat-selection-list[dense] .mat-list-item.mat-2-line,.mat-selection-list[dense] .mat-list-option.mat-2-line{height:60px}.mat-list[dense] .mat-list-item.mat-3-line,.mat-list[dense] .mat-list-option.mat-3-line,.mat-nav-list[dense] .mat-list-item.mat-3-line,.mat-nav-list[dense] .mat-list-option.mat-3-line,.mat-selection-list[dense] .mat-list-item.mat-3-line,.mat-selection-list[dense] .mat-list-option.mat-3-line{height:76px}.mat-list[dense] .mat-list-item.mat-multi-line,.mat-list[dense] .mat-list-option.mat-multi-line,.mat-nav-list[dense] .mat-list-item.mat-multi-line,.mat-nav-list[dense] .mat-list-option.mat-multi-line,.mat-selection-list[dense] .mat-list-item.mat-multi-line,.mat-selection-list[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list[dense] .mat-list-option.mat-multi-line .mat-list-item-content,.mat-nav-list[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-nav-list[dense] .mat-list-option.mat-multi-line .mat-list-item-content,.mat-selection-list[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-selection-list[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list[dense] .mat-list-item .mat-list-text,.mat-list[dense] .mat-list-option .mat-list-text,.mat-nav-list[dense] .mat-list-item .mat-list-text,.mat-nav-list[dense] .mat-list-option .mat-list-text,.mat-selection-list[dense] .mat-list-item .mat-list-text,.mat-selection-list[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0 16px}.mat-list[dense] .mat-list-item .mat-list-text>*,.mat-list[dense] .mat-list-option .mat-list-text>*,.mat-nav-list[dense] .mat-list-item .mat-list-text>*,.mat-nav-list[dense] .mat-list-option .mat-list-text>*,.mat-selection-list[dense] .mat-list-item .mat-list-text>*,.mat-selection-list[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-list[dense] .mat-list-item .mat-list-text:empty,.mat-list[dense] .mat-list-option .mat-list-text:empty,.mat-nav-list[dense] .mat-list-item .mat-list-text:empty,.mat-nav-list[dense] .mat-list-option .mat-list-text:empty,.mat-selection-list[dense] .mat-list-item .mat-list-text:empty,.mat-selection-list[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list[dense] .mat-list-item .mat-list-text:nth-child(2),.mat-list[dense] .mat-list-option .mat-list-text:nth-child(2),.mat-nav-list[dense] .mat-list-item .mat-list-text:nth-child(2),.mat-nav-list[dense] .mat-list-option .mat-list-text:nth-child(2),.mat-selection-list[dense] .mat-list-item .mat-list-text:nth-child(2),.mat-selection-list[dense] .mat-list-option .mat-list-text:nth-child(2){padding:0}.mat-list[dense] .mat-list-item .mat-list-avatar,.mat-list[dense] .mat-list-option .mat-list-avatar,.mat-nav-list[dense] .mat-list-item .mat-list-avatar,.mat-nav-list[dense] .mat-list-option .mat-list-avatar,.mat-selection-list[dense] .mat-list-item .mat-list-avatar,.mat-selection-list[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%}.mat-list[dense] .mat-list-item .mat-list-icon,.mat-list[dense] .mat-list-option .mat-list-icon,.mat-nav-list[dense] .mat-list-item .mat-list-icon,.mat-nav-list[dense] .mat-list-option .mat-list-icon,.mat-selection-list[dense] .mat-list-item .mat-list-icon,.mat-selection-list[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list[dense] .mat-list-item .mat-divider,.mat-list[dense] .mat-list-option .mat-divider,.mat-nav-list[dense] .mat-list-item .mat-divider,.mat-nav-list[dense] .mat-list-option .mat-divider,.mat-selection-list[dense] .mat-list-item .mat-divider,.mat-selection-list[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%}[dir=rtl] .mat-list[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list[dense] .mat-list-option .mat-divider,[dir=rtl] .mat-nav-list[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-nav-list[dense] .mat-list-option .mat-divider,[dir=rtl] .mat-selection-list[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-selection-list[dense] .mat-list-option .mat-divider{left:auto;right:0}.mat-list[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list[dense] .mat-list-option .mat-divider.mat-divider-inset,.mat-nav-list[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-nav-list[dense] .mat-list-option .mat-divider.mat-divider-inset,.mat-selection-list[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-selection-list[dense] .mat-list-option .mat-divider.mat-divider-inset{left:72px;width:calc(100% - 72px);margin:0}[dir=rtl] .mat-list[dense] .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-list[dense] .mat-list-option .mat-divider.mat-divider-inset,[dir=rtl] .mat-nav-list[dense] .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-nav-list[dense] .mat-list-option .mat-divider.mat-divider-inset,[dir=rtl] .mat-selection-list[dense] .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-selection-list[dense] .mat-list-option .mat-divider.mat-divider-inset{left:auto;right:72px}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item-content{cursor:pointer}.mat-nav-list .mat-list-item-content.mat-list-item-focus,.mat-nav-list .mat-list-item-content:hover{outline:0}.mat-list-option:not([disabled]){cursor:pointer}"],inputs:["disableRipple"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[]},n}(ui),fi=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Component,args:[{selector:"mat-list",exportAs:"matList",template:"<ng-content></ng-content>",host:{class:"mat-list"},styles:[".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list .mat-subheader,.mat-nav-list .mat-subheader,.mat-selection-list .mat-subheader{margin:0}.mat-list,.mat-nav-list,.mat-selection-list{padding-top:8px;display:block}.mat-list .mat-subheader,.mat-nav-list .mat-subheader,.mat-selection-list .mat-subheader{height:48px;line-height:16px}.mat-list .mat-subheader:first-child,.mat-nav-list .mat-subheader:first-child,.mat-selection-list .mat-subheader:first-child{margin-top:-8px}.mat-list .mat-list-item,.mat-list .mat-list-option,.mat-nav-list .mat-list-item,.mat-nav-list .mat-list-option,.mat-selection-list .mat-list-item,.mat-selection-list .mat-list-option{display:block;height:48px}.mat-list .mat-list-item .mat-list-item-content,.mat-list .mat-list-option .mat-list-item-content,.mat-nav-list .mat-list-item .mat-list-item-content,.mat-nav-list .mat-list-option .mat-list-item-content,.mat-selection-list .mat-list-item .mat-list-item-content,.mat-selection-list .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list .mat-list-item .mat-list-item-content-reverse,.mat-list .mat-list-option .mat-list-item-content-reverse,.mat-nav-list .mat-list-item .mat-list-item-content-reverse,.mat-nav-list .mat-list-option .mat-list-item-content-reverse,.mat-selection-list .mat-list-item .mat-list-item-content-reverse,.mat-selection-list .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list .mat-list-item .mat-list-item-ripple,.mat-list .mat-list-option .mat-list-item-ripple,.mat-nav-list .mat-list-item .mat-list-item-ripple,.mat-nav-list .mat-list-option .mat-list-item-ripple,.mat-selection-list .mat-list-item .mat-list-item-ripple,.mat-selection-list .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list .mat-list-item.mat-list-item-avatar,.mat-list .mat-list-option.mat-list-item-avatar,.mat-nav-list .mat-list-item.mat-list-item-avatar,.mat-nav-list .mat-list-option.mat-list-item-avatar,.mat-selection-list .mat-list-item.mat-list-item-avatar,.mat-selection-list .mat-list-option.mat-list-item-avatar{height:56px}.mat-list .mat-list-item.mat-2-line,.mat-list .mat-list-option.mat-2-line,.mat-nav-list .mat-list-item.mat-2-line,.mat-nav-list .mat-list-option.mat-2-line,.mat-selection-list .mat-list-item.mat-2-line,.mat-selection-list .mat-list-option.mat-2-line{height:72px}.mat-list .mat-list-item.mat-3-line,.mat-list .mat-list-option.mat-3-line,.mat-nav-list .mat-list-item.mat-3-line,.mat-nav-list .mat-list-option.mat-3-line,.mat-selection-list .mat-list-item.mat-3-line,.mat-selection-list .mat-list-option.mat-3-line{height:88px}.mat-list .mat-list-item.mat-multi-line,.mat-list .mat-list-option.mat-multi-line,.mat-nav-list .mat-list-item.mat-multi-line,.mat-nav-list .mat-list-option.mat-multi-line,.mat-selection-list .mat-list-item.mat-multi-line,.mat-selection-list .mat-list-option.mat-multi-line{height:auto}.mat-list .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list .mat-list-option.mat-multi-line .mat-list-item-content,.mat-nav-list .mat-list-item.mat-multi-line .mat-list-item-content,.mat-nav-list .mat-list-option.mat-multi-line .mat-list-item-content,.mat-selection-list .mat-list-item.mat-multi-line .mat-list-item-content,.mat-selection-list .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list .mat-list-item .mat-list-text,.mat-list .mat-list-option .mat-list-text,.mat-nav-list .mat-list-item .mat-list-text,.mat-nav-list .mat-list-option .mat-list-text,.mat-selection-list .mat-list-item .mat-list-text,.mat-selection-list .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0 16px}.mat-list .mat-list-item .mat-list-text>*,.mat-list .mat-list-option .mat-list-text>*,.mat-nav-list .mat-list-item .mat-list-text>*,.mat-nav-list .mat-list-option .mat-list-text>*,.mat-selection-list .mat-list-item .mat-list-text>*,.mat-selection-list .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-list .mat-list-item .mat-list-text:empty,.mat-list .mat-list-option .mat-list-text:empty,.mat-nav-list .mat-list-item .mat-list-text:empty,.mat-nav-list .mat-list-option .mat-list-text:empty,.mat-selection-list .mat-list-item .mat-list-text:empty,.mat-selection-list .mat-list-option .mat-list-text:empty{display:none}.mat-list .mat-list-item .mat-list-text:nth-child(2),.mat-list .mat-list-option .mat-list-text:nth-child(2),.mat-nav-list .mat-list-item .mat-list-text:nth-child(2),.mat-nav-list .mat-list-option .mat-list-text:nth-child(2),.mat-selection-list .mat-list-item .mat-list-text:nth-child(2),.mat-selection-list .mat-list-option .mat-list-text:nth-child(2){padding:0}.mat-list .mat-list-item .mat-list-avatar,.mat-list .mat-list-option .mat-list-avatar,.mat-nav-list .mat-list-item .mat-list-avatar,.mat-nav-list .mat-list-option .mat-list-avatar,.mat-selection-list .mat-list-item .mat-list-avatar,.mat-selection-list .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%}.mat-list .mat-list-item .mat-list-icon,.mat-list .mat-list-option .mat-list-icon,.mat-nav-list .mat-list-item .mat-list-icon,.mat-nav-list .mat-list-option .mat-list-icon,.mat-selection-list .mat-list-item .mat-list-icon,.mat-selection-list .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list .mat-list-item .mat-divider,.mat-list .mat-list-option .mat-divider,.mat-nav-list .mat-list-item .mat-divider,.mat-nav-list .mat-list-option .mat-divider,.mat-selection-list .mat-list-item .mat-divider,.mat-selection-list .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%}[dir=rtl] .mat-list .mat-list-item .mat-divider,[dir=rtl] .mat-list .mat-list-option .mat-divider,[dir=rtl] .mat-nav-list .mat-list-item .mat-divider,[dir=rtl] .mat-nav-list .mat-list-option .mat-divider,[dir=rtl] .mat-selection-list .mat-list-item .mat-divider,[dir=rtl] .mat-selection-list .mat-list-option .mat-divider{left:auto;right:0}.mat-list .mat-list-item .mat-divider.mat-divider-inset,.mat-list .mat-list-option .mat-divider.mat-divider-inset,.mat-nav-list .mat-list-item .mat-divider.mat-divider-inset,.mat-nav-list .mat-list-option .mat-divider.mat-divider-inset,.mat-selection-list .mat-list-item .mat-divider.mat-divider-inset,.mat-selection-list .mat-list-option .mat-divider.mat-divider-inset{left:72px;width:calc(100% - 72px);margin:0}[dir=rtl] .mat-list .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-list .mat-list-option .mat-divider.mat-divider-inset,[dir=rtl] .mat-nav-list .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-nav-list .mat-list-option .mat-divider.mat-divider-inset,[dir=rtl] .mat-selection-list .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-selection-list .mat-list-option .mat-divider.mat-divider-inset{left:auto;right:72px}.mat-list[dense],.mat-nav-list[dense],.mat-selection-list[dense]{padding-top:4px;display:block}.mat-list[dense] .mat-subheader,.mat-nav-list[dense] .mat-subheader,.mat-selection-list[dense] .mat-subheader{height:40px;line-height:8px}.mat-list[dense] .mat-subheader:first-child,.mat-nav-list[dense] .mat-subheader:first-child,.mat-selection-list[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list[dense] .mat-list-item,.mat-list[dense] .mat-list-option,.mat-nav-list[dense] .mat-list-item,.mat-nav-list[dense] .mat-list-option,.mat-selection-list[dense] .mat-list-item,.mat-selection-list[dense] .mat-list-option{display:block;height:40px}.mat-list[dense] .mat-list-item .mat-list-item-content,.mat-list[dense] .mat-list-option .mat-list-item-content,.mat-nav-list[dense] .mat-list-item .mat-list-item-content,.mat-nav-list[dense] .mat-list-option .mat-list-item-content,.mat-selection-list[dense] .mat-list-item .mat-list-item-content,.mat-selection-list[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list[dense] .mat-list-option .mat-list-item-content-reverse,.mat-nav-list[dense] .mat-list-item .mat-list-item-content-reverse,.mat-nav-list[dense] .mat-list-option .mat-list-item-content-reverse,.mat-selection-list[dense] .mat-list-item .mat-list-item-content-reverse,.mat-selection-list[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list[dense] .mat-list-item .mat-list-item-ripple,.mat-list[dense] .mat-list-option .mat-list-item-ripple,.mat-nav-list[dense] .mat-list-item .mat-list-item-ripple,.mat-nav-list[dense] .mat-list-option .mat-list-item-ripple,.mat-selection-list[dense] .mat-list-item .mat-list-item-ripple,.mat-selection-list[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list[dense] .mat-list-item.mat-list-item-avatar,.mat-list[dense] .mat-list-option.mat-list-item-avatar,.mat-nav-list[dense] .mat-list-item.mat-list-item-avatar,.mat-nav-list[dense] .mat-list-option.mat-list-item-avatar,.mat-selection-list[dense] .mat-list-item.mat-list-item-avatar,.mat-selection-list[dense] .mat-list-option.mat-list-item-avatar{height:48px}.mat-list[dense] .mat-list-item.mat-2-line,.mat-list[dense] .mat-list-option.mat-2-line,.mat-nav-list[dense] .mat-list-item.mat-2-line,.mat-nav-list[dense] .mat-list-option.mat-2-line,.mat-selection-list[dense] .mat-list-item.mat-2-line,.mat-selection-list[dense] .mat-list-option.mat-2-line{height:60px}.mat-list[dense] .mat-list-item.mat-3-line,.mat-list[dense] .mat-list-option.mat-3-line,.mat-nav-list[dense] .mat-list-item.mat-3-line,.mat-nav-list[dense] .mat-list-option.mat-3-line,.mat-selection-list[dense] .mat-list-item.mat-3-line,.mat-selection-list[dense] .mat-list-option.mat-3-line{height:76px}.mat-list[dense] .mat-list-item.mat-multi-line,.mat-list[dense] .mat-list-option.mat-multi-line,.mat-nav-list[dense] .mat-list-item.mat-multi-line,.mat-nav-list[dense] .mat-list-option.mat-multi-line,.mat-selection-list[dense] .mat-list-item.mat-multi-line,.mat-selection-list[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list[dense] .mat-list-option.mat-multi-line .mat-list-item-content,.mat-nav-list[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-nav-list[dense] .mat-list-option.mat-multi-line .mat-list-item-content,.mat-selection-list[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-selection-list[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list[dense] .mat-list-item .mat-list-text,.mat-list[dense] .mat-list-option .mat-list-text,.mat-nav-list[dense] .mat-list-item .mat-list-text,.mat-nav-list[dense] .mat-list-option .mat-list-text,.mat-selection-list[dense] .mat-list-item .mat-list-text,.mat-selection-list[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0 16px}.mat-list[dense] .mat-list-item .mat-list-text>*,.mat-list[dense] .mat-list-option .mat-list-text>*,.mat-nav-list[dense] .mat-list-item .mat-list-text>*,.mat-nav-list[dense] .mat-list-option .mat-list-text>*,.mat-selection-list[dense] .mat-list-item .mat-list-text>*,.mat-selection-list[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-list[dense] .mat-list-item .mat-list-text:empty,.mat-list[dense] .mat-list-option .mat-list-text:empty,.mat-nav-list[dense] .mat-list-item .mat-list-text:empty,.mat-nav-list[dense] .mat-list-option .mat-list-text:empty,.mat-selection-list[dense] .mat-list-item .mat-list-text:empty,.mat-selection-list[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list[dense] .mat-list-item .mat-list-text:nth-child(2),.mat-list[dense] .mat-list-option .mat-list-text:nth-child(2),.mat-nav-list[dense] .mat-list-item .mat-list-text:nth-child(2),.mat-nav-list[dense] .mat-list-option .mat-list-text:nth-child(2),.mat-selection-list[dense] .mat-list-item .mat-list-text:nth-child(2),.mat-selection-list[dense] .mat-list-option .mat-list-text:nth-child(2){padding:0}.mat-list[dense] .mat-list-item .mat-list-avatar,.mat-list[dense] .mat-list-option .mat-list-avatar,.mat-nav-list[dense] .mat-list-item .mat-list-avatar,.mat-nav-list[dense] .mat-list-option .mat-list-avatar,.mat-selection-list[dense] .mat-list-item .mat-list-avatar,.mat-selection-list[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%}.mat-list[dense] .mat-list-item .mat-list-icon,.mat-list[dense] .mat-list-option .mat-list-icon,.mat-nav-list[dense] .mat-list-item .mat-list-icon,.mat-nav-list[dense] .mat-list-option .mat-list-icon,.mat-selection-list[dense] .mat-list-item .mat-list-icon,.mat-selection-list[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list[dense] .mat-list-item .mat-divider,.mat-list[dense] .mat-list-option .mat-divider,.mat-nav-list[dense] .mat-list-item .mat-divider,.mat-nav-list[dense] .mat-list-option .mat-divider,.mat-selection-list[dense] .mat-list-item .mat-divider,.mat-selection-list[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%}[dir=rtl] .mat-list[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list[dense] .mat-list-option .mat-divider,[dir=rtl] .mat-nav-list[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-nav-list[dense] .mat-list-option .mat-divider,[dir=rtl] .mat-selection-list[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-selection-list[dense] .mat-list-option .mat-divider{left:auto;right:0}.mat-list[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list[dense] .mat-list-option .mat-divider.mat-divider-inset,.mat-nav-list[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-nav-list[dense] .mat-list-option .mat-divider.mat-divider-inset,.mat-selection-list[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-selection-list[dense] .mat-list-option .mat-divider.mat-divider-inset{left:72px;width:calc(100% - 72px);margin:0}[dir=rtl] .mat-list[dense] .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-list[dense] .mat-list-option .mat-divider.mat-divider-inset,[dir=rtl] .mat-nav-list[dense] .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-nav-list[dense] .mat-list-option .mat-divider.mat-divider-inset,[dir=rtl] .mat-selection-list[dense] .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-selection-list[dense] .mat-list-option .mat-divider.mat-divider-inset{left:auto;right:72px}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item-content{cursor:pointer}.mat-nav-list .mat-list-item-content.mat-list-item-focus,.mat-nav-list .mat-list-item-content:hover{outline:0}.mat-list-option:not([disabled]){cursor:pointer}"],inputs:["disableRipple"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[]},n}(ui),mi=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-list-avatar], [matListAvatar]",host:{class:"mat-list-avatar"}}]}],t.ctorParameters=function(){return[]},t}(),gi=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-list-icon], [matListIcon]",host:{class:"mat-list-icon"}}]}],t.ctorParameters=function(){return[]},t}(),yi=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[mat-subheader], [matSubheader]",host:{class:"mat-subheader"}}]}],t.ctorParameters=function(){return[]},t}(),vi=function(t){function n(e,n){var r=t.call(this)||this;return r._element=e,r._navList=n,r._isNavList=!1,r._isNavList=!!n,r}return Y(n,t),Object.defineProperty(n.prototype,"_hasAvatar",{set:function(t){null!=t?this._element.nativeElement.classList.add("mat-list-item-avatar"):this._element.nativeElement.classList.remove("mat-list-item-avatar")},enumerable:!0,configurable:!0}),n.prototype.ngAfterContentInit=function(){this._lineSetter=new Et(this._lines,this._element)},n.prototype._isRippleDisabled=function(){return!this._isNavList||this.disableRipple||this._navList.disableRipple},n.prototype._handleFocus=function(){this._element.nativeElement.classList.add("mat-list-item-focus")},n.prototype._handleBlur=function(){this._element.nativeElement.classList.remove("mat-list-item-focus")},n.prototype._getHostElement=function(){return this._element.nativeElement},n.decorators=[{type:e.Component,args:[{selector:"mat-list-item, a[mat-list-item]",exportAs:"matListItem",host:{class:"mat-list-item","(focus)":"_handleFocus()","(blur)":"_handleBlur()"},inputs:["disableRipple"],template:'<div class="mat-list-item-content"><div class="mat-list-item-ripple" mat-ripple [matRippleTrigger]="_getHostElement()" [matRippleDisabled]="_isRippleDisabled()"></div><ng-content select="[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"></ng-content><div class="mat-list-text"><ng-content select="[mat-line], [matLine]"></ng-content></div><ng-content></ng-content></div>',encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[{type:e.ElementRef},{type:di,decorators:[{type:e.Optional}]}]},n.propDecorators={_lines:[{type:e.ContentChildren,args:[xt]}],_hasAvatar:[{type:e.ContentChild,args:[mi]}]},n}(hi),bi=function(){return function(){}}(),_i=nt(et(J(bi))),wi=function(){return function(){}}(),Ci=et(wi),xi={provide:y.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return Oi}),multi:!0},Ei=function(){return function(t,e){this.source=t,this.selected=e}}(),Si=function(){return function(t,e){this.source=t,this.option=e}}(),ki=function(t){function n(n,r,i){var o=t.call(this)||this;return o._element=n,o._changeDetector=r,o.selectionList=i,o._selected=!1,o._disabled=!1,o._hasFocus=!1,o.checkboxPosition="after",o.selectionChange=new e.EventEmitter,o}return Y(n,t),Object.defineProperty(n.prototype,"disabled",{get:function(){return this.selectionList&&this.selectionList.disabled||this._disabled},set:function(t){var e=r.coerceBooleanProperty(t);e!==this._disabled&&(this._disabled=e,this._changeDetector.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selected",{get:function(){return this.selectionList.selectedOptions.isSelected(this)},set:function(t){var e=r.coerceBooleanProperty(t);e!==this._selected&&(this._setSelected(e),this.selectionList._reportValueChange())},enumerable:!0,configurable:!0}),n.prototype.ngOnInit=function(){var t=this;this._selected&&Promise.resolve().then(function(){return t.selected=!0})},n.prototype.ngAfterContentInit=function(){this._lineSetter=new Et(this._lines,this._element)},n.prototype.ngOnDestroy=function(){var t=this;this.selected&&Promise.resolve().then(function(){return t.selected=!1}),this.selectionList._removeOptionFromList(this)},n.prototype.toggle=function(){this.selected=!this.selected},n.prototype.focus=function(){this._element.nativeElement.focus()},n.prototype.getLabel=function(){return this._text?this._text.nativeElement.textContent:""},n.prototype._isRippleDisabled=function(){return this.disabled||this.disableRipple||this.selectionList.disableRipple},n.prototype._handleClick=function(){this.disabled||(this.toggle(),this.selectionList._emitChangeEvent(this),this._emitDeprecatedChangeEvent())},n.prototype._handleFocus=function(){this._hasFocus=!0,this.selectionList._setFocusedOption(this)},n.prototype._handleBlur=function(){this._hasFocus=!1,this.selectionList.onTouched()},n.prototype._getHostElement=function(){return this._element.nativeElement},n.prototype._setSelected=function(t){t!==this._selected&&(this._selected=t,t?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this._changeDetector.markForCheck())},n.prototype._emitDeprecatedChangeEvent=function(){this.selectionChange.emit(new Ei(this,this.selected))},n.decorators=[{type:e.Component,args:[{selector:"mat-list-option",exportAs:"matListOption",inputs:["disableRipple"],host:{role:"option",class:"mat-list-item mat-list-option","(focus)":"_handleFocus()","(blur)":"_handleBlur()","(click)":"_handleClick()",tabindex:"-1","[class.mat-list-item-disabled]":"disabled","[class.mat-list-item-focus]":"_hasFocus","[attr.aria-selected]":"selected.toString()","[attr.aria-disabled]":"disabled.toString()"},template:'<div class="mat-list-item-content" [class.mat-list-item-content-reverse]="checkboxPosition == \'after\'" [class.mat-list-item-disabled]="disabled"><div mat-ripple class="mat-list-item-ripple" [matRippleTrigger]="_getHostElement()" [matRippleDisabled]="_isRippleDisabled()"></div><mat-pseudo-checkbox [state]="selected ? \'checked\' : \'unchecked\'" [disabled]="disabled"></mat-pseudo-checkbox><div class="mat-list-text" #text><ng-content></ng-content></div></div>',encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ChangeDetectorRef},{type:Oi,decorators:[{type:e.Optional},{type:e.Inject,args:[e.forwardRef(function(){return Oi})]}]}]},n.propDecorators={_lines:[{type:e.ContentChildren,args:[xt]}],_text:[{type:e.ViewChild,args:["text"]}],checkboxPosition:[{type:e.Input}],value:[{type:e.Input}],disabled:[{type:e.Input}],selected:[{type:e.Input}],selectionChange:[{type:e.Output}]},n}(Ci),Oi=function(t){function n(n,r){var i=t.call(this)||this;return i._element=n,i.selectionChange=new e.EventEmitter,i.selectedOptions=new x.SelectionModel(!0),i._onChange=function(t){},i.onTouched=function(){},i.tabIndex=parseInt(r)||0,i}return Y(n,t),n.prototype.ngAfterContentInit=function(){this._keyManager=new l.FocusKeyManager(this.options).withWrap().withTypeAhead(),this._tempValues&&(this._setOptionsFromValues(this._tempValues),this._tempValues=null)},n.prototype.focus=function(){this._element.nativeElement.focus()},n.prototype.selectAll=function(){this.options.forEach(function(t){return t._setSelected(!0)}),this._reportValueChange()},n.prototype.deselectAll=function(){this.options.forEach(function(t){return t._setSelected(!1)}),this._reportValueChange()},n.prototype._setFocusedOption=function(t){this._keyManager.updateActiveItemIndex(this._getOptionIndex(t))},n.prototype._removeOptionFromList=function(t){if(t._hasFocus){var e=this._getOptionIndex(t);e>0?this._keyManager.setPreviousItemActive():0===e&&this.options.length>1&&this._keyManager.setNextItemActive()}},n.prototype._keydown=function(t){switch(t.keyCode){case c.SPACE:case c.ENTER:this._toggleSelectOnFocusedOption(),t.preventDefault();break;case c.HOME:case c.END:t.keyCode===c.HOME?this._keyManager.setFirstItemActive():this._keyManager.setLastItemActive(),t.preventDefault();break;default:this._keyManager.onKeydown(t)}},n.prototype._reportValueChange=function(){this.options&&this._onChange(this._getSelectedOptionValues())},n.prototype._emitChangeEvent=function(t){this.selectionChange.emit(new Si(this,t))},n.prototype.writeValue=function(t){this.options?this._setOptionsFromValues(t||[]):this._tempValues=t},n.prototype.setDisabledState=function(t){this.options&&this.options.forEach(function(e){return e.disabled=t})},n.prototype.registerOnChange=function(t){this._onChange=t},n.prototype.registerOnTouched=function(t){this.onTouched=t},n.prototype._getOptionByValue=function(t){return this.options.find(function(e){return e.value===t})},n.prototype._setOptionsFromValues=function(t){var e=this;this.options.forEach(function(t){return t._setSelected(!1)}),t.map(function(t){return e._getOptionByValue(t)}).filter(Boolean).forEach(function(t){return t._setSelected(!0)})},n.prototype._getSelectedOptionValues=function(){return this.options.filter(function(t){return t.selected}).map(function(t){return t.value})},n.prototype._toggleSelectOnFocusedOption=function(){var t=this._keyManager.activeItemIndex;if(null!=t&&this._isValidIndex(t)){var e=this.options.toArray()[t];e&&(e.toggle(),this._emitChangeEvent(e),e._emitDeprecatedChangeEvent())}},n.prototype._isValidIndex=function(t){return t>=0&&t<this.options.length},n.prototype._getOptionIndex=function(t){return this.options.toArray().indexOf(t)},n.decorators=[{type:e.Component,args:[{selector:"mat-selection-list",exportAs:"matSelectionList",inputs:["disabled","disableRipple","tabIndex"],host:{role:"listbox","[tabIndex]":"tabIndex",class:"mat-selection-list","(focus)":"focus()","(blur)":"onTouched()","(keydown)":"_keydown($event)","[attr.aria-disabled]":"disabled.toString()"},template:"<ng-content></ng-content>",styles:[".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list .mat-subheader,.mat-nav-list .mat-subheader,.mat-selection-list .mat-subheader{margin:0}.mat-list,.mat-nav-list,.mat-selection-list{padding-top:8px;display:block}.mat-list .mat-subheader,.mat-nav-list .mat-subheader,.mat-selection-list .mat-subheader{height:48px;line-height:16px}.mat-list .mat-subheader:first-child,.mat-nav-list .mat-subheader:first-child,.mat-selection-list .mat-subheader:first-child{margin-top:-8px}.mat-list .mat-list-item,.mat-list .mat-list-option,.mat-nav-list .mat-list-item,.mat-nav-list .mat-list-option,.mat-selection-list .mat-list-item,.mat-selection-list .mat-list-option{display:block;height:48px}.mat-list .mat-list-item .mat-list-item-content,.mat-list .mat-list-option .mat-list-item-content,.mat-nav-list .mat-list-item .mat-list-item-content,.mat-nav-list .mat-list-option .mat-list-item-content,.mat-selection-list .mat-list-item .mat-list-item-content,.mat-selection-list .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list .mat-list-item .mat-list-item-content-reverse,.mat-list .mat-list-option .mat-list-item-content-reverse,.mat-nav-list .mat-list-item .mat-list-item-content-reverse,.mat-nav-list .mat-list-option .mat-list-item-content-reverse,.mat-selection-list .mat-list-item .mat-list-item-content-reverse,.mat-selection-list .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list .mat-list-item .mat-list-item-ripple,.mat-list .mat-list-option .mat-list-item-ripple,.mat-nav-list .mat-list-item .mat-list-item-ripple,.mat-nav-list .mat-list-option .mat-list-item-ripple,.mat-selection-list .mat-list-item .mat-list-item-ripple,.mat-selection-list .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list .mat-list-item.mat-list-item-avatar,.mat-list .mat-list-option.mat-list-item-avatar,.mat-nav-list .mat-list-item.mat-list-item-avatar,.mat-nav-list .mat-list-option.mat-list-item-avatar,.mat-selection-list .mat-list-item.mat-list-item-avatar,.mat-selection-list .mat-list-option.mat-list-item-avatar{height:56px}.mat-list .mat-list-item.mat-2-line,.mat-list .mat-list-option.mat-2-line,.mat-nav-list .mat-list-item.mat-2-line,.mat-nav-list .mat-list-option.mat-2-line,.mat-selection-list .mat-list-item.mat-2-line,.mat-selection-list .mat-list-option.mat-2-line{height:72px}.mat-list .mat-list-item.mat-3-line,.mat-list .mat-list-option.mat-3-line,.mat-nav-list .mat-list-item.mat-3-line,.mat-nav-list .mat-list-option.mat-3-line,.mat-selection-list .mat-list-item.mat-3-line,.mat-selection-list .mat-list-option.mat-3-line{height:88px}.mat-list .mat-list-item.mat-multi-line,.mat-list .mat-list-option.mat-multi-line,.mat-nav-list .mat-list-item.mat-multi-line,.mat-nav-list .mat-list-option.mat-multi-line,.mat-selection-list .mat-list-item.mat-multi-line,.mat-selection-list .mat-list-option.mat-multi-line{height:auto}.mat-list .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list .mat-list-option.mat-multi-line .mat-list-item-content,.mat-nav-list .mat-list-item.mat-multi-line .mat-list-item-content,.mat-nav-list .mat-list-option.mat-multi-line .mat-list-item-content,.mat-selection-list .mat-list-item.mat-multi-line .mat-list-item-content,.mat-selection-list .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list .mat-list-item .mat-list-text,.mat-list .mat-list-option .mat-list-text,.mat-nav-list .mat-list-item .mat-list-text,.mat-nav-list .mat-list-option .mat-list-text,.mat-selection-list .mat-list-item .mat-list-text,.mat-selection-list .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0 16px}.mat-list .mat-list-item .mat-list-text>*,.mat-list .mat-list-option .mat-list-text>*,.mat-nav-list .mat-list-item .mat-list-text>*,.mat-nav-list .mat-list-option .mat-list-text>*,.mat-selection-list .mat-list-item .mat-list-text>*,.mat-selection-list .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-list .mat-list-item .mat-list-text:empty,.mat-list .mat-list-option .mat-list-text:empty,.mat-nav-list .mat-list-item .mat-list-text:empty,.mat-nav-list .mat-list-option .mat-list-text:empty,.mat-selection-list .mat-list-item .mat-list-text:empty,.mat-selection-list .mat-list-option .mat-list-text:empty{display:none}.mat-list .mat-list-item .mat-list-text:nth-child(2),.mat-list .mat-list-option .mat-list-text:nth-child(2),.mat-nav-list .mat-list-item .mat-list-text:nth-child(2),.mat-nav-list .mat-list-option .mat-list-text:nth-child(2),.mat-selection-list .mat-list-item .mat-list-text:nth-child(2),.mat-selection-list .mat-list-option .mat-list-text:nth-child(2){padding:0}.mat-list .mat-list-item .mat-list-avatar,.mat-list .mat-list-option .mat-list-avatar,.mat-nav-list .mat-list-item .mat-list-avatar,.mat-nav-list .mat-list-option .mat-list-avatar,.mat-selection-list .mat-list-item .mat-list-avatar,.mat-selection-list .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%}.mat-list .mat-list-item .mat-list-icon,.mat-list .mat-list-option .mat-list-icon,.mat-nav-list .mat-list-item .mat-list-icon,.mat-nav-list .mat-list-option .mat-list-icon,.mat-selection-list .mat-list-item .mat-list-icon,.mat-selection-list .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list .mat-list-item .mat-divider,.mat-list .mat-list-option .mat-divider,.mat-nav-list .mat-list-item .mat-divider,.mat-nav-list .mat-list-option .mat-divider,.mat-selection-list .mat-list-item .mat-divider,.mat-selection-list .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%}[dir=rtl] .mat-list .mat-list-item .mat-divider,[dir=rtl] .mat-list .mat-list-option .mat-divider,[dir=rtl] .mat-nav-list .mat-list-item .mat-divider,[dir=rtl] .mat-nav-list .mat-list-option .mat-divider,[dir=rtl] .mat-selection-list .mat-list-item .mat-divider,[dir=rtl] .mat-selection-list .mat-list-option .mat-divider{left:auto;right:0}.mat-list .mat-list-item .mat-divider.mat-divider-inset,.mat-list .mat-list-option .mat-divider.mat-divider-inset,.mat-nav-list .mat-list-item .mat-divider.mat-divider-inset,.mat-nav-list .mat-list-option .mat-divider.mat-divider-inset,.mat-selection-list .mat-list-item .mat-divider.mat-divider-inset,.mat-selection-list .mat-list-option .mat-divider.mat-divider-inset{left:72px;width:calc(100% - 72px);margin:0}[dir=rtl] .mat-list .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-list .mat-list-option .mat-divider.mat-divider-inset,[dir=rtl] .mat-nav-list .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-nav-list .mat-list-option .mat-divider.mat-divider-inset,[dir=rtl] .mat-selection-list .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-selection-list .mat-list-option .mat-divider.mat-divider-inset{left:auto;right:72px}.mat-list[dense],.mat-nav-list[dense],.mat-selection-list[dense]{padding-top:4px;display:block}.mat-list[dense] .mat-subheader,.mat-nav-list[dense] .mat-subheader,.mat-selection-list[dense] .mat-subheader{height:40px;line-height:8px}.mat-list[dense] .mat-subheader:first-child,.mat-nav-list[dense] .mat-subheader:first-child,.mat-selection-list[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list[dense] .mat-list-item,.mat-list[dense] .mat-list-option,.mat-nav-list[dense] .mat-list-item,.mat-nav-list[dense] .mat-list-option,.mat-selection-list[dense] .mat-list-item,.mat-selection-list[dense] .mat-list-option{display:block;height:40px}.mat-list[dense] .mat-list-item .mat-list-item-content,.mat-list[dense] .mat-list-option .mat-list-item-content,.mat-nav-list[dense] .mat-list-item .mat-list-item-content,.mat-nav-list[dense] .mat-list-option .mat-list-item-content,.mat-selection-list[dense] .mat-list-item .mat-list-item-content,.mat-selection-list[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list[dense] .mat-list-option .mat-list-item-content-reverse,.mat-nav-list[dense] .mat-list-item .mat-list-item-content-reverse,.mat-nav-list[dense] .mat-list-option .mat-list-item-content-reverse,.mat-selection-list[dense] .mat-list-item .mat-list-item-content-reverse,.mat-selection-list[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list[dense] .mat-list-item .mat-list-item-ripple,.mat-list[dense] .mat-list-option .mat-list-item-ripple,.mat-nav-list[dense] .mat-list-item .mat-list-item-ripple,.mat-nav-list[dense] .mat-list-option .mat-list-item-ripple,.mat-selection-list[dense] .mat-list-item .mat-list-item-ripple,.mat-selection-list[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list[dense] .mat-list-item.mat-list-item-avatar,.mat-list[dense] .mat-list-option.mat-list-item-avatar,.mat-nav-list[dense] .mat-list-item.mat-list-item-avatar,.mat-nav-list[dense] .mat-list-option.mat-list-item-avatar,.mat-selection-list[dense] .mat-list-item.mat-list-item-avatar,.mat-selection-list[dense] .mat-list-option.mat-list-item-avatar{height:48px}.mat-list[dense] .mat-list-item.mat-2-line,.mat-list[dense] .mat-list-option.mat-2-line,.mat-nav-list[dense] .mat-list-item.mat-2-line,.mat-nav-list[dense] .mat-list-option.mat-2-line,.mat-selection-list[dense] .mat-list-item.mat-2-line,.mat-selection-list[dense] .mat-list-option.mat-2-line{height:60px}.mat-list[dense] .mat-list-item.mat-3-line,.mat-list[dense] .mat-list-option.mat-3-line,.mat-nav-list[dense] .mat-list-item.mat-3-line,.mat-nav-list[dense] .mat-list-option.mat-3-line,.mat-selection-list[dense] .mat-list-item.mat-3-line,.mat-selection-list[dense] .mat-list-option.mat-3-line{height:76px}.mat-list[dense] .mat-list-item.mat-multi-line,.mat-list[dense] .mat-list-option.mat-multi-line,.mat-nav-list[dense] .mat-list-item.mat-multi-line,.mat-nav-list[dense] .mat-list-option.mat-multi-line,.mat-selection-list[dense] .mat-list-item.mat-multi-line,.mat-selection-list[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list[dense] .mat-list-option.mat-multi-line .mat-list-item-content,.mat-nav-list[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-nav-list[dense] .mat-list-option.mat-multi-line .mat-list-item-content,.mat-selection-list[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-selection-list[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list[dense] .mat-list-item .mat-list-text,.mat-list[dense] .mat-list-option .mat-list-text,.mat-nav-list[dense] .mat-list-item .mat-list-text,.mat-nav-list[dense] .mat-list-option .mat-list-text,.mat-selection-list[dense] .mat-list-item .mat-list-text,.mat-selection-list[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0 16px}.mat-list[dense] .mat-list-item .mat-list-text>*,.mat-list[dense] .mat-list-option .mat-list-text>*,.mat-nav-list[dense] .mat-list-item .mat-list-text>*,.mat-nav-list[dense] .mat-list-option .mat-list-text>*,.mat-selection-list[dense] .mat-list-item .mat-list-text>*,.mat-selection-list[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-list[dense] .mat-list-item .mat-list-text:empty,.mat-list[dense] .mat-list-option .mat-list-text:empty,.mat-nav-list[dense] .mat-list-item .mat-list-text:empty,.mat-nav-list[dense] .mat-list-option .mat-list-text:empty,.mat-selection-list[dense] .mat-list-item .mat-list-text:empty,.mat-selection-list[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list[dense] .mat-list-item .mat-list-text:nth-child(2),.mat-list[dense] .mat-list-option .mat-list-text:nth-child(2),.mat-nav-list[dense] .mat-list-item .mat-list-text:nth-child(2),.mat-nav-list[dense] .mat-list-option .mat-list-text:nth-child(2),.mat-selection-list[dense] .mat-list-item .mat-list-text:nth-child(2),.mat-selection-list[dense] .mat-list-option .mat-list-text:nth-child(2){padding:0}.mat-list[dense] .mat-list-item .mat-list-avatar,.mat-list[dense] .mat-list-option .mat-list-avatar,.mat-nav-list[dense] .mat-list-item .mat-list-avatar,.mat-nav-list[dense] .mat-list-option .mat-list-avatar,.mat-selection-list[dense] .mat-list-item .mat-list-avatar,.mat-selection-list[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%}.mat-list[dense] .mat-list-item .mat-list-icon,.mat-list[dense] .mat-list-option .mat-list-icon,.mat-nav-list[dense] .mat-list-item .mat-list-icon,.mat-nav-list[dense] .mat-list-option .mat-list-icon,.mat-selection-list[dense] .mat-list-item .mat-list-icon,.mat-selection-list[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list[dense] .mat-list-item .mat-divider,.mat-list[dense] .mat-list-option .mat-divider,.mat-nav-list[dense] .mat-list-item .mat-divider,.mat-nav-list[dense] .mat-list-option .mat-divider,.mat-selection-list[dense] .mat-list-item .mat-divider,.mat-selection-list[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%}[dir=rtl] .mat-list[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list[dense] .mat-list-option .mat-divider,[dir=rtl] .mat-nav-list[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-nav-list[dense] .mat-list-option .mat-divider,[dir=rtl] .mat-selection-list[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-selection-list[dense] .mat-list-option .mat-divider{left:auto;right:0}.mat-list[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list[dense] .mat-list-option .mat-divider.mat-divider-inset,.mat-nav-list[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-nav-list[dense] .mat-list-option .mat-divider.mat-divider-inset,.mat-selection-list[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-selection-list[dense] .mat-list-option .mat-divider.mat-divider-inset{left:72px;width:calc(100% - 72px);margin:0}[dir=rtl] .mat-list[dense] .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-list[dense] .mat-list-option .mat-divider.mat-divider-inset,[dir=rtl] .mat-nav-list[dense] .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-nav-list[dense] .mat-list-option .mat-divider.mat-divider-inset,[dir=rtl] .mat-selection-list[dense] .mat-list-item .mat-divider.mat-divider-inset,[dir=rtl] .mat-selection-list[dense] .mat-list-option .mat-divider.mat-divider-inset{left:auto;right:72px}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item-content{cursor:pointer}.mat-nav-list .mat-list-item-content.mat-list-item-focus,.mat-nav-list .mat-list-item-content:hover{outline:0}.mat-list-option:not([disabled]){cursor:pointer}"],encapsulation:e.ViewEncapsulation.None,providers:[xi],preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[{type:e.ElementRef},{type:void 0,decorators:[{type:e.Attribute,args:["tabindex"]}]}]},n.propDecorators={options:[{type:e.ContentChildren,args:[ki]}],selectionChange:[{type:e.Output}]},n}(_i),Pi=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[St,It,Z,Dt,a.CommonModule],exports:[fi,di,vi,mi,St,Z,gi,yi,Dt,Oi,ki,Rr],declarations:[fi,di,vi,mi,gi,yi,Oi,ki]}]}],t.ctorParameters=function(){return[]},t}(),Ai={transformMenu:_.trigger("transformMenu",[_.state("void",_.style({opacity:0,transform:"scale(0.01, 0.01)"})),_.state("enter-start",_.style({opacity:1,transform:"scale(1, 0.5)"})),_.state("enter",_.style({transform:"scale(1, 1)"})),_.transition("void => enter-start",_.animate("100ms linear")),_.transition("enter-start => enter",_.animate("300ms cubic-bezier(0.25, 0.8, 0.25, 1)")),_.transition("* => void",_.animate("150ms 50ms linear",_.style({opacity:0})))]),fadeInItems:_.trigger("fadeInItems",[_.state("showing",_.style({opacity:1})),_.transition("void => *",[_.style({opacity:0}),_.animate("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ti=Ai.fadeInItems,Mi=Ai.transformMenu;var Ii=function(){return function(){}}(),Ri=et(J(Ii)),Di=function(t){function n(e){var n=t.call(this)||this;return n._elementRef=e,n._hovered=new i.Subject,n._highlighted=!1,n._triggersSubmenu=!1,n}return Y(n,t),n.prototype.focus=function(){this._getHostElement().focus()},n.prototype.ngOnDestroy=function(){this._hovered.complete()},n.prototype._getTabIndex=function(){return this.disabled?"-1":"0"},n.prototype._getHostElement=function(){return this._elementRef.nativeElement},n.prototype._checkDisabled=function(t){this.disabled&&(t.preventDefault(),t.stopPropagation())},n.prototype._emitHoverEvent=function(){this.disabled||this._hovered.next(this)},n.prototype.getLabel=function(){var t=this._elementRef.nativeElement,e="";if(t.childNodes)for(var n=t.childNodes.length,r=0;r<n;r++)t.childNodes[r].nodeType===Node.TEXT_NODE&&(e+=t.childNodes[r].textContent);return e.trim()},n.decorators=[{type:e.Component,args:[{selector:"[mat-menu-item]",exportAs:"matMenuItem",inputs:["disabled","disableRipple"],host:{role:"menuitem",class:"mat-menu-item","[class.mat-menu-item-highlighted]":"_highlighted","[class.mat-menu-item-submenu-trigger]":"_triggersSubmenu","[attr.tabindex]":"_getTabIndex()","[attr.aria-disabled]":"disabled.toString()","[attr.disabled]":"disabled || null","(click)":"_checkDisabled($event)","(mouseenter)":"_emitHoverEvent()"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,template:'<ng-content></ng-content><div class="mat-menu-ripple" matRipple [matRippleDisabled]="disableRipple || disabled" [matRippleTrigger]="_getHostElement()"></div>'}]}],n.ctorParameters=function(){return[{type:e.ElementRef}]},n}(Ri),Ni=new e.InjectionToken("mat-menu-default-options"),Li=function(){function t(t,n,r){this._elementRef=t,this._ngZone=n,this._defaultOptions=r,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._tabSubscription=S.Subscription.EMPTY,this._classList={},this._panelAnimationState="void",this._overlapTrigger=this._defaultOptions.overlapTrigger,this.closed=new e.EventEmitter,this.close=this.closed}return Object.defineProperty(t.prototype,"xPosition",{get:function(){return this._xPosition},set:function(t){"before"!==t&&"after"!==t&&function(){throw Error('x-position value must be either \'before\' or after\'.\n      Example: <mat-menu x-position="before" #menu="matMenu"></mat-menu>')}(),this._xPosition=t,this.setPositionClasses()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yPosition",{get:function(){return this._yPosition},set:function(t){"above"!==t&&"below"!==t&&function(){throw Error('y-position value must be either \'above\' or below\'.\n      Example: <mat-menu y-position="above" #menu="matMenu"></mat-menu>')}(),this._yPosition=t,this.setPositionClasses()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overlapTrigger",{get:function(){return this._overlapTrigger},set:function(t){this._overlapTrigger=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelClass",{set:function(t){t&&t.length&&(this._classList=t.split(" ").reduce(function(t,e){return t[e]=!0,t},{}),this._elementRef.nativeElement.className="",this.setPositionClasses())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"classList",{get:function(){return this.panelClass},set:function(t){this.panelClass=t},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this._keyManager=new l.FocusKeyManager(this.items).withWrap().withTypeAhead(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return t.close.emit("keydown")})},t.prototype.ngOnDestroy=function(){this._tabSubscription.unsubscribe(),this.closed.complete()},t.prototype._hovered=function(){var t=this;return this.items?this.items.changes.pipe(v.startWith(this.items),f.switchMap(function(t){return w.merge.apply(void 0,t.map(function(t){return t._hovered}))})):this._ngZone.onStable.asObservable().pipe(d.take(1),f.switchMap(function(){return t._hovered()}))},t.prototype._handleKeydown=function(t){switch(t.keyCode){case c.ESCAPE:this.closed.emit("keydown"),t.stopPropagation();break;case c.LEFT_ARROW:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case c.RIGHT_ARROW:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:this._keyManager.onKeydown(t)}},t.prototype.focusFirstItem=function(){this._keyManager.setFirstItemActive()},t.prototype.resetActiveItem=function(){this._keyManager.setActiveItem(-1)},t.prototype.setPositionClasses=function(t,e){void 0===t&&(t=this.xPosition),void 0===e&&(e=this.yPosition),this._classList["mat-menu-before"]="before"===t,this._classList["mat-menu-after"]="after"===t,this._classList["mat-menu-above"]="above"===e,this._classList["mat-menu-below"]="below"===e},t.prototype.setElevation=function(t){var e="mat-elevation-z"+(2+t),n=Object.keys(this._classList).find(function(t){return t.startsWith("mat-elevation-z")});n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)},t.prototype._startAnimation=function(){this._panelAnimationState="enter-start"},t.prototype._resetAnimation=function(){this._panelAnimationState="void"},t.prototype._onAnimationDone=function(t){"enter-start"===t.toState&&(this._panelAnimationState="enter")},t.decorators=[{type:e.Component,args:[{selector:"mat-menu",template:'<ng-template><div class="mat-menu-panel" [ngClass]="_classList" (keydown)="_handleKeydown($event)" (click)="closed.emit(\'click\')" [@transformMenu]="_panelAnimationState" (@transformMenu.done)="_onAnimationDone($event)" tabindex="-1" role="menu"><div class="mat-menu-content" [@fadeInItems]="\'showing\'"><ng-content></ng-content></div></div></ng-template>',styles:[".mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:2px;outline:0}.mat-menu-panel:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-menu-panel.mat-menu-after.mat-menu-below{transform-origin:left top}.mat-menu-panel.mat-menu-after.mat-menu-above{transform-origin:left bottom}.mat-menu-panel.mat-menu-before.mat-menu-below{transform-origin:right top}.mat-menu-panel.mat-menu-before.mat-menu-above{transform-origin:right bottom}[dir=rtl] .mat-menu-panel.mat-menu-after.mat-menu-below{transform-origin:right top}[dir=rtl] .mat-menu-panel.mat-menu-after.mat-menu-above{transform-origin:right bottom}[dir=rtl] .mat-menu-panel.mat-menu-before.mat-menu-below{transform-origin:left top}[dir=rtl] .mat-menu-panel.mat-menu-before.mat-menu-above{transform-origin:left bottom}.mat-menu-panel.ng-animating{pointer-events:none}@media screen and (-ms-high-contrast:active){.mat-menu-panel{outline:solid 1px}}.mat-menu-content{padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;position:relative}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item .mat-icon{vertical-align:middle}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:'';display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:8px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}"],changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,animations:[Ai.transformMenu,Ai.fadeInItems],exportAs:"matMenu"}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.NgZone},{type:void 0,decorators:[{type:e.Inject,args:[Ni]}]}]},t.propDecorators={xPosition:[{type:e.Input}],yPosition:[{type:e.Input}],templateRef:[{type:e.ViewChild,args:[e.TemplateRef]}],items:[{type:e.ContentChildren,args:[Di]}],overlapTrigger:[{type:e.Input}],panelClass:[{type:e.Input,args:["class"]}],classList:[{type:e.Input}],closed:[{type:e.Output}],close:[{type:e.Output}]},t}(),ji=new e.InjectionToken("mat-menu-scroll-strategy");function Fi(t){return function(){return t.scrollStrategies.reposition()}}var Vi={provide:ji,deps:[u.Overlay],useFactory:Fi},Bi=function(){function t(t,n,r,i,o,a,s){this._overlay=t,this._element=n,this._viewContainerRef=r,this._scrollStrategy=i,this._parentMenu=o,this._menuItemInstance=a,this._dir=s,this._overlayRef=null,this._menuOpen=!1,this._closeSubscription=S.Subscription.EMPTY,this._positionSubscription=S.Subscription.EMPTY,this._hoverSubscription=S.Subscription.EMPTY,this._openedByMouse=!1,this.menuOpened=new e.EventEmitter,this.onMenuOpen=this.menuOpened,this.menuClosed=new e.EventEmitter,this.onMenuClose=this.menuClosed,a&&(a._triggersSubmenu=this.triggersSubmenu())}return Object.defineProperty(t.prototype,"_deprecatedMatMenuTriggerFor",{get:function(){return this.menu},set:function(t){this.menu=t},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this._checkMenu(),this.menu.close.subscribe(function(e){t._destroyMenu(),"click"===e&&t._parentMenu&&t._parentMenu.closed.emit(e)}),this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(h.filter(function(e){return e===t._menuItemInstance})).subscribe(function(){t._openedByMouse=!0,t.openMenu()}))},t.prototype.ngOnDestroy=function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._cleanUpSubscriptions()},Object.defineProperty(t.prototype,"menuOpen",{get:function(){return this._menuOpen},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},enumerable:!0,configurable:!0}),t.prototype.triggersSubmenu=function(){return!(!this._menuItemInstance||!this._parentMenu)},t.prototype.toggleMenu=function(){return this._menuOpen?this.closeMenu():this.openMenu()},t.prototype.openMenu=function(){var t=this;this._menuOpen||(this._createOverlay().attach(this._portal),this._closeSubscription=this._menuClosingActions().subscribe(function(){return t.closeMenu()}),this._initMenu(),this.menu instanceof Li&&this.menu._startAnimation())},t.prototype.closeMenu=function(){this.menu.close.emit()},t.prototype.focus=function(){this._element.nativeElement.focus()},t.prototype._destroyMenu=function(){this._overlayRef&&this.menuOpen&&(this._resetMenu(),this._closeSubscription.unsubscribe(),this._overlayRef.detach(),this.menu instanceof Li&&this.menu._resetAnimation())},t.prototype._initMenu=function(){if(this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this._openedByMouse){var t=this._overlayRef.overlayElement.firstElementChild;t&&(this.menu.resetActiveItem(),t.focus())}else this.menu.focusFirstItem()},t.prototype._setMenuElevation=function(){if(this.menu.setElevation){for(var t=0,e=this.menu.parentMenu;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}},t.prototype._resetMenu=function(){this._setIsMenuOpen(!1),this._openedByMouse&&this.triggersSubmenu()||this.focus(),this._openedByMouse=!1},t.prototype._setIsMenuOpen=function(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)},t.prototype._checkMenu=function(){this.menu||function(){throw Error('mat-menu-trigger: must pass in an mat-menu instance.\n\n    Example:\n      <mat-menu #menu="matMenu"></mat-menu>\n      <button [matMenuTriggerFor]="menu"></button>')}()},t.prototype._createOverlay=function(){if(!this._overlayRef){this._portal=new p.TemplatePortal(this.menu.templateRef,this._viewContainerRef);var t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t)}return this._overlayRef},t.prototype._getOverlayConfig=function(){return new u.OverlayConfig({positionStrategy:this._getPosition(),hasBackdrop:!this.triggersSubmenu(),backdropClass:"cdk-overlay-transparent-backdrop",direction:this.dir,scrollStrategy:this._scrollStrategy()})},t.prototype._subscribeToPositions=function(t){var e=this;this._positionSubscription=t.onPositionChange.subscribe(function(t){var n="start"===t.connectionPair.overlayX?"after":"before",r="top"===t.connectionPair.overlayY?"below":"above";e.menu.setPositionClasses(n,r)})},t.prototype._getPosition=function(){var t="before"===this.menu.xPosition?["end","start"]:["start","end"],e=t[0],n=t[1],r="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],i=r[0],o=r[1],a=[i,o],s=a[0],c=a[1],l=[e,n],u=l[0],p=l[1],h=0;return this.triggersSubmenu()?(p=e="before"===this.menu.xPosition?"start":"end",n=u="end"===e?"start":"end",h="bottom"===i?8:-8):this.menu.overlapTrigger||(s="top"===i?"bottom":"top",c="top"===o?"bottom":"top"),this._overlay.position().connectedTo(this._element,{originX:e,originY:s},{overlayX:u,overlayY:i}).withDirection(this.dir).withOffsetY(h).withFallbackPosition({originX:n,originY:s},{overlayX:p,overlayY:i}).withFallbackPosition({originX:e,originY:c},{overlayX:u,overlayY:o},void 0,-h).withFallbackPosition({originX:n,originY:c},{overlayX:p,overlayY:o},void 0,-h)},t.prototype._cleanUpSubscriptions=function(){this._closeSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()},t.prototype._menuClosingActions=function(){var t=this,e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),r=this._parentMenu?this._parentMenu.close:C.of(),i=this._parentMenu?this._parentMenu._hovered().pipe(h.filter(function(e){return e!==t._menuItemInstance}),h.filter(function(){return t._menuOpen})):C.of();return w.merge(e,r,i,n)},t.prototype._handleMousedown=function(t){l.isFakeMousedownFromScreenReader(t)||(this._openedByMouse=!0,this.triggersSubmenu()&&t.preventDefault())},t.prototype._handleKeydown=function(t){var e=t.keyCode;this.triggersSubmenu()&&(e===c.RIGHT_ARROW&&"ltr"===this.dir||e===c.LEFT_ARROW&&"rtl"===this.dir)&&this.openMenu()},t.prototype._handleClick=function(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()},t.decorators=[{type:e.Directive,args:[{selector:"[mat-menu-trigger-for], [matMenuTriggerFor]",host:{"aria-haspopup":"true","(mousedown)":"_handleMousedown($event)","(keydown)":"_handleKeydown($event)","(click)":"_handleClick($event)"},exportAs:"matMenuTrigger"}]}],t.ctorParameters=function(){return[{type:u.Overlay},{type:e.ElementRef},{type:e.ViewContainerRef},{type:void 0,decorators:[{type:e.Inject,args:[ji]}]},{type:Li,decorators:[{type:e.Optional}]},{type:Di,decorators:[{type:e.Optional},{type:e.Self}]},{type:n.Directionality,decorators:[{type:e.Optional}]}]},t.propDecorators={_deprecatedMatMenuTriggerFor:[{type:e.Input,args:["mat-menu-trigger-for"]}],menu:[{type:e.Input,args:["matMenuTriggerFor"]}],menuOpened:[{type:e.Output}],onMenuOpen:[{type:e.Output}],menuClosed:[{type:e.Output}],onMenuClose:[{type:e.Output}]},t}(),Ui={overlapTrigger:!0,xPosition:"after",yPosition:"below"},Hi=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[u.OverlayModule,a.CommonModule,It,Z],exports:[Li,Di,Bi,Z],declarations:[Li,Di,Bi],providers:[Vi,{provide:Ni,useValue:Ui}]}]}],t.ctorParameters=function(){return[]},t}(),zi={transformPanel:_.trigger("transformPanel",[_.state("showing",_.style({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),_.state("showing-multiple",_.style({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),_.transition("void => *",[_.style({opacity:0,minWidth:"100%",transform:"scaleY(0)"}),_.animate("150ms cubic-bezier(0.25, 0.8, 0.25, 1)")]),_.transition("* => void",[_.animate("250ms 100ms linear",_.style({opacity:0}))])]),fadeInContent:_.trigger("fadeInContent",[_.state("showing",_.style({opacity:1})),_.transition("void => showing",[_.style({opacity:0}),_.animate("150ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Gi=zi.transformPanel,Wi=zi.fadeInContent;var qi=0,Yi=new e.InjectionToken("mat-select-scroll-strategy");function Ki(t){return function(){return t.scrollStrategies.reposition()}}var $i={provide:Yi,deps:[u.Overlay],useFactory:Ki},Xi=function(){return function(t,e){this.source=t,this.value=e}}(),Qi=function(){return function(t,e,n,r,i){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=r,this.ngControl=i}}(),Zi=et(nt(J(rt(Qi)))),Ji=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-select-trigger"}]}],t.ctorParameters=function(){return[]},t}(),to=function(t){function o(n,r,o,a,s,c,l,u,p,h,m,g){var y=t.call(this,s,a,l,u,h)||this;return y._viewportRuler=n,y._changeDetectorRef=r,y._ngZone=o,y._dir=c,y._parentFormField=p,y.ngControl=h,y._scrollStrategyFactory=g,y._panelOpen=!1,y._required=!1,y._scrollTop=0,y._multiple=!1,y._compareWith=function(t,e){return t===e},y._uid="mat-select-"+qi++,y._destroy=new i.Subject,y._triggerFontSize=0,y._onChange=function(){},y._onTouched=function(){},y._optionIds="",y._transformOrigin="top",y._panelDoneAnimating=!1,y._scrollStrategy=y._scrollStrategyFactory(),y._offsetY=0,y._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],y.focused=!1,y.controlType="mat-select",y.ariaLabel="",y.optionSelectionChanges=k.defer(function(){return y.options?w.merge.apply(void 0,y.options.map(function(t){return t.onSelectionChange})):y._ngZone.onStable.asObservable().pipe(d.take(1),f.switchMap(function(){return y.optionSelectionChanges}))}),y.openedChange=new e.EventEmitter,y.onOpen=y._openedStream,y.onClose=y._closedStream,y.selectionChange=new e.EventEmitter,y.change=y.selectionChange,y.valueChange=new e.EventEmitter,y.ngControl&&(y.ngControl.valueAccessor=y),y.tabIndex=parseInt(m)||0,y.id=y.id,y}return Y(o,t),Object.defineProperty(o.prototype,"placeholder",{get:function(){return this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"required",{get:function(){return this._required},set:function(t){this._required=r.coerceBooleanProperty(t),this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"multiple",{get:function(){return this._multiple},set:function(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"compareWith",{get:function(){return this._compareWith},set:function(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"value",{get:function(){return this._value},set:function(t){t!==this._value&&(this.writeValue(t),this._value=t)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t||this._uid,this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"_openedStream",{get:function(){return this.openedChange.pipe(h.filter(function(t){return t}),A.map(function(){}))},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"_closedStream",{get:function(){return this.openedChange.pipe(h.filter(function(t){return!t}),A.map(function(){}))},enumerable:!0,configurable:!0}),o.prototype.ngOnInit=function(){this._selectionModel=new x.SelectionModel(this.multiple,void 0,!1),this.stateChanges.next()},o.prototype.ngAfterContentInit=function(){var t=this;this._initKeyManager(),this.options.changes.pipe(v.startWith(null),N.takeUntil(this._destroy)).subscribe(function(){t._resetOptions(),t._initializeSelection()})},o.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState()},o.prototype.ngOnChanges=function(t){t.disabled&&this.stateChanges.next()},o.prototype.ngOnDestroy=function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()},o.prototype.toggle=function(){this.panelOpen?this.close():this.open()},o.prototype.open=function(){var t=this;!this.disabled&&this.options&&this.options.length&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement)["font-size"]),this._panelOpen=!0,this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(d.take(1)).subscribe(function(){t._triggerFontSize&&t.overlayDir.overlayRef&&t.overlayDir.overlayRef.overlayElement&&(t.overlayDir.overlayRef.overlayElement.style.fontSize=t._triggerFontSize+"px")}))},o.prototype.close=function(){this._panelOpen&&(this._panelOpen=!1,this._changeDetectorRef.markForCheck(),this._onTouched(),this.focus())},o.prototype.writeValue=function(t){this.options&&this._setSelectionByValue(t)},o.prototype.registerOnChange=function(t){this._onChange=t},o.prototype.registerOnTouched=function(t){this._onTouched=t},o.prototype.setDisabledState=function(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()},Object.defineProperty(o.prototype,"panelOpen",{get:function(){return this._panelOpen},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"selected",{get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"triggerValue",{get:function(){if(this.empty)return"";if(this._multiple){var t=this._selectionModel.selected.map(function(t){return t.viewValue});return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue},enumerable:!0,configurable:!0}),o.prototype._isRtl=function(){return!!this._dir&&"rtl"===this._dir.value},o.prototype._handleKeydown=function(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))},o.prototype._handleClosedKeydown=function(t){var e=t.keyCode,n=e===c.DOWN_ARROW||e===c.UP_ARROW;e===c.ENTER||e===c.SPACE||(this.multiple||t.altKey)&&n?(t.preventDefault(),this.open()):this.multiple||this._keyManager.onKeydown(t)},o.prototype._handleOpenKeydown=function(t){var e=t.keyCode;if(e===c.HOME||e===c.END)t.preventDefault(),e===c.HOME?this._keyManager.setFirstItemActive():this._keyManager.setLastItemActive();else if(e!==c.ENTER&&e!==c.SPACE||!this._keyManager.activeItem){var n=e===c.DOWN_ARROW||e===c.UP_ARROW,r=this._keyManager.activeItemIndex;this._keyManager.onKeydown(t),this._multiple&&n&&t.shiftKey&&this._keyManager.activeItem&&this._keyManager.activeItemIndex!==r&&this._keyManager.activeItem._selectViaInteraction()}else t.preventDefault(),this._keyManager.activeItem._selectViaInteraction()},o.prototype._onPanelDone=function(){this.panelOpen?(this._scrollTop=0,this.openedChange.emit(!0)):(this.openedChange.emit(!1),this._panelDoneAnimating=!1,this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck())},o.prototype._onFadeInDone=function(){this._panelDoneAnimating=this.panelOpen,this._changeDetectorRef.markForCheck()},o.prototype._onFocus=function(){this.disabled||(this.focused=!0,this.stateChanges.next())},o.prototype._onBlur=function(){this.disabled||this.panelOpen||(this.focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())},o.prototype._onAttached=function(){var t=this;this.overlayDir.positionChange.pipe(d.take(1)).subscribe(function(){t._changeDetectorRef.detectChanges(),t._calculateOverlayOffsetX(),t.panel.nativeElement.scrollTop=t._scrollTop})},o.prototype._getPanelTheme=function(){return this._parentFormField?"mat-"+this._parentFormField.color:""},Object.defineProperty(o.prototype,"empty",{get:function(){return!this._selectionModel||this._selectionModel.isEmpty()},enumerable:!0,configurable:!0}),o.prototype._initializeSelection=function(){var t=this;Promise.resolve().then(function(){t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value)})},o.prototype._setSelectionByValue=function(t,e){var n=this;if(void 0===e&&(e=!1),this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._clearSelection(),t.forEach(function(t){return n._selectValue(t,e)}),this._sortValues()}else{this._clearSelection();var r=this._selectValue(t,e);r&&this._keyManager.setActiveItem(this.options.toArray().indexOf(r))}this._changeDetectorRef.markForCheck()},o.prototype._selectValue=function(t,n){var r=this;void 0===n&&(n=!1);var i=this.options.find(function(n){try{return null!=n.value&&r._compareWith(n.value,t)}catch(t){return e.isDevMode()&&console.warn(t),!1}});return i&&(n?i._selectViaInteraction():i.select(),this._selectionModel.select(i),this.stateChanges.next()),i},o.prototype._clearSelection=function(t){this._selectionModel.clear(),this.options.forEach(function(e){e!==t&&e.deselect()}),this.stateChanges.next()},o.prototype._initKeyManager=function(){var t=this;this._keyManager=new l.ActiveDescendantKeyManager(this.options).withTypeAhead(),this._keyManager.tabOut.pipe(N.takeUntil(this._destroy)).subscribe(function(){return t.close()}),this._keyManager.change.pipe(N.takeUntil(this._destroy)).subscribe(function(){t._panelOpen&&t.panel?t._scrollActiveOptionIntoView():t._panelOpen||t.multiple||!t._keyManager.activeItem||t._keyManager.activeItem._selectViaInteraction()})},o.prototype._resetOptions=function(){var t=this;this.optionSelectionChanges.pipe(N.takeUntil(w.merge(this._destroy,this.options.changes)),h.filter(function(t){return t.isUserInput})).subscribe(function(e){t._onSelect(e.source),t.multiple||t.close()}),this._setOptionIds()},o.prototype._onSelect=function(t){var e=this._selectionModel.isSelected(t);this.multiple?(this._selectionModel.toggle(t),this.stateChanges.next(),e?t.deselect():t.select(),this._keyManager.setActiveItem(this._getOptionIndex(t)),this._sortValues()):(this._clearSelection(null==t.value?void 0:t),null==t.value?this._propagateChanges(t.value):(this._selectionModel.select(t),this.stateChanges.next())),e!==this._selectionModel.isSelected(t)&&this._propagateChanges()},o.prototype._sortValues=function(){var t=this;this._multiple&&(this._selectionModel.clear(),this.options.forEach(function(e){e.selected&&t._selectionModel.select(e)}),this.stateChanges.next())},o.prototype._propagateChanges=function(t){var e=null;e=this.multiple?this.selected.map(function(t){return t.value}):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new Xi(this,e)),this._changeDetectorRef.markForCheck()},o.prototype._setOptionIds=function(){this._optionIds=this.options.map(function(t){return t.id}).join(" ")},o.prototype._highlightCorrectOption=function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._getOptionIndex(this._selectionModel.selected[0])))},o.prototype._scrollActiveOptionIntoView=function(){var t=this._getItemHeight(),e=this._keyManager.activeItemIndex||0,n=(e+Ht.countGroupLabelsBeforeOption(e,this.options,this.optionGroups))*t,r=this.panel.nativeElement.scrollTop;n<r?this.panel.nativeElement.scrollTop=n:n+t>r+256&&(this.panel.nativeElement.scrollTop=Math.max(0,n-256+t))},o.prototype.focus=function(){this._elementRef.nativeElement.focus()},o.prototype._getOptionIndex=function(t){return this.options.reduce(function(e,n,r){return void 0===e?t===n?r:void 0:e},void 0)},o.prototype._calculateOverlayPosition=function(){var t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),r=e*t-n,i=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);i+=Ht.countGroupLabelsBeforeOption(i,this.options,this.optionGroups);var o=n/2;this._scrollTop=this._calculateOverlayScroll(i,o,r),this._offsetY=this._calculateOverlayOffsetY(i,o,r),this._checkOverlayWithinViewport(r)},o.prototype._calculateOverlayScroll=function(t,e,n){var r=this._getItemHeight(),i=r*t-e+r/2;return Math.min(Math.max(0,i),n)},Object.defineProperty(o.prototype,"_ariaLabel",{get:function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder},enumerable:!0,configurable:!0}),o.prototype._getAriaActiveDescendant=function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null},o.prototype._calculateOverlayOffsetX=function(){var t,e=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),r=this._isRtl(),i=this.multiple?60:32;if(this.multiple)t=44;else{var o=this._selectionModel.selected[0]||this.options.first;t=o&&o.group?32:16}r||(t*=-1);var a=0-(e.left+t-(r?i:0)),s=e.right+t-n.width+(r?0:i);a>0?t+=a+8:s>0&&(t-=s+8),this.overlayDir.offsetX=t,this.overlayDir.overlayRef.updatePosition()},o.prototype._calculateOverlayOffsetY=function(t,e,n){var r,i=this._getItemHeight(),o=(i-this._triggerRect.height)/2,a=Math.floor(256/i);if(0===this._scrollTop)r=t*i;else if(this._scrollTop===n){r=(t-(this._getItemCount()-a))*i+(i-(this._getItemCount()*i-256)%i)}else r=e-i/2;return-1*r-o},o.prototype._checkOverlayWithinViewport=function(t){var e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),r=this._triggerRect.top-8,i=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*e,256)-o-this._triggerRect.height;a>i?this._adjustPanelUp(a,i):o>r?this._adjustPanelDown(o,r,t):this._transformOrigin=this._getOriginBasedOnOption()},o.prototype._adjustPanelUp=function(t,e){var n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")},o.prototype._adjustPanelDown=function(t,e,n){var r=Math.round(t-e);if(this._scrollTop+=r,this._offsetY+=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")},o.prototype._getOriginBasedOnOption=function(){var t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return"50% "+(Math.abs(this._offsetY)-e+t/2)+"px 0px"},o.prototype._getItemCount=function(){return this.options.length+this.optionGroups.length},o.prototype._getItemHeight=function(){return 3*this._triggerFontSize},o.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},o.prototype.onContainerClick=function(){this.focus(),this.open()},Object.defineProperty(o.prototype,"shouldLabelFloat",{get:function(){return this._panelOpen||!this.empty},enumerable:!0,configurable:!0}),o.decorators=[{type:e.Component,args:[{selector:"mat-select",exportAs:"matSelect",template:'<div cdk-overlay-origin class="mat-select-trigger" aria-hidden="true" (click)="toggle()" #origin="cdkOverlayOrigin" #trigger><div class="mat-select-value" [ngSwitch]="empty"><span class="mat-select-placeholder" *ngSwitchCase="true">{{placeholder || \' \'}}</span> <span class="mat-select-value-text" *ngSwitchCase="false" [ngSwitch]="!!customTrigger"><span *ngSwitchDefault>{{triggerValue}}</span><ng-content select="mat-select-trigger" *ngSwitchCase="true"></ng-content></span></div><div class="mat-select-arrow-wrapper"><div class="mat-select-arrow"></div></div></div><ng-template cdk-connected-overlay hasBackdrop backdropClass="cdk-overlay-transparent-backdrop" [scrollStrategy]="_scrollStrategy" [origin]="origin" [open]="panelOpen" [positions]="_positions" [minWidth]="_triggerRect?.width" [offsetY]="_offsetY" (backdropClick)="close()" (attach)="_onAttached()" (detach)="close()"><div #panel class="mat-select-panel {{ _getPanelTheme() }}" [ngClass]="panelClass" [@transformPanel]="multiple ? \'showing-multiple\' : \'showing\'" (@transformPanel.done)="_onPanelDone()" [style.transformOrigin]="_transformOrigin" [class.mat-select-panel-done-animating]="_panelDoneAnimating" [style.font-size.px]="_triggerFontSize"><div class="mat-select-content" [@fadeInContent]="\'showing\'" (@fadeInContent.done)="_onFadeInDone()"><ng-content></ng-content></div></div></ng-template>',styles:[".mat-select{display:inline-block;width:100%;outline:0}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%}.mat-select-panel:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}@media screen and (-ms-high-contrast:active){.mat-select-panel{outline:solid 1px}}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;transition:none}"],inputs:["disabled","disableRipple","tabIndex"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,host:{role:"listbox","[attr.id]":"id","[attr.tabindex]":"tabIndex","[attr.aria-label]":"_ariaLabel","[attr.aria-labelledby]":"ariaLabelledby","[attr.aria-required]":"required.toString()","[attr.aria-disabled]":"disabled.toString()","[attr.aria-invalid]":"errorState","[attr.aria-owns]":"panelOpen ? _optionIds : null","[attr.aria-multiselectable]":"multiple","[attr.aria-describedby]":"_ariaDescribedby || null","[attr.aria-activedescendant]":"_getAriaActiveDescendant()","[class.mat-select-disabled]":"disabled","[class.mat-select-invalid]":"errorState","[class.mat-select-required]":"required",class:"mat-select","(keydown)":"_handleKeydown($event)","(focus)":"_onFocus()","(blur)":"_onBlur()"},animations:[zi.transformPanel,zi.fadeInContent],providers:[{provide:Kt,useExisting:o},{provide:Ut,useExisting:o}]}]}],o.ctorParameters=function(){return[{type:u.ViewportRuler},{type:e.ChangeDetectorRef},{type:e.NgZone},{type:_t},{type:e.ElementRef},{type:n.Directionality,decorators:[{type:e.Optional}]},{type:y.NgForm,decorators:[{type:e.Optional}]},{type:y.FormGroupDirective,decorators:[{type:e.Optional}]},{type:ae,decorators:[{type:e.Optional}]},{type:y.NgControl,decorators:[{type:e.Self},{type:e.Optional}]},{type:void 0,decorators:[{type:e.Attribute,args:["tabindex"]}]},{type:void 0,decorators:[{type:e.Inject,args:[Yi]}]}]},o.propDecorators={trigger:[{type:e.ViewChild,args:["trigger"]}],panel:[{type:e.ViewChild,args:["panel"]}],overlayDir:[{type:e.ViewChild,args:[u.CdkConnectedOverlay]}],options:[{type:e.ContentChildren,args:[Ht,{descendants:!0}]}],optionGroups:[{type:e.ContentChildren,args:[Ft]}],panelClass:[{type:e.Input}],customTrigger:[{type:e.ContentChild,args:[Ji]}],placeholder:[{type:e.Input}],required:[{type:e.Input}],multiple:[{type:e.Input}],compareWith:[{type:e.Input}],value:[{type:e.Input}],ariaLabel:[{type:e.Input,args:["aria-label"]}],ariaLabelledby:[{type:e.Input,args:["aria-labelledby"]}],errorStateMatcher:[{type:e.Input}],id:[{type:e.Input}],openedChange:[{type:e.Output}],_openedStream:[{type:e.Output,args:["opened"]}],_closedStream:[{type:e.Output,args:["closed"]}],onOpen:[{type:e.Output}],onClose:[{type:e.Output}],selectionChange:[{type:e.Output}],change:[{type:e.Output}],valueChange:[{type:e.Output}]},o}(Zi),eo=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule,u.OverlayModule,zt,Z],exports:[se,to,Ji,zt,Z],declarations:[to,Ji],providers:[$i,_t]}]}],t.ctorParameters=function(){return[]},t}(),no={tooltipState:_.trigger("state",[_.state("initial, void, hidden",_.style({transform:"scale(0)"})),_.state("visible",_.style({transform:"scale(1)"})),_.transition("* => visible",_.animate("150ms cubic-bezier(0.0, 0.0, 0.2, 1)")),_.transition("* => hidden",_.animate("150ms cubic-bezier(0.4, 0.0, 1, 1)"))])},ro=20,io="mat-tooltip-panel";function oo(t){return Error('Tooltip position "'+t+'" is invalid.')}var ao=new e.InjectionToken("mat-tooltip-scroll-strategy");function so(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:ro})}}var co={provide:ao,deps:[u.Overlay],useFactory:so},lo=new e.InjectionToken("mat-tooltip-default-options"),uo=function(){function t(t,e,n,r,i,o,a,s,c,l,u){var p=this;this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=r,this._ngZone=i,this._platform=o,this._ariaDescriber=a,this._focusMonitor=s,this._scrollStrategy=c,this._dir=l,this._defaultOptions=u,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions?this._defaultOptions.showDelay:0,this.hideDelay=this._defaultOptions?this._defaultOptions.hideDelay:0,this._message="",this._manualListeners=new Map;var h=e.nativeElement;o.IOS?"INPUT"!==h.nodeName&&"TEXTAREA"!==h.nodeName||(h.style.webkitUserSelect=h.style.userSelect=""):(this._manualListeners.set("mouseenter",function(){return p.show()}),this._manualListeners.set("mouseleave",function(){return p.hide()}),this._manualListeners.forEach(function(t,n){return e.nativeElement.addEventListener(n,t)})),s.monitor(h,!1).subscribe(function(t){t?"program"!==t&&i.run(function(){return p.show()}):i.run(function(){return p.hide(0)})})}return Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(t){t!==this._position&&(this._position=t,this._tooltipInstance&&this._disposeTooltip())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=r.coerceBooleanProperty(t),this._disabled&&this.hide(0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_positionDeprecated",{get:function(){return this._position},set:function(t){this._position=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){return this._message},set:function(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?(""+t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._updateTooltipMessage(),this._ariaDescriber.describe(this._elementRef.nativeElement,this.message))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltipClass",{get:function(){return this._tooltipClass},set:function(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){var t=this;this._tooltipInstance&&this._disposeTooltip(),this._platform.IOS||(this._manualListeners.forEach(function(e,n){t._elementRef.nativeElement.removeEventListener(n,e)}),this._manualListeners.clear()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.message),this._focusMonitor.stopMonitoring(this._elementRef.nativeElement)},t.prototype.show=function(t){void 0===t&&(t=this.showDelay),!this.disabled&&this.message&&(this._tooltipInstance||this._createTooltip(),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(this._position,t))},t.prototype.hide=function(t){void 0===t&&(t=this.hideDelay),this._tooltipInstance&&this._tooltipInstance.hide(t)},t.prototype.toggle=function(){this._isTooltipVisible()?this.hide():this.show()},t.prototype._isTooltipVisible=function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()},t.prototype._handleKeydown=function(t){this._isTooltipVisible()&&t.keyCode===c.ESCAPE&&(t.stopPropagation(),this.hide(0))},t.prototype._handleTouchend=function(){this.hide(this._defaultOptions?this._defaultOptions.touchendHideDelay:1500)},t.prototype._createTooltip=function(){var t=this,e=this._createOverlay(),n=new p.ComponentPortal(po,this._viewContainerRef);this._tooltipInstance=e.attach(n).instance,w.merge(this._tooltipInstance.afterHidden(),e.detachments()).subscribe(function(){t._tooltipInstance&&t._disposeTooltip()})},t.prototype._createOverlay=function(){var t=this,e=this._getOrigin(),n=this._getOverlayPosition(),r=this._overlay.position().connectedTo(this._elementRef,e.main,n.main).withFallbackPosition(e.fallback,n.fallback),i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef);r.withScrollableContainers(i),r.onPositionChange.subscribe(function(e){t._tooltipInstance&&(e.scrollableViewProperties.isOverlayClipped&&t._tooltipInstance.isVisible()?t._ngZone.run(function(){return t.hide(0)}):t._tooltipInstance._setTransformOrigin(e.connectionPair))});var o=new u.OverlayConfig({direction:this._dir?this._dir.value:"ltr",positionStrategy:r,panelClass:io,scrollStrategy:this._scrollStrategy()});return this._overlayRef=this._overlay.create(o),this._overlayRef},t.prototype._disposeTooltip=function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._tooltipInstance=null},t.prototype._getOrigin=function(){var t,e=!this._dir||"ltr"==this._dir.value;if("above"==this.position||"below"==this.position)t={originX:"center",originY:"above"==this.position?"top":"bottom"};else if("left"==this.position||"before"==this.position&&e||"after"==this.position&&!e)t={originX:"start",originY:"center"};else{if(!("right"==this.position||"after"==this.position&&e||"before"==this.position&&!e))throw oo(this.position);t={originX:"end",originY:"center"}}var n=this._invertPosition(t.originX,t.originY);return{main:t,fallback:{originX:n.x,originY:n.y}}},t.prototype._getOverlayPosition=function(){var t,e=!this._dir||"ltr"==this._dir.value;if("above"==this.position)t={overlayX:"center",overlayY:"bottom"};else if("below"==this.position)t={overlayX:"center",overlayY:"top"};else if("left"==this.position||"before"==this.position&&e||"after"==this.position&&!e)t={overlayX:"end",overlayY:"center"};else{if(!("right"==this.position||"after"==this.position&&e||"before"==this.position&&!e))throw oo(this.position);t={overlayX:"start",overlayY:"center"}}var n=this._invertPosition(t.overlayX,t.overlayY);return{main:t,fallback:{overlayX:n.x,overlayY:n.y}}},t.prototype._updateTooltipMessage=function(){var t=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(d.take(1)).subscribe(function(){t._tooltipInstance&&t._overlayRef.updatePosition()}))},t.prototype._setTooltipClass=function(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())},t.prototype._invertPosition=function(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}},t.decorators=[{type:e.Directive,args:[{selector:"[matTooltip]",exportAs:"matTooltip",host:{"(longpress)":"show()","(keydown)":"_handleKeydown($event)","(touchend)":"_handleTouchend()"}}]}],t.ctorParameters=function(){return[{type:u.Overlay},{type:e.ElementRef},{type:F.ScrollDispatcher},{type:e.ViewContainerRef},{type:e.NgZone},{type:s.Platform},{type:l.AriaDescriber},{type:l.FocusMonitor},{type:void 0,decorators:[{type:e.Inject,args:[ao]}]},{type:n.Directionality,decorators:[{type:e.Optional}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[lo]}]}]},t.propDecorators={position:[{type:e.Input,args:["matTooltipPosition"]}],disabled:[{type:e.Input,args:["matTooltipDisabled"]}],_positionDeprecated:[{type:e.Input,args:["tooltip-position"]}],showDelay:[{type:e.Input,args:["matTooltipShowDelay"]}],hideDelay:[{type:e.Input,args:["matTooltipHideDelay"]}],message:[{type:e.Input,args:["matTooltip"]}],tooltipClass:[{type:e.Input,args:["matTooltipClass"]}]},t}(),po=function(){function t(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._transformOrigin="bottom",this._onHide=new i.Subject}return t.prototype.show=function(t,e){var n=this;this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._position=t,this._showTimeoutId=setTimeout(function(){n._visibility="visible",n._markForCheck()},e)},t.prototype.hide=function(t){var e=this;this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){e._visibility="hidden",e._markForCheck()},t)},t.prototype.afterHidden=function(){return this._onHide.asObservable()},t.prototype.isVisible=function(){return"visible"===this._visibility},t.prototype._setTransformOrigin=function(t){var e="X"==("above"===this._position||"below"===this._position?"Y":"X")?t.overlayX:t.overlayY;if("top"===e||"bottom"===e)this._transformOrigin=e;else if("start"===e)this._transformOrigin="left";else{if("end"!==e)throw oo(this._position);this._transformOrigin="right"}},t.prototype._animationStart=function(){this._closeOnInteraction=!1},t.prototype._animationDone=function(t){var e=this,n=t.toState;"hidden"!==n||this.isVisible()||this._onHide.next(),"visible"!==n&&"hidden"!==n||Promise.resolve().then(function(){return e._closeOnInteraction=!0})},t.prototype._handleBodyInteraction=function(){this._closeOnInteraction&&this.hide(0)},t.prototype._markForCheck=function(){this._changeDetectorRef.markForCheck()},t.decorators=[{type:e.Component,args:[{selector:"mat-tooltip-component",template:'<div class="mat-tooltip" [ngClass]="tooltipClass" [style.transform-origin]="_transformOrigin" [@state]="_visibility" (@state.start)="_animationStart()" (@state.done)="_animationDone($event)">{{message}}</div>',styles:[".mat-tooltip-panel{pointer-events:none!important}.mat-tooltip{color:#fff;border-radius:2px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px}@media screen and (-ms-high-contrast:active){.mat-tooltip{outline:solid 1px}}"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,animations:[no.tooltipState],host:{"[style.zoom]":'_visibility === "visible" ? 1 : null',"(body:click)":"this._handleBodyInteraction()","aria-hidden":"true"}}]}],t.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]},t}(),ho={showDelay:0,hideDelay:0,touchendHideDelay:1500},fo=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule,u.OverlayModule,Z,s.PlatformModule,l.A11yModule],exports:[uo,po,Z],declarations:[uo,po],entryComponents:[po],providers:[co,l.ARIA_DESCRIBER_PROVIDER,{provide:lo,useValue:ho}]}]}],t.ctorParameters=function(){return[]},t}(),mo=function(){function t(){this.changes=new i.Subject,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.getRangeLabel=function(t,e,n){if(0==n||0==e)return"0 of "+n;var r=t*e;return r+1+" - "+(r<(n=Math.max(n,0))?Math.min(r+e,n):r+e)+" of "+n}}return t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}();function go(t){return t||new mo}var yo={provide:mo,deps:[[new e.Optional,new e.SkipSelf,mo]],useFactory:go},vo=function(){return function(){}}(),bo=function(){function t(t,n){var r=this;this._intl=t,this._changeDetectorRef=n,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this.page=new e.EventEmitter,this._intlChanges=t.changes.subscribe(function(){return r._changeDetectorRef.markForCheck()})}return Object.defineProperty(t.prototype,"pageIndex",{get:function(){return this._pageIndex},set:function(t){this._pageIndex=r.coerceNumberProperty(t),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},set:function(t){this._length=r.coerceNumberProperty(t),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageSize",{get:function(){return this._pageSize},set:function(t){this._pageSize=r.coerceNumberProperty(t),this._updateDisplayedPageSizeOptions()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageSizeOptions",{get:function(){return this._pageSizeOptions},set:function(t){this._pageSizeOptions=(t||[]).map(function(t){return r.coerceNumberProperty(t)}),this._updateDisplayedPageSizeOptions()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._initialized=!0,this._updateDisplayedPageSizeOptions()},t.prototype.ngOnDestroy=function(){this._intlChanges.unsubscribe()},t.prototype.nextPage=function(){this.hasNextPage()&&(this.pageIndex++,this._emitPageEvent())},t.prototype.previousPage=function(){this.hasPreviousPage()&&(this.pageIndex--,this._emitPageEvent())},t.prototype.hasPreviousPage=function(){return this.pageIndex>=1&&0!=this.pageSize},t.prototype.hasNextPage=function(){var t=Math.ceil(this.length/this.pageSize)-1;return this.pageIndex<t&&0!=this.pageSize},t.prototype._changePageSize=function(t){var e=this.pageIndex*this.pageSize;this.pageIndex=Math.floor(e/t)||0,this.pageSize=t,this._emitPageEvent()},t.prototype._updateDisplayedPageSizeOptions=function(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1==this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort(function(t,e){return t-e}),this._changeDetectorRef.markForCheck())},t.prototype._emitPageEvent=function(){this.page.next({pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})},t.decorators=[{type:e.Component,args:[{selector:"mat-paginator",exportAs:"matPaginator",template:'<div class="mat-paginator-container"><div class="mat-paginator-page-size"><div class="mat-paginator-page-size-label">{{_intl.itemsPerPageLabel}}</div><mat-form-field *ngIf="_displayedPageSizeOptions.length > 1" class="mat-paginator-page-size-select"><mat-select [value]="pageSize" [aria-label]="_intl.itemsPerPageLabel" (change)="_changePageSize($event.value)"><mat-option *ngFor="let pageSizeOption of _displayedPageSizeOptions" [value]="pageSizeOption">{{pageSizeOption}}</mat-option></mat-select></mat-form-field><div *ngIf="_displayedPageSizeOptions.length <= 1">{{pageSize}}</div></div><div class="mat-paginator-range-actions"><div class="mat-paginator-range-label">{{_intl.getRangeLabel(pageIndex, pageSize, length)}}</div><button mat-icon-button type="button" class="mat-paginator-navigation-previous" (click)="previousPage()" [attr.aria-label]="_intl.previousPageLabel" [matTooltip]="_intl.previousPageLabel" [matTooltipPosition]="\'above\'" [disabled]="!hasPreviousPage()"><div class="mat-paginator-increment"></div></button> <button mat-icon-button type="button" class="mat-paginator-navigation-next" (click)="nextPage()" [attr.aria-label]="_intl.nextPageLabel" [matTooltip]="_intl.nextPageLabel" [matTooltipPosition]="\'above\'" [disabled]="!hasNextPage()"><div class="mat-paginator-decrement"></div></button></div></div>',styles:[".mat-paginator{display:block}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;min-height:56px;padding:0 8px;flex-wrap:wrap-reverse}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-increment-button+.mat-paginator-increment-button{margin:0 0 0 8px}[dir=rtl] .mat-paginator-increment-button+.mat-paginator-increment-button{margin:0 8px 0 0}.mat-paginator-decrement,.mat-paginator-increment{width:8px;height:8px}.mat-paginator-decrement,[dir=rtl] .mat-paginator-increment{transform:rotate(45deg)}.mat-paginator-increment,[dir=rtl] .mat-paginator-decrement{transform:rotate(225deg)}.mat-paginator-decrement{margin-left:12px}[dir=rtl] .mat-paginator-decrement{margin-right:12px}.mat-paginator-increment{margin-left:16px}[dir=rtl] .mat-paginator-increment{margin-right:16px}.mat-paginator-range-actions{display:flex;align-items:center;min-height:48px}"],host:{class:"mat-paginator"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],t.ctorParameters=function(){return[{type:mo},{type:e.ChangeDetectorRef}]},t.propDecorators={pageIndex:[{type:e.Input}],length:[{type:e.Input}],pageSize:[{type:e.Input}],pageSizeOptions:[{type:e.Input}],page:[{type:e.Output}]},t}(),_o=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule,Te,eo,fo],exports:[bo],declarations:[bo],providers:[yo]}]}],t.ctorParameters=function(){return[]},t}(),wo=function(){function t(){this.color="primary",this._value=0,this._bufferValue=0,this.mode="determinate"}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value=Co(t||0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bufferValue",{get:function(){return this._bufferValue},set:function(t){this._bufferValue=Co(t||0)},enumerable:!0,configurable:!0}),t.prototype._primaryTransform=function(){return{transform:"scaleX("+this.value/100+")"}},t.prototype._bufferTransform=function(){if("buffer"==this.mode)return{transform:"scaleX("+this.bufferValue/100+")"}},t.decorators=[{type:e.Component,args:[{selector:"mat-progress-bar",exportAs:"matProgressBar",host:{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","[attr.aria-valuenow]":"value","[attr.mode]":"mode","[class.mat-primary]":'color == "primary"',"[class.mat-accent]":'color == "accent"',"[class.mat-warn]":'color == "warn"',class:"mat-progress-bar"},template:'<div class="mat-progress-bar-background mat-progress-bar-element"></div><div class="mat-progress-bar-buffer mat-progress-bar-element" [ngStyle]="_bufferTransform()"></div><div class="mat-progress-bar-primary mat-progress-bar-fill mat-progress-bar-element" [ngStyle]="_primaryTransform()"></div><div class="mat-progress-bar-secondary mat-progress-bar-fill mat-progress-bar-element"></div>',styles:[".mat-progress-bar{display:block;height:5px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{background-repeat:repeat-x;background-size:10px 4px;display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:'';display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2s infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2s infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2s infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2s infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(.5,0,.70173,.49582);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(.30244,.38135,.55,.95635);transform:translateX(83.67142%)}100%{transform:translateX(200.61106%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(.08)}36.65%{animation-timing-function:cubic-bezier(.33473,.12482,.78584,1);transform:scaleX(.08)}69.15%{animation-timing-function:cubic-bezier(.06,.11,.6,1);transform:scaleX(.66148)}100%{transform:scaleX(.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(.15,0,.51506,.40969);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(.31033,.28406,.8,.73371);transform:translateX(37.65191%)}48.35%{animation-timing-function:cubic-bezier(.4,.62704,.6,.90203);transform:translateX(84.38617%)}100%{transform:translateX(160.27778%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(.15,0,.51506,.40969);transform:scaleX(.08)}19.15%{animation-timing-function:cubic-bezier(.31033,.28406,.8,.73371);transform:scaleX(.4571)}44.15%{animation-timing-function:cubic-bezier(.4,.62704,.6,.90203);transform:scaleX(.72796)}100%{transform:scaleX(.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-10px)}}"],changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],t.ctorParameters=function(){return[]},t.propDecorators={color:[{type:e.Input}],value:[{type:e.Input}],bufferValue:[{type:e.Input}],mode:[{type:e.Input}]},t}();function Co(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=100),Math.max(e,Math.min(n,t))}var xo=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule,Z],exports:[wo,Z],declarations:[wo]}]}],t.ctorParameters=function(){return[]},t}(),Eo=100,So=function(){return function(t){this._elementRef=t}}(),ko=tt(So,"primary"),Oo=function(t){function n(e,n,r){var i=t.call(this,e)||this;i._elementRef=e,i._document=r,i._value=0,i._fallbackAnimation=!1,i._elementSize=Eo,i._diameter=Eo,i.mode="determinate",i._fallbackAnimation=n.EDGE||n.TRIDENT;var o="mat-progress-spinner-indeterminate"+(i._fallbackAnimation?"-fallback":"")+"-animation";return e.nativeElement.classList.add(o),i}return Y(n,t),Object.defineProperty(n.prototype,"diameter",{get:function(){return this._diameter},set:function(t){this._diameter=r.coerceNumberProperty(t),this._fallbackAnimation||n.diameters.has(this._diameter)||this._attachStyleNode()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"strokeWidth",{get:function(){return this._strokeWidth||this.diameter/10},set:function(t){this._strokeWidth=r.coerceNumberProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return"determinate"===this.mode?this._value:0},set:function(t){this._value=Math.max(0,Math.min(100,r.coerceNumberProperty(t)))},enumerable:!0,configurable:!0}),n.prototype.ngOnChanges=function(t){(t.strokeWidth||t.diameter)&&(this._elementSize=this._diameter+Math.max(this.strokeWidth-10,0))},Object.defineProperty(n.prototype,"_circleRadius",{get:function(){return(this.diameter-10)/2},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_viewBox",{get:function(){var t=2*this._circleRadius+this.strokeWidth;return"0 0 "+t+" "+t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_strokeCircumference",{get:function(){return 2*Math.PI*this._circleRadius},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_strokeDashOffset",{get:function(){return"determinate"===this.mode?this._strokeCircumference*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._strokeCircumference:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_circleStrokeWidth",{get:function(){return this.strokeWidth/this._elementSize*100},enumerable:!0,configurable:!0}),n.prototype._attachStyleNode=function(){var t=n.styleTag;t||(t=this._document.createElement("style"),this._document.head.appendChild(t),n.styleTag=t),t&&t.sheet&&t.sheet.insertRule(this._getAnimationText(),0),n.diameters.add(this.diameter)},n.prototype._getAnimationText=function(){return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n    0%      { stroke-dashoffset: START_VALUE;  transform: rotate(0); }\n    12.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(0); }\n    12.51%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(72.5deg); }\n    25%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(72.5deg); }\n\n    25.1%   { stroke-dashoffset: START_VALUE;  transform: rotate(270deg); }\n    37.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(270deg); }\n    37.51%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(161.5deg); }\n    50%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(161.5deg); }\n\n    50.01%  { stroke-dashoffset: START_VALUE;  transform: rotate(180deg); }\n    62.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(180deg); }\n    62.51%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(251.5deg); }\n    75%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(251.5deg); }\n\n    75.01%  { stroke-dashoffset: START_VALUE;  transform: rotate(90deg); }\n    87.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(90deg); }\n    87.51%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(341.5deg); }\n    100%    { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(341.5deg); }\n  }\n".replace(/START_VALUE/g,""+.95*this._strokeCircumference).replace(/END_VALUE/g,""+.2*this._strokeCircumference).replace(/DIAMETER/g,""+this.diameter)},n.diameters=new Set([Eo]),n.styleTag=null,n.decorators=[{type:e.Component,args:[{selector:"mat-progress-spinner",exportAs:"matProgressSpinner",host:{role:"progressbar",class:"mat-progress-spinner","[style.width.px]":"_elementSize","[style.height.px]":"_elementSize","[attr.aria-valuemin]":'mode === "determinate" ? 0 : null',"[attr.aria-valuemax]":'mode === "determinate" ? 100 : null',"[attr.aria-valuenow]":"value","[attr.mode]":"mode"},inputs:["color"],template:'<svg [style.width.px]="_elementSize" [style.height.px]="_elementSize" [attr.viewBox]="_viewBox" preserveAspectRatio="xMidYMid meet" focusable="false"><circle cx="50%" cy="50%" [attr.r]="_circleRadius" [style.animation-name]="\'mat-progress-spinner-stroke-rotate-\' + diameter" [style.stroke-dashoffset.px]="_strokeDashOffset" [style.stroke-dasharray.px]="_strokeCircumference" [style.stroke-width.%]="_circleStrokeWidth"></circle></svg>',styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2s linear infinite}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4s;animation-timing-function:cubic-bezier(.35,0,.25,1);animation-iteration-count:infinite}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10s cubic-bezier(.87,.03,.33,1) infinite}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.60617px;transform:rotate(0)}12.5%{stroke-dashoffset:56.54867px;transform:rotate(0)}12.51%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(72.5deg)}25.1%{stroke-dashoffset:268.60617px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.54867px;transform:rotate(270deg)}37.51%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(161.5deg)}50.01%{stroke-dashoffset:268.60617px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.54867px;transform:rotate(180deg)}62.51%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(251.5deg)}75.01%{stroke-dashoffset:268.60617px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.54867px;transform:rotate(90deg)}87.51%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}"],changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],n.ctorParameters=function(){return[{type:e.ElementRef},{type:s.Platform},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[a.DOCUMENT]}]}]},n.propDecorators={diameter:[{type:e.Input}],strokeWidth:[{type:e.Input}],mode:[{type:e.Input}],value:[{type:e.Input}]},n}(ko),Po=function(t){function n(e,n,r){var i=t.call(this,e,n,r)||this;return i.mode="indeterminate",i}return Y(n,t),n.decorators=[{type:e.Component,args:[{selector:"mat-spinner",host:{role:"progressbar",mode:"indeterminate",class:"mat-spinner mat-progress-spinner","[style.width.px]":"_elementSize","[style.height.px]":"_elementSize"},inputs:["color"],template:'<svg [style.width.px]="_elementSize" [style.height.px]="_elementSize" [attr.viewBox]="_viewBox" preserveAspectRatio="xMidYMid meet" focusable="false"><circle cx="50%" cy="50%" [attr.r]="_circleRadius" [style.animation-name]="\'mat-progress-spinner-stroke-rotate-\' + diameter" [style.stroke-dashoffset.px]="_strokeDashOffset" [style.stroke-dasharray.px]="_strokeCircumference" [style.stroke-width.%]="_circleStrokeWidth"></circle></svg>',styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2s linear infinite}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4s;animation-timing-function:cubic-bezier(.35,0,.25,1);animation-iteration-count:infinite}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10s cubic-bezier(.87,.03,.33,1) infinite}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.60617px;transform:rotate(0)}12.5%{stroke-dashoffset:56.54867px;transform:rotate(0)}12.51%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(72.5deg)}25.1%{stroke-dashoffset:268.60617px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.54867px;transform:rotate(270deg)}37.51%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(161.5deg)}50.01%{stroke-dashoffset:268.60617px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.54867px;transform:rotate(180deg)}62.51%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(251.5deg)}75.01%{stroke-dashoffset:268.60617px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.54867px;transform:rotate(90deg)}87.51%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}"],changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],n.ctorParameters=function(){return[{type:e.ElementRef},{type:s.Platform},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[a.DOCUMENT]}]}]},n}(Oo),Ao=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[Z,s.PlatformModule],exports:[Oo,Po,Z],declarations:[Oo,Po]}]}],t.ctorParameters=function(){return[]},t}(),To=0,Mo={provide:y.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return No}),multi:!0},Io=function(){return function(){}}(),Ro=function(){return function(){}}(),Do=J(Ro),No=function(t){function n(n){var r=t.call(this)||this;return r._changeDetector=n,r._value=null,r._name="mat-radio-group-"+To++,r._selected=null,r._isInitialized=!1,r._labelPosition="after",r._disabled=!1,r._required=!1,r._controlValueAccessorChangeFn=function(){},r.onTouched=function(){},r.change=new e.EventEmitter,r}return Y(n,t),Object.defineProperty(n.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t,this._updateRadioButtonNames()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"align",{get:function(){return"after"==this.labelPosition?"start":"end"},set:function(t){this.labelPosition="start"==t?"after":"before"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"labelPosition",{get:function(){return this._labelPosition},set:function(t){this._labelPosition="before"==t?"before":"after",this._markRadiosForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this._value},set:function(t){this._value!=t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())},enumerable:!0,configurable:!0}),n.prototype._checkSelectedRadioButton=function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)},Object.defineProperty(n.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=r.coerceBooleanProperty(t),this._markRadiosForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"required",{get:function(){return this._required},set:function(t){this._required=r.coerceBooleanProperty(t),this._markRadiosForCheck()},enumerable:!0,configurable:!0}),n.prototype.ngAfterContentInit=function(){this._isInitialized=!0},n.prototype._touch=function(){this.onTouched&&this.onTouched()},n.prototype._updateRadioButtonNames=function(){var t=this;this._radios&&this._radios.forEach(function(e){e.name=t.name})},n.prototype._updateSelectedRadioFromValue=function(){var t=this,e=null!=this._selected&&this._selected.value==this._value;null==this._radios||e||(this._selected=null,this._radios.forEach(function(e){e.checked=t.value==e.value,e.checked&&(t._selected=e)}))},n.prototype._emitChangeEvent=function(){if(this._isInitialized){var t=new Io;t.source=this._selected,t.value=this._value,this.change.emit(t)}},n.prototype._markRadiosForCheck=function(){this._radios&&this._radios.forEach(function(t){return t._markForCheck()})},n.prototype.writeValue=function(t){this.value=t,this._changeDetector.markForCheck()},n.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},n.prototype.registerOnTouched=function(t){this.onTouched=t},n.prototype.setDisabledState=function(t){this.disabled=t,this._changeDetector.markForCheck()},n.decorators=[{type:e.Directive,args:[{selector:"mat-radio-group",exportAs:"matRadioGroup",providers:[Mo],host:{role:"radiogroup",class:"mat-radio-group"},inputs:["disabled"]}]}],n.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]},n.propDecorators={change:[{type:e.Output}],_radios:[{type:e.ContentChildren,args:[e.forwardRef(function(){return Fo}),{descendants:!0}]}],name:[{type:e.Input}],align:[{type:e.Input}],labelPosition:[{type:e.Input}],value:[{type:e.Input}],selected:[{type:e.Input}],disabled:[{type:e.Input}],required:[{type:e.Input}]},n}(Do),Lo=function(){return function(t){this._elementRef=t}}(),jo=tt(et(Lo),"accent"),Fo=function(t){function n(n,r,i,o,a){var s=t.call(this,r)||this;return s._changeDetector=i,s._focusMonitor=o,s._radioDispatcher=a,s._uniqueId="mat-radio-"+ ++To,s.id=s._uniqueId,s.change=new e.EventEmitter,s._checked=!1,s._value=null,s._rippleConfig={centered:!0,radius:23,speedFactor:1.5},s._removeUniqueSelectionListener=function(){},s.radioGroup=n,s._removeUniqueSelectionListener=a.listen(function(t,e){t!=s.id&&e==s.name&&(s.checked=!1)}),s}return Y(n,t),Object.defineProperty(n.prototype,"checked",{get:function(){return this._checked},set:function(t){var e=r.coerceBooleanProperty(t);this._checked!=e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!=this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value==this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this._value},set:function(t){this._value!=t&&(this._value=t,null!=this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value==t),this.checked&&(this.radioGroup.selected=this)))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"align",{get:function(){return"after"==this.labelPosition?"start":"end"},set:function(t){this.labelPosition="start"==t?"after":"before"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"labelPosition",{get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(t){this._labelPosition=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"disabled",{get:function(){return this._disabled||null!=this.radioGroup&&this.radioGroup.disabled},set:function(t){this._disabled=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"required",{get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(t){this._required=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"inputId",{get:function(){return(this.id||this._uniqueId)+"-input"},enumerable:!0,configurable:!0}),n.prototype.focus=function(){this._focusMonitor.focusVia(this._inputElement.nativeElement,"keyboard")},n.prototype._markForCheck=function(){this._changeDetector.markForCheck()},n.prototype.ngOnInit=function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)},n.prototype.ngAfterViewInit=function(){var t=this;this._focusMonitor.monitor(this._inputElement.nativeElement,!1).subscribe(function(e){return t._onInputFocusChange(e)})},n.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._inputElement.nativeElement),this._removeUniqueSelectionListener()},n.prototype._emitChangeEvent=function(){var t=new Io;t.source=this,t.value=this._value,this.change.emit(t)},n.prototype._isRippleDisabled=function(){return this.disableRipple||this.disabled},n.prototype._onInputClick=function(t){t.stopPropagation()},n.prototype._onInputChange=function(t){t.stopPropagation();var e=this.radioGroup&&this.value!=this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),this.radioGroup._touch(),e&&this.radioGroup._emitChangeEvent())},n.prototype._onInputFocusChange=function(t){this._focusRipple||"keyboard"!==t?t||(this.radioGroup&&this.radioGroup._touch(),this._focusRipple&&(this._focusRipple.fadeOut(),this._focusRipple=null)):this._focusRipple=this._ripple.launch(0,0,K({persistent:!0},this._rippleConfig))},n.decorators=[{type:e.Component,args:[{selector:"mat-radio-button",template:'<label [attr.for]="inputId" class="mat-radio-label" #label><div class="mat-radio-container"><div class="mat-radio-outer-circle"></div><div class="mat-radio-inner-circle"></div><div mat-ripple class="mat-radio-ripple" [matRippleTrigger]="label" [matRippleDisabled]="_isRippleDisabled()" [matRippleCentered]="_rippleConfig.centered" [matRippleRadius]="_rippleConfig.radius" [matRippleSpeedFactor]="_rippleConfig.speedFactor"></div></div><input #input class="mat-radio-input cdk-visually-hidden" type="radio" [id]="inputId" [checked]="checked" [disabled]="disabled" [attr.name]="name" [required]="required" [attr.aria-label]="ariaLabel" [attr.aria-labelledby]="ariaLabelledby" (change)="_onInputChange($event)" (click)="_onInputClick($event)"><div class="mat-radio-label-content" [class.mat-radio-label-before]="labelPosition == \'before\'"><span style="display:none">&nbsp;</span><ng-content></ng-content></div></label>',styles:[".mat-radio-button{display:inline-block}.mat-radio-label{cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(.001)}.mat-radio-checked .mat-radio-inner-circle{transform:scale(.5)}.mat-radio-label-content{display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-ripple{position:absolute;left:-15px;top:-15px;height:50px;width:50px;z-index:1;pointer-events:none}"],inputs:["color","disableRipple"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,exportAs:"matRadioButton",host:{class:"mat-radio-button","[class.mat-radio-checked]":"checked","[class.mat-radio-disabled]":"disabled","[attr.id]":"id","(focus)":"_inputElement.nativeElement.focus()"},changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[{type:No,decorators:[{type:e.Optional}]},{type:e.ElementRef},{type:e.ChangeDetectorRef},{type:l.FocusMonitor},{type:x.UniqueSelectionDispatcher}]},n.propDecorators={id:[{type:e.Input}],name:[{type:e.Input}],ariaLabel:[{type:e.Input,args:["aria-label"]}],ariaLabelledby:[{type:e.Input,args:["aria-labelledby"]}],checked:[{type:e.Input}],value:[{type:e.Input}],align:[{type:e.Input}],labelPosition:[{type:e.Input}],disabled:[{type:e.Input}],required:[{type:e.Input}],change:[{type:e.Output}],_ripple:[{type:e.ViewChild,args:[Mt]}],_inputElement:[{type:e.ViewChild,args:["input"]}]},n}(jo),Vo=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule,It,Z,l.A11yModule],exports:[No,Fo,Z],providers:[x.UNIQUE_SELECTION_DISPATCHER_PROVIDER],declarations:[No,Fo]}]}],t.ctorParameters=function(){return[]},t}(),Bo={transformDrawer:_.trigger("transform",[_.state("open, open-instant",_.style({transform:"translate3d(0, 0, 0)",visibility:"visible"})),_.state("void",_.style({visibility:"hidden"})),_.transition("void => open-instant",_.animate("0ms")),_.transition("void <=> open, open-instant => void",_.animate("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function Uo(t){throw Error("A drawer was already declared for 'position=\""+t+"\"'")}var Ho=function(){return function(t,e){this.type=t,this.animationFinished=e}}(),zo=new e.InjectionToken("MAT_DRAWER_DEFAULT_AUTOSIZE"),Go=function(){function t(t,e){this._changeDetectorRef=t,this._container=e,this._margins={left:null,right:null}}return t.prototype.ngAfterContentInit=function(){var t=this;this._container._contentMargins.subscribe(function(e){t._margins=e,t._changeDetectorRef.markForCheck()})},t.decorators=[{type:e.Component,args:[{selector:"mat-drawer-content",template:"<ng-content></ng-content>",host:{class:"mat-drawer-content","[style.margin-left.px]":"_margins.left","[style.margin-right.px]":"_margins.right"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],t.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:qo,decorators:[{type:e.Inject,args:[e.forwardRef(function(){return qo})]}]}]},t}(),Wo=function(){function t(t,n,r,o,a){var s=this;this._elementRef=t,this._focusTrapFactory=n,this._focusMonitor=r,this._platform=o,this._doc=a,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new e.EventEmitter,this._animationState="void",this.openedChange=new e.EventEmitter(!0),this.onOpen=this._openedStream,this.onClose=this._closedStream,this.onPositionChanged=new e.EventEmitter,this.onAlignChanged=new e.EventEmitter,this._modeChanged=new i.Subject,this.openedChange.subscribe(function(t){t?(s._doc&&(s._elementFocusedBeforeDrawerWasOpened=s._doc.activeElement),s._isFocusTrapEnabled&&s._focusTrap&&s._trapFocus()):s._restoreFocus()})}return Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onAlignChanged.emit(),this.onPositionChanged.emit())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"align",{get:function(){return this.position},set:function(t){this.position=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this._mode},set:function(t){this._mode=t,this._modeChanged.next()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableClose",{get:function(){return this._disableClose},set:function(t){this._disableClose=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_openedStream",{get:function(){return this.openedChange.pipe(h.filter(function(t){return t}),A.map(function(){}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"openedStart",{get:function(){return this._animationStarted.pipe(h.filter(function(t){return t.fromState!==t.toState&&0===t.toState.indexOf("open")}),A.map(function(){}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_closedStream",{get:function(){return this.openedChange.pipe(h.filter(function(t){return!t}),A.map(function(){}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"closedStart",{get:function(){return this._animationStarted.pipe(h.filter(function(t){return t.fromState!==t.toState&&"void"===t.toState}),A.map(function(){}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_isFocusTrapEnabled",{get:function(){return this.opened&&"side"!==this.mode},enumerable:!0,configurable:!0}),t.prototype._trapFocus=function(){var t=this;this._focusTrap.focusInitialElementWhenReady().then(function(e){e||"function"!=typeof t._elementRef.nativeElement.focus||t._elementRef.nativeElement.focus()})},t.prototype._restoreFocus=function(){var t=this._doc&&this._doc.activeElement;t&&this._elementRef.nativeElement.contains(t)&&(this._elementFocusedBeforeDrawerWasOpened instanceof HTMLElement?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null},t.prototype.ngAfterContentInit=function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._focusTrap.enabled=this._isFocusTrapEnabled},t.prototype.ngAfterContentChecked=function(){this._platform.isBrowser&&(this._enableAnimations=!0)},t.prototype.ngOnDestroy=function(){this._focusTrap&&this._focusTrap.destroy()},Object.defineProperty(t.prototype,"opened",{get:function(){return this._opened},set:function(t){this.toggle(r.coerceBooleanProperty(t))},enumerable:!0,configurable:!0}),t.prototype.open=function(t){return this.toggle(!0,t)},t.prototype.close=function(){return this.toggle(!1)},t.prototype.toggle=function(t,e){var n=this;return void 0===t&&(t=!this.opened),void 0===e&&(e="program"),this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=e):(this._animationState="void",this._restoreFocus()),this._focusTrap&&(this._focusTrap.enabled=this._isFocusTrapEnabled),new Promise(function(t){n.openedChange.pipe(d.take(1)).subscribe(function(e){t(new Ho(e?"open":"close",!0))})})},t.prototype.handleKeydown=function(t){t.keyCode!==c.ESCAPE||this.disableClose||(this.close(),t.stopPropagation())},t.prototype._onAnimationStart=function(t){this._animationStarted.emit(t)},t.prototype._onAnimationEnd=function(t){var e=t.fromState,n=t.toState;(0===n.indexOf("open")&&"void"===e||"void"===n&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)},Object.defineProperty(t.prototype,"_width",{get:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0},enumerable:!0,configurable:!0}),t.decorators=[{type:e.Component,args:[{selector:"mat-drawer",exportAs:"matDrawer",template:"<ng-content></ng-content>",animations:[Bo.transformDrawer],host:{class:"mat-drawer","[@transform]":"_animationState","(@transform.start)":"_onAnimationStart($event)","(@transform.done)":"_onAnimationEnd($event)","(keydown)":"handleKeydown($event)","[attr.align]":"null","[class.mat-drawer-end]":'position === "end"',"[class.mat-drawer-over]":'mode === "over"',"[class.mat-drawer-push]":'mode === "push"',"[class.mat-drawer-side]":'mode === "side"',tabIndex:"-1"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:l.FocusTrapFactory},{type:l.FocusMonitor},{type:s.Platform},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[a.DOCUMENT]}]}]},t.propDecorators={position:[{type:e.Input}],align:[{type:e.Input}],mode:[{type:e.Input}],disableClose:[{type:e.Input}],openedChange:[{type:e.Output}],_openedStream:[{type:e.Output,args:["opened"]}],openedStart:[{type:e.Output}],_closedStream:[{type:e.Output,args:["closed"]}],closedStart:[{type:e.Output}],onOpen:[{type:e.Output,args:["open"]}],onClose:[{type:e.Output,args:["close"]}],onPositionChanged:[{type:e.Output,args:["positionChanged"]}],onAlignChanged:[{type:e.Output,args:["align-changed"]}],opened:[{type:e.Input}]},t}(),qo=function(){function t(t,n,r,o,a){void 0===a&&(a=!1);var s=this;this._dir=t,this._element=n,this._ngZone=r,this._changeDetectorRef=o,this.backdropClick=new e.EventEmitter,this._destroyed=new i.Subject,this._doCheckSubject=new i.Subject,this._contentMargins=new i.Subject,t&&t.change.pipe(N.takeUntil(this._destroyed)).subscribe(function(){s._validateDrawers(),s._updateContentMargins()}),this._autosize=a}return Object.defineProperty(t.prototype,"start",{get:function(){return this._start},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._end},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autosize",{get:function(){return this._autosize},set:function(t){this._autosize=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this._drawers.changes.pipe(v.startWith(null)).subscribe(function(){t._validateDrawers(),t._drawers.forEach(function(e){t._watchDrawerToggle(e),t._watchDrawerPosition(e),t._watchDrawerMode(e)}),(!t._drawers.length||t._isDrawerOpen(t._start)||t._isDrawerOpen(t._end))&&t._updateContentMargins(),t._changeDetectorRef.markForCheck()}),this._doCheckSubject.pipe(V.debounceTime(10),N.takeUntil(this._destroyed)).subscribe(function(){return t._updateContentMargins()})},t.prototype.ngOnDestroy=function(){this._doCheckSubject.complete(),this._destroyed.next(),this._destroyed.complete()},t.prototype.open=function(){this._drawers.forEach(function(t){return t.open()})},t.prototype.close=function(){this._drawers.forEach(function(t){return t.close()})},t.prototype.ngDoCheck=function(){var t=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return t._doCheckSubject.next()})},t.prototype._watchDrawerToggle=function(t){var e=this;t._animationStarted.pipe(N.takeUntil(this._drawers.changes),h.filter(function(t){return t.fromState!==t.toState})).subscribe(function(t){"open-instant"!==t.toState&&e._element.nativeElement.classList.add("mat-drawer-transition"),e._updateContentMargins(),e._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe(N.takeUntil(this._drawers.changes)).subscribe(function(){return e._setContainerClass(t.opened)})},t.prototype._watchDrawerPosition=function(t){var e=this;t&&t.onPositionChanged.pipe(N.takeUntil(this._drawers.changes)).subscribe(function(){e._ngZone.onMicrotaskEmpty.asObservable().pipe(d.take(1)).subscribe(function(){e._validateDrawers()})})},t.prototype._watchDrawerMode=function(t){var e=this;t&&t._modeChanged.pipe(N.takeUntil(w.merge(this._drawers.changes,this._destroyed))).subscribe(function(){e._updateContentMargins(),e._changeDetectorRef.markForCheck()})},t.prototype._setContainerClass=function(t){t?this._element.nativeElement.classList.add("mat-drawer-opened"):this._element.nativeElement.classList.remove("mat-drawer-opened")},t.prototype._validateDrawers=function(){var t=this;this._start=this._end=null,this._drawers.forEach(function(e){"end"==e.position?(null!=t._end&&Uo("end"),t._end=e):(null!=t._start&&Uo("start"),t._start=e)}),this._right=this._left=null,this._dir&&"ltr"!=this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)},t.prototype._isPushed=function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode},t.prototype._onBackdropClicked=function(){this.backdropClick.emit(),this._closeModalDrawer()},t.prototype._closeModalDrawer=function(){[this._start,this._end].filter(function(t){return t&&!t.disableClose&&"side"!==t.mode}).forEach(function(t){return t.close()})},t.prototype._isShowingBackdrop=function(){return this._isDrawerOpen(this._start)&&"side"!=this._start.mode||this._isDrawerOpen(this._end)&&"side"!=this._end.mode},t.prototype._isDrawerOpen=function(t){return null!=t&&t.opened},t.prototype._updateContentMargins=function(){var t=this,e=0,n=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._width;else if("push"==this._left.mode){var r=this._left._width;e+=r,n-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._width;else if("push"==this._right.mode){r=this._right._width;n+=r,e-=r}this._ngZone.run(function(){return t._contentMargins.next({left:e,right:n})})},t.decorators=[{type:e.Component,args:[{selector:"mat-drawer-container",exportAs:"matDrawerContainer",template:'<div class="mat-drawer-backdrop" (click)="_onBackdropClicked()" [class.mat-drawer-shown]="_isShowingBackdrop()"></div><ng-content select="mat-drawer"></ng-content><ng-content select="mat-drawer-content"></ng-content><mat-drawer-content *ngIf="!_content" cdkScrollable><ng-content></ng-content></mat-drawer-content>',styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-opened{overflow:hidden}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:background-color,visibility}@media screen and (-ms-high-contrast:active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{-webkit-backface-visibility:hidden;backface-visibility:hidden;position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%,0,0)}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%,0,0)}[dir=rtl] .mat-drawer{transform:translate3d(100%,0,0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%,0,0)}.mat-drawer:not(.mat-drawer-side){box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.mat-sidenav-fixed{position:fixed}"],host:{class:"mat-drawer-container"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],t.ctorParameters=function(){return[{type:n.Directionality,decorators:[{type:e.Optional}]},{type:e.ElementRef},{type:e.NgZone},{type:e.ChangeDetectorRef},{type:void 0,decorators:[{type:e.Inject,args:[zo]}]}]},t.propDecorators={_drawers:[{type:e.ContentChildren,args:[Wo]}],_content:[{type:e.ContentChild,args:[Go]}],autosize:[{type:e.Input}],backdropClick:[{type:e.Output}]},t}(),Yo=function(t){function n(e,n){return t.call(this,e,n)||this}return Y(n,t),n.decorators=[{type:e.Component,args:[{selector:"mat-sidenav-content",template:"<ng-content></ng-content>",host:{class:"mat-drawer-content mat-sidenav-content","[style.margin-left.px]":"_margins.left","[style.margin-right.px]":"_margins.right"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],n.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:$o,decorators:[{type:e.Inject,args:[e.forwardRef(function(){return $o})]}]}]},n}(Go),Ko=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._fixedInViewport=!1,e._fixedTopGap=0,e._fixedBottomGap=0,e}return Y(n,t),Object.defineProperty(n.prototype,"fixedInViewport",{get:function(){return this._fixedInViewport},set:function(t){this._fixedInViewport=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fixedTopGap",{get:function(){return this._fixedTopGap},set:function(t){this._fixedTopGap=r.coerceNumberProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fixedBottomGap",{get:function(){return this._fixedBottomGap},set:function(t){this._fixedBottomGap=r.coerceNumberProperty(t)},enumerable:!0,configurable:!0}),n.decorators=[{type:e.Component,args:[{selector:"mat-sidenav",exportAs:"matSidenav",template:"<ng-content></ng-content>",animations:[Bo.transformDrawer],host:{class:"mat-drawer mat-sidenav",tabIndex:"-1","[@transform]":"_animationState","(@transform.start)":"_onAnimationStart($event)","(@transform.done)":"_onAnimationEnd($event)","(keydown)":"handleKeydown($event)","[attr.align]":"null","[class.mat-drawer-end]":'position === "end"',"[class.mat-drawer-over]":'mode === "over"',"[class.mat-drawer-push]":'mode === "push"',"[class.mat-drawer-side]":'mode === "side"',"[class.mat-sidenav-fixed]":"fixedInViewport","[style.top.px]":"fixedInViewport ? fixedTopGap : null","[style.bottom.px]":"fixedInViewport ? fixedBottomGap : null"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],n.ctorParameters=function(){return[]},n.propDecorators={fixedInViewport:[{type:e.Input}],fixedTopGap:[{type:e.Input}],fixedBottomGap:[{type:e.Input}]},n}(Wo),$o=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Component,args:[{selector:"mat-sidenav-container",exportAs:"matSidenavContainer",template:'<div class="mat-drawer-backdrop" (click)="_onBackdropClicked()" [class.mat-drawer-shown]="_isShowingBackdrop()"></div><ng-content select="mat-sidenav"></ng-content><ng-content select="mat-sidenav-content"></ng-content><mat-sidenav-content *ngIf="!_content" cdkScrollable><ng-content></ng-content></mat-sidenav-content>',styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-opened{overflow:hidden}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:background-color,visibility}@media screen and (-ms-high-contrast:active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{-webkit-backface-visibility:hidden;backface-visibility:hidden;position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%,0,0)}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%,0,0)}[dir=rtl] .mat-drawer{transform:translate3d(100%,0,0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%,0,0)}.mat-drawer:not(.mat-drawer-side){box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.mat-sidenav-fixed{position:fixed}"],host:{class:"mat-drawer-container mat-sidenav-container"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],n.ctorParameters=function(){return[]},n.propDecorators={_drawers:[{type:e.ContentChildren,args:[Ko]}],_content:[{type:e.ContentChild,args:[Yo]}]},n}(qo),Xo=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule,Z,l.A11yModule,u.OverlayModule,F.ScrollDispatchModule,s.PlatformModule],exports:[Z,Wo,qo,Go,Ko,$o,Yo],declarations:[Wo,qo,Go,Ko,$o,Yo],providers:[{provide:zo,useValue:!1}]}]}],t.ctorParameters=function(){return[]},t}(),Qo=0,Zo={provide:y.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return na}),multi:!0},Jo=function(){return function(){}}(),ta=function(){return function(t){this._elementRef=t}}(),ea=nt(tt(et(J(ta)),"accent")),na=function(t){function n(n,r,i,o,a){var s=t.call(this,n)||this;return s._platform=r,s._focusMonitor=i,s._changeDetectorRef=o,s.onChange=function(t){},s.onTouched=function(){},s._uniqueId="mat-slide-toggle-"+ ++Qo,s._required=!1,s._checked=!1,s.name=null,s.id=s._uniqueId,s.labelPosition="after",s.ariaLabel=null,s.ariaLabelledby=null,s.change=new e.EventEmitter,s._rippleConfig={centered:!0,radius:23,speedFactor:1.5},s.tabIndex=parseInt(a)||0,s}return Y(n,t),Object.defineProperty(n.prototype,"required",{get:function(){return this._required},set:function(t){this._required=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"checked",{get:function(){return this._checked},set:function(t){this._checked=r.coerceBooleanProperty(t),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"inputId",{get:function(){return(this.id||this._uniqueId)+"-input"},enumerable:!0,configurable:!0}),n.prototype.ngAfterContentInit=function(){var t=this;this._slideRenderer=new ra(this._elementRef,this._platform),this._focusMonitor.monitor(this._inputElement.nativeElement,!1).subscribe(function(e){return t._onInputFocusChange(e)})},n.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._inputElement.nativeElement)},n.prototype._onChangeEvent=function(t){t.stopPropagation(),this._slideRenderer.dragging?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())},n.prototype._onInputClick=function(t){t.stopPropagation()},n.prototype.writeValue=function(t){this.checked=!!t},n.prototype.registerOnChange=function(t){this.onChange=t},n.prototype.registerOnTouched=function(t){this.onTouched=t},n.prototype.setDisabledState=function(t){this.disabled=t,this._changeDetectorRef.markForCheck()},n.prototype.focus=function(){this._focusMonitor.focusVia(this._inputElement.nativeElement,"keyboard")},n.prototype.toggle=function(){this.checked=!this.checked},n.prototype._onInputFocusChange=function(t){this._focusRipple||"keyboard"!==t?t||(this.onTouched(),this._focusRipple&&(this._focusRipple.fadeOut(),this._focusRipple=null)):this._focusRipple=this._ripple.launch(0,0,K({persistent:!0},this._rippleConfig))},n.prototype._emitChangeEvent=function(){var t=new Jo;t.source=this,t.checked=this.checked,this.onChange(this.checked),this.change.emit(t)},n.prototype._onDragStart=function(){this.disabled||this._slideRenderer.startThumbDrag(this.checked)},n.prototype._onDrag=function(t){this._slideRenderer.dragging&&this._slideRenderer.updateThumbPosition(t.deltaX)},n.prototype._onDragEnd=function(){var t=this;if(this._slideRenderer.dragging){var e=this._slideRenderer.dragPercentage>50;e!==this.checked&&(this.checked=e,this._emitChangeEvent()),setTimeout(function(){return t._slideRenderer.stopThumbDrag()})}},n.prototype._onLabelTextChange=function(){this._changeDetectorRef.markForCheck()},n.decorators=[{type:e.Component,args:[{selector:"mat-slide-toggle",exportAs:"matSlideToggle",host:{class:"mat-slide-toggle","[id]":"id","[class.mat-checked]":"checked","[class.mat-disabled]":"disabled","[class.mat-slide-toggle-label-before]":'labelPosition == "before"'},template:'<label class="mat-slide-toggle-label" #label><div class="mat-slide-toggle-bar" [class.mat-slide-toggle-bar-no-side-margin]="!labelContent.textContent || !labelContent.textContent.trim()"><input #input class="mat-slide-toggle-input cdk-visually-hidden" type="checkbox" [id]="inputId" [required]="required" [tabIndex]="tabIndex" [checked]="checked" [disabled]="disabled" [attr.name]="name" [attr.aria-label]="ariaLabel" [attr.aria-labelledby]="ariaLabelledby" (change)="_onChangeEvent($event)" (click)="_onInputClick($event)"><div class="mat-slide-toggle-thumb-container" (slidestart)="_onDragStart()" (slide)="_onDrag($event)" (slideend)="_onDragEnd()"><div class="mat-slide-toggle-thumb"></div><div class="mat-slide-toggle-ripple" mat-ripple [matRippleTrigger]="label" [matRippleDisabled]="disableRipple || disabled" [matRippleCentered]="_rippleConfig.centered" [matRippleRadius]="_rippleConfig.radius" [matRippleSpeedFactor]="_rippleConfig.speedFactor"></div></div></div><span class="mat-slide-toggle-content" #labelContent (cdkObserveContent)="_onLabelTextChange()"><ng-content></ng-content></span></label>',styles:[".mat-slide-toggle{display:inline-block;height:24px;line-height:24px;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:0}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px,0,0)}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}.mat-slide-toggle-bar,[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-right:8px;margin-left:0}.mat-slide-toggle-label-before .mat-slide-toggle-bar,[dir=rtl] .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0,0,0);transition:all 80ms linear;transition-property:transform;cursor:-webkit-grab;cursor:grab}.mat-slide-toggle-thumb-container.mat-dragging,.mat-slide-toggle-thumb-container:active{cursor:-webkit-grabbing;cursor:grabbing;transition-duration:0s}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}@media screen and (-ms-high-contrast:active){.mat-slide-toggle-thumb{background:#fff;border:solid 1px #000}}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;border-radius:8px}@media screen and (-ms-high-contrast:active){.mat-slide-toggle-bar{background:#fff}}.mat-slide-toggle-input{bottom:0;left:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}.mat-slide-toggle-ripple{position:absolute;top:-13px;left:-13px;height:46px;width:46px;z-index:1;pointer-events:none}"],providers:[Zo],inputs:["disabled","disableRipple","color","tabIndex"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[{type:e.ElementRef},{type:s.Platform},{type:l.FocusMonitor},{type:e.ChangeDetectorRef},{type:void 0,decorators:[{type:e.Attribute,args:["tabindex"]}]}]},n.propDecorators={name:[{type:e.Input}],id:[{type:e.Input}],labelPosition:[{type:e.Input}],ariaLabel:[{type:e.Input,args:["aria-label"]}],ariaLabelledby:[{type:e.Input,args:["aria-labelledby"]}],required:[{type:e.Input}],checked:[{type:e.Input}],change:[{type:e.Output}],_inputElement:[{type:e.ViewChild,args:["input"]}],_ripple:[{type:e.ViewChild,args:[Mt]}]},n}(ea),ra=function(){function t(t,e){this.dragging=!1,e.isBrowser&&(this._thumbEl=t.nativeElement.querySelector(".mat-slide-toggle-thumb-container"),this._thumbBarEl=t.nativeElement.querySelector(".mat-slide-toggle-bar"))}return t.prototype.startThumbDrag=function(t){this.dragging||(this._thumbBarWidth=this._thumbBarEl.clientWidth-this._thumbEl.clientWidth,this._thumbEl.classList.add("mat-dragging"),this._previousChecked=t,this.dragging=!0)},t.prototype.stopThumbDrag=function(){return!!this.dragging&&(this.dragging=!1,this._thumbEl.classList.remove("mat-dragging"),Wt(this._thumbEl,""),this.dragPercentage>50)},t.prototype.updateThumbPosition=function(t){this.dragPercentage=this._getDragPercentage(t);var e=this.dragPercentage/100*this._thumbBarWidth;Wt(this._thumbEl,"translate3d("+e+"px, 0, 0)")},t.prototype._getDragPercentage=function(t){var e=t/this._thumbBarWidth*100;return this._previousChecked&&(e+=100),Math.max(0,Math.min(e,100))},t}(),ia=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[It,Z,s.PlatformModule,E.ObserversModule,l.A11yModule],exports:[na,Z],declarations:[na],providers:[{provide:o.HAMMER_GESTURE_CONFIG,useClass:Ct}]}]}],t.ctorParameters=function(){return[]},t}(),oa={provide:y.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return la}),multi:!0},aa=function(){return function(){}}(),sa=function(){return function(t){this._elementRef=t}}(),ca=nt(tt(J(sa),"accent")),la=function(t){function i(n,r,i,o,a){var s=t.call(this,n)||this;return s._focusMonitor=r,s._changeDetectorRef=i,s._dir=o,s._invert=!1,s._max=100,s._min=0,s._step=1,s._thumbLabel=!1,s._tickInterval=0,s._value=null,s._vertical=!1,s.change=new e.EventEmitter,s.input=new e.EventEmitter,s.onTouched=function(){},s._percent=0,s._isSliding=!1,s._isActive=!1,s._tickIntervalPercent=0,s._sliderDimensions=null,s._controlValueAccessorChangeFn=function(){},s._dirChangeSubscription=S.Subscription.EMPTY,s.tabIndex=parseInt(a)||0,s}return Y(i,t),Object.defineProperty(i.prototype,"invert",{get:function(){return this._invert},set:function(t){this._invert=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"max",{get:function(){return this._max},set:function(t){this._max=r.coerceNumberProperty(t,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"min",{get:function(){return this._min},set:function(t){this._min=r.coerceNumberProperty(t,this._min),null===this._value&&(this.value=this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"step",{get:function(){return this._step},set:function(t){this._step=r.coerceNumberProperty(t,this._step),this._step%1!=0&&(this._roundLabelTo=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"thumbLabel",{get:function(){return this._thumbLabel},set:function(t){this._thumbLabel=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_thumbLabelDeprecated",{get:function(){return this._thumbLabel},set:function(t){this._thumbLabel=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tickInterval",{get:function(){return this._tickInterval},set:function(t){this._tickInterval="auto"===t?"auto":"number"==typeof t||"string"==typeof t?r.coerceNumberProperty(t,this._tickInterval):0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_tickIntervalDeprecated",{get:function(){return this.tickInterval},set:function(t){this.tickInterval=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return null===this._value&&(this.value=this._min),this._value},set:function(t){t!==this._value&&(this._value=r.coerceNumberProperty(t,this._value||0),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"vertical",{get:function(){return this._vertical},set:function(t){this._vertical=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"displayValue",{get:function(){return this._roundLabelTo&&this.value&&this.value%1!=0?this.value.toFixed(this._roundLabelTo):this.value||0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"percent",{get:function(){return this._clamp(this._percent)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_invertAxis",{get:function(){return this.vertical?!this.invert:this.invert},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_isMinValue",{get:function(){return 0===this.percent},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_thumbGap",{get:function(){return this.disabled?7:this._isMinValue&&!this.thumbLabel?this._isActive?10:7:0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_trackBackgroundStyles",{get:function(){var t=this.vertical?"Y":"X";return{transform:"translate"+t+"("+(this._invertMouseCoords?"-":"")+this._thumbGap+"px) scale"+t+"("+(1-this.percent)+")"}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_trackFillStyles",{get:function(){var t=this.vertical?"Y":"X";return{transform:"translate"+t+"("+(this._invertMouseCoords?"":"-")+this._thumbGap+"px) scale"+t+"("+this.percent+")"}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_ticksContainerStyles",{get:function(){return{transform:"translate"+(this.vertical?"Y":"X")+"("+(this.vertical||"rtl"!=this._direction?"-":"")+this._tickIntervalPercent/2*100+"%)"}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_ticksStyles",{get:function(){var t=100*this._tickIntervalPercent,e={backgroundSize:this.vertical?"2px "+t+"%":t+"% 2px",transform:"translateZ(0) translate"+(this.vertical?"Y":"X")+"("+(this.vertical||"rtl"!=this._direction?"":"-")+t/2+"%)"+(this.vertical||"rtl"!=this._direction?"":" rotate(180deg)")};this._isMinValue&&this._thumbGap&&(e["padding"+(this.vertical?this._invertAxis?"Bottom":"Top":this._invertAxis?"Right":"Left")]=this._thumbGap+"px");return e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_thumbContainerStyles",{get:function(){return{transform:"translate"+(this.vertical?"Y":"X")+"(-"+100*(("rtl"!=this._direction||this.vertical?this._invertAxis:!this._invertAxis)?this.percent:1-this.percent)+"%)"}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_invertMouseCoords",{get:function(){return"rtl"!=this._direction||this.vertical?this._invertAxis:!this._invertAxis},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_direction",{get:function(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"},enumerable:!0,configurable:!0}),i.prototype.ngOnInit=function(){var t=this;this._focusMonitor.monitor(this._elementRef.nativeElement,!0).subscribe(function(e){t._isActive=!!e&&"keyboard"!==e,t._changeDetectorRef.detectChanges()}),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(function(){t._changeDetectorRef.markForCheck()}))},i.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef.nativeElement),this._dirChangeSubscription.unsubscribe()},i.prototype._onMouseenter=function(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())},i.prototype._onClick=function(t){if(!this.disabled){var e=this.value;this._isSliding=!1,this._focusHostElement(),this._updateValueFromPosition({x:t.clientX,y:t.clientY}),e!=this.value&&(this._emitInputEvent(),this._emitChangeEvent())}},i.prototype._onSlide=function(t){if(!this.disabled){this._isSliding||this._onSlideStart(null),t.preventDefault();var e=this.value;this._updateValueFromPosition({x:t.center.x,y:t.center.y}),e!=this.value&&this._emitInputEvent()}},i.prototype._onSlideStart=function(t){this.disabled||this._isSliding||(this._onMouseenter(),this._isSliding=!0,this._focusHostElement(),this._valueOnSlideStart=this.value,t&&(this._updateValueFromPosition({x:t.center.x,y:t.center.y}),t.preventDefault()))},i.prototype._onSlideEnd=function(){this._isSliding=!1,this._valueOnSlideStart!=this.value&&this._emitChangeEvent(),this._valueOnSlideStart=null},i.prototype._onFocus=function(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()},i.prototype._onBlur=function(){this.onTouched()},i.prototype._onKeydown=function(t){if(!this.disabled){var e=this.value;switch(t.keyCode){case c.PAGE_UP:this._increment(10);break;case c.PAGE_DOWN:this._increment(-10);break;case c.END:this.value=this.max;break;case c.HOME:this.value=this.min;break;case c.LEFT_ARROW:this._increment("rtl"==this._direction?1:-1);break;case c.UP_ARROW:this._increment(1);break;case c.RIGHT_ARROW:this._increment("rtl"==this._direction?-1:1);break;case c.DOWN_ARROW:this._increment(-1);break;default:return}e!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding=!0,t.preventDefault()}},i.prototype._onKeyup=function(){this._isSliding=!1},i.prototype._increment=function(t){this.value=this._clamp((this.value||0)+this.step*t,this.min,this.max)},i.prototype._updateValueFromPosition=function(t){if(this._sliderDimensions){var e=this.vertical?this._sliderDimensions.top:this._sliderDimensions.left,n=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,r=this.vertical?t.y:t.x,i=this._clamp((r-e)/n);this._invertMouseCoords&&(i=1-i);var o=this._calculateValue(i),a=Math.round((o-this.min)/this.step)*this.step+this.min;this.value=this._clamp(a,this.min,this.max)}},i.prototype._emitChangeEvent=function(){this._controlValueAccessorChangeFn(this.value),this.change.emit(this._createChangeEvent())},i.prototype._emitInputEvent=function(){this.input.emit(this._createChangeEvent())},i.prototype._updateTickIntervalPercent=function(){if(this.tickInterval&&this._sliderDimensions)if("auto"==this.tickInterval){var t=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,e=t*this.step/(this.max-this.min),n=Math.ceil(30/e)*this.step;this._tickIntervalPercent=n/t}else this._tickIntervalPercent=this.tickInterval*this.step/(this.max-this.min)},i.prototype._createChangeEvent=function(t){void 0===t&&(t=this.value);var e=new aa;return e.source=this,e.value=t,e},i.prototype._calculatePercentage=function(t){return((t||0)-this.min)/(this.max-this.min)},i.prototype._calculateValue=function(t){return this.min+t*(this.max-this.min)},i.prototype._clamp=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=1),Math.max(e,Math.min(t,n))},i.prototype._getSliderDimensions=function(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null},i.prototype._focusHostElement=function(){this._elementRef.nativeElement.focus()},i.prototype.writeValue=function(t){this.value=t},i.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},i.prototype.registerOnTouched=function(t){this.onTouched=t},i.prototype.setDisabledState=function(t){this.disabled=t},i.decorators=[{type:e.Component,args:[{selector:"mat-slider",exportAs:"matSlider",providers:[oa],host:{"(focus)":"_onFocus()","(blur)":"_onBlur()","(click)":"_onClick($event)","(keydown)":"_onKeydown($event)","(keyup)":"_onKeyup()","(mouseenter)":"_onMouseenter()","(slide)":"_onSlide($event)","(slideend)":"_onSlideEnd()","(slidestart)":"_onSlideStart($event)",class:"mat-slider",role:"slider","[tabIndex]":"tabIndex","[attr.aria-disabled]":"disabled","[attr.aria-valuemax]":"max","[attr.aria-valuemin]":"min","[attr.aria-valuenow]":"value","[attr.aria-orientation]":'vertical ? "vertical" : "horizontal"',"[class.mat-slider-disabled]":"disabled","[class.mat-slider-has-ticks]":"tickInterval","[class.mat-slider-horizontal]":"!vertical","[class.mat-slider-axis-inverted]":"_invertAxis","[class.mat-slider-sliding]":"_isSliding","[class.mat-slider-thumb-label-showing]":"thumbLabel","[class.mat-slider-vertical]":"vertical","[class.mat-slider-min-value]":"_isMinValue","[class.mat-slider-hide-last-tick]":"disabled || _isMinValue && _thumbGap && _invertAxis"},template:'<div class="mat-slider-wrapper" #sliderWrapper><div class="mat-slider-track-wrapper"><div class="mat-slider-track-background" [ngStyle]="_trackBackgroundStyles"></div><div class="mat-slider-track-fill" [ngStyle]="_trackFillStyles"></div></div><div class="mat-slider-ticks-container" [ngStyle]="_ticksContainerStyles"><div class="mat-slider-ticks" [ngStyle]="_ticksStyles"></div></div><div class="mat-slider-thumb-container" [ngStyle]="_thumbContainerStyles"><div class="mat-slider-focus-ring"></div><div class="mat-slider-thumb"></div><div class="mat-slider-thumb-label"><span class="mat-slider-thumb-label-text">{{displayValue}}</span></div></div></div>',styles:[".mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:0;vertical-align:middle}.mat-slider-wrapper{position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{background-repeat:repeat;background-clip:content-box;box-sizing:border-box;opacity:0;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1),opacity .4s cubic-bezier(.25,.8,.25,1)}.cdk-keyboard-focused .mat-slider-focus-ring,.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled) .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled) .mat-slider-thumb-label{cursor:-webkit-grab;cursor:grab}.mat-slider-sliding:not(.mat-slider-disabled) .mat-slider-thumb,.mat-slider-sliding:not(.mat-slider-disabled) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled) .mat-slider-thumb-label:active,.mat-slider:not(.mat-slider-disabled) .mat-slider-thumb:active{cursor:-webkit-grabbing;cursor:grabbing}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid transparent;border-radius:50%;transform:scale(.7);transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1),border-color .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform .4s cubic-bezier(.25,.8,.25,1),border-radius .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-sliding .mat-slider-thumb-container,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-track-fill{transition-duration:0s}.mat-slider-has-ticks .mat-slider-wrapper::after{content:'';position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}"],inputs:["disabled","color","tabIndex"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],i.ctorParameters=function(){return[{type:e.ElementRef},{type:l.FocusMonitor},{type:e.ChangeDetectorRef},{type:n.Directionality,decorators:[{type:e.Optional}]},{type:void 0,decorators:[{type:e.Attribute,args:["tabindex"]}]}]},i.propDecorators={invert:[{type:e.Input}],max:[{type:e.Input}],min:[{type:e.Input}],step:[{type:e.Input}],thumbLabel:[{type:e.Input}],_thumbLabelDeprecated:[{type:e.Input,args:["thumb-label"]}],tickInterval:[{type:e.Input}],_tickIntervalDeprecated:[{type:e.Input,args:["tick-interval"]}],value:[{type:e.Input}],vertical:[{type:e.Input}],change:[{type:e.Output}],input:[{type:e.Output}],_sliderWrapper:[{type:e.ViewChild,args:["sliderWrapper"]}]},i}(ca),ua=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule,Z,n.BidiModule,l.A11yModule],exports:[la,Z],declarations:[la],providers:[{provide:o.HAMMER_GESTURE_CONFIG,useClass:Ct}]}]}],t.ctorParameters=function(){return[]},t}(),pa=function(){function t(t,e){var n=this;this._overlayRef=e,this._afterClosed=new i.Subject,this._afterOpened=new i.Subject,this._onAction=new i.Subject,this.containerInstance=t,this.onAction().subscribe(function(){return n.dismiss()}),t._onExit.subscribe(function(){return n._finishDismiss()})}return t.prototype.dismiss=function(){this._afterClosed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)},t.prototype.closeWithAction=function(){this._onAction.closed||(this._onAction.next(),this._onAction.complete())},t.prototype._dismissAfter=function(t){var e=this;this._durationTimeoutId=setTimeout(function(){return e.dismiss()},t)},t.prototype._open=function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())},t.prototype._finishDismiss=function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterClosed.next(),this._afterClosed.complete()},t.prototype.afterDismissed=function(){return this._afterClosed.asObservable()},t.prototype.afterOpened=function(){return this.containerInstance._onEnter},t.prototype.onAction=function(){return this._onAction.asObservable()},t}(),ha=new e.InjectionToken("MatSnackBarData"),da=function(){return function(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.direction="ltr",this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}(),fa=X.ENTERING+" "+$.DECELERATION_CURVE,ma=X.EXITING+" "+$.ACCELERATION_CURVE,ga={contentFade:_.trigger("contentFade",[_.transition(":enter",[_.style({opacity:"0"}),_.animate(X.COMPLEX+" "+$.STANDARD_CURVE)])]),snackBarState:_.trigger("state",[_.state("visible-top, visible-bottom",_.style({transform:"translateY(0%)"})),_.transition("visible-top => hidden-top, visible-bottom => hidden-bottom",_.animate(ma)),_.transition("void => visible-top, void => visible-bottom",_.animate(fa))])},ya=function(){function t(t,e){this.snackBarRef=t,this.data=e}return t.prototype.action=function(){this.snackBarRef.closeWithAction()},Object.defineProperty(t.prototype,"hasAction",{get:function(){return!!this.data.action},enumerable:!0,configurable:!0}),t.decorators=[{type:e.Component,args:[{selector:"simple-snack-bar",template:'{{data.message}} <button class="mat-simple-snackbar-action" *ngIf="hasAction" (click)="action()">{{data.action}}</button>',styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;line-height:20px;opacity:1}.mat-simple-snackbar-action{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;background:0 0;flex-shrink:0;margin-left:48px}[dir=rtl] .mat-simple-snackbar-action{margin-right:48px;margin-left:0}"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,animations:[ga.contentFade],host:{"[@contentFade]":"",class:"mat-simple-snackbar"}}]}],t.ctorParameters=function(){return[{type:pa},{type:void 0,decorators:[{type:e.Inject,args:[ha]}]}]},t}(),va=function(t){function n(e,n,r){var o=t.call(this)||this;return o._ngZone=e,o._elementRef=n,o._changeDetectorRef=r,o._destroyed=!1,o._onExit=new i.Subject,o._onEnter=new i.Subject,o._animationState="void",o}return Y(n,t),n.prototype.attachComponentPortal=function(t){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached");var e=this._elementRef.nativeElement;return(this.snackBarConfig.panelClass||this.snackBarConfig.extraClasses)&&(this._setCssClasses(this.snackBarConfig.panelClass),this._setCssClasses(this.snackBarConfig.extraClasses)),"center"===this.snackBarConfig.horizontalPosition&&e.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&e.classList.add("mat-snack-bar-top"),this._portalOutlet.attachComponentPortal(t)},n.prototype.attachTemplatePortal=function(){throw Error("Not yet implemented")},n.prototype.onAnimationEnd=function(t){var e=t.fromState,n=t.toState;if(("void"===n&&"void"!==e||n.startsWith("hidden"))&&this._completeExit(),n.startsWith("visible")){var r=this._onEnter;this._ngZone.run(function(){r.next(),r.complete()})}},n.prototype.enter=function(){this._destroyed||(this._animationState="visible-"+this.snackBarConfig.verticalPosition,this._changeDetectorRef.detectChanges())},n.prototype.exit=function(){return this._animationState="hidden-"+this.snackBarConfig.verticalPosition,this._onExit},n.prototype.ngOnDestroy=function(){this._destroyed=!0,this._completeExit()},n.prototype._completeExit=function(){var t=this;this._ngZone.onMicrotaskEmpty.asObservable().pipe(d.take(1)).subscribe(function(){t._onExit.next(),t._onExit.complete()})},n.prototype._setCssClasses=function(t){if(t){var e=this._elementRef.nativeElement;Array.isArray(t)?t.forEach(function(t){return e.classList.add(t)}):e.classList.add(t)}},n.decorators=[{type:e.Component,args:[{selector:"snack-bar-container",template:"<ng-template cdkPortalOutlet></ng-template>",styles:[".mat-snack-bar-container{border-radius:2px;box-sizing:border-box;display:block;margin:24px;max-width:568px;min-width:288px;padding:14px 24px;transform:translateY(100%) translateY(24px)}.mat-snack-bar-container.mat-snack-bar-center{margin:0;transform:translateY(100%)}.mat-snack-bar-container.mat-snack-bar-top{transform:translateY(-100%) translateY(-24px)}.mat-snack-bar-container.mat-snack-bar-top.mat-snack-bar-center{transform:translateY(-100%)}@media screen and (-ms-high-contrast:active){.mat-snack-bar-container{border:solid 1px}}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:0;max-width:inherit;width:100%}"],changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,animations:[ga.snackBarState],host:{role:"alert",class:"mat-snack-bar-container","[@state]":"_animationState","(@state.done)":"onAnimationEnd($event)"}}]}],n.ctorParameters=function(){return[{type:e.NgZone},{type:e.ElementRef},{type:e.ChangeDetectorRef}]},n.propDecorators={_portalOutlet:[{type:e.ViewChild,args:[p.CdkPortalOutlet]}]},n}(p.BasePortalOutlet),ba=function(){function t(t,e,n,r,i){this._overlay=t,this._live=e,this._injector=n,this._breakpointObserver=r,this._parentSnackBar=i,this._snackBarRefAtThisLevel=null}return Object.defineProperty(t.prototype,"_openedSnackBarRef",{get:function(){var t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t},enumerable:!0,configurable:!0}),t.prototype.openFromComponent=function(t,e){var n=this,r=_a(e),i=this._attach(t,r);return i.afterDismissed().subscribe(function(){n._openedSnackBarRef==i&&(n._openedSnackBarRef=null)}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){i.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):i.containerInstance.enter(),r.duration&&r.duration>0&&i.afterOpened().subscribe(function(){return i._dismissAfter(r.duration)}),r.announcementMessage&&this._live.announce(r.announcementMessage,r.politeness),this._openedSnackBarRef=i,this._openedSnackBarRef},t.prototype.open=function(t,e,n){void 0===e&&(e="");var r=_a(n);return r.data={message:t,action:e},r.announcementMessage=t,this.openFromComponent(ya,r)},t.prototype.dismiss=function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()},t.prototype._attachSnackBarContainer=function(t,e){var n=new p.ComponentPortal(va,e.viewContainerRef),r=t.attach(n);return r.instance.snackBarConfig=e,r.instance},t.prototype._attach=function(t,e){var n=this._createOverlay(e),r=this._attachSnackBarContainer(n,e),i=new pa(r,n),o=this._createInjector(e,i),a=new p.ComponentPortal(t,void 0,o),s=r.attachComponentPortal(a);return i.instance=s.instance,this._breakpointObserver.observe(B.Breakpoints.Handset).pipe(N.takeUntil(n.detachments().pipe(d.take(1)))).subscribe(function(t){t.matches?n.overlayElement.classList.add("mat-snack-bar-handset"):n.overlayElement.classList.remove("mat-snack-bar-handset")}),i},t.prototype._createOverlay=function(t){var e=new u.OverlayConfig;e.direction=t.direction;var n=this._overlay.position().global(),r="rtl"===t.direction,i="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!r||"end"===t.horizontalPosition&&r,o=!i&&"center"!==t.horizontalPosition;return i?n.left("0"):o?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)},t.prototype._createInjector=function(t,e){var n=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=new WeakMap;return r.set(pa,e),r.set(ha,t.data),new p.PortalInjector(n||this._injector,r)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:u.Overlay},{type:l.LiveAnnouncer},{type:e.Injector},{type:B.BreakpointObserver},{type:t,decorators:[{type:e.Optional},{type:e.SkipSelf}]}]},t}();function _a(t){return K({},new da,t)}var wa=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[u.OverlayModule,p.PortalModule,a.CommonModule,Z,B.LayoutModule],exports:[va,Z],declarations:[va,ya],entryComponents:[va,ya],providers:[ba,l.LIVE_ANNOUNCER_PROVIDER]}]}],t.ctorParameters=function(){return[]},t}();var Ca=function(){return function(){}}(),xa=J(Ca),Ea=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.sortables=new Map,n._stateChanges=new i.Subject,n.start="asc",n._direction="",n.sortChange=new e.EventEmitter,n}return Y(n,t),Object.defineProperty(n.prototype,"direction",{get:function(){return this._direction},set:function(t){if(e.isDevMode()&&t&&"asc"!==t&&"desc"!==t)throw Error(t+" is not a valid sort direction ('asc' or 'desc').");this._direction=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"disableClear",{get:function(){return this._disableClear},set:function(t){this._disableClear=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),n.prototype.register=function(t){if(!t.id)throw Error("MatSortHeader must be provided with a unique id.");if(this.sortables.has(t.id))throw e=t.id,Error("Cannot have two MatSortables with the same id ("+e+").");var e;this.sortables.set(t.id,t)},n.prototype.deregister=function(t){this.sortables.delete(t.id)},n.prototype.sort=function(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.next({active:this.active,direction:this.direction})},n.prototype.getNextSortDirection=function(t){if(!t)return"";var e=null!=t.disableClear?t.disableClear:this.disableClear,n=function(t,e){var n=["asc","desc"];"desc"==t&&n.reverse();e||n.push("");return n}(t.start||this.start,e),r=n.indexOf(this.direction)+1;return r>=n.length&&(r=0),n[r]},n.prototype.ngOnChanges=function(){this._stateChanges.next()},n.prototype.ngOnDestroy=function(){this._stateChanges.complete()},n.decorators=[{type:e.Directive,args:[{selector:"[matSort]",exportAs:"matSort",inputs:["disabled: matSortDisabled"]}]}],n.ctorParameters=function(){return[]},n.propDecorators={active:[{type:e.Input,args:["matSortActive"]}],start:[{type:e.Input,args:["matSortStart"]}],direction:[{type:e.Input,args:["matSortDirection"]}],disableClear:[{type:e.Input,args:["matSortDisableClear"]}],sortChange:[{type:e.Output,args:["matSortChange"]}]},n}(xa);var Sa=function(){function t(){this.changes=new i.Subject,this.sortButtonLabel=function(t){return"Change sorting for "+t},this.sortDescriptionLabel=function(t,e){return"Sorted by "+t+" "+("asc"==e?"ascending":"descending")}}return t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}();function ka(t){return t||new Sa}var Oa={provide:Sa,deps:[[new e.Optional,new e.SkipSelf,Sa]],useFactory:ka},Pa=X.ENTERING+" "+$.STANDARD_CURVE,Aa={indicator:_.trigger("indicator",[_.state("asc",_.style({transform:"translateY(0px)"})),_.state("desc",_.style({transform:"translateY(10px)"})),_.transition("asc <=> desc",_.animate(Pa))]),leftPointer:_.trigger("leftPointer",[_.state("asc",_.style({transform:"rotate(-45deg)"})),_.state("desc",_.style({transform:"rotate(45deg)"})),_.transition("asc <=> desc",_.animate(Pa))]),rightPointer:_.trigger("rightPointer",[_.state("asc",_.style({transform:"rotate(45deg)"})),_.state("desc",_.style({transform:"rotate(-45deg)"})),_.transition("asc <=> desc",_.animate(Pa))]),indicatorToggle:_.trigger("indicatorToggle",[_.transition("void => asc",_.animate(Pa,_.keyframes([_.style({transform:"translateY(25%)",opacity:0}),_.style({transform:"none",opacity:1})]))),_.transition("asc => void",_.animate(Pa,_.keyframes([_.style({transform:"none",opacity:1}),_.style({transform:"translateY(-25%)",opacity:0})]))),_.transition("void => desc",_.animate(Pa,_.keyframes([_.style({transform:"translateY(-25%)",opacity:0}),_.style({transform:"none",opacity:1})]))),_.transition("desc => void",_.animate(Pa,_.keyframes([_.style({transform:"none",opacity:1}),_.style({transform:"translateY(25%)",opacity:0})])))])},Ta=function(){return function(){}}(),Ma=J(Ta),Ia=function(t){function n(e,n,r,i){var o=t.call(this)||this;if(o._intl=e,o._sort=r,o._cdkColumnDef=i,o.arrowPosition="after",!r)throw Error("MatSortHeader must be placed within a parent element with the MatSort directive.");return o._rerenderSubscription=w.merge(r.sortChange,r._stateChanges,e.changes).subscribe(function(){return n.markForCheck()}),o}return Y(n,t),Object.defineProperty(n.prototype,"disableClear",{get:function(){return this._disableClear},set:function(t){this._disableClear=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),n.prototype.ngOnInit=function(){!this.id&&this._cdkColumnDef&&(this.id=this._cdkColumnDef.name),this._sort.register(this)},n.prototype.ngOnDestroy=function(){this._sort.deregister(this),this._rerenderSubscription.unsubscribe()},n.prototype._handleClick=function(){this._isDisabled()||this._sort.sort(this)},n.prototype._isSorted=function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)},n.prototype._isDisabled=function(){return this._sort.disabled||this.disabled},n.decorators=[{type:e.Component,args:[{selector:"[mat-sort-header]",exportAs:"matSortHeader",template:'<div class="mat-sort-header-container" [class.mat-sort-header-position-before]="arrowPosition == \'before\'"><button class="mat-sort-header-button" type="button" [attr.aria-label]="_intl.sortButtonLabel(id)" [attr.disabled]="_isDisabled() || null"><ng-content></ng-content></button><div *ngIf="_isSorted()" class="mat-sort-header-arrow" [@indicatorToggle]="_sort.direction"><div class="mat-sort-header-stem"></div><div class="mat-sort-header-indicator" [@indicator]="_sort.direction"><div class="mat-sort-header-pointer-left" [@leftPointer]="_sort.direction"></div><div class="mat-sort-header-pointer-right" [@rightPointer]="_sort.direction"></div><div class="mat-sort-header-pointer-middle"></div></div></div></div><span class="cdk-visually-hidden" *ngIf="_isSorted()">&nbsp;{{_intl.sortDescriptionLabel(id, _sort.direction)}}</span>',styles:[".mat-sort-header-container{display:flex;cursor:pointer}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-button{border:none;background:0 0;display:flex;align-items:center;padding:0;cursor:inherit;outline:0;font:inherit;color:currentColor}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;margin:0 0 0 6px;position:relative;display:flex}.mat-sort-header-position-before .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0;transition:225ms cubic-bezier(.4,0,.2,1)}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;transition:225ms cubic-bezier(.4,0,.2,1);position:absolute;top:0}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],host:{"(click)":"_handleClick()","[class.mat-sort-header-sorted]":"_isSorted()","[class.mat-sort-header-disabled]":"_isDisabled()"},encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,inputs:["disabled"],animations:[Aa.indicator,Aa.leftPointer,Aa.rightPointer,Aa.indicatorToggle]}]}],n.ctorParameters=function(){return[{type:Sa},{type:e.ChangeDetectorRef},{type:Ea,decorators:[{type:e.Optional}]},{type:U.CdkColumnDef,decorators:[{type:e.Optional}]}]},n.propDecorators={id:[{type:e.Input,args:["mat-sort-header"]}],arrowPosition:[{type:e.Input}],start:[{type:e.Input,args:["start"]}],disableClear:[{type:e.Input}]},n}(Ma),Ra=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule],exports:[Ea,Ia],declarations:[Ea,Ia],providers:[Oa]}]}],t.ctorParameters=function(){return[]},t}(),Da=function(t){function n(e){return t.call(this,e)||this}return Y(n,t),n.decorators=[{type:e.Directive,args:[{selector:"[matStepLabel]"}]}],n.ctorParameters=function(){return[{type:e.TemplateRef}]},n}(H.CdkStepLabel),Na=function(){function t(){this.changes=new i.Subject,this.optionalLabel="Optional"}return t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}(),La=function(){function t(t,e,n,r){this._intl=t,this._focusMonitor=e,this._element=n,e.monitor(n.nativeElement,!0),this._intlSubscription=t.changes.subscribe(function(){return r.markForCheck()})}return Object.defineProperty(t.prototype,"index",{get:function(){return this._index},set:function(t){this._index=r.coerceNumberProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._active},set:function(t){this._active=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"optional",{get:function(){return this._optional},set:function(t){this._optional=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element.nativeElement)},t.prototype._stringLabel=function(){return this.label instanceof Da?null:this.label},t.prototype._templateLabel=function(){return this.label instanceof Da?this.label:null},t.prototype._getHostElement=function(){return this._element.nativeElement},t.decorators=[{type:e.Component,args:[{selector:"mat-step-header",template:'<div class="mat-step-header-ripple" mat-ripple [matRippleTrigger]="_getHostElement()"></div><div [class.mat-step-icon]="icon !== \'number\' || selected" [class.mat-step-icon-not-touched]="icon == \'number\' && !selected" [ngSwitch]="icon"><span *ngSwitchCase="\'number\'">{{index + 1}}</span><mat-icon *ngSwitchCase="\'edit\'">create</mat-icon><mat-icon *ngSwitchCase="\'done\'">done</mat-icon></div><div class="mat-step-label" [class.mat-step-label-active]="active" [class.mat-step-label-selected]="selected"><ng-container *ngIf="_templateLabel()" [ngTemplateOutlet]="_templateLabel()!.template"></ng-container><div class="mat-step-text-label" *ngIf="_stringLabel()">{{label}}</div><div class="mat-step-optional" *ngIf="optional">{{_intl.optionalLabel}}</div></div>',styles:[".mat-step-header{overflow:hidden;outline:0;cursor:pointer;position:relative}.mat-step-optional{font-size:12px}.mat-step-icon,.mat-step-icon-not-touched{border-radius:50%;height:24px;width:24px;align-items:center;justify-content:center;display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}"],host:{class:"mat-step-header",role:"tab"},encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:Na},{type:l.FocusMonitor},{type:e.ElementRef},{type:e.ChangeDetectorRef}]},t.propDecorators={icon:[{type:e.Input}],label:[{type:e.Input}],index:[{type:e.Input}],selected:[{type:e.Input}],active:[{type:e.Input}],optional:[{type:e.Input}]},t}(),ja={horizontalStepTransition:_.trigger("stepTransition",[_.state("previous",_.style({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),_.state("current",_.style({transform:"none",visibility:"visible"})),_.state("next",_.style({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),_.transition("* => *",_.animate("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:_.trigger("stepTransition",[_.state("previous",_.style({height:"0px",visibility:"hidden"})),_.state("next",_.style({height:"0px",visibility:"hidden"})),_.state("current",_.style({height:"*",visibility:"visible"})),_.transition("* <=> current",_.animate("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])},Fa=function(t){function n(e,n){var r=t.call(this,e)||this;return r._errorStateMatcher=n,r}return Y(n,t),n.prototype.isErrorState=function(t,e){var n=this._errorStateMatcher.isErrorState(t,e),r=!!(t&&t.invalid&&this.interacted);return n||r},n.decorators=[{type:e.Component,args:[{selector:"mat-step",template:"<ng-template><ng-content></ng-content></ng-template>",providers:[{provide:_t,useExisting:n}],encapsulation:e.ViewEncapsulation.None,exportAs:"matStep",preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[{type:Va,decorators:[{type:e.Inject,args:[e.forwardRef(function(){return Va})]}]},{type:_t,decorators:[{type:e.SkipSelf}]}]},n.propDecorators={stepLabel:[{type:e.ContentChild,args:[Da]}]},n}(H.CdkStep),Va=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.prototype.ngAfterContentInit=function(){var t=this;this._steps.changes.pipe(N.takeUntil(this._destroyed)).subscribe(function(){return t._stateChanged()})},n.decorators=[{type:e.Directive,args:[{selector:"[matStepper]"}]}],n.ctorParameters=function(){return[]},n.propDecorators={_stepHeader:[{type:e.ViewChildren,args:[La,{read:e.ElementRef}]}],_steps:[{type:e.ContentChildren,args:[Fa]}]},n}(H.CdkStepper),Ba=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Component,args:[{selector:"mat-horizontal-stepper",exportAs:"matHorizontalStepper",template:'<div class="mat-horizontal-stepper-header-container"><ng-container *ngFor="let step of _steps; let i = index; let isLast = last"><mat-step-header class="mat-horizontal-stepper-header" (click)="step.select()" (keydown)="_onKeydown($event)" [tabIndex]="_focusIndex === i ? 0 : -1" [id]="_getStepLabelId(i)" [attr.aria-controls]="_getStepContentId(i)" [attr.aria-selected]="selectedIndex == i" [index]="i" [icon]="_getIndicatorType(i)" [label]="step.stepLabel || step.label" [selected]="selectedIndex === i" [active]="step.completed || selectedIndex === i || !linear" [optional]="step.optional"></mat-step-header><div *ngIf="!isLast" class="mat-stepper-horizontal-line"></div></ng-container></div><div class="mat-horizontal-content-container"><div *ngFor="let step of _steps; let i = index" class="mat-horizontal-stepper-content" role="tabpanel" [@stepTransition]="_getAnimationDirection(i)" [id]="_getStepContentId(i)" [attr.aria-labelledby]="_getStepLabelId(i)" [attr.aria-expanded]="selectedIndex === i"><ng-container [ngTemplateOutlet]="step.content"></ng-container></div></div>',styles:[".mat-stepper-horizontal,.mat-stepper-vertical{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon,.mat-horizontal-stepper-header .mat-step-icon-not-touched{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon,[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon-not-touched{margin-right:0;margin-left:8px}.mat-vertical-stepper-header{display:flex;align-items:center;padding:24px;max-height:24px}.mat-vertical-stepper-header .mat-step-icon,.mat-vertical-stepper-header .mat-step-icon-not-touched{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon,[dir=rtl] .mat-vertical-stepper-header .mat-step-icon-not-touched{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{overflow:hidden}.mat-horizontal-stepper-content[aria-expanded=false]{height:0}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:'';position:absolute;top:-16px;bottom:-16px;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}"],inputs:["selectedIndex"],host:{class:"mat-stepper-horizontal","aria-orientation":"horizontal",role:"tablist"},animations:[ja.horizontalStepTransition],providers:[{provide:Va,useExisting:n}],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[]},n}(Va),Ua=function(t){function r(e,n){var r=t.call(this,e,n)||this;return r._orientation="vertical",r}return Y(r,t),r.decorators=[{type:e.Component,args:[{selector:"mat-vertical-stepper",exportAs:"matVerticalStepper",template:'<div class="mat-step" *ngFor="let step of _steps; let i = index; let isLast = last"><mat-step-header class="mat-vertical-stepper-header" (click)="step.select()" (keydown)="_onKeydown($event)" [tabIndex]="_focusIndex == i ? 0 : -1" [id]="_getStepLabelId(i)" [attr.aria-controls]="_getStepContentId(i)" [attr.aria-selected]="selectedIndex === i" [index]="i" [icon]="_getIndicatorType(i)" [label]="step.stepLabel || step.label" [selected]="selectedIndex === i" [active]="step.completed || selectedIndex === i || !linear" [optional]="step.optional"></mat-step-header><div class="mat-vertical-content-container" [class.mat-stepper-vertical-line]="!isLast"><div class="mat-vertical-stepper-content" role="tabpanel" [@stepTransition]="_getAnimationDirection(i)" [id]="_getStepContentId(i)" [attr.aria-labelledby]="_getStepLabelId(i)" [attr.aria-expanded]="selectedIndex === i"><div class="mat-vertical-content"><ng-container [ngTemplateOutlet]="step.content"></ng-container></div></div></div></div>',styles:[".mat-stepper-horizontal,.mat-stepper-vertical{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon,.mat-horizontal-stepper-header .mat-step-icon-not-touched{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon,[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon-not-touched{margin-right:0;margin-left:8px}.mat-vertical-stepper-header{display:flex;align-items:center;padding:24px;max-height:24px}.mat-vertical-stepper-header .mat-step-icon,.mat-vertical-stepper-header .mat-step-icon-not-touched{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon,[dir=rtl] .mat-vertical-stepper-header .mat-step-icon-not-touched{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{overflow:hidden}.mat-horizontal-stepper-content[aria-expanded=false]{height:0}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:'';position:absolute;top:-16px;bottom:-16px;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}"],inputs:["selectedIndex"],host:{class:"mat-stepper-vertical","aria-orientation":"vertical",role:"tablist"},animations:[ja.verticalStepTransition],providers:[{provide:Va,useExisting:r}],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],r.ctorParameters=function(){return[{type:n.Directionality,decorators:[{type:e.Optional}]},{type:e.ChangeDetectorRef}]},r}(Va),Ha=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Directive,args:[{selector:"button[matStepperNext]",host:{"(click)":"_stepper.next()"},providers:[{provide:H.CdkStepper,useExisting:Va}]}]}],n.ctorParameters=function(){return[]},n}(H.CdkStepperNext),za=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Directive,args:[{selector:"button[matStepperPrevious]",host:{"(click)":"_stepper.previous()"},providers:[{provide:H.CdkStepper,useExisting:Va}]}]}],n.ctorParameters=function(){return[]},n}(H.CdkStepperPrevious),Ga=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[Z,a.CommonModule,p.PortalModule,Te,H.CdkStepperModule,nr,l.A11yModule,It],exports:[Z,Ba,Ua,Fa,Da,Va,Ha,za,La],declarations:[Ba,Ua,Fa,Da,Va,Ha,za,La],providers:[Na,_t]}]}],t.ctorParameters=function(){return[]},t}(),Wa=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Component,args:[{selector:"mat-table",exportAs:"matTable",template:U.CDK_TABLE_TEMPLATE,styles:[".mat-table{display:block}.mat-header-row{min-height:56px}.mat-row{min-height:48px}.mat-header-row,.mat-row{display:flex;border-bottom-width:1px;border-bottom-style:solid;align-items:center;padding:0 24px;box-sizing:border-box}.mat-header-row::after,.mat-row::after{display:inline-block;min-height:inherit;content:''}.mat-cell,.mat-header-cell{flex:1;overflow:hidden;word-wrap:break-word}"],host:{class:"mat-table"},encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[]},n}(U.CdkTable),qa=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Directive,args:[{selector:"[matCellDef]",providers:[{provide:U.CdkCellDef,useExisting:n}]}]}],n.ctorParameters=function(){return[]},n}(U.CdkCellDef),Ya=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Directive,args:[{selector:"[matHeaderCellDef]",providers:[{provide:U.CdkHeaderCellDef,useExisting:n}]}]}],n.ctorParameters=function(){return[]},n}(U.CdkHeaderCellDef),Ka=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Directive,args:[{selector:"[matColumnDef]",providers:[{provide:U.CdkColumnDef,useExisting:n}]}]}],n.ctorParameters=function(){return[]},n.propDecorators={name:[{type:e.Input,args:["matColumnDef"]}]},n}(U.CdkColumnDef),$a=function(t){function n(e,n){var r=t.call(this,e,n)||this;return n.nativeElement.classList.add("mat-column-"+e.cssClassFriendlyName),r}return Y(n,t),n.decorators=[{type:e.Directive,args:[{selector:"mat-header-cell",host:{class:"mat-header-cell",role:"columnheader"}}]}],n.ctorParameters=function(){return[{type:U.CdkColumnDef},{type:e.ElementRef}]},n}(U.CdkHeaderCell),Xa=function(t){function n(e,n){var r=t.call(this,e,n)||this;return n.nativeElement.classList.add("mat-column-"+e.cssClassFriendlyName),r}return Y(n,t),n.decorators=[{type:e.Directive,args:[{selector:"mat-cell",host:{class:"mat-cell",role:"gridcell"}}]}],n.ctorParameters=function(){return[{type:U.CdkColumnDef},{type:e.ElementRef}]},n}(U.CdkCell),Qa=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Directive,args:[{selector:"[matHeaderRowDef]",providers:[{provide:U.CdkHeaderRowDef,useExisting:n}],inputs:["columns: matHeaderRowDef"]}]}],n.ctorParameters=function(){return[]},n}(U.CdkHeaderRowDef),Za=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Directive,args:[{selector:"[matRowDef]",providers:[{provide:U.CdkRowDef,useExisting:n}],inputs:["columns: matRowDefColumns","when: matRowDefWhen"]}]}],n.ctorParameters=function(){return[]},n}(U.CdkRowDef),Ja=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Component,args:[{selector:"mat-header-row",template:U.CDK_ROW_TEMPLATE,host:{class:"mat-header-row",role:"row"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,exportAs:"matHeaderRow",preserveWhitespaces:!1}]}],n.ctorParameters=function(){return[]},n}(U.CdkHeaderRow),ts=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.decorators=[{type:e.Component,args:[{selector:"mat-row",template:U.CDK_ROW_TEMPLATE,host:{class:"mat-row",role:"row"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,exportAs:"matRow",preserveWhitespaces:!1}]}],n.ctorParameters=function(){return[]},n}(U.CdkRow),es=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[U.CdkTableModule,a.CommonModule,Z],exports:[Wa,qa,Ya,Ka,$a,Xa,Ja,ts,Qa,Za],declarations:[Wa,qa,Ya,Ka,$a,Xa,Ja,ts,Qa,Za]}]}],t.ctorParameters=function(){return[]},t}(),ns=function(){function t(t){void 0===t&&(t=[]),this._renderData=new z.BehaviorSubject([]),this._filter=new z.BehaviorSubject(""),this.sortingDataAccessor=function(t,e){var n=t[e];return"string"!=typeof n||n.trim()?isNaN(+n)?n:+n:n},this.filterPredicate=function(t,e){var n=Object.keys(t).reduce(function(e,n){return e+t[n]},"").toLowerCase(),r=e.trim().toLowerCase();return-1!=n.indexOf(r)},this._data=new z.BehaviorSubject(t),this._updateChangeSubscription()}return Object.defineProperty(t.prototype,"data",{get:function(){return this._data.value},set:function(t){this._data.next(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"filter",{get:function(){return this._filter.value},set:function(t){this._filter.next(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sort",{get:function(){return this._sort},set:function(t){this._sort=t,this._updateChangeSubscription()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paginator",{get:function(){return this._paginator},set:function(t){this._paginator=t,this._updateChangeSubscription()},enumerable:!0,configurable:!0}),t.prototype._updateChangeSubscription=function(){var t=this,e=this._sort?this._sort.sortChange:W.empty(),n=this._paginator?this._paginator.page:W.empty();this._renderChangesSubscription&&this._renderChangesSubscription.unsubscribe(),this._renderChangesSubscription=this._data.pipe(G.combineLatest(this._filter),A.map(function(e){var n=e[0];return t._filterData(n)}),G.combineLatest(e.pipe(v.startWith(null))),A.map(function(e){var n=e[0];return t._orderData(n)}),G.combineLatest(n.pipe(v.startWith(null))),A.map(function(e){var n=e[0];return t._pageData(n)})).subscribe(function(e){return t._renderData.next(e)})},t.prototype._filterData=function(t){var e=this;return this.filteredData=this.filter?t.filter(function(t){return e.filterPredicate(t,e.filter)}):t,this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData},t.prototype._orderData=function(t){var e=this;if(!this.sort||!this.sort.active||""==this.sort.direction)return t;var n=this.sort.active,r=this.sort.direction;return t.slice().sort(function(t,i){return(e.sortingDataAccessor(t,n)<e.sortingDataAccessor(i,n)?-1:1)*("asc"==r?1:-1)})},t.prototype._pageData=function(t){if(!this.paginator)return t;var e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice().splice(e,this.paginator.pageSize)},t.prototype._updatePaginator=function(t){var e=this;Promise.resolve().then(function(){if(e.paginator&&(e.paginator.length=t,e.paginator.pageIndex>0)){var n=Math.ceil(e.paginator.length/e.paginator.pageSize)-1||0;e.paginator.pageIndex=Math.min(e.paginator.pageIndex,n)}})},t.prototype.connect=function(){return this._renderData},t.prototype.disconnect=function(){},t}(),rs=function(){function t(t,e){this._elementRef=t,this._ngZone=e}return t.prototype.alignToElement=function(t){var e=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e._setStyles(t)})}):this._setStyles(t)},t.prototype.show=function(){this._elementRef.nativeElement.style.visibility="visible"},t.prototype.hide=function(){this._elementRef.nativeElement.style.visibility="hidden"},t.prototype._setStyles=function(t){var e=this._elementRef.nativeElement;e.style.left=t?(t.offsetLeft||0)+"px":"0",e.style.width=t?(t.offsetWidth||0)+"px":"0"},t.decorators=[{type:e.Directive,args:[{selector:"mat-ink-bar",host:{class:"mat-ink-bar"}}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.NgZone}]},t}(),is=function(t){function n(e,n){return t.call(this,e,n)||this}return Y(n,t),n.decorators=[{type:e.Directive,args:[{selector:"[mat-tab-label], [matTabLabel]"}]}],n.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef}]},n}(p.CdkPortal),os=function(){return function(){}}(),as=J(os),ss=function(t){function n(e){var n=t.call(this)||this;return n._viewContainerRef=e,n.textLabel="",n._contentPortal=null,n._labelChange=new i.Subject,n._disableChange=new i.Subject,n.position=null,n.origin=null,n.isActive=!1,n}return Y(n,t),Object.defineProperty(n.prototype,"content",{get:function(){return this._contentPortal},enumerable:!0,configurable:!0}),n.prototype.ngOnChanges=function(t){t.hasOwnProperty("textLabel")&&this._labelChange.next(),t.hasOwnProperty("disabled")&&this._disableChange.next()},n.prototype.ngOnDestroy=function(){this._disableChange.complete(),this._labelChange.complete()},n.prototype.ngOnInit=function(){this._contentPortal=new p.TemplatePortal(this._content,this._viewContainerRef)},n.decorators=[{type:e.Component,args:[{selector:"mat-tab",template:"<ng-template><ng-content></ng-content></ng-template>",inputs:["disabled"],changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,exportAs:"matTab"}]}],n.ctorParameters=function(){return[{type:e.ViewContainerRef}]},n.propDecorators={templateLabel:[{type:e.ContentChild,args:[is]}],_content:[{type:e.ViewChild,args:[e.TemplateRef]}],textLabel:[{type:e.Input,args:["label"]}]},n}(as),cs={translateTab:_.trigger("translateTab",[_.state("center, void, left-origin-center, right-origin-center",_.style({transform:"none"})),_.state("left",_.style({transform:"translate3d(-100%, 0, 0)"})),_.state("right",_.style({transform:"translate3d(100%, 0, 0)"})),_.transition("* => left, * => right, left => center, right => center",_.animate("500ms cubic-bezier(0.35, 0, 0.25, 1)")),_.transition("void => left-origin-center",[_.style({transform:"translate3d(-100%, 0, 0)"}),_.animate("500ms cubic-bezier(0.35, 0, 0.25, 1)")]),_.transition("void => right-origin-center",[_.style({transform:"translate3d(100%, 0, 0)"}),_.animate("500ms cubic-bezier(0.35, 0, 0.25, 1)")])])},ls=function(t){function n(e,n,r){var i=t.call(this,e,n)||this;return i._host=r,i}return Y(n,t),n.prototype.ngOnInit=function(){var t=this;this._host._isCenterPosition(this._host._position)&&this.attach(this._host._content),this._centeringSub=this._host._beforeCentering.subscribe(function(e){e&&(t.hasAttached()||t.attach(t._host._content))}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){t.detach()})},n.prototype.ngOnDestroy=function(){this._centeringSub&&!this._centeringSub.closed&&this._centeringSub.unsubscribe(),this._leavingSub&&!this._leavingSub.closed&&this._leavingSub.unsubscribe()},n.decorators=[{type:e.Directive,args:[{selector:"[matTabBodyHost]"}]}],n.ctorParameters=function(){return[{type:e.ComponentFactoryResolver},{type:e.ViewContainerRef},{type:us,decorators:[{type:e.Inject,args:[e.forwardRef(function(){return us})]}]}]},n}(p.CdkPortalOutlet),us=function(){function t(t,n){this._elementRef=t,this._dir=n,this._onCentering=new e.EventEmitter,this._beforeCentering=new e.EventEmitter,this._afterLeavingCenter=new e.EventEmitter,this._onCentered=new e.EventEmitter(!0)}return Object.defineProperty(t.prototype,"position",{set:function(t){this._position=t<0?"ltr"==this._getLayoutDirection()?"left":"right":t>0?"ltr"==this._getLayoutDirection()?"right":"left":"center"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"origin",{set:function(t){if(null!=t){var e=this._getLayoutDirection();this._origin="ltr"==e&&t<=0||"rtl"==e&&t>0?"left":"right"}},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){"center"==this._position&&this._origin&&(this._position="left"==this._origin?"left-origin-center":"right-origin-center")},t.prototype._onTranslateTabStarted=function(t){var e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)},t.prototype._onTranslateTabComplete=function(t){this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()},t.prototype._getLayoutDirection=function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},t.prototype._isCenterPosition=function(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t},t.decorators=[{type:e.Component,args:[{selector:"mat-tab-body",template:'<div class="mat-tab-body-content" #content [@translateTab]="_position" (@translateTab.start)="_onTranslateTabStarted($event)" (@translateTab.done)="_onTranslateTabComplete($event)"><ng-template matTabBodyHost></ng-template></div>',styles:[".mat-tab-body-content{-webkit-backface-visibility:hidden;backface-visibility:hidden;height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,animations:[cs.translateTab],host:{class:"mat-tab-body"}}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:n.Directionality,decorators:[{type:e.Optional}]}]},t.propDecorators={_onCentering:[{type:e.Output}],_beforeCentering:[{type:e.Output}],_afterLeavingCenter:[{type:e.Output}],_onCentered:[{type:e.Output}],_content:[{type:e.Input,args:["content"]}],position:[{type:e.Input,args:["position"]}],origin:[{type:e.Input,args:["origin"]}]},t}(),ps=0,hs=function(){return function(){}}(),ds=function(){return function(t){this._elementRef=t}}(),fs=tt(et(ds),"primary"),ms=function(t){function n(n,r){var i=t.call(this,n)||this;return i._changeDetectorRef=r,i._indexToSelect=0,i._tabBodyWrapperHeight=0,i._tabsSubscription=S.Subscription.EMPTY,i._tabLabelSubscription=S.Subscription.EMPTY,i._dynamicHeight=!1,i._selectedIndex=null,i.headerPosition="above",i.selectedIndexChange=new e.EventEmitter,i.focusChange=new e.EventEmitter,i.animationDone=new e.EventEmitter,i.selectedTabChange=new e.EventEmitter(!0),i.selectChange=i.selectedTabChange,i._groupId=ps++,i}return Y(n,t),Object.defineProperty(n.prototype,"dynamicHeight",{get:function(){return this._dynamicHeight},set:function(t){this._dynamicHeight=r.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_dynamicHeightDeprecated",{get:function(){return this._dynamicHeight},set:function(t){this._dynamicHeight=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(t){this._indexToSelect=r.coerceNumberProperty(t,null)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(t){var e=this._elementRef.nativeElement;e.classList.remove("mat-background-"+this.backgroundColor),t&&e.classList.add("mat-background-"+t),this._backgroundColor=t},enumerable:!0,configurable:!0}),n.prototype.ngAfterContentChecked=function(){var t=this,e=this._indexToSelect=Math.min(this._tabs.length-1,Math.max(this._indexToSelect||0,0));if(this._selectedIndex!=e&&null!=this._selectedIndex){var n=this._createChangeEvent(e);this.selectedTabChange.emit(n),Promise.resolve().then(function(){return t.selectedIndexChange.emit(e)})}this._tabs.forEach(function(n,r){n.position=r-e,n.isActive=r===e,null==t._selectedIndex||0!=n.position||n.origin||(n.origin=e-t._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())},n.prototype.ngAfterContentInit=function(){var t=this;this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){t._subscribeToTabLabels(),t._changeDetectorRef.markForCheck()})},n.prototype.ngOnDestroy=function(){this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()},n.prototype._focusChanged=function(t){this.focusChange.emit(this._createChangeEvent(t))},n.prototype._createChangeEvent=function(t){var e=new hs;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e},n.prototype._subscribeToTabLabels=function(){var t=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=w.merge.apply(void 0,this._tabs.map(function(t){return t._disableChange}).concat(this._tabs.map(function(t){return t._labelChange}))).subscribe(function(){t._changeDetectorRef.markForCheck()})},n.prototype._getTabLabelId=function(t){return"mat-tab-label-"+this._groupId+"-"+t},n.prototype._getTabContentId=function(t){return"mat-tab-content-"+this._groupId+"-"+t},n.prototype._setTabBodyWrapperHeight=function(t){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}},n.prototype._removeTabBodyWrapperHeight=function(){this._tabBodyWrapperHeight=this._tabBodyWrapper.nativeElement.clientHeight,this._tabBodyWrapper.nativeElement.style.height="",this.animationDone.emit()},n.prototype._handleClick=function(t,e,n){t.disabled||(this.selectedIndex=e.focusIndex=n)},n.prototype._getTabIndex=function(t,e){return t.disabled?null:this.selectedIndex===e?0:-1},n.decorators=[{type:e.Component,args:[{selector:"mat-tab-group",exportAs:"matTabGroup",template:'<mat-tab-header #tabHeader [selectedIndex]="selectedIndex" [disableRipple]="disableRipple" (indexFocused)="_focusChanged($event)" (selectFocusedIndex)="selectedIndex = $event"><div class="mat-tab-label" role="tab" matTabLabelWrapper mat-ripple *ngFor="let tab of _tabs; let i = index" [id]="_getTabLabelId(i)" [attr.tabIndex]="_getTabIndex(tab, i)" [attr.aria-controls]="_getTabContentId(i)" [attr.aria-selected]="selectedIndex == i" [class.mat-tab-label-active]="selectedIndex == i" [disabled]="tab.disabled" [matRippleDisabled]="tab.disabled || disableRipple" (click)="_handleClick(tab, tabHeader, i)"><ng-template [ngIf]="tab.templateLabel"><ng-template [cdkPortalOutlet]="tab.templateLabel"></ng-template></ng-template><ng-template [ngIf]="!tab.templateLabel">{{tab.textLabel}}</ng-template></div></mat-tab-header><div class="mat-tab-body-wrapper" #tabBodyWrapper><mat-tab-body role="tabpanel" *ngFor="let tab of _tabs; let i = index" [id]="_getTabContentId(i)" [attr.aria-labelledby]="_getTabLabelId(i)" [class.mat-tab-body-active]="selectedIndex == i" [content]="tab.content" [position]="tab.position" [origin]="tab.origin" (_onCentered)="_removeTabBodyWrapperHeight()" (_onCentering)="_setTabBodyWrapperHeight($event)"></mat-tab-body></div>',styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:0;opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}@media (max-width:600px){.mat-tab-label{padding:0 12px}}@media (max-width:960px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs] .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height .5s cubic-bezier(.35,0,.25,1)}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,inputs:["color","disableRipple"],host:{class:"mat-tab-group","[class.mat-tab-group-dynamic-height]":"dynamicHeight","[class.mat-tab-group-inverted-header]":'headerPosition === "below"'}}]}],n.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ChangeDetectorRef}]},n.propDecorators={_tabs:[{type:e.ContentChildren,args:[ss]}],_tabBodyWrapper:[{type:e.ViewChild,args:["tabBodyWrapper"]}],dynamicHeight:[{type:e.Input}],_dynamicHeightDeprecated:[{type:e.Input,args:["mat-dynamic-height"]}],selectedIndex:[{type:e.Input}],headerPosition:[{type:e.Input}],backgroundColor:[{type:e.Input}],selectedIndexChange:[{type:e.Output}],focusChange:[{type:e.Output}],animationDone:[{type:e.Output}],selectedTabChange:[{type:e.Output}],selectChange:[{type:e.Output}]},n}(fs),gs=function(){return function(){}}(),ys=J(gs),vs=function(t){function n(e){var n=t.call(this)||this;return n.elementRef=e,n}return Y(n,t),n.prototype.focus=function(){this.elementRef.nativeElement.focus()},n.prototype.getOffsetLeft=function(){return this.elementRef.nativeElement.offsetLeft},n.prototype.getOffsetWidth=function(){return this.elementRef.nativeElement.offsetWidth},n.decorators=[{type:e.Directive,args:[{selector:"[matTabLabelWrapper]",inputs:["disabled"],host:{"[class.mat-tab-disabled]":"disabled"}}]}],n.ctorParameters=function(){return[{type:e.ElementRef}]},n}(ys),bs=function(){return function(){}}(),_s=et(bs),ws=function(t){function i(n,r,i,o){var a=t.call(this)||this;return a._elementRef=n,a._changeDetectorRef=r,a._viewportRuler=i,a._dir=o,a._focusIndex=0,a._scrollDistance=0,a._selectedIndexChanged=!1,a._realignInkBar=S.Subscription.EMPTY,a._showPaginationControls=!1,a._disableScrollAfter=!0,a._disableScrollBefore=!0,a._selectedIndex=0,a.selectFocusedIndex=new e.EventEmitter,a.indexFocused=new e.EventEmitter,a}return Y(i,t),Object.defineProperty(i.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(t){t=r.coerceNumberProperty(t),this._selectedIndexChanged=this._selectedIndex!=t,this._selectedIndex=t,this._focusIndex=t},enumerable:!0,configurable:!0}),i.prototype.ngAfterContentChecked=function(){this._tabLabelCount!=this._labelWrappers.length&&(this._updatePagination(),this._tabLabelCount=this._labelWrappers.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())},i.prototype._handleKeydown=function(t){switch(t.keyCode){case c.RIGHT_ARROW:this._focusNextTab();break;case c.LEFT_ARROW:this._focusPreviousTab();break;case c.ENTER:case c.SPACE:this.selectFocusedIndex.emit(this.focusIndex),t.preventDefault()}},i.prototype.ngAfterContentInit=function(){var t=this,e=this._dir?this._dir.change:C.of(null),n=this._viewportRuler.change(150),r=function(){t._updatePagination(),t._alignInkBarToSelectedTab()};"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(r):r(),this._realignInkBar=w.merge(e,n).subscribe(r)},i.prototype.ngOnDestroy=function(){this._realignInkBar.unsubscribe()},i.prototype._onContentChanges=function(){this._updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()},i.prototype._updatePagination=function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()},Object.defineProperty(i.prototype,"focusIndex",{get:function(){return this._focusIndex},set:function(t){this._isValidIndex(t)&&this._focusIndex!=t&&(this._focusIndex=t,this.indexFocused.emit(t),this._setTabFocus(t))},enumerable:!0,configurable:!0}),i.prototype._isValidIndex=function(t){if(!this._labelWrappers)return!0;var e=this._labelWrappers?this._labelWrappers.toArray()[t]:null;return!!e&&!e.disabled},i.prototype._setTabFocus=function(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._labelWrappers&&this._labelWrappers.length){this._labelWrappers.toArray()[t].focus();var e=this._tabListContainer.nativeElement,n=this._getLayoutDirection();e.scrollLeft="ltr"==n?0:e.scrollWidth-e.offsetWidth}},i.prototype._moveFocus=function(t){if(this._labelWrappers)for(var e=this._labelWrappers.toArray(),n=this.focusIndex+t;n<e.length&&n>=0;n+=t)if(this._isValidIndex(n))return void(this.focusIndex=n)},i.prototype._focusNextTab=function(){this._moveFocus("ltr"==this._getLayoutDirection()?1:-1)},i.prototype._focusPreviousTab=function(){this._moveFocus("ltr"==this._getLayoutDirection()?-1:1)},i.prototype._getLayoutDirection=function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},i.prototype._updateTabScrollPosition=function(){var t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform="translate3d("+e+"px, 0, 0)"},Object.defineProperty(i.prototype,"scrollDistance",{get:function(){return this._scrollDistance},set:function(t){this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),t)),this._scrollDistanceChanged=!0,this._checkScrollingControls()},enumerable:!0,configurable:!0}),i.prototype._scrollHeader=function(t){var e=this._tabListContainer.nativeElement.offsetWidth;this.scrollDistance+=("before"==t?-1:1)*e/3},i.prototype._scrollToLabel=function(t){var e=this._labelWrappers?this._labelWrappers.toArray()[t]:null;if(e){var n,r,i=this._tabListContainer.nativeElement.offsetWidth;"ltr"==this._getLayoutDirection()?r=(n=e.getOffsetLeft())+e.getOffsetWidth():n=(r=this._tabList.nativeElement.offsetWidth-e.getOffsetLeft())-e.getOffsetWidth();var o=this.scrollDistance,a=this.scrollDistance+i;n<o?this.scrollDistance-=o-n+60:r>a&&(this.scrollDistance+=r-a+60)}},i.prototype._checkPaginationEnabled=function(){var t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t},i.prototype._checkScrollingControls=function(){this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck()},i.prototype._getMaxScrollDistance=function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0},i.prototype._alignInkBarToSelectedTab=function(){var t=this._labelWrappers&&this._labelWrappers.length?this._labelWrappers.toArray()[this.selectedIndex].elementRef.nativeElement:null;this._inkBar.alignToElement(t)},i.decorators=[{type:e.Component,args:[{selector:"mat-tab-header",template:'<div class="mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4" aria-hidden="true" mat-ripple [matRippleDisabled]="_disableScrollBefore || disableRipple" [class.mat-tab-header-pagination-disabled]="_disableScrollBefore" (click)="_scrollHeader(\'before\')"><div class="mat-tab-header-pagination-chevron"></div></div><div class="mat-tab-label-container" #tabListContainer (keydown)="_handleKeydown($event)"><div class="mat-tab-list" #tabList role="tablist" (cdkObserveContent)="_onContentChanges()"><div class="mat-tab-labels"><ng-content></ng-content></div><mat-ink-bar></mat-ink-bar></div></div><div class="mat-tab-header-pagination mat-tab-header-pagination-after mat-elevation-z4" aria-hidden="true" mat-ripple [matRippleDisabled]="_disableScrollAfter || disableRipple" [class.mat-tab-header-pagination-disabled]="_disableScrollAfter" (click)="_scrollHeader(\'after\')"><div class="mat-tab-header-pagination-chevron"></div></div>',styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:0;opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}@media (max-width:600px){.mat-tab-label{min-width:72px}}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:.5s cubic-bezier(.35,0,.25,1)}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.mat-tab-header-pagination{position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-pagination-after,.mat-tab-header-rtl .mat-tab-header-pagination-before{padding-right:4px}.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:'';height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list{flex-grow:1;position:relative;transition:transform .5s cubic-bezier(.35,0,.25,1)}.mat-tab-labels{display:flex}"],inputs:["disableRipple"],encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,host:{class:"mat-tab-header","[class.mat-tab-header-pagination-controls-enabled]":"_showPaginationControls","[class.mat-tab-header-rtl]":"_getLayoutDirection() == 'rtl'"}}]}],i.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ChangeDetectorRef},{type:F.ViewportRuler},{type:n.Directionality,decorators:[{type:e.Optional}]}]},i.propDecorators={_labelWrappers:[{type:e.ContentChildren,args:[vs]}],_inkBar:[{type:e.ViewChild,args:[rs]}],_tabListContainer:[{type:e.ViewChild,args:["tabListContainer"]}],_tabList:[{type:e.ViewChild,args:["tabList"]}],selectedIndex:[{type:e.Input}],selectFocusedIndex:[{type:e.Output}],indexFocused:[{type:e.Output}]},i}(_s),Cs=function(){return function(t){this._elementRef=t}}(),xs=et(tt(Cs,"primary")),Es=function(t){function o(e,n,r,o,a){var s=t.call(this,e)||this;return s._dir=n,s._ngZone=r,s._changeDetectorRef=o,s._viewportRuler=a,s._onDestroy=new i.Subject,s._disableRipple=!1,s}return Y(o,t),Object.defineProperty(o.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(t){var e=this._elementRef.nativeElement;e.classList.remove("mat-background-"+this.backgroundColor),t&&e.classList.add("mat-background-"+t),this._backgroundColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=r.coerceBooleanProperty(t),this._setLinkDisableRipple()},enumerable:!0,configurable:!0}),o.prototype.updateActiveLink=function(t){this._activeLinkChanged=this._activeLinkElement!=t,this._activeLinkElement=t,this._activeLinkChanged&&this._changeDetectorRef.markForCheck()},o.prototype.ngAfterContentInit=function(){var t=this;this._ngZone.runOutsideAngular(function(){var e=t._dir?t._dir.change:C.of(null);return w.merge(e,t._viewportRuler.change(10)).pipe(N.takeUntil(t._onDestroy)).subscribe(function(){return t._alignInkBar()})}),this._setLinkDisableRipple()},o.prototype.ngAfterContentChecked=function(){this._activeLinkChanged&&(this._alignInkBar(),this._activeLinkChanged=!1)},o.prototype.ngOnDestroy=function(){this._onDestroy.next(),this._onDestroy.complete()},o.prototype._alignInkBar=function(){this._activeLinkElement&&this._inkBar.alignToElement(this._activeLinkElement.nativeElement)},o.prototype._setLinkDisableRipple=function(){var t=this;this._tabLinks&&this._tabLinks.forEach(function(e){return e.disableRipple=t.disableRipple})},o.decorators=[{type:e.Component,args:[{selector:"[mat-tab-nav-bar]",exportAs:"matTabNavBar, matTabNav",inputs:["color","disableRipple"],template:'<div class="mat-tab-links" (cdkObserveContent)="_alignInkBar()"><ng-content></ng-content><mat-ink-bar></mat-ink-bar></div>',styles:[".mat-tab-nav-bar{overflow:hidden;position:relative;flex-shrink:0}.mat-tab-links{position:relative}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden}.mat-tab-link:focus{outline:0;opacity:1}.mat-tab-link.mat-tab-disabled{cursor:default}@media (max-width:600px){.mat-tab-link{min-width:72px}}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:.5s cubic-bezier(.35,0,.25,1)}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}"],host:{class:"mat-tab-nav-bar"},encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],o.ctorParameters=function(){return[{type:e.ElementRef},{type:n.Directionality,decorators:[{type:e.Optional}]},{type:e.NgZone},{type:e.ChangeDetectorRef},{type:F.ViewportRuler}]},o.propDecorators={_inkBar:[{type:e.ViewChild,args:[rs]}],_tabLinks:[{type:e.ContentChildren,args:[e.forwardRef(function(){return Os}),{descendants:!0}]}],backgroundColor:[{type:e.Input}]},o}(xs),Ss=function(){return function(){}}(),ks=nt(et(J(Ss))),Os=function(t){function n(e,n,r,i,o,a){var s=t.call(this)||this;return s._tabNavBar=e,s._elementRef=n,s._isActive=!1,s.rippleConfig={},s._tabLinkRipple=new At(s,r,n,i),s._tabLinkRipple.setupTriggerEvents(n.nativeElement),s.tabIndex=parseInt(a)||0,o&&(s.rippleConfig={speedFactor:o.baseSpeedFactor}),s}return Y(n,t),Object.defineProperty(n.prototype,"active",{get:function(){return this._isActive},set:function(t){this._isActive=t,t&&this._tabNavBar.updateActiveLink(this._elementRef)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rippleDisabled",{get:function(){return this.disabled||this.disableRipple},enumerable:!0,configurable:!0}),n.prototype.ngOnDestroy=function(){this._tabLinkRipple._removeTriggerEvents()},n.decorators=[{type:e.Directive,args:[{selector:"[mat-tab-link], [matTabLink]",exportAs:"matTabLink",inputs:["disabled","disableRipple","tabIndex"],host:{class:"mat-tab-link","[attr.aria-disabled]":"disabled.toString()","[attr.tabIndex]":"tabIndex","[class.mat-tab-disabled]":"disabled","[class.mat-tab-label-active]":"active"}}]}],n.ctorParameters=function(){return[{type:Es},{type:e.ElementRef},{type:e.NgZone},{type:s.Platform},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Tt]}]},{type:void 0,decorators:[{type:e.Attribute,args:["tabindex"]}]}]},n.propDecorators={active:[{type:e.Input}]},n}(ks),Ps=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule,Z,p.PortalModule,It,E.ObserversModule,F.ScrollDispatchModule],exports:[Z,ms,is,ss,Es,Os],declarations:[ms,is,ss,rs,vs,Es,Os,us,ls,ws],providers:[F.VIEWPORT_RULER_PROVIDER]}]}],t.ctorParameters=function(){return[]},t}(),As=function(){return function(t){this._elementRef=t}}(),Ts=tt(As),Ms=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"mat-toolbar-row",exportAs:"matToolbarRow",host:{class:"mat-toolbar-row"}}]}],t.ctorParameters=function(){return[]},t}(),Is=function(t){function n(e,n){var r=t.call(this,e)||this;return r._platform=n,r}return Y(n,t),n.prototype.ngAfterViewInit=function(){var t=this;e.isDevMode()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return t._checkToolbarMixedModes()}))},n.prototype._checkToolbarMixedModes=function(){this._toolbarRows.length&&([].slice.call(this._elementRef.nativeElement.childNodes).filter(function(t){return!(t.classList&&t.classList.contains("mat-toolbar-row"))}).filter(function(t){return t.nodeType!==Node.COMMENT_NODE}).some(function(t){return t.textContent.trim()})&&Rs())},n.decorators=[{type:e.Component,args:[{selector:"mat-toolbar",exportAs:"matToolbar",template:'<ng-content></ng-content><ng-content select="mat-toolbar-row"></ng-content>',styles:[".mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media (max-width:600px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}"],inputs:["color"],host:{class:"mat-toolbar","[class.mat-toolbar-multiple-rows]":"this._toolbarRows.length","[class.mat-toolbar-single-row]":"!this._toolbarRows.length"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1}]}],n.ctorParameters=function(){return[{type:e.ElementRef},{type:s.Platform}]},n.propDecorators={_toolbarRows:[{type:e.ContentChildren,args:[Ms]}]},n}(Ts);function Rs(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `<mat-toolbar-row>` elements explicitly or just place content inside of a `<mat-toolbar>` for a single row.")}var Ds=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[Z,s.PlatformModule],exports:[Is,Ms,Z],declarations:[Is,Ms]}]}],t.ctorParameters=function(){return[]},t}(),Ns=new e.Version("5.1.0");t.VERSION=Ns,t.MatAutocompleteSelectedEvent=le,t.MatAutocompleteBase=ue,t._MatAutocompleteMixinBase=pe,t.MatAutocomplete=he,t.MatAutocompleteModule=be,t.AUTOCOMPLETE_OPTION_HEIGHT=48,t.AUTOCOMPLETE_PANEL_HEIGHT=256,t.MAT_AUTOCOMPLETE_SCROLL_STRATEGY=de,t.MAT_AUTOCOMPLETE_SCROLL_STRATEGY_PROVIDER_FACTORY=fe,t.MAT_AUTOCOMPLETE_SCROLL_STRATEGY_PROVIDER=me,t.MAT_AUTOCOMPLETE_VALUE_ACCESSOR=ge,t.getMatAutocompleteMissingPanelError=ye,t.MatAutocompleteTrigger=ve,t.MatButtonModule=Te,t.MatButtonCssMatStyler=we,t.MatRaisedButtonCssMatStyler=Ce,t.MatIconButtonCssMatStyler=xe,t.MatFab=Ee,t.MatMiniFab=Se,t.MatButtonBase=ke,t._MatButtonMixinBase=Oe,t.MatButton=Pe,t.MatAnchor=Ae,t.MatButtonToggleGroupBase=Me,t._MatButtonToggleGroupMixinBase=Ie,t.MAT_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR=Re,t.MatButtonToggleChange=Ne,t.MatButtonToggleGroup=Le,t.MatButtonToggleGroupMultiple=je,t.MatButtonToggle=Fe,t.MatButtonToggleModule=Ve,t.MatCardContent=Be,t.MatCardTitle=Ue,t.MatCardSubtitle=He,t.MatCardActions=ze,t.MatCardFooter=Ge,t.MatCardImage=We,t.MatCardSmImage=qe,t.MatCardMdImage=Ye,t.MatCardLgImage=Ke,t.MatCardXlImage=$e,t.MatCardAvatar=Xe,t.MatCard=Qe,t.MatCardHeader=Ze,t.MatCardTitleGroup=Je,t.MatCardModule=tn,t.MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR=rn,t.TransitionCheckState=on,t.MatCheckboxChange=an,t.MatCheckboxBase=sn,t._MatCheckboxMixinBase=cn,t.MatCheckbox=ln,t.MAT_CHECKBOX_CLICK_ACTION=en,t.MatCheckboxModule=hn,t.MAT_CHECKBOX_REQUIRED_VALIDATOR=un,t.MatCheckboxRequiredValidator=pn,t.MatChipsModule=Sn,t.MatChipListBase=bn,t._MatChipListMixinBase=_n,t.MatChipListChange=Cn,t.MatChipList=xn,t.MatChipSelectionChange=dn,t.MatChipBase=fn,t._MatChipMixinBase=mn,t.MatBasicChip=gn,t.MatChip=yn,t.MatChipRemove=vn,t.MatChipInput=En,t.MAT_PLACEHOLDER_GLOBAL_OPTIONS=Gt,t.AnimationCurves=$,t.AnimationDurations=X,t.MatCommonModule=Z,t.MATERIAL_SANITY_CHECKS=Q,t.mixinDisabled=J,t.mixinColor=tt,t.mixinDisableRipple=et,t.mixinTabIndex=nt,t.mixinErrorState=rt,t.NativeDateModule=gt,t.MatNativeDateModule=vt,t.MAT_DATE_LOCALE=it,t.MAT_DATE_LOCALE_PROVIDER=ot,t.DateAdapter=at,t.MAT_DATE_FORMATS=st,t.NativeDateAdapter=ft,t.MAT_NATIVE_DATE_FORMATS=mt,t.ShowOnDirtyErrorStateMatcher=bt,t.ErrorStateMatcher=_t,t.MAT_HAMMER_OPTIONS=wt,t.GestureConfig=Ct,t.MatLine=xt,t.MatLineSetter=Et,t.MatLineModule=St,t.MatOptionModule=zt,t.MatOptionSelectionChange=Bt,t.MAT_OPTION_PARENT_COMPONENT=Ut,t.MatOption=Ht,t.MatOptgroupBase=Nt,t._MatOptgroupMixinBase=Lt,t.MatOptgroup=Ft,t.MAT_LABEL_GLOBAL_OPTIONS=Gt,t.MatRippleModule=It,t.MAT_RIPPLE_GLOBAL_OPTIONS=Tt,t.MatRipple=Mt,t.RippleState=kt,t.RippleRef=Ot,t.RIPPLE_FADE_IN_DURATION=450,t.RIPPLE_FADE_OUT_DURATION=400,t.RippleRenderer=At,t.MatPseudoCheckboxModule=Dt,t.MatPseudoCheckbox=Rt,t.applyCssTransform=Wt,t.JAN=0,t.FEB=1,t.MAR=2,t.APR=3,t.MAY=4,t.JUN=5,t.JUL=6,t.AUG=7,t.SEP=8,t.OCT=9,t.NOV=10,t.DEC=11,t.ɵa31=yr,t.MatDatepickerModule=Mr,t.MatCalendar=br,t.MatCalendarCell=fr,t.MatCalendarBody=mr,t.MAT_DATEPICKER_SCROLL_STRATEGY=wr,t.MAT_DATEPICKER_SCROLL_STRATEGY_PROVIDER_FACTORY=Cr,t.MAT_DATEPICKER_SCROLL_STRATEGY_PROVIDER=xr,t.MatDatepickerContent=Er,t.MatDatepicker=Sr,t.MAT_DATEPICKER_VALUE_ACCESSOR=kr,t.MAT_DATEPICKER_VALIDATORS=Or,t.MatDatepickerInputEvent=Pr,t.MatDatepickerInput=Ar,t.MatDatepickerIntl=dr,t.MatDatepickerToggle=Tr,t.MatMonthView=gr,t.MatYearView=vr,t.MatDialogModule=zn,t.MAT_DIALOG_DATA=In,t.MAT_DIALOG_DEFAULT_OPTIONS=Rn,t.MAT_DIALOG_SCROLL_STRATEGY=Dn,t.MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY=Nn,t.MAT_DIALOG_SCROLL_STRATEGY_PROVIDER=Ln,t.MatDialog=jn,t.throwMatDialogContentAlreadyAttachedError=Pn,t.MatDialogContainer=An,t.MatDialogClose=Vn,t.MatDialogTitle=Bn,t.MatDialogContent=Un,t.MatDialogActions=Hn,t.MatDialogConfig=kn,t.MatDialogRef=Mn,t.matDialogAnimations=On,t.MatDivider=Ir,t.MatDividerModule=Rr,t.MatExpansionModule=Wr,t.MatAccordion=Dr,t.MatExpansionPanelBase=Fr,t._MatExpansionPanelMixinBase=Vr,t.MatExpansionPanel=Br,t.MatExpansionPanelActionRow=Ur,t.MatExpansionPanelHeader=Hr,t.MatExpansionPanelDescription=zr,t.MatExpansionPanelTitle=Gr,t.MatExpansionPanelContent=Nr,t.EXPANSION_PANEL_ANIMATION_TIMING=Lr,t.matExpansionAnimations=jr,t.MatFormFieldModule=se,t.MatError=Yt,t.MatFormField=ae,t.MatFormFieldControl=Kt,t.getMatFormFieldPlaceholderConflictError=$t,t.getMatFormFieldDuplicatedHintError=Xt,t.getMatFormFieldMissingControlError=Qt,t.MatHint=Jt,t.MatPlaceholder=te,t.MatPrefix=ne,t.MatSuffix=re,t.MatLabel=ee,t.matFormFieldAnimations=ie,t.MatGridListModule=ci,t.MatGridList=si,t.MatGridTile=Kr,t.MatGridTileText=$r,t.MatGridAvatarCssMatStyler=Xr,t.MatGridTileHeaderCssMatStyler=Qr,t.MatGridTileFooterCssMatStyler=Zr,t.MatIconModule=nr,t.MatIconBase=Jn,t._MatIconMixinBase=tr,t.MatIcon=er,t.getMatIconNameNotFoundError=Gn,t.getMatIconNoHttpProviderError=Wn,t.getMatIconFailedToSanitizeError=qn,t.MatIconRegistry=Kn,t.ICON_REGISTRY_PROVIDER_FACTORY=$n,t.ICON_REGISTRY_PROVIDER=Xn,t.MatInputModule=pr,t.MatTextareaAutosize=rr,t.MatInputBase=cr,t._MatInputMixinBase=lr,t.MatInput=ur,t.getMatInputUnsupportedTypeError=ir,t.MAT_INPUT_VALUE_ACCESSOR=or,t.MatListModule=Pi,t.MatListBase=li,t._MatListMixinBase=ui,t.MatListItemBase=pi,t._MatListItemMixinBase=hi,t.MatNavList=di,t.MatList=fi,t.MatListAvatarCssMatStyler=mi,t.MatListIconCssMatStyler=gi,t.MatListSubheaderCssMatStyler=yi,t.MatListItem=vi,t.MatSelectionListBase=bi,t._MatSelectionListMixinBase=_i,t.MatListOptionBase=wi,t._MatListOptionMixinBase=Ci,t.MAT_SELECTION_LIST_VALUE_ACCESSOR=xi,t.MatListOptionChange=Ei,t.MatSelectionListChange=Si,t.MatListOption=ki,t.MatSelectionList=Oi,t.ɵa20=Ii,t.ɵb20=Ri,t.ɵd20=Vi,t.ɵc20=Fi,t.MAT_MENU_SCROLL_STRATEGY=ji,t.MatMenuModule=Hi,t.MatMenu=Li,t.MAT_MENU_DEFAULT_OPTIONS=Ni,t.MatMenuItem=Di,t.MatMenuTrigger=Bi,t.matMenuAnimations=Ai,t.fadeInItems=Ti,t.transformMenu=Mi,t.MatPaginatorModule=_o,t.PageEvent=vo,t.MatPaginator=bo,t.MatPaginatorIntl=mo,t.MAT_PAGINATOR_INTL_PROVIDER_FACTORY=go,t.MAT_PAGINATOR_INTL_PROVIDER=yo,t.MatProgressBarModule=xo,t.MatProgressBar=wo,t.MatProgressSpinnerModule=Ao,t.MatProgressSpinnerBase=So,t._MatProgressSpinnerMixinBase=ko,t.MatProgressSpinner=Oo,t.MatSpinner=Po,t.MatRadioModule=Vo,t.MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR=Mo,t.MatRadioChange=Io,t.MatRadioGroupBase=Ro,t._MatRadioGroupMixinBase=Do,t.MatRadioGroup=No,t.MatRadioButtonBase=Lo,t._MatRadioButtonMixinBase=jo,t.MatRadioButton=Fo,t.MatSelectModule=eo,t.SELECT_PANEL_MAX_HEIGHT=256,t.SELECT_PANEL_PADDING_X=16,t.SELECT_PANEL_INDENT_PADDING_X=32,t.SELECT_ITEM_HEIGHT_EM=3,t.SELECT_MULTIPLE_PANEL_PADDING_X=44,t.SELECT_PANEL_VIEWPORT_PADDING=8,t.MAT_SELECT_SCROLL_STRATEGY=Yi,t.MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY=Ki,t.MAT_SELECT_SCROLL_STRATEGY_PROVIDER=$i,t.MatSelectChange=Xi,t.MatSelectBase=Qi,t._MatSelectMixinBase=Zi,t.MatSelectTrigger=Ji,t.MatSelect=to,t.matSelectAnimations=zi,t.transformPanel=Gi,t.fadeInContent=Wi,t.MatSidenavModule=Xo,t.throwMatDuplicatedDrawerError=Uo,t.MatDrawerToggleResult=Ho,t.MAT_DRAWER_DEFAULT_AUTOSIZE=zo,t.MatDrawerContent=Go,t.MatDrawer=Wo,t.MatDrawerContainer=qo,t.MatSidenavContent=Yo,t.MatSidenav=Ko,t.MatSidenavContainer=$o,t.matDrawerAnimations=Bo,t.MatSlideToggleModule=ia,t.MAT_SLIDE_TOGGLE_VALUE_ACCESSOR=Zo,t.MatSlideToggleChange=Jo,t.MatSlideToggleBase=ta,t._MatSlideToggleMixinBase=ea,t.MatSlideToggle=na,t.MatSliderModule=ua,t.MAT_SLIDER_VALUE_ACCESSOR=oa,t.MatSliderChange=aa,t.MatSliderBase=sa,t._MatSliderMixinBase=ca,t.MatSlider=la,t.MatSnackBarModule=wa,t.MatSnackBar=ba,t.MatSnackBarContainer=va,t.MAT_SNACK_BAR_DATA=ha,t.MatSnackBarConfig=da,t.MatSnackBarRef=pa,t.SimpleSnackBar=ya,t.SHOW_ANIMATION=fa,t.HIDE_ANIMATION=ma,t.matSnackBarAnimations=ga,t.MatSortModule=Ra,t.MatSortHeaderBase=Ta,t._MatSortHeaderMixinBase=Ma,t.MatSortHeader=Ia,t.MatSortHeaderIntl=Sa,t.MAT_SORT_HEADER_INTL_PROVIDER_FACTORY=ka,t.MAT_SORT_HEADER_INTL_PROVIDER=Oa,t.MatSortBase=Ca,t._MatSortMixinBase=xa,t.MatSort=Ea,t.matSortAnimations=Aa,t.MatStepperModule=Ga,t.MatStepLabel=Da,t.MatStep=Fa,t.MatStepper=Va,t.MatHorizontalStepper=Ba,t.MatVerticalStepper=Ua,t.MatStepperNext=Ha,t.MatStepperPrevious=za,t.MatStepHeader=La,t.MatStepperIntl=Na,t.matStepperAnimations=ja,t.MatTableModule=es,t.MatCellDef=qa,t.MatHeaderCellDef=Ya,t.MatColumnDef=Ka,t.MatHeaderCell=$a,t.MatCell=Xa,t.MatTable=Wa,t.MatHeaderRowDef=Qa,t.MatRowDef=Za,t.MatHeaderRow=Ja,t.MatRow=ts,t.MatTableDataSource=ns,t.ɵe22=os,t.ɵf22=as,t.ɵa22=bs,t.ɵb22=_s,t.ɵc22=gs,t.ɵd22=ys,t.ɵi22=Ss,t.ɵg22=Cs,t.ɵj22=ks,t.ɵh22=xs,t.MatInkBar=rs,t.MatTabBody=us,t.MatTabBodyPortal=ls,t.MatTabHeader=ws,t.MatTabLabelWrapper=vs,t.MatTab=ss,t.MatTabLabel=is,t.MatTabNav=Es,t.MatTabLink=Os,t.MatTabsModule=Ps,t.MatTabChangeEvent=hs,t.MatTabGroupBase=ds,t._MatTabGroupMixinBase=fs,t.MatTabGroup=ms,t.matTabsAnimations=cs,t.MatToolbarModule=Ds,t.MatToolbarBase=As,t._MatToolbarMixinBase=Ts,t.MatToolbarRow=Ms,t.MatToolbar=Is,t.throwToolbarMixedModesError=Rs,t.MatTooltipModule=fo,t.SCROLL_THROTTLE_MS=ro,t.TOOLTIP_PANEL_CLASS=io,t.getMatTooltipInvalidPositionError=oo,t.MAT_TOOLTIP_SCROLL_STRATEGY=ao,t.MAT_TOOLTIP_SCROLL_STRATEGY_PROVIDER_FACTORY=so,t.MAT_TOOLTIP_SCROLL_STRATEGY_PROVIDER=co,t.MAT_TOOLTIP_DEFAULT_OPTIONS=lo,t.MatTooltip=uo,t.TooltipComponent=po,t.matTooltipAnimations=no,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("@angular/cdk/bidi"),t("@angular/cdk/coercion"),t("rxjs/Subject"),t("@angular/platform-browser"),t("@angular/common"),t("@angular/cdk/platform"),t("@angular/cdk/keycodes"),t("@angular/cdk/a11y"),t("@angular/cdk/overlay"),t("@angular/cdk/portal"),t("rxjs/operators/filter"),t("rxjs/operators/take"),t("rxjs/operators/switchMap"),t("rxjs/operators/tap"),t("rxjs/operators/delay"),t("@angular/forms"),t("rxjs/operators/startWith"),t("rxjs/observable/fromEvent"),t("@angular/animations"),t("rxjs/observable/merge"),t("rxjs/observable/of"),t("@angular/cdk/collections"),t("@angular/cdk/observers"),t("rxjs/Subscription"),t("rxjs/observable/defer"),t("rxjs/operators/catchError"),t("rxjs/operators/finalize"),t("rxjs/operators/map"),t("rxjs/operators/share"),t("@angular/common/http"),t("rxjs/observable/forkJoin"),t("rxjs/observable/throw"),t("rxjs/operators/auditTime"),t("rxjs/operators/takeUntil"),t("@angular/cdk/accordion"),t("rxjs/Observable"),t("@angular/cdk/scrolling"),t("rxjs/operators/debounceTime"),t("@angular/cdk/layout"),t("@angular/cdk/table"),t("@angular/cdk/stepper"),t("rxjs/BehaviorSubject"),t("rxjs/operators/combineLatest"),t("rxjs/observable/empty")):i((r.ng=r.ng||{},r.ng.material=r.ng.material||{}),r.ng.core,r.ng.cdk.bidi,r.ng.cdk.coercion,r.Rx,r.ng.platformBrowser,r.ng.common,r.ng.cdk.platform,r.ng.cdk.keycodes,r.ng.cdk.a11y,r.ng.cdk.overlay,r.ng.cdk.portal,r.Rx.operators,r.Rx.operators,r.Rx.operators,r.Rx.operators,r.Rx.operators,r.ng.forms,r.Rx.operators,r.Rx.Observable,r.ng.animations,r.Rx.Observable,r.Rx.Observable,r.ng.cdk.collections,r.ng.cdk.observers,r.Rx,r.Rx.Observable,r.Rx.operators,r.Rx.operators,r.Rx.operators,r.Rx.operators,r.ng.common.http,r.Rx.Observable,r.Rx.Observable,r.Rx.operators,r.Rx.operators,r.ng.cdk.accordion,r.Rx,r.ng.cdk.scrolling,r.Rx.operators,r.ng.cdk.layout,r.ng.cdk.table,r.ng.cdk.stepper,r.Rx,r.Rx.operators,r.Rx.Observable)},{"@angular/animations":40,"@angular/cdk/a11y":41,"@angular/cdk/accordion":42,"@angular/cdk/bidi":43,"@angular/cdk/coercion":44,"@angular/cdk/collections":45,"@angular/cdk/keycodes":46,"@angular/cdk/layout":47,"@angular/cdk/observers":48,"@angular/cdk/overlay":49,"@angular/cdk/platform":50,"@angular/cdk/portal":51,"@angular/cdk/scrolling":52,"@angular/cdk/stepper":53,"@angular/cdk/table":54,"@angular/common":56,"@angular/common/http":55,"@angular/core":58,"@angular/forms":59,"@angular/platform-browser":63,"rxjs/BehaviorSubject":65,"rxjs/Observable":68,"rxjs/Subject":72,"rxjs/Subscription":75,"rxjs/observable/defer":92,"rxjs/observable/empty":93,"rxjs/observable/forkJoin":94,"rxjs/observable/fromEvent":96,"rxjs/observable/merge":99,"rxjs/observable/of":100,"rxjs/observable/throw":101,"rxjs/operators/auditTime":116,"rxjs/operators/catchError":117,"rxjs/operators/combineLatest":118,"rxjs/operators/debounceTime":121,"rxjs/operators/delay":123,"rxjs/operators/filter":125,"rxjs/operators/finalize":126,"rxjs/operators/map":129,"rxjs/operators/share":137,"rxjs/operators/startWith":138,"rxjs/operators/switchMap":139,"rxjs/operators/take":140,"rxjs/operators/takeUntil":142,"rxjs/operators/tap":143}],61:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i){"use strict";var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function a(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var s,c=((s=new Map).set(e.Identifiers.ANALYZE_FOR_ENTRY_COMPONENTS,n.ANALYZE_FOR_ENTRY_COMPONENTS),s.set(e.Identifiers.ElementRef,n.ElementRef),s.set(e.Identifiers.NgModuleRef,n.NgModuleRef),s.set(e.Identifiers.ViewContainerRef,n.ViewContainerRef),s.set(e.Identifiers.ChangeDetectorRef,n.ChangeDetectorRef),s.set(e.Identifiers.QueryList,n.QueryList),s.set(e.Identifiers.TemplateRef,n.TemplateRef),s.set(e.Identifiers.CodegenComponentFactoryResolver,n.ɵCodegenComponentFactoryResolver),s.set(e.Identifiers.ComponentFactoryResolver,n.ComponentFactoryResolver),s.set(e.Identifiers.ComponentFactory,n.ComponentFactory),s.set(e.Identifiers.ComponentRef,n.ComponentRef),s.set(e.Identifiers.NgModuleFactory,n.NgModuleFactory),s.set(e.Identifiers.createModuleFactory,n.ɵcmf),s.set(e.Identifiers.moduleDef,n.ɵmod),s.set(e.Identifiers.moduleProviderDef,n.ɵmpd),s.set(e.Identifiers.RegisterModuleFactoryFn,n.ɵregisterModuleFactory),s.set(e.Identifiers.Injector,n.Injector),s.set(e.Identifiers.ViewEncapsulation,n.ViewEncapsulation),s.set(e.Identifiers.ChangeDetectionStrategy,n.ChangeDetectionStrategy),s.set(e.Identifiers.SecurityContext,n.SecurityContext),s.set(e.Identifiers.LOCALE_ID,n.LOCALE_ID),s.set(e.Identifiers.TRANSLATIONS_FORMAT,n.TRANSLATIONS_FORMAT),s.set(e.Identifiers.inlineInterpolate,n.ɵinlineInterpolate),s.set(e.Identifiers.interpolate,n.ɵinterpolate),s.set(e.Identifiers.EMPTY_ARRAY,n.ɵEMPTY_ARRAY),s.set(e.Identifiers.EMPTY_MAP,n.ɵEMPTY_MAP),s.set(e.Identifiers.Renderer,n.Renderer),s.set(e.Identifiers.viewDef,n.ɵvid),s.set(e.Identifiers.elementDef,n.ɵeld),s.set(e.Identifiers.anchorDef,n.ɵand),s.set(e.Identifiers.textDef,n.ɵted),s.set(e.Identifiers.directiveDef,n.ɵdid),s.set(e.Identifiers.providerDef,n.ɵprd),s.set(e.Identifiers.queryDef,n.ɵqud),s.set(e.Identifiers.pureArrayDef,n.ɵpad),s.set(e.Identifiers.pureObjectDef,n.ɵpod),s.set(e.Identifiers.purePipeDef,n.ɵppd),s.set(e.Identifiers.pipeDef,n.ɵpid),s.set(e.Identifiers.nodeValue,n.ɵnov),s.set(e.Identifiers.ngContentDef,n.ɵncd),s.set(e.Identifiers.unwrapValue,n.ɵunv),s.set(e.Identifiers.createRendererType2,n.ɵcrt),s.set(e.Identifiers.createComponentFactory,n.ɵccf),s),l=function(){function t(){this.builtinExternalReferences=new Map,this.reflectionCapabilities=new n.ɵReflectionCapabilities}return t.prototype.componentModuleUrl=function(t,r){var i=r.moduleId;if("string"==typeof i)return e.getUrlScheme(i)?i:"package:"+i;if(null!==i&&void 0!==i)throw e.syntaxError('moduleId should be a string in "'+n.ɵstringify(t)+"\". 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"./"+n.ɵstringify(t)},t.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},t.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},t.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},t.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},t.prototype.guards=function(t){return this.reflectionCapabilities.guards(t)},t.prototype.resolveExternalReference=function(t){return c.get(t)||t.runtime},t}();var u=new n.InjectionToken("ErrorCollector"),p={provide:n.PACKAGE_ROOT_URL,useValue:"/"},h={get:function(t){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+t+'"')}},d=new n.InjectionToken("HtmlParser"),f=function(){function t(t,n,r,i,o,a,s,c,l,u){this._metadataResolver=n,this._delegate=new e.JitCompiler(n,r,i,o,a,s,c,l,u,this.getExtraNgModuleProviders.bind(this)),this.injector=t}return t.prototype.getExtraNgModuleProviders=function(){return[this._metadataResolver.getProviderMetadata(new e.ProviderMeta(n.Compiler,{useValue:this}))]},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){var e=this._delegate.compileModuleAndAllComponentsSync(t);return{ngModuleFactory:e.ngModuleFactory,componentFactories:e.componentFactories}},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._delegate.compileModuleAndAllComponentsAsync(t).then(function(t){return{ngModuleFactory:t.ngModuleFactory,componentFactories:t.componentFactories}})},t.prototype.loadAotSummaries=function(t){this._delegate.loadAotSummaries(t)},t.prototype.hasAotSummary=function(t){return this._delegate.hasAotSummary(t)},t.prototype.getComponentFactory=function(t){return this._delegate.getComponentFactory(t)},t.prototype.clearCache=function(){this._delegate.clearCache()},t.prototype.clearCacheFor=function(t){this._delegate.clearCacheFor(t)},t}(),m=[{provide:e.CompileReflector,useValue:new l},{provide:e.ResourceLoader,useValue:h},{provide:e.JitSummaryResolver,deps:[]},{provide:e.SummaryResolver,useExisting:e.JitSummaryResolver},{provide:n.ɵConsole,deps:[]},{provide:e.Lexer,deps:[]},{provide:e.Parser,deps:[e.Lexer]},{provide:d,useClass:e.HtmlParser,deps:[]},{provide:e.I18NHtmlParser,useFactory:function(t,r,i,o,a){var s=(r=r||"")?o.missingTranslation:n.MissingTranslationStrategy.Ignore;return new e.I18NHtmlParser(t,r,i,s,a)},deps:[d,[new n.Optional,new n.Inject(n.TRANSLATIONS)],[new n.Optional,new n.Inject(n.TRANSLATIONS_FORMAT)],[e.CompilerConfig],[n.ɵConsole]]},{provide:e.HtmlParser,useExisting:e.I18NHtmlParser},{provide:e.TemplateParser,deps:[e.CompilerConfig,e.CompileReflector,e.Parser,e.ElementSchemaRegistry,e.I18NHtmlParser,n.ɵConsole]},{provide:e.DirectiveNormalizer,deps:[e.ResourceLoader,e.UrlResolver,e.HtmlParser,e.CompilerConfig]},{provide:e.CompileMetadataResolver,deps:[e.CompilerConfig,e.HtmlParser,e.NgModuleResolver,e.DirectiveResolver,e.PipeResolver,e.SummaryResolver,e.ElementSchemaRegistry,e.DirectiveNormalizer,n.ɵConsole,[n.Optional,e.StaticSymbolCache],e.CompileReflector,[n.Optional,u]]},p,{provide:e.StyleCompiler,deps:[e.UrlResolver]},{provide:e.ViewCompiler,deps:[e.CompileReflector]},{provide:e.NgModuleCompiler,deps:[e.CompileReflector]},{provide:e.CompilerConfig,useValue:new e.CompilerConfig},{provide:n.Compiler,useClass:f,deps:[n.Injector,e.CompileMetadataResolver,e.TemplateParser,e.StyleCompiler,e.ViewCompiler,e.NgModuleCompiler,e.SummaryResolver,e.CompileReflector,e.CompilerConfig,n.ɵConsole]},{provide:e.DomElementSchemaRegistry,deps:[]},{provide:e.ElementSchemaRegistry,useExisting:e.DomElementSchemaRegistry},{provide:e.UrlResolver,deps:[n.PACKAGE_ROOT_URL]},{provide:e.DirectiveResolver,deps:[e.CompileReflector]},{provide:e.PipeResolver,deps:[e.CompileReflector]},{provide:e.NgModuleResolver,deps:[e.CompileReflector]}],g=function(){function t(t){var e={useJit:!0,defaultEncapsulation:n.ViewEncapsulation.Emulated,missingTranslation:n.MissingTranslationStrategy.Warning,enableLegacyTemplate:!1};this._defaultOptions=[e].concat(t)}return t.prototype.createCompiler=function(t){void 0===t&&(t=[]);var r,i,o,a={useJit:y((r=this._defaultOptions.concat(t)).map(function(t){return t.useJit})),defaultEncapsulation:y(r.map(function(t){return t.defaultEncapsulation})),providers:(i=r.map(function(t){return t.providers}),o=[],i.forEach(function(t){return t&&o.push.apply(o,t)}),o),missingTranslation:y(r.map(function(t){return t.missingTranslation})),enableLegacyTemplate:y(r.map(function(t){return t.enableLegacyTemplate})),preserveWhitespaces:y(r.map(function(t){return t.preserveWhitespaces}))};return n.Injector.create([m,{provide:e.CompilerConfig,useFactory:function(){return new e.CompilerConfig({useJit:a.useJit,jitDevMode:n.isDevMode(),defaultEncapsulation:a.defaultEncapsulation,missingTranslation:a.missingTranslation,enableLegacyTemplate:a.enableLegacyTemplate,preserveWhitespaces:a.preserveWhitespaces})},deps:[]},a.providers]).get(n.Compiler)},t}();function y(t){for(var e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e]}var v=n.createPlatformFactory(n.platformCore,"coreDynamic",[{provide:n.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:n.CompilerFactory,useClass:g,deps:[n.COMPILER_OPTIONS]}]),b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.get=function(t){var e,n,r=new Promise(function(t,r){e=t,n=r}),i=new XMLHttpRequest;return i.open("GET",t,!0),i.responseType="text",i.onload=function(){var r=i.response||i.responseText,o=1223===i.status?204:i.status;0===o&&(o=r?200:0),200<=o&&o<=300?e(r):n("Failed to load "+t)},i.onerror=function(){n("Failed to load "+t)},i.send(),r},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[]},e}(e.ResourceLoader),_=[i.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS,{provide:n.COMPILER_OPTIONS,useValue:{providers:[{provide:e.ResourceLoader,useClass:b,deps:[]}]},multi:!0},{provide:n.PLATFORM_ID,useValue:r.ɵPLATFORM_BROWSER_ID}],w=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 a(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("5.2.2"),x=[{provide:e.ResourceLoader,useClass:w,deps:[]}],E=n.createPlatformFactory(v,"browserDynamic",_);t.VERSION=C,t.JitCompilerFactory=g,t.RESOURCE_CACHE_PROVIDER=x,t.platformBrowserDynamic=E,t.ɵCompilerImpl=f,t.ɵplatformCoreDynamic=v,t.ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS=_,t.ɵResourceLoaderImpl=b,t.ɵa=w,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/compiler"),t("@angular/core"),t("@angular/common"),t("@angular/platform-browser")):i((r.ng=r.ng||{},r.ng.platformBrowserDynamic={}),r.ng.compiler,r.ng.core,r.ng.common,r.ng.platformBrowser)},{"@angular/common":56,"@angular/compiler":57,"@angular/core":58,"@angular/platform-browser":63}],62:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i){"use strict";var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function a(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var s=function(t){function i(n,r){var i=t.call(this)||this;i._nextAnimationId=0;var o={id:"0",encapsulation:e.ViewEncapsulation.None,styles:[],data:{animation:[]}};return i._renderer=n.createRenderer(r.body,o),i}return a(i,t),i.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?r.sequence(t):t;return u(this._renderer,null,e,"register",[n]),new c(e,this._renderer)},i.decorators=[{type:e.Injectable}],i.ctorParameters=function(){return[{type:e.RendererFactory2},{type:void 0,decorators:[{type:e.Inject,args:[n.DOCUMENT]}]}]},i}(r.AnimationBuilder),c=function(t){function e(e,n){var r=t.call(this)||this;return r._id=e,r._renderer=n,r}return a(e,t),e.prototype.create=function(t,e){return new l(this._id,t,e||{},this._renderer)},e}(r.AnimationFactory),l=function(){function t(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return t.prototype._listen=function(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)},t.prototype._command=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return u(this._renderer,this.element,this.id,t,e)},t.prototype.onDone=function(t){this._listen("done",t)},t.prototype.onStart=function(t){this._listen("start",t)},t.prototype.onDestroy=function(t){this._listen("destroy",t)},t.prototype.init=function(){this._command("init")},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this._command("play"),this._started=!0},t.prototype.pause=function(){this._command("pause")},t.prototype.restart=function(){this._command("restart")},t.prototype.finish=function(){this._command("finish")},t.prototype.destroy=function(){this._command("destroy")},t.prototype.reset=function(){this._command("reset")},t.prototype.setPosition=function(t){this._command("setPosition",t)},t.prototype.getPosition=function(){return 0},t}();function u(t,e,n,r,i){return t.setProperty(e,"@@"+n+":"+r,i)}var p="@.disabled",h=function(){function t(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=function(t,e){e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}return t.prototype.createRenderer=function(t,e){var n=this,r=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){var i=this._rendererCache.get(r);return i||(i=new d("",r,this.engine),this._rendererCache.set(r,i)),i}var o=e.id,a=e.id+"-"+this._currentId;return this._currentId++,this.engine.register(a,t),e.data.animation.forEach(function(e){return n.engine.registerTrigger(o,a,t,e.name,e)}),new f(this,a,r,this.engine)},t.prototype.begin=function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()},t.prototype._scheduleCountTask=function(){var t=this;Zone.current.scheduleMicroTask("incremenet the animation microtask",function(){return t._microtaskId++})},t.prototype.scheduleListenerCallback=function(t,e,n){var r=this;t>=0&&t<this._microtaskId?this._zone.run(function(){return e(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){r._zone.run(function(){r._animationCallbacksBuffer.forEach(function(t){(0,t[0])(t[1])}),r._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))},t.prototype.end=function(){var t=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){t._scheduleCountTask(),t.engine.flush(t._microtaskId)}),this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.engine.whenRenderingDone()},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:e.RendererFactory2},{type:i.ɵAnimationEngine},{type:e.NgZone}]},t}(),d=function(){function t(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?function(t){return e.destroyNode(t)}:null}return Object.defineProperty(t.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()},t.prototype.createElement=function(t,e){return this.delegate.createElement(t,e)},t.prototype.createComment=function(t){return this.delegate.createComment(t)},t.prototype.createText=function(t){return this.delegate.createText(t)},t.prototype.appendChild=function(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)},t.prototype.insertBefore=function(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)},t.prototype.removeChild=function(t,e){this.engine.onRemove(this.namespaceId,e,this.delegate)},t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setAttribute=function(t,e,n,r){this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){"@"==e.charAt(0)&&e==p?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)},t.prototype.setValue=function(t,e){this.delegate.setValue(t,e)},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.disableAnimations=function(t,e){this.engine.disableAnimations(t,e)},t}(),f=function(t){function e(e,n,r,i){var o=t.call(this,n,r,i)||this;return o.factory=e,o.namespaceId=n,o}return a(e,t),e.prototype.setProperty=function(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==p?(n=void 0===n||!!n,this.disableAnimations(t,n)):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)},e.prototype.listen=function(t,e,n){var r,i,o,a,s,c=this;if("@"==e.charAt(0)){var l=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t),u=e.substr(1),p="";return"@"!=u.charAt(0)&&(i=(r=u).indexOf("."),o=r.substring(0,i),a=r.substr(i+1),u=(s=[o,a])[0],p=s[1]),this.engine.listen(this.namespaceId,l,u,p,function(t){var e=t._data||-1;c.factory.scheduleListenerCallback(e,n,t)})}return this.delegate.listen(t,e,n)},e}(d);var m=function(t){function n(e,n){return t.call(this,e,n)||this}return a(n,t),n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:i.AnimationDriver},{type:i.ɵAnimationStyleNormalizer}]},n}(i.ɵAnimationEngine);function g(){return i.ɵsupportsWebAnimations()?new i.ɵWebAnimationsDriver:new i.ɵNoopAnimationDriver}function y(){return new i.ɵWebAnimationsStyleNormalizer}function v(t,e,n){return new h(t,e,n)}var b=[{provide:r.AnimationBuilder,useClass:s},{provide:i.ɵAnimationStyleNormalizer,useFactory:y},{provide:i.ɵAnimationEngine,useClass:m},{provide:e.RendererFactory2,useFactory:v,deps:[n.ɵDomRendererFactory2,i.ɵAnimationEngine,e.NgZone]}],_=[{provide:i.AnimationDriver,useFactory:g}].concat(b),w=[{provide:i.AnimationDriver,useClass:i.ɵNoopAnimationDriver}].concat(b),C=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{exports:[n.BrowserModule],providers:_}]}],t.ctorParameters=function(){return[]},t}(),x=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{exports:[n.BrowserModule],providers:w}]}],t.ctorParameters=function(){return[]},t}();t.BrowserAnimationsModule=C,t.NoopAnimationsModule=x,t.ɵBrowserAnimationBuilder=s,t.ɵBrowserAnimationFactory=c,t.ɵAnimationRenderer=f,t.ɵAnimationRendererFactory=h,t.ɵa=d,t.ɵf=_,t.ɵg=w,t.ɵb=m,t.ɵd=y,t.ɵe=v,t.ɵc=g,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("@angular/platform-browser"),t("@angular/animations"),t("@angular/animations/browser")):i((r.ng=r.ng||{},r.ng.platformBrowser=r.ng.platformBrowser||{},r.ng.platformBrowser.animations={}),r.ng.core,r.ng.platformBrowser,r.ng.animations,r.ng.animations.browser)},{"@angular/animations":40,"@angular/animations/browser":39,"@angular/core":58,"@angular/platform-browser":63}],63:[function(t,e,n){var r,i;r=this,i=function(t,e,n){"use strict";var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},a=null;function s(){return a}function c(t){a||(a=t)}var l,u=function(){function t(){this.resourceLoaderType=null}return Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t}(),p=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"],i=0;i<r.length;i++)if(null!=e.getStyle(n,r[i]+"AnimationName")){e._animationPrefix="-"+r[i].toLowerCase()+"-";break}var o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(o).forEach(function(t){null!=e.getStyle(n,t)&&(e._transitionEnd=o[t])})}catch(t){e._animationPrefix=null,e._transitionEnd=null}return e}return i(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}(u),h={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},d={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},f={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&&(l=n.ɵglobal.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var m,g=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i(n,t),n.prototype.parse=function(t){throw new Error("parse not implemented")},n.makeCurrent=function(){c(new n)},n.prototype.hasProperty=function(t,e){return e in t},n.prototype.setProperty=function(t,e,n){t[e]=n},n.prototype.getProperty=function(t,e){return t[e]},n.prototype.invoke=function(t,e,n){var r;(r=t)[e].apply(r,n)},n.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},n.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},n.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},n.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(n.prototype,"attrToPropMap",{get:function(){return h},enumerable:!0,configurable:!0}),n.prototype.contains=function(t,e){return l.call(t,e)},n.prototype.querySelector=function(t,e){return t.querySelector(e)},n.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},n.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},n.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},n.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},n.prototype.createMouseEvent=function(t){var e=this.getDefaultDocument().createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},n.prototype.createEvent=function(t){var e=this.getDefaultDocument().createEvent("Event");return e.initEvent(t,!0,!0),e},n.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},n.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},n.prototype.getInnerHTML=function(t){return t.innerHTML},n.prototype.getTemplateContent=function(t){return"content"in t&&this.isTemplateElement(t)?t.content:null},n.prototype.getOuterHTML=function(t){return t.outerHTML},n.prototype.nodeName=function(t){return t.nodeName},n.prototype.nodeValue=function(t){return t.nodeValue},n.prototype.type=function(t){return t.type},n.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},n.prototype.firstChild=function(t){return t.firstChild},n.prototype.nextSibling=function(t){return t.nextSibling},n.prototype.parentElement=function(t){return t.parentNode},n.prototype.childNodes=function(t){return t.childNodes},n.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},n.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},n.prototype.appendChild=function(t,e){t.appendChild(e)},n.prototype.removeChild=function(t,e){t.removeChild(e)},n.prototype.replaceChild=function(t,e,n){t.replaceChild(e,n)},n.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},n.prototype.insertBefore=function(t,e,n){t.insertBefore(n,e)},n.prototype.insertAllBefore=function(t,e,n){n.forEach(function(n){return t.insertBefore(n,e)})},n.prototype.insertAfter=function(t,e,n){t.insertBefore(n,e.nextSibling)},n.prototype.setInnerHTML=function(t,e){t.innerHTML=e},n.prototype.getText=function(t){return t.textContent},n.prototype.setText=function(t,e){t.textContent=e},n.prototype.getValue=function(t){return t.value},n.prototype.setValue=function(t,e){t.value=e},n.prototype.getChecked=function(t){return t.checked},n.prototype.setChecked=function(t,e){t.checked=e},n.prototype.createComment=function(t){return this.getDefaultDocument().createComment(t)},n.prototype.createTemplate=function(t){var e=this.getDefaultDocument().createElement("template");return e.innerHTML=t,e},n.prototype.createElement=function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)},n.prototype.createElementNS=function(t,e,n){return(n=n||this.getDefaultDocument()).createElementNS(t,e)},n.prototype.createTextNode=function(t,e){return(e=e||this.getDefaultDocument()).createTextNode(t)},n.prototype.createScriptTag=function(t,e,n){var r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(t,e),r},n.prototype.createStyleElement=function(t,e){var n=(e=e||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(t,e)),n},n.prototype.createShadowRoot=function(t){return t.createShadowRoot()},n.prototype.getShadowRoot=function(t){return t.shadowRoot},n.prototype.getHost=function(t){return t.host},n.prototype.clone=function(t){return t.cloneNode(!0)},n.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},n.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},n.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},n.prototype.addClass=function(t,e){t.classList.add(e)},n.prototype.removeClass=function(t,e){t.classList.remove(e)},n.prototype.hasClass=function(t,e){return t.classList.contains(e)},n.prototype.setStyle=function(t,e,n){t.style[e]=n},n.prototype.removeStyle=function(t,e){t.style[e]=""},n.prototype.getStyle=function(t,e){return t.style[e]},n.prototype.hasStyle=function(t,e,n){var r=this.getStyle(t,e)||"";return n?r==n:r.length>0},n.prototype.tagName=function(t){return t.tagName},n.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r<n.length;r++){var i=n.item(r);e.set(i.name,i.value)}return e},n.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},n.prototype.hasAttributeNS=function(t,e,n){return t.hasAttributeNS(e,n)},n.prototype.getAttribute=function(t,e){return t.getAttribute(e)},n.prototype.getAttributeNS=function(t,e,n){return t.getAttributeNS(e,n)},n.prototype.setAttribute=function(t,e,n){t.setAttribute(e,n)},n.prototype.setAttributeNS=function(t,e,n,r){t.setAttributeNS(e,n,r)},n.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},n.prototype.removeAttributeNS=function(t,e,n){t.removeAttributeNS(e,n)},n.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},n.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},n.prototype.getDefaultDocument=function(){return document},n.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},n.prototype.getTitle=function(t){return t.title},n.prototype.setTitle=function(t,e){t.title=e||""},n.prototype.elementMatches=function(t,e){return!!this.isElementNode(t)&&(t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e))},n.prototype.isTemplateElement=function(t){return this.isElementNode(t)&&"TEMPLATE"===t.nodeName},n.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},n.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},n.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},n.prototype.hasShadowRoot=function(t){return null!=t.shadowRoot&&t instanceof HTMLElement},n.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},n.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},n.prototype.adoptNode=function(t){return document.adoptNode(t)},n.prototype.getHref=function(t){return t.getAttribute("href")},n.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&&f.hasOwnProperty(e)&&(e=f[e]))}return d[e]||e},n.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null},n.prototype.getHistory=function(){return window.history},n.prototype.getLocation=function(){return window.location},n.prototype.getBaseHref=function(t){var e=function(){if(!y&&!(y=document.querySelector("base")))return null;return y.getAttribute("href")}();return null==e?null:function(t){m||(m=document.createElement("a"));return m.setAttribute("href",t),"/"===m.pathname.charAt(0)?m.pathname:"/"+m.pathname}(e)},n.prototype.resetBaseElement=function(){y=null},n.prototype.getUserAgent=function(){return window.navigator.userAgent},n.prototype.setData=function(t,e,n){this.setAttribute(t,"data-"+e,n)},n.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},n.prototype.getComputedStyle=function(t){return getComputedStyle(t)},n.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},n.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},n.prototype.supportsCookies=function(){return!0},n.prototype.getCookie=function(t){return e.ɵparseCookieValue(document.cookie,t)},n.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},n}(p),y=null;var v=e.DOCUMENT;function b(){return!!window.history.pushState}var _=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}return i(e,t),e.prototype._init=function(){this.location=s().getLocation(),this._history=s().getHistory()},e.prototype.getBaseHrefFromDOM=function(){return s().getBaseHref(this._doc)},e.prototype.onPopState=function(t){s().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){s().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){b()?this._history.pushState(t,e,n):this.location.hash=n},e.prototype.replaceState=function(t,e,n){b()?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.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[v]}]}]},e}(e.PlatformLocation),w=function(){function t(t){this._doc=t,this._dom=s()}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 i=this._dom.createElement("meta");this._setMetaElementAttributes(t,i);var o=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(o,i),i},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.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[v]}]}]},t}(),C=new n.InjectionToken("TRANSITION_ID");function x(t,e,r){return function(){r.get(n.ApplicationInitStatus).donePromise.then(function(){var n=s();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)})})}}var E=[{provide:n.APP_INITIALIZER,useFactory:x,deps:[C,v,n.Injector],multi:!0}],S=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()};n.ɵglobal.frameworkStabilizers||(n.ɵglobal.frameworkStabilizers=[]),n.ɵglobal.frameworkStabilizers.push(function(t){var e=n.ɵglobal.getAllAngularTestabilities(),r=e.length,i=!1,o=function(e){i=i||e,0==--r&&t(i)};e.forEach(function(t){t.whenStable(o)})})},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var r=t.getTestability(e);return null!=r?r:n?s().isShadowRoot(e)?this.findTestabilityInTree(t,s().getHost(e),!0):this.findTestabilityInTree(t,s().parentElement(e),!0):null},t}(),k=function(){function t(t){this._doc=t}return t.prototype.getTitle=function(){return s().getTitle(this._doc)},t.prototype.setTitle=function(t){s().setTitle(this._doc,t)},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[v]}]}]},t}();function O(t,e){"undefined"!=typeof COMPILED&&COMPILED||((n.ɵglobal.ng=n.ɵglobal.ng||{})[t]=e)}var P={ApplicationRef:n.ApplicationRef,NgZone:n.NgZone},A="probe",T="coreTokens";function M(t){return n.getDebugNode(t)}function I(t){return O(A,M),O(T,o({},P,(t||[]).reduce(function(t,e){return t[e.name]=e.token,t},{}))),function(){return M}}var R=[{provide:n.APP_INITIALIZER,useFactory:I,deps:[[n.NgProbeToken,new n.Optional]],multi:!0}],D=new n.InjectionToken("EventManagerPlugins"),N=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 i=n[r];if(i.supports(t))return this._eventNameToPlugin.set(t,i),i}throw new Error("No event manager plugin found for event "+t)},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:Array,decorators:[{type:n.Inject,args:[D]}]},{type:n.NgZone}]},t}(),L=function(){function t(t){this._doc=t}return t.prototype.addGlobalEventListener=function(t,e,n){var r=s().getGlobalEventTarget(this._doc,t);if(!r)throw new Error("Unsupported event target "+r+" for event "+e);return this.addEventListener(r,e,n)},t}(),j=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.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[]},t}(),F=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 i(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 s().remove(t)})},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[v]}]}]},e}(j),V={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/"},B=/%COMP%/g,U="_nghost-%COMP%",H="_ngcontent-%COMP%";function z(t){return H.replace(B,t)}function G(t){return U.replace(B,t)}function W(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];Array.isArray(i)?W(t,i,n):(i=i.replace(B,t),n.push(i))}return n}function q(t){return function(e){!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}var Y=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new K(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 Z(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,r)),r.applyToHost(t),r;case n.ViewEncapsulation.Native:return new J(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var i=W(e.id,e.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t.prototype.begin=function(){},t.prototype.end=function(){},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:N},{type:F}]},t}(),K=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(V[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 i=V[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var r=V[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,i){i&n.RendererStyleFlags2.DashCase?t.style.setProperty(e,r,i&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){X(e,"property"),t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return X(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,q(n)):this.eventManager.addEventListener(t,e,q(n))},t}(),$="@".charCodeAt(0);function X(t,e){if(t.charCodeAt(0)===$)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var Q,Z=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.component=r;var o=W(r.id,r.styles,[]);return n.addStyles(o),i.contentAttr=z(r.id),i.hostAttr=G(r.id),i}return i(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}(K),J=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;o.sharedStylesHost=n,o.hostEl=r,o.component=i,o.shadowRoot=r.createShadowRoot(),o.sharedStylesHost.addHost(o.shadowRoot);for(var a=W(i.id,i.styles,[]),s=0;s<a.length;s++){var c=document.createElement("style");c.textContent=a[s],o.shadowRoot.appendChild(c)}return o}return i(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}(K),tt="undefined"!=typeof Zone&&Zone.__symbol__||function(t){return"__zone_symbol__"+t},et=tt("addEventListener"),nt=tt("removeEventListener"),rt={},it="removeEventListener",ot="__zone_symbol__propagationStopped",at="__zone_symbol__stopImmediatePropagation",st="undefined"!=typeof Zone&&Zone[tt("BLACK_LISTED_EVENTS")];st&&(Q={},st.forEach(function(t){Q[t]=t}));var ct=function(t){return!!Q&&Q.hasOwnProperty(t)},lt=function(t){var e=rt[t.type];if(e){var n=this[e];if(n){var r=[t];if(1===n.length)return(a=n[0]).zone!==Zone.current?a.zone.run(a.handler,this,r):a.handler.apply(this,r);for(var i=n.slice(),o=0;o<i.length&&!0!==t[ot];o++){var a;(a=i[o]).zone!==Zone.current?a.zone.run(a.handler,this,r):a.handler.apply(this,r)}}}},ut=function(t){function e(e,n){var r=t.call(this,e)||this;return r.ngZone=n,r.patchEvent(),r}return i(e,t),e.prototype.patchEvent=function(){if(Event&&Event.prototype&&!Event.prototype[at]){var t=Event.prototype[at]=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[ot]=!0),t&&t.apply(this,arguments)}}},e.prototype.supports=function(t){return!0},e.prototype.addEventListener=function(t,e,r){var i=this,o=r;if(!t[et]||n.NgZone.isInAngularZone()&&!ct(e))t.addEventListener(e,o,!1);else{var a=rt[e];a||(a=rt[e]=tt("ANGULAR"+e+"FALSE"));var s=t[a],c=s&&s.length>0;s||(s=t[a]=[]);var l=ct(e)?Zone.root:Zone.current;if(0===s.length)s.push({zone:l,handler:o});else{for(var u=!1,p=0;p<s.length;p++)if(s[p].handler===o){u=!0;break}u||s.push({zone:l,handler:o})}c||t[et](e,lt,!1)}return function(){return i.removeEventListener(t,e,o)}},e.prototype.removeEventListener=function(t,e,n){var r=t[nt];if(!r)return t[it].apply(t,[e,n,!1]);var i=rt[e],o=i&&t[i];if(!o)return t[it].apply(t,[e,n,!1]);for(var a=!1,s=0;s<o.length;s++)if(o[s].handler===n){a=!0,o.splice(s,1);break}a?0===o.length&&r.apply(t,[e,lt,!1]):t[it].apply(t,[e,n,!1])},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[v]}]},{type:n.NgZone}]},e}(L),pt={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},ht=new n.InjectionToken("HammerGestureConfig"),dt=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t);for(var n in e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0}),this.overrides)e.get(n).set(this.overrides[n]);return e},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[]},t}(),ft=function(t){function e(e,n){var r=t.call(this,e)||this;return r._config=n,r}return i(e,t),e.prototype.supports=function(t){if(!pt.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,i=this.manager.getZone();return e=e.toLowerCase(),i.runOutsideAngular(function(){var o=r._config.buildHammer(t),a=function(t){i.runGuarded(function(){n(t)})};return o.on(e,a),function(){return o.off(e,a)}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[v]}]},{type:dt,decorators:[{type:n.Inject,args:[ht]}]}]},e}(L),mt=["alt","control","meta","shift"],gt={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},yt=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,r){var i=e.parseEventName(n),o=e.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return s().onAndCancel(t,i.domEventName,o)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=e._normalizeKey(n.pop()),o="";if(mt.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=i,0!=n.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a},e.getEventFullKey=function(t){var e="",n=s().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),mt.forEach(function(r){r!=n&&((0,gt[r])(t)&&(e+=r+"."))}),e+=n},e.eventCallback=function(t,n,r){return function(i){e.getEventFullKey(i)===t&&r.runGuarded(function(){return n(i)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[v]}]}]},e}(L),vt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,bt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function _t(t){return(t=String(t)).match(vt)||t.match(bt)?t:(n.isDevMode()&&s().log("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}var wt=null,Ct=null;function xt(t){for(var e={},n=0,r=t.split(",");n<r.length;n++){e[r[n]]=!0}return e}function Et(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n={},r=0,i=t;r<i.length;r++){var o=i[r];for(var a in o)o.hasOwnProperty(a)&&(n[a]=!0)}return n}var St=xt("area,br,col,hr,img,wbr"),kt=xt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ot=xt("rp,rt"),Pt=Et(Ot,kt),At=Et(kt,xt("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")),Tt=Et(Ot,xt("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")),Mt=Et(St,At,Tt,Pt),It=xt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Rt=xt("srcset"),Dt=xt("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"),Nt=Et(It,Rt,Dt),Lt=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(Ct.isElementNode(e)?this.startElement(e):Ct.isTextNode(e)?this.chars(Ct.nodeValue(e)):this.sanitizedSomething=!0,Ct.firstChild(e))e=Ct.firstChild(e);else for(;e;){Ct.isElementNode(e)&&this.endElement(e);var n=jt(e,Ct.nextSibling(e));if(n){e=n;break}e=jt(e,Ct.parentElement(e))}return this.buf.join("")},t.prototype.startElement=function(t){var e=this,n=Ct.nodeName(t).toLowerCase();Mt.hasOwnProperty(n)?(this.buf.push("<"),this.buf.push(n),Ct.attributeMap(t).forEach(function(t,n){var r,i=n.toLowerCase();Nt.hasOwnProperty(i)?(It[i]&&(t=_t(t)),Rt[i]&&(r=t,t=(r=String(r)).split(",").map(function(t){return _t(t.trim())}).join(", ")),e.buf.push(" "),e.buf.push(n),e.buf.push('="'),e.buf.push(Bt(t)),e.buf.push('"')):e.sanitizedSomething=!0}),this.buf.push(">")):this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=Ct.nodeName(t).toLowerCase();Mt.hasOwnProperty(e)&&!St.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(Bt(t))},t}();function jt(t,e){if(e&&Ct.contains(t,e))throw new Error("Failed to sanitize html because the element is clobbered: "+Ct.getOuterHTML(t));return e}var Ft=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Vt=/([^\#-~ |!])/g;function Bt(t){return t.replace(/&/g,"&amp;").replace(Ft,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Vt,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Ut(t){Ct.attributeMap(t).forEach(function(e,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||Ct.removeAttribute(t,n)});for(var e=0,n=Ct.childNodesAsList(t);e<n.length;e++){var r=n[e];Ct.isElementNode(r)&&Ut(r)}}function Ht(t,e){try{var r=function(){if(wt)return wt;var t=(Ct=s()).createElement("template");if("content"in t)return t;var e=Ct.createHtmlDocument();if(null==(wt=Ct.querySelector(e,"body"))){var n=Ct.createElement("html",e);wt=Ct.createElement("body",e),Ct.appendChild(n,wt),Ct.appendChild(e,n)}return wt}(),i=e?String(e):"",o=5,a=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=a,Ct.setInnerHTML(r,i),t.documentMode&&Ut(r),a=Ct.getInnerHTML(r)}while(i!==a);for(var c=new Lt,l=c.sanitizeChildren(Ct.getTemplateContent(r)||r),u=Ct.getTemplateContent(r)||r,p=0,h=Ct.childNodesAsList(u);p<h.length;p++){var d=h[p];Ct.removeChild(u,d)}return n.isDevMode()&&c.sanitizedSomething&&Ct.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),l}catch(t){throw wt=null,t}}var 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"),Gt=/^url\(([^)]+)\)$/;var Wt=function(){return function(){}}(),qt=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return i(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 Kt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),Ht(this._doc,String(e)));case n.SecurityContext.STYLE:return e instanceof $t?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(Gt);return e&&_t(e[1])===e[1]||t.match(zt)&&function(t){for(var e=!0,n=!0,r=0;r<t.length;r++){var i=t.charAt(r);"'"===i&&n?e=!e:'"'===i&&e&&(n=!n)}return e&&n}(t)?t:(n.isDevMode()&&s().log("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}(e));case n.SecurityContext.SCRIPT:if(e instanceof Xt)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case n.SecurityContext.URL:return e instanceof Zt||e instanceof Qt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),_t(String(e)));case n.SecurityContext.RESOURCE_URL:if(e instanceof Zt)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 Yt)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 Kt(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new $t(t)},e.prototype.bypassSecurityTrustScript=function(t){return new Xt(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new Qt(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new Zt(t)},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[v]}]}]},e}(Wt),Yt=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),Kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(Yt),$t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getTypeName=function(){return"Style"},e}(Yt),Xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getTypeName=function(){return"Script"},e}(Yt),Qt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getTypeName=function(){return"URL"},e}(Yt),Zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(Yt),Jt=[{provide:n.PLATFORM_ID,useValue:e.ɵPLATFORM_BROWSER_ID},{provide:n.PLATFORM_INITIALIZER,useValue:ne,multi:!0},{provide:e.PlatformLocation,useClass:_,deps:[v]},{provide:v,useFactory:ie,deps:[]}],te=[{provide:n.Sanitizer,useExisting:Wt},{provide:Wt,useClass:qt,deps:[v]}],ee=n.createPlatformFactory(n.platformCore,"browser",Jt);function ne(){g.makeCurrent(),S.init()}function re(){return new n.ErrorHandler}function ie(){return document}var 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:C,useExisting:n.APP_ID},E]}},t.decorators=[{type:n.NgModule,args:[{providers:[te,{provide:n.ErrorHandler,useFactory:re,deps:[]},{provide:D,useClass:ut,multi:!0},{provide:D,useClass:yt,multi:!0},{provide:D,useClass:ft,multi:!0},{provide:ht,useClass:dt},Y,{provide:n.RendererFactory2,useExisting:Y},{provide:j,useExisting:F},F,n.Testability,N,R,w,k],exports:[e.CommonModule,n.ApplicationModule]}]}],t.ctorParameters=function(){return[{type:t,decorators:[{type:n.Optional},{type:n.SkipSelf}]}]},t}(),ae="undefined"!=typeof window&&window||{},se=function(){return function(t,e){this.msPerTick=t,this.numTicks=e}}(),ce=function(){function t(t){this.appRef=t.injector.get(n.ApplicationRef)}return t.prototype.timeChangeDetection=function(t){var e=t&&t.record,n="Change Detection",r=null!=ae.console.profile;e&&r&&ae.console.profile(n);for(var i=s().performanceNow(),o=0;o<5||s().performanceNow()-i<500;)this.appRef.tick(),o++;var a=s().performanceNow();e&&r&&ae.console.profileEnd(n);var c=(a-i)/o;return ae.console.log("ran "+o+" change detection cycles"),ae.console.log(c.toFixed(2)+" ms per check"),new se(c,o)},t}(),le="profiler";var ue=function(){function t(){this.store={},this.onSerializeCallbacks={}}return t.init=function(e){var n=new t;return n.store=e,n},t.prototype.get=function(t,e){return this.store[t]||e},t.prototype.set=function(t,e){this.store[t]=e},t.prototype.remove=function(t){delete this.store[t]},t.prototype.hasKey=function(t){return this.store.hasOwnProperty(t)},t.prototype.onSerialize=function(t,e){this.onSerializeCallbacks[t]=e},t.prototype.toJson=function(){for(var t in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(t))try{this.store[t]=this.onSerializeCallbacks[t]()}catch(t){console.warn("Exception in onSerialize callback: ",t)}return JSON.stringify(this.store)},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[]},t}();function pe(t,e){var n,r,i=t.getElementById(e+"-state"),o={};if(i&&i.textContent)try{o=JSON.parse((n=i.textContent,r={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"},n.replace(/&[^;]+;/g,function(t){return r[t]})))}catch(t){console.warn("Exception while restoring TransferState for app "+e,t)}return ue.init(o)}var he=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{providers:[{provide:ue,useFactory:pe,deps:[v,n.APP_ID]}]}]}],t.ctorParameters=function(){return[]},t}(),de=function(){function t(){}return t.all=function(){return function(t){return!0}},t.css=function(t){return function(e){return null!=e.nativeElement&&s().elementMatches(e.nativeElement,t)}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}},t}(),fe=new n.Version("5.2.2");t.BrowserModule=oe,t.platformBrowser=ee,t.Meta=w,t.Title=k,t.disableDebugTools=function(){O(le,null)},t.enableDebugTools=function(t){return O(le,new ce(t)),t},t.BrowserTransferStateModule=he,t.TransferState=ue,t.makeStateKey=function(t){return t},t.By=de,t.DOCUMENT=v,t.EVENT_MANAGER_PLUGINS=D,t.EventManager=N,t.HAMMER_GESTURE_CONFIG=ht,t.HammerGestureConfig=dt,t.DomSanitizer=Wt,t.VERSION=fe,t.ɵBROWSER_SANITIZATION_PROVIDERS=te,t.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS=Jt,t.ɵinitDomAdapter=ne,t.ɵBrowserDomAdapter=g,t.ɵBrowserPlatformLocation=_,t.ɵTRANSITION_ID=C,t.ɵBrowserGetTestability=S,t.ɵescapeHtml=function(t){var e={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return t.replace(/[&"'<>]/g,function(t){return e[t]})},t.ɵELEMENT_PROBE_PROVIDERS=R,t.ɵDomAdapter=u,t.ɵgetDOM=s,t.ɵsetRootDomAdapter=c,t.ɵDomRendererFactory2=Y,t.ɵNAMESPACE_URIS=V,t.ɵflattenStyles=W,t.ɵshimContentAttribute=z,t.ɵshimHostAttribute=G,t.ɵDomEventsPlugin=ut,t.ɵHammerGesturesPlugin=ft,t.ɵKeyEventsPlugin=yt,t.ɵDomSharedStylesHost=F,t.ɵSharedStylesHost=j,t.ɵb=ie,t.ɵa=re,t.ɵi=p,t.ɵg=E,t.ɵf=x,t.ɵc=pe,t.ɵh=I,t.ɵd=L,t.ɵe=qt,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/common"),t("@angular/core")):i((r.ng=r.ng||{},r.ng.platformBrowser={}),r.ng.common,r.ng.core)},{"@angular/common":56,"@angular/core":58}],64:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i,o,a,s,c,l,u,p,h,d,f,m,g,y,v,b,_,w){"use strict";var C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function x(t,e){function n(){this.constructor=t}C(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var E=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},S=function(){return function(t,e){this.id=t,this.url=e}}(),k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return x(e,t),e.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},e}(S),O=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i}return x(e,t),e.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},e}(S),P=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.reason=r,i}return x(e,t),e.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},e}(S),A=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.error=r,i}return x(e,t),e.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},e}(S),T=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return x(e,t),e.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(S),M=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return x(e,t),e.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(S),I=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n)||this;return a.urlAfterRedirects=r,a.state=i,a.shouldActivate=o,a}return x(e,t),e.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},e}(S),R=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return x(e,t),e.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(S),D=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return x(e,t),e.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(S),N=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),L=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),j=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),F=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),V=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),B=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),U="primary",H=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}();function z(t){return new H(t)}var G="ngNavigationCancelingError";function W(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 i={},o=0;o<r.length;o++){var a=r[o],s=t[o];if(a.startsWith(":"))i[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}var q=function(){return function(t,e){this.routes=t,this.module=e}}();function Y(t,e){void 0===e&&(e="");for(var n=0;n<t.length;n++){var r=t[n];K(r,$(e,r))}}function K(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!==U)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&&Y(t.children,e)}function $(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function X(t,e){var n,r=Object.keys(t),i=Object.keys(e);if(r.length!=i.length)return!1;for(var o=0;o<r.length;o++)if(t[n=r[o]]!==e[n])return!1;return!0}function Q(t){return Array.prototype.concat.apply([],t)}function Z(t){return t.length>0?t[t.length-1]:null}function J(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function tt(t){var e=v.mergeAll.call(t);return g.every.call(e,function(t){return!0===t})}function et(t){return n.ɵisObservable(t)?t:n.ɵisPromise(t)?m.fromPromise(Promise.resolve(t)):o.of(t)}function nt(t,e,n){return n?(r=t.queryParams,i=e.queryParams,X(r,i)&&function t(e,n){if(!st(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root)):(o=t.queryParams,a=e.queryParams,Object.keys(a).length<=Object.keys(o).length&&Object.keys(a).every(function(t){return a[t]===o[t]})&&rt(t.root,e.root));var r,i,o,a}function rt(t,e){return function t(e,n,r){{if(e.segments.length>r.length){var i=e.segments.slice(0,r.length);return!!st(i,r)&&!n.hasChildren()}if(e.segments.length===r.length){if(!st(e.segments,r))return!1;for(var o in n.children){if(!e.children[o])return!1;if(!rt(e.children[o],n.children[o]))return!1}return!0}var i=r.slice(0,e.segments.length),a=r.slice(e.segments.length);return!!st(e.segments,i)&&(!!e.children[U]&&t(e.children[U],n,a))}}(t,e,e.segments)}var it=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=z(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return pt.serialize(this)},t}(),ot=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,J(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 ht(this)},t}(),at=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=z(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return mt(this)},t}();function st(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function ct(t,e){var n=[];return J(t.children,function(t,r){r===U&&(n=n.concat(e(t,r)))}),J(t.children,function(t,r){r!==U&&(n=n.concat(e(t,r)))}),n}var lt=function(){return function(){}}(),ut=function(){function t(){}return t.prototype.parse=function(t){var e=new _t(t);return new it(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return""+("/"+function t(e,n){if(!e.hasChildren())return ht(e);{if(n){var r=e.children[U]?t(e.children[U],!1):"",i=[];return J(e.children,function(e,n){n!==U&&i.push(n+":"+t(e,!1))}),i.length>0?r+"("+i.join("//")+")":r}var o=ct(e,function(n,r){return r===U?[t(e.children[U],!1)]:[r+":"+t(n,!1)]});return ht(e)+"/("+o.join("//")+")"}}(t.root,!0))+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return dt(t)+"="+dt(e)}).join("&"):dt(t)+"="+dt(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),pt=new ut;function ht(t){return t.segments.map(function(t){return mt(t)}).join("/")}function dt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}function ft(t){return decodeURIComponent(t)}function mt(t){return""+dt(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+dt(t)+"="+dt(e[t])}).join(""));var e}var gt=/^[^\/()?;=&#]+/;function yt(t){var e=t.match(gt);return e?e[0]:""}var vt=/^[^=?&#]+/;var bt=/^[^?&#]+/;var _t=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 ot([],{}):new ot([],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[U]=new ot(t,e)),n},t.prototype.parseSegment=function(){var t=yt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new at(ft(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=yt(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=yt(this.remaining);r&&(n=r,this.capture(n))}t[ft(e)]=ft(n)}},t.prototype.parseQueryParam=function(t){var e,n,r=(e=this.remaining,(n=e.match(vt))?n[0]:"");if(r){this.capture(r);var i,o,a="";if(this.consumeOptional("=")){var s=(i=this.remaining,(o=i.match(bt))?o[0]:"");s&&(a=s,this.capture(a))}var c=ft(r),l=ft(a);if(t.hasOwnProperty(c)){var u=t[c];Array.isArray(u)||(u=[u],t[c]=u),u.push(l)}else t[c]=l}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=yt(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=U);var o=this.parseChildren();e[i]=1===Object.keys(o).length?o[U]:new ot([],o),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}(),wt=function(){return function(t){this.segmentGroup=t||null}}(),Ct=function(){return function(t){this.urlTree=t}}();function xt(t){return new l.Observable(function(e){return e.error(new wt(t))})}function Et(t){return new l.Observable(function(e){return e.error(new Ct(t))})}function St(t){return new l.Observable(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}function kt(t){return new l.Observable(function(e){return e.error((n="Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false",(r=Error("NavigationCancelingError: "+n))[G]=!0,r));var n,r})}var Ot=function(){function t(t,e,r,i,o){this.configLoader=e,this.urlSerializer=r,this.urlTree=i,this.config=o,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,U),n=s.map.call(e,function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)});return p._catch.call(n,function(e){if(e instanceof Ct)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof wt)throw t.noMatchError(e);throw e})},t.prototype.match=function(t){var e=this,n=this.expandSegmentGroup(this.ngModule,this.config,t.root,U),r=s.map.call(n,function(n){return e.createUrlTree(n,t.queryParams,t.fragment)});return p._catch.call(r,function(t){if(t instanceof wt)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,i=t.segments.length>0?new ot([],((r={})[U]=t,r)):t;return new it(i,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?s.map.call(this.expandChildren(t,e,n),function(t){return new ot([],t)}):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(t,e){if(0===Object.keys(t).length)return o.of({});var n=[],r=[],i={};J(t,function(t,o){var a=s.map.call(e(o,t),function(t){return i[o]=t});o===U?n.push(a):r.push(a)});var a=h.concatAll.call(o.of.apply(void 0,n.concat(r))),c=y.last.call(a);return s.map.call(c,function(){return i})}(n.children,function(n,i){return r.expandSegmentGroup(t,e,i,n)})},t.prototype.expandSegment=function(t,e,n,r,i,a){var c=this,l=o.of.apply(void 0,n),u=s.map.call(l,function(s){var l=c.expandSegmentAgainstRoute(t,e,n,s,r,i,a);return p._catch.call(l,function(t){if(t instanceof wt)return o.of(null);throw t})}),m=h.concatAll.call(u),g=d.first.call(m,function(t){return!!t});return p._catch.call(g,function(t,n){if(t instanceof f.EmptyError||"EmptyError"===t.name){if(c.noLeftoversInUrl(e,r,i))return o.of(new ot([],{}));throw new wt(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,i,o,a){return Mt(r)!==o?xt(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):xt(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Et(o):c.mergeMap.call(this.lineralizeSegments(n,o),function(n){var o=new ot(n,{});return i.expandSegment(t,o,e,n,r,!1)})},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){var a=this,s=Pt(e,r,i),l=s.matched,u=s.consumedSegments,p=s.lastChild,h=s.positionalParamSegments;if(!l)return xt(e);var d=this.applyRedirectCommands(u,r.redirectTo,h);return r.redirectTo.startsWith("/")?Et(d):c.mergeMap.call(this.lineralizeSegments(r,d),function(r){return a.expandSegment(t,e,n,r.concat(i.slice(p)),o,!1)})},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var i=this;if("**"===n.path)return n.loadChildren?s.map.call(this.configLoader.load(t.injector,n),function(t){return n._loadedConfig=t,new ot(r,{})}):o.of(new ot(r,{}));var a=Pt(e,n,r),l=a.matched,u=a.consumedSegments,p=a.lastChild;if(!l)return xt(e);var h=r.slice(p),d=this.getChildConfig(t,n);return c.mergeMap.call(d,function(t){var n=t.module,r=t.routes,a=function(t,e,n,r){if(n.length>0&&(o=t,a=n,s=r,s.some(function(t){return Tt(o,a,t)&&Mt(t)!==U}))){var i=new ot(e,function(t,e){var n={};n[U]=e;for(var r=0,i=t;r<i.length;r++){var o=i[r];""===o.path&&Mt(o)!==U&&(n[Mt(o)]=new ot([],{}))}return n}(r,new ot(n,t.children)));return{segmentGroup:At(i),slicedSegments:[]}}var o,a,s;if(0===n.length&&(c=t,l=n,u=r,u.some(function(t){return Tt(c,l,t)}))){var i=new ot(t.segments,function(t,e,n,r){for(var i={},o=0,a=n;o<a.length;o++){var s=a[o];Tt(t,e,s)&&!r[Mt(s)]&&(i[Mt(s)]=new ot([],{}))}return E({},r,i)}(t,n,r,t.children));return{segmentGroup:At(i),slicedSegments:n}}var c,l,u;return{segmentGroup:t,slicedSegments:n}}(e,u,h,r),c=a.segmentGroup,l=a.slicedSegments;if(0===l.length&&c.hasChildren()){var p=i.expandChildren(n,r,c);return s.map.call(p,function(t){return new ot(u,t)})}if(0===r.length&&0===l.length)return o.of(new ot(u,{}));var d=i.expandSegment(n,c,r,l,U,!0);return s.map.call(d,function(t){return new ot(u.concat(t.segments),t.children)})})},t.prototype.getChildConfig=function(t,e){var n,r,i,a=this;return e.children?o.of(new q(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?o.of(e._loadedConfig):c.mergeMap.call((n=t.injector,(i=(r=e).canLoad)&&0!==i.length?tt(s.map.call(u.from(i),function(t){var e=n.get(t);return et(e.canLoad?e.canLoad(r):e(r))})):o.of(!0)),function(n){return n?s.map.call(a.configLoader.load(t.injector,e),function(t){return e._loadedConfig=t,t}):kt(e)}):o.of(new q([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return o.of(n);if(r.numberOfChildren>1||!r.children[U])return St(t.redirectTo);r=r.children[U]}},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 i=this.createSegmentGroup(t,e.root,n,r);return new it(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return J(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),a={};return J(e.children,function(e,o){a[o]=i.createSegmentGroup(t,e,n,r)}),new ot(o,a)},t.prototype.createSegments=function(t,e,n,r){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.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,i=e;r<i.length;r++){var o=i[r];if(o.path===t.path)return e.splice(n),o;n++}return t},t}();function Pt(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||W)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function At(t){if(1===t.numberOfChildren&&t.children[U]){var e=t.children[U];return new ot(t.segments.concat(e.segments),e.children)}return t}function Tt(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0!==n.redirectTo)}function Mt(t){return t.outlet||U}var It=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=Rt(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=Rt(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=Dt(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 Dt(t,this._root).map(function(t){return t.value})},t}();function Rt(t,e){if(t===e.value)return e;for(var n=0,r=e.children;n<r.length;n++){var i=Rt(t,r[n]);if(i)return i}return null}function Dt(t,e){if(t===e.value)return[e];for(var n=0,r=e.children;n<r.length;n++){var i=Dt(t,r[n]);if(i.length)return i.unshift(e),i}return[]}var Nt=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function Lt(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var jt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,zt(r,e),r}return x(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(It);function Ft(t,e){var n,i=(n=new Ut([],{},{},"",{},U,e,null,t.root,-1,{}),new Ht("",new Nt(n,[]))),o=new r.BehaviorSubject([new at("",{})]),a=new r.BehaviorSubject({}),s=new r.BehaviorSubject({}),c=new r.BehaviorSubject({}),l=new r.BehaviorSubject(""),u=new Vt(o,a,c,l,s,U,e,i.root);return u.snapshot=i.root,new jt(new Nt(u,[]),i)}var Vt=function(){function t(t,e,n,r,i,o,a,s){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=a,this._futureSnapshot=s}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=s.map.call(this.params,function(t){return z(t)})),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=s.map.call(this.queryParams,function(t){return z(t)})),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function Bt(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return n.slice(r).reduce(function(t,e){var n=E({},t.params,e.params),r=E({},t.data,e.data),i=E({},t.resolve,e._resolvedData);return{params:n,data:r,resolve:i}},{params:{},data:{},resolve:{}})}var Ut=function(){function t(t,e,n,r,i,o,a,s,c,l,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=a,this.routeConfig=s,this._urlSegment=c,this._lastPathIndex=l,this._resolve=u}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=z(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=z(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}(),Ht=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,zt(r,n),r}return x(e,t),e.prototype.toString=function(){return Gt(this._root)},e}(It);function zt(t,e){e.value._routerState=t,e.children.forEach(function(e){return zt(t,e)})}function Gt(t){var e=t.children.length>0?" { "+t.children.map(Gt).join(", ")+" } ":"";return""+t.value+e}function Wt(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,X(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),X(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!X(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),X(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function qt(t,e){var n,r,i=X(t.params,e.params)&&(n=t.url,r=e.url,st(n,r)&&n.every(function(t,e){return X(t.parameters,r[e].parameters)})),o=!t.parent!=!e.parent;return i&&!o&&(!t.parent||qt(t.parent,e.parent))}function Yt(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){(l=n.value)._futureSnapshot=e.value;var i=(s=t,c=n,e.children.map(function(t){for(var e=0,n=c.children;e<n.length;e++){var r=n[e];if(s.shouldReuseRoute(r.value.snapshot,t.value))return Yt(s,t,r)}return Yt(s,t)}));return new Nt(l,i)}if(t.retrieve(e.value)){var o=t.retrieve(e.value).route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(var r=0;r<e.children.length;++r)t(e.children[r],n.children[r])}(e,o),o}var a,s,c,l=(a=e.value,new Vt(new r.BehaviorSubject(a.url),new r.BehaviorSubject(a.params),new r.BehaviorSubject(a.queryParams),new r.BehaviorSubject(a.fragment),new r.BehaviorSubject(a.data),a.outlet,a.component,a));i=e.children.map(function(e){return Yt(t,e)});return new Nt(l,i)}function Kt(t,e,n,r,i){if(0===n.length)return Xt(e.root,e.root,e,r,i);var o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Qt(!0,0,t);var e=0,n=!1,r=t.reduce(function(t,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return J(r.outlets,function(t,e){o[e]="string"==typeof t?t.split("/"):t}),t.concat([{outlets:o}])}if(r.segmentPath)return t.concat([r.segmentPath])}return"string"!=typeof r?t.concat([r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):t.concat([r])},[]);return new Qt(n,e,r)}(n);if(o.toRoot())return Xt(e.root,new ot([],{}),e,r,i);var a=function(t,e,n){if(t.isAbsolute)return new Zt(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new Zt(n.snapshot._urlSegment,!0,0);var r=$t(t.commands[0])?0:1,i=n.snapshot._lastPathIndex+r;return function(t,e,n){var r=t,i=e,o=n;for(;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new Zt(r,!1,i-o)}(n.snapshot._urlSegment,i,t.numberOfDoubleDots)}(o,e,t),s=a.processChildren?ee(a.segmentGroup,a.index,o.commands):te(a.segmentGroup,a.index,o.commands);return Xt(a.segmentGroup,s,e,r,i)}function $t(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Xt(t,e,n,r,i){var o={};return r&&J(r,function(t,e){o[e]=Array.isArray(t)?t.map(function(t){return""+t}):""+t}),n.root===t?new it(e,o,i):new it(function t(e,n,r){var i={};J(e.children,function(e,o){i[o]=e===n?r:t(e,n,r)});return new ot(e.segments,i)}(n.root,t,e),o,i)}var Qt=function(){function t(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&$t(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!==Z(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}();var Zt=function(){return function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}();function Jt(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[U]:""+t}function te(t,e,n){if(t||(t=new ot([],{})),0===t.segments.length&&t.hasChildren())return ee(t,e,n);var r=function(t,e,n){var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=n.length)return o;var a=t.segments[i],s=Jt(n[r]),c=r<n.length-1?n[r+1]:null;if(i>0&&void 0===s)break;if(s&&c&&"object"==typeof c&&void 0===c.outlets){if(!oe(s,c,a))return o;r+=2}else{if(!oe(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){var o=new ot(t.segments.slice(0,r.pathIndex),{});return o.children[U]=new ot(t.segments.slice(r.pathIndex),t.children),ee(o,0,i)}return r.match&&0===i.length?new ot(t.segments,{}):r.match&&!t.hasChildren()?ne(t,e,n):r.match?ee(t,0,i):ne(t,e,n)}function ee(t,e,n){if(0===n.length)return new ot(t.segments,{});var r,i,o,a="object"!=typeof(r=n)[0]?((i={})[U]=r,i):void 0===r[0].outlets?((o={})[U]=r,o):r[0].outlets,s={};return J(a,function(n,r){null!==n&&(s[r]=te(t.children[r],e,n))}),J(t.children,function(t,e){void 0===a[e]&&(s[e]=t)}),new ot(t.segments,s)}function ne(t,e,n){for(var r=t.segments.slice(0,e),i=0;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){var o=re(n[i].outlets);return new ot(r,o)}if(0===i&&$t(n[0])){var a=t.segments[e];r.push(new at(a.path,n[0])),i++}else{var s=Jt(n[i]),c=i<n.length-1?n[i+1]:null;s&&c&&$t(c)?(r.push(new at(s,ie(c))),i+=2):(r.push(new at(s,{})),i++)}}return new ot(r,{})}function re(t){var e={};return J(t,function(t,n){null!==t&&(e[n]=ne(new ot([],{}),0,t))}),e}function ie(t){var e={};return J(t,function(t,n){return e[n]=""+t}),e}function oe(t,e,n){return t==n.path&&X(e,n.parameters)}var ae=function(){return function(t){this.path=t,this.route=this.path[this.path.length-1]}}(),se=function(){return function(t,e){this.component=t,this.route=e}}(),ce=function(){function t(t,e,n,r){this.future=t,this.curr=e,this.moduleInjector=n,this.forwardEvent=r,this.canActivateChecks=[],this.canDeactivateChecks=[]}return t.prototype.initialize=function(t){var e=this.future._root,n=this.curr?this.curr._root:null;this.setupChildRouteGuards(e,n,t,[e.value])},t.prototype.checkGuards=function(){var t=this;if(!this.isDeactivating()&&!this.isActivating())return o.of(!0);var e=this.runCanDeactivateChecks();return c.mergeMap.call(e,function(e){return e?t.runCanActivateChecks():o.of(!1)})},t.prototype.resolveData=function(t){var e=this;if(!this.isActivating())return o.of(null);var n=u.from(this.canActivateChecks),r=a.concatMap.call(n,function(n){return e.runResolve(n.route,t)});return b.reduce.call(r,function(t,e){return t})},t.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},t.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},t.prototype.setupChildRouteGuards=function(t,e,n,r){var i=this,o=Lt(e);t.children.forEach(function(t){i.setupRouteGuards(t,o[t.value.outlet],n,r.concat([t.value])),delete o[t.value.outlet]}),J(o,function(t,e){return i.deactivateRouteAndItsChildren(t,n.getContext(e))})},t.prototype.setupRouteGuards=function(t,e,n,r){var i=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&i.routeConfig===o.routeConfig){var s=this.shouldRunGuardsAndResolvers(o,i,i.routeConfig.runGuardsAndResolvers);if(s?this.canActivateChecks.push(new ae(r)):(i.data=o.data,i._resolvedData=o._resolvedData),i.component?this.setupChildRouteGuards(t,e,a?a.children:null,r):this.setupChildRouteGuards(t,e,n,r),s){var c=a.outlet;this.canDeactivateChecks.push(new se(c.component,o))}}else o&&this.deactivateRouteAndItsChildren(e,a),this.canActivateChecks.push(new ae(r)),i.component?this.setupChildRouteGuards(t,null,a?a.children:null,r):this.setupChildRouteGuards(t,null,n,r)},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!qt(t,e)||!X(t.queryParams,e.queryParams);case"paramsChange":default:return!qt(t,e)}},t.prototype.deactivateRouteAndItsChildren=function(t,e){var n=this,r=Lt(t),i=t.value;J(r,function(t,r){i.component?e?n.deactivateRouteAndItsChildren(t,e.children.getContext(r)):n.deactivateRouteAndItsChildren(t,null):n.deactivateRouteAndItsChildren(t,e)}),i.component&&e&&e.outlet&&e.outlet.isActivated?this.canDeactivateChecks.push(new se(e.outlet.component,i)):this.canDeactivateChecks.push(new se(null,i))},t.prototype.runCanDeactivateChecks=function(){var t=this,e=u.from(this.canDeactivateChecks),n=c.mergeMap.call(e,function(e){return t.runCanDeactivate(e.component,e.route)});return g.every.call(n,function(t){return!0===t})},t.prototype.runCanActivateChecks=function(){var t=this,e=u.from(this.canActivateChecks),n=a.concatMap.call(e,function(e){return tt(u.from([t.fireChildActivationStart(e.route.parent),t.fireActivationStart(e.route),t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))});return g.every.call(n,function(t){return!0===t})},t.prototype.fireActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new V(t)),o.of(!0)},t.prototype.fireChildActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new j(t)),o.of(!0)},t.prototype.runCanActivate=function(t){var e=this,n=t.routeConfig?t.routeConfig.canActivate:null;return n&&0!==n.length?tt(s.map.call(u.from(n),function(n){var r,i=e.getToken(n,t);return r=i.canActivate?et(i.canActivate(t,e.future)):et(i(t,e.future)),d.first.call(r)})):o.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 tt(s.map.call(u.from(r),function(t){return tt(s.map.call(u.from(t.guards),function(r){var i,o=e.getToken(r,t.node);return i=o.canActivateChild?et(o.canActivateChild(n,e.future)):et(o(n,e.future)),d.first.call(i)}))}))},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 o.of(!0);var i=c.mergeMap.call(u.from(r),function(r){var i,o=n.getToken(r,e);return i=o.canDeactivate?et(o.canDeactivate(t,e,n.curr,n.future)):et(o(t,e,n.curr,n.future)),d.first.call(i)});return g.every.call(i,function(t){return!0===t})},t.prototype.runResolve=function(t,e){var n=t._resolve;return s.map.call(this.resolveNode(n,t),function(n){return t._resolvedData=n,t.data=E({},t.data,Bt(t,e).resolve),null})},t.prototype.resolveNode=function(t,e){var n=this,r=Object.keys(t);if(0===r.length)return o.of({});if(1===r.length){var i=r[0];return s.map.call(this.getResolver(t[i],e),function(t){return(e={})[i]=t,e;var e})}var a={},l=c.mergeMap.call(u.from(r),function(r){return s.map.call(n.getResolver(t[r],e),function(t){return a[r]=t,t})});return s.map.call(y.last.call(l),function(){return a})},t.prototype.getResolver=function(t,e){var n=this.getToken(t,e);return n.resolve?et(n.resolve(e,this.future)):et(n(e,this.future))},t.prototype.getToken=function(t,e){var n=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(n?n.module.injector:this.moduleInjector).get(t)},t}();var le=function(){return function(){}}();var ue=function(){function t(t,e,n,r,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i}return t.prototype.recognize=function(){try{var t=de(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,U),n=new Ut([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},U,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Nt(n,e),i=new Ht(this.url,r);return this.inheritParamsAndData(i._root),o.of(i)}catch(t){return new l.Observable(function(e){return e.error(t)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=Bt(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,r=this,i=ct(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},i.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.url.map(function(t){return t.toString()}).join("/"),i=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+i+"'.")}n[t.value.outlet]=t.value}),i.sort(function(t,e){return t.value.outlet===U?-1:e.value.outlet===U?1:t.value.outlet.localeCompare(e.value.outlet)}),i},t.prototype.processSegment=function(t,e,n,r){for(var i=0,o=t;i<o.length;i++){var a=o[i];try{return this.processSegmentAgainstRoute(a,e,n,r)}catch(t){if(!(t instanceof le))throw t}}if(this.noLeftoversInUrl(e,n,r))return[];throw new le},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 le;if((t.outlet||U)!==r)throw new le;var i,o=[],a=[];if("**"===t.path){var s=n.length>0?Z(n).parameters:{};i=new Ut(n,s,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ge(t),r,t.component,t,pe(e),he(e)+n.length,ye(t))}else{var c=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new le;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||W)(n,t,e);if(!r)throw new le;var i={};J(r.posParams,function(t,e){i[e]=t.path});var o=r.consumed.length>0?E({},i,r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}(e,t,n);o=c.consumedSegments,a=n.slice(c.lastChild),i=new Ut(o,c.parameters,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ge(t),r,t.component,t,pe(e),he(e)+o.length,ye(t))}var l=function(t){if(t.children)return t.children;if(t.loadChildren)return t._loadedConfig.routes;return[]}(t),u=de(e,o,a,l),p=u.segmentGroup,h=u.slicedSegments;if(0===h.length&&p.hasChildren()){var d=this.processChildren(l,p);return[new Nt(i,d)]}if(0===l.length&&0===h.length)return[new Nt(i,[])];var f=this.processSegment(l,p,h,U);return[new Nt(i,f)]},t}();function pe(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function he(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 de(t,e,n,r){if(n.length>0&&(o=t,a=n,r.some(function(t){return fe(o,a,t)&&me(t)!==U}))){var i=new ot(e,function(t,e,n,r){var i={};i[U]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(var o=0,a=n;o<a.length;o++){var s=a[o];if(""===s.path&&me(s)!==U){var c=new ot([],{});c._sourceSegment=t,c._segmentIndexShift=e.length,i[me(s)]=c}}return i}(t,e,r,new ot(n,t.children)));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:[]}}var o,a,s,c;if(0===n.length&&(s=t,c=n,r.some(function(t){return fe(s,c,t)}))){var l=new ot(t.segments,function(t,e,n,r){for(var i={},o=0,a=n;o<a.length;o++){var s=a[o];if(fe(t,e,s)&&!r[me(s)]){var c=new ot([],{});c._sourceSegment=t,c._segmentIndexShift=t.segments.length,i[me(s)]=c}}return E({},r,i)}(t,n,r,t.children));return l._sourceSegment=t,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:n}}var u=new ot(t.segments,t.children);return u._sourceSegment=t,u._segmentIndexShift=e.length,{segmentGroup:u,slicedSegments:n}}function fe(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0===n.redirectTo)}function me(t){return t.outlet||U}function ge(t){return t.data||{}}function ye(t){return t.resolve||{}}var ve=function(){return function(){}}(),be=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}(),_e=new n.InjectionToken("ROUTES"),we=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 s.map.call(r,function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new q(Q(i.injector.get(_e)),i)})},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?m.fromPromise(this.loader.load(t)):c.mergeMap.call(et(t()),function(t){return t instanceof n.NgModuleFactory?o.of(t):m.fromPromise(e.compiler.compileModuleAsync(t))})},t}(),Ce=function(){return function(){}}(),xe=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function Ee(t){throw t}function Se(t){return o.of(null)}var ke=function(){function t(t,e,o,a,s,c,l,u){var p=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=o,this.location=a,this.config=u,this.navigations=new r.BehaviorSubject(null),this.navigationId=0,this.events=new i.Subject,this.errorHandler=Ee,this.navigated=!1,this.hooks={beforePreactivation:Se,afterPreactivation:Se},this.urlHandlingStrategy=new xe,this.routeReuseStrategy=new be,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly";this.ngModule=s.get(n.NgModuleRef),this.resetConfig(u),this.currentUrlTree=new it(new ot([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new we(c,l,function(t){return p.triggerEvent(new N(t))},function(t){return p.triggerEvent(new L(t))}),this.routerState=Ft(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(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,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.events.next(t)},t.prototype.resetConfig=function(t){Y(t),this.config=t,this.navigated=!1},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){void 0===e&&(e={});var r=e.relativeTo,i=e.queryParams,o=e.fragment,a=e.preserveQueryParams,s=e.queryParamsHandling,c=e.preserveFragment;n.isDevMode()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=r||this.routerState.root,u=c?this.currentUrlTree.fragment:o,p=null;if(s)switch(s){case"merge":p=E({},this.currentUrlTree.queryParams,i);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=i||null}else p=a?this.currentUrlTree.queryParams:i||null;return null!==p&&(p=this.removeEmptyProps(p)),Kt(l,this.currentUrlTree,t,p,u)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var n=t instanceof it?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e<t.length;e++){var n=t[e];if(null==n)throw new Error("The requested path contains "+n+" segment at index "+e)}}(t),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 it)return nt(this.currentUrlTree,t,e);var n=this.urlSerializer.parse(t);return nt(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(){})):o.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);if(r&&"popstate"==e&&"hashchange"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);var i=null,o=null,a=new Promise(function(t,e){i=t,o=e}),s=++this.navigationId;return this.navigations.next({id:s,source:e,rawUrl:t,extras:n,resolve:i,reject:o,promise:a}),a.catch(function(t){return Promise.reject(t)})},t.prototype.executeScheduledNavigation=function(t){var e=this,n=t.id,r=t.rawUrl,i=t.extras,o=t.resolve,a=t.reject,s=this.urlHandlingStrategy.extract(r),c=!this.navigated||s.toString()!==this.currentUrlTree.toString();("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(r)?(this.events.next(new k(n,this.serializeUrl(s))),Promise.resolve().then(function(t){return e.runNavigate(s,r,!!i.skipLocationChange,!!i.replaceUrl,n,null)}).then(o,a)):c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)?(this.events.next(new k(n,this.serializeUrl(s))),Promise.resolve().then(function(t){return e.runNavigate(s,r,!1,!1,n,Ft(s,e.rootComponentType).snapshot)}).then(o,a)):(this.rawUrlTree=r,o(null))},t.prototype.runNavigate=function(t,e,n,r,i,a){var l=this;return i!==this.navigationId?(this.events.next(new P(i,this.serializeUrl(t),"Navigation ID "+i+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(u,p){var h,d,f,m,g,y;if(a)h=o.of({appliedUrl:t,snapshot:a});else{var v=l.ngModule.injector,b=(d=v,f=l.configLoader,m=l.urlSerializer,g=t,y=l.config,new Ot(d,f,m,g,y).apply());h=c.mergeMap.call(b,function(e){return s.map.call((n=l.rootComponentType,r=l.config,o=e,a=l.serializeUrl(e),void 0===(c=l.paramsInheritanceStrategy)&&(c="emptyOnly"),new ue(n,r,o,a,c).recognize()),function(n){return l.events.next(new T(i,l.serializeUrl(t),l.serializeUrl(e),n)),{appliedUrl:e,snapshot:n}});var n,r,o,a,c})}var _,w,C=c.mergeMap.call(h,function(t){return s.map.call(l.hooks.beforePreactivation(t.snapshot),function(){return t})}),x=s.map.call(C,function(t){var e=t.appliedUrl,n=t.snapshot,r=l.ngModule.injector;return(_=new ce(n,l.routerState.snapshot,r,function(t){return l.triggerEvent(t)})).initialize(l.rootContexts),{appliedUrl:e,snapshot:n}}),E=c.mergeMap.call(x,function(e){var n=e.appliedUrl,r=e.snapshot;return l.navigationId!==i?o.of(!1):(l.triggerEvent(new M(i,l.serializeUrl(t),n,r)),s.map.call(_.checkGuards(),function(e){return l.triggerEvent(new I(i,l.serializeUrl(t),n,r,e)),{appliedUrl:n,snapshot:r,shouldActivate:e}}))}),S=c.mergeMap.call(E,function(e){return l.navigationId!==i?o.of(!1):e.shouldActivate&&_.isActivating()?(l.triggerEvent(new R(i,l.serializeUrl(t),e.appliedUrl,e.snapshot)),s.map.call(_.resolveData(l.paramsInheritanceStrategy),function(){return l.triggerEvent(new D(i,l.serializeUrl(t),e.appliedUrl,e.snapshot)),e})):o.of(e)}),k=c.mergeMap.call(S,function(t){return s.map.call(l.hooks.afterPreactivation(t.snapshot),function(){return t})}),N=s.map.call(k,function(t){var e,n,r,i,o=t.appliedUrl,a=t.snapshot,s=t.shouldActivate;return s?{appliedUrl:o,state:(e=l.routeReuseStrategy,n=a,r=l.routerState,i=Yt(e,n._root,r?r._root:void 0),new jt(i,n)),shouldActivate:s}:{appliedUrl:o,state:null,shouldActivate:s}}),L=l.routerState,j=l.currentUrlTree;N.forEach(function(t){var o=t.appliedUrl,a=t.state;if(t.shouldActivate&&i===l.navigationId){if(l.currentUrlTree=o,l.rawUrlTree=l.urlHandlingStrategy.merge(l.currentUrlTree,e),l.routerState=a,!n){var s=l.urlSerializer.serialize(l.rawUrlTree);l.location.isCurrentPathEqualTo(s)||r?l.location.replaceState(s):l.location.go(s)}new Oe(l.routeReuseStrategy,a,L,function(t){return l.triggerEvent(t)}).activate(l.rootContexts),w=!0}else w=!1}).then(function(){w?(l.navigated=!0,l.events.next(new O(i,l.serializeUrl(t),l.serializeUrl(l.currentUrlTree))),u(!0)):(l.resetUrlToCurrentUrlTree(),l.events.next(new P(i,l.serializeUrl(t),"")),u(!1))},function(n){if((r=n)&&r[G])l.navigated=!0,l.resetStateAndUrl(L,j,e),l.events.next(new P(i,l.serializeUrl(t),n.message)),u(!1);else{l.resetStateAndUrl(L,j,e),l.events.next(new A(i,l.serializeUrl(t),n));try{u(l.errorHandler(n))}catch(t){p(t)}}var r})})},t.prototype.resetStateAndUrl=function(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()},t.prototype.resetUrlToCurrentUrlTree=function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree))},t}(),Oe=function(){function t(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}return t.prototype.activate=function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Wt(this.futureState.root),this.activateChildRoutes(e,n,t)},t.prototype.deactivateChildRoutes=function(t,e,n){var r=this,i=Lt(e);t.children.forEach(function(t){var e=t.value.outlet;r.deactivateRoutes(t,i[e],n),delete i[e]}),J(i,function(t,e){r.deactivateRouteAndItsChildren(t,n)})},t.prototype.deactivateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(r===i)if(r.component){var o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,n);else i&&this.deactivateRouteAndItsChildren(e,n)},t.prototype.deactivateRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var n=e.getContext(t.value.outlet);if(n&&n.outlet){var r=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t,contexts:i})}},t.prototype.deactivateRouteAndOutlet=function(t,e){var n=this,r=e.getContext(t.value.outlet);if(r){var i=Lt(t),o=t.value.component?r.children:e;J(i,function(t,e){return n.deactivateRouteAndItsChildren(t,o)}),r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated())}},t.prototype.activateChildRoutes=function(t,e,n){var r=this,i=Lt(e);t.children.forEach(function(t){r.activateRoutes(t,i[t.value.outlet],n),r.forwardEvent(new B(t.value.snapshot))}),t.children.length&&this.forwardEvent(new F(t.value.snapshot))},t.prototype.activateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(Wt(r),r===i)if(r.component){var o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,n);else if(r.component){o=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){var a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),Pe(a.route)}else{var s=function(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}(r.snapshot),c=s?s.module.componentFactoryResolver:null;o.route=r,o.resolver=c,o.outlet&&o.outlet.activateWith(r,c),this.activateChildRoutes(t,null,o.children)}}else this.activateChildRoutes(t,null,n)},t}();function Pe(t){Wt(t.value),t.children.forEach(Pe)}var Ae=function(){function t(t,e,n,r,i){this.router=t,this.route=e,this.commands=[],null==n&&r.setAttribute(i.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:Me(this.skipLocationChange),replaceUrl:Me(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:Me(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Me(this.preserveFragment)})},enumerable:!0,configurable:!0}),t.decorators=[{type:n.Directive,args:[{selector:":not(a)[routerLink]"}]}],t.ctorParameters=function(){return[{type:ke},{type:Vt},{type:void 0,decorators:[{type:n.Attribute,args:["tabindex"]}]},{type:n.Renderer2},{type:n.ElementRef}]},t.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"]}]},t}(),Te=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 O&&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,r){if(0!==t||e||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var i={skipLocationChange:Me(this.skipLocationChange),replaceUrl:Me(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,i),!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:Me(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Me(this.preserveFragment)})},enumerable:!0,configurable:!0}),t.decorators=[{type:n.Directive,args:[{selector:"a[routerLink]"}]}],t.ctorParameters=function(){return[{type:ke},{type:Vt},{type:e.LocationStrategy}]},t.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","$event.shiftKey"]]}]},t}();function Me(t){return""===t||!!t}var Ie=function(){function t(t,e,n,r){var i=this;this.router=t,this.element=e,this.renderer=n,this.cdr=r,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(function(t){t instanceof O&&i.update()})}return 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;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(function(){var e=t.hasActiveLinks();t.isActive!==e&&(t.isActive=e,t.classes.forEach(function(n){e?t.renderer.addClass(t.element.nativeElement,n):t.renderer.removeClass(t.element.nativeElement,n)}))})},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.decorators=[{type:n.Directive,args:[{selector:"[routerLinkActive]",exportAs:"routerLinkActive"}]}],t.ctorParameters=function(){return[{type:ke},{type:n.ElementRef},{type:n.Renderer2},{type:n.ChangeDetectorRef}]},t.propDecorators={links:[{type:n.ContentChildren,args:[Ae,{descendants:!0}]}],linksWithHrefs:[{type:n.ContentChildren,args:[Te,{descendants:!0}]}],routerLinkActiveOptions:[{type:n.Input}],routerLinkActive:[{type:n.Input}]},t}(),Re=function(){return function(){this.outlet=null,this.route=null,this.resolver=null,this.children=new De,this.attachRef=null}}(),De=function(){function t(){this.contexts=new Map}return t.prototype.onChildOutletCreated=function(t,e){var n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)},t.prototype.onChildOutletDestroyed=function(t){var e=this.getContext(t);e&&(e.outlet=null)},t.prototype.onOutletDeactivated=function(){var t=this.contexts;return this.contexts=new Map,t},t.prototype.onOutletReAttached=function(t){this.contexts=t},t.prototype.getOrCreateContext=function(t){var e=this.getContext(t);return e||(e=new Re,this.contexts.set(t,e)),e},t.prototype.getContext=function(t){return this.contexts.get(t)||null},t}(),Ne=function(){function t(t,e,r,i,o){this.parentContexts=t,this.location=e,this.resolver=r,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new n.EventEmitter,this.deactivateEvents=new n.EventEmitter,this.name=i||U,t.onChildOutletCreated(this.name,this)}return t.prototype.ngOnDestroy=function(){this.parentContexts.onChildOutletDestroyed(this.name)},t.prototype.ngOnInit=function(){if(!this.activated){var t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}},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}),Object.defineProperty(t.prototype,"activatedRouteData",{get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}},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.activateWith=function(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;var n=t._futureSnapshot.routeConfig.component,r=(e=e||this.resolver).resolveComponentFactory(n),i=this.parentContexts.getOrCreateContext(this.name).children,o=new Le(t,i,this.location.injector);this.activated=this.location.createComponent(r,this.location.length,o),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)},t.decorators=[{type:n.Directive,args:[{selector:"router-outlet",exportAs:"outlet"}]}],t.ctorParameters=function(){return[{type:De},{type:n.ViewContainerRef},{type:n.ComponentFactoryResolver},{type:void 0,decorators:[{type:n.Attribute,args:["name"]}]},{type:n.ChangeDetectorRef}]},t.propDecorators={activateEvents:[{type:n.Output,args:["activate"]}],deactivateEvents:[{type:n.Output,args:["deactivate"]}]},t}(),Le=function(){function t(t,e,n){this.route=t,this.childContexts=e,this.parent=n}return t.prototype.get=function(t,e){return t===Vt?this.route:t===De?this.childContexts:this.parent.get(t,e)},t}(),je=function(){return function(){}}(),Fe=function(){function t(){}return t.prototype.preload=function(t,e){return p._catch.call(e(),function(){return o.of(null)})},t}(),Ve=function(){function t(){}return t.prototype.preload=function(t,e){return o.of(null)},t}(),Be=function(){function t(t,e,n,r,i){this.router=t,this.injector=r,this.preloadingStrategy=i;this.loader=new we(e,n,function(e){return t.triggerEvent(new N(e))},function(e){return t.triggerEvent(new L(e))})}return t.prototype.setUpPreloading=function(){var t=this,e=w.filter.call(this.router.events,function(t){return t instanceof O});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,i=e;r<i.length;r++){var o=i[r];if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var a=o._loadedConfig;n.push(this.processRoutes(a.module,a.routes))}else o.loadChildren&&!o.canLoad?n.push(this.preloadConfig(t,o)):o.children&&n.push(this.processRoutes(t,o.children))}return v.mergeAll.call(u.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 c.mergeMap.call(r,function(t){return e._loadedConfig=t,n.processRoutes(t.module,t.routes)})})},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:ke},{type:n.NgModuleFactoryLoader},{type:n.Compiler},{type:n.Injector},{type:je}]},t}(),Ue=[Ne,Ae,Te,Ie],He=new n.InjectionToken("ROUTER_CONFIGURATION"),ze=new n.InjectionToken("ROUTER_FORROOT_GUARD"),Ge=[e.Location,{provide:lt,useClass:ut},{provide:ke,useFactory:Xe,deps:[n.ApplicationRef,lt,De,e.Location,n.Injector,n.NgModuleFactoryLoader,n.Compiler,_e,He,[Ce,new n.Optional],[ve,new n.Optional]]},De,{provide:Vt,useFactory:Qe,deps:[ke]},{provide:n.NgModuleFactoryLoader,useClass:n.SystemJsNgModuleLoader},Be,Ve,Fe,{provide:He,useValue:{enableTracing:!1}}];function We(){return new n.NgProbeToken("Router",ke)}var qe=function(){function t(t,e){}return t.forRoot=function(r,i){return{ngModule:t,providers:[Ge,$e(r),{provide:ze,useFactory:Ke,deps:[[ke,new n.Optional,new n.SkipSelf]]},{provide:He,useValue:i||{}},{provide:e.LocationStrategy,useFactory:Ye,deps:[e.PlatformLocation,[new n.Inject(e.APP_BASE_HREF),new n.Optional],He]},{provide:je,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:Ve},{provide:n.NgProbeToken,multi:!0,useFactory:We},nn()]}},t.forChild=function(e){return{ngModule:t,providers:[$e(e)]}},t.decorators=[{type:n.NgModule,args:[{declarations:Ue,exports:Ue}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[ze]}]},{type:ke,decorators:[{type:n.Optional}]}]},t}();function Ye(t,n,r){return void 0===r&&(r={}),r.useHash?new e.HashLocationStrategy(t,n):new e.PathLocationStrategy(t,n)}function Ke(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function $e(t){return[{provide:n.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:t},{provide:_e,multi:!0,useValue:t}]}function Xe(t,e,n,r,i,o,a,s,c,l,u){void 0===c&&(c={});var p=new ke(null,e,n,r,i,o,a,Q(s));if(l&&(p.urlHandlingStrategy=l),u&&(p.routeReuseStrategy=u),c.errorHandler&&(p.errorHandler=c.errorHandler),c.enableTracing){var h=_.ɵgetDOM();p.events.subscribe(function(t){h.logGroup("Router Event: "+t.constructor.name),h.log(t.toString()),h.log(t),h.logGroupEnd()})}return c.onSameUrlNavigation&&(p.onSameUrlNavigation=c.onSameUrlNavigation),c.paramsInheritanceStrategy&&(p.paramsInheritanceStrategy=c.paramsInheritanceStrategy),p}function Qe(t){return t.routerState.root}var Ze=function(){function t(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new i.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(ke),i=t.injector.get(He);if(t.isLegacyDisabled(i)||t.isLegacyEnabled(i))e(!0);else if("disabled"===i.initialNavigation)r.setUpLocationChangeListener(),e(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '"+i.initialNavigation+"'");r.hooks.afterPreactivation=function(){return t.initNavigation?o.of(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()}return n})},t.prototype.bootstrapListener=function(t){var e=this.injector.get(He),r=this.injector.get(Be),i=this.injector.get(ke),o=this.injector.get(n.ApplicationRef);t===o.components[0]&&(this.isLegacyEnabled(e)?i.initialNavigation():this.isLegacyDisabled(e)&&i.setUpLocationChangeListener(),r.setUpPreloading(),i.resetRootComponentType(o.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.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:n.Injector}]},t}();function Je(t){return t.appInitializer.bind(t)}function tn(t){return t.bootstrapListener.bind(t)}var en=new n.InjectionToken("Router Initializer");function nn(){return[Ze,{provide:n.APP_INITIALIZER,multi:!0,useFactory:Je,deps:[Ze]},{provide:en,useFactory:tn,deps:[Ze]},{provide:n.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:en}]}var rn=new n.Version("5.2.2");t.RouterLink=Ae,t.RouterLinkWithHref=Te,t.RouterLinkActive=Ie,t.RouterOutlet=Ne,t.ActivationEnd=B,t.ActivationStart=V,t.ChildActivationEnd=F,t.ChildActivationStart=j,t.GuardsCheckEnd=I,t.GuardsCheckStart=M,t.NavigationCancel=P,t.NavigationEnd=O,t.NavigationError=A,t.NavigationStart=k,t.ResolveEnd=D,t.ResolveStart=R,t.RouteConfigLoadEnd=L,t.RouteConfigLoadStart=N,t.RouterEvent=S,t.RoutesRecognized=T,t.RouteReuseStrategy=ve,t.Router=ke,t.ROUTES=_e,t.ROUTER_CONFIGURATION=He,t.ROUTER_INITIALIZER=en,t.RouterModule=qe,t.provideRoutes=$e,t.ChildrenOutletContexts=De,t.OutletContext=Re,t.NoPreloading=Ve,t.PreloadAllModules=Fe,t.PreloadingStrategy=je,t.RouterPreloader=Be,t.ActivatedRoute=Vt,t.ActivatedRouteSnapshot=Ut,t.RouterState=jt,t.RouterStateSnapshot=Ht,t.PRIMARY_OUTLET=U,t.convertToParamMap=z,t.UrlHandlingStrategy=Ce,t.DefaultUrlSerializer=ut,t.UrlSegment=at,t.UrlSegmentGroup=ot,t.UrlSerializer=lt,t.UrlTree=it,t.VERSION=rn,t.ɵROUTER_PROVIDERS=Ge,t.ɵflatten=Q,t.ɵa=ze,t.ɵg=Ze,t.ɵh=Je,t.ɵi=tn,t.ɵd=Ke,t.ɵc=Ye,t.ɵj=nn,t.ɵf=Qe,t.ɵb=We,t.ɵe=Xe,t.ɵk=It,t.ɵl=Nt,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("@angular/common"),t("@angular/core"),t("rxjs/BehaviorSubject"),t("rxjs/Subject"),t("rxjs/observable/of"),t("rxjs/operator/concatMap"),t("rxjs/operator/map"),t("rxjs/operator/mergeMap"),t("rxjs/Observable"),t("rxjs/observable/from"),t("rxjs/operator/catch"),t("rxjs/operator/concatAll"),t("rxjs/operator/first"),t("rxjs/util/EmptyError"),t("rxjs/observable/fromPromise"),t("rxjs/operator/every"),t("rxjs/operator/last"),t("rxjs/operator/mergeAll"),t("rxjs/operator/reduce"),t("@angular/platform-browser"),t("rxjs/operator/filter")):i((r.ng=r.ng||{},r.ng.router={}),r.ng.common,r.ng.core,r.Rx,r.Rx,r.Rx.Observable,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx,r.Rx.Observable,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx,r.Rx.Observable,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.ng.platformBrowser,r.Rx.Observable.prototype)},{"@angular/common":56,"@angular/core":58,"@angular/platform-browser":63,"rxjs/BehaviorSubject":65,"rxjs/Observable":68,"rxjs/Subject":72,"rxjs/observable/from":95,"rxjs/observable/fromPromise":98,"rxjs/observable/of":100,"rxjs/operator/catch":103,"rxjs/operator/concatAll":104,"rxjs/operator/concatMap":105,"rxjs/operator/every":106,"rxjs/operator/filter":107,"rxjs/operator/first":108,"rxjs/operator/last":109,"rxjs/operator/map":110,"rxjs/operator/mergeAll":111,"rxjs/operator/mergeMap":112,"rxjs/operator/reduce":113,"rxjs/util/EmptyError":152}],65:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("./Subject"),o=t("./util/ObjectUnsubscribedError"),a=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 o.ObjectUnsubscribedError;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.Subject);n.BehaviorSubject=a},{"./Subject":72,"./util/ObjectUnsubscribedError":153}],66:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=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=i},{"./Subscriber":74}],67:[function(t,e,n){"use strict";var r=t("./Observable"),i=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):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();n.Notification=i},{"./Observable":68}],68:[function(t,e,n){"use strict";var r=t("./util/root"),i=t("./util/toSubscriber"),o=t("./symbol/observable"),a=t("./util/pipe"),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,o=i.toSubscriber(t,e,n);if(r?r.call(o,this.source):o.add(this.source||!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},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 i;i=n.subscribe(function(e){if(i)try{t(e)}catch(t){r(t),i.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[o.observable]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 0===t.length?this:a.pipeFromArray(t)(this)},t.prototype.toPromise=function(t){var e=this;if(t||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?t=r.root.Rx.config.Promise:r.root.Promise&&(t=r.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}();n.Observable=s},{"./symbol/observable":149,"./util/pipe":166,"./util/root":167,"./util/toSubscriber":169}],69:[function(t,e,n){"use strict";n.empty={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},{}],70:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(t("./Subscriber").Subscriber);n.OuterSubscriber=i},{"./Subscriber":74}],71:[function(t,e,n){"use strict";var r=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=Date.now?Date.now:function(){return+new Date},t}();n.Scheduler=r},{}],72:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("./Observable"),o=t("./Subscriber"),a=t("./Subscription"),s=t("./util/ObjectUnsubscribedError"),c=t("./SubjectSubscription"),l=t("./symbol/rxSubscriber"),u=function(t){function e(e){t.call(this,e),this.destination=e}return r(e,t),e}(o.Subscriber);n.SubjectSubscriber=u;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[l.rxSubscriber]=function(){return new u(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 s.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new s.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new s.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 s.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new s.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),a.Subscription.EMPTY):this.isStopped?(t.complete(),a.Subscription.EMPTY):(this.observers.push(t),new c.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new i.Observable;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(i.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):a.Subscription.EMPTY},e}(p);n.AnonymousSubject=h},{"./Observable":68,"./SubjectSubscription":73,"./Subscriber":74,"./Subscription":75,"./symbol/rxSubscriber":150,"./util/ObjectUnsubscribedError":153}],73:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=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=i},{"./Subscription":75}],74:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("./util/isFunction"),o=t("./Subscription"),a=t("./Observer"),s=t("./symbol/rxSubscriber"),c=function(t){function e(n,r,i){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a.empty;break;case 1:if(!n){this.destination=a.empty;break}if("object"==typeof n){n instanceof e?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new l(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new l(this,n,r,i)}}return r(e,t),e.prototype[s.rxSubscriber]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(o.Subscription);n.Subscriber=c;var l=function(t){function e(e,n,r,o){var s;t.call(this),this._parentSubscriber=e;var c=this;i.isFunction(n)?s=n:n&&(s=n.next,r=n.error,o=n.complete,n!==a.empty&&(c=Object.create(n),i.isFunction(c.unsubscribe)&&this.add(c.unsubscribe.bind(c)),c.unsubscribe=this.unsubscribe.bind(this))),this._context=c,this._next=s,this._error=r,this._complete=o}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(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(c)},{"./Observer":69,"./Subscription":75,"./symbol/rxSubscriber":150,"./util/isFunction":160}],75:[function(t,e,n){"use strict";var r=t("./util/isArray"),i=t("./util/isObject"),o=t("./util/isFunction"),a=t("./util/tryCatch"),s=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)}var e;return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,l=this._parents,p=this._unsubscribe,h=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var d=-1,f=l?l.length:0;n;)n.remove(this),n=++d<f&&l[d]||null;if(o.isFunction(p))a.tryCatch(p).call(this)===s.errorObject&&(e=!0,t=t||(s.errorObject.e instanceof c.UnsubscriptionError?u(s.errorObject.e.errors):[s.errorObject.e]));if(r.isArray(h))for(d=-1,f=h.length;++d<f;){var m=h[d];if(i.isObject(m))if(a.tryCatch(m.unsubscribe).call(m)===s.errorObject){e=!0,t=t||[];var g=s.errorObject.e;g instanceof c.UnsubscriptionError?t=t.concat(u(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._parent,n=this._parents;e&&e!==t?n?-1===n.indexOf(t)&&n.push(t):this._parents=[t]:this._parent=t},t.EMPTY=((e=new t).closed=!0,e),t}();function u(t){return t.reduce(function(t,e){return t.concat(e instanceof c.UnsubscriptionError?e.errors:e)},[])}n.Subscription=l},{"./util/UnsubscriptionError":154,"./util/errorObject":155,"./util/isArray":157,"./util/isFunction":160,"./util/isObject":162,"./util/tryCatch":170}],76:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=t("./ScalarObservable"),a=t("./EmptyObservable"),s=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 a.EmptyObservable:1===r?new o.ScalarObservable(t[0],n):new e(t,n)},e.dispatch=function(t){var e=t.arrayLike,n=t.index,r=t.length,i=t.subscriber;i.closed||(n>=r?i.complete():(i.next(e[n]),t.index=n+1,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.arrayLike,r=this.scheduler,i=n.length;if(r)return r.schedule(e.dispatch,0,{arrayLike:n,index:0,length:i,subscriber:t});for(var o=0;o<i&&!t.closed;o++)t.next(n[o]);t.complete()},e}(i.Observable);n.ArrayLikeObservable=s},{"../Observable":68,"./EmptyObservable":80,"./ScalarObservable":88}],77:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=t("./ScalarObservable"),a=t("./EmptyObservable"),s=t("../util/isScheduler"),c=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];s.isScheduler(r)?t.pop():r=null;var i=t.length;return i>1?new e(t,r):1===i?new o.ScalarObservable(t[0],r):new a.EmptyObservable(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.count,i=t.subscriber;n>=r?i.complete():(i.next(e[n]),i.closed||(t.index=n+1,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.array,r=n.length,i=this.scheduler;if(i)return i.schedule(e.dispatch,0,{array:n,index:0,count:r,subscriber:t});for(var o=0;o<r&&!t.closed;o++)t.next(n[o]);t.complete()},e}(i.Observable);n.ArrayObservable=c},{"../Observable":68,"../util/isScheduler":164,"./EmptyObservable":80,"./ScalarObservable":88}],78:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subject"),o=t("../Observable"),a=t("../Subscriber"),s=t("../Subscription"),c=t("../operators/refCount"),l=function(t){function e(e,n){t.call(this),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}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||(this._isComplete=!1,(t=this._connection=new s.Subscription).add(this.source.subscribe(new p(this.getSubject(),this))),t.closed?(this._connection=null,t=s.Subscription.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return c.refCount()(this)},e}(o.Observable);n.ConnectableObservable=l;var u=l.prototype;n.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:u._subscribe},_isComplete:{value:u._isComplete,writable:!0},getSubject:{value:u.getSubject},connect:{value:u.connect},refCount:{value:u.refCount}};var p=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.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.SubjectSubscriber),h=(function(){function t(t){this.connectable=t}t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new h(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i}}(),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}(a.Subscriber))},{"../Observable":68,"../Subject":72,"../Subscriber":74,"../Subscription":75,"../operators/refCount":135}],79:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=t("../util/subscribeToResult"),a=t("../OuterSubscriber"),s=function(t){function e(e){t.call(this),this.observableFactory=e}return r(e,t),e.create=function(t){return new e(t)},e.prototype._subscribe=function(t){return new c(t,this.observableFactory)},e}(i.Observable);n.DeferObservable=s;var c=function(t){function e(e,n){t.call(this,e),this.factory=n,this.tryDefer()}return r(e,t),e.prototype.tryDefer=function(){try{this._callFactory()}catch(t){this._error(t)}},e.prototype._callFactory=function(){var t=this.factory();t&&this.add(o.subscribeToResult(this,t))},e}(a.OuterSubscriber)},{"../Observable":68,"../OuterSubscriber":70,"../util/subscribeToResult":168}],80:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=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=i},{"../Observable":68}],81:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(e,n){t.call(this),this.error=e,this.scheduler=n}return r(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.error;t.subscriber.error(e)},e.prototype._subscribe=function(t){var n=this.error,r=this.scheduler;if(t.syncErrorThrowable=!0,r)return r.schedule(e.dispatch,0,{error:n,subscriber:t});t.error(n)},e}(t("../Observable").Observable);n.ErrorObservable=i},{"../Observable":68}],82:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=t("./EmptyObservable"),a=t("../util/isArray"),s=t("../util/subscribeToResult"),c=t("../OuterSubscriber"),l=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 o.EmptyObservable;var r=null;return"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&a.isArray(t[0])&&(t=t[0]),0===t.length?new o.EmptyObservable:new e(t,r)},e.prototype._subscribe=function(t){return new u(t,this.sources,this.resultSelector)},e}(i.Observable);n.ForkJoinObservable=l;var u=function(t){function e(e,n,r){t.call(this,e),this.sources=n,this.resultSelector=r,this.completed=0,this.haveValues=0;var i=n.length;this.total=i,this.values=new Array(i);for(var o=0;o<i;o++){var a=n[o],c=s.subscribeToResult(this,a,null,o);c&&(c.outerIndex=o,this.add(c))}}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e,i._hasValue||(i._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,n=this.haveValues,r=this.resultSelector,i=this.values,o=i.length;if(t._hasValue){if(this.completed++,this.completed===o){if(n===o){var a=r?r.apply(this,i):i;e.next(a)}e.complete()}}else e.complete()},e}(c.OuterSubscriber)},{"../Observable":68,"../OuterSubscriber":70,"../util/isArray":157,"../util/subscribeToResult":168,"./EmptyObservable":80}],83:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=t("../util/tryCatch"),a=t("../util/isFunction"),s=t("../util/errorObject"),c=t("../Subscription"),l=Object.prototype.toString;var u=function(t){function e(e,n,r,i){t.call(this),this.sourceObj=e,this.eventName=n,this.selector=r,this.options=i}return r(e,t),e.create=function(t,n,r,i){return a.isFunction(r)&&(i=r,r=void 0),new e(t,n,i,r)},e.setupSubscription=function(t,n,r,i,o){var a,s,u,p,h,d;if((d=t)&&"[object NodeList]"===l.call(d)||(h=t)&&"[object HTMLCollection]"===l.call(h))for(var f=0,m=t.length;f<m;f++)e.setupSubscription(t[f],n,r,i,o);else if((p=t)&&"function"==typeof p.addEventListener&&"function"==typeof p.removeEventListener){var g=t;t.addEventListener(n,r,o),a=function(){return g.removeEventListener(n,r)}}else if((u=t)&&"function"==typeof u.on&&"function"==typeof u.off){var y=t;t.on(n,r),a=function(){return y.off(n,r)}}else{if(!(s=t)||"function"!=typeof s.addListener||"function"!=typeof s.removeListener)throw new TypeError("Invalid event target");var v=t;t.addListener(n,r),a=function(){return v.removeListener(n,r)}}i.add(new c.Subscription(a))},e.prototype._subscribe=function(t){var n=this.sourceObj,r=this.eventName,i=this.options,a=this.selector,c=a?function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var r=o.tryCatch(a).apply(void 0,e);r===s.errorObject?t.error(s.errorObject.e):t.next(r)}:function(e){return t.next(e)};e.setupSubscription(n,r,c,t,i)},e}(i.Observable);n.FromEventObservable=u},{"../Observable":68,"../Subscription":75,"../util/errorObject":155,"../util/isFunction":160,"../util/tryCatch":170}],84:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/isFunction"),o=t("../Observable"),a=t("../Subscription"),s=function(t){function e(e,n,r){t.call(this),this.addHandler=e,this.removeHandler=n,this.selector=r}return r(e,t),e.create=function(t,n,r){return new e(t,n,r)},e.prototype._subscribe=function(t){var e=this,n=this.removeHandler,r=this.selector?function(){for(var n=[],r=0;r<arguments.length;r++)n[r-0]=arguments[r];e._callSelector(t,n)}:function(e){t.next(e)},o=this._callAddHandler(r,t);i.isFunction(n)&&t.add(new a.Subscription(function(){n(r,o)}))},e.prototype._callSelector=function(t,e){try{var n=this.selector.apply(this,e);t.next(n)}catch(e){t.error(e)}},e.prototype._callAddHandler=function(t,e){try{return this.addHandler(t)||null}catch(t){e.error(t)}},e}(o.Observable);n.FromEventPatternObservable=s},{"../Observable":68,"../Subscription":75,"../util/isFunction":160}],85:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/isArray"),o=t("../util/isArrayLike"),a=t("../util/isPromise"),s=t("./PromiseObservable"),c=t("./IteratorObservable"),l=t("./ArrayObservable"),u=t("./ArrayLikeObservable"),p=t("../symbol/iterator"),h=t("../Observable"),d=t("../operators/observeOn"),f=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[f.observable])return t instanceof h.Observable&&!n?t:new e(t,n);if(i.isArray(t))return new l.ArrayObservable(t,n);if(a.isPromise(t))return new s.PromiseObservable(t,n);if("function"==typeof t[p.iterator]||"string"==typeof t)return new c.IteratorObservable(t,n);if(o.isArrayLike(t))return new u.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[f.observable]().subscribe(t):e[f.observable]().subscribe(new d.ObserveOnSubscriber(t,n,0))},e}(h.Observable);n.FromObservable=m},{"../Observable":68,"../operators/observeOn":133,"../symbol/iterator":148,"../symbol/observable":149,"../util/isArray":157,"../util/isArrayLike":158,"../util/isPromise":163,"./ArrayLikeObservable":76,"./ArrayObservable":77,"./IteratorObservable":86,"./PromiseObservable":87}],86:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/root"),o=t("../Observable"),a=t("../symbol/iterator"),s=function(t){function e(e,n){if(t.call(this),this.scheduler=n,null==e)throw new Error("iterator cannot be null.");this.iterator=function(t){var e=t[a.iterator];if(!e&&"string"==typeof t)return new c(t);if(!e&&void 0!==t.length)return new l(t);if(!e)throw new TypeError("object is not iterable");return t[a.iterator]()}(e)}return r(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,i=t.subscriber;if(n)i.error(t.error);else{var o=r.next();o.done?i.complete():(i.next(o.value),t.index=e+1,i.closed?"function"==typeof r.return&&r.return():this.schedule(t))}},e.prototype._subscribe=function(t){var n=this.iterator,r=this.scheduler;if(r)return r.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}(o.Observable);n.IteratorObservable=s;var c=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[a.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}(),l=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=function(t){var e=+t.length;if(isNaN(e))return 0;if(0===e||(n=e,"number"!=typeof n||!i.root.isFinite(n)))return e;var n;if(r=e,o=+r,(e=(0===o?o:isNaN(o)?o:o<0?-1:1)*Math.floor(Math.abs(e)))<=0)return 0;var r,o;if(e>u)return u;return e}(t)),this.arr=t,this.idx=e,this.len=n}return t.prototype[a.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}();var u=Math.pow(2,53)-1},{"../Observable":68,"../symbol/iterator":148,"../util/root":167}],87:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/root"),o=function(t){function e(e,n){t.call(this),this.promise=e,this.scheduler=n}return r(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e=this,n=this.promise,r=this.scheduler;if(null==r)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){i.root.setTimeout(function(){throw t})});else if(this._isScalar){if(!t.closed)return r.schedule(a,0,{value:this.value,subscriber:t})}else n.then(function(n){e.value=n,e._isScalar=!0,t.closed||t.add(r.schedule(a,0,{value:n,subscriber:t}))},function(e){t.closed||t.add(r.schedule(s,0,{err:e,subscriber:t}))}).then(null,function(t){i.root.setTimeout(function(){throw t})})},e}(t("../Observable").Observable);function a(t){var e=t.value,n=t.subscriber;n.closed||(n.next(e),n.complete())}function s(t){var e=t.err,n=t.subscriber;n.closed||n.error(e)}n.PromiseObservable=o},{"../Observable":68,"../util/root":167}],88:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=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=i},{"../Observable":68}],89:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/isNumeric"),o=t("../Observable"),a=t("../scheduler/async"),s=t("../util/isScheduler"),c=t("../util/isDate"),l=function(t){function e(e,n,r){void 0===e&&(e=0),t.call(this),this.period=-1,this.dueTime=0,i.isNumeric(n)?this.period=Number(n)<1?1:Number(n):s.isScheduler(n)&&(r=n),s.isScheduler(r)||(r=a.async),this.scheduler=r,this.dueTime=c.isDate(e)?+e-this.scheduler.now():e}return r(e,t),e.create=function(t,n,r){return void 0===t&&(t=0),new e(t,n,r)},e.dispatch=function(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}},e.prototype._subscribe=function(t){var n=this.period,r=this.dueTime;return this.scheduler.schedule(e.dispatch,r,{index:0,period:n,subscriber:t})},e}(o.Observable);n.TimerObservable=l},{"../Observable":68,"../scheduler/async":147,"../util/isDate":159,"../util/isNumeric":161,"../util/isScheduler":164}],90:[function(t,e,n){"use strict";var r=t("../util/isScheduler"),i=t("../util/isArray"),o=t("./ArrayObservable"),a=t("../operators/combineLatest");n.combineLatest=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=null,s=null;return r.isScheduler(t[t.length-1])&&(s=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&i.isArray(t[0])&&(t=t[0]),new o.ArrayObservable(t,s).lift(new a.CombineLatestOperator(n))}},{"../operators/combineLatest":118,"../util/isArray":157,"../util/isScheduler":164,"./ArrayObservable":77}],91:[function(t,e,n){"use strict";var r=t("../util/isScheduler"),i=t("./of"),o=t("./from"),a=t("../operators/concatAll");n.concat=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 1===t.length||2===t.length&&r.isScheduler(t[1])?o.from(t[0]):a.concatAll()(i.of.apply(void 0,t))}},{"../operators/concatAll":119,"../util/isScheduler":164,"./from":95,"./of":100}],92:[function(t,e,n){"use strict";var r=t("./DeferObservable");n.defer=r.DeferObservable.create},{"./DeferObservable":79}],93:[function(t,e,n){"use strict";var r=t("./EmptyObservable");n.empty=r.EmptyObservable.create},{"./EmptyObservable":80}],94:[function(t,e,n){"use strict";var r=t("./ForkJoinObservable");n.forkJoin=r.ForkJoinObservable.create},{"./ForkJoinObservable":82}],95:[function(t,e,n){"use strict";var r=t("./FromObservable");n.from=r.FromObservable.create},{"./FromObservable":85}],96:[function(t,e,n){"use strict";var r=t("./FromEventObservable");n.fromEvent=r.FromEventObservable.create},{"./FromEventObservable":83}],97:[function(t,e,n){"use strict";var r=t("./FromEventPatternObservable");n.fromEventPattern=r.FromEventPatternObservable.create},{"./FromEventPatternObservable":84}],98:[function(t,e,n){"use strict";var r=t("./PromiseObservable");n.fromPromise=r.PromiseObservable.create},{"./PromiseObservable":87}],99:[function(t,e,n){"use strict";var r=t("../Observable"),i=t("./ArrayObservable"),o=t("../util/isScheduler"),a=t("../operators/mergeAll");n.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=Number.POSITIVE_INFINITY,s=null,c=t[t.length-1];return o.isScheduler(c)?(s=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof c&&(n=t.pop()),null===s&&1===t.length&&t[0]instanceof r.Observable?t[0]:a.mergeAll(n)(new i.ArrayObservable(t,s))}},{"../Observable":68,"../operators/mergeAll":130,"../util/isScheduler":164,"./ArrayObservable":77}],100:[function(t,e,n){"use strict";var r=t("./ArrayObservable");n.of=r.ArrayObservable.of},{"./ArrayObservable":77}],101:[function(t,e,n){"use strict";var r=t("./ErrorObservable");n._throw=r.ErrorObservable.create},{"./ErrorObservable":81}],102:[function(t,e,n){"use strict";var r=t("./TimerObservable");n.timer=r.TimerObservable.create},{"./TimerObservable":89}],103:[function(t,e,n){"use strict";var r=t("../operators/catchError");n._catch=function(t){return r.catchError(t)(this)}},{"../operators/catchError":117}],104:[function(t,e,n){"use strict";var r=t("../operators/concatAll");n.concatAll=function(){return r.concatAll()(this)}},{"../operators/concatAll":119}],105:[function(t,e,n){"use strict";var r=t("../operators/concatMap");n.concatMap=function(t,e){return r.concatMap(t,e)(this)}},{"../operators/concatMap":120}],106:[function(t,e,n){"use strict";var r=t("../operators/every");n.every=function(t,e){return r.every(t,e)(this)}},{"../operators/every":124}],107:[function(t,e,n){"use strict";var r=t("../operators/filter");n.filter=function(t,e){return r.filter(t,e)(this)}},{"../operators/filter":125}],108:[function(t,e,n){"use strict";var r=t("../operators/first");n.first=function(t,e,n){return r.first(t,e,n)(this)}},{"../operators/first":127}],109:[function(t,e,n){"use strict";var r=t("../operators/last");n.last=function(t,e,n){return r.last(t,e,n)(this)}},{"../operators/last":128}],110:[function(t,e,n){"use strict";var r=t("../operators/map");n.map=function(t,e){return r.map(t,e)(this)}},{"../operators/map":129}],111:[function(t,e,n){"use strict";var r=t("../operators/mergeAll");n.mergeAll=function(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),r.mergeAll(t)(this)}},{"../operators/mergeAll":130}],112:[function(t,e,n){"use strict";var r=t("../operators/mergeMap");n.mergeMap=function(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),r.mergeMap(t,e,n)(this)}},{"../operators/mergeMap":131}],113:[function(t,e,n){"use strict";var r=t("../operators/reduce");n.reduce=function(t,e){return arguments.length>=2?r.reduce(t,e)(this):r.reduce(t)(this)}},{"../operators/reduce":134}],114:[function(t,e,n){"use strict";var r=t("../operators/share");n.share=function(){return r.share()(this)}},{"../operators/share":137}],115:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/tryCatch"),o=t("../util/errorObject"),a=t("../OuterSubscriber"),s=t("../util/subscribeToResult");n.audit=function(t){return function(e){return e.lift(new c(t))}};var c=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.durationSelector))},t}(),l=function(t){function e(e,n){t.call(this,e),this.durationSelector=n,this.hasValue=!1}return r(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=i.tryCatch(this.durationSelector)(t);if(e===o.errorObject)this.destination.error(o.errorObject.e);else{var n=s.subscribeToResult(this,e);n.closed?this.clearThrottle():this.add(this.throttled=n)}}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(t,e,n,r){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(a.OuterSubscriber)},{"../OuterSubscriber":70,"../util/errorObject":155,"../util/subscribeToResult":168,"../util/tryCatch":170}],116:[function(t,e,n){"use strict";var r=t("../scheduler/async"),i=t("./audit"),o=t("../observable/timer");n.auditTime=function(t,e){return void 0===e&&(e=r.async),i.audit(function(){return o.timer(t,e)})}},{"../observable/timer":102,"../scheduler/async":147,"./audit":115}],117:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../OuterSubscriber"),o=t("../util/subscribeToResult");n.catchError=function(t){return function(e){var n=new a(t),r=e.lift(n);return n.caught=r}};var a=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.selector,this.caught))},t}(),s=function(t){function e(e,n,r){t.call(this,e),this.selector=n,this.caught=r}return r(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(o.subscribeToResult(this,n))}},e}(i.OuterSubscriber)},{"../OuterSubscriber":70,"../util/subscribeToResult":168}],118:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../observable/ArrayObservable"),o=t("../util/isArray"),a=t("../OuterSubscriber"),s=t("../util/subscribeToResult"),c={};n.combineLatest=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=null;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&o.isArray(t[0])&&(t=t[0].slice()),function(e){return e.lift.call(new i.ArrayObservable([e].concat(t)),new l(n))}};var l=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project))},t}();n.CombineLatestOperator=l;var u=function(t){function e(e,n){t.call(this,e),this.project=n,this.active=0,this.values=[],this.observables=[]}return r(e,t),e.prototype._next=function(t){this.values.push(c),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(s.subscribeToResult(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.values,a=o[n],s=this.toRespond?a===c?--this.toRespond:this.toRespond:0;o[n]=e,0===s&&(this.project?this._tryProject(o):this.destination.next(o.slice()))},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(a.OuterSubscriber);n.CombineLatestSubscriber=u},{"../OuterSubscriber":70,"../observable/ArrayObservable":77,"../util/isArray":157,"../util/subscribeToResult":168}],119:[function(t,e,n){"use strict";var r=t("./mergeAll");n.concatAll=function(){return r.mergeAll(1)}},{"./mergeAll":130}],120:[function(t,e,n){"use strict";var r=t("./mergeMap");n.concatMap=function(t,e){return r.mergeMap(t,e,1)}},{"./mergeMap":131}],121:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),o=t("../scheduler/async");n.debounceTime=function(t,e){return void 0===e&&(e=o.async),function(n){return n.lift(new a(t,e))}};var a=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.dueTime,this.scheduler))},t}(),s=function(t){function e(e,n,r){t.call(this,e),this.dueTime=n,this.scheduler=r,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}return r(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){this.clearDebounce(),this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(i.Subscriber);function c(t){t.debouncedNext()}},{"../Subscriber":74,"../scheduler/async":147}],122:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");n.defaultIfEmpty=function(t){return void 0===t&&(t=null),function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.defaultValue))},t}(),a=function(t){function e(e,n){t.call(this,e),this.defaultValue=n,this.isEmpty=!0}return r(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(i.Subscriber)},{"../Subscriber":74}],123:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../scheduler/async"),o=t("../util/isDate"),a=t("../Subscriber"),s=t("../Notification");n.delay=function(t,e){void 0===e&&(e=i.async);var n=o.isDate(t)?+t-e.now():Math.abs(t);return function(t){return t.lift(new c(n,e))}};var c=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.delay,this.scheduler))},t}(),l=function(t){function e(e,n,r){t.call(this,e),this.delay=n,this.scheduler=r,this.queue=[],this.active=!1,this.errored=!1}return r(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new u(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(s.Notification.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t)},e.prototype._complete=function(){this.scheduleNotification(s.Notification.createComplete())},e}(a.Subscriber),u=function(){return function(t,e){this.time=t,this.notification=e}}()},{"../Notification":67,"../Subscriber":74,"../scheduler/async":147,"../util/isDate":159}],124:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");n.every=function(t,e){return function(n){return n.lift(new o(t,e,n))}};var o=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,i){t.call(this,e),this.predicate=n,this.thisArg=r,this.source=i,this.index=0,this.thisArg=r||this}return r(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":74}],125:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");n.filter=function(t,e){return function(n){return n.lift(new o(t,e))}};var o=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}return r(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":74}],126:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),o=t("../Subscription");n.finalize=function(t){return function(e){return e.lift(new a(t))}};var a=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.callback))},t}(),s=function(t){function e(e,n){t.call(this,e),this.add(new o.Subscription(n))}return r(e,t),e}(i.Subscriber)},{"../Subscriber":74,"../Subscription":75}],127:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),o=t("../util/EmptyError");n.first=function(t,e,n){return function(r){return r.lift(new a(t,e,n,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 s(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),s=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.index=0,this.hasCompleted=!1,this._emitted=!1}return r(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 o.EmptyError):(t.next(this.defaultValue),t.complete())},e}(i.Subscriber)},{"../Subscriber":74,"../util/EmptyError":152}],128:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),o=t("../util/EmptyError");n.last=function(t,e,n){return function(r){return r.lift(new a(t,e,n,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 s(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),s=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.hasValue=!1,this.index=0,void 0!==i&&(this.lastValue=i,this.hasValue=!0)}return r(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 o.EmptyError)},e}(i.Subscriber)},{"../Subscriber":74,"../util/EmptyError":152}],129:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");n.map=function(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(t,e))}};var o=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=o;var a=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.count=0,this.thisArg=r||this}return r(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":74}],130:[function(t,e,n){"use strict";var r=t("./mergeMap"),i=t("../util/identity");n.mergeAll=function(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),r.mergeMap(i.identity,null,t)}},{"../util/identity":156,"./mergeMap":131}],131:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/subscribeToResult"),o=t("../OuterSubscriber");n.mergeMap=function(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return"number"==typeof e&&(n=e,e=null),r.lift(new a(t,e,n))}};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 s(t,this.project,this.resultSelector,this.concurrent))},t}();n.MergeMapOperator=a;var s=function(t){function e(e,n,r,i){void 0===i&&(i=Number.POSITIVE_INFINITY),t.call(this,e),this.project=n,this.resultSelector=r,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return r(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,i){this.resultSelector?this._notifyResultSelector(t,e,n,r):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,n,r){var i;try{i=this.resultSelector(t,e,n,r)}catch(t){return void this.destination.error(t)}this.destination.next(i)},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}(o.OuterSubscriber);n.MergeMapSubscriber=s},{"../OuterSubscriber":70,"../util/subscribeToResult":168}],132:[function(t,e,n){"use strict";var r=t("../observable/ConnectableObservable");n.multicast=function(t,e){return function(n){var o;if(o="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new i(o,e));var a=Object.create(n,r.connectableObservableDescriptor);return a.source=n,a.subjectFactory=o,a}};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(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}();n.MulticastOperator=i},{"../observable/ConnectableObservable":78}],133:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),o=t("../Notification");n.observeOn=function(t,e){return void 0===e&&(e=0),function(n){return n.lift(new a(t,e))}};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 s(t,this.scheduler,this.delay))},t}();n.ObserveOnOperator=a;var s=function(t){function e(e,n,r){void 0===r&&(r=0),t.call(this,e),this.scheduler=n,this.delay=r}return r(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(o.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(o.Notification.createError(t))},e.prototype._complete=function(){this.scheduleMessage(o.Notification.createComplete())},e}(i.Subscriber);n.ObserveOnSubscriber=s;var c=function(){return function(t,e){this.notification=t,this.destination=e}}();n.ObserveOnMessage=c},{"../Notification":67,"../Subscriber":74}],134:[function(t,e,n){"use strict";var r=t("./scan"),i=t("./takeLast"),o=t("./defaultIfEmpty"),a=t("../util/pipe");n.reduce=function(t,e){return arguments.length>=2?function(n){return a.pipe(r.scan(t,e),i.takeLast(1),o.defaultIfEmpty(e))(n)}:function(e){return a.pipe(r.scan(function(e,n,r){return t(e,n,r+1)}),i.takeLast(1))(e)}}},{"../util/pipe":166,"./defaultIfEmpty":122,"./scan":136,"./takeLast":141}],135:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");n.refCount=function(){return function(t){return t.lift(new o(t))}};var o=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new a(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),a=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}(i.Subscriber)},{"../Subscriber":74}],136:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");n.scan=function(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new o(t,e,n))}};var o=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}(),a=function(t){function e(e,n,r,i){t.call(this,e),this.accumulator=n,this._seed=r,this.hasSeed=i,this.index=0}return r(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(i.Subscriber)},{"../Subscriber":74}],137:[function(t,e,n){"use strict";var r=t("./multicast"),i=t("./refCount"),o=t("../Subject");function a(){return new o.Subject}n.share=function(){return function(t){return i.refCount()(r.multicast(a)(t))}}},{"../Subject":72,"./multicast":132,"./refCount":135}],138:[function(t,e,n){"use strict";var r=t("../observable/ArrayObservable"),i=t("../observable/ScalarObservable"),o=t("../observable/EmptyObservable"),a=t("../observable/concat"),s=t("../util/isScheduler");n.startWith=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){var n=t[t.length-1];s.isScheduler(n)?t.pop():n=null;var c=t.length;return 1===c?a.concat(new i.ScalarObservable(t[0],n),e):c>1?a.concat(new r.ArrayObservable(t,n),e):a.concat(new o.EmptyObservable(n),e)}}},{"../observable/ArrayObservable":77,"../observable/EmptyObservable":80,"../observable/ScalarObservable":88,"../observable/concat":91,"../util/isScheduler":164}],139:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../OuterSubscriber"),o=t("../util/subscribeToResult");n.switchMap=function(t,e){return function(n){return n.lift(new a(t,e))}};var a=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.resultSelector))},t}(),s=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.resultSelector=r,this.index=0}return r(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe(),this.add(this.innerSubscription=o.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.resultSelector?this._tryNotifyNext(t,e,n,r):this.destination.next(e)},e.prototype._tryNotifyNext=function(t,e,n,r){var i;try{i=this.resultSelector(t,e,n,r)}catch(t){return void this.destination.error(t)}this.destination.next(i)},e}(i.OuterSubscriber)},{"../OuterSubscriber":70,"../util/subscribeToResult":168}],140:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),o=t("../util/ArgumentOutOfRangeError"),a=t("../observable/EmptyObservable");n.take=function(t){return function(e){return 0===t?new a.EmptyObservable:e.lift(new s(t))}};var s=function(){function t(t){if(this.total=t,this.total<0)throw new o.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,n){t.call(this,e),this.total=n,this.count=0}return r(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(i.Subscriber)},{"../Subscriber":74,"../observable/EmptyObservable":80,"../util/ArgumentOutOfRangeError":151}],141:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),o=t("../util/ArgumentOutOfRangeError"),a=t("../observable/EmptyObservable");n.takeLast=function(t){return function(e){return 0===t?new a.EmptyObservable:e.lift(new s(t))}};var s=function(){function t(t){if(this.total=t,this.total<0)throw new o.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,n){t.call(this,e),this.total=n,this.ring=new Array,this.count=0}return r(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=e++%n;t.next(r[o])}t.complete()},e}(i.Subscriber)},{"../Subscriber":74,"../observable/EmptyObservable":80,"../util/ArgumentOutOfRangeError":151}],142:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../OuterSubscriber"),o=t("../util/subscribeToResult");n.takeUntil=function(t){return function(e){return e.lift(new a(t))}};var a=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.notifier))},t}(),s=function(t){function e(e,n){t.call(this,e),this.notifier=n,this.add(o.subscribeToResult(this,n))}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.complete()},e.prototype.notifyComplete=function(){},e}(i.OuterSubscriber)},{"../OuterSubscriber":70,"../util/subscribeToResult":168}],143:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");n.tap=function(t,e,n){return function(r){return r.lift(new o(t,e,n))}};var o=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.nextOrObserver,this.error,this.complete))},t}(),a=function(t){function e(e,n,r,o){t.call(this,e);var a=new i.Subscriber(n,r,o);a.syncErrorThrowable=!0,this.add(a),this.safeSubscriber=a}return r(e,t),e.prototype._next=function(t){var e=this.safeSubscriber;e.next(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.next(t)},e.prototype._error=function(t){var e=this.safeSubscriber;e.error(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.error(t)},e.prototype._complete=function(){var t=this.safeSubscriber;t.complete(),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.complete()},e}(i.Subscriber)},{"../Subscriber":74}],144:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(e,n){t.call(this)}return r(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(t("../Subscription").Subscription);n.Action=i},{"../Subscription":75}],145:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/root"),o=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n,this.pending=!1}return r(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t,this.pending=!0;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),i.root.setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;i.root.clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(t("./Action").Action);n.AsyncAction=o},{"../util/root":167,"./Action":144}],146:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(){t.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return r(e,t),e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(t("../Scheduler").Scheduler);n.AsyncScheduler=i},{"../Scheduler":71}],147:[function(t,e,n){"use strict";var r=t("./AsyncAction"),i=t("./AsyncScheduler");n.async=new i.AsyncScheduler(r.AsyncAction)},{"./AsyncAction":145,"./AsyncScheduler":146}],148:[function(t,e,n){"use strict";var r=t("../util/root");function i(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 i=Object.getOwnPropertyNames(r.prototype),o=0;o<i.length;++o){var a=i[o];if("entries"!==a&&"size"!==a&&r.prototype[a]===r.prototype.entries)return a}return"@@iterator"}n.symbolIteratorPonyfill=i,n.iterator=i(r.root),n.$$iterator=n.iterator},{"../util/root":167}],149:[function(t,e,n){"use strict";var r=t("../util/root");function i(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}n.getSymbolObservable=i,n.observable=i(r.root),n.$$observable=n.observable},{"../util/root":167}],150:[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",n.$$rxSubscriber=n.rxSubscriber},{"../util/root":167}],151:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(){var e=t.call(this,"argument out of range");this.name=e.name="ArgumentOutOfRangeError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);n.ArgumentOutOfRangeError=i},{}],152:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=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=i},{}],153:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=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=i},{}],154:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=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=i},{}],155:[function(t,e,n){"use strict";n.errorObject={e:{}}},{}],156:[function(t,e,n){"use strict";n.identity=function(t){return t}},{}],157:[function(t,e,n){"use strict";n.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},{}],158:[function(t,e,n){"use strict";n.isArrayLike=function(t){return t&&"number"==typeof t.length}},{}],159:[function(t,e,n){"use strict";n.isDate=function(t){return t instanceof Date&&!isNaN(+t)}},{}],160:[function(t,e,n){"use strict";n.isFunction=function(t){return"function"==typeof t}},{}],161:[function(t,e,n){"use strict";var r=t("../util/isArray");n.isNumeric=function(t){return!r.isArray(t)&&t-parseFloat(t)+1>=0}},{"../util/isArray":157}],162:[function(t,e,n){"use strict";n.isObject=function(t){return null!=t&&"object"==typeof t}},{}],163:[function(t,e,n){"use strict";n.isPromise=function(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}},{}],164:[function(t,e,n){"use strict";n.isScheduler=function(t){return t&&"function"==typeof t.schedule}},{}],165:[function(t,e,n){"use strict";n.noop=function(){}},{}],166:[function(t,e,n){"use strict";var r=t("./noop");function i(t){return t?1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}:r.noop}n.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return i(t)},n.pipeFromArray=i},{"./noop":165}],167:[function(t,e,n){(function(t){"use strict";var e="undefined"!=typeof window&&window,r="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=e||void 0!==t&&t||r;n.root=i,function(){if(!i)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:{})},{}],168:[function(t,e,n){"use strict";var r=t("./root"),i=t("./isArrayLike"),o=t("./isPromise"),a=t("./isObject"),s=t("../Observable"),c=t("../symbol/iterator"),l=t("../InnerSubscriber"),u=t("../symbol/observable");n.subscribeToResult=function(t,e,n,p){var h=new l.InnerSubscriber(t,n,p);if(h.closed)return null;if(e instanceof s.Observable)return e._isScalar?(h.next(e.value),h.complete(),null):(h.syncErrorThrowable=!0,e.subscribe(h));if(i.isArrayLike(e)){for(var d=0,f=e.length;d<f&&!h.closed;d++)h.next(e[d]);h.closed||h.complete()}else{if(o.isPromise(e))return e.then(function(t){h.closed||(h.next(t),h.complete())},function(t){return h.error(t)}).then(null,function(t){r.root.setTimeout(function(){throw t})}),h;if(e&&"function"==typeof e[c.iterator])for(var m=e[c.iterator]();;){var g=m.next();if(g.done){h.complete();break}if(h.next(g.value),h.closed)break}else if(e&&"function"==typeof e[u.observable]){var y=e[u.observable]();if("function"==typeof y.subscribe)return y.subscribe(new l.InnerSubscriber(t,n,p));h.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var v="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(v))}}return null}},{"../InnerSubscriber":66,"../Observable":68,"../symbol/iterator":148,"../symbol/observable":149,"./isArrayLike":158,"./isObject":162,"./isPromise":163,"./root":167}],169:[function(t,e,n){"use strict";var r=t("../Subscriber"),i=t("../symbol/rxSubscriber"),o=t("../Observer");n.toSubscriber=function(t,e,n){if(t){if(t instanceof r.Subscriber)return t;if(t[i.rxSubscriber])return t[i.rxSubscriber]()}return t||e||n?new r.Subscriber(t,e,n):new r.Subscriber(o.empty)}},{"../Observer":69,"../Subscriber":74,"../symbol/rxSubscriber":150}],170:[function(t,e,n){"use strict";var r,i=t("./errorObject");function o(){try{return r.apply(this,arguments)}catch(t){return i.errorObject.e=t,i.errorObject}}n.tryCatch=function(t){return r=t,o}},{"./errorObject":155}],171:[function(t,e,n){(function(t){var n,r,i,o,a,s,c,l,u,p,h,d,f,m,g,y,v,b,_;!function(n){var r="object"==typeof t?t:"object"==typeof self?self:"object"==typeof this?this:{};function i(t,e){return t!==r&&("function"==typeof Object.create?Object.defineProperty(t,"__esModule",{value:!0}):t.__esModule=!0),function(n,r){return t[n]=e?e(n,r):r}}"object"==typeof e&&"object"==typeof e.exports?n(i(r,i(e.exports))):n(i(r))}(function(t){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};n=function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)},r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},i=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&(n[r[i]]=t[r[i]])}return n},o=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},a=function(t,e){return function(n,r){e(n,r,t)}},s=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){t.done?i(t.value):new n(function(e){e(t.value)}).then(a,s)}c((r=r.apply(t,e||[])).next())})},l=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=r[2&o[0]?"return":o[0]?"throw":"next"])&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[0,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},u=function(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])},p=function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}},h=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},d=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t},f=function(t){return this instanceof f?(this.v=t,this):new f(t)},m=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){i[t]&&(r[t]=function(e){return new Promise(function(n,r){o.push([t,e,n,r])>1||s(t,e)})})}function s(t,e){try{(n=i[t](e)).value instanceof f?Promise.resolve(n.value.v).then(c,l):u(o[0][2],n)}catch(t){u(o[0][3],t)}var n}function c(t){s("next",t)}function l(t){s("throw",t)}function u(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}},g=function(t){var e,n;return e={},r("next"),r("throw",function(t){throw t}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){t[r]&&(e[r]=function(e){return(n=!n)?{value:f(t[r](e)),done:"return"===r}:i?i(e):e})}},y=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator];return e?e.call(t):"function"==typeof p?p(t):t[Symbol.iterator]()},v=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},b=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e},_=function(t){return t&&t.__esModule?t:{default:t}},t("__extends",n),t("__assign",r),t("__rest",i),t("__decorate",o),t("__param",a),t("__metadata",s),t("__awaiter",c),t("__generator",l),t("__exportStar",u),t("__values",p),t("__read",h),t("__spread",d),t("__await",f),t("__asyncGenerator",m),t("__asyncDelegator",g),t("__asyncValues",y),t("__makeTemplateObject",v),t("__importStar",b),t("__importDefault",_)})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[37])(37)});
\ No newline at end of file
diff --git a/apps/maarch_entreprise/js/angularFunctions.js b/apps/maarch_entreprise/js/angularFunctions.js
index c06291a98795bba9796f527104be6e19ddf35f0f..74cfb15fc42562a95d20eb55b7e25514465bd2c5 100755
--- a/apps/maarch_entreprise/js/angularFunctions.js
+++ b/apps/maarch_entreprise/js/angularFunctions.js
@@ -12,6 +12,8 @@ function triggerAngular(prodmode, locationToGo) {
         'baskets-administration',
         'baskets-order-administration',
         'basket-administration',
+        'basket-administration-settings-modal',
+        'basket-administration-groupList-modal',
         'entities-administration',
         'entity-administration',
         'status-administration',
@@ -44,6 +46,7 @@ function triggerAngular(prodmode, locationToGo) {
 
             angularGlobals = answer;
             $j('#inner_content').html('<i class="fa fa-spinner fa-spin fa-5x" style="margin-left: 50%;margin-top: 16%;font-size: 8em"></i>');
+            
             if (prodmode) {
 
                 var alreadyLoaded = false;
diff --git a/modules/basket/xml/services.xml b/modules/basket/xml/services.xml
index a9ef5e1f40099645055a0622a65e74029dea665d..34c229dac37a350e6aee5d91dcd3740b1e1d8dac 100755
--- a/modules/basket/xml/services.xml
+++ b/modules/basket/xml/services.xml
@@ -4,11 +4,12 @@
    <id>admin_baskets</id>
    <name>_ADMIN_BASKETS</name>
    <comment>_ADMIN_BASKETS_DESC</comment>
-   <servicepage>index.php?page=basket&amp;module=basket</servicepage>
+   <servicepage>/administration/baskets</servicepage>
    <servicetype>admin</servicetype>
     <system_service>false</system_service>
    <style>fa fa-inbox</style>
    <enabled>true</enabled>
+   <angular>true</angular>
    <WHEREAMIUSED>
      <page>admin.php</page>
      <nature>listelement</nature>