diff --git a/apps/maarch_entreprise/Views/signature-book.component.html b/apps/maarch_entreprise/Views/signature-book.component.html
index aa65e6d5fd8607aad41e00b0e4820e5bd3996001..ecf2da7fb43925fb2e051f951295f8e73926bc73 100644
--- a/apps/maarch_entreprise/Views/signature-book.component.html
+++ b/apps/maarch_entreprise/Views/signature-book.component.html
@@ -62,6 +62,9 @@
                     </div>
                 </div>
             </div>
+            <div *ngIf="signatureBook.resList.length == 0" style="position: absolute;top: 48%; left: 3%">
+                <i class="fa fa-spinner fa-spin fa-4x"></i>
+            </div>
         </div>
         <div *ngIf="showLeftPanel" class="contentLeft" [ngStyle]="{'width': leftContentWidth}" id="contentLeft">
             <div *ngIf="showLeftPanel && showRightPanel" class="hideresListContent" (click)="displayPanel('RESLEFT')">
diff --git a/apps/maarch_entreprise/admin/contacts/contact_addresses/contact_addresses.php b/apps/maarch_entreprise/admin/contacts/contact_addresses/contact_addresses.php
old mode 100644
new mode 100755
index 16c8ecf6ad5d64abf189fbe182af1bf0920d2787..ff6071705500bfbae24625d2f815ffcc21c8b926
--- a/apps/maarch_entreprise/admin/contacts/contact_addresses/contact_addresses.php
+++ b/apps/maarch_entreprise/admin/contacts/contact_addresses/contact_addresses.php
@@ -45,8 +45,8 @@ require_once "apps" . DIRECTORY_SEPARATOR . $_SESSION['config']['app_id']
 $func = new functions();
 
 if (isset($_REQUEST['fromMyContactsList']) || isset($_REQUEST['fromSearchContactsList'])) {
-    $_REQUEST['what'] = "";
-    $_REQUEST['order'] = "";
+    $_REQUEST['what']        = "";
+    $_REQUEST['order']       = "";
     $_REQUEST['order_field'] = "";
 }
 
@@ -84,73 +84,73 @@ for ($i = 0; $i < count($tab); $i ++) {
     for ($j = 0; $j < count($tab[$i]); $j ++) {
         foreach (array_keys($tab[$i][$j]) as $value) {
             if ($tab[$i][$j][$value] == "id") {
-                $tab[$i][$j]["id"] = $tab[$i][$j]['value'];
-                $tab[$i][$j]["label"] = _ID;
-                $tab[$i][$j]["size"] = "30";
+                $tab[$i][$j]["id"]          = $tab[$i][$j]['value'];
+                $tab[$i][$j]["label"]       = _ID;
+                $tab[$i][$j]["size"]        = "30";
                 $tab[$i][$j]["label_align"] = "left";
-                $tab[$i][$j]["align"] = "left";
-                $tab[$i][$j]["valign"] = "bottom";
-                $tab[$i][$j]["show"] = false;
-                $tab[$i][$j]["order"] = 'id';
+                $tab[$i][$j]["align"]       = "left";
+                $tab[$i][$j]["valign"]      = "bottom";
+                $tab[$i][$j]["show"]        = false;
+                $tab[$i][$j]["order"]       = 'id';
             }
             if ($tab[$i][$j][$value] == "contact_id") {
-                $tab[$i][$j]["contact_id"] = $tab[$i][$j]['value'];
-                $tab[$i][$j]["label"] = _CONTACT_ID;
-                $tab[$i][$j]["size"] = "30";
+                $tab[$i][$j]["contact_id"]  = $tab[$i][$j]['value'];
+                $tab[$i][$j]["label"]       = _CONTACT_ID;
+                $tab[$i][$j]["size"]        = "30";
                 $tab[$i][$j]["label_align"] = "left";
-                $tab[$i][$j]["align"] = "left";
-                $tab[$i][$j]["valign"] = "bottom";
-                $tab[$i][$j]["show"] = false;
-                $tab[$i][$j]["order"] = 'contact_id';
+                $tab[$i][$j]["align"]       = "left";
+                $tab[$i][$j]["valign"]      = "bottom";
+                $tab[$i][$j]["show"]        = false;
+                $tab[$i][$j]["order"]       = 'contact_id';
             }
             if ($tab[$i][$j][$value] == "contact_purpose_id") {
-                $tab[$i][$j]["value"]= $contact->get_label_contact($tab[$i][$j]['value'], $_SESSION['tablename']['contact_purposes']);
+                $tab[$i][$j]["value"]              = $contact->get_label_contact($tab[$i][$j]['value'], $_SESSION['tablename']['contact_purposes']);
                 $tab[$i][$j]["contact_purpose_id"] = $tab[$i][$j]['value'];
-                $tab[$i][$j]["label"] = _CONTACT_PURPOSE;
-                $tab[$i][$j]["size"] = "20";
-                $tab[$i][$j]["label_align"] = "left";
-                $tab[$i][$j]["align"] = "left";
-                $tab[$i][$j]["valign"] = "bottom";
-                $tab[$i][$j]["show"] = true;
-                $tab[$i][$j]["order"] = 'contact_purpose_id';
+                $tab[$i][$j]["label"]              = _CONTACT_PURPOSE;
+                $tab[$i][$j]["size"]               = "20";
+                $tab[$i][$j]["label_align"]        = "left";
+                $tab[$i][$j]["align"]              = "left";
+                $tab[$i][$j]["valign"]             = "bottom";
+                $tab[$i][$j]["show"]               = true;
+                $tab[$i][$j]["order"]              = 'contact_purpose_id';
             }
             if ($tab[$i][$j][$value] == "departement") {
                 $tab[$i][$j]['value'] = $request->show_string(
                     $tab[$i][$j]['value']
                 );
                 $tab[$i][$j]["departement"] = $tab[$i][$j]['value'];
-                $tab[$i][$j]["label"] = _SERVICE;
-                $tab[$i][$j]["size"] = "20";
+                $tab[$i][$j]["label"]       = _SERVICE;
+                $tab[$i][$j]["size"]        = "20";
                 $tab[$i][$j]["label_align"] = "left";
-                $tab[$i][$j]["align"] = "left";
-                $tab[$i][$j]["valign"] = "bottom";
-                $tab[$i][$j]["show"] = true;
-                $tab[$i][$j]["order"] = 'departement';
+                $tab[$i][$j]["align"]       = "left";
+                $tab[$i][$j]["valign"]      = "bottom";
+                $tab[$i][$j]["show"]        = true;
+                $tab[$i][$j]["order"]       = 'departement';
             }
             if($tab[$i][$j][$value]=="lastname")
             {
-                $tab[$i][$j]['value']=$request->show_string($tab[$i][$j]['value']);
-                $tab[$i][$j]["lastname"]=$tab[$i][$j]['value'];
-                $tab[$i][$j]["label"]=_LASTNAME;
-                $tab[$i][$j]["size"]="15";
-                $tab[$i][$j]["label_align"]="left";
-                $tab[$i][$j]["align"]="left";
-                $tab[$i][$j]["valign"]="bottom";
+                $tab[$i][$j]['value']       =$request->show_string($tab[$i][$j]['value']);
+                $tab[$i][$j]["lastname"]    =$tab[$i][$j]['value'];
+                $tab[$i][$j]["label"]       =_LASTNAME;
+                $tab[$i][$j]["size"]        ="15";
+                $tab[$i][$j]["label_align"] ="left";
+                $tab[$i][$j]["align"]       ="left";
+                $tab[$i][$j]["valign"]      ="bottom";
                 if ($_SESSION['m_admin']['contact']['IS_CORPORATE_PERSON'] == "Y") {
                     $tab[$i][$j]["show"]=true;
                 } else {
                     $tab[$i][$j]["show"]=false;
                 }
-                $tab[$i][$j]["order"]= "lastname";
+                $tab[$i][$j]["order"] = "lastname";
             }
             if($tab[$i][$j][$value]=="firstname")
             {
-                $tab[$i][$j]["firstname"]= $request->show_string($tab[$i][$j]['value']);
-                $tab[$i][$j]["label"]=_FIRSTNAME;
-                $tab[$i][$j]["size"]="15";
-                $tab[$i][$j]["label_align"]="left";
-                $tab[$i][$j]["align"]="left";
-                $tab[$i][$j]["valign"]="bottom";
+                $tab[$i][$j]["firstname"]   = $request->show_string($tab[$i][$j]['value']);
+                $tab[$i][$j]["label"]       =_FIRSTNAME;
+                $tab[$i][$j]["size"]        ="15";
+                $tab[$i][$j]["label_align"] ="left";
+                $tab[$i][$j]["align"]       ="left";
+                $tab[$i][$j]["valign"]      ="bottom";
                 if ($_SESSION['m_admin']['contact']['IS_CORPORATE_PERSON'] == "Y") {
                     $tab[$i][$j]["show"]=true;
                 } else {
@@ -160,13 +160,13 @@ for ($i = 0; $i < count($tab); $i ++) {
             }
             if($tab[$i][$j][$value]=="function")
             {
-                $tab[$i][$j]['value']=$request->show_string($tab[$i][$j]['value']);
-                $tab[$i][$j]["function"]=$tab[$i][$j]['value'];
-                $tab[$i][$j]["label"]=_FUNCTION;
-                $tab[$i][$j]["size"]="15";
-                $tab[$i][$j]["label_align"]="left";
-                $tab[$i][$j]["align"]="left";
-                $tab[$i][$j]["valign"]="bottom";
+                $tab[$i][$j]['value']       =$request->show_string($tab[$i][$j]['value']);
+                $tab[$i][$j]["function"]    =$tab[$i][$j]['value'];
+                $tab[$i][$j]["label"]       =_FUNCTION;
+                $tab[$i][$j]["size"]        ="15";
+                $tab[$i][$j]["label_align"] ="left";
+                $tab[$i][$j]["align"]       ="left";
+                $tab[$i][$j]["valign"]      ="bottom";
                 if ($_SESSION['m_admin']['contact']['IS_CORPORATE_PERSON'] == "Y") {
                     $tab[$i][$j]["show"]=true;
                 } else {
@@ -192,12 +192,12 @@ for ($i = 0; $i < count($tab); $i ++) {
                     $tab[$i][$j]['value'] = $address_num . " " . $request->show_string($tab[$i][$j]['value']);                    
                 }
 
-                $tab[$i][$j]["address_street"]= $tab[$i][$j]['value'];
-                $tab[$i][$j]["label"]= _ADDRESS;
-                $tab[$i][$j]["size"]="15";
-                $tab[$i][$j]["label_align"]="left";
-                $tab[$i][$j]["align"]="left";
-                $tab[$i][$j]["valign"]="bottom";
+                $tab[$i][$j]["address_street"] = $tab[$i][$j]['value'];
+                $tab[$i][$j]["label"]          = _ADDRESS;
+                $tab[$i][$j]["size"]           ="15";
+                $tab[$i][$j]["label_align"]    ="left";
+                $tab[$i][$j]["align"]          ="left";
+                $tab[$i][$j]["valign"]         ="bottom";
                 if ($_SESSION['m_admin']['contact']['IS_CORPORATE_PERSON'] == "Y") {
                     $tab[$i][$j]["show"]=false;
                 } else {
@@ -212,12 +212,12 @@ for ($i = 0; $i < count($tab); $i ++) {
                 } else {
                     $tab[$i][$j]['value']=$request->show_string($tab[$i][$j]['value']);
                 }
-                $tab[$i][$j]["address_postal_code"]=$tab[$i][$j]['value'];
-                $tab[$i][$j]["label"]=_POSTAL_CODE;
-                $tab[$i][$j]["size"]="15";
-                $tab[$i][$j]["label_align"]="left";
-                $tab[$i][$j]["align"]="left";
-                $tab[$i][$j]["valign"]="bottom";
+                $tab[$i][$j]["address_postal_code"] =$tab[$i][$j]['value'];
+                $tab[$i][$j]["label"]               =_POSTAL_CODE;
+                $tab[$i][$j]["size"]                ="15";
+                $tab[$i][$j]["label_align"]         ="left";
+                $tab[$i][$j]["align"]               ="left";
+                $tab[$i][$j]["valign"]              ="bottom";
                if ($_SESSION['m_admin']['contact']['IS_CORPORATE_PERSON'] == "Y") {
                     $tab[$i][$j]["show"]=false;
                 } else {
@@ -230,14 +230,14 @@ for ($i = 0; $i < count($tab); $i ++) {
                 if ($is_private == "Y") {
                     $tab[$i][$j]['value'] = "Confidentielle";
                 }
-                $tab[$i][$j]["address_town"]= $request->show_string($tab[$i][$j]['value']);
-                $tab[$i][$j]["label"]=_TOWN;
-                $tab[$i][$j]["size"]="15";
-                $tab[$i][$j]["label_align"]="left";
-                $tab[$i][$j]["align"]="left";
-                $tab[$i][$j]["valign"]="bottom";
-                $tab[$i][$j]["show"]=true;
-                $tab[$i][$j]["order"]= "address_town";
+                $tab[$i][$j]["address_town"] = $request->show_string($tab[$i][$j]['value']);
+                $tab[$i][$j]["label"]        =_TOWN;
+                $tab[$i][$j]["size"]         ="15";
+                $tab[$i][$j]["label_align"]  ="left";
+                $tab[$i][$j]["align"]        ="left";
+                $tab[$i][$j]["valign"]       ="bottom";
+                $tab[$i][$j]["show"]         =true;
+                $tab[$i][$j]["order"]        = "address_town";
             }
             if($tab[$i][$j][$value]=="phone")
             {
@@ -246,28 +246,28 @@ for ($i = 0; $i < count($tab); $i ++) {
                 } else {
                     $tab[$i][$j]['value']=$request->show_string($tab[$i][$j]['value']);
                 }
-                $tab[$i][$j]["phone"]=$tab[$i][$j]['value'];
-                $tab[$i][$j]["label"]=_PHONE;
-                $tab[$i][$j]["size"]="15";
-                $tab[$i][$j]["label_align"]="left";
-                $tab[$i][$j]["align"]="left";
-                $tab[$i][$j]["valign"]="bottom";
-                $tab[$i][$j]["show"]=true;
-                $tab[$i][$j]["order"]= "phone";
+                $tab[$i][$j]["phone"]       =$tab[$i][$j]['value'];
+                $tab[$i][$j]["label"]       =_PHONE;
+                $tab[$i][$j]["size"]        ="15";
+                $tab[$i][$j]["label_align"] ="left";
+                $tab[$i][$j]["align"]       ="left";
+                $tab[$i][$j]["valign"]      ="bottom";
+                $tab[$i][$j]["show"]        =true;
+                $tab[$i][$j]["order"]       = "phone";
             }
             if($tab[$i][$j][$value]=="email")
             {
                 if ($is_private == "Y") {
                     $tab[$i][$j]['value'] = "Confidentiel";
                 }
-                $tab[$i][$j]["email"]= $request->show_string($tab[$i][$j]['value']);
-                $tab[$i][$j]["label"]=_MAIL;
-                $tab[$i][$j]["size"]="15";
-                $tab[$i][$j]["label_align"]="center";
-                $tab[$i][$j]["align"]="center";
-                $tab[$i][$j]["valign"]="bottom";
-                $tab[$i][$j]["show"]=true;
-                $tab[$i][$j]["order"]= "email";
+                $tab[$i][$j]["email"]       = $request->show_string($tab[$i][$j]['value']);
+                $tab[$i][$j]["label"]       =_MAIL;
+                $tab[$i][$j]["size"]        ="15";
+                $tab[$i][$j]["label_align"] ="center";
+                $tab[$i][$j]["align"]       ="center";
+                $tab[$i][$j]["valign"]      ="bottom";
+                $tab[$i][$j]["show"]        =true;
+                $tab[$i][$j]["order"]       = "email";
             }
         }
     }
@@ -284,9 +284,9 @@ for ($i = 0; $i < count($tab); $i ++) {
         $paramsTab['urlParameters'] = '&dir=my_contacts&letters&display=true';                                   //parametre d'url supplementaire        
     }
 
-    $paramsTab['bool_sortColumn'] = true;                                               //Affichage Tri
+    $paramsTab['bool_sortColumn']      = true;                                          //Affichage Tri
     $paramsTab['bool_showSearchTools'] = true;                                          //Afficle le filtre alphabetique et le champ de recherche
-    $paramsTab['bool_showSearchBox'] = false;
+    $paramsTab['bool_showSearchBox']   = false;
 
     $paramsTab['searchBoxAutoCompletionUrl'] = $_SESSION['config']['businessappurl']
         ."index.php?display=true&page=contact_addresses_list_by_name&idContact=".$_SESSION['contact']['current_contact_id'];   //Script pour l'autocompletion
@@ -366,4 +366,5 @@ for ($i = 0; $i < count($tab); $i ++) {
     }
 //Afficher la liste
     echo '<br/>';
-    $list2->showList($tab, $paramsTab, 'id');
\ No newline at end of file
+    $list2->showList($tab, $paramsTab, 'id');
+    
\ No newline at end of file
diff --git a/apps/maarch_entreprise/admin/contacts/contact_addresses/contact_addresses_add.php b/apps/maarch_entreprise/admin/contacts/contact_addresses/contact_addresses_add.php
old mode 100644
new mode 100755
index 9afa82a9e716943246c44132e06effc0a38e8c99..e932140723882edff8576f33abb7b130b43f6f0d
--- a/apps/maarch_entreprise/admin/contacts/contact_addresses/contact_addresses_add.php
+++ b/apps/maarch_entreprise/admin/contacts/contact_addresses/contact_addresses_add.php
@@ -77,6 +77,10 @@ if(isset($_GET['mycontact']) && $_GET['mycontact'] <> ''){
 } else {
 	$admin = true;
 }
-
-$contact->formaddress("add", "", $admin);
 ?>
+<br>
+<div class="block">
+<?php
+    $contact->formaddress("add", "", $admin);
+?>
+</div>
diff --git a/apps/maarch_entreprise/admin/contacts/contacts_v2/contacts_v2_up.php b/apps/maarch_entreprise/admin/contacts/contacts_v2/contacts_v2_up.php
old mode 100644
new mode 100755
index fd46f89c65260be8f457043080ed17e216e42dc3..b307d732bec7ab54906b4b29c0ce8f1522739afa
--- a/apps/maarch_entreprise/admin/contacts/contacts_v2/contacts_v2_up.php
+++ b/apps/maarch_entreprise/admin/contacts/contacts_v2/contacts_v2_up.php
@@ -48,17 +48,15 @@ require_once("apps".DIRECTORY_SEPARATOR.$_SESSION['config']['app_id'].DIRECTORY_
 
 $func = new functions();
 
-if(isset($_GET['id']))
-{
+if(isset($_GET['id'])) {
     $id = addslashes($func->wash($_GET['id'], "alphanum", _CONTACT));
     $_SESSION['contact']['current_contact_id'] = $id;
 }else if ($_SESSION['contact']['current_contact_id'] <> ''){
 	$id = $_SESSION['contact']['current_contact_id'];
-}
-else
-{
+} else {
     $id = "";
 }
+
  /****************Management of the location bar  ************/
 $init = false;
 if(isset($_REQUEST['reinit']) && $_REQUEST['reinit'] == "true")
@@ -70,11 +68,12 @@ if(isset($_REQUEST['level']) && ($_REQUEST['level'] == 2 || $_REQUEST['level'] =
 {
     $level = $_REQUEST['level'];
 }
-$page_path = $_SESSION['config']['businessappurl'].'index.php?page=contacts_v2_up';
+$page_path  = $_SESSION['config']['businessappurl'].'index.php?page=contacts_v2_up';
 $page_label = _MODIFICATION;
-$page_id = "contacts_v2_up";
+$page_id    = "contacts_v2_up";
 $core_tools->manage_location_bar($page_path, $page_label, $page_id, $init, $level);
 /***********************************************************/
+
 if (isset($_REQUEST['fromContactTree'])) {
     $_SESSION['fromContactTree'] = 'yes';
 }
@@ -82,13 +81,10 @@ $contact = new contacts_v2();
 $contact->formcontact("up",$id);
 
 // GESTION DES ADDRESSES
-echo '<div class="block">';
+echo '<div>';
 echo '<h2><i class="fa fa-home fa-2x"></i> &nbsp;' . _MANAGE_CONTACT_ADDRESSES_IMG . '</h2>';
-require_once "core" . DIRECTORY_SEPARATOR . "class" . DIRECTORY_SEPARATOR
-    . "class_request.php";
-require_once "apps" . DIRECTORY_SEPARATOR . $_SESSION['config']['app_id']
-    . DIRECTORY_SEPARATOR . "class" . DIRECTORY_SEPARATOR
-    . "class_list_show.php";
+require_once "core" . DIRECTORY_SEPARATOR . "class" . DIRECTORY_SEPARATOR . "class_request.php";
+require_once "apps" . DIRECTORY_SEPARATOR . $_SESSION['config']['app_id'] . DIRECTORY_SEPARATOR . "class" . DIRECTORY_SEPARATOR . "class_list_show.php";
 $func = new functions();
 
 $select['view_contacts'] = array();
@@ -122,12 +118,8 @@ if (isset($_REQUEST['selectedObject']) && ! empty($_REQUEST['selectedObject']))
         $where .= " or " . implode(' OR ', $sql_purpose) . " ";
         $where .= " or " . implode(' OR ', $sql_society) . ") ";
     }
-
 }
 
-// var_dump($arrayPDO);
-// var_dump($where);
-
 $list = new list_show();
 $order = 'asc';
 if (isset($_REQUEST['order']) && !empty($_REQUEST['order'])) {
@@ -148,59 +140,59 @@ for ($i = 0; $i < count($tab); $i ++) {
     for ($j = 0; $j < count($tab[$i]); $j ++) {
         foreach (array_keys($tab[$i][$j]) as $value) {
             if ($tab[$i][$j][$value] == "id") {
-                $tab[$i][$j]["id"] = $tab[$i][$j]['value'];
-                $tab[$i][$j]["label"] = _ID;
-                $tab[$i][$j]["size"] = "30";
+                $tab[$i][$j]["id"]          = $tab[$i][$j]['value'];
+                $tab[$i][$j]["label"]       = _ID;
+                $tab[$i][$j]["size"]        = "30";
                 $tab[$i][$j]["label_align"] = "left";
-                $tab[$i][$j]["align"] = "left";
-                $tab[$i][$j]["valign"] = "bottom";
-                $tab[$i][$j]["show"] = false;
-                $tab[$i][$j]["order"] = 'id';
+                $tab[$i][$j]["align"]       = "left";
+                $tab[$i][$j]["valign"]      = "bottom";
+                $tab[$i][$j]["show"]        = false;
+                $tab[$i][$j]["order"]       = 'id';
             }
             if ($tab[$i][$j][$value] == "contact_id") {
-                $tab[$i][$j]["contact_id"] = $tab[$i][$j]['value'];
-                $tab[$i][$j]["label"] = _CONTACT_ID;
-                $tab[$i][$j]["size"] = "30";
+                $tab[$i][$j]["contact_id"]  = $tab[$i][$j]['value'];
+                $tab[$i][$j]["label"]       = _CONTACT_ID;
+                $tab[$i][$j]["size"]        = "30";
                 $tab[$i][$j]["label_align"] = "left";
-                $tab[$i][$j]["align"] = "left";
-                $tab[$i][$j]["valign"] = "bottom";
-                $tab[$i][$j]["show"] = false;
-                $tab[$i][$j]["order"] = 'contact_id';
+                $tab[$i][$j]["align"]       = "left";
+                $tab[$i][$j]["valign"]      = "bottom";
+                $tab[$i][$j]["show"]        = false;
+                $tab[$i][$j]["order"]       = 'contact_id';
             }
             if ($tab[$i][$j][$value] == "contact_purpose_id") {
-                $tab[$i][$j]["value"]= $contact->get_label_contact($tab[$i][$j]['value'], $_SESSION['tablename']['contact_purposes']);
+                $tab[$i][$j]["value"]              = $contact->get_label_contact($tab[$i][$j]['value'], $_SESSION['tablename']['contact_purposes']);
                 $tab[$i][$j]["contact_purpose_id"] = $tab[$i][$j]['value'];
-                $tab[$i][$j]["label"] = _CONTACT_PURPOSE;
-                $tab[$i][$j]["size"] = "20";
-                $tab[$i][$j]["label_align"] = "left";
-                $tab[$i][$j]["align"] = "left";
-                $tab[$i][$j]["valign"] = "bottom";
-                $tab[$i][$j]["show"] = true;
-                $tab[$i][$j]["order"] = 'contact_purpose_id';
+                $tab[$i][$j]["label"]              = _CONTACT_PURPOSE;
+                $tab[$i][$j]["size"]               = "20";
+                $tab[$i][$j]["label_align"]        = "left";
+                $tab[$i][$j]["align"]              = "left";
+                $tab[$i][$j]["valign"]             = "bottom";
+                $tab[$i][$j]["show"]               = true;
+                $tab[$i][$j]["order"]              = 'contact_purpose_id';
             }
             if ($tab[$i][$j][$value] == "departement") {
                 $tab[$i][$j]['value'] = $request->show_string(
                     $tab[$i][$j]['value']
                 );
                 $tab[$i][$j]["departement"] = $tab[$i][$j]['value'];
-                $tab[$i][$j]["label"] = _SERVICE;
-                $tab[$i][$j]["size"] = "20";
+                $tab[$i][$j]["label"]       = _SERVICE;
+                $tab[$i][$j]["size"]        = "20";
                 $tab[$i][$j]["label_align"] = "left";
-                $tab[$i][$j]["align"] = "left";
-                $tab[$i][$j]["valign"] = "bottom";
-                $tab[$i][$j]["show"] = true;
-                $tab[$i][$j]["order"] = 'departement';
+                $tab[$i][$j]["align"]       = "left";
+                $tab[$i][$j]["valign"]      = "bottom";
+                $tab[$i][$j]["show"]        = true;
+                $tab[$i][$j]["order"]       = 'departement';
             }
 
             if($tab[$i][$j][$value]=="lastname")
             {
-                $tab[$i][$j]['value']=$request->show_string($tab[$i][$j]['value']);
-                $tab[$i][$j]["lastname"]=$tab[$i][$j]['value'];
-                $tab[$i][$j]["label"]=_LASTNAME;
-                $tab[$i][$j]["size"]="15";
-                $tab[$i][$j]["label_align"]="left";
-                $tab[$i][$j]["align"]="left";
-                $tab[$i][$j]["valign"]="bottom";
+                $tab[$i][$j]['value']       =$request->show_string($tab[$i][$j]['value']);
+                $tab[$i][$j]["lastname"]    =$tab[$i][$j]['value'];
+                $tab[$i][$j]["label"]       =_LASTNAME;
+                $tab[$i][$j]["size"]        ="15";
+                $tab[$i][$j]["label_align"] ="left";
+                $tab[$i][$j]["align"]       ="left";
+                $tab[$i][$j]["valign"]      ="bottom";
                 if ($_SESSION['m_admin']['contact']['IS_CORPORATE_PERSON'] == "Y") {
                     $tab[$i][$j]["show"]=true;
                 } else {
@@ -210,12 +202,12 @@ for ($i = 0; $i < count($tab); $i ++) {
             }
             if($tab[$i][$j][$value]=="firstname")
             {
-                $tab[$i][$j]["firstname"]= $request->show_string($tab[$i][$j]['value']);
-                $tab[$i][$j]["label"]=_FIRSTNAME;
-                $tab[$i][$j]["size"]="15";
-                $tab[$i][$j]["label_align"]="center";
-                $tab[$i][$j]["align"]="center";
-                $tab[$i][$j]["valign"]="bottom";
+                $tab[$i][$j]["firstname"]   = $request->show_string($tab[$i][$j]['value']);
+                $tab[$i][$j]["label"]       =_FIRSTNAME;
+                $tab[$i][$j]["size"]        ="15";
+                $tab[$i][$j]["label_align"] ="center";
+                $tab[$i][$j]["align"]       ="center";
+                $tab[$i][$j]["valign"]      ="bottom";
                 if ($_SESSION['m_admin']['contact']['IS_CORPORATE_PERSON'] == "Y") {
                     $tab[$i][$j]["show"]=true;
                 } else {
@@ -225,13 +217,13 @@ for ($i = 0; $i < count($tab); $i ++) {
             }
             if($tab[$i][$j][$value]=="function")
             {
-                $tab[$i][$j]['value']=$request->show_string($tab[$i][$j]['value']);
-                $tab[$i][$j]["function"]=$tab[$i][$j]['value'];
-                $tab[$i][$j]["label"]=_FUNCTION;
-                $tab[$i][$j]["size"]="15";
-                $tab[$i][$j]["label_align"]="left";
-                $tab[$i][$j]["align"]="left";
-                $tab[$i][$j]["valign"]="bottom";
+                $tab[$i][$j]['value']       =$request->show_string($tab[$i][$j]['value']);
+                $tab[$i][$j]["function"]    =$tab[$i][$j]['value'];
+                $tab[$i][$j]["label"]       =_FUNCTION;
+                $tab[$i][$j]["size"]        ="15";
+                $tab[$i][$j]["label_align"] ="left";
+                $tab[$i][$j]["align"]       ="left";
+                $tab[$i][$j]["valign"]      ="bottom";
                 if ($_SESSION['m_admin']['contact']['IS_CORPORATE_PERSON'] == "Y") {
                     $tab[$i][$j]["show"]=true;
                 } else {
@@ -246,13 +238,13 @@ for ($i = 0; $i < count($tab); $i ++) {
             }
             if($tab[$i][$j][$value]=="address_street")
             {
-                $tab[$i][$j]['value'] = $address_num . " " . $request->show_string($tab[$i][$j]['value']);
-                $tab[$i][$j]["address_street"]= $tab[$i][$j]['value'];
-                $tab[$i][$j]["label"]= _ADDRESS;
-                $tab[$i][$j]["size"]="15";
-                $tab[$i][$j]["label_align"]="left";
-                $tab[$i][$j]["align"]="left";
-                $tab[$i][$j]["valign"]="bottom";
+                $tab[$i][$j]['value']          = $address_num . " " . $request->show_string($tab[$i][$j]['value']);
+                $tab[$i][$j]["address_street"] = $tab[$i][$j]['value'];
+                $tab[$i][$j]["label"]          = _ADDRESS;
+                $tab[$i][$j]["size"]           ="15";
+                $tab[$i][$j]["label_align"]    ="left";
+                $tab[$i][$j]["align"]          ="left";
+                $tab[$i][$j]["valign"]         ="bottom";
                 if ($_SESSION['m_admin']['contact']['IS_CORPORATE_PERSON'] == "Y") {
                     $tab[$i][$j]["show"]=false;
                 } else {
@@ -262,13 +254,13 @@ for ($i = 0; $i < count($tab); $i ++) {
             }
             if($tab[$i][$j][$value]=="address_postal_code")
             {
-                $tab[$i][$j]['value']=$request->show_string($tab[$i][$j]['value']);
-                $tab[$i][$j]["address_postal_code"]=$tab[$i][$j]['value'];
-                $tab[$i][$j]["label"]=_POSTAL_CODE;
-                $tab[$i][$j]["size"]="15";
-                $tab[$i][$j]["label_align"]="left";
-                $tab[$i][$j]["align"]="left";
-                $tab[$i][$j]["valign"]="bottom";
+                $tab[$i][$j]['value']               =$request->show_string($tab[$i][$j]['value']);
+                $tab[$i][$j]["address_postal_code"] =$tab[$i][$j]['value'];
+                $tab[$i][$j]["label"]               =_POSTAL_CODE;
+                $tab[$i][$j]["size"]                ="15";
+                $tab[$i][$j]["label_align"]         ="left";
+                $tab[$i][$j]["align"]               ="left";
+                $tab[$i][$j]["valign"]              ="bottom";
                if ($_SESSION['m_admin']['contact']['IS_CORPORATE_PERSON'] == "Y") {
                     $tab[$i][$j]["show"]=false;
                 } else {
@@ -279,54 +271,55 @@ for ($i = 0; $i < count($tab); $i ++) {
 
             if($tab[$i][$j][$value]=="address_town")
             {
-                $tab[$i][$j]["address_town"]= $request->show_string($tab[$i][$j]['value']);
-                $tab[$i][$j]["label"]=_TOWN;
-                $tab[$i][$j]["size"]="15";
-                $tab[$i][$j]["label_align"]="center";
-                $tab[$i][$j]["align"]="center";
-                $tab[$i][$j]["valign"]="bottom";
-                $tab[$i][$j]["show"]=true;
-                $tab[$i][$j]["order"]= "address_town";
+                $tab[$i][$j]["address_town"] = $request->show_string($tab[$i][$j]['value']);
+                $tab[$i][$j]["label"]        =_TOWN;
+                $tab[$i][$j]["size"]         ="15";
+                $tab[$i][$j]["label_align"]  ="center";
+                $tab[$i][$j]["align"]        ="center";
+                $tab[$i][$j]["valign"]       ="bottom";
+                $tab[$i][$j]["show"]         =true;
+                $tab[$i][$j]["order"]        = "address_town";
             }
             if($tab[$i][$j][$value]=="phone")
             {
-                $tab[$i][$j]['value']=$request->show_string($tab[$i][$j]['value']);
-                $tab[$i][$j]["phone"]=$tab[$i][$j]['value'];
-                $tab[$i][$j]["label"]=_PHONE;
-                $tab[$i][$j]["size"]="15";
-                $tab[$i][$j]["label_align"]="left";
-                $tab[$i][$j]["align"]="left";
-                $tab[$i][$j]["valign"]="bottom";
-                $tab[$i][$j]["show"]=true;
-                $tab[$i][$j]["order"]= "phone";
+                $tab[$i][$j]['value']       =$request->show_string($tab[$i][$j]['value']);
+                $tab[$i][$j]["phone"]       =$tab[$i][$j]['value'];
+                $tab[$i][$j]["label"]       =_PHONE;
+                $tab[$i][$j]["size"]        ="15";
+                $tab[$i][$j]["label_align"] ="left";
+                $tab[$i][$j]["align"]       ="left";
+                $tab[$i][$j]["valign"]      ="bottom";
+                $tab[$i][$j]["show"]        =true;
+                $tab[$i][$j]["order"]       = "phone";
             }
             if($tab[$i][$j][$value]=="email")
             {
-                $tab[$i][$j]["email"]= $request->show_string($tab[$i][$j]['value']);
-                $tab[$i][$j]["label"]=_MAIL;
-                $tab[$i][$j]["size"]="15";
-                $tab[$i][$j]["label_align"]="center";
-                $tab[$i][$j]["align"]="center";
-                $tab[$i][$j]["valign"]="bottom";
-                $tab[$i][$j]["show"]=true;
-                $tab[$i][$j]["order"]= "email";
+                $tab[$i][$j]["email"]       = $request->show_string($tab[$i][$j]['value']);
+                $tab[$i][$j]["label"]       =_MAIL;
+                $tab[$i][$j]["size"]        ="15";
+                $tab[$i][$j]["label_align"] ="center";
+                $tab[$i][$j]["align"]       ="center";
+                $tab[$i][$j]["valign"]      ="bottom";
+                $tab[$i][$j]["show"]        =true;
+                $tab[$i][$j]["order"]       = "email";
             }
             if($tab[$i][$j][$value]=="enabled")
             {
-                $tab[$i][$j]["enabled"]= $tab[$i][$j]['value'];
-                $tab[$i][$j]["label"]=_STATUS;
-                $tab[$i][$j]["size"]="5";
-                $tab[$i][$j]["label_align"]="center";
-                $tab[$i][$j]["align"]="center";
-                $tab[$i][$j]["valign"]="bottom";
-                $tab[$i][$j]["show"]=true;
-                $tab[$i][$j]["order"]= "enabled";
+                $tab[$i][$j]["enabled"]     = $tab[$i][$j]['value'];
+                $tab[$i][$j]["label"]       =_STATUS;
+                $tab[$i][$j]["size"]        ="5";
+                $tab[$i][$j]["label_align"] ="center";
+                $tab[$i][$j]["align"]       ="center";
+                $tab[$i][$j]["valign"]      ="bottom";
+                $tab[$i][$j]["show"]        =true;
+                $tab[$i][$j]["order"]       = "enabled";
             }
         }
     }
 }
-$pageName = "contact_addresses";
-$pageNameUp = "contact_addresses_up";
+
+$pageName    = "contact_addresses";
+$pageNameUp  = "contact_addresses_up";
 $pageNameAdd = "contact_addresses_add";
 $pageNameVal = "";
 $pageNameBan = "";
@@ -361,4 +354,3 @@ $list->admin_list(
 
 $_SESSION['m_admin']['address'] = array();
 echo '</div>';
-?>
diff --git a/apps/maarch_entreprise/class/class_types_Abstract.php b/apps/maarch_entreprise/class/class_types_Abstract.php
index 4f11da3606293b314e1009d398efc4bc4347d5ce..37cae27a605423f0e5bb856205110fb391a6f270 100644
--- a/apps/maarch_entreprise/class/class_types_Abstract.php
+++ b/apps/maarch_entreprise/class/class_types_Abstract.php
@@ -987,13 +987,14 @@ abstract class types_Abstract extends database
                         );
                     }
                     $indexes[$col] = array(
-                        'label' => $label,
-                        'type' => (string) $item->type,
-                        'img' => $img,
-                        'type_field' => 'select',
-                        'values' => $values,
+                        'label'         => $label,
+                        'type'          => (string) $item->type,
+                        'img'           => $img,
+                        'type_field'    => 'select',
+                        'values'        => $values,
                         'default_value' => $default,
-						'origin' => 'document'
+                        'origin'        => 'document',
+                        'only_detail'   => $item->only_detail
                     );
                 } else if (isset($item->table)) {
                     $values = array();
@@ -1024,39 +1025,40 @@ abstract class types_Abstract extends database
                          );
                     }
                     $indexes[$col] = array(
-                        'label' => $label,
-                        'type' => (string) $item->type,
-                        'img' => $img,
-                        'type_field' => 'select',
-                        'values' => $values,
+                        'label'         => $label,
+                        'type'          => (string) $item->type,
+                        'img'           => $img,
+                        'type_field'    => 'select',
+                        'values'        => $values,
                         'default_value' => $default,
-						'origin' => 'document'
+                        'origin'        => 'document',
+                        'only_detail'   => $item->only_detail
                     );
                 } else {
                     $indexes[$col] = array(
-                        'label' => $label,
-                        'type' => (string) $item->type,
-                        'img' => $img,
-                        'type_field' => 'input',
+                        'label'         => $label,
+                        'type'          => (string) $item->type,
+                        'img'           => $img,
+                        'type_field'    => 'input',
                         'default_value' => $default,
-						'origin' => 'document'
+                        'origin'        => 'document',
+                        'only_detail'   => $item->only_detail
                     );
                 }
             }
         }
-        //print_r($indexes);
+
         foreach(array_keys($indexes) as $key) {
             if (is_array($indexes[$key])) {
-                //print_r($indexes[$key]);
-                $indexes[$key]['label'] = functions::xssafe($indexes[$key]['label']);
-                $indexes[$key]['type'] = functions::xssafe($indexes[$key]['type']);
-                $indexes[$key]['img'] = functions::xssafe($indexes[$key]['img']);
-                $indexes[$key]['type_field'] = functions::xssafe($indexes[$key]['type_field']);
+                $indexes[$key]['label']         = functions::xssafe($indexes[$key]['label']);
+                $indexes[$key]['type']          = functions::xssafe($indexes[$key]['type']);
+                $indexes[$key]['img']           = functions::xssafe($indexes[$key]['img']);
+                $indexes[$key]['type_field']    = functions::xssafe($indexes[$key]['type_field']);
                 $indexes[$key]['default_value'] = functions::xssafe($indexes[$key]['default_value']);
-                $indexes[$key]['origin'] = functions::xssafe($indexes[$key]['origin']);
+                $indexes[$key]['origin']        = functions::xssafe($indexes[$key]['origin']);
+                $indexes[$key]['only_detail']   = functions::xssafe($indexes[$key]['only_detail']);
                 if (is_array($indexes[$key]['values'])) {
                     for ($cpt=0;$cpt<count($indexes[$key]['values']);$cpt++) {
-                        //print_r($indexes[$key]['values'][$cpt]);
                         $indexes[$key]['values'][$cpt]['id'] = functions::xssafe($indexes[$key]['values'][$cpt]['id']);
                         $indexes[$key]['values'][$cpt]['label'] = functions::xssafe($indexes[$key]['values'][$cpt]['label']);
                     }
diff --git a/apps/maarch_entreprise/display_tab.php b/apps/maarch_entreprise/display_tab.php
index a9419a94ade9b87b4a9280130424a4be522a2c8d..d06c7be643c637c5a673889814b8030b22da6cc8 100755
--- a/apps/maarch_entreprise/display_tab.php
+++ b/apps/maarch_entreprise/display_tab.php
@@ -2,10 +2,10 @@
 
 if(isset($_REQUEST["titleTab"])){
     $titleTab = $_REQUEST["titleTab"];
-    $res_id = $_REQUEST["resId"];
-    $coll_id = $_REQUEST["collId"];
-    $script = $_REQUEST["pathScriptTab"];
-}else{
+    $res_id   = $_REQUEST["resId"];
+    $coll_id  = $_REQUEST["collId"];
+    $script   = $_REQUEST["pathScriptTab"];
+} else {
     echo 'NO TAB FOUND!';
     exit();
 }
diff --git a/apps/maarch_entreprise/indexing_searching/change_doctype.php b/apps/maarch_entreprise/indexing_searching/change_doctype.php
old mode 100644
new mode 100755
index af0260a173672abd03aa28329566d3a2b4a9a544..76aa218f92c409ad8fc7a2b234d6920a48409cbf
--- a/apps/maarch_entreprise/indexing_searching/change_doctype.php
+++ b/apps/maarch_entreprise/indexing_searching/change_doctype.php
@@ -98,7 +98,15 @@ if ($core->service_is_enabled('param_mlb_doctypes')) {
 }
 $mandatory_indexes = $type->get_mandatory_indexes($_REQUEST['type_id'], $coll_id);
 $indexes = $type->get_indexes($_REQUEST['type_id'], $coll_id);
-//var_dump($coll_id);exit;
+
+if(is_array($indexes)){
+    foreach ($indexes as $key => $value) {
+        if(filter_var($value['only_detail'], FILTER_VALIDATE_BOOLEAN)){
+            unset($indexes[$key]);
+        }
+    }
+}
+
 $opt_indexes = '';
 if (preg_match("/MSIE 6.0/", $_SERVER["HTTP_USER_AGENT"])) {
     $browser_ie = true;
diff --git a/apps/maarch_entreprise/indexing_searching/contact_address_view.php b/apps/maarch_entreprise/indexing_searching/contact_address_view.php
index 6ef5998f59e8129b45460183afb1c6a0f5ce88e8..d7bd0529acf5b7fc4703f9250748c6a80969337c 100644
--- a/apps/maarch_entreprise/indexing_searching/contact_address_view.php
+++ b/apps/maarch_entreprise/indexing_searching/contact_address_view.php
@@ -109,7 +109,8 @@ $_SESSION['m_admin']['address']['SALUTATION_FOOTER']  = $request->show_string($l
 
 ?>
 	<h1><i class="fa fa-home fa-2x"></i>&nbsp;<?php echo _VIEW_ADDRESS;?></h1>
-    <div id="inner_content" class="clearfix" align="center">
+    <br>
+    <div class="clearfix block" align="center">
 <?php
 	$contact->get_contact_form();
 	$contact->get_address_form();
diff --git a/apps/maarch_entreprise/indexing_searching/contacts_view.php b/apps/maarch_entreprise/indexing_searching/contacts_view.php
old mode 100644
new mode 100755
index ed2581f97dc9e48d984097b6c8a2b979b901c333..ae43dd9160a749e0f323b13956647dbc1d3a34ca
--- a/apps/maarch_entreprise/indexing_searching/contacts_view.php
+++ b/apps/maarch_entreprise/indexing_searching/contacts_view.php
@@ -16,9 +16,9 @@ require("apps".DIRECTORY_SEPARATOR.$_SESSION['config']['app_id'].DIRECTORY_SEPAR
 require_once "apps".DIRECTORY_SEPARATOR.$_SESSION['config']['app_id'].DIRECTORY_SEPARATOR."class".DIRECTORY_SEPARATOR."class_lists.php";
 require_once 'core' . DIRECTORY_SEPARATOR . 'class' . DIRECTORY_SEPARATOR . 'class_request.php';
 
-$func = new functions();
+$func  = new functions();
 $list2 = new lists(); 
-$db = new Database();
+$db    = new Database();
 
 if(isset($_GET['id']))
 {
@@ -60,21 +60,22 @@ $query = "SELECT * FROM ".$_SESSION['tablename']['contacts_v2']." WHERE contact_
 $stmt = $db->query($query, array($_SESSION['contact']['current_contact_id']));
 $line = $stmt->fetchObject();
 
-$_SESSION['m_admin']['contact'] = array();
-$_SESSION['m_admin']['contact']['ID'] = $line->contact_id;
-$_SESSION['m_admin']['contact']['TITLE'] = $request->show_string($line->title);
-$_SESSION['m_admin']['contact']['LASTNAME'] = $request->show_string($line->lastname);
-$_SESSION['m_admin']['contact']['FIRSTNAME'] = $request->show_string($line->firstname);
-$_SESSION['m_admin']['contact']['SOCIETY'] = $request->show_string($line->society);
-$_SESSION['m_admin']['contact']['SOCIETY_SHORT'] = $request->show_string($line->society_short);
-$_SESSION['m_admin']['contact']['FUNCTION'] = $request->show_string($line->function);
-$_SESSION['m_admin']['contact']['OTHER_DATA'] = $request->show_string($line->other_data);
+$_SESSION['m_admin']['contact']                        = array();
+$_SESSION['m_admin']['contact']['ID']                  = $line->contact_id;
+$_SESSION['m_admin']['contact']['TITLE']               = $request->show_string($line->title);
+$_SESSION['m_admin']['contact']['LASTNAME']            = $request->show_string($line->lastname);
+$_SESSION['m_admin']['contact']['FIRSTNAME']           = $request->show_string($line->firstname);
+$_SESSION['m_admin']['contact']['SOCIETY']             = $request->show_string($line->society);
+$_SESSION['m_admin']['contact']['SOCIETY_SHORT']       = $request->show_string($line->society_short);
+$_SESSION['m_admin']['contact']['FUNCTION']            = $request->show_string($line->function);
+$_SESSION['m_admin']['contact']['OTHER_DATA']          = $request->show_string($line->other_data);
 $_SESSION['m_admin']['contact']['IS_CORPORATE_PERSON'] = $request->show_string($line->is_corporate_person);
-$_SESSION['m_admin']['contact']['CONTACT_TYPE'] = $line->contact_type;
-$_SESSION['m_admin']['contact']['OWNER'] = $line->user_id;
+$_SESSION['m_admin']['contact']['CONTACT_TYPE']        = $line->contact_type;
+$_SESSION['m_admin']['contact']['OWNER']               = $line->user_id;
 ?>
 	<h1><i class="fa fa-users fa-2x"></i>&nbsp;<?php echo _VIEW_CONTACT;?></h1>
-	<div id="test" class="clearfix" align="center">
+	<br>
+	<div id="test" class="clearfix block" align="center">
 <?php
 		$contact->get_contact_form();
 ?>
@@ -85,4 +86,5 @@ $_SESSION['m_admin']['contact']['OWNER'] = $line->user_id;
 
 $mode = 'view';
 include_once 'apps/' . $_SESSION['config']['app_id'] . '/admin/contacts/contact_addresses/contact_addresses.php';
-?> </div>
\ No newline at end of file
+?> 
+</div>
diff --git a/apps/maarch_entreprise/js/angular/app/signature-book.component.js b/apps/maarch_entreprise/js/angular/app/signature-book.component.js
index b14942625716da25b31d4abe68890fe751a8552c..a8f2bce7d962412fa7c84714f53bf002c3ad2154 100644
--- a/apps/maarch_entreprise/js/angular/app/signature-book.component.js
+++ b/apps/maarch_entreprise/js/angular/app/signature-book.component.js
@@ -42,6 +42,7 @@ var SignatureBookComponent = (function () {
             attachments: [],
             //histories               : [],
             resList: [],
+            resListIndex: 0,
             lang: {}
         };
         this.rightSelectedThumbnail = 0;
@@ -128,11 +129,8 @@ var SignatureBookComponent = (function () {
                 _this.displayPanel("RESLEFT");
                 _this.loading = false;
                 setTimeout(function () {
-                    $j("#resListContent").niceScroll({ touchbehavior: false, cursorcolor: "#666", cursoropacitymax: 0.6, cursorwidth: 4 });
                     $j("#rightPanelContent").niceScroll({ touchbehavior: false, cursorcolor: "#666", cursoropacitymax: 0.6, cursorwidth: 4 });
                     $j(".pjSign").niceScroll({ touchbehavior: false, cursorcolor: "#666", cursoropacitymax: 0.6, cursorwidth: 4 });
-                    $j("#resListContent").scrollTop(0);
-                    $j("#resListContent").scrollTop($j(".resListContentFrameSelected").offset().top - 42);
                     $j("#obsVersion").tooltipster({
                         interactive: true
                     });
@@ -189,6 +187,7 @@ var SignatureBookComponent = (function () {
         this.leftSelectedThumbnail = index;
     };
     SignatureBookComponent.prototype.displayPanel = function (panel) {
+        var _this = this;
         if (panel == "TOPRIGHT") {
             this.showTopRightPanel = !this.showTopRightPanel;
         }
@@ -217,6 +216,23 @@ var SignatureBookComponent = (function () {
             else {
                 this.rightContentWidth = "44%";
                 this.leftContentWidth = "44%";
+                if (this.signatureBook.resList.length == 0) {
+                    this.http.get(this.coreUrl + 'rest/' + this.basketId + '/signatureBook/resList')
+                        .map(function (res) { return res.json(); })
+                        .subscribe(function (data) {
+                        _this.signatureBook.resList = data.resList;
+                        _this.signatureBook.resList.forEach(function (value, index) {
+                            if (value.res_id == _this.resId) {
+                                _this.signatureBook.resListIndex = index;
+                            }
+                        });
+                        setTimeout(function () {
+                            $j("#resListContent").niceScroll({ touchbehavior: false, cursorcolor: "#666", cursoropacitymax: 0.6, cursorwidth: 4 });
+                            $j("#resListContent").scrollTop(0);
+                            $j("#resListContent").scrollTop($j(".resListContentFrameSelected").offset().top - 42);
+                        }, 0);
+                    });
+                }
             }
         }
         else if (panel == "MIDDLE") {
@@ -363,7 +379,9 @@ var SignatureBookComponent = (function () {
                             allSigned = false;
                         }
                     });
-                    _this.signatureBook.resList[_this.signatureBook.resListIndex].allSigned = allSigned;
+                    if (_this.signatureBook.resList.length > 0) {
+                        _this.signatureBook.resList[_this.signatureBook.resListIndex].allSigned = allSigned;
+                    }
                 }
                 else {
                     alert(data.error);
@@ -396,7 +414,9 @@ var SignatureBookComponent = (function () {
                 _this.signatureBook.attachments[_this.rightSelectedThumbnail].viewerLink = _this.rightViewerLink;
                 _this.signatureBook.attachments[_this.rightSelectedThumbnail].status = 'A_TRA';
                 _this.signatureBook.attachments[_this.rightSelectedThumbnail].idToDl = resId;
-                _this.signatureBook.resList[_this.signatureBook.resListIndex].allSigned = false;
+                if (_this.signatureBook.resList.length > 0) {
+                    _this.signatureBook.resList[_this.signatureBook.resListIndex].allSigned = false;
+                }
             }
             else {
                 alert(data.error);
@@ -434,9 +454,17 @@ var SignatureBookComponent = (function () {
         });
     };
     SignatureBookComponent.prototype.validForm = function () {
+        var _this = this;
         if ($j("#signatureBookActions option:selected")[0].value != "") {
             unlockDocument(this.resId);
-            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', false, [$j("#signatureBookActions option:selected")[0].value]);
+            if (this.signatureBook.resList.length == 0) {
+                this.http.get(this.coreUrl + 'rest/' + this.basketId + '/signatureBook/resList')
+                    .map(function (res) { return res.json(); })
+                    .subscribe(function (data) {
+                    _this.signatureBook.resList = data.resList;
+                    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', false, [$j("#signatureBookActions option:selected")[0].value]);
+                });
+            }
         }
         else {
             alert("Aucune action choisie");
diff --git a/apps/maarch_entreprise/js/angular/app/signature-book.component.ts b/apps/maarch_entreprise/js/angular/app/signature-book.component.ts
index 35d67a8f5d8d05a9595902c0507838553d040ca3..4ef86928681f538726fb42012c45db120e262584 100644
--- a/apps/maarch_entreprise/js/angular/app/signature-book.component.ts
+++ b/apps/maarch_entreprise/js/angular/app/signature-book.component.ts
@@ -38,6 +38,7 @@ export class SignatureBookComponent implements OnInit {
         attachments             : [],
         //histories               : [],
         resList                 : [],
+        resListIndex            : 0,
         lang                    : {}
     };
 
@@ -83,7 +84,7 @@ export class SignatureBookComponent implements OnInit {
         $j('#container').width("99%");
     }
 
-    ngOnInit(): void {
+    ngOnInit() : void {
         this.prepareSignatureBook();
         this.coreUrl = angularGlobals.coreUrl;
 
@@ -138,11 +139,8 @@ export class SignatureBookComponent implements OnInit {
                     this.loading = false;
 
                     setTimeout(() => {
-                        $j("#resListContent").niceScroll({touchbehavior:false, cursorcolor:"#666", cursoropacitymax:0.6, cursorwidth:4});
                         $j("#rightPanelContent").niceScroll({touchbehavior:false, cursorcolor:"#666", cursoropacitymax:0.6, cursorwidth:4});
                         $j(".pjSign").niceScroll({touchbehavior:false, cursorcolor:"#666", cursoropacitymax:0.6, cursorwidth:4});
-                        $j("#resListContent").scrollTop(0);
-                        $j("#resListContent").scrollTop($j(".resListContentFrameSelected").offset().top - 42);
                         $j("#obsVersion").tooltipster({
                             interactive: true
                         });
@@ -227,6 +225,23 @@ export class SignatureBookComponent implements OnInit {
             } else {
                 this.rightContentWidth = "44%";
                 this.leftContentWidth = "44%";
+                if (this.signatureBook.resList.length == 0) {
+                    this.http.get(this.coreUrl + 'rest/' + this.basketId + '/signatureBook/resList')
+                        .map(res => res.json())
+                        .subscribe((data) => {
+                            this.signatureBook.resList = data.resList;
+                            this.signatureBook.resList.forEach((value: any, index: number) => {
+                                if (value.res_id == this.resId) {
+                                    this.signatureBook.resListIndex = index;
+                                }
+                            });
+                            setTimeout(() => {
+                                $j("#resListContent").niceScroll({touchbehavior:false, cursorcolor:"#666", cursoropacitymax:0.6, cursorwidth:4});
+                                $j("#resListContent").scrollTop(0);
+                                $j("#resListContent").scrollTop($j(".resListContentFrameSelected").offset().top - 42);
+                            }, 0);
+                        });
+                }
             }
         } else if (panel == "MIDDLE") {
             this.showRightPanel = !this.showRightPanel;
@@ -372,7 +387,9 @@ export class SignatureBookComponent implements OnInit {
                                 allSigned = false;
                             }
                         });
-                        this.signatureBook.resList[this.signatureBook.resListIndex].allSigned = allSigned;
+                        if (this.signatureBook.resList.length > 0) {
+                            this.signatureBook.resList[this.signatureBook.resListIndex].allSigned = allSigned;
+                        }
                     } else {
                         alert(data.error);
                     }
@@ -406,7 +423,9 @@ export class SignatureBookComponent implements OnInit {
                     this.signatureBook.attachments[this.rightSelectedThumbnail].viewerLink = this.rightViewerLink;
                     this.signatureBook.attachments[this.rightSelectedThumbnail].status = 'A_TRA';
                     this.signatureBook.attachments[this.rightSelectedThumbnail].idToDl = resId;
-                    this.signatureBook.resList[this.signatureBook.resListIndex].allSigned = false;
+                    if (this.signatureBook.resList.length > 0) {
+                        this.signatureBook.resList[this.signatureBook.resListIndex].allSigned = false;
+                    }
                 } else {
                     alert(data.error);
                 }
@@ -448,18 +467,26 @@ export class SignatureBookComponent implements OnInit {
         if ($j("#signatureBookActions option:selected")[0].value != "") {
             unlockDocument(this.resId);
 
-            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',
-                false,
-                [$j("#signatureBookActions option:selected")[0].value]
-            );
+            if (this.signatureBook.resList.length == 0) {
+                this.http.get(this.coreUrl + 'rest/' + this.basketId + '/signatureBook/resList')
+                    .map(res => res.json())
+                    .subscribe((data) => {
+                        this.signatureBook.resList = data.resList;
+
+                        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',
+                            false,
+                            [$j("#signatureBookActions option:selected")[0].value]
+                        );
+                    });
+            }
         } else {
             alert("Aucune action choisie");
         }
diff --git a/apps/maarch_entreprise/js/angular/main.bundle.min.js b/apps/maarch_entreprise/js/angular/main.bundle.min.js
index f34e687dd96bfe20356ce04960a835cc69f67b2a..8d090a39f1e96b9a03288e38caee8c1e1dafd6c4 100644
--- a/apps/maarch_entreprise/js/angular/main.bundle.min.js
+++ b/apps/maarch_entreprise/js/angular/main.bundle.min.js
@@ -1,34 +1,35 @@
-!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.main=t()}}(function(){var t;return function e(t,r,n){function o(s,a){if(!r[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(i)return i(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[s]={exports:{}};t[s][0].call(l.exports,function(e){var r=t[s][1][e];return o(r?r:e)},l,l.exports,e,t,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)o(n[s]);return o}({1:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(r,"__esModule",{value:!0});var o=t("@angular/core"),i=function(){function t(){}return t}();i=n([o.Component({selector:"my-app",template:"<router-outlet></router-outlet>"})],i),r.AppComponent=i},{"@angular/core":8}],2:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(r,"__esModule",{value:!0});var o=t("@angular/core"),i=t("@angular/platform-browser"),s=t("@angular/router"),a=t("@angular/http"),u=t("@angular/forms"),c=t("./app.component"),l=t("./profile.component"),p=t("./signature-book.component"),h=function(){function t(){}return t}();h=n([o.NgModule({imports:[i.BrowserModule,u.FormsModule,s.RouterModule.forRoot([{path:"profile",component:l.ProfileComponent},{path:":basketId/signatureBook/:resId",component:p.SignatureBookComponent},{path:"**",redirectTo:"",pathMatch:"full"}],{useHash:!0}),a.HttpModule],declarations:[c.AppComponent,l.ProfileComponent,p.SignatureBookComponent,p.SafeUrlPipe],bootstrap:[c.AppComponent]})],h),r.AppModule=h},{"./app.component":1,"./profile.component":3,"./signature-book.component":4,"@angular/core":8,"@angular/forms":9,"@angular/http":10,"@angular/platform-browser":12,"@angular/router":13}],3:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0};Object.defineProperty(r,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http");t("rxjs/add/operator/map");var a=function(){function t(t,e){var r=this;this.http=t,this.zone=e,this.user={lang:{}},this.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},this.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},this.mailSignatureModel={selected:0,htmlBody:"",title:""},this.showPassword=!1,this.selectedSignature=-1,this.selectedSignatureLabel="",this.resultInfo="",this.loading=!1,window.angularProfileComponent={componentAfterUpload:function(t){return r.processAfterUpload(t)}}}return t.prototype.prepareProfile=function(){if($j("#inner_content").remove(),$j("#menunav").hide(),$j("#divList").remove(),$j("#magicContactsTable").remove(),$j("#manageBasketsOrderTable").remove(),$j("#container").width("99%"),$j("#content h1")[0]&&$j("#content h1")[0]!=$j("my-app h1")[0]&&$j("#content h1")[0].remove(),Prototype.BrowserFeatures.ElementExtensions){var t=["collapse","dropdown","modal","tooltip","popover","tab"];disablePrototypeJS("show",t),disablePrototypeJS("hide",t)}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/user/profile").map(function(t){return t.json()}).subscribe(function(e){t.user=e,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="",this.resultInfo="Taille maximum de fichier dépassée (2 MB)",$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))},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.getAbsenceInfos=function(){var t=this;this.http.get(this.coreUrl+"rest/currentUser/baskets/absence").map(function(t){return t.json()}).subscribe(function(){t.loading=!1})},t.prototype.updatePassword=function(){var t=this;this.http.put(this.coreUrl+"rest/currentUser/password",this.passwordModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.showPassword=!1,t.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.submitEmailSignature=function(){var t=this;this.mailSignatureModel.htmlBody=tinymce.get("emailSignature").getContent(),this.http.post(this.coreUrl+"rest/currentUser/emailSignature",this.mailSignatureModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.emailSignatures=e.emailSignatures,t.mailSignatureModel={selected:0,htmlBody:"",title:""},tinymce.get("emailSignature").setContent(""),t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.updateEmailSignature=function(){var t=this;this.mailSignatureModel.htmlBody=tinymce.get("emailSignature").getContent();var e=this.user.emailSignatures[this.mailSignatureModel.selected-1].id;this.http.put(this.coreUrl+"rest/currentUser/emailSignature/"+e,this.mailSignatureModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.emailSignatures[t.mailSignatureModel.selected-1].title=e.emailSignature.title,t.user.emailSignatures[t.mailSignatureModel.selected-1].html_body=e.emailSignature.html_body,t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.deleteEmailSignature=function(){var t=this,e=confirm("Voulez-vous vraiment supprimer la signature de mail ?");if(e){var r=this.user.emailSignatures[this.mailSignatureModel.selected-1].id;this.http["delete"](this.coreUrl+"rest/currentUser/emailSignature/"+r).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.emailSignatures=e.emailSignatures,t.mailSignatureModel={selected:0,htmlBody:"",title:""},tinymce.get("emailSignature").setContent(""),t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})}},t.prototype.submitSignature=function(){var t=this;this.http.post(this.coreUrl+"rest/currentUser/signature",this.signatureModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.signatures=e.signatures,t.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.updateSignature=function(){var t=this,e=this.user.signatures[this.selectedSignature].id;this.http.put(this.coreUrl+"rest/currentUser/signature/"+e,{label:this.selectedSignatureLabel}).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.signatures[t.selectedSignature].signature_label=e.signature.signature_label,t.selectedSignature=-1,t.selectedSignatureLabel="",t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.deleteSignature=function(t){var e=this,r=confirm("Voulez-vous vraiment supprimer la signature ?");r&&this.http["delete"](this.coreUrl+"rest/currentUser/signature/"+t).map(function(t){return t.json()}).subscribe(function(t){t.errors?(e.resultInfo=t.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(e.user.signatures=t.signatures,e.resultInfo=t.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.onSubmit=function(){var t=this;this.http.put(this.coreUrl+"rest/user/profile",this.user).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))},function(t){alert(t.statusText)})},t.prototype.absenceModal=function(){createModal(this.user.absence,"modal_redirect","auto","950px"),autocomplete(this.user.countBasketsForAbsence,"index.php?display=true&module=basket&page=autocomplete_users_list")},t}();a=n([i.Component({templateUrl:angularGlobals.profileView,styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","js/angular/app/Css/profile.component.css"]}),o("design:paramtypes",[s.Http,i.NgZone])],a),r.ProfileComponent=a},{"@angular/core":8,"@angular/http":10,"rxjs/add/operator/map":24}],4:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0};Object.defineProperty(r,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http"),a=t("@angular/platform-browser"),u=t("@angular/router");t("rxjs/add/operator/map");var c=function(){function t(t){this.sanitizer=t}return t.prototype.transform=function(t){return this.sanitizer.bypassSecurityTrustResourceUrl(t)},t}();c=n([i.Pipe({name:"safeUrl"}),o("design:paramtypes",[a.DomSanitizer])],c),r.SafeUrlPipe=c;var l=function(){function t(t,e,r,n){var o=this;this.http=t,this.route=e,this.router=r,this.zone=n,this.signatureBook={currentAction:{},consigne:"",documents:[],attachments:[],resList:[],lang:{}},this.rightSelectedThumbnail=0,this.leftSelectedThumbnail=0,this.rightViewerLink="",this.leftViewerLink="",this.headerTab=1,this.showTopRightPanel=!1,this.showTopLeftPanel=!1,this.showResLeftPanel=!0,this.showLeftPanel=!0,this.showRightPanel=!0,this.showAttachmentPanel=!1,this.showSignaturesPanel=!1,this.loading=!1,this.loadingSign=!1,this.leftContentWidth="44%",this.rightContentWidth="44%",this.notesViewerLink="",this.visaViewerLink="",this.histViewerLink="",this.linksViewerLink="",this.attachmentsViewerLink="",window.angularSignatureBookComponent={componentAfterAttach:function(t){return o.processAfterAttach(t)},componentAfterAction:function(){return o.processAfterAction()},componentAfterNotes:function(){return o.processAfterNotes()}}}return t.prototype.prepareSignatureBook=function(){$j("#inner_content").remove(),$j("#header").remove(),$j("#viewBasketsTitle").remove(),$j("#homePageWelcomeTitle").remove(),$j("#footer").remove(),$j("#container").width("99%")},t.prototype.ngOnInit=function(){var t=this;this.prepareSignatureBook(),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.route.params.subscribe(function(e){t.resId=+e.resId,t.basketId=e.basketId,lockDocument(t.resId),setInterval(function(){lockDocument(t.resId)},5e4),t.http.get(t.coreUrl+"rest/"+t.basketId+"/signatureBook/"+t.resId).map(function(t){return t.json()}).subscribe(function(e){return e.error?(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,void setTimeout(function(){$j("#resListContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j("#rightPanelContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j(".pjSign").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j("#resListContent").scrollTop(0),$j("#resListContent").scrollTop($j(".resListContentFrameSelected").offset().top-42),$j("#obsVersion").tooltipster({interactive:!0})},0))})})},t.prototype.ngOnDestroy=function(){delete window.angularSignatureBookComponent},t.prototype.processAfterAttach=function(t){var e=this;this.zone.run(function(){return e.refreshAttachments(t)})},t.prototype.processAfterNotes=function(){var t=this;this.zone.run(function(){return t.refreshNotes()})},t.prototype.processAfterAction=function(){for(var t=this,e=-1,r=this.signatureBook.resList.length,n=0;r>n;n++)this.signatureBook.resList[n].res_id==this.resId&&(this.signatureBook.resList[n+1]?e=this.signatureBook.resList[n+1].res_id:n>0&&(e=this.signatureBook.resList[n-1].res_id));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.rightViewerLink=this.signatureBook.attachments[t].viewerLink,this.rightSelectedThumbnail=t},t.prototype.changeLeftViewer=function(t){this.leftViewerLink=this.signatureBook.documents[t].viewerLink,this.leftSelectedThumbnail=t},t.prototype.displayPanel=function(t){"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%"):(this.rightContentWidth="48%",this.leftContentWidth="48%")):"MIDDLE"==t&&(this.showRightPanel=!this.showRightPanel,this.showResLeftPanel=!1,this.showRightPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#contentLeft").css("border-right","solid 1px")):(this.leftContentWidth="96%",$j("#contentLeft").css("border-right","none")))},t.prototype.displayAttachmentPanel=function(){this.showAttachmentPanel=!this.showAttachmentPanel,this.rightSelectedThumbnail=0,this.signatureBook.attachments[0]&&(this.rightViewerLink=this.signatureBook.attachments[0].viewerLink)},t.prototype.refreshAttachments=function(t){var e=this;"rightContent"==t?this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/incomingMailAttachments").map(function(t){return t.json()}).subscribe(function(t){e.signatureBook.documents=t}):this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/attachments").map(function(t){return t.json()}).subscribe(function(r){var n=0;if("add"==t){var o=!1;r.forEach(function(t,r){o||e.signatureBook.attachments[r]&&t.res_id==e.signatureBook.attachments[r].res_id||(n=r,o=!0)})}else if("edit"==t){var i=e.signatureBook.attachments[e.rightSelectedThumbnail].res_id;r.forEach(function(t,e){t.res_id==i&&(n=e)})}e.signatureBook.attachments=r,"add"==t||"edit"==t?e.changeRightViewer(n):"del"==t&&e.changeRightViewer(0)})},t.prototype.addAttachmentIframe=function(){showAttachmentsForm("index.php?display=true&module=attachments&page=attachments_content&docId="+this.resId)},t.prototype.editAttachmentIframe=function(t){if(t.canModify&&"SIGN"!=t.status){var e;0==t.res_id?e=t.res_id_version:0==t.res_id_version&&(e=t.res_id),modifyAttachmentsForm("index.php?display=true&module=attachments&page=attachments_content&id="+e+"&relation="+t.relation+"&docId="+this.resId,"98%","auto")}},t.prototype.delAttachment=function(t){var e=this;if(t.canDelete){if(this.signatureBook.attachments.length<=1)var r=confirm("Attention, ceci est votre dernière pièce jointe pour ce courrier, voulez-vous vraiment la supprimer ?");else var r=confirm("Voulez-vous vraiment supprimer la pièce jointe ?");if(r){var n;0==t.res_id?n=t.res_id_version:0==t.res_id_version&&(n=t.res_id),this.http.get("index.php?display=true&module=attachments&page=del_attachment&id="+n+"&relation="+t.relation+"&rest=true").subscribe(function(){e.refreshAttachments("del")})}}},t.prototype.refreshNotes=function(){var t=this;this.http.get(this.coreUrl+"rest/res/"+this.resId+"/notes/count").map(function(t){return t.json()}).subscribe(function(e){t.signatureBook.nbNotes=e})},t.prototype.signFile=function(t,e){var r=this;if(!this.loadingSign&&this.signatureBook.canSign){this.loadingSign=!0;var n="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&resIdMaster="+this.resId+"&signatureId="+e.id;0==t.res_id?n+="outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?"&isVersion&isOutgoing&id="+t.res_id_version:"&isVersion&id="+t.res_id_version:0==t.res_id_version&&(n+="outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?"&isOutgoing&id="+t.res_id:"&id="+t.res_id),this.http.get(n,e).map(function(t){return t.json()}).subscribe(function(t){if(0==t.status){r.rightViewerLink="index.php?display=true&module=attachments&page=view_attachment&res_id_master="+r.resId+"&id="+t.new_id+"&isVersion=false",r.signatureBook.attachments[r.rightSelectedThumbnail].viewerLink=r.rightViewerLink,r.signatureBook.attachments[r.rightSelectedThumbnail].status="SIGN",r.signatureBook.attachments[r.rightSelectedThumbnail].idToDl=t.new_id;var e=!0;r.signatureBook.attachments.forEach(function(t){t.sign&&"SIGN"!=t.status&&(e=!1)}),r.signatureBook.resList[r.signatureBook.resListIndex].allSigned=e}else alert(t.error);r.showSignaturesPanel=!1,r.loadingSign=!1})}},t.prototype.unsignFile=function(t){var e,r,n,o=this;0==t.res_id?(r=t.res_id_version,e="res_version_attachments",n="true"):0==t.res_id_version&&(r=t.res_id,e="res_attachments",n="false"),this.http.put(this.coreUrl+"rest/"+e+"/"+r+"/unsign",{},{}).map(function(t){return t.json()}).subscribe(function(e){"OK"==e.status?(o.rightViewerLink="index.php?display=true&module=attachments&page=view_attachment&res_id_master="+o.resId+"&id="+t.viewerNoSignId+"&isVersion="+n,o.signatureBook.attachments[o.rightSelectedThumbnail].viewerLink=o.rightViewerLink,o.signatureBook.attachments[o.rightSelectedThumbnail].status="A_TRA",o.signatureBook.attachments[o.rightSelectedThumbnail].idToDl=r,o.signatureBook.resList[o.signatureBook.resListIndex].allSigned=!1):alert(e.error)})},t.prototype.backToBasket=function(){unlockDocument(this.resId),location.hash="",location.reload()},t.prototype.backToDetails=function(){unlockDocument(this.resId),location.hash="",location.search="?page=details&dir=indexing_searching&id="+this.resId},t.prototype.changeLocation=function(t,e){var r=this;this.http.get(this.coreUrl+"rest/res/"+t+"/lock").map(function(t){return t.json()}).subscribe(function(n){if(n.lock)"view"==e?alert("Courrier verouillé par "+n.lockBy):"action"==e&&(alert("Courrier suivant verouillé par "+n.lockBy),r.backToBasket());else{var o="/"+r.basketId+"/signatureBook/"+t;r.router.navigate([o])}})},t.prototype.validForm=function(){""!=$j("#signatureBookActions option:selected")[0].value?(unlockDocument(this.resId),valid_action_form("empty","index.php?display=true&page=manage_action&module=core",this.signatureBook.currentAction.id,this.resId,"res_letterbox","null","letterbox_coll","page",!1,[$j("#signatureBookActions option:selected")[0].value])):alert("Aucune action choisie")},t}();l=n([i.Component({templateUrl:angularGlobals["signature-bookView"]}),o("design:paramtypes",[s.Http,u.ActivatedRoute,u.Router,i.NgZone])],l),r.SignatureBookComponent=l},{"@angular/core":8,"@angular/http":10,"@angular/platform-browser":12,"@angular/router":13,"rxjs/add/operator/map":24}],5:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("@angular/platform-browser-dynamic"),o=t("@angular/core"),i=t("./app/app.module");o.enableProdMode(),n.platformBrowserDynamic().bootstrapModule(i.AppModule)},{"./app/app.module":2,"@angular/core":8,"@angular/platform-browser-dynamic":11}],6:[function(e,r,n){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/core"],i):i((o.ng=o.ng||{},o.ng.common=o.ng.common||{}),o.ng.core)}(this,function(t,e){"use strict";function r(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}function n(t){return t.replace(/\/index.html$/,"")}function o(t,e,r){var n="="+t;if(e.indexOf(n)>-1)return n;if(n=r.getPluralCategory(t),e.indexOf(n)>-1)return n;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}function i(t,e){"string"==typeof e&&(e=parseInt(e,10));var r=e,n=r.toString().replace(/^[^.]*\.?/,""),o=Math.floor(Math.abs(r)),i=n.length,s=parseInt(n,10),a=parseInt(r.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0,u=t.split("-")[0].toLowerCase();switch(u){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===r?B.One:B.Other;case"agq":case"bas":case"cu":case"dav":case"dje":case"dua":case"dyo":case"ebu":case"ewo":case"guz":case"kam":case"khq":case"ki":case"kln":case"kok":case"ksf":case"lrc":case"lu":case"luo":case"luy":case"mer":case"mfe":case"mgh":case"mua":case"mzn":case"nmg":case"nus":case"qu":case"rn":case"rw":case"sbp":case"twq":case"vai":case"yav":case"yue":case"zgh":case"ak":case"ln":case"mg":case"pa":case"ti":return r===Math.floor(r)&&r>=0&&1>=r?B.One:B.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===o||1===r?B.One:B.Other;case"ar":return 0===r?B.Zero:1===r?B.One:2===r?B.Two:r%100===Math.floor(r%100)&&r%100>=3&&10>=r%100?B.Few:r%100===Math.floor(r%100)&&r%100>=11&&99>=r%100?B.Many:B.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===o&&0===i?B.One:B.Other;case"be":return r%10===1&&r%100!==11?B.One:r%10===Math.floor(r%10)&&r%10>=2&&4>=r%10&&!(r%100>=12&&14>=r%100)?B.Few:r%10===0||r%10===Math.floor(r%10)&&r%10>=5&&9>=r%10||r%100===Math.floor(r%100)&&r%100>=11&&14>=r%100?B.Many:B.Other;case"br":return r%10===1&&r%100!==11&&r%100!==71&&r%100!==91?B.One:r%10===2&&r%100!==12&&r%100!==72&&r%100!==92?B.Two:r%10===Math.floor(r%10)&&(r%10>=3&&4>=r%10||r%10===9)&&!(r%100>=10&&19>=r%100||r%100>=70&&79>=r%100||r%100>=90&&99>=r%100)?B.Few:0!==r&&r%1e6===0?B.Many:B.Other;case"bs":case"hr":case"sr":return 0===i&&o%10===1&&o%100!==11||s%10===1&&s%100!==11?B.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&4>=o%10&&!(o%100>=12&&14>=o%100)||s%10===Math.floor(s%10)&&s%10>=2&&4>=s%10&&!(s%100>=12&&14>=s%100)?B.Few:B.Other;case"cs":case"sk":return 1===o&&0===i?B.One:o===Math.floor(o)&&o>=2&&4>=o&&0===i?B.Few:0!==i?B.Many:B.Other;case"cy":return 0===r?B.Zero:1===r?B.One:2===r?B.Two:3===r?B.Few:6===r?B.Many:B.Other;case"da":return 1===r||0!==a&&(0===o||1===o)?B.One:B.Other;case"dsb":case"hsb":return 0===i&&o%100===1||s%100===1?B.One:0===i&&o%100===2||s%100===2?B.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&4>=o%100||s%100===Math.floor(s%100)&&s%100>=3&&4>=s%100?B.Few:B.Other;case"ff":case"fr":case"hy":case"kab":return 0===o||1===o?B.One:B.Other;case"fil":return 0===i&&(1===o||2===o||3===o)||0===i&&o%10!==4&&o%10!==6&&o%10!==9||0!==i&&s%10!==4&&s%10!==6&&s%10!==9?B.One:B.Other;case"ga":return 1===r?B.One:2===r?B.Two:r===Math.floor(r)&&r>=3&&6>=r?B.Few:r===Math.floor(r)&&r>=7&&10>=r?B.Many:B.Other;case"gd":return 1===r||11===r?B.One:2===r||12===r?B.Two:r===Math.floor(r)&&(r>=3&&10>=r||r>=13&&19>=r)?B.Few:B.Other;case"gv":return 0===i&&o%10===1?B.One:0===i&&o%10===2?B.Two:0!==i||o%100!==0&&o%100!==20&&o%100!==40&&o%100!==60&&o%100!==80?0!==i?B.Many:B.Other:B.Few;case"he":return 1===o&&0===i?B.One:2===o&&0===i?B.Two:0!==i||r>=0&&10>=r||r%10!==0?B.Other:B.Many;case"is":return 0===a&&o%10===1&&o%100!==11||0!==a?B.One:B.Other;case"ksh":return 0===r?B.Zero:1===r?B.One:B.Other;case"kw":case"naq":case"se":case"smn":return 1===r?B.One:2===r?B.Two:B.Other;case"lag":return 0===r?B.Zero:0!==o&&1!==o||0===r?B.Other:B.One;case"lt":return r%10!==1||r%100>=11&&19>=r%100?r%10===Math.floor(r%10)&&r%10>=2&&9>=r%10&&!(r%100>=11&&19>=r%100)?B.Few:0!==s?B.Many:B.Other:B.One;case"lv":case"prg":return r%10===0||r%100===Math.floor(r%100)&&r%100>=11&&19>=r%100||2===i&&s%100===Math.floor(s%100)&&s%100>=11&&19>=s%100?B.Zero:r%10===1&&r%100!==11||2===i&&s%10===1&&s%100!==11||2!==i&&s%10===1?B.One:B.Other;case"mk":return 0===i&&o%10===1||s%10===1?B.One:B.Other;case"mt":return 1===r?B.One:0===r||r%100===Math.floor(r%100)&&r%100>=2&&10>=r%100?B.Few:r%100===Math.floor(r%100)&&r%100>=11&&19>=r%100?B.Many:B.Other;case"pl":return 1===o&&0===i?B.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&4>=o%10&&!(o%100>=12&&14>=o%100)?B.Few:0===i&&1!==o&&o%10===Math.floor(o%10)&&o%10>=0&&1>=o%10||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&9>=o%10||0===i&&o%100===Math.floor(o%100)&&o%100>=12&&14>=o%100?B.Many:B.Other;
+!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.main=t()}}(function(){var t;return function e(t,r,n){function o(s,a){if(!r[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(i)return i(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[s]={exports:{}};t[s][0].call(l.exports,function(e){var r=t[s][1][e];return o(r?r:e)},l,l.exports,e,t,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)o(n[s]);return o}({1:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(r,"__esModule",{value:!0});var o=t("@angular/core"),i=function(){function t(){}return t}();i=n([o.Component({selector:"my-app",template:"<router-outlet></router-outlet>"})],i),r.AppComponent=i},{"@angular/core":8}],2:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(r,"__esModule",{value:!0});var o=t("@angular/core"),i=t("@angular/platform-browser"),s=t("@angular/router"),a=t("@angular/http"),u=t("@angular/forms"),c=t("./app.component"),l=t("./profile.component"),p=t("./signature-book.component"),h=function(){function t(){}return t}();h=n([o.NgModule({imports:[i.BrowserModule,u.FormsModule,s.RouterModule.forRoot([{path:"profile",component:l.ProfileComponent},{path:":basketId/signatureBook/:resId",component:p.SignatureBookComponent},{path:"**",redirectTo:"",pathMatch:"full"}],{useHash:!0}),a.HttpModule],declarations:[c.AppComponent,l.ProfileComponent,p.SignatureBookComponent,p.SafeUrlPipe],bootstrap:[c.AppComponent]})],h),r.AppModule=h},{"./app.component":1,"./profile.component":3,"./signature-book.component":4,"@angular/core":8,"@angular/forms":9,"@angular/http":10,"@angular/platform-browser":12,"@angular/router":13}],3:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0};Object.defineProperty(r,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http");t("rxjs/add/operator/map");var a=function(){function t(t,e){var r=this;this.http=t,this.zone=e,this.user={lang:{}},this.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},this.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},this.mailSignatureModel={selected:0,htmlBody:"",title:""},this.showPassword=!1,this.selectedSignature=-1,this.selectedSignatureLabel="",this.resultInfo="",this.loading=!1,window.angularProfileComponent={componentAfterUpload:function(t){return r.processAfterUpload(t)}}}return t.prototype.prepareProfile=function(){if($j("#inner_content").remove(),$j("#menunav").hide(),$j("#divList").remove(),$j("#magicContactsTable").remove(),$j("#manageBasketsOrderTable").remove(),$j("#container").width("99%"),$j("#content h1")[0]&&$j("#content h1")[0]!=$j("my-app h1")[0]&&$j("#content h1")[0].remove(),Prototype.BrowserFeatures.ElementExtensions){var t=["collapse","dropdown","modal","tooltip","popover","tab"];disablePrototypeJS("show",t),disablePrototypeJS("hide",t)}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/user/profile").map(function(t){return t.json()}).subscribe(function(e){t.user=e,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="",this.resultInfo="Taille maximum de fichier dépassée (2 MB)",$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))},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.getAbsenceInfos=function(){var t=this;this.http.get(this.coreUrl+"rest/currentUser/baskets/absence").map(function(t){return t.json()}).subscribe(function(){t.loading=!1})},t.prototype.updatePassword=function(){var t=this;this.http.put(this.coreUrl+"rest/currentUser/password",this.passwordModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.showPassword=!1,t.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.submitEmailSignature=function(){var t=this;this.mailSignatureModel.htmlBody=tinymce.get("emailSignature").getContent(),this.http.post(this.coreUrl+"rest/currentUser/emailSignature",this.mailSignatureModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.emailSignatures=e.emailSignatures,t.mailSignatureModel={selected:0,htmlBody:"",title:""},tinymce.get("emailSignature").setContent(""),t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.updateEmailSignature=function(){var t=this;this.mailSignatureModel.htmlBody=tinymce.get("emailSignature").getContent();var e=this.user.emailSignatures[this.mailSignatureModel.selected-1].id;this.http.put(this.coreUrl+"rest/currentUser/emailSignature/"+e,this.mailSignatureModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.emailSignatures[t.mailSignatureModel.selected-1].title=e.emailSignature.title,t.user.emailSignatures[t.mailSignatureModel.selected-1].html_body=e.emailSignature.html_body,t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.deleteEmailSignature=function(){var t=this,e=confirm("Voulez-vous vraiment supprimer la signature de mail ?");if(e){var r=this.user.emailSignatures[this.mailSignatureModel.selected-1].id;this.http["delete"](this.coreUrl+"rest/currentUser/emailSignature/"+r).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.emailSignatures=e.emailSignatures,t.mailSignatureModel={selected:0,htmlBody:"",title:""},tinymce.get("emailSignature").setContent(""),t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})}},t.prototype.submitSignature=function(){var t=this;this.http.post(this.coreUrl+"rest/currentUser/signature",this.signatureModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.signatures=e.signatures,t.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.updateSignature=function(){var t=this,e=this.user.signatures[this.selectedSignature].id;this.http.put(this.coreUrl+"rest/currentUser/signature/"+e,{label:this.selectedSignatureLabel}).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.signatures[t.selectedSignature].signature_label=e.signature.signature_label,t.selectedSignature=-1,t.selectedSignatureLabel="",t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.deleteSignature=function(t){var e=this,r=confirm("Voulez-vous vraiment supprimer la signature ?");r&&this.http["delete"](this.coreUrl+"rest/currentUser/signature/"+t).map(function(t){return t.json()}).subscribe(function(t){t.errors?(e.resultInfo=t.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(e.user.signatures=t.signatures,e.resultInfo=t.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.onSubmit=function(){var t=this;this.http.put(this.coreUrl+"rest/user/profile",this.user).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))},function(t){alert(t.statusText)})},t.prototype.absenceModal=function(){createModal(this.user.absence,"modal_redirect","auto","950px"),autocomplete(this.user.countBasketsForAbsence,"index.php?display=true&module=basket&page=autocomplete_users_list")},t}();a=n([i.Component({templateUrl:angularGlobals.profileView,styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","js/angular/app/Css/profile.component.css"]}),o("design:paramtypes",[s.Http,i.NgZone])],a),r.ProfileComponent=a},{"@angular/core":8,"@angular/http":10,"rxjs/add/operator/map":24}],4:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0};Object.defineProperty(r,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http"),a=t("@angular/platform-browser"),u=t("@angular/router");t("rxjs/add/operator/map");var c=function(){function t(t){this.sanitizer=t}return t.prototype.transform=function(t){return this.sanitizer.bypassSecurityTrustResourceUrl(t)},t}();c=n([i.Pipe({name:"safeUrl"}),o("design:paramtypes",[a.DomSanitizer])],c),r.SafeUrlPipe=c;var l=function(){function t(t,e,r,n){var o=this;this.http=t,this.route=e,this.router=r,this.zone=n,this.signatureBook={currentAction:{},consigne:"",documents:[],attachments:[],resList:[],resListIndex:0,lang:{}},this.rightSelectedThumbnail=0,this.leftSelectedThumbnail=0,this.rightViewerLink="",this.leftViewerLink="",this.headerTab=1,this.showTopRightPanel=!1,this.showTopLeftPanel=!1,this.showResLeftPanel=!0,this.showLeftPanel=!0,this.showRightPanel=!0,this.showAttachmentPanel=!1,this.showSignaturesPanel=!1,this.loading=!1,this.loadingSign=!1,this.leftContentWidth="44%",this.rightContentWidth="44%",this.notesViewerLink="",this.visaViewerLink="",this.histViewerLink="",this.linksViewerLink="",this.attachmentsViewerLink="",window.angularSignatureBookComponent={componentAfterAttach:function(t){return o.processAfterAttach(t)},componentAfterAction:function(){return o.processAfterAction()},componentAfterNotes:function(){return o.processAfterNotes()}}}return t.prototype.prepareSignatureBook=function(){$j("#inner_content").remove(),$j("#header").remove(),$j("#viewBasketsTitle").remove(),$j("#homePageWelcomeTitle").remove(),$j("#footer").remove(),$j("#container").width("99%")},t.prototype.ngOnInit=function(){var t=this;this.prepareSignatureBook(),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.route.params.subscribe(function(e){t.resId=+e.resId,t.basketId=e.basketId,lockDocument(t.resId),setInterval(function(){lockDocument(t.resId)},5e4),t.http.get(t.coreUrl+"rest/"+t.basketId+"/signatureBook/"+t.resId).map(function(t){return t.json()}).subscribe(function(e){return e.error?(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,void setTimeout(function(){$j("#rightPanelContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j(".pjSign").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j("#obsVersion").tooltipster({interactive:!0})},0))})})},t.prototype.ngOnDestroy=function(){delete window.angularSignatureBookComponent},t.prototype.processAfterAttach=function(t){var e=this;this.zone.run(function(){return e.refreshAttachments(t)})},t.prototype.processAfterNotes=function(){var t=this;this.zone.run(function(){return t.refreshNotes()})},t.prototype.processAfterAction=function(){for(var t=this,e=-1,r=this.signatureBook.resList.length,n=0;r>n;n++)this.signatureBook.resList[n].res_id==this.resId&&(this.signatureBook.resList[n+1]?e=this.signatureBook.resList[n+1].res_id:n>0&&(e=this.signatureBook.resList[n-1].res_id));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.rightViewerLink=this.signatureBook.attachments[t].viewerLink,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&&this.http.get(this.coreUrl+"rest/"+this.basketId+"/signatureBook/resList").map(function(t){return t.json()}).subscribe(function(t){e.signatureBook.resList=t.resList,e.signatureBook.resList.forEach(function(t,r){t.res_id==e.resId&&(e.signatureBook.resListIndex=r)}),setTimeout(function(){$j("#resListContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j("#resListContent").scrollTop(0),$j("#resListContent").scrollTop($j(".resListContentFrameSelected").offset().top-42)},0)})):(this.rightContentWidth="48%",this.leftContentWidth="48%")):"MIDDLE"==t&&(this.showRightPanel=!this.showRightPanel,this.showResLeftPanel=!1,this.showRightPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#contentLeft").css("border-right","solid 1px")):(this.leftContentWidth="96%",$j("#contentLeft").css("border-right","none")))},t.prototype.displayAttachmentPanel=function(){this.showAttachmentPanel=!this.showAttachmentPanel,this.rightSelectedThumbnail=0,this.signatureBook.attachments[0]&&(this.rightViewerLink=this.signatureBook.attachments[0].viewerLink)},t.prototype.refreshAttachments=function(t){var e=this;"rightContent"==t?this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/incomingMailAttachments").map(function(t){return t.json()}).subscribe(function(t){e.signatureBook.documents=t}):this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/attachments").map(function(t){return t.json()}).subscribe(function(r){var n=0;if("add"==t){var o=!1;r.forEach(function(t,r){o||e.signatureBook.attachments[r]&&t.res_id==e.signatureBook.attachments[r].res_id||(n=r,o=!0)})}else if("edit"==t){var i=e.signatureBook.attachments[e.rightSelectedThumbnail].res_id;r.forEach(function(t,e){t.res_id==i&&(n=e)})}e.signatureBook.attachments=r,"add"==t||"edit"==t?e.changeRightViewer(n):"del"==t&&e.changeRightViewer(0)})},t.prototype.addAttachmentIframe=function(){showAttachmentsForm("index.php?display=true&module=attachments&page=attachments_content&docId="+this.resId)},t.prototype.editAttachmentIframe=function(t){if(t.canModify&&"SIGN"!=t.status){var e;0==t.res_id?e=t.res_id_version:0==t.res_id_version&&(e=t.res_id),modifyAttachmentsForm("index.php?display=true&module=attachments&page=attachments_content&id="+e+"&relation="+t.relation+"&docId="+this.resId,"98%","auto")}},t.prototype.delAttachment=function(t){var e=this;if(t.canDelete){if(this.signatureBook.attachments.length<=1)var r=confirm("Attention, ceci est votre dernière pièce jointe pour ce courrier, voulez-vous vraiment la supprimer ?");else var r=confirm("Voulez-vous vraiment supprimer la pièce jointe ?");if(r){var n;0==t.res_id?n=t.res_id_version:0==t.res_id_version&&(n=t.res_id),this.http.get("index.php?display=true&module=attachments&page=del_attachment&id="+n+"&relation="+t.relation+"&rest=true").subscribe(function(){e.refreshAttachments("del")})}}},t.prototype.refreshNotes=function(){var t=this;this.http.get(this.coreUrl+"rest/res/"+this.resId+"/notes/count").map(function(t){return t.json()}).subscribe(function(e){t.signatureBook.nbNotes=e})},t.prototype.signFile=function(t,e){var r=this;if(!this.loadingSign&&this.signatureBook.canSign){this.loadingSign=!0;var n="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&resIdMaster="+this.resId+"&signatureId="+e.id;0==t.res_id?n+="outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?"&isVersion&isOutgoing&id="+t.res_id_version:"&isVersion&id="+t.res_id_version:0==t.res_id_version&&(n+="outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?"&isOutgoing&id="+t.res_id:"&id="+t.res_id),this.http.get(n,e).map(function(t){return t.json()}).subscribe(function(t){if(0==t.status){r.rightViewerLink="index.php?display=true&module=attachments&page=view_attachment&res_id_master="+r.resId+"&id="+t.new_id+"&isVersion=false",r.signatureBook.attachments[r.rightSelectedThumbnail].viewerLink=r.rightViewerLink,r.signatureBook.attachments[r.rightSelectedThumbnail].status="SIGN",r.signatureBook.attachments[r.rightSelectedThumbnail].idToDl=t.new_id;var e=!0;r.signatureBook.attachments.forEach(function(t){t.sign&&"SIGN"!=t.status&&(e=!1)}),r.signatureBook.resList.length>0&&(r.signatureBook.resList[r.signatureBook.resListIndex].allSigned=e)}else alert(t.error);r.showSignaturesPanel=!1,r.loadingSign=!1})}},t.prototype.unsignFile=function(t){var e,r,n,o=this;0==t.res_id?(r=t.res_id_version,e="res_version_attachments",n="true"):0==t.res_id_version&&(r=t.res_id,e="res_attachments",n="false"),this.http.put(this.coreUrl+"rest/"+e+"/"+r+"/unsign",{},{}).map(function(t){return t.json()}).subscribe(function(e){"OK"==e.status?(o.rightViewerLink="index.php?display=true&module=attachments&page=view_attachment&res_id_master="+o.resId+"&id="+t.viewerNoSignId+"&isVersion="+n,o.signatureBook.attachments[o.rightSelectedThumbnail].viewerLink=o.rightViewerLink,o.signatureBook.attachments[o.rightSelectedThumbnail].status="A_TRA",o.signatureBook.attachments[o.rightSelectedThumbnail].idToDl=r,o.signatureBook.resList.length>0&&(o.signatureBook.resList[o.signatureBook.resListIndex].allSigned=!1)):alert(e.error)})},t.prototype.backToBasket=function(){unlockDocument(this.resId),location.hash="",location.reload()},t.prototype.backToDetails=function(){unlockDocument(this.resId),location.hash="",location.search="?page=details&dir=indexing_searching&id="+this.resId},t.prototype.changeLocation=function(t,e){var r=this;this.http.get(this.coreUrl+"rest/res/"+t+"/lock").map(function(t){return t.json()}).subscribe(function(n){if(n.lock)"view"==e?alert("Courrier verouillé par "+n.lockBy):"action"==e&&(alert("Courrier suivant verouillé par "+n.lockBy),r.backToBasket());else{var o="/"+r.basketId+"/signatureBook/"+t;r.router.navigate([o])}})},t.prototype.validForm=function(){var t=this;""!=$j("#signatureBookActions option:selected")[0].value?(unlockDocument(this.resId),0==this.signatureBook.resList.length&&this.http.get(this.coreUrl+"rest/"+this.basketId+"/signatureBook/resList").map(function(t){return t.json()}).subscribe(function(e){t.signatureBook.resList=e.resList,valid_action_form("empty","index.php?display=true&page=manage_action&module=core",t.signatureBook.currentAction.id,t.resId,"res_letterbox","null","letterbox_coll","page",!1,[$j("#signatureBookActions option:selected")[0].value])})):alert("Aucune action choisie")},t}();l=n([i.Component({templateUrl:angularGlobals["signature-bookView"]}),o("design:paramtypes",[s.Http,u.ActivatedRoute,u.Router,i.NgZone])],l),r.SignatureBookComponent=l},{"@angular/core":8,"@angular/http":10,"@angular/platform-browser":12,"@angular/router":13,"rxjs/add/operator/map":24}],5:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("@angular/platform-browser-dynamic"),o=t("@angular/core"),i=t("./app/app.module");o.enableProdMode(),n.platformBrowserDynamic().bootstrapModule(i.AppModule)},{"./app/app.module":2,"@angular/core":8,"@angular/platform-browser-dynamic":11}],6:[function(e,r,n){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/core"],i):i((o.ng=o.ng||{},o.ng.common=o.ng.common||{}),o.ng.core)}(this,function(t,e){"use strict";function r(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}function n(t){return t.replace(/\/index.html$/,"")}function o(t,e,r){var n="="+t;if(e.indexOf(n)>-1)return n;if(n=r.getPluralCategory(t),e.indexOf(n)>-1)return n;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}function i(t,e){"string"==typeof e&&(e=parseInt(e,10));var r=e,n=r.toString().replace(/^[^.]*\.?/,""),o=Math.floor(Math.abs(r)),i=n.length,s=parseInt(n,10),a=parseInt(r.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0,u=t.split("-")[0].toLowerCase();switch(u){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===r?H.One:H.Other;case"agq":case"bas":case"cu":case"dav":case"dje":case"dua":case"dyo":case"ebu":case"ewo":case"guz":case"kam":case"khq":case"ki":case"kln":case"kok":case"ksf":case"lrc":case"lu":case"luo":case"luy":case"mer":case"mfe":case"mgh":case"mua":case"mzn":case"nmg":case"nus":case"qu":case"rn":case"rw":case"sbp":case"twq":case"vai":case"yav":case"yue":case"zgh":case"ak":case"ln":case"mg":case"pa":case"ti":return r===Math.floor(r)&&r>=0&&1>=r?H.One:H.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===o||1===r?H.One:H.Other;case"ar":return 0===r?H.Zero:1===r?H.One:2===r?H.Two:r%100===Math.floor(r%100)&&r%100>=3&&10>=r%100?H.Few:r%100===Math.floor(r%100)&&r%100>=11&&99>=r%100?H.Many:H.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===o&&0===i?H.One:H.Other;case"be":return r%10===1&&r%100!==11?H.One:r%10===Math.floor(r%10)&&r%10>=2&&4>=r%10&&!(r%100>=12&&14>=r%100)?H.Few:r%10===0||r%10===Math.floor(r%10)&&r%10>=5&&9>=r%10||r%100===Math.floor(r%100)&&r%100>=11&&14>=r%100?H.Many:H.Other;case"br":return r%10===1&&r%100!==11&&r%100!==71&&r%100!==91?H.One:r%10===2&&r%100!==12&&r%100!==72&&r%100!==92?H.Two:r%10===Math.floor(r%10)&&(r%10>=3&&4>=r%10||r%10===9)&&!(r%100>=10&&19>=r%100||r%100>=70&&79>=r%100||r%100>=90&&99>=r%100)?H.Few:0!==r&&r%1e6===0?H.Many:H.Other;case"bs":case"hr":case"sr":return 0===i&&o%10===1&&o%100!==11||s%10===1&&s%100!==11?H.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&4>=o%10&&!(o%100>=12&&14>=o%100)||s%10===Math.floor(s%10)&&s%10>=2&&4>=s%10&&!(s%100>=12&&14>=s%100)?H.Few:H.Other;case"cs":case"sk":return 1===o&&0===i?H.One:o===Math.floor(o)&&o>=2&&4>=o&&0===i?H.Few:0!==i?H.Many:H.Other;case"cy":return 0===r?H.Zero:1===r?H.One:2===r?H.Two:3===r?H.Few:6===r?H.Many:H.Other;case"da":return 1===r||0!==a&&(0===o||1===o)?H.One:H.Other;case"dsb":case"hsb":return 0===i&&o%100===1||s%100===1?H.One:0===i&&o%100===2||s%100===2?H.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&4>=o%100||s%100===Math.floor(s%100)&&s%100>=3&&4>=s%100?H.Few:H.Other;case"ff":case"fr":case"hy":case"kab":return 0===o||1===o?H.One:H.Other;case"fil":return 0===i&&(1===o||2===o||3===o)||0===i&&o%10!==4&&o%10!==6&&o%10!==9||0!==i&&s%10!==4&&s%10!==6&&s%10!==9?H.One:H.Other;case"ga":return 1===r?H.One:2===r?H.Two:r===Math.floor(r)&&r>=3&&6>=r?H.Few:r===Math.floor(r)&&r>=7&&10>=r?H.Many:H.Other;case"gd":return 1===r||11===r?H.One:2===r||12===r?H.Two:r===Math.floor(r)&&(r>=3&&10>=r||r>=13&&19>=r)?H.Few:H.Other;case"gv":return 0===i&&o%10===1?H.One:0===i&&o%10===2?H.Two:0!==i||o%100!==0&&o%100!==20&&o%100!==40&&o%100!==60&&o%100!==80?0!==i?H.Many:H.Other:H.Few;case"he":return 1===o&&0===i?H.One:2===o&&0===i?H.Two:0!==i||r>=0&&10>=r||r%10!==0?H.Other:H.Many;case"is":return 0===a&&o%10===1&&o%100!==11||0!==a?H.One:H.Other;case"ksh":return 0===r?H.Zero:1===r?H.One:H.Other;case"kw":case"naq":case"se":case"smn":return 1===r?H.One:2===r?H.Two:H.Other;case"lag":return 0===r?H.Zero:0!==o&&1!==o||0===r?H.Other:H.One;case"lt":return r%10!==1||r%100>=11&&19>=r%100?r%10===Math.floor(r%10)&&r%10>=2&&9>=r%10&&!(r%100>=11&&19>=r%100)?H.Few:0!==s?H.Many:H.Other:H.One;case"lv":case"prg":return r%10===0||r%100===Math.floor(r%100)&&r%100>=11&&19>=r%100||2===i&&s%100===Math.floor(s%100)&&s%100>=11&&19>=s%100?H.Zero:r%10===1&&r%100!==11||2===i&&s%10===1&&s%100!==11||2!==i&&s%10===1?H.One:H.Other;
 
-case"pt":return r===Math.floor(r)&&r>=0&&2>=r&&2!==r?B.One:B.Other;case"ro":return 1===o&&0===i?B.One:0!==i||0===r||1!==r&&r%100===Math.floor(r%100)&&r%100>=1&&19>=r%100?B.Few:B.Other;case"ru":case"uk":return 0===i&&o%10===1&&o%100!==11?B.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&4>=o%10&&!(o%100>=12&&14>=o%100)?B.Few:0===i&&o%10===0||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&9>=o%10||0===i&&o%100===Math.floor(o%100)&&o%100>=11&&14>=o%100?B.Many:B.Other;case"shi":return 0===o||1===r?B.One:r===Math.floor(r)&&r>=2&&10>=r?B.Few:B.Other;case"si":return 0===r||1===r||0===o&&1===s?B.One:B.Other;case"sl":return 0===i&&o%100===1?B.One:0===i&&o%100===2?B.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&4>=o%100||0!==i?B.Few:B.Other;case"tzm":return r===Math.floor(r)&&r>=0&&1>=r||r===Math.floor(r)&&r>=11&&99>=r?B.One:B.Other;default:return B.Other}}function s(t){return t.name||typeof t}function a(t,r){return Error("InvalidPipeArgument: '"+r+"' for pipe '"+e.ɵstringify(t)+"'")}function u(t){return t?t[0].toUpperCase()+t.substr(1).toLowerCase():t}function c(t){return function(e,r){var n=t(e,r);return 1==n.length?"0"+n:n}}function l(t){return function(e,r){return t(e,r).split(" ")[1]}}function p(t){return function(e,r){return t(e,r).split(" ")[0]}}function h(t,e,r){return new Intl.DateTimeFormat(e,r).format(t).replace(/[\u200e\u200f]/g,"")}function f(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,r){var n=h(t,r,e);return n?n.substring(3):""}}function d(t,e){return t.hour12=e,t}function m(t,e){var r={};return r[t]=2===e?"2-digit":"numeric",r}function y(t,e){var r={};return r[t]=4>e?e>1?"short":"narrow":"long",r}function v(t){return Object.assign.apply(Object,[{}].concat(t))}function g(t){return function(e,r){return h(e,r,t)}}function _(t,e,r){var n=vt[t];if(n)return n(e,r);var o=t,i=_t.get(o);if(!i){i=[];var s=void 0;yt.exec(t);for(var a=t;a;)s=yt.exec(a),s?(i=i.concat(s.slice(1)),a=i.pop()):(i.push(a),a=null);_t.set(o,i)}return i.reduce(function(t,n){var o=gt[n];return t+(o?o(e,r):b(n))},"")}function b(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function w(t,e,r,n,o,i,s){if(void 0===i&&(i=null),void 0===s&&(s=!1),null==r)return null;if(r="string"==typeof r&&E(r)?+r:r,"number"!=typeof r)throw a(t,r);var u=void 0,c=void 0,l=void 0;if(n!==dt.Currency&&(u=1,c=0,l=3),o){var p=o.match(wt);if(null===p)throw new Error(o+" is not a valid digit info for number pipes");null!=p[1]&&(u=C(p[1])),null!=p[3]&&(c=C(p[3])),null!=p[5]&&(l=C(p[5]))}return mt.format(r,e,n,{minimumIntegerDigits:u,minimumFractionDigits:c,maximumFractionDigits:l,currency:i,currencyAsSymbol:s})}function C(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function E(t){return!isNaN(t-parseFloat(t))}function S(t){return null==t||""===t}function x(t){return t instanceof Date&&!isNaN(t.valueOf())}function T(t){var e=new Date(0),r=0,n=0,o=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(r=P(t[9]+t[10]),n=P(t[9]+t[11])),o.call(e,P(t[1]),P(t[2])-1,P(t[3]));var s=P(t[4]||"0")-r,a=P(t[5]||"0")-n,u=P(t[6]||"0"),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return i.call(e,s,a,u,c),e}function P(t){return parseInt(t,10)}function A(t){return t===Nt}function O(t){return t===Dt}function M(t){return t===jt}function R(t){return t===Lt}var k=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},I=function(){function t(){}return t.prototype.getBaseHrefFromDOM=function(){},t.prototype.onPopState=function(){},t.prototype.onHashChange=function(){},t.prototype.pathname=function(){},t.prototype.search=function(){},t.prototype.hash=function(){},t.prototype.replaceState=function(){},t.prototype.pushState=function(){},t.prototype.forward=function(){},t.prototype.back=function(){},t}(),N=new e.InjectionToken("Location Initialized"),D=function(){function t(){}return t.prototype.path=function(){},t.prototype.prepareExternalUrl=function(){},t.prototype.pushState=function(){},t.prototype.replaceState=function(){},t.prototype.forward=function(){},t.prototype.back=function(){},t.prototype.onPopState=function(){},t.prototype.getBaseHref=function(){},t}(),j=new e.InjectionToken("appBaseHref"),L=function(){function t(r){var o=this;this._subject=new e.EventEmitter,this._platformStrategy=r;var i=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(n(i)),this._platformStrategy.onPopState(function(t){o._subject.emit({url:o.path(!0),pop:!0,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,r){return void 0===r&&(r=""),this.path()==this.normalize(e+t.normalizeQueryParams(r))},t.prototype.normalize=function(e){return t.stripTrailingSlash(r(this._baseHref,n(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e){void 0===e&&(e=""),this._platformStrategy.pushState(null,"",t,e)},t.prototype.replaceState=function(t,e){void 0===e&&(e=""),this._platformStrategy.replaceState(null,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,r){return this._subject.subscribe({next:t,error:e,complete:r})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,2==r?t+e.substring(1):1==r?t+e:t+"/"+e},t.stripTrailingSlash=function(t){return t.replace(/\/$/,"")},t}();L.decorators=[{type:e.Injectable}],L.ctorParameters=function(){return[{type:D}]};var V=function(t){function e(e,r){var n=t.call(this)||this;return n._platformLocation=e,n._baseHref="",null!=r&&(n._baseHref=r),n}return k(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=L.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,r,n){var o=this.prepareExternalUrl(r+L.normalizeQueryParams(n));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,r,n){var o=this.prepareExternalUrl(r+L.normalizeQueryParams(n));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(D);V.decorators=[{type:e.Injectable}],V.ctorParameters=function(){return[{type:I},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[j]}]}]};var F=function(t){function e(e,r){var n=t.call(this)||this;if(n._platformLocation=e,null==r&&(r=n._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return n._baseHref=r,n}return k(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return L.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+L.normalizeQueryParams(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?""+e+r:e},e.prototype.pushState=function(t,e,r,n){var o=this.prepareExternalUrl(r+L.normalizeQueryParams(n));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,r,n){var o=this.prepareExternalUrl(r+L.normalizeQueryParams(n));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(D);F.decorators=[{type:e.Injectable}],F.ctorParameters=function(){return[{type:I},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[j]}]}]};var U=function(){function t(){}return t.prototype.getPluralCategory=function(){},t}(),H=function(t){function e(e){var r=t.call(this)||this;return r.locale=e,r}return k(e,t),e.prototype.getPluralCategory=function(t){var e=i(this.locale,t);switch(e){case B.Zero:return"zero";case B.One:return"one";case B.Two:return"two";case B.Few:return"few";case B.Many:return"many";default:return"other"}},e}(U);H.decorators=[{type:e.Injectable}],H.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var B={};B.Zero=0,B.One=1,B.Two=2,B.Few=3,B.Many=4,B.Other=5,B[B.Zero]="Zero",B[B.One]="One",B[B.Two]="Two",B[B.Few]="Few",B[B.Many]="Many",B[B.Other]="Other";var q=function(){function t(t,e,r,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=r,this._renderer=n,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._applyInitialClasses(!0),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(e.ɵisListLikeIterable(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._cleanupClasses=function(t){this._applyClasses(t,!0),this._applyInitialClasses(!1)},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var r=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+e.ɵstringify(t.item));r._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return r._toggleClass(t.item,!1)})},t.prototype._applyInitialClasses=function(t){var e=this;this._initialClasses.forEach(function(r){return e._toggleClass(r,!t)})},t.prototype._applyClasses=function(t,e){var r=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return r._toggleClass(t,!e)}):Object.keys(t).forEach(function(n){null!=t[n]&&r._toggleClass(n,!e)}))},t.prototype._toggleClass=function(t,e){var r=this;t=t.trim(),t&&t.split(/\s+/g).forEach(function(t){r._renderer.setElementClass(r._ngEl.nativeElement,t,!!e)})},t}();q.decorators=[{type:e.Directive,args:[{selector:"[ngClass]"}]}],q.ctorParameters=function(){return[{type:e.IterableDiffers},{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},q.propDecorators={klass:[{type:e.Input,args:["class"]}],ngClass:[{type:e.Input}]};var z=function(){function t(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return t.prototype.ngOnChanges=function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var r=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=r.get(e.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var o=this._moduleRef?this._moduleRef.componentFactoryResolver:r.get(e.ComponentFactoryResolver),i=o.resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,r,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},t}();z.decorators=[{type:e.Directive,args:[{selector:"[ngComponentOutlet]"}]}],z.ctorParameters=function(){return[{type:e.ViewContainerRef}]},z.propDecorators={ngComponentOutlet:[{type:e.Input}],ngComponentOutletInjector:[{type:e.Input}],ngComponentOutletContent:[{type:e.Input}],ngComponentOutletNgModuleFactory:[{type:e.Input}]};var G=function(){function t(t,e,r,n){this.$implicit=t,this.ngForOf=e,this.index=r,this.count=n}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2===0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),W=function(){function t(t,e,r){this._viewContainer=t,this._template=e,this._differs=r,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){e.isDevMode()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+s(e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,r=[];t.forEachOperation(function(t,n,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new G(null,e.ngForOf,-1,-1),o),s=new $(t,i);r.push(s)}else if(null==o)e._viewContainer.remove(n);else{var i=e._viewContainer.get(n);e._viewContainer.move(i,o);var s=new $(t,i);r.push(s)}});for(var n=0;n<r.length;n++)this._perViewChange(r[n].view,r[n].record);for(var n=0,o=this._viewContainer.length;o>n;n++){var i=this._viewContainer.get(n);i.context.index=n,i.context.count=o}t.forEachIdentityChange(function(t){var r=e._viewContainer.get(t.currentIndex);r.context.$implicit=t.item})},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t}();W.decorators=[{type:e.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],W.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:e.IterableDiffers}]},W.propDecorators={ngForOf:[{type:e.Input}],ngForTrackBy:[{type:e.Input}],ngForTemplate:[{type:e.Input}]};var $=function(){function t(t,e){this.record=t,this.view=e}return t}(),K=W,Q=function(){function t(t,e){this._viewContainer=t,this._context=new X,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}();Q.decorators=[{type:e.Directive,args:[{selector:"[ngIf]"}]}],Q.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef}]},Q.propDecorators={ngIf:[{type:e.Input}],ngIfThen:[{type:e.Input}],ngIfElse:[{type:e.Input}]};var X=function(){function t(){this.$implicit=null,this.ngIf=null}return t}(),Z=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}(),Y=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++){var r=this._defaultViews[e];r.enforceState(t)}}},t}();Y.decorators=[{type:e.Directive,args:[{selector:"[ngSwitch]"}]}],Y.ctorParameters=function(){return[]},Y.propDecorators={ngSwitch:[{type:e.Input}]};var J=function(){function t(t,e,r){this.ngSwitch=r,r._addCase(),this._view=new Z(t,e)}return t.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},t}();J.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchCase]"}]}],J.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:Y,decorators:[{type:e.Host}]}]},J.propDecorators={ngSwitchCase:[{type:e.Input}]};var tt=function(){function t(t,e,r){r._addDefault(new Z(t,e))}return t}();tt.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchDefault]"}]}],tt.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:Y,decorators:[{type:e.Host}]}]};var et=function(){function t(t){this._localization=t,this._caseViews={}}return Object.defineProperty(t.prototype,"ngPlural",{set:function(t){this._switchValue=t,this._updateView()},enumerable:!0,configurable:!0}),t.prototype.addCase=function(t,e){this._caseViews[t]=e},t.prototype._updateView=function(){this._clearViews();var t=Object.keys(this._caseViews),e=o(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])},t.prototype._clearViews=function(){this._activeView&&this._activeView.destroy()},t.prototype._activateView=function(t){t&&(this._activeView=t,this._activeView.create())},t}();et.decorators=[{type:e.Directive,args:[{selector:"[ngPlural]"}]}],et.ctorParameters=function(){return[{type:U}]},et.propDecorators={ngPlural:[{type:e.Input}]};var rt=function(){function t(t,e,r,n){this.value=t;var o=!isNaN(Number(t));n.addCase(o?"="+t:t,new Z(r,e))}return t}();rt.decorators=[{type:e.Directive,args:[{selector:"[ngPluralCase]"}]}],rt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Attribute,args:["ngPluralCase"]}]},{type:e.TemplateRef},{type:e.ViewContainerRef},{type:et,decorators:[{type:e.Host}]}]};var nt=function(){function t(t,e,r){this._differs=t,this._ngEl=e,this._renderer=r}return Object.defineProperty(t.prototype,"ngStyle",{set:function(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this;t.forEachRemovedItem(function(t){return e._setStyle(t.key,null)}),t.forEachAddedItem(function(t){return e._setStyle(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._setStyle(t.key,t.currentValue)})},t.prototype._setStyle=function(t,e){var r=t.split("."),n=r[0],o=r[1];e=null!=e&&o?""+e+o:e,this._renderer.setElementStyle(this._ngEl.nativeElement,n,e)},t}();nt.decorators=[{type:e.Directive,args:[{selector:"[ngStyle]"}]}],nt.ctorParameters=function(){return[{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},nt.propDecorators={ngStyle:[{type:e.Input}]};var ot=function(){function t(t){this._viewContainerRef=t}return Object.defineProperty(t.prototype,"ngOutletContext",{set:function(t){this.ngTemplateOutletContext=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))},t}();ot.decorators=[{type:e.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],ot.ctorParameters=function(){return[{type:e.ViewContainerRef}]},ot.propDecorators={ngTemplateOutletContext:[{type:e.Input}],ngTemplateOutlet:[{type:e.Input}],ngOutletContext:[{type:e.Input}]};var it=[q,z,W,Q,ot,nt,Y,J,tt,et,rt],st=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}(),at=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.then(e,function(t){throw t})},t.prototype.dispose=function(){},t.prototype.onDestroy=function(){},t}(),ut=new at,ct=new st,lt=function(){function t(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return t.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},t.prototype.transform=function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,e.WrappedValue.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)},t.prototype._subscribe=function(t){var e=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,function(r){return e._updateLatestValue(t,r)})},t.prototype._selectStrategy=function(r){if(e.ɵisPromise(r))return ut;if(e.ɵisObservable(r))return ct;throw a(t,r)},t.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},t.prototype._updateLatestValue=function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())},t}();lt.decorators=[{type:e.Pipe,args:[{name:"async",pure:!1}]}],lt.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]};var pt=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.toLowerCase()},t}();pt.decorators=[{type:e.Pipe,args:[{name:"lowercase"}]}],pt.ctorParameters=function(){return[]};var ht=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.split(/\b/g).map(function(t){return u(t)}).join("")},t}();ht.decorators=[{type:e.Pipe,args:[{name:"titlecase"}]}],ht.ctorParameters=function(){return[]};var ft=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.toUpperCase()},t}();ft.decorators=[{type:e.Pipe,args:[{name:"uppercase"}]}],ft.ctorParameters=function(){return[]};var dt={};dt.Decimal=0,dt.Percent=1,dt.Currency=2,dt[dt.Decimal]="Decimal",dt[dt.Percent]="Percent",dt[dt.Currency]="Currency";var mt=function(){function t(){}return t.format=function(t,e,r,n){var o=void 0===n?{}:n,i=o.minimumIntegerDigits,s=o.minimumFractionDigits,a=o.maximumFractionDigits,u=o.currency,c=o.currencyAsSymbol,l=void 0===c?!1:c,p={minimumIntegerDigits:i,minimumFractionDigits:s,maximumFractionDigits:a,style:dt[r].toLowerCase()};return r==dt.Currency&&(p.currency="string"==typeof u?u:void 0,p.currencyDisplay=l?"symbol":"code"),new Intl.NumberFormat(e,p).format(t)},t}(),yt=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,vt={yMMMdjms:g(v([m("year",1),y("month",3),m("day",1),m("hour",1),m("minute",1),m("second",1)])),yMdjm:g(v([m("year",1),m("month",1),m("day",1),m("hour",1),m("minute",1)])),yMMMMEEEEd:g(v([m("year",1),y("month",4),y("weekday",4),m("day",1)])),yMMMMd:g(v([m("year",1),y("month",4),m("day",1)])),yMMMd:g(v([m("year",1),y("month",3),m("day",1)])),yMd:g(v([m("year",1),m("month",1),m("day",1)])),jms:g(v([m("hour",1),m("second",1),m("minute",1)])),jm:g(v([m("hour",1),m("minute",1)]))},gt={yyyy:g(m("year",4)),yy:g(m("year",2)),y:g(m("year",1)),MMMM:g(y("month",4)),MMM:g(y("month",3)),MM:g(m("month",2)),M:g(m("month",1)),LLLL:g(y("month",4)),L:g(y("month",1)),dd:g(m("day",2)),d:g(m("day",1)),HH:c(p(g(d(m("hour",2),!1)))),H:p(g(d(m("hour",1),!1))),hh:c(p(g(d(m("hour",2),!0)))),h:p(g(d(m("hour",1),!0))),jj:g(m("hour",2)),j:g(m("hour",1)),mm:c(g(m("minute",2))),m:g(m("minute",1)),ss:c(g(m("second",2))),s:g(m("second",1)),sss:g(m("second",3)),EEEE:g(y("weekday",4)),EEE:g(y("weekday",3)),EE:g(y("weekday",2)),E:g(y("weekday",1)),a:l(g(d(m("hour",1),!0))),Z:f("short"),z:f("long"),ww:g({}),w:g({}),G:g(y("era",1)),GG:g(y("era",2)),GGG:g(y("era",3)),GGGG:g(y("era",4))},_t=new Map,bt=function(){function t(){}return t.format=function(t,e,r){return _(r,t,e)},t}(),wt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Ct=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r){return w(t,this._locale,e,dt.Decimal,r)},t}();Ct.decorators=[{type:e.Pipe,args:[{name:"number"}]}],Ct.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var Et=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r){return w(t,this._locale,e,dt.Percent,r)},t}();Et.decorators=[{type:e.Pipe,args:[{name:"percent"}]}],Et.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var St=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r,n,o){return void 0===r&&(r="USD"),void 0===n&&(n=!1),w(t,this._locale,e,dt.Currency,o,r,n)},t}();St.decorators=[{type:e.Pipe,args:[{name:"currency"}]}],St.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var xt=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Tt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r){void 0===r&&(r="mediumDate");var n;if(S(e)||e!==e)return null;if("string"==typeof e&&(e=e.trim()),x(e))n=e;else if(E(e))n=new Date(parseFloat(e));else if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var o=e.split("-").map(function(t){return parseInt(t,10)}),i=o[0],s=o[1],u=o[2];n=new Date(i,s-1,u)}else n=new Date(e);if(!x(n)){var c=void 0;if("string"!=typeof e||!(c=e.match(xt)))throw a(t,e);n=T(c)}return bt.format(n,this._locale,t._ALIASES[r]||r)},t}();Tt._ALIASES={medium:"yMMMdjms","short":"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},Tt.decorators=[{type:e.Pipe,args:[{name:"date",pure:!0}]}],Tt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var Pt=/#/g,At=function(){function t(t){this._localization=t}return t.prototype.transform=function(e,r){if(null==e)return"";if("object"!=typeof r||null===r)throw a(t,r);var n=o(e,Object.keys(r),this._localization);return r[n].replace(Pt,e.toString())},t}();At.decorators=[{type:e.Pipe,args:[{name:"i18nPlural",pure:!0}]}],At.ctorParameters=function(){return[{type:U}]};var Ot=function(){function t(){}return t.prototype.transform=function(e,r){if(null==e)return"";if("object"!=typeof r||"string"!=typeof e)throw a(t,r);return r.hasOwnProperty(e)?r[e]:r.hasOwnProperty("other")?r.other:""},t}();Ot.decorators=[{type:e.Pipe,args:[{name:"i18nSelect",pure:!0}]}],Ot.ctorParameters=function(){return[]};var Mt=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t}();Mt.decorators=[{type:e.Pipe,args:[{name:"json",pure:!1}]}],Mt.ctorParameters=function(){return[]};var Rt=function(){function t(){}return t.prototype.transform=function(e,r,n){if(null==e)return e;if(!this.supports(e))throw a(t,e);return e.slice(r,n)},t.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},t}();Rt.decorators=[{type:e.Pipe,args:[{name:"slice",pure:!1}]}],Rt.ctorParameters=function(){return[]};var kt=[lt,ft,pt,Mt,Rt,Ct,Et,ht,St,Tt,At,Ot],It=function(){function t(){}return t}();It.decorators=[{type:e.NgModule,args:[{declarations:[it,kt],exports:[it,kt],providers:[{provide:U,useClass:H}]}]}],It.ctorParameters=function(){return[]};var Nt="browser",Dt="server",jt="browserWorkerApp",Lt="browserWorkerUi",Vt=new e.Version("4.1.0");t.NgLocaleLocalization=H,t.NgLocalization=U,t.CommonModule=It,t.NgClass=q,t.NgFor=K,t.NgForOf=W,t.NgForOfContext=G,t.NgIf=Q,t.NgIfContext=X,t.NgPlural=et,t.NgPluralCase=rt,t.NgStyle=nt,t.NgSwitch=Y,t.NgSwitchCase=J,t.NgSwitchDefault=tt,t.NgTemplateOutlet=ot,t.NgComponentOutlet=z,t.AsyncPipe=lt,t.DatePipe=Tt,t.I18nPluralPipe=At,t.I18nSelectPipe=Ot,t.JsonPipe=Mt,t.LowerCasePipe=pt,t.CurrencyPipe=St,t.DecimalPipe=Ct,t.PercentPipe=Et,t.SlicePipe=Rt,t.UpperCasePipe=ft,t.TitleCasePipe=ht,t.ɵPLATFORM_BROWSER_ID=Nt,t.ɵPLATFORM_SERVER_ID=Dt,t.ɵPLATFORM_WORKER_APP_ID=jt,t.ɵPLATFORM_WORKER_UI_ID=Lt,t.isPlatformBrowser=A,t.isPlatformServer=O,t.isPlatformWorkerApp=M,t.isPlatformWorkerUi=R,t.VERSION=Vt,t.PlatformLocation=I,t.LOCATION_INITIALIZED=N,t.LocationStrategy=D,t.APP_BASE_HREF=j,t.HashLocationStrategy=V,t.PathLocationStrategy=F,t.Location=L,t.ɵa=it,t.ɵb=kt,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":8}],7:[function(e,r,n){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/core"],i):i((o.ng=o.ng||{},o.ng.compiler=o.ng.compiler||{}),o.ng.core)}(this,function(t,e){"use strict";function r(t,e,r){void 0===r&&(r=null);var n=[],o=t.visit?function(e){return t.visit(e,r)||e.visit(t,r)}:function(e){return e.visit(t,r)};return e.forEach(function(t){var e=o(t);e&&n.push(e)}),n}function n(t){if(":"!=t[0])return[null,t];var e=t.indexOf(":",1);if(-1==e)throw new Error('Unsupported format "'+t+'" expecting ":namespace:name"');return[t.slice(1,e),t.slice(e+1)]}function o(t){return"ng-container"===n(t)[1]}function i(t){return"ng-content"===n(t)[1]}function s(t){return"ng-template"===n(t)[1]}function a(t){return null===t?null:n(t)[0]}function u(t,e){return t?":"+t+":"+e:e;
+case"mk":return 0===i&&o%10===1||s%10===1?H.One:H.Other;case"mt":return 1===r?H.One:0===r||r%100===Math.floor(r%100)&&r%100>=2&&10>=r%100?H.Few:r%100===Math.floor(r%100)&&r%100>=11&&19>=r%100?H.Many:H.Other;case"pl":return 1===o&&0===i?H.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&4>=o%10&&!(o%100>=12&&14>=o%100)?H.Few:0===i&&1!==o&&o%10===Math.floor(o%10)&&o%10>=0&&1>=o%10||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&9>=o%10||0===i&&o%100===Math.floor(o%100)&&o%100>=12&&14>=o%100?H.Many:H.Other;case"pt":return r===Math.floor(r)&&r>=0&&2>=r&&2!==r?H.One:H.Other;case"ro":return 1===o&&0===i?H.One:0!==i||0===r||1!==r&&r%100===Math.floor(r%100)&&r%100>=1&&19>=r%100?H.Few:H.Other;case"ru":case"uk":return 0===i&&o%10===1&&o%100!==11?H.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&4>=o%10&&!(o%100>=12&&14>=o%100)?H.Few:0===i&&o%10===0||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&9>=o%10||0===i&&o%100===Math.floor(o%100)&&o%100>=11&&14>=o%100?H.Many:H.Other;case"shi":return 0===o||1===r?H.One:r===Math.floor(r)&&r>=2&&10>=r?H.Few:H.Other;case"si":return 0===r||1===r||0===o&&1===s?H.One:H.Other;case"sl":return 0===i&&o%100===1?H.One:0===i&&o%100===2?H.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&4>=o%100||0!==i?H.Few:H.Other;case"tzm":return r===Math.floor(r)&&r>=0&&1>=r||r===Math.floor(r)&&r>=11&&99>=r?H.One:H.Other;default:return H.Other}}function s(t){return t.name||typeof t}function a(t,r){return Error("InvalidPipeArgument: '"+r+"' for pipe '"+e.ɵstringify(t)+"'")}function u(t){return t?t[0].toUpperCase()+t.substr(1).toLowerCase():t}function c(t){return function(e,r){var n=t(e,r);return 1==n.length?"0"+n:n}}function l(t){return function(e,r){return t(e,r).split(" ")[1]}}function p(t){return function(e,r){return t(e,r).split(" ")[0]}}function h(t,e,r){return new Intl.DateTimeFormat(e,r).format(t).replace(/[\u200e\u200f]/g,"")}function f(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,r){var n=h(t,r,e);return n?n.substring(3):""}}function d(t,e){return t.hour12=e,t}function m(t,e){var r={};return r[t]=2===e?"2-digit":"numeric",r}function y(t,e){var r={};return r[t]=4>e?e>1?"short":"narrow":"long",r}function v(t){return Object.assign.apply(Object,[{}].concat(t))}function g(t){return function(e,r){return h(e,r,t)}}function _(t,e,r){var n=vt[t];if(n)return n(e,r);var o=t,i=_t.get(o);if(!i){i=[];var s=void 0;yt.exec(t);for(var a=t;a;)s=yt.exec(a),s?(i=i.concat(s.slice(1)),a=i.pop()):(i.push(a),a=null);_t.set(o,i)}return i.reduce(function(t,n){var o=gt[n];return t+(o?o(e,r):b(n))},"")}function b(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function w(t,e,r,n,o,i,s){if(void 0===i&&(i=null),void 0===s&&(s=!1),null==r)return null;if(r="string"==typeof r&&E(r)?+r:r,"number"!=typeof r)throw a(t,r);var u=void 0,c=void 0,l=void 0;if(n!==dt.Currency&&(u=1,c=0,l=3),o){var p=o.match(wt);if(null===p)throw new Error(o+" is not a valid digit info for number pipes");null!=p[1]&&(u=C(p[1])),null!=p[3]&&(c=C(p[3])),null!=p[5]&&(l=C(p[5]))}return mt.format(r,e,n,{minimumIntegerDigits:u,minimumFractionDigits:c,maximumFractionDigits:l,currency:i,currencyAsSymbol:s})}function C(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function E(t){return!isNaN(t-parseFloat(t))}function S(t){return null==t||""===t}function x(t){return t instanceof Date&&!isNaN(t.valueOf())}function T(t){var e=new Date(0),r=0,n=0,o=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(r=P(t[9]+t[10]),n=P(t[9]+t[11])),o.call(e,P(t[1]),P(t[2])-1,P(t[3]));var s=P(t[4]||"0")-r,a=P(t[5]||"0")-n,u=P(t[6]||"0"),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return i.call(e,s,a,u,c),e}function P(t){return parseInt(t,10)}function A(t){return t===Nt}function O(t){return t===Dt}function M(t){return t===jt}function R(t){return t===Lt}var k=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},I=function(){function t(){}return t.prototype.getBaseHrefFromDOM=function(){},t.prototype.onPopState=function(){},t.prototype.onHashChange=function(){},t.prototype.pathname=function(){},t.prototype.search=function(){},t.prototype.hash=function(){},t.prototype.replaceState=function(){},t.prototype.pushState=function(){},t.prototype.forward=function(){},t.prototype.back=function(){},t}(),N=new e.InjectionToken("Location Initialized"),D=function(){function t(){}return t.prototype.path=function(){},t.prototype.prepareExternalUrl=function(){},t.prototype.pushState=function(){},t.prototype.replaceState=function(){},t.prototype.forward=function(){},t.prototype.back=function(){},t.prototype.onPopState=function(){},t.prototype.getBaseHref=function(){},t}(),j=new e.InjectionToken("appBaseHref"),L=function(){function t(r){var o=this;this._subject=new e.EventEmitter,this._platformStrategy=r;var i=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(n(i)),this._platformStrategy.onPopState(function(t){o._subject.emit({url:o.path(!0),pop:!0,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,r){return void 0===r&&(r=""),this.path()==this.normalize(e+t.normalizeQueryParams(r))},t.prototype.normalize=function(e){return t.stripTrailingSlash(r(this._baseHref,n(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e){void 0===e&&(e=""),this._platformStrategy.pushState(null,"",t,e)},t.prototype.replaceState=function(t,e){void 0===e&&(e=""),this._platformStrategy.replaceState(null,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,r){return this._subject.subscribe({next:t,error:e,complete:r})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,2==r?t+e.substring(1):1==r?t+e:t+"/"+e},t.stripTrailingSlash=function(t){return t.replace(/\/$/,"")},t}();L.decorators=[{type:e.Injectable}],L.ctorParameters=function(){return[{type:D}]};var V=function(t){function e(e,r){var n=t.call(this)||this;return n._platformLocation=e,n._baseHref="",null!=r&&(n._baseHref=r),n}return k(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=L.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,r,n){var o=this.prepareExternalUrl(r+L.normalizeQueryParams(n));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,r,n){var o=this.prepareExternalUrl(r+L.normalizeQueryParams(n));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(D);V.decorators=[{type:e.Injectable}],V.ctorParameters=function(){return[{type:I},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[j]}]}]};var F=function(t){function e(e,r){var n=t.call(this)||this;if(n._platformLocation=e,null==r&&(r=n._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return n._baseHref=r,n}return k(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return L.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+L.normalizeQueryParams(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?""+e+r:e},e.prototype.pushState=function(t,e,r,n){var o=this.prepareExternalUrl(r+L.normalizeQueryParams(n));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,r,n){var o=this.prepareExternalUrl(r+L.normalizeQueryParams(n));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(D);F.decorators=[{type:e.Injectable}],F.ctorParameters=function(){return[{type:I},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[j]}]}]};var U=function(){function t(){}return t.prototype.getPluralCategory=function(){},t}(),B=function(t){function e(e){var r=t.call(this)||this;return r.locale=e,r}return k(e,t),e.prototype.getPluralCategory=function(t){var e=i(this.locale,t);switch(e){case H.Zero:return"zero";case H.One:return"one";case H.Two:return"two";case H.Few:return"few";case H.Many:return"many";default:return"other"}},e}(U);B.decorators=[{type:e.Injectable}],B.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var H={};H.Zero=0,H.One=1,H.Two=2,H.Few=3,H.Many=4,H.Other=5,H[H.Zero]="Zero",H[H.One]="One",H[H.Two]="Two",H[H.Few]="Few",H[H.Many]="Many",H[H.Other]="Other";var q=function(){function t(t,e,r,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=r,this._renderer=n,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._applyInitialClasses(!0),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(e.ɵisListLikeIterable(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._cleanupClasses=function(t){this._applyClasses(t,!0),this._applyInitialClasses(!1)},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var r=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+e.ɵstringify(t.item));r._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return r._toggleClass(t.item,!1)})},t.prototype._applyInitialClasses=function(t){var e=this;this._initialClasses.forEach(function(r){return e._toggleClass(r,!t)})},t.prototype._applyClasses=function(t,e){var r=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return r._toggleClass(t,!e)}):Object.keys(t).forEach(function(n){null!=t[n]&&r._toggleClass(n,!e)}))},t.prototype._toggleClass=function(t,e){var r=this;t=t.trim(),t&&t.split(/\s+/g).forEach(function(t){r._renderer.setElementClass(r._ngEl.nativeElement,t,!!e)})},t}();q.decorators=[{type:e.Directive,args:[{selector:"[ngClass]"}]}],q.ctorParameters=function(){return[{type:e.IterableDiffers},{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},q.propDecorators={klass:[{type:e.Input,args:["class"]}],ngClass:[{type:e.Input}]};var z=function(){function t(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return t.prototype.ngOnChanges=function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var r=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=r.get(e.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var o=this._moduleRef?this._moduleRef.componentFactoryResolver:r.get(e.ComponentFactoryResolver),i=o.resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,r,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},t}();z.decorators=[{type:e.Directive,args:[{selector:"[ngComponentOutlet]"}]}],z.ctorParameters=function(){return[{type:e.ViewContainerRef}]},z.propDecorators={ngComponentOutlet:[{type:e.Input}],ngComponentOutletInjector:[{type:e.Input}],ngComponentOutletContent:[{type:e.Input}],ngComponentOutletNgModuleFactory:[{type:e.Input}]};var G=function(){function t(t,e,r,n){this.$implicit=t,this.ngForOf=e,this.index=r,this.count=n}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2===0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),W=function(){function t(t,e,r){this._viewContainer=t,this._template=e,this._differs=r,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){e.isDevMode()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+s(e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,r=[];t.forEachOperation(function(t,n,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new G(null,e.ngForOf,-1,-1),o),s=new $(t,i);r.push(s)}else if(null==o)e._viewContainer.remove(n);else{var i=e._viewContainer.get(n);e._viewContainer.move(i,o);var s=new $(t,i);r.push(s)}});for(var n=0;n<r.length;n++)this._perViewChange(r[n].view,r[n].record);for(var n=0,o=this._viewContainer.length;o>n;n++){var i=this._viewContainer.get(n);i.context.index=n,i.context.count=o}t.forEachIdentityChange(function(t){var r=e._viewContainer.get(t.currentIndex);r.context.$implicit=t.item})},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t}();W.decorators=[{type:e.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],W.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:e.IterableDiffers}]},W.propDecorators={ngForOf:[{type:e.Input}],ngForTrackBy:[{type:e.Input}],ngForTemplate:[{type:e.Input}]};var $=function(){function t(t,e){this.record=t,this.view=e}return t}(),K=W,Q=function(){function t(t,e){this._viewContainer=t,this._context=new X,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}();Q.decorators=[{type:e.Directive,args:[{selector:"[ngIf]"}]}],Q.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef}]},Q.propDecorators={ngIf:[{type:e.Input}],ngIfThen:[{type:e.Input}],ngIfElse:[{type:e.Input}]};var X=function(){function t(){this.$implicit=null,this.ngIf=null}return t}(),Z=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}(),Y=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++){var r=this._defaultViews[e];r.enforceState(t)}}},t}();Y.decorators=[{type:e.Directive,args:[{selector:"[ngSwitch]"}]}],Y.ctorParameters=function(){return[]},Y.propDecorators={ngSwitch:[{type:e.Input}]};var J=function(){function t(t,e,r){this.ngSwitch=r,r._addCase(),this._view=new Z(t,e)}return t.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},t}();J.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchCase]"}]}],J.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:Y,decorators:[{type:e.Host}]}]},J.propDecorators={ngSwitchCase:[{type:e.Input}]};var tt=function(){function t(t,e,r){r._addDefault(new Z(t,e))}return t}();tt.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchDefault]"}]}],tt.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:Y,decorators:[{type:e.Host}]}]};var et=function(){function t(t){this._localization=t,this._caseViews={}}return Object.defineProperty(t.prototype,"ngPlural",{set:function(t){this._switchValue=t,this._updateView()},enumerable:!0,configurable:!0}),t.prototype.addCase=function(t,e){this._caseViews[t]=e},t.prototype._updateView=function(){this._clearViews();var t=Object.keys(this._caseViews),e=o(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])},t.prototype._clearViews=function(){this._activeView&&this._activeView.destroy()},t.prototype._activateView=function(t){t&&(this._activeView=t,this._activeView.create())},t}();et.decorators=[{type:e.Directive,args:[{selector:"[ngPlural]"}]}],et.ctorParameters=function(){return[{type:U}]},et.propDecorators={ngPlural:[{type:e.Input}]};var rt=function(){function t(t,e,r,n){this.value=t;var o=!isNaN(Number(t));n.addCase(o?"="+t:t,new Z(r,e))}return t}();rt.decorators=[{type:e.Directive,args:[{selector:"[ngPluralCase]"}]}],rt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Attribute,args:["ngPluralCase"]}]},{type:e.TemplateRef},{type:e.ViewContainerRef},{type:et,decorators:[{type:e.Host}]}]};var nt=function(){function t(t,e,r){this._differs=t,this._ngEl=e,this._renderer=r}return Object.defineProperty(t.prototype,"ngStyle",{set:function(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this;t.forEachRemovedItem(function(t){return e._setStyle(t.key,null)}),t.forEachAddedItem(function(t){return e._setStyle(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._setStyle(t.key,t.currentValue)})},t.prototype._setStyle=function(t,e){var r=t.split("."),n=r[0],o=r[1];e=null!=e&&o?""+e+o:e,this._renderer.setElementStyle(this._ngEl.nativeElement,n,e)},t}();nt.decorators=[{type:e.Directive,args:[{selector:"[ngStyle]"}]}],nt.ctorParameters=function(){return[{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},nt.propDecorators={ngStyle:[{type:e.Input}]};var ot=function(){function t(t){this._viewContainerRef=t}return Object.defineProperty(t.prototype,"ngOutletContext",{set:function(t){this.ngTemplateOutletContext=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))},t}();ot.decorators=[{type:e.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],ot.ctorParameters=function(){return[{type:e.ViewContainerRef}]},ot.propDecorators={ngTemplateOutletContext:[{type:e.Input}],ngTemplateOutlet:[{type:e.Input}],ngOutletContext:[{type:e.Input}]};var it=[q,z,W,Q,ot,nt,Y,J,tt,et,rt],st=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}(),at=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.then(e,function(t){throw t})},t.prototype.dispose=function(){},t.prototype.onDestroy=function(){},t}(),ut=new at,ct=new st,lt=function(){function t(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return t.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},t.prototype.transform=function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,e.WrappedValue.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)},t.prototype._subscribe=function(t){var e=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,function(r){return e._updateLatestValue(t,r)})},t.prototype._selectStrategy=function(r){if(e.ɵisPromise(r))return ut;if(e.ɵisObservable(r))return ct;throw a(t,r)},t.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},t.prototype._updateLatestValue=function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())},t}();lt.decorators=[{type:e.Pipe,args:[{name:"async",pure:!1}]}],lt.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]};var pt=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.toLowerCase()},t}();pt.decorators=[{type:e.Pipe,args:[{name:"lowercase"}]}],pt.ctorParameters=function(){return[]};var ht=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.split(/\b/g).map(function(t){return u(t)}).join("")},t}();ht.decorators=[{type:e.Pipe,args:[{name:"titlecase"}]}],ht.ctorParameters=function(){return[]};var ft=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.toUpperCase()},t}();ft.decorators=[{type:e.Pipe,args:[{name:"uppercase"}]}],ft.ctorParameters=function(){return[]};var dt={};dt.Decimal=0,dt.Percent=1,dt.Currency=2,dt[dt.Decimal]="Decimal",dt[dt.Percent]="Percent",dt[dt.Currency]="Currency";var mt=function(){function t(){}return t.format=function(t,e,r,n){var o=void 0===n?{}:n,i=o.minimumIntegerDigits,s=o.minimumFractionDigits,a=o.maximumFractionDigits,u=o.currency,c=o.currencyAsSymbol,l=void 0===c?!1:c,p={minimumIntegerDigits:i,minimumFractionDigits:s,maximumFractionDigits:a,style:dt[r].toLowerCase()};return r==dt.Currency&&(p.currency="string"==typeof u?u:void 0,p.currencyDisplay=l?"symbol":"code"),new Intl.NumberFormat(e,p).format(t)},t}(),yt=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,vt={yMMMdjms:g(v([m("year",1),y("month",3),m("day",1),m("hour",1),m("minute",1),m("second",1)])),yMdjm:g(v([m("year",1),m("month",1),m("day",1),m("hour",1),m("minute",1)])),yMMMMEEEEd:g(v([m("year",1),y("month",4),y("weekday",4),m("day",1)])),yMMMMd:g(v([m("year",1),y("month",4),m("day",1)])),yMMMd:g(v([m("year",1),y("month",3),m("day",1)])),yMd:g(v([m("year",1),m("month",1),m("day",1)])),jms:g(v([m("hour",1),m("second",1),m("minute",1)])),jm:g(v([m("hour",1),m("minute",1)]))},gt={yyyy:g(m("year",4)),yy:g(m("year",2)),y:g(m("year",1)),MMMM:g(y("month",4)),MMM:g(y("month",3)),MM:g(m("month",2)),M:g(m("month",1)),LLLL:g(y("month",4)),L:g(y("month",1)),dd:g(m("day",2)),d:g(m("day",1)),HH:c(p(g(d(m("hour",2),!1)))),H:p(g(d(m("hour",1),!1))),hh:c(p(g(d(m("hour",2),!0)))),h:p(g(d(m("hour",1),!0))),jj:g(m("hour",2)),j:g(m("hour",1)),mm:c(g(m("minute",2))),m:g(m("minute",1)),ss:c(g(m("second",2))),s:g(m("second",1)),sss:g(m("second",3)),EEEE:g(y("weekday",4)),EEE:g(y("weekday",3)),EE:g(y("weekday",2)),E:g(y("weekday",1)),a:l(g(d(m("hour",1),!0))),Z:f("short"),z:f("long"),ww:g({}),w:g({}),G:g(y("era",1)),GG:g(y("era",2)),GGG:g(y("era",3)),GGGG:g(y("era",4))},_t=new Map,bt=function(){function t(){}return t.format=function(t,e,r){return _(r,t,e)},t}(),wt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Ct=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r){return w(t,this._locale,e,dt.Decimal,r)},t}();Ct.decorators=[{type:e.Pipe,args:[{name:"number"}]}],Ct.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var Et=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r){return w(t,this._locale,e,dt.Percent,r)},t}();Et.decorators=[{type:e.Pipe,args:[{name:"percent"}]}],Et.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var St=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r,n,o){return void 0===r&&(r="USD"),void 0===n&&(n=!1),w(t,this._locale,e,dt.Currency,o,r,n)},t}();St.decorators=[{type:e.Pipe,args:[{name:"currency"}]}],St.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var xt=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Tt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r){void 0===r&&(r="mediumDate");var n;if(S(e)||e!==e)return null;if("string"==typeof e&&(e=e.trim()),x(e))n=e;else if(E(e))n=new Date(parseFloat(e));else if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var o=e.split("-").map(function(t){return parseInt(t,10)}),i=o[0],s=o[1],u=o[2];n=new Date(i,s-1,u)}else n=new Date(e);if(!x(n)){var c=void 0;if("string"!=typeof e||!(c=e.match(xt)))throw a(t,e);n=T(c)}return bt.format(n,this._locale,t._ALIASES[r]||r)},t}();Tt._ALIASES={medium:"yMMMdjms","short":"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},Tt.decorators=[{type:e.Pipe,args:[{name:"date",pure:!0}]}],Tt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var Pt=/#/g,At=function(){function t(t){this._localization=t}return t.prototype.transform=function(e,r){if(null==e)return"";if("object"!=typeof r||null===r)throw a(t,r);var n=o(e,Object.keys(r),this._localization);return r[n].replace(Pt,e.toString())},t}();At.decorators=[{type:e.Pipe,args:[{name:"i18nPlural",pure:!0}]}],At.ctorParameters=function(){return[{type:U}]};var Ot=function(){function t(){}return t.prototype.transform=function(e,r){if(null==e)return"";if("object"!=typeof r||"string"!=typeof e)throw a(t,r);return r.hasOwnProperty(e)?r[e]:r.hasOwnProperty("other")?r.other:""},t}();Ot.decorators=[{type:e.Pipe,args:[{name:"i18nSelect",pure:!0}]}],Ot.ctorParameters=function(){return[]};var Mt=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t}();Mt.decorators=[{type:e.Pipe,args:[{name:"json",pure:!1}]}],Mt.ctorParameters=function(){return[]};var Rt=function(){function t(){}return t.prototype.transform=function(e,r,n){if(null==e)return e;if(!this.supports(e))throw a(t,e);return e.slice(r,n)},t.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},t}();Rt.decorators=[{type:e.Pipe,args:[{name:"slice",pure:!1}]}],Rt.ctorParameters=function(){return[]};var kt=[lt,ft,pt,Mt,Rt,Ct,Et,ht,St,Tt,At,Ot],It=function(){function t(){}return t}();It.decorators=[{type:e.NgModule,args:[{declarations:[it,kt],exports:[it,kt],providers:[{provide:U,useClass:B}]}]}],It.ctorParameters=function(){return[]};var Nt="browser",Dt="server",jt="browserWorkerApp",Lt="browserWorkerUi",Vt=new e.Version("4.1.0");t.NgLocaleLocalization=B,t.NgLocalization=U,t.CommonModule=It,t.NgClass=q,t.NgFor=K,t.NgForOf=W,t.NgForOfContext=G,t.NgIf=Q,t.NgIfContext=X,t.NgPlural=et,t.NgPluralCase=rt,t.NgStyle=nt,t.NgSwitch=Y,t.NgSwitchCase=J,t.NgSwitchDefault=tt,t.NgTemplateOutlet=ot,t.NgComponentOutlet=z,t.AsyncPipe=lt,t.DatePipe=Tt,t.I18nPluralPipe=At,t.I18nSelectPipe=Ot,t.JsonPipe=Mt,t.LowerCasePipe=pt,t.CurrencyPipe=St,t.DecimalPipe=Ct,t.PercentPipe=Et,t.SlicePipe=Rt,t.UpperCasePipe=ft,t.TitleCasePipe=ht,t.ɵPLATFORM_BROWSER_ID=Nt,t.ɵPLATFORM_SERVER_ID=Dt,t.ɵPLATFORM_WORKER_APP_ID=jt,t.ɵPLATFORM_WORKER_UI_ID=Lt,t.isPlatformBrowser=A,t.isPlatformServer=O,t.isPlatformWorkerApp=M,t.isPlatformWorkerUi=R,t.VERSION=Vt,t.PlatformLocation=I,t.LOCATION_INITIALIZED=N,t.LocationStrategy=D,t.APP_BASE_HREF=j,t.HashLocationStrategy=V,t.PathLocationStrategy=F,t.Location=L,t.ɵa=it,t.ɵb=kt,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":8}],7:[function(e,r,n){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/core"],i):i((o.ng=o.ng||{},o.ng.compiler=o.ng.compiler||{}),o.ng.core)}(this,function(t,e){"use strict";function r(t,e,r){void 0===r&&(r=null);var n=[],o=t.visit?function(e){return t.visit(e,r)||e.visit(t,r);
 
-}function c(t){return bo[t.toLowerCase()]||wo}function l(t){return t.replace(Ao,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function p(t,e){return f(t,":",e)}function h(t,e){return f(t,".",e)}function f(t,e,r){var n=t.indexOf(e);return-1==n?r:[t.slice(0,n).trim(),t.slice(n+1).trim()]}function d(t,e,r){return Array.isArray(t)?e.visitArray(t,r):b(t)?e.visitStringMap(t,r):null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t?e.visitPrimitive(t,r):e.visitOther(t,r)}function m(t){return null!==t&&void 0!==t}function y(t){return void 0===t?null:t}function v(t){var e=Error(t);return e[Ro]=!0,e}function g(t){return t[Ro]}function _(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function b(t){return"object"==typeof t&&null!==t&&Object.getPrototypeOf(t)===ko}function w(t){for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r);if(n>=55296&&56319>=n&&t.length>r+1){var o=t.charCodeAt(r+1);o>=56320&&57343>=o&&(r++,n=(n-55296<<10)+o-56320+65536)}127>=n?e+=String.fromCharCode(n):2047>=n?e+=String.fromCharCode(n>>6&31|192,63&n|128):65535>=n?e+=String.fromCharCode(n>>12|224,n>>6&63|128,63&n|128):2097151>=n&&(e+=String.fromCharCode(n>>18&7|240,n>>12&63|128,n>>6&63|128,63&n|128))}return e}function C(t){return t.replace(/\W/g,"_")}function E(t){if(!t||!t.reference)return null;var r=t.reference;if(r instanceof mo)return r.name;if(r.__anonymousType)return r.__anonymousType;var n=e.ɵstringify(r);return n.indexOf("(")>=0?(n="anonymous_"+Go++,r.__anonymousType=n):n=C(n),n}function S(t){var r=t.reference;return r instanceof mo?r.filePath:e.ɵreflector.importUri(r)}function x(t,e){return"View_"+E({reference:t})+"_"+e}function T(t){return"RenderType_"+E({reference:t})}function P(t){return"HostView_"+E({reference:t})}function A(t){return"Wrapper_"+E({reference:t})}function O(t){return E({reference:t})+"NgFactory"}function M(t){return null!=t.value?C(t.value):E(t.identifier)}function R(t){return null!=t.identifier?t.identifier.reference:t.value}function k(t,r,n){var o=Eo.parse(r.selector)[0].getMatchingElementTemplate();return Qo.create({isHost:!0,type:{reference:t,diDeps:[],lifecycleHooks:[]},template:new Ko({encapsulation:e.ViewEncapsulation.None,template:o,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null}),exportAs:null,changeDetection:e.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[],componentViewType:n,rendererType:{id:"__Host__",encapsulation:e.ViewEncapsulation.None,styles:[],data:{}},entryComponents:[],componentFactory:null})}function I(t){return t||[]}function N(t){return t.reduce(function(t,e){var r=Array.isArray(e)?N(e):e;return t.concat(r)},[])}function D(t){return t.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function j(t,e,r){var n;return n=r.isInline?e.type.reference instanceof mo?e.type.reference.filePath+"."+e.type.reference.name+".html":E(t)+"/"+E(e.type)+".html":r.templateUrl,D(n)}function L(t,e){var r=t.moduleUrl.split(/\/\\/g),n=r[r.length-1];return D("css/"+e+n+".ngstyle.js")}function V(t){return D(E(t.type)+"/module.ngfactory.js")}function F(t,e){return D(E(t)+"/"+E(e.type)+".ngfactory.js")}function U(t){return t>=Oi&&Ni>=t||t==Ps}function H(t){return t>=rs&&ns>=t}function B(t){return t>=ds&&Es>=t||t>=os&&us>=t}function q(t){return t>=ds&&ys>=t||t>=os&&ss>=t||H(t)}function z(){return function(t){return t}}function G(t,r){if(e.isDevMode()&&null!=r){if(!Array.isArray(r))throw new Error("Expected '"+t+"' to be an array of strings.");for(var n=0;n<r.length;n+=1)if("string"!=typeof r[n])throw new Error("Expected '"+t+"' to be an array of strings.")}}function W(t,r){if(!(null==r||Array.isArray(r)&&2==r.length))throw new Error("Expected '"+t+"' to be an array, [start, end].");if(e.isDevMode()&&null!=r){var n=r[0],o=r[1];Os.forEach(function(t){if(t.test(n)||t.test(o))throw new Error("['"+n+"', '"+o+"'] contains unusable interpolation symbol.")})}}function $(t,e){return new Ds(t,ks.Character,e,String.fromCharCode(e))}function K(t,e){return new Ds(t,ks.Identifier,0,e)}function Q(t,e){return new Ds(t,ks.Keyword,0,e)}function X(t,e){return new Ds(t,ks.Operator,0,e)}function Z(t,e){return new Ds(t,ks.String,0,e)}function Y(t,e){return new Ds(t,ks.Number,e,"")}function J(t,e){return new Ds(t,ks.Error,0,e)}function tt(t){return t>=ds&&Es>=t||t>=os&&us>=t||t==fs||t==Vi}function et(t){if(0==t.length)return!1;var e=new Ls(t);if(!tt(e.peek))return!1;for(e.advance();e.peek!==Ai;){if(!rt(e.peek))return!1;e.advance()}return!0}function rt(t){return B(t)||H(t)||t==fs||t==Vi}function nt(t){return t==ms||t==is}function ot(t){return t==$i||t==Gi}function it(t){return t===Hi||t===ji||t===As}function st(t){switch(t){case vs:return Mi;case ys:return ki;case gs:return Ii;case _s:return Oi;case ws:return Ri;default:return t}}function at(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function ut(t){var e=_(t.start)+"([\\s\\S]*?)"+_(t.end);return new RegExp(e,"g")}function ct(t,e){var r=S(e),n=null!=r?"in "+t+" "+E(e)+" in "+r:"in "+t+" "+E(e),o=new zs("",n);return new Gs(new qs(o,-1,-1,-1),new qs(o,-1,-1,-1))}function lt(t,e,r){void 0===r&&(r=null);var n=[],o=t.visit?function(e){return t.visit(e,r)||e.visit(t,r)}:function(e){return e.visit(t,r)};return e.forEach(function(t){var e=o(t);e&&n.push(e)}),n}function pt(t,e,r,n,o){return void 0===n&&(n=!1),void 0===o&&(o=Rs),new sa(new zs(t,e),r,n,o).tokenize()}function ht(t){var e=t===Ai?"EOF":String.fromCharCode(t);return'Unexpected character "'+e+'"'}function ft(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or  "&#x<hex>;" syntax'}function dt(t){return!U(t)||t===Ai}function mt(t){return U(t)||t===ts||t===Qi||t===Hi||t===ji||t===Ji}function yt(t){return(ds>t||t>Es)&&(os>t||t>us)&&(rs>t||t>ns)}function vt(t){return t==Zi||t==Ai||!q(t)}function gt(t){return t==Zi||t==Ai||!B(t)}function _t(t,e,r){var n=r?t.indexOf(r.start,e)==e:!1;return t.charCodeAt(e)==Ss&&!n}function bt(t){return t===Ji||B(t)}function wt(t,e){return Ct(t)==Ct(e)}function Ct(t){return t>=ds&&Es>=t?t-ds+os:t}function Et(t){for(var e=[],r=void 0,n=0;n<t.length;n++){var o=t[n];r&&r.type==ta.TEXT&&o.type==ta.TEXT?(r.parts[0]+=o.parts[0],r.sourceSpan.end=o.sourceSpan.end):(r=o,e.push(r))}return e}function St(t,e){return t.length>0&&t[t.length-1]===e}function xt(t){var e=new Ea(Ca,t);return function(t,r,n,o){return e.toI18nMessage(t,r,n,o)}}function Tt(t){return t.split(Sa)[2]}function Pt(t,e,r,n){var o=new Ia(r,n);return o.extract(t,e)}function At(t,e,r,n,o){var i=new Ia(n,o);return i.merge(t,e,r)}function Ot(t){return!!(t instanceof Js&&t.value&&t.value.startsWith("i18n"))}function Mt(t){return!!(t instanceof Js&&t.value&&"/i18n"===t.value)}function Rt(t){return t.attrs.find(function(t){return t.name===Ta})||null}function kt(t){if(!t)return{meaning:"",description:"",id:""};var e=t.indexOf(Ma),r=t.indexOf(Oa),n=e>-1?[t.slice(0,e),t.slice(e+2)]:[t,""],o=n[0],i=n[1],s=r>-1?[o.slice(0,r),o.slice(r+1)]:["",o],a=s[0],u=s[1];return{meaning:a,description:u,id:i}}function It(){return Da}function Nt(t){return t.id||Lt(jt(t.nodes).join("")+("["+t.meaning+"]"))}function Dt(t){if(t.id)return t.id;var e=new Fa,r=t.nodes.map(function(t){return t.visit(e,null)});return Ut(r.join(""),t.meaning)}function jt(t){return t.map(function(t){return t.visit(Va,null)})}function Lt(t){var e=w(t),r=Qt(e,Ua.Big),n=8*e.length,o=new Array(80),i=[1732584193,4023233417,2562383102,271733878,3285377520],s=i[0],a=i[1],u=i[2],c=i[3],l=i[4];r[n>>5]|=128<<24-n%32,r[(n+64>>9<<4)+15]=n;for(var p=0;p<r.length;p+=16){for(var h=[s,a,u,c,l],f=h[0],d=h[1],m=h[2],y=h[3],v=h[4],g=0;80>g;g++){o[g]=16>g?r[p+g]:$t(o[g-3]^o[g-8]^o[g-14]^o[g-16],1);var _=Vt(g,a,u,c),b=_[0],C=_[1],E=[$t(s,5),b,l,C,o[g]].reduce(qt);S=[c,u,$t(a,30),s,E],l=S[0],c=S[1],u=S[2],a=S[3],s=S[4]}x=[qt(s,f),qt(a,d),qt(u,m),qt(c,y),qt(l,v)],s=x[0],a=x[1],u=x[2],c=x[3],l=x[4]}return te(Yt([s,a,u,c,l]));var S,x}function Vt(t,e,r,n){return 20>t?[e&r|~e&n,1518500249]:40>t?[e^r^n,1859775393]:60>t?[e&r|e&n|r&n,2400959708]:[e^r^n,3395469782]}function Ft(t){var e=w(t),r=[Ht(e,0),Ht(e,102072)],n=r[0],o=r[1];return 0!=n||0!=o&&1!=o||(n=319790063^n,o=-1801410264^o),[n,o]}function Ut(t,e){var r=Ft(t),n=r[0],o=r[1];if(e){var i=Ft(e),s=i[0],a=i[1];u=Gt(Kt([n,o],1),[s,a]),n=u[0],o=u[1]}return ee(Yt([2147483647&n,o]));var u}function Ht(t,e){var r,n=[2654435769,2654435769],o=n[0],i=n[1],s=t.length;for(r=0;s>=r+12;r+=12)o=qt(o,Zt(t,r,Ua.Little)),i=qt(i,Zt(t,r+4,Ua.Little)),e=qt(e,Zt(t,r+8,Ua.Little)),a=Bt([o,i,e]),o=a[0],i=a[1],e=a[2];return o=qt(o,Zt(t,r,Ua.Little)),i=qt(i,Zt(t,r+4,Ua.Little)),e=qt(e,s),e=qt(e,Zt(t,r+8,Ua.Little)<<8),Bt([o,i,e])[2];var a}function Bt(t){var e=t[0],r=t[1],n=t[2];return e=Wt(e,r),e=Wt(e,n),e^=n>>>13,r=Wt(r,n),r=Wt(r,e),r^=e<<8,n=Wt(n,e),n=Wt(n,r),n^=r>>>13,e=Wt(e,r),e=Wt(e,n),e^=n>>>12,r=Wt(r,n),r=Wt(r,e),r^=e<<16,n=Wt(n,e),n=Wt(n,r),n^=r>>>5,e=Wt(e,r),e=Wt(e,n),e^=n>>>3,r=Wt(r,n),r=Wt(r,e),r^=e<<10,n=Wt(n,e),n=Wt(n,r),n^=r>>>15,[e,r,n]}function qt(t,e){return zt(t,e)[1]}function zt(t,e){var r=(65535&t)+(65535&e),n=(t>>>16)+(e>>>16)+(r>>>16);return[n>>>16,n<<16|65535&r]}function Gt(t,e){var r=t[0],n=t[1],o=e[0],i=e[1],s=zt(n,i),a=s[0],u=s[1],c=qt(qt(r,o),a);return[c,u]}function Wt(t,e){var r=(65535&t)-(65535&e),n=(t>>16)-(e>>16)+(r>>16);return n<<16|65535&r}function $t(t,e){return t<<e|t>>>32-e}function Kt(t,e){var r=t[0],n=t[1],o=r<<e|n>>>32-e,i=n<<e|r>>>32-e;return[o,i]}function Qt(t,e){for(var r=Array(t.length+3>>>2),n=0;n<r.length;n++)r[n]=Zt(t,4*n,e);return r}function Xt(t,e){return e>=t.length?0:255&t.charCodeAt(e)}function Zt(t,e,r){var n=0;if(r===Ua.Big)for(var o=0;4>o;o++)n+=Xt(t,e+o)<<24-8*o;else for(var o=0;4>o;o++)n+=Xt(t,e+o)<<8*o;return n}function Yt(t){return t.reduce(function(t,e){return t+Jt(e)},"")}function Jt(t){for(var e="",r=0;4>r;r++)e+=String.fromCharCode(t>>>8*(3-r)&255);return e}function te(t){for(var e="",r=0;r<t.length;r++){var n=Xt(t,r);e+=(n>>>4).toString(16)+(15&n).toString(16)}return e.toLowerCase()}function ee(t){for(var e="",r="1",n=t.length-1;n>=0;n--)e=re(e,ne(Xt(t,n),r)),r=ne(256,r);return e.split("").reverse().join("")}function re(t,e){for(var r="",n=Math.max(t.length,e.length),o=0,i=0;n>o||i;o++){var s=i+ +(t[o]||0)+ +(e[o]||0);s>=10?(i=1,r+=s-10):(i=0,r+=s)}return r}function ne(t,e){for(var r="",n=e;0!==t;t>>>=1)1&t&&(r=re(r,n)),n=re(n,n);return r}function oe(t){return t.map(function(t){return t.visit(za)}).join("")}function ie(t){return Xa.reduce(function(t,e){return t.replace(e[0],e[1])},t)}function se(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}function ae(t){switch(t.toLowerCase()){case"br":case"b":case"i":case"u":return"fmt";case"img":return"image";case"a":return"link";default:return"other"}}function ue(t){return Dt(t)}function ce(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}function le(t,e,r){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var n=r();return Object.defineProperty(t,e,{enumerable:!0,value:n}),n},set:function(){throw new Error("Could not overwrite an XTB translation")}})}function pe(t){switch(t=(t||"xlf").toLowerCase()){case"xmb":return new Mu;case"xtb":return new ju;case"xliff2":case"xlf2":return new bu;case"xliff":case"xlf":default:return new au}}function he(t,e,r){return void 0===e&&(e=null),void 0===r&&(r="src"),null==e?"@angular/"+t:"@angular/"+t+"/"+r+"/"+e}function fe(t){var r=t.name;return e.ɵreflector.resolveIdentifier(r,t.moduleUrl,null,t.runtime)}function de(t){return{reference:fe(t)}}function me(t){return{identifier:t}}function ye(t){return me(de(t))}function ve(t){var e=new Ku;return new Wu(lt(e,t),e.isExpanded,e.errors)}function ge(t,e){var r=t.cases.map(function(t){-1!=Gu.indexOf(t.value)||t.value.match(/^=\d+$/)||e.push(new $u(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+Gu.join(", ")));var r=ve(t.expression);return e.push.apply(e,r.errors),new Ys("ng-template",[new Zs("ngPluralCase",""+t.value,t.valueSourceSpan)],r.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),n=new Zs("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new Ys("ng-container",[n],r,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function _e(t,e){var r=t.cases.map(function(t){var r=ve(t.expression);return e.push.apply(e,r.errors),"other"===t.value?new Ys("ng-template",[new Zs("ngSwitchDefault","",t.valueSourceSpan)],r.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new Ys("ng-template",[new Zs("ngSwitchCase",""+t.value,t.valueSourceSpan)],r.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),n=new Zs("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new Ys("ng-container",[n],r,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function be(t,e){var r=e.useExisting,n=e.useValue,o=e.deps;return{token:t.token,useClass:t.useClass,useExisting:r,useFactory:t.useFactory,useValue:n,deps:o,multi:t.multi}}function we(t,e){var r=e.eager,n=e.providers;return new lo(t.token,t.multiProvider,t.eager||r,n,t.providerType,t.lifecycleHooks,t.sourceSpan)}function Ce(t,e,r){var n=new Map;t.forEach(function(t){var o={token:{identifier:t.type},useClass:t.type};Ee([o],t.isComponent?po.Component:po.Directive,!0,e,r,n)});var o=t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent}));return o.forEach(function(t){Ee(t.providers,po.PublicService,!1,e,r,n),Ee(t.viewProviders,po.PrivateService,!1,e,r,n)}),n}function Ee(t,e,r,n,o,i){t.forEach(function(t){var s=i.get(R(t.token));if(null!=s&&!!s.multiProvider!=!!t.multi&&o.push(new Qu("Mixing multi and non multi provider is not possible for token "+M(s.token),n)),s)t.multi||(s.providers.length=0),s.providers.push(t);else{var a=t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[],u=!(t.useClass||t.useExisting||t.useFactory);s=new lo(t.token,!!t.multi,r||u,[t],e,a,n),i.set(R(t.token),s)}})}function Se(t){var e=1,r=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return Te(r,{meta:t,queryId:e++})}),r}function xe(t,e){var r=t,n=new Map;return e.forEach(function(t){t.queries&&t.queries.forEach(function(t){return Te(n,{meta:t,queryId:r++})})}),n}function Te(t,e){e.meta.selectors.forEach(function(r){var n=t.get(R(r));n||(n=[],t.set(R(r),n)),n.push(e)})}function Pe(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(nc);return null===e||"package"==e[1]||"asset"==e[1]}function Ae(t,e,r){var n=[],o=r.replace(rc,"").replace(ec,function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=r[1]||r[2];return Pe(i)?(n.push(t.resolve(e,i)),""):r[0]});return new tc(o,n)}function Oe(t){return"@"==t[0]}function Me(t,r,n,o){var i=[];return Eo.parse(r).forEach(function(e){var r=e.element?[e.element]:t.allKnownElementNames(),s=new Set(e.notSelectors.filter(function(t){return t.isElementSelector()}).map(function(t){return t.element})),a=r.filter(function(t){return!s.has(t)});i.push.apply(i,a.map(function(e){return t.securityContext(e,n,o)}))}),0===i.length?[e.SecurityContext.NONE]:Array.from(new Set(i)).sort()}function Re(t){var e=null,r=null,n=null,o=!1,s=null;t.attrs.forEach(function(t){var i=t.name.toLowerCase();i==fc?e=t.value:i==yc?r=t.value:i==mc?n=t.value:t.name==bc?o=!0:t.name==wc&&t.value.length>0&&(s=t.value)}),e=ke(e);var a=t.name.toLowerCase(),u=Cc.OTHER;return i(a)?u=Cc.NG_CONTENT:a==gc?u=Cc.STYLE:a==_c?u=Cc.SCRIPT:a==dc&&n==vc&&(u=Cc.STYLESHEET),new Ec(u,e,r,o,s)}function ke(t){return null===t||0===t.length?"*":t}function Ie(t){return function(e){return-1!==t.indexOf(e.msg)?(Bc[e.msg]=(Bc[e.msg]||0)+1,Bc[e.msg]<=1):!0}}function Ne(t){return t.trim().split(/\s+/g)}function De(t,e){var r=new Eo,o=n(t)[1];r.setElement(o);for(var i=0;i<e.length;i++){var s=e[i][0],a=n(s)[1],u=e[i][1];if(r.addAttribute(a,u),s.toLowerCase()==Vc){var c=Ne(u);c.forEach(function(t){return r.addClassName(t)})}}return r}function je(t){return t instanceof Ks&&0==t.value.trim().length}function Le(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 Ve(t){return t instanceof Si&&(t=t.ast),t instanceof ii}function Fe(t,e,r){if(s(t.name))return!0;var o=n(t.name)[1];return o.toLowerCase()===Dc&&e&&o.toLowerCase()===Dc?(r(Uc,t.sourceSpan),!0):!1}function Ue(){return new el}function He(){return new el(".")}function Be(t){var e=ze(t);return e&&e[nl.Scheme]||""}function qe(t,e,r,n,o,i,s){var a=[];return null!=t&&a.push(t+":"),null!=r&&(a.push("//"),null!=e&&a.push(e+"@"),a.push(r),null!=n&&a.push(":"+n)),null!=o&&a.push(o),null!=i&&a.push("?"+i),null!=s&&a.push("#"+s),a.join("")}function ze(t){return t.match(rl)}function Ge(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",r="/"===t[t.length-1]?"/":"",n=t.split("/"),o=[],i=0,s=0;s<n.length;s++){var a=n[s];switch(a){case"":case".":break;case"..":o.length>0?o.pop():i++;break;default:o.push(a)}}if(""==e){for(;i-->0;)o.unshift("..");0===o.length&&o.push(".")}return e+o.join("/")+r}function We(t){var e=t[nl.Path];return e=null==e?"":Ge(e),t[nl.Path]=e,qe(t[nl.Scheme],t[nl.UserInfo],t[nl.Domain],t[nl.Port],e,t[nl.QueryData],t[nl.Fragment])}function $e(t,e){var r=ze(encodeURI(e)),n=ze(t);if(null!=r[nl.Scheme])return We(r);r[nl.Scheme]=n[nl.Scheme];for(var o=nl.Scheme;o<=nl.Port;o++)null==r[o]&&(r[o]=n[o]);if("/"==r[nl.Path][0])return We(r);var i=n[nl.Path];null==i&&(i="/");var s=i.lastIndexOf("/");return i=i.substring(0,s+1)+r[nl.Path],r[nl.Path]=i,We(r)}function Ke(t){return t instanceof e.Directive}function Qe(t,e){for(var r=t.length-1;r>=0;r--)if(e(t[r]))return t[r];return null}function Xe(t){var e=Je(t);return e[0]+".ngfactory"+e[1]}function Ze(t){return t.replace(cl,".")}function Ye(t){return cl.test(t)}function Je(t){if(t.endsWith(".d.ts"))return[t.slice(0,-5),".ts"];var e=t.lastIndexOf(".");return-1!==e?[t.substring(0,e),t.substring(e)]:[t,""]}function tr(t){var e=t.replace(ul,"");return e+".ngsummary.json"}function er(t,r){return e.ɵreflector.hasLifecycleHook(r,rr(t))}function rr(t){switch(t){case e.ɵLifecycleHooks.OnInit:return"ngOnInit";case e.ɵLifecycleHooks.OnDestroy:return"ngOnDestroy";case e.ɵLifecycleHooks.DoCheck:return"ngDoCheck";case e.ɵLifecycleHooks.OnChanges:return"ngOnChanges";case e.ɵLifecycleHooks.AfterContentInit:return"ngAfterContentInit";case e.ɵLifecycleHooks.AfterContentChecked:return"ngAfterContentChecked";case e.ɵLifecycleHooks.AfterViewInit:return"ngAfterViewInit";case e.ɵLifecycleHooks.AfterViewChecked:return"ngAfterViewChecked"}}function nr(t){return t instanceof e.NgModule}function or(t){return t instanceof e.Pipe}function ir(t,r){if(void 0===r&&(r=[]),t)for(var n=0;n<t.length;n++){var o=e.resolveForwardRef(t[n]);Array.isArray(o)?ir(o,r):r.push(o)}return r}function sr(t){return t?Array.from(new Set(t)):[]}function ar(t){return sr(ir(t))}function ur(t){return t instanceof mo||t instanceof e.Type}function cr(t,e,r){if(e instanceof mo)return t.resourceUri(e);var n=r.moduleId;if("string"==typeof n){var o=Be(n);return o?n:"package:"+n+Po}if(null!==n&&void 0!==n)throw v('moduleId should be a string in "'+pr(e)+"\". See https://goo.gl/wIDDiL for more information.\nIf you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.");return t.importUri(e)}function lr(t,e){d(t,new ml,e)}function pr(t){return t instanceof mo?t.name+" in "+t.filePath:e.ɵstringify(t)}function hr(t){var r=Error("Can't compile synchronously as "+e.ɵstringify(t)+" is still being loaded!");return r[e.ɵERROR_COMPONENT_TYPE]=t,r}function fr(t){var e=new vp;return e.visitAllStatements(t,null),e.varNames}function dr(t,e){if(!e)return t;var r=new gp(e);return t.visitStatement(r,null)}function mr(t,e){if(!e)return t;var r=new gp(e);return t.visitExpression(r,null)}function yr(t,e,r){return new Ol(t,e,r)}function vr(t,e,r){return void 0===e&&(e=null),new Vl(t,null,e,r)}function gr(t,e,r){return void 0===e&&(e=null),void 0===r&&(r=null),null!=t?_r(vr(t,e,null),r):null}function _r(t,e){return void 0===e&&(e=null),null!=t?new bl(t,e):null}function br(t,e,r){return new $l(t,e,r)}function wr(t,e,r){return void 0===e&&(e=null),void 0===r&&(r=!1),new Ql(t.map(function(t){return new Kl(t[0],t[1],r)}),e,null)}function Cr(t,e){return new Ul(t,e)}function Er(t,e,r,n){return new ql(t,e,r,n)}function Sr(t,e,r){return new Ll(t,e,r)}function xr(t){var e=t.parentArgs||[],r=t.parent?[Yl.callFn(e).toStmt()]:[],n=Tr(Array.isArray(t.builders)?t.builders:[t.builders]),o=new cp(null,t.ctorParams||[],r.concat(n.ctorStmts));return new pp(t.name,t.parent||null,n.fields,n.getters,o,n.methods,t.modifiers||[],t.sourceSpan)}function Tr(t){return{fields:[].concat.apply([],t.map(function(t){return t.fields||[]})),methods:[].concat.apply([],t.map(function(t){return t.methods||[]})),getters:[].concat.apply([],t.map(function(t){return t.getters||[]})),ctorStmts:[].concat.apply([],t.map(function(t){return t.ctorStmts||[]}))}}function Pr(t,e){return void 0===e&&(e=null),d(t,new bp,e)}function Ar(t){return null!=t.value?Sr(t.value):vr(t.identifier)}function Or(t){var e="";t=w(t);for(var r=0;r<t.length;){var n=t.charCodeAt(r++),o=t.charCodeAt(r++),i=t.charCodeAt(r++);e+=Rr(n>>2),e+=Rr((3&n)<<4|(isNaN(o)?0:o>>4)),e+=isNaN(o)?"=":Rr((15&o)<<2|i>>6),e+=isNaN(o)||isNaN(i)?"=":Rr(63&i)}return e}function Mr(t){t=0>t?(-t<<1)+1:t<<1;var e="";do{var r=31&t;t>>=5,t>0&&(r=32|r),e+=Rr(r)}while(t>0);return e}function Rr(t){if(0>t||t>=64)throw new Error("Can only encode value in the range [0, 63]");return Mp[t]}function kr(t,e,r){if(void 0===r&&(r=!0),null==t)return null;var n=t.replace(Rp,function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return"$"==t[0]?e?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":"\\"+t[0]}),o=r||!kp.test(n);return o?"'"+n+"'":n}function Ir(t){for(var e="",r=0;t>r;r++)e+=Ip;return e}function Nr(t){var e=new Hp(Fp,{fileNameToModuleName:function(t){return t},getImportAs:function(){return null},getTypeArity:function(){return null}}),r=Lp.createRoot([]),n=Array.isArray(t)?t:[t];return n.forEach(function(t){if(t instanceof rp)t.visitStatement(e,r);else if(t instanceof Pl)t.visitExpression(e,r);else{if(!(t instanceof vl))throw new Error("Don't know how to print debug info for "+t);t.visitType(e,r)}}),r.toSource()}function Dr(t,e){for(var r=0,n=e;r<n.length;r++){var o=n[r];Bp[o.toLowerCase()]=t}}function jr(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}function Lr(t){return t.replace(dh,"")}function Vr(t){var e=t.match(mh);return e?e[0]:""}function Fr(t,e){var r=Ur(t),n=0;return r.escapedString.replace(yh,function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var i=t[2],s="",a=t[4],u="";a&&a.startsWith("{"+bh)&&(s=r.blocks[n++],a=a.substring(bh.length+1),u="{");var c=e(new wh(i,s));return""+t[1]+c.selector+t[3]+u+c.content+a})}function Ur(t){for(var e=t.split(vh),r=[],n=[],o=0,i=[],s=0;s<e.length;s++){var a=e[s];a==_h&&o--,o>0?i.push(a):(i.length>0&&(n.push(i.join("")),r.push(bh),i=[]),r.push(a)),a==gh&&o++}return i.length>0&&(n.push(i.join("")),r.push(bh)),new Ch(r.join(""),n)}function Hr(t){var e="styles";return t&&(e+="_"+E(t.type)),e}function Br(t,e,r,n){t||(t=new jh);var o=qr({createLiteralArrayConverter:function(){return function(t){return br(t)}},createLiteralMapConverter:function(t){return function(e){return wr(t.map(function(t,r){return[t,e[r]]}))}},createPipeConverter:function(t){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: "+t)}},r),i=new Dh(t,e,n),s=[];Yr(o.visit(i,Ih.Statement),s),Kr(i.temporaryCount,n,s);var a=s.length-1,u=null;if(a>=0){var c=s[a],l=en(c);l&&(u=tn(n),s[a]=u.set(l.cast(El).notIdentical(Sr(!1))).toDeclStmt(null,[ep.Final]))}return new Rh(s,u)}function qr(t,e){return Gr(t,e)}function zr(t,e,r,n){t||(t=new jh);var o=Jr(n),i=[],s=new Dh(t,e,n),a=r.visit(s,Ih.Expression);if(s.temporaryCount)for(var u=0;u<s.temporaryCount;u++)i.push($r(n,u));return i.push(o.set(a).toDeclStmt(null,[ep.Final])),new kh(i,o)}function Gr(t,e){var r=new Nh(t);return e.visit(r)}function Wr(t,e){return"tmp_"+t+"_"+e}function $r(t,e){return new np(Wr(t,e),Jl)}function Kr(t,e,r){for(var n=t-1;n>=0;n--)r.unshift($r(e,n))}function Qr(t,e){if(t!==Ih.Statement)throw new Error("Expected a statement, but saw "+e)}function Xr(t,e){if(t!==Ih.Expression)throw new Error("Expected an expression, but saw "+e)}function Zr(t,e){return t===Ih.Statement?e.toStmt():e}function Yr(t,e){Array.isArray(t)?t.forEach(function(t){return Yr(t,e)}):e.push(t)}function Jr(t){return yr("currVal_"+t)}function tn(t){return yr("pd_"+t)}function en(t){return t instanceof ip?t.expr:t instanceof sp?t.value:null}function rn(t){return t.multiProvider?nn(t.providers):on(t.providerType,t.providers[0])}function nn(t){function e(t,e){return e.map(function(e,o){var i="p"+t+"_"+o;return n.push(new Bl(i,El)),r.push(an(e)),yr(i)})}var r=[],n=[],o=t.map(function(t,r){var n;if(t.useClass){var o=e(r,t.deps||t.useClass.diDeps);n=vr(t.useClass).instantiate(o)}else if(t.useFactory){var o=e(r,t.deps||t.useFactory.diDeps);n=vr(t.useFactory).callFn(o)}else if(t.useExisting){var o=e(r,[{token:t.useExisting}]);n=o[0]}else n=Pr(t.useValue);return n}),i=Er(n,[new sp(br(o))],Sl);return{providerExpr:i,flags:512,depsExpr:br(r)}}function on(t,e){var r,n,o;t===po.Directive||t===po.Component?(r=vr(e.useClass),n=8192,o=e.deps||e.useClass.diDeps):e.useClass?(r=vr(e.useClass),n=256,o=e.deps||e.useClass.diDeps):e.useFactory?(r=vr(e.useFactory),n=512,o=e.deps||e.useFactory.diDeps):e.useExisting?(r=Jl,n=1024,o=[{token:e.useExisting}]):(r=Pr(e.useValue),n=128,o=[]);var i=br(o.map(function(t){return an(t)}));return{providerExpr:r,flags:n,depsExpr:i}}function sn(t){return t.identifier?vr(t.identifier):Sr(t.value)}function an(t){var e=t.isValue?Pr(t.value):sn(t.token),r=0;return t.isSkipSelf&&(r|=1),t.isOptional&&(r|=2),t.isValue&&(r|=8),0===r?e:br([Sr(r),e])}function un(t){var e=t[t.length-1];return e instanceof ao?e.hasViewContainer:e instanceof so?o(e.name)&&e.children.length?un(e.children):e.hasViewContainer:e instanceof ho}function cn(t){var r=0;switch(t){case e.ɵLifecycleHooks.AfterContentChecked:r=1048576;break;case e.ɵLifecycleHooks.AfterContentInit:r=524288;break;case e.ɵLifecycleHooks.AfterViewChecked:r=4194304;break;case e.ɵLifecycleHooks.AfterViewInit:r=2097152;break;case e.ɵLifecycleHooks.DoCheck:r=131072;break;case e.ɵLifecycleHooks.OnChanges:r=262144;break;case e.ɵLifecycleHooks.OnDestroy:r=65536;break;case e.ɵLifecycleHooks.OnInit:r=32768}return r}function ln(t,e){switch(t.type){case fo.Attribute:return br([Sr(1),Sr(t.name),Sr(t.securityContext)]);case fo.Property:return br([Sr(8),Sr(t.name),Sr(t.securityContext)]);case fo.Animation:var r=8|(e&&e.directive.isComponent?32:16);return br([Sr(r),Sr("@"+t.name),Sr(t.securityContext)]);case fo.Class:return br([Sr(2),Sr(t.name),Jl]);case fo.Style:return br([Sr(4),Sr(t.name),Sr(t.unit)])}}function pn(t){var e=Object.create(null);return t.attrs.forEach(function(t){e[t.name]=t.value}),t.directives.forEach(function(t){Object.keys(t.directive.hostAttributes).forEach(function(r){var n=t.directive.hostAttributes[r],o=e[r];e[r]=null!=o?hn(r,o,n):n})}),br(Object.keys(e).sort().map(function(t){return br([Sr(t),Sr(e[t])])}))}function hn(t,e,r){return t==Vh||t==Fh?e+" "+r:r}function fn(t,e){return Gh.callFn(e.length>10?[zh,Sr(t),Sr(1),br(e)]:[zh,Sr(t),Sr(0)].concat(e))}function dn(t,e,r){return vr(de(zu.unwrapValue)).callFn([zh,Sr(t),Sr(e),r])}function mn(t,e){return void 0===e&&(e=new Map),t.forEach(function(t){var r=new Set,n=new Set,o=void 0;t instanceof so?(mn(t.children,e),t.children.forEach(function(t){var o=e.get(t);o.staticQueryIds.forEach(function(t){return r.add(t)}),o.dynamicQueryIds.forEach(function(t){return n.add(t)})}),o=t.queryMatches):t instanceof ao&&(mn(t.children,e),t.children.forEach(function(t){var r=e.get(t);r.staticQueryIds.forEach(function(t){return n.add(t)}),r.dynamicQueryIds.forEach(function(t){return n.add(t)})}),o=t.queryMatches),o&&o.forEach(function(t){return r.add(t.queryId)}),n.forEach(function(t){return r["delete"](t)}),e.set(t,{staticQueryIds:r,dynamicQueryIds:n})}),e}function yn(t){var e=new Set,r=new Set;return Array.from(t.values()).forEach(function(t){t.staticQueryIds.forEach(function(t){return e.add(t)}),t.dynamicQueryIds.forEach(function(t){return r.add(t)})}),r.forEach(function(t){return e["delete"](t)}),{staticQueryIds:e,dynamicQueryIds:r}}function vn(t){var e=t.find(function(t){return t.directive.isComponent});if(e&&e.directive.entryComponents.length){var r=e.directive.entryComponents.map(function(t){return vr({reference:t.componentFactory})}),n=ye(zu.ComponentFactoryResolver),o={diDeps:[{isValue:!0,value:br(r)},{token:n,isSkipSelf:!0,isOptional:!0},{token:ye(zu.NgModuleRef)}],lifecycleHooks:[],reference:fe(zu.CodegenComponentFactoryResolver)};return new lo(n,!1,!0,[{token:n,multi:!1,useClass:o}],po.PrivateService,[],e.sourceSpan)}return null}function gn(t,e){return t.isAnimation?{name:"@"+t.name+"."+t.phase,target:e&&e.directive.isComponent?"component":null}:t}function _n(t,e,r){var n=0;return n|=!r||!t.staticQueryIds.has(e)&&t.dynamicQueryIds.has(e)?268435456:134217728}function bn(t,e,r,n){var o=new Zh(e,t);r.forEach(function(t){return o.addOrMergeSummary({symbol:t.symbol,metadata:t.metadata})});for(var i=0;i<o.symbols.length;i++){var s=o.symbols[i];if(t.isLibraryFile(s.filePath)){var a=t.resolveSummary(s);if(!a){var u=e.resolveSymbol(s);u&&(a={symbol:u.symbol,metadata:u.metadata})}a&&o.addOrMergeSummary(a)}}return n.forEach(function(e){if(o.addOrMergeSummary({symbol:e.type.reference,metadata:null,type:e}),e.summaryKind===Wo.NgModule){var r=e;r.exportedDirectives.concat(r.exportedPipes).forEach(function(e){var r=e.reference;if(t.isLibraryFile(r.filePath)){var n=t.resolveSummary(r);n&&o.addOrMergeSummary(n)}})}}),o.serialize()}function wn(t,e){var r=new Yh(t);return r.deserialize(e)}function Cn(t,e,r){return e.dependencies.forEach(function(e){e.valuePlaceholder.reference=t.getStaticSymbol(En(e.moduleUrl,e.isShimmed,r),e.name)}),e.statements}function En(t,e,r){return""+t+(e?".shim":"")+".ngstyle"+r}function Sn(t){if(!t.isComponent)throw new Error("Could not compile '"+E(t.type)+"' because it is not a component.")}function xn(t,e,r){var n=On(t,e,r),o=n.ngModules,i=n.symbolsMissingModule;return Pn(t,o,i,r)}function Tn(t,e,r){var n=xn(t,e,r);if(n.symbolsMissingModule&&n.symbolsMissingModule.length){var o=n.symbolsMissingModule.map(function(t){return"Cannot determine the module for class "+t.name+" in "+t.filePath+"! Add "+t.name+" to the NgModule to fix it."});throw v(o.join("\n"))}return n}function Pn(t,e,r,n){var o=new Map;e.forEach(function(t){return o.set(t.type.reference,t)});var i=new Map,s=new Map,a=new Map,u=new Map,c=new Map,l=new Set;t.forEach(function(t){var e=t.filePath;l.add(e),n.isInjectable(t)&&c.set(e,(c.get(e)||[]).concat(t))}),e.forEach(function(t){var e=t.type.reference.filePath;l.add(e),s.set(e,(s.get(e)||[]).concat(t.type.reference)),t.declaredDirectives.forEach(function(e){var r=e.reference.filePath;l.add(r),a.set(r,(a.get(r)||[]).concat(e.reference)),i.set(e.reference,t)}),t.declaredPipes.forEach(function(e){var r=e.reference.filePath;l.add(r),u.set(r,(u.get(r)||[]).concat(e.reference)),i.set(e.reference,t)})});var p=[];return l.forEach(function(t){var e=a.get(t)||[],r=u.get(t)||[],n=s.get(t)||[],o=c.get(t)||[];p.push({srcUrl:t,directives:e,pipes:r,ngModules:n,injectables:o})}),{ngModuleByPipeOrDirective:i,files:p,ngModules:e,symbolsMissingModule:r}}function An(t,e,r){var n=[];return e.filter(function(t){
-return r.isSourceFile(t)}).forEach(function(e){t.getSymbolsOf(e).forEach(function(e){var r=t.resolveSymbol(e),o=r.metadata;o&&"error"!=o.__symbolic&&n.push(r.symbol)})}),n}function On(t,e,r){var n=new Map,o=[],i=new Set,s=function(t){if(n.has(t)||!e.isSourceFile(t.filePath))return!1;var o=r.getNgModuleMetadata(t,!1);return o&&(n.set(o.type.reference,o),o.declaredDirectives.forEach(function(t){return i.add(t.reference)}),o.declaredPipes.forEach(function(t){return i.add(t.reference)}),o.transitiveModule.modules.forEach(function(t){return s(t.reference)})),!!o};t.forEach(function(t){s(t)||!r.isDirective(t)&&!r.isPipe(t)||o.push(t)});var a=o.filter(function(t){return!i.has(t)});return{ngModules:Array.from(n.values()),symbolsMissingModule:a}}function Mn(t){return"object"==typeof t&&t.name&&t.filePath}function Rn(t){return t&&"ignore"==t.__symbolic}function kn(t){switch(t.message){case"Reference to non-exported class":if(t.context&&t.context.className)return"Reference to a non-exported class "+t.context.className+". Consider exporting the class";break;case"Variable not initialized":return"Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler";case"Destructuring not supported":return"Referencing an exported destructured variable or constant is not supported by the template compiler. Consider simplifying this to avoid destructuring";case"Could not resolve type":if(t.context&&t.context.typeName)return"Could not resolve type "+t.context.typeName;break;case"Function call not supported":var e=t.context&&t.context.name?"Calling function '"+t.context.name+"', f":"F";return e+"unction calls are not supported. Consider replacing the function or lambda with a reference to an exported function";case"Reference to a local symbol":if(t.context&&t.context.name)return"Reference to a local (non-exported) symbol '"+t.context.name+"'. Consider exporting the symbol"}return t.message}function In(t){return"Error encountered resolving symbol values statically. "+kn(t)}function Nn(t,e){if(!t)return{};var r={};return Object.keys(t).forEach(function(n){var o=e(t[n],n);Rn(o)||(rf.test(n)?Object.defineProperty(r,n,{enumerable:!1,configurable:!0,value:o}):r[n]=o)}),r}function Dn(t){return null===t||"function"!=typeof t&&"object"!=typeof t}function jn(t,e,r,n){var o=new Error(t);return o.fileName=e,o.line=r,o.column=n,o}function Ln(t){return t.startsWith("___")?t.substr(1):t}function Vn(t,r){var n=r.translations||"",o=He(),i=new yo,s=new pf(t,i),a=new lf(t,i,s),u=new of(s,a);tf.install(u);var c=new e.ɵConsole,l=new Bu(new Fu,n,r.i18nFormat,e.MissingTranslationStrategy.Warning,c),p=new ti({defaultEncapsulation:e.ViewEncapsulation.Emulated,useJit:!1,enableLegacyTemplate:r.enableLegacyTemplate!==!1}),h=new ol({get:function(e){return t.loadResource(e)}},o,l,p),f=new Us(new Ns),d=new Qp,m=new Wc(p,f,d,l,c,[]),y=new dl(p,new ll(u),new al(u),new pl(u),s,d,h,c,i,u),v={getImportAs:function(t){return a.getImportAs(t)},fileNameToModuleName:function(e,r){return t.fileNameToModuleName(e,r)},getTypeArity:function(t){return a.getTypeArity(t)}},g=new Bh(p,d),_=new Jh(p,t,y,m,new Oh(o),g,new Ep,new Up(v),s,r.locale||null,r.i18nFormat||null,r.genFilePreamble||null,a);return{compiler:_,reflector:u}}function Fn(t,e){var r=t.concat([new sp(br(e.map(function(t){return yr(t)})))]),n=new hf(null,null,null,new Map),o=new df,i=o.visitAllStatements(r,n);return null!=i?i.value:null}function Un(t,e,r,n,o){for(var i=n.createChildWihtLocalVars(),s=0;s<t.length;s++)i.vars.set(t[s],e[s]);var a=o.visitAllStatements(r,i);return a?a.value:null}function Hn(t,e,r){var n={};t.getters.forEach(function(o){n[o.name]={configurable:!1,get:function(){var n=new hf(e,this,t.name,e.vars);return Un([],[],o.body,n,r)}}}),t.methods.forEach(function(o){var i=o.params.map(function(t){return t.name});n[o.name]={writable:!1,configurable:!1,value:function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];var a=new hf(e,this,t.name,e.vars);return Un(i,n,o.body,a,r)}}});var o=t.constructorMethod.params.map(function(t){return t.name}),i=function(){for(var n=this,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var a=new hf(e,this,t.name,e.vars);t.fields.forEach(function(t){n[t.name]=void 0}),Un(o,i,t.constructorMethod.body,a,r)},s=t.parent?t.parent.visitExpression(r,e):Object;return i.prototype=Object.create(s.prototype,n),i}function Bn(t,e,r,n){return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return Un(t,o,e,r,n)}}function qn(t,r,n){var o=r.toSource()+"\n//# sourceURL="+t,i=[],s=[];for(var a in n)i.push(a),s.push(n[a]);if(e.isDevMode()){var u=(new(Function.bind.apply(Function,[void 0].concat(i.concat("return null;"))))).toString(),c=u.slice(0,u.indexOf("return null;")).split("\n").length-1;o+="\n"+r.toSourceMapGenerator(t,t,c).toJsComment()}return(new(Function.bind.apply(Function,[void 0].concat(i.concat(o))))).apply(void 0,s)}function zn(t,e,r){var n=new gf,o=Lp.createRoot(r),i=new sp(br(r.map(function(t){return yr(t)})));return n.visitAllStatements(e.concat([i]),o),qn(t,o,n.getArgs())}function Gn(t){if(!t.isComponent)throw new Error("Could not compile '"+E(t.type)+"' because it is not a component.")}function Wn(t,e,r,n,o){return new Bu(t,e,r,n.missingTranslation,o)}function $n(){e.ɵreflector.reflectionCapabilities=new e.ɵReflectionCapabilities}function Kn(t){return{useJit:Qn(t.map(function(t){return t.useJit})),defaultEncapsulation:Qn(t.map(function(t){return t.defaultEncapsulation})),providers:Xn(t.map(function(t){return t.providers})),missingTranslation:Qn(t.map(function(t){return t.missingTranslation}))}}function Qn(t){for(var e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e];return void 0}function Xn(t){var e=[];return t.forEach(function(t){return t&&e.push.apply(e,t)}),e}var Zn=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Yn=new e.Version("4.1.0"),Jn=function(){function t(t,e,r){this.value=t,this.ngContentIndex=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),to=function(){function t(t,e,r){this.value=t,this.ngContentIndex=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitBoundText(this,e)},t}(),eo=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitAttr(this,e)},t}(),ro=function(){function t(t,e,r,n,o,i){this.name=t,this.type=e,this.securityContext=r,this.value=n,this.unit=o,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===fo.Animation},enumerable:!0,configurable:!0}),t}(),no=function(){function t(t,e,r,n,o){this.name=t,this.target=e,this.phase=r,this.handler=n,this.sourceSpan=o}return t.calcFullName=function(t,e,r){return e?e+":"+t:r?"@"+t+"."+r:t},t.prototype.visit=function(t,e){return t.visitEvent(this,e)},Object.defineProperty(t.prototype,"fullName",{get:function(){return t.calcFullName(this.name,this.target,this.phase)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return!!this.phase},enumerable:!0,configurable:!0}),t}(),oo=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitReference(this,e)},t}(),io=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitVariable(this,e)},t}(),so=function(){function t(t,e,r,n,o,i,s,a,u,c,l,p,h){this.name=t,this.attrs=e,this.inputs=r,this.outputs=n,this.references=o,this.directives=i,this.providers=s,this.hasViewContainer=a,this.queryMatches=u,this.children=c,this.ngContentIndex=l,this.sourceSpan=p,this.endSourceSpan=h}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),ao=function(){function t(t,e,r,n,o,i,s,a,u,c,l){this.attrs=t,this.outputs=e,this.references=r,this.variables=n,this.directives=o,this.providers=i,this.hasViewContainer=s,this.queryMatches=a,this.children=u,this.ngContentIndex=c,this.sourceSpan=l}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}(),uo=function(){function t(t,e,r,n){this.directiveName=t,this.templateName=e,this.value=r,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitDirectiveProperty(this,e)},t}(),co=function(){function t(t,e,r,n,o,i){this.directive=t,this.inputs=e,this.hostProperties=r,this.hostEvents=n,this.contentQueryStartId=o,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),lo=function(){function t(t,e,r,n,o,i,s){this.token=t,this.multiProvider=e,this.eager=r,this.providers=n,this.providerType=o,this.lifecycleHooks=i,this.sourceSpan=s}return t.prototype.visit=function(){return null},t}(),po={};po.PublicService=0,po.PrivateService=1,po.Component=2,po.Directive=3,po.Builtin=4,po[po.PublicService]="PublicService",po[po.PrivateService]="PrivateService",po[po.Component]="Component",po[po.Directive]="Directive",po[po.Builtin]="Builtin";var ho=function(){function t(t,e,r){this.index=t,this.ngContentIndex=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitNgContent(this,e)},t}(),fo={};fo.Property=0,fo.Attribute=1,fo.Class=2,fo.Style=3,fo.Animation=4,fo[fo.Property]="Property",fo[fo.Attribute]="Attribute",fo[fo.Class]="Class",fo[fo.Style]="Style",fo[fo.Animation]="Animation";var mo=function(){function t(t,e,r){this.filePath=t,this.name=e,this.members=r}return t.prototype.assertNoMembers=function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got "+JSON.stringify(this)+".")},t}(),yo=function(){function t(){this.cache=new Map}return t.prototype.get=function(t,e,r){r=r||[];var n=r.length?"."+r.join("."):"",o='"'+t+'".'+e+n,i=this.cache.get(o);return i||(i=new mo(t,e,r),this.cache.set(o,i)),i},t}(),vo={};vo.RAW_TEXT=0,vo.ESCAPABLE_RAW_TEXT=1,vo.PARSABLE_DATA=2,vo[vo.RAW_TEXT]="RAW_TEXT",vo[vo.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",vo[vo.PARSABLE_DATA]="PARSABLE_DATA";var go={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:"‌"},_o=function(){function t(t){var e=void 0===t?{}:t,r=e.closedByChildren,n=e.requiredParents,o=e.implicitNamespacePrefix,i=e.contentType,s=void 0===i?vo.PARSABLE_DATA:i,a=e.closedByParent,u=void 0===a?!1:a,c=e.isVoid,l=void 0===c?!1:c,p=e.ignoreFirstLf,h=void 0===p?!1:p,f=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,r&&r.length>0&&r.forEach(function(t){return f.closedByChildren[t]=!0}),this.isVoid=l,this.closedByParent=u||l,n&&n.length>0&&(this.requiredParents={},this.parentToAdd=n[0],n.forEach(function(t){return f.requiredParents[t]=!0})),this.implicitNamespacePrefix=o||null,this.contentType=s,this.ignoreFirstLf=h}return t.prototype.requireExtraParent=function(t){if(!this.requiredParents)return!1;if(!t)return!0;var e=t.toLowerCase(),r="template"===e||"ng-template"===t;return!r&&1!=this.requiredParents[e]},t.prototype.isClosedByChild=function(t){return this.isVoid||t.toLowerCase()in this.closedByChildren},t}(),bo={base:new _o({isVoid:!0}),meta:new _o({isVoid:!0}),area:new _o({isVoid:!0}),embed:new _o({isVoid:!0}),link:new _o({isVoid:!0}),img:new _o({isVoid:!0}),input:new _o({isVoid:!0}),param:new _o({isVoid:!0}),hr:new _o({isVoid:!0}),br:new _o({isVoid:!0}),source:new _o({isVoid:!0}),track:new _o({isVoid:!0}),wbr:new _o({isVoid:!0}),p:new _o({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 _o({closedByChildren:["tbody","tfoot"]}),tbody:new _o({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new _o({closedByChildren:["tbody"],closedByParent:!0}),tr:new _o({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new _o({closedByChildren:["td","th"],closedByParent:!0}),th:new _o({closedByChildren:["td","th"],closedByParent:!0}),col:new _o({requiredParents:["colgroup"],isVoid:!0}),svg:new _o({implicitNamespacePrefix:"svg"}),math:new _o({implicitNamespacePrefix:"math"}),li:new _o({closedByChildren:["li"],closedByParent:!0}),dt:new _o({closedByChildren:["dt","dd"]}),dd:new _o({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new _o({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new _o({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new _o({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new _o({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new _o({closedByChildren:["optgroup"],closedByParent:!0}),option:new _o({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new _o({ignoreFirstLf:!0}),listing:new _o({ignoreFirstLf:!0}),style:new _o({contentType:vo.RAW_TEXT}),script:new _o({contentType:vo.RAW_TEXT}),title:new _o({contentType:vo.ESCAPABLE_RAW_TEXT}),textarea:new _o({contentType:vo.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},wo=new _o,Co=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),Eo=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var r,n=[],o=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},i=new t,s=i,a=!1;for(Co.lastIndex=0;r=Co.exec(e);){if(r[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new t,i.notSelectors.push(s)}if(r[2]&&s.setElement(r[2]),r[3]&&s.addClassName(r[3]),r[4]&&s.addAttribute(r[4],r[6]),r[7]&&(a=!1,s=i),r[8]){if(a)throw new Error("Multiple selectors in :not are not supported");o(n,i),i=s=new t}}return o(n,i),n},t.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},t.prototype.hasElementSelector=function(){return!!this.element},t.prototype.setElement=function(t){void 0===t&&(t=null),this.element=t},t.prototype.getMatchingElementTemplate=function(){for(var t=this.element||"div",e=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",r="",n=0;n<this.attrs.length;n+=2){var o=this.attrs[n],i=""!==this.attrs[n+1]?'="'+this.attrs[n+1]+'"':"";r+=" "+o+i}return c(t).isVoid?"<"+t+e+r+"/>":"<"+t+e+r+"></"+t+">"},t.prototype.addAttribute=function(t,e){void 0===e&&(e=""),this.attrs.push(t,e&&e.toLowerCase()||"")},t.prototype.addClassName=function(t){this.classNames.push(t.toLowerCase())},t.prototype.toString=function(){var t=this.element||"";if(this.classNames&&this.classNames.forEach(function(e){return t+="."+e}),this.attrs)for(var e=0;e<this.attrs.length;e+=2){var r=this.attrs[e],n=this.attrs[e+1];t+="["+r+(n?"="+n:"")+"]"}return this.notSelectors.forEach(function(e){return t+=":not("+e+")"}),t},t}(),So=function(){function t(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}return t.createNotMatcher=function(e){var r=new t;return r.addSelectables(e,null),r},t.prototype.addSelectables=function(t,e){var r=null;t.length>1&&(r=new xo(t),this._listContexts.push(r));for(var n=0;n<t.length;n++)this._addSelectable(t[n],e,r)},t.prototype._addSelectable=function(t,e,r){var n=this,o=t.element,i=t.classNames,s=t.attrs,a=new To(t,e,r);if(o){var u=0===s.length&&0===i.length;u?this._addTerminal(n._elementMap,o,a):n=this._addPartial(n._elementPartialMap,o)}if(i)for(var c=0;c<i.length;c++){var u=0===s.length&&c===i.length-1,l=i[c];u?this._addTerminal(n._classMap,l,a):n=this._addPartial(n._classPartialMap,l)}if(s)for(var c=0;c<s.length;c+=2){var u=c===s.length-2,p=s[c],h=s[c+1];if(u){var f=n._attrValueMap,d=f.get(p);d||(d=new Map,f.set(p,d)),this._addTerminal(d,h,a)}else{var m=n._attrValuePartialMap,y=m.get(p);y||(y=new Map,m.set(p,y)),n=this._addPartial(y,h)}}},t.prototype._addTerminal=function(t,e,r){var n=t.get(e);n||(n=[],t.set(e,n)),n.push(r)},t.prototype._addPartial=function(e,r){var n=e.get(r);return n||(n=new t,e.set(r,n)),n},t.prototype.match=function(t,e){for(var r=!1,n=t.element,o=t.classNames,i=t.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(r=this._matchTerminal(this._elementMap,n,t,e)||r,r=this._matchPartial(this._elementPartialMap,n,t,e)||r,o)for(var s=0;s<o.length;s++){var a=o[s];r=this._matchTerminal(this._classMap,a,t,e)||r,r=this._matchPartial(this._classPartialMap,a,t,e)||r}if(i)for(var s=0;s<i.length;s+=2){var u=i[s],c=i[s+1],l=this._attrValueMap.get(u);c&&(r=this._matchTerminal(l,"",t,e)||r),r=this._matchTerminal(l,c,t,e)||r;var p=this._attrValuePartialMap.get(u);c&&(r=this._matchPartial(p,"",t,e)||r),r=this._matchPartial(p,c,t,e)||r}return r},t.prototype._matchTerminal=function(t,e,r,n){if(!t||"string"!=typeof e)return!1;var o=t.get(e)||[],i=t.get("*");if(i&&(o=o.concat(i)),0===o.length)return!1;for(var s,a=!1,u=0;u<o.length;u++)s=o[u],a=s.finalize(r,n)||a;return a},t.prototype._matchPartial=function(t,e,r,n){if(!t||"string"!=typeof e)return!1;var o=t.get(e);return o?o.match(r,n):!1},t}(),xo=function(){function t(t){this.selectors=t,this.alreadyMatched=!1}return t}(),To=function(){function t(t,e,r){this.selector=t,this.cbContext=e,this.listContext=r,this.notSelectors=t.notSelectors}return t.prototype.finalize=function(t,e){var r=!0;if(this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched)){var n=So.createNotMatcher(this.notSelectors);r=!n.match(t,null)}return!r||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),r},t}(),Po="",Ao=/-+([a-z0-9])/g,Oo=function(){function t(){}return t.prototype.visitArray=function(t,e){var r=this;return t.map(function(t){return d(t,r,e)})},t.prototype.visitStringMap=function(t,e){var r=this,n={};return Object.keys(t).forEach(function(o){n[o]=d(t[o],r,e)}),n},t.prototype.visitPrimitive=function(t){return t},t.prototype.visitOther=function(t){return t},t}(),Mo=function(){function t(t,e){void 0===e&&(e=null),this.syncResult=t,this.asyncResult=e,e||(this.asyncResult=Promise.resolve(t))}return t}(),Ro="ngSyntaxError",ko=Object.getPrototypeOf({}),Io=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/,No=function(){function t(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.name=t,this.definitions=e}return t}(),Do=function(){function t(){}return t}(),jo=function(t){function e(e,r){var n=t.call(this)||this;return n.stateNameExpr=e,n.styles=r,n}return Zn(e,t),e}(Do),Lo=function(t){function e(e,r){var n=t.call(this)||this;return n.stateChangeExpr=e,n.steps=r,n}return Zn(e,t),e}(Do),Vo=function(){function t(){}return t}(),Fo=function(t){function e(e){void 0===e&&(e=[]);var r=t.call(this)||this;return r.steps=e,r}return Zn(e,t),e}(Vo),Uo=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this)||this;return n.offset=e,n.styles=r,n}return Zn(e,t),e}(Vo),Ho=function(t){function e(e,r){void 0===e&&(e=0),void 0===r&&(r=null);var n=t.call(this)||this;return n.timings=e,n.styles=r,n}return Zn(e,t),e}(Vo),Bo=function(t){function e(e){void 0===e&&(e=null);var r=t.call(this)||this;return r.steps=e,r}return Zn(e,t),e}(Vo),qo=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return Zn(e,t),e}(Bo),zo=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return Zn(e,t),e}(Bo),Go=0,Wo={};Wo.Pipe=0,Wo.Directive=1,Wo.NgModule=2,Wo.Injectable=3,Wo[Wo.Pipe]="Pipe",Wo[Wo.Directive]="Directive",Wo[Wo.NgModule]="NgModule",Wo[Wo.Injectable]="Injectable";var $o=function(){function t(t){var e=void 0===t?{}:t,r=e.moduleUrl,n=e.styles,o=e.styleUrls;this.moduleUrl=r||null,this.styles=I(n),this.styleUrls=I(o)}return t}(),Ko=function(){function t(t){var e=t.encapsulation,r=t.template,n=t.templateUrl,o=t.styles,i=t.styleUrls,s=t.externalStylesheets,a=t.animations,u=t.ngContentSelectors,c=t.interpolation,l=t.isInline;if(this.encapsulation=e,this.template=r,this.templateUrl=n,this.styles=I(o),this.styleUrls=I(i),this.externalStylesheets=I(s),this.animations=a?N(a):[],this.ngContentSelectors=u||[],c&&2!=c.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=c,this.isInline=l}return t.prototype.toSummary=function(){return{animations:this.animations.map(function(t){return t.name}),ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},t}(),Qo=function(){function t(t){var e=t.isHost,r=t.type,n=t.isComponent,o=t.selector,i=t.exportAs,s=t.changeDetection,a=t.inputs,u=t.outputs,c=t.hostListeners,l=t.hostProperties,p=t.hostAttributes,h=t.providers,f=t.viewProviders,d=t.queries,m=t.viewQueries,y=t.entryComponents,v=t.template,g=t.componentViewType,_=t.rendererType,b=t.componentFactory;this.isHost=!!e,this.type=r,this.isComponent=n,this.selector=o,this.exportAs=i,this.changeDetection=s,this.inputs=a,this.outputs=u,this.hostListeners=c,this.hostProperties=l,this.hostAttributes=p,this.providers=I(h),this.viewProviders=I(f),this.queries=I(d),this.viewQueries=I(m),this.entryComponents=I(y),this.template=v,this.componentViewType=g,this.rendererType=_,this.componentFactory=b}return t.create=function(e){var r=e.isHost,n=e.type,o=e.isComponent,i=e.selector,s=e.exportAs,a=e.changeDetection,u=e.inputs,c=e.outputs,l=e.host,h=e.providers,f=e.viewProviders,d=e.queries,m=e.viewQueries,y=e.entryComponents,v=e.template,g=e.componentViewType,_=e.rendererType,b=e.componentFactory,w={},C={},E={};null!=l&&Object.keys(l).forEach(function(t){var e=l[t],r=t.match(Io);null===r?E[t]=e:null!=r[1]?C[r[1]]=e:null!=r[2]&&(w[r[2]]=e)});var S={};null!=u&&u.forEach(function(t){var e=p(t,[t,t]);S[e[0]]=e[1]});var x={};return null!=c&&c.forEach(function(t){var e=p(t,[t,t]);x[e[0]]=e[1]}),new t({isHost:r,type:n,isComponent:!!o,selector:i,exportAs:s,changeDetection:a,inputs:S,outputs:x,hostListeners:w,hostProperties:C,hostAttributes:E,providers:h,viewProviders:f,queries:d,viewQueries:m,entryComponents:y,template:v,componentViewType:g,rendererType:_,componentFactory:b})},t.prototype.toSummary=function(){return{summaryKind:Wo.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}},t}(),Xo=function(){function t(t){var e=t.type,r=t.name,n=t.pure;this.type=e,this.name=r,this.pure=!!n}return t.prototype.toSummary=function(){return{summaryKind:Wo.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),Zo=function(){function t(t){var e=t.type,r=t.providers,n=t.declaredDirectives,o=t.exportedDirectives,i=t.declaredPipes,s=t.exportedPipes,a=t.entryComponents,u=t.bootstrapComponents,c=t.importedModules,l=t.exportedModules,p=t.schemas,h=t.transitiveModule,f=t.id;this.type=e||null,this.declaredDirectives=I(n),this.exportedDirectives=I(o),this.declaredPipes=I(i),this.exportedPipes=I(s),this.providers=I(r),this.entryComponents=I(a),this.bootstrapComponents=I(u),this.importedModules=I(c),this.exportedModules=I(l),this.schemas=I(p),this.id=f||null,this.transitiveModule=h||null}return t.prototype.toSummary=function(){var t=this.transitiveModule;return{summaryKind:Wo.NgModule,type:this.type,entryComponents:t.entryComponents,providers:t.providers,modules:t.modules,exportedDirectives:t.exportedDirectives,exportedPipes:t.exportedPipes}},t}(),Yo=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}(),Jo=function(){function t(t,e){var r=e.useClass,n=e.useValue,o=e.useExisting,i=e.useFactory,s=e.deps,a=e.multi;this.token=t,this.useClass=r||null,this.useValue=n,this.useExisting=o,this.useFactory=i||null,this.dependencies=s||null,this.multi=!!a}return t}(),ti=function(){function t(t){var r=void 0===t?{}:t,n=r.defaultEncapsulation,o=void 0===n?e.ViewEncapsulation.Emulated:n,i=r.useJit,s=void 0===i?!0:i,a=r.missingTranslation,u=r.enableLegacyTemplate;this.defaultEncapsulation=o,this.useJit=!!s,this.missingTranslation=a||null,this.enableLegacyTemplate=u!==!1}return t}(),ei=function(){function t(t,e,r,n){this.input=e,this.errLocation=r,this.ctxLocation=n,this.message="Parser Error: "+t+" "+r+" ["+e+"] in "+n}return t}(),ri=function(){function t(t,e){this.start=t,this.end=e}return t}(),ni=function(){function t(t){this.span=t}return t.prototype.visit=function(t,e){return void 0===e&&(e=null),null},t.prototype.toString=function(){return"AST"},t}(),oi=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.prefix=r,i.uninterpretedExpression=n,i.location=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitQuote(this,e)},e.prototype.toString=function(){return"Quote"},e}(ni),ii=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(ni),si=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(ni),ai=function(t){function e(e,r){var n=t.call(this,e)||this;return n.expressions=r,n}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(ni),ui=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.condition=r,i.trueExp=n,i.falseExp=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(ni),ci=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.receiver=r,o.name=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(ni),li=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.receiver=r,i.name=n,i.value=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(ni),pi=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.receiver=r,o.name=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(ni),hi=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.obj=r,o.key=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(ni),fi=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.obj=r,i.key=n,i.value=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(ni),di=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.exp=r,i.name=n,i.args=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(ni),mi=function(t){function e(e,r){var n=t.call(this,e)||this;return n.value=r,n}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(ni),yi=function(t){function e(e,r){var n=t.call(this,e)||this;return n.expressions=r,n}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(ni),vi=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.keys=r,o.values=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(ni),gi=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.strings=r,o.expressions=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(ni),_i=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.operation=r,i.left=n,i.right=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(ni),bi=function(t){function e(e,r){var n=t.call(this,e)||this;return n.expression=r,
-n}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(ni),wi=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.receiver=r,i.name=n,i.args=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(ni),Ci=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.receiver=r,i.name=n,i.args=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(ni),Ei=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.target=r,o.args=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(ni),Si=function(t){function e(e,r,n,o){var i=t.call(this,new ri(0,null==r?0:r.length))||this;return i.ast=e,i.source=r,i.location=n,i.errors=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),this.ast.visit(t,e)},e.prototype.toString=function(){return this.source+" in "+this.location},e}(ni),xi=function(){function t(t,e,r,n,o){this.span=t,this.key=e,this.keyIsVar=r,this.name=n,this.expression=o}return t}(),Ti=function(){function t(){}return t.prototype.visitBinary=function(t){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){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(){return null},t.prototype.visitInterpolation=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitKeyedRead=function(t){return t.obj.visit(this),t.key.visit(this),null},t.prototype.visitKeyedWrite=function(t){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(){return null},t.prototype.visitMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitPrefixNot=function(t){return t.expression.visit(this),null},t.prototype.visitPropertyRead=function(t){return t.receiver.visit(this),null},t.prototype.visitPropertyWrite=function(t){return t.receiver.visit(this),t.value.visit(this),null},t.prototype.visitSafePropertyRead=function(t){return t.receiver.visit(this),null},t.prototype.visitSafeMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitAll=function(t,e){var r=this;return t.forEach(function(t){return t.visit(r,e)}),null},t.prototype.visitQuote=function(){return null},t}(),Pi=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t){return t},t.prototype.visitInterpolation=function(t){return new gi(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t){return new mi(t.span,t.value)},t.prototype.visitPropertyRead=function(t){return new ci(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t){return new li(t.span,t.receiver.visit(this),t.name,t.value.visit(this))},t.prototype.visitSafePropertyRead=function(t){return new pi(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t){return new wi(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t){return new Ci(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t){return new Ei(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t){return new yi(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t){return new vi(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t){return new _i(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t){return new bi(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t){return new ui(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t){return new di(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t){return new hi(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t){return new fi(t.span,t.obj.visit(this),t.key.visit(this),t.value.visit(this))},t.prototype.visitAll=function(t){for(var e=new Array(t.length),r=0;r<t.length;++r)e[r]=t[r].visit(this);return e},t.prototype.visitChain=function(t){return new ai(t.span,this.visitAll(t.expressions))},t.prototype.visitQuote=function(t){return new oi(t.span,t.prefix,t.uninterpretedExpression,t.location)},t}(),Ai=0,Oi=9,Mi=10,Ri=11,ki=12,Ii=13,Ni=32,Di=33,ji=34,Li=35,Vi=36,Fi=37,Ui=38,Hi=39,Bi=40,qi=41,zi=42,Gi=43,Wi=44,$i=45,Ki=46,Qi=47,Xi=58,Zi=59,Yi=60,Ji=61,ts=62,es=63,rs=48,ns=57,os=65,is=69,ss=70,as=88,us=90,cs=91,ls=92,ps=93,hs=94,fs=95,ds=97,ms=101,ys=102,vs=110,gs=114,_s=116,bs=117,ws=118,Cs=120,Es=122,Ss=123,xs=124,Ts=125,Ps=160,As=96,Os=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],Ms=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(W("interpolation",e),new t(e[0],e[1])):Rs},t}(),Rs=new Ms("{{","}}"),ks={};ks.Character=0,ks.Identifier=1,ks.Keyword=2,ks.String=3,ks.Operator=4,ks.Number=5,ks.Error=6,ks[ks.Character]="Character",ks[ks.Identifier]="Identifier",ks[ks.Keyword]="Keyword",ks[ks.String]="String",ks[ks.Operator]="Operator",ks[ks.Number]="Number",ks[ks.Error]="Error";var Is=["var","let","as","null","undefined","true","false","if","else","this"],Ns=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new Ls(t),r=[],n=e.scanToken();null!=n;)r.push(n),n=e.scanToken();return r},t}();Ns.decorators=[{type:z}],Ns.ctorParameters=function(){return[]};var Ds=function(){function t(t,e,r,n){this.index=t,this.type=e,this.numValue=r,this.strValue=n}return t.prototype.isCharacter=function(t){return this.type==ks.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==ks.Number},t.prototype.isString=function(){return this.type==ks.String},t.prototype.isOperator=function(t){return this.type==ks.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==ks.Identifier},t.prototype.isKeyword=function(){return this.type==ks.Keyword},t.prototype.isKeywordLet=function(){return this.type==ks.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==ks.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==ks.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==ks.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==ks.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==ks.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==ks.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==ks.Error},t.prototype.toNumber=function(){return this.type==ks.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case ks.Character:case ks.Identifier:case ks.Keyword:case ks.Operator:case ks.String:case ks.Error:return this.strValue;case ks.Number:return this.numValue.toString();default:return null}},t}(),js=new Ds(-1,ks.Character,0,""),Ls=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?Ai:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,r=this.peek,n=this.index;Ni>=r;){if(++n>=e){r=Ai;break}r=t.charCodeAt(n)}if(this.peek=r,this.index=n,n>=e)return null;if(tt(r))return this.scanIdentifier();if(H(r))return this.scanNumber(n);var o=n;switch(r){case Ki:return this.advance(),H(this.peek)?this.scanNumber(o):$(o,Ki);case Bi:case qi:case Ss:case Ts:case cs:case ps:case Wi:case Xi:case Zi:return this.scanCharacter(o,r);case Hi:case ji:return this.scanString();case Li:case Gi:case $i:case zi:case Qi:case Fi:case hs:return this.scanOperator(o,String.fromCharCode(r));case es:return this.scanComplexOperator(o,"?",Ki,".");case Yi:case ts:return this.scanComplexOperator(o,String.fromCharCode(r),Ji,"=");case Di:case Ji:return this.scanComplexOperator(o,String.fromCharCode(r),Ji,"=",Ji,"=");case Ui:return this.scanComplexOperator(o,"&",Ui,"&");case xs:return this.scanComplexOperator(o,"|",xs,"|");case Ps:for(;U(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(r)+"]",0)},t.prototype.scanCharacter=function(t,e){return this.advance(),$(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),X(t,e)},t.prototype.scanComplexOperator=function(t,e,r,n,o,i){this.advance();var s=e;return this.peek==r&&(this.advance(),s+=n),null!=o&&this.peek==o&&(this.advance(),s+=i),X(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();rt(this.peek);)this.advance();var e=this.input.substring(t,this.index);return Is.indexOf(e)>-1?Q(t,e):K(t,e)},t.prototype.scanNumber=function(t){var e=this.index===t;for(this.advance();;){if(H(this.peek));else if(this.peek==Ki)e=!1;else{if(!nt(this.peek))break;if(this.advance(),ot(this.peek)&&this.advance(),!H(this.peek))return this.error("Invalid exponent",-1);e=!1}this.advance()}var r=this.input.substring(t,this.index),n=e?at(r):parseFloat(r);return Y(t,n)},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var r="",n=this.index,o=this.input;this.peek!=e;)if(this.peek==ls){r+=o.substring(n,this.index),this.advance();var i=void 0;if(this.peek=this.peek,this.peek==bs){var s=o.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);i=parseInt(s,16);for(var a=0;5>a;a++)this.advance()}else i=st(this.peek),this.advance();r+=String.fromCharCode(i),n=this.index}else{if(this.peek==Ai)return this.error("Unterminated quote",0);this.advance()}var u=o.substring(n,this.index);return this.advance(),Z(t,r+u)},t.prototype.error=function(t,e){var r=this.index+e;return J(r,"Lexer Error: "+t+" at column "+r+" in expression ["+this.input+"]")},t}(),Vs=function(){function t(t,e,r){this.strings=t,this.expressions=e,this.offsets=r}return t}(),Fs=function(){function t(t,e,r){this.templateBindings=t,this.warnings=e,this.errors=r}return t}(),Us=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,r){void 0===r&&(r=Rs),this._checkNoInterpolation(t,e,r);var n=this._stripComments(t),o=this._lexer.tokenize(this._stripComments(t)),i=new Hs(t,e,o,n.length,!0,this.errors,t.length-n.length).parseChain();return new Si(i,t,e,this.errors)},t.prototype.parseBinding=function(t,e,r){void 0===r&&(r=Rs);var n=this._parseBindingAst(t,e,r);return new Si(n,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,r){void 0===r&&(r=Rs);var n=this._parseBindingAst(t,e,r),o=Bs.check(n);return o.length>0&&this._reportError("Host binding expression cannot contain "+o.join(" "),t,e),new Si(n,t,e,this.errors)},t.prototype._reportError=function(t,e,r,n){this.errors.push(new ei(t,e,r,n))},t.prototype._parseBindingAst=function(t,e,r){var n=this._parseQuote(t,e);if(null!=n)return n;this._checkNoInterpolation(t,e,r);var o=this._stripComments(t),i=this._lexer.tokenize(o);return new Hs(t,e,i,o.length,!1,this.errors,t.length-o.length).parseChain()},t.prototype._parseQuote=function(t,e){if(null==t)return null;var r=t.indexOf(":");if(-1==r)return null;var n=t.substring(0,r).trim();if(!et(n))return null;var o=t.substring(r+1);return new oi(new ri(0,t.length),n,o,e)},t.prototype.parseTemplateBindings=function(t,e,r){var n=this._lexer.tokenize(e);if(t){var o=this._lexer.tokenize(t).map(function(t){return t.index=0,t});n.unshift.apply(n,o)}return new Hs(e,r,n,e.length,!1,this.errors,0).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,r){void 0===r&&(r=Rs);var n=this.splitInterpolation(t,e,r);if(null==n)return null;for(var o=[],i=0;i<n.expressions.length;++i){var s=n.expressions[i],a=this._stripComments(s),u=this._lexer.tokenize(this._stripComments(n.expressions[i])),c=new Hs(t,e,u,a.length,!1,this.errors,n.offsets[i]+(s.length-a.length)).parseChain();o.push(c)}return new Si(new gi(new ri(0,null==t?0:t.length),n.strings,o),t,e,this.errors)},t.prototype.splitInterpolation=function(t,e,r){void 0===r&&(r=Rs);var n=ut(r),o=t.split(n);if(o.length<=1)return null;for(var i=[],s=[],a=[],u=0,c=0;c<o.length;c++){var l=o[c];c%2===0?(i.push(l),u+=l.length):l.trim().length>0?(u+=r.start.length,s.push(l),a.push(u),u+=l.length+r.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",t,"at column "+this._findInterpolationErrorColumn(o,c,r)+" in",e),s.push("$implict"),a.push(u))}return new Vs(i,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new Si(new mi(new ri(0,null==t?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return null!=e?t.substring(0,e).trim():t},t.prototype._commentStart=function(t){for(var e=null,r=0;r<t.length-1;r++){var n=t.charCodeAt(r),o=t.charCodeAt(r+1);if(n===Qi&&o==Qi&&null==e)return r;e===n?e=null:null==e&&it(n)&&(e=n)}return null},t.prototype._checkNoInterpolation=function(t,e,r){var n=ut(r),o=t.split(n);o.length>1&&this._reportError("Got interpolation ("+r.start+r.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(o,1,r)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,r){for(var n="",o=0;e>o;o++)n+=o%2===0?t[o]:""+r.start+t[o]+r.end;return n.length},t}();Us.decorators=[{type:z}],Us.ctorParameters=function(){return[{type:Ns}]};var Hs=function(){function t(t,e,r,n,o,i,s){this.input=t,this.location=e,this.tokens=r,this.inputLength=n,this.parseAction=o,this.errors=i,this.offset=s,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.index=0}return t.prototype.peek=function(t){var e=this.index+t;return e<this.tokens.length?this.tokens[e]:js},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 ri(t,this.inputIndex)},t.prototype.advance=function(){this.index++},t.prototype.optionalCharacter=function(t){return this.next.isCharacter(t)?(this.advance(),!0):!1},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):!1},t.prototype.expectOperator=function(t){this.optionalOperator(t)||this.error("Missing expected operator "+t)},t.prototype.expectIdentifierOrKeyword=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier or keyword"),"")},t.prototype.expectIdentifierOrKeywordOrString=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()||t.isString()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier, keyword, or string"),"")},t.prototype.parseChain=function(){for(var t=[],e=this.inputIndex;this.index<this.tokens.length;){var r=this.parsePipe();if(t.push(r),this.optionalCharacter(Zi))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(Zi););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==t.length?new ii(this.span(e)):1==t.length?t[0]:new ai(this.span(e),t)},t.prototype.parsePipe=function(){var t=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var e=this.expectIdentifierOrKeyword(),r=[];this.optionalCharacter(Xi);)r.push(this.parseExpression());t=new di(this.span(t.span.start),t,e,r)}while(this.optionalOperator("|"))}return t},t.prototype.parseExpression=function(){return this.parseConditional()},t.prototype.parseConditional=function(){var t=this.inputIndex,e=this.parseLogicalOr();if(this.optionalOperator("?")){var r=this.parsePipe(),n=void 0;if(this.optionalCharacter(Xi))n=this.parsePipe();else{var o=this.inputIndex,i=this.input.substring(t,o);this.error("Conditional expression "+i+" requires all 3 expressions"),n=new ii(this.span(t))}return new ui(this.span(t),e,r,n)}return e},t.prototype.parseLogicalOr=function(){for(var t=this.parseLogicalAnd();this.optionalOperator("||");){var e=this.parseLogicalAnd();t=new _i(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 _i(this.span(t.span.start),"&&",t,e)}return t},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==ks.Operator;){var e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();var r=this.parseRelational();t=new _i(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==ks.Operator;){var e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();var r=this.parseAdditive();t=new _i(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==ks.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var r=this.parseMultiplicative();t=new _i(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==ks.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var r=this.parsePrefix();t=new _i(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==ks.Operator){var t=this.inputIndex,e=this.next.strValue,r=void 0;switch(e){case"+":return this.advance(),this.parsePrefix();case"-":return this.advance(),r=this.parsePrefix(),new _i(this.span(t),e,new mi(new ri(t,t),0),r);case"!":return this.advance(),r=this.parsePrefix(),new bi(this.span(t),r)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(Ki))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(cs)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(ps),this.optionalOperator("=")){var r=this.parseConditional();t=new fi(this.span(t.span.start),t,e,r)}else t=new hi(this.span(t.span.start),t,e)}else{if(!this.optionalCharacter(Bi))return t;this.rparensExpected++;var n=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(qi),t=new Ei(this.span(t.span.start),t,n)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(Bi)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(qi),e}if(this.next.isKeywordNull())return this.advance(),new mi(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new mi(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new mi(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new mi(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new si(this.span(t));if(this.optionalCharacter(cs)){this.rbracketsExpected++;var r=this.parseExpressionList(ps);return this.rbracketsExpected--,this.expectCharacter(ps),new yi(this.span(t),r)}if(this.next.isCharacter(Ss))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new si(this.span(t)),!1);if(this.next.isNumber()){var n=this.next.toNumber();return this.advance(),new mi(this.span(t),n)}if(this.next.isString()){var o=this.next.toString();return this.advance(),new mi(this.span(t),o)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new ii(this.span(t))):(this.error("Unexpected token "+this.next),new ii(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do e.push(this.parsePipe());while(this.optionalCharacter(Wi));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],r=this.inputIndex;if(this.expectCharacter(Ss),!this.optionalCharacter(Ts)){this.rbracesExpected++;do{var n=this.expectIdentifierOrKeywordOrString();t.push(n),this.expectCharacter(Xi),e.push(this.parsePipe())}while(this.optionalCharacter(Wi));this.rbracesExpected--,this.expectCharacter(Ts)}return new vi(this.span(r),t,e)},t.prototype.parseAccessMemberOrMethodCall=function(t,e){void 0===e&&(e=!1);var r=t.span.start,n=this.expectIdentifierOrKeyword();if(this.optionalCharacter(Bi)){this.rparensExpected++;var o=this.parseCallArguments();this.expectCharacter(qi),this.rparensExpected--;var i=this.span(r);return e?new Ci(i,t,n,o):new wi(i,t,n,o)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new ii(this.span(r))):new pi(this.span(r),t,n);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new ii(this.span(r));var s=this.parseConditional();return new li(this.span(r),t,n,s)}return new ci(this.span(r),t,n)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(qi))return[];var t=[];do t.push(this.parsePipe());while(this.optionalCharacter(Wi));return t},t.prototype.expectTemplateBindingKey=function(){var t="",e=!1;do t+=this.expectIdentifierOrKeywordOrString(),e=this.optionalOperator("-"),e&&(t+="-");while(e);return t.toString()},t.prototype.parseTemplateBindings=function(){for(var t=[],e=null,r=[];this.index<this.tokens.length;){var n=this.inputIndex,o=this.peekKeywordLet();o&&this.advance();var i=this.expectTemplateBindingKey(),s=i;o||(null==e?e=s:s=e+s[0].toUpperCase()+s.substring(1)),this.optionalCharacter(Xi);var a=null,u=null;if(o)a=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.peekKeywordAs()){var c=this.inputIndex;this.advance(),a=i,s=this.expectTemplateBindingKey(),o=!0}else if(this.next!==js&&!this.peekKeywordLet()){var l=this.inputIndex,p=this.parsePipe(),h=this.input.substring(l-this.offset,this.inputIndex-this.offset);u=new Si(p,h,this.location,this.errors)}if(t.push(new xi(this.span(n),s,o,a,u)),this.peekKeywordAs()&&!o){var c=this.inputIndex;this.advance();var f=this.expectTemplateBindingKey();t.push(new xi(this.span(c),f,!0,s,null))}this.optionalCharacter(Zi)||this.optionalCharacter(Wi)}return new Fs(t,r,this.errors)},t.prototype.error=function(t,e){void 0===e&&(e=null),this.errors.push(new ei(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(Zi)&&(this.rparensExpected<=0||!t.isCharacter(qi))&&(this.rbracesExpected<=0||!t.isCharacter(Ts))&&(this.rbracketsExpected<=0||!t.isCharacter(ps));)this.next.isError()&&this.errors.push(new ei(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next},t}(),Bs=function(){function t(){this.errors=[]}return t.check=function(e){var r=new t;return e.visit(r),r.errors},t.prototype.visitImplicitReceiver=function(){},t.prototype.visitInterpolation=function(){},t.prototype.visitLiteralPrimitive=function(){},t.prototype.visitPropertyRead=function(){},t.prototype.visitPropertyWrite=function(){},t.prototype.visitSafePropertyRead=function(){},t.prototype.visitMethodCall=function(){},t.prototype.visitSafeMethodCall=function(){},t.prototype.visitFunctionCall=function(){},t.prototype.visitLiteralArray=function(t){this.visitAll(t.expressions)},t.prototype.visitLiteralMap=function(t){this.visitAll(t.values)},t.prototype.visitBinary=function(){},t.prototype.visitPrefixNot=function(){},t.prototype.visitConditional=function(){},t.prototype.visitPipe=function(){this.errors.push("pipes")},t.prototype.visitKeyedRead=function(){},t.prototype.visitKeyedWrite=function(){},t.prototype.visitAll=function(t){var e=this;return t.map(function(t){return t.visit(e)})},t.prototype.visitChain=function(){},t.prototype.visitQuote=function(){},t}(),qs=function(){function t(t,e,r,n){this.file=t,this.offset=e,this.line=r,this.col=n}return t.prototype.toString=function(){return null!=this.offset?this.file.url+"@"+this.line+":"+this.col:this.file.url},t.prototype.moveBy=function(e){for(var r=this.file.content,n=r.length,o=this.offset,i=this.line,s=this.col;o>0&&0>e;){o--,e++;var a=r.charCodeAt(o);if(a==Mi){i--;var u=r.substr(0,o-1).lastIndexOf(String.fromCharCode(Mi));s=u>0?o-u:o}else s--}for(;n>o&&e>0;){var a=r.charCodeAt(o);o++,e--,a==Mi?(i++,s=0):s++}return new t(this.file,o,i,s)},t.prototype.getContext=function(t,e){var r=this.file.content,n=this.offset;if(null!=n){n>r.length-1&&(n=r.length-1);for(var o=n,i=0,s=0;t>i&&n>0&&(n--,i++,"\n"!=r[n]||++s!=e););for(i=0,s=0;t>i&&o<r.length-1&&(o++,i++,"\n"!=r[o]||++s!=e););return{before:r.substring(n,this.offset),after:r.substring(this.offset,o+1)}}return null},t}(),zs=function(){function t(t,e){this.content=t,this.url=e}return t}(),Gs=function(){function t(t,e,r){void 0===r&&(r=null),this.start=t,this.end=e,this.details=r}return t.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},t}(),Ws={};Ws.WARNING=0,Ws.ERROR=1,Ws[Ws.WARNING]="WARNING",Ws[Ws.ERROR]="ERROR";var $s=function(){function t(t,e,r){void 0===r&&(r=Ws.ERROR),this.span=t,this.msg=e,this.level=r}return t.prototype.toString=function(){var t=this.span.start.getContext(100,3),e=t?' ("'+t.before+"["+Ws[this.level]+" ->]"+t.after+'")':"",r=this.span.details?", "+this.span.details:"";return""+this.msg+e+": "+this.span.start+r},t}(),Ks=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Qs=function(){function t(t,e,r,n,o){this.switchValue=t,this.type=e,this.cases=r,this.sourceSpan=n,this.switchValueSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitExpansion(this,e)},t}(),Xs=function(){function t(t,e,r,n,o){this.value=t,this.expression=e,this.sourceSpan=r,this.valueSourceSpan=n,this.expSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitExpansionCase(this,e)},t}(),Zs=function(){function t(t,e,r,n){this.name=t,this.value=e,this.sourceSpan=r,this.valueSpan=n}return t.prototype.visit=function(t,e){return t.visitAttribute(this,e)},t}(),Ys=function(){function t(t,e,r,n,o,i){void 0===o&&(o=null),void 0===i&&(i=null),this.name=t,this.attrs=e,this.children=r,this.sourceSpan=n,this.startSourceSpan=o,this.endSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),Js=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}(),ta={};ta.TAG_OPEN_START=0,ta.TAG_OPEN_END=1,ta.TAG_OPEN_END_VOID=2,ta.TAG_CLOSE=3,ta.TEXT=4,ta.ESCAPABLE_RAW_TEXT=5,ta.RAW_TEXT=6,ta.COMMENT_START=7,ta.COMMENT_END=8,ta.CDATA_START=9,ta.CDATA_END=10,ta.ATTR_NAME=11,ta.ATTR_VALUE=12,ta.DOC_TYPE=13,ta.EXPANSION_FORM_START=14,ta.EXPANSION_CASE_VALUE=15,ta.EXPANSION_CASE_EXP_START=16,ta.EXPANSION_CASE_EXP_END=17,ta.EXPANSION_FORM_END=18,ta.EOF=19,ta[ta.TAG_OPEN_START]="TAG_OPEN_START",ta[ta.TAG_OPEN_END]="TAG_OPEN_END",ta[ta.TAG_OPEN_END_VOID]="TAG_OPEN_END_VOID",ta[ta.TAG_CLOSE]="TAG_CLOSE",ta[ta.TEXT]="TEXT",ta[ta.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",ta[ta.RAW_TEXT]="RAW_TEXT",ta[ta.COMMENT_START]="COMMENT_START",ta[ta.COMMENT_END]="COMMENT_END",ta[ta.CDATA_START]="CDATA_START",ta[ta.CDATA_END]="CDATA_END",ta[ta.ATTR_NAME]="ATTR_NAME",ta[ta.ATTR_VALUE]="ATTR_VALUE",ta[ta.DOC_TYPE]="DOC_TYPE",ta[ta.EXPANSION_FORM_START]="EXPANSION_FORM_START",ta[ta.EXPANSION_CASE_VALUE]="EXPANSION_CASE_VALUE",ta[ta.EXPANSION_CASE_EXP_START]="EXPANSION_CASE_EXP_START",ta[ta.EXPANSION_CASE_EXP_END]="EXPANSION_CASE_EXP_END",ta[ta.EXPANSION_FORM_END]="EXPANSION_FORM_END",ta[ta.EOF]="EOF";var ea=function(){function t(t,e,r){this.type=t,this.parts=e,this.sourceSpan=r}return t}(),ra=function(t){function e(e,r,n){var o=t.call(this,n,e)||this;return o.tokenType=r,o}return Zn(e,t),e}($s),na=function(){function t(t,e){this.tokens=t,this.errors=e}return t}(),oa=/\r\n?/g,ia=function(){function t(t){this.error=t}return t}(),sa=function(){function t(t,e,r,n){void 0===n&&(n=Rs),this._file=t,this._getTagDefinition=e,this._tokenizeIcu=r,this._interpolationConfig=n,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=t.content,this._length=t.content.length,this._advance()}return t.prototype._processCarriageReturns=function(t){return t.replace(oa,"\n")},t.prototype.tokenize=function(){for(;this._peek!==Ai;){var t=this._getLocation();try{this._attemptCharCode(Yi)?this._attemptCharCode(Di)?this._attemptCharCode(cs)?this._consumeCdata(t):this._attemptCharCode($i)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(Qi)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){if(!(e instanceof ia))throw e;this.errors.push(e.error)}}return this._beginToken(ta.EOF),this._endToken([]),new na(Et(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(_t(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(bt(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._peek===Ts){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},t.prototype._getLocation=function(){return new qs(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 Gs(t,e)},t.prototype._beginToken=function(t,e){void 0===e&&(e=this._getLocation()),this._currentTokenStart=e,this._currentTokenType=t},t.prototype._endToken=function(t,e){void 0===e&&(e=this._getLocation());var r=new ea(this._currentTokenType,t,new Gs(this._currentTokenStart,e));return this.tokens.push(r),this._currentTokenStart=null,this._currentTokenType=null,r},t.prototype._createError=function(t,e){this._isInExpansionForm()&&(t+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var r=new ra(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new ia(r)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(ht(Ai),this._getSpan());this._peek===Mi?(this._line++,this._column=0):this._peek!==Mi&&this._peek!==Ii&&this._column++,this._index++,this._peek=this._index>=this._length?Ai:this._input.charCodeAt(this._index),
-this._nextPeek=this._index+1>=this._length?Ai:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t?(this._advance(),!0):!1},t.prototype._attemptCharCodeCaseInsensitive=function(t){return wt(this._peek,t)?(this._advance(),!0):!1},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(ht(this._peek),this._getSpan(e,e))},t.prototype._attemptStr=function(t){var e=t.length;if(this._index+e>this._length)return!1;for(var r=this._savePosition(),n=0;e>n;n++)if(!this._attemptCharCode(t.charCodeAt(n)))return this._restorePosition(r),!1;return!0},t.prototype._attemptStrCaseInsensitive=function(t){for(var e=0;e<t.length;e++)if(!this._attemptCharCodeCaseInsensitive(t.charCodeAt(e)))return!1;return!0},t.prototype._requireStr=function(t){var e=this._getLocation();if(!this._attemptStr(t))throw this._createError(ht(this._peek),this._getSpan(e))},t.prototype._attemptCharCodeUntilFn=function(t){for(;!t(this._peek);)this._advance()},t.prototype._requireCharCodeUntilFn=function(t,e){var r=this._getLocation();if(this._attemptCharCodeUntilFn(t),this._index-r.offset<e)throw this._createError(ht(this._peek),this._getSpan(r,r))},t.prototype._attemptUntilChar=function(t){for(;this._peek!==t;)this._advance()},t.prototype._readChar=function(t){if(t&&this._peek===Ui)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(Li)){var e=this._savePosition();if(this._attemptCharCodeUntilFn(gt),this._peek!=Zi)return this._restorePosition(e),"&";this._advance();var r=this._input.substring(t.offset+1,this._index-1),n=go[r];if(!n)throw this._createError(ft(r),this._getSpan(t));return n}var o=this._attemptCharCode(Cs)||this._attemptCharCode(as),i=this._getLocation().offset;if(this._attemptCharCodeUntilFn(vt),this._peek!=Zi)throw this._createError(ht(this._peek),this._getSpan());this._advance();var s=this._input.substring(i,this._index-1);try{var a=parseInt(s,o?16:10);return String.fromCharCode(a)}catch(u){var c=this._input.substring(t.offset+1,this._index-1);throw this._createError(ft(c),this._getSpan(t))}},t.prototype._consumeRawText=function(t,e,r){var n,o=this._getLocation();this._beginToken(t?ta.ESCAPABLE_RAW_TEXT:ta.RAW_TEXT,o);for(var i=[];;){if(n=this._getLocation(),this._attemptCharCode(e)&&r())break;for(this._index>n.offset&&i.push(this._input.substring(n.offset,this._index));this._peek!==e;)i.push(this._readChar(t))}return this._endToken([this._processCarriageReturns(i.join(""))],n)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(ta.COMMENT_START,t),this._requireCharCode($i),this._endToken([]);var r=this._consumeRawText(!1,$i,function(){return e._attemptStr("->")});this._beginToken(ta.COMMENT_END,r.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(ta.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var r=this._consumeRawText(!1,ps,function(){return e._attemptStr("]>")});this._beginToken(ta.CDATA_END,r.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(ta.DOC_TYPE,t),this._attemptUntilChar(ts),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t=this._index,e=null;this._peek!==Xi&&!yt(this._peek);)this._advance();var r;this._peek===Xi?(this._advance(),e=this._input.substring(t,this._index-1),r=this._index):r=t,this._requireCharCodeUntilFn(mt,this._index===r?1:0);var n=this._input.substring(r,this._index);return[e,n]},t.prototype._consumeTagOpen=function(t){var e,r,n=this._savePosition();try{if(!B(this._peek))throw this._createError(ht(this._peek),this._getSpan());var o=this._index;for(this._consumeTagOpenStart(t),e=this._input.substring(o,this._index),r=e.toLowerCase(),this._attemptCharCodeUntilFn(dt);this._peek!==Qi&&this._peek!==ts;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(dt),this._attemptCharCode(Ji)&&(this._attemptCharCodeUntilFn(dt),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(dt);this._consumeTagOpenEnd()}catch(i){if(i instanceof ia)return this._restorePosition(n),this._beginToken(ta.TEXT,t),void this._endToken(["<"]);throw i}var s=this._getTagDefinition(e).contentType;s===vo.RAW_TEXT?this._consumeRawTextWithTagClose(r,!1):s===vo.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var r=this,n=this._consumeRawText(e,Yi,function(){return r._attemptCharCode(Qi)?(r._attemptCharCodeUntilFn(dt),r._attemptStrCaseInsensitive(t)?(r._attemptCharCodeUntilFn(dt),r._attemptCharCode(ts)):!1):!1});this._beginToken(ta.TAG_CLOSE,n.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(ta.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(ta.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){this._beginToken(ta.ATTR_VALUE);var t;if(this._peek===Hi||this._peek===ji){var e=this._peek;this._advance();for(var r=[];this._peek!==e;)r.push(this._readChar(!0));t=r.join(""),this._advance()}else{var n=this._index;this._requireCharCodeUntilFn(mt,1),t=this._input.substring(n,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(Qi)?ta.TAG_OPEN_END_VOID:ta.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(ts),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(ta.TAG_CLOSE,t),this._attemptCharCodeUntilFn(dt);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(dt),this._requireCharCode(ts),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(ta.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(Ss),this._endToken([]),this._expansionCaseStack.push(ta.EXPANSION_FORM_START),this._beginToken(ta.RAW_TEXT,this._getLocation());var t=this._readUntil(Wi);this._endToken([t],this._getLocation()),this._requireCharCode(Wi),this._attemptCharCodeUntilFn(dt),this._beginToken(ta.RAW_TEXT,this._getLocation());var e=this._readUntil(Wi);this._endToken([e],this._getLocation()),this._requireCharCode(Wi),this._attemptCharCodeUntilFn(dt)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(ta.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(Ss).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(dt),this._beginToken(ta.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(Ss),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(dt),this._expansionCaseStack.push(ta.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(ta.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(Ts),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(dt),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(ta.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(Ts),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(ta.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(this._peek===Yi||this._peek===Ai)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(_t(this._input,this._index,this._interpolationConfig))return!0;if(this._peek===Ts&&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]===ta.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===ta.EXPANSION_FORM_START},t}(),aa=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.elementName=e,o}return Zn(e,t),e.create=function(t,r,n){return new e(t,r,n)},e}($s),ua=function(){function t(t,e){this.rootNodes=t,this.errors=e}return t}(),ca=function(){function t(t){this.getTagDefinition=t}return t.prototype.parse=function(t,e,r,n){void 0===r&&(r=!1),void 0===n&&(n=Rs);var o=pt(t,e,this.getTagDefinition,r,n),i=new la(o.tokens,this.getTagDefinition).build();return new ua(i.rootNodes,o.errors.concat(i.errors))},t}(),la=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!==ta.EOF;)this._peek.type===ta.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===ta.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===ta.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===ta.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===ta.TEXT||this._peek.type===ta.RAW_TEXT||this._peek.type===ta.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===ta.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new ua(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(){this._consumeText(this._advance()),this._advanceIf(ta.CDATA_END)},t.prototype._consumeComment=function(t){var e=this._advanceIf(ta.RAW_TEXT);this._advanceIf(ta.COMMENT_END);var r=null!=e?e.parts[0].trim():null;this._addToParent(new Js(r,t.sourceSpan))},t.prototype._consumeExpansion=function(t){for(var e=this._advance(),r=this._advance(),n=[];this._peek.type===ta.EXPANSION_CASE_VALUE;){var o=this._parseExpansionCase();if(!o)return;n.push(o)}if(this._peek.type!==ta.EXPANSION_FORM_END)return void this._errors.push(aa.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));var i=new Gs(t.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new Qs(e.parts[0],r.parts[0],n,i,e.sourceSpan)),this._advance()},t.prototype._parseExpansionCase=function(){var e=this._advance();if(this._peek.type!==ta.EXPANSION_CASE_EXP_START)return this._errors.push(aa.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var r=this._advance(),n=this._collectExpansionExpTokens(r);if(!n)return null;var o=this._advance();n.push(new ea(ta.EOF,[],o.sourceSpan));var i=new t(n,this.getTagDefinition).build();if(i.errors.length>0)return this._errors=this._errors.concat(i.errors),null;var s=new Gs(e.sourceSpan.start,o.sourceSpan.end),a=new Gs(r.sourceSpan.start,o.sourceSpan.end);return new Xs(e.parts[0],i.rootNodes,s,e.sourceSpan,a)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],r=[ta.EXPANSION_CASE_EXP_START];;){if((this._peek.type===ta.EXPANSION_FORM_START||this._peek.type===ta.EXPANSION_CASE_EXP_START)&&r.push(this._peek.type),this._peek.type===ta.EXPANSION_CASE_EXP_END){if(!St(r,ta.EXPANSION_CASE_EXP_START))return this._errors.push(aa.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(r.pop(),0==r.length)return e}if(this._peek.type===ta.EXPANSION_FORM_END){if(!St(r,ta.EXPANSION_FORM_START))return this._errors.push(aa.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.pop()}if(this._peek.type===ta.EOF)return this._errors.push(aa.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;e.push(this._advance())}},t.prototype._consumeText=function(t){var e=t.parts[0];if(e.length>0&&"\n"==e[0]){var r=this._getParentElement();null!=r&&0==r.children.length&&this.getTagDefinition(r.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new Ks(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){if(this._elementStack.length>0){var t=this._elementStack[this._elementStack.length-1];this.getTagDefinition(t.name).isVoid&&this._elementStack.pop()}},t.prototype._consumeStartTag=function(t){for(var e=t.parts[0],r=t.parts[1],n=[];this._peek.type===ta.ATTR_NAME;)n.push(this._consumeAttr(this._advance()));var o=this._getElementFullName(e,r,this._getParentElement()),i=!1;if(this._peek.type===ta.TAG_OPEN_END_VOID){this._advance(),i=!0;var s=this.getTagDefinition(o);s.canSelfClose||null!==a(o)||s.isVoid||this._errors.push(aa.create(o,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===ta.TAG_OPEN_END&&(this._advance(),i=!1);var u=this._peek.sourceSpan.start,c=new Gs(t.sourceSpan.start,u),l=new Ys(o,n,[],c,c,void 0);this._pushElement(l),i&&(this._popElement(o),l.endSourceSpan=c)},t.prototype._pushElement=function(t){if(this._elementStack.length>0){var e=this._elementStack[this._elementStack.length-1];this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop()}var r=this.getTagDefinition(t.name),n=this._getParentElementSkippingContainers(),o=n.parent,i=n.container;if(o&&r.requireExtraParent(o.name)){var s=new Ys(r.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(o,i,s)}this._addToParent(t),this._elementStack.push(t)},t.prototype._consumeEndTag=function(t){var e=this._getElementFullName(t.parts[0],t.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=t.sourceSpan),this.getTagDefinition(e).isVoid)this._errors.push(aa.create(e,t.sourceSpan,'Void elements do not have end tags "'+t.parts[1]+'"'));else if(!this._popElement(e)){var r='Unexpected closing tag "'+e+'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags';this._errors.push(aa.create(e,t.sourceSpan,r))}},t.prototype._popElement=function(t){for(var e=this._elementStack.length-1;e>=0;e--){var r=this._elementStack[e];if(r.name==t)return this._elementStack.splice(e,this._elementStack.length-e),!0;if(!this.getTagDefinition(r.name).closedByParent)return!1}return!1},t.prototype._consumeAttr=function(t){var e=u(t.parts[0],t.parts[1]),r=t.sourceSpan.end,n="",o=void 0;if(this._peek.type===ta.ATTR_VALUE){var i=this._advance();n=i.parts[0],r=i.sourceSpan.end,o=i.sourceSpan}return new Zs(e,n,new Gs(t.sourceSpan.start,r),o)},t.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},t.prototype._getParentElementSkippingContainers=function(){for(var t=null,e=this._elementStack.length-1;e>=0;e--){if(!o(this._elementStack[e].name))return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:this._elementStack[this._elementStack.length-1],container:t}},t.prototype._addToParent=function(t){var e=this._getParentElement();null!=e?e.children.push(t):this._rootNodes.push(t)},t.prototype._insertBeforeContainer=function(t,e,r){if(e){if(t){var n=t.children.indexOf(e);t.children[n]=r}else this._rootNodes.push(r);r.children.push(e),this._elementStack.splice(this._elementStack.indexOf(e),0,r)}else this._addToParent(r),this._elementStack.push(r)},t.prototype._getElementFullName=function(t,e,r){return null==t&&(t=this.getTagDefinition(e).implicitNamespacePrefix,null==t&&null!=r&&(t=a(r.name))),u(t,e)},t}(),pa=function(){function t(t,e,r,n,o,i){this.nodes=t,this.placeholders=e,this.placeholderToMessage=r,this.meaning=n,this.description=o,this.id=i,this.sources=t.length?[{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}]:[]}return t}(),ha=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),fa=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),da=function(){function t(t,e,r,n){this.expression=t,this.type=e,this.cases=r,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitIcu(this,e)},t}(),ma=function(){function t(t,e,r,n,o,i,s){this.tag=t,this.attrs=e,this.startName=r,this.closeName=n,this.children=o,this.isVoid=i,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),ya=function(){function t(t,e,r){this.value=t,this.name=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitPlaceholder(this,e)},t}(),va=function(){function t(t,e,r){this.value=t,this.name=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitIcuPlaceholder(this,e)},t}(),ga=function(){function t(){}return t.prototype.visitText=function(t){return new ha(t.value,t.sourceSpan)},t.prototype.visitContainer=function(t,e){var r=this,n=t.children.map(function(t){return t.visit(r,e)});return new fa(n,t.sourceSpan)},t.prototype.visitIcu=function(t,e){var r=this,n={};Object.keys(t.cases).forEach(function(o){return n[o]=t.cases[o].visit(r,e)});var o=new da(t.expression,t.type,n,t.sourceSpan);return o.expressionPlaceholder=t.expressionPlaceholder,o},t.prototype.visitTagPlaceholder=function(t,e){var r=this,n=t.children.map(function(t){return t.visit(r,e)});return new ma(t.tag,t.attrs,t.startName,t.closeName,n,t.isVoid,t.sourceSpan)},t.prototype.visitPlaceholder=function(t){return new ya(t.value,t.name,t.sourceSpan)},t.prototype.visitIcuPlaceholder=function(t){return new va(t.value,t.name,t.sourceSpan)},t}(),_a=function(){function t(){}return t.prototype.visitText=function(){},t.prototype.visitContainer=function(t){var e=this;t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitIcu=function(t){var e=this;Object.keys(t.cases).forEach(function(r){t.cases[r].visit(e)})},t.prototype.visitTagPlaceholder=function(t){var e=this;t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitPlaceholder=function(){},t.prototype.visitIcuPlaceholder=function(){},t}(),ba={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"},wa=function(){function t(){this._placeHolderNameCounts={},this._signatureToName={}}return t.prototype.getStartTagPlaceholderName=function(t,e,r){var n=this._hashTag(t,e,r);if(this._signatureToName[n])return this._signatureToName[n];var o=t.toUpperCase(),i=ba[o]||"TAG_"+o,s=this._generateUniqueName(r?i:"START_"+i);return this._signatureToName[n]=s,s},t.prototype.getCloseTagPlaceholderName=function(t){var e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];var r=t.toUpperCase(),n=ba[r]||"TAG_"+r,o=this._generateUniqueName("CLOSE_"+n);return this._signatureToName[e]=o,o},t.prototype.getPlaceholderName=function(t,e){var r=t.toUpperCase(),n="PH: "+r+"="+e;if(this._signatureToName[n])return this._signatureToName[n];var o=this._generateUniqueName(r);return this._signatureToName[n]=o,o},t.prototype.getUniquePlaceholder=function(t){return this._generateUniqueName(t.toUpperCase())},t.prototype._hashTag=function(t,e,r){var n="<"+t,o=Object.keys(e).sort().map(function(t){return" "+t+"="+e[t]}).join(""),i=r?"/>":"></"+t+">";return n+o+i},t.prototype._hashClosingTag=function(t){return this._hashTag("/"+t,{},!1)},t.prototype._generateUniqueName=function(t){var e=this._placeHolderNameCounts.hasOwnProperty(t);if(!e)return this._placeHolderNameCounts[t]=1,t;var r=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=r+1,t+"_"+r},t}(),Ca=new Us(new Ns),Ea=function(){function t(t,e){this._expressionParser=t,this._interpolationConfig=e}return t.prototype.toI18nMessage=function(t,e,r,n){this._isIcu=1==t.length&&t[0]instanceof Qs,this._icuDepth=0,this._placeholderRegistry=new wa,this._placeholderToContent={},this._placeholderToMessage={};var o=lt(this,t,{});return new pa(o,this._placeholderToContent,this._placeholderToMessage,e,r,n)},t.prototype.visitElement=function(t){var e=lt(this,t.children),r={};t.attrs.forEach(function(t){r[t.name]=t.value});var n=c(t.name).isVoid,o=this._placeholderRegistry.getStartTagPlaceholderName(t.name,r,n);this._placeholderToContent[o]=t.sourceSpan.toString();var i="";return n||(i=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[i]="</"+t.name+">"),new ma(t.name,r,o,i,e,n,t.sourceSpan)},t.prototype.visitAttribute=function(t){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitText=function(t){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitExpansion=function(e){var r=this;this._icuDepth++;var n={},o=new da(e.switchValue,e.type,n,e.sourceSpan);if(e.cases.forEach(function(t){n[t.value]=new fa(t.expression.map(function(t){return t.visit(r,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var i=this._placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return o.expressionPlaceholder=i,this._placeholderToContent[i]=e.switchValue,o}var s=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),a=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[s]=a.toI18nMessage([e],"","",""),new va(o,s,e.sourceSpan)},t.prototype.visitExpansionCase=function(){throw new Error("Unreachable code")},t.prototype._visitTextWithInterpolation=function(t,e){var r=this._expressionParser.splitInterpolation(t,e.start.toString(),this._interpolationConfig);if(!r)return new ha(t,e);for(var n=[],o=new fa(n,e),i=this._interpolationConfig,s=i.start,a=i.end,u=0;u<r.strings.length-1;u++){var c=r.expressions[u],l=Tt(c)||"INTERPOLATION",p=this._placeholderRegistry.getPlaceholderName(l,c);r.strings[u].length&&n.push(new ha(r.strings[u],e)),n.push(new ya(c,p,e)),this._placeholderToContent[p]=s+c+a}var h=r.strings.length-1;return r.strings[h].length&&n.push(new ha(r.strings[h],e)),o},t}(),Sa=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g,xa=function(t){function e(e,r){return t.call(this,e,r)||this}return Zn(e,t),e}($s),Ta="i18n",Pa="i18n-",Aa=/^i18n:?/,Oa="|",Ma="@@",Ra=function(){function t(t,e){this.messages=t,this.errors=e}return t}(),ka={};ka.Extract=0,ka.Merge=1,ka[ka.Extract]="Extract",ka[ka.Merge]="Merge";var Ia=function(){function t(t,e){this._implicitTags=t,this._implicitAttrs=e}return t.prototype.extract=function(t,e){var r=this;return this._init(ka.Extract,e),t.forEach(function(t){return t.visit(r,null)}),this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Ra(this._messages,this._errors)},t.prototype.merge=function(t,e,r){this._init(ka.Merge,r),this._translations=e;var n=new Ys("wrapper",[],t,void 0,void 0,void 0),o=n.visit(this,null);return this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new ua(o.children,this._errors)},t.prototype.visitExpansionCase=function(t,e){var r=lt(this,t.expression,e);return this._mode===ka.Merge?new Xs(t.value,r,t.sourceSpan,t.valueSourceSpan,t.expSourceSpan):void 0},t.prototype.visitExpansion=function(t,e){this._mayBeAddBlockChildren(t);var r=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([t]),this._inIcu=!0);var n=lt(this,t.cases,e);return this._mode===ka.Merge&&(t=new Qs(t.switchValue,t.type,n,t.sourceSpan,t.switchValueSourceSpan)),this._inIcu=r,t},t.prototype.visitComment=function(t){var e=Ot(t);if(e&&this._isInTranslatableSection)return void this._reportError(t,"Could not start a block inside a translatable section");var r=Mt(t);if(r&&!this._inI18nBlock)return void this._reportError(t,"Trying to close an unopened block");if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(r){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(t,this._blockChildren),this._inI18nBlock=!1;var n=this._addMessage(this._blockChildren,this._blockMeaningAndDesc),o=this._translateMessage(t,n);return lt(this,o)}return void this._reportError(t,"I18N blocks should not cross element boundaries")}}else e&&(this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(Aa,"").trim(),this._openTranslatableSection(t))},t.prototype.visitText=function(t){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(t),t},t.prototype.visitElement=function(t,e){var r=this;this._mayBeAddBlockChildren(t),this._depth++;var n=this._inI18nNode,o=this._inImplicitNode,i=[],s=void 0,a=Rt(t),u=a?a.value:"",c=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,l=!o&&c;if(this._inImplicitNode=o||c,this._isInTranslatableSection||this._inIcu)(a||l)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==ka.Extract&&lt(this,t.children);else{if(a||l){this._inI18nNode=!0;var p=this._addMessage(t.children,u);s=this._translateMessage(t,p)}if(this._mode==ka.Extract){var h=a||l;h&&this._openTranslatableSection(t),lt(this,t.children),h&&this._closeTranslatableSection(t,t.children)}}if(this._mode===ka.Merge){var f=s||t.children;f.forEach(function(t){var n=t.visit(r,e);n&&!r._isInTranslatableSection&&(i=i.concat(n))})}if(this._visitAttributesOf(t),this._depth--,this._inI18nNode=n,this._inImplicitNode=o,this._mode===ka.Merge){var d=this._translateAttributes(t);return new Ys(t.name,d,i,t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}return null},t.prototype.visitAttribute=function(){throw new Error("unreachable code")},t.prototype._init=function(t,e){this._mode=t,this._inI18nBlock=!1,this._inI18nNode=!1,this._depth=0,this._inIcu=!1,this._msgCountAtSectionStart=void 0,this._errors=[],this._messages=[],this._inImplicitNode=!1,this._createI18nMessage=xt(e)},t.prototype._visitAttributesOf=function(t){var e=this,r={},n=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith(Pa)}).forEach(function(t){return r[t.name.slice(Pa.length)]=t.value}),t.attrs.forEach(function(t){t.name in r?e._addMessage([t],r[t.name]):n.some(function(e){return t.name===e})&&e._addMessage([t])})},t.prototype._addMessage=function(t,e){if(0==t.length||1==t.length&&t[0]instanceof Zs&&!t[0].value)return null;var r=kt(e),n=r.meaning,o=r.description,i=r.id,s=this._createI18nMessage(t,n,o,i);return this._messages.push(s),s},t.prototype._translateMessage=function(t,e){if(e&&this._mode===ka.Merge){var r=this._translations.get(e);if(r)return r;this._reportError(t,'Translation unavailable for message id="'+this._translations.digest(e)+'"')}return[]},t.prototype._translateAttributes=function(t){var e=this,r=t.attrs,n={};r.forEach(function(t){t.name.startsWith(Pa)&&(n[t.name.slice(Pa.length)]=kt(t.value))});var o=[];return r.forEach(function(r){if(r.name!==Ta&&!r.name.startsWith(Pa))if(r.value&&""!=r.value&&n.hasOwnProperty(r.name)){var i=n[r.name],s=i.meaning,a=i.description,u=i.id,c=e._createI18nMessage([r],s,a,u),l=e._translations.get(c);if(l)if(0==l.length)o.push(new Zs(r.name,"",r.sourceSpan));else if(l[0]instanceof Ks){var p=l[0].value;o.push(new Zs(r.name,p,r.sourceSpan))}else e._reportError(t,'Unexpected translation for attribute "'+r.name+'" (id="'+(u||e._translations.digest(c))+'")');else e._reportError(t,'Translation unavailable for attribute "'+r.name+'" (id="'+(u||e._translations.digest(c))+'")')}else o.push(r)}),o},t.prototype._mayBeAddBlockChildren=function(t){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(t)},t.prototype._openTranslatableSection=function(t){this._isInTranslatableSection?this._reportError(t,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(t.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),t.prototype._closeTranslatableSection=function(t,e){if(!this._isInTranslatableSection)return void this._reportError(t,"Unexpected section end");var r=this._msgCountAtSectionStart,n=e.reduce(function(t,e){return t+(e instanceof Js?0:1)},0);if(1==n)for(var o=this._messages.length-1;o>=r;o--){var i=this._messages[o].nodes;if(!(1==i.length&&i[0]instanceof ha)){this._messages.splice(o,1);break}}this._msgCountAtSectionStart=void 0},t.prototype._reportError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Na=function(){function t(){this.closedByParent=!1,this.contentType=vo.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return t.prototype.requireExtraParent=function(){return!1},t.prototype.isClosedByChild=function(){return!1},t}(),Da=new Na,ja=function(t){function e(){return t.call(this,It)||this}return Zn(e,t),e.prototype.parse=function(e,r,n){return void 0===n&&(n=!1),t.prototype.parse.call(this,e,r,n)},e}(ca),La=function(){function t(){}return t.prototype.visitText=function(t){return t.value},t.prototype.visitContainer=function(t){var e=this;return"["+t.children.map(function(t){return t.visit(e)}).join(", ")+"]"},t.prototype.visitIcu=function(t){var e=this,r=Object.keys(t.cases).map(function(r){return r+" {"+t.cases[r].visit(e)+"}"});return"{"+t.expression+", "+t.type+", "+r.join(", ")+"}"},t.prototype.visitTagPlaceholder=function(t){var e=this;return t.isVoid?'<ph tag name="'+t.startName+'"/>':'<ph tag name="'+t.startName+'">'+t.children.map(function(t){return t.visit(e)}).join(", ")+'</ph name="'+t.closeName+'">'},t.prototype.visitPlaceholder=function(t){return t.value?'<ph name="'+t.name+'">'+t.value+"</ph>":'<ph name="'+t.name+'"/>'},t.prototype.visitIcuPlaceholder=function(t){return'<ph icu name="'+t.name+'">'+t.value.visit(this)+"</ph>"},t}(),Va=new La,Fa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.visitIcu=function(t){var e=this,r=Object.keys(t.cases).map(function(r){return r+" {"+t.cases[r].visit(e)+"}"});return"{"+t.type+", "+r.join(", ")+"}"},e}(La),Ua={};Ua.Little=0,Ua.Big=1,Ua[Ua.Little]="Little",Ua[Ua.Big]="Big";var Ha=function(){function t(){}return t.prototype.write=function(){},t.prototype.load=function(){},t.prototype.digest=function(){},t.prototype.createNameMapper=function(){return null},t}(),Ba=function(t){function e(e,r){var n=t.call(this)||this;return n.mapName=r,n.internalToPublic={},n.publicToNextId={},n.publicToInternal={},e.nodes.forEach(function(t){return t.visit(n)}),n}return Zn(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(){return null},e.prototype.visitTagPlaceholder=function(e,r){this.visitPlaceholderName(e.startName),t.prototype.visitTagPlaceholder.call(this,e,r),this.visitPlaceholderName(e.closeName)},e.prototype.visitPlaceholder=function(t){this.visitPlaceholderName(t.name)},e.prototype.visitIcuPlaceholder=function(t){this.visitPlaceholderName(t.name)},e.prototype.visitPlaceholderName=function(t){if(t&&!this.internalToPublic.hasOwnProperty(t)){var e=this.mapName(t);if(this.publicToInternal.hasOwnProperty(e)){var r=this.publicToNextId[e];this.publicToNextId[e]=r+1,e=e+"_"+r}else this.publicToNextId[e]=1;this.internalToPublic[t]=e,this.publicToInternal[e]=t}},e}(_a),qa=function(){function t(){}return t.prototype.visitTag=function(t){var e=this,r=this._serializeAttributes(t.attrs);if(0==t.children.length)return"<"+t.name+r+"/>";var n=t.children.map(function(t){return t.visit(e)});return"<"+t.name+r+">"+n.join("")+"</"+t.name+">"},t.prototype.visitText=function(t){return t.value},t.prototype.visitDeclaration=function(t){return"<?xml"+this._serializeAttributes(t.attrs)+" ?>"},t.prototype._serializeAttributes=function(t){var e=Object.keys(t).map(function(e){return e+'="'+t[e]+'"'}).join(" ");return e.length>0?" "+e:""},t.prototype.visitDoctype=function(t){return"<!DOCTYPE "+t.rootTag+" [\n"+t.dtd+"\n]>"},t}(),za=new qa,Ga=function(){function t(t){var e=this;this.attrs={},Object.keys(t).forEach(function(r){e.attrs[r]=ie(t[r])})}return t.prototype.visit=function(t){return t.visitDeclaration(this)},t}(),Wa=function(){function t(t,e){this.rootTag=t,this.dtd=e}return t.prototype.visit=function(t){return t.visitDoctype(this)},t}(),$a=function(){function t(t,e,r){void 0===e&&(e={}),void 0===r&&(r=[]);var n=this;this.name=t,this.children=r,this.attrs={},Object.keys(e).forEach(function(t){n.attrs[t]=ie(e[t])})}return t.prototype.visit=function(t){return t.visitTag(this)},t}(),Ka=function(){function t(t){this.value=ie(t)}return t.prototype.visit=function(t){return t.visitText(this)},t}(),Qa=function(t){function e(e){return void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))||this}return Zn(e,t),e}(Ka),Xa=[[/&/g,"&amp;"],[/"/g,"&quot;"],[/'/g,"&apos;"],[/</g,"&lt;"],[/>/g,"&gt;"]],Za="1.2",Ya="urn:oasis:names:tc:xliff:document:1.2",Ja="en",tu="x",eu="file",ru="source",nu="target",ou="trans-unit",iu="context-group",su="context",au=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.write=function(t,e){var r=new uu,n=[];t.forEach(function(t){var e=[];t.sources.forEach(function(t){var r=new $a(iu,{purpose:"location"});r.children.push(new Qa(10),new $a(su,{"context-type":"sourcefile"},[new Ka(t.filePath)]),new Qa(10),new $a(su,{"context-type":"linenumber"},[new Ka(""+t.startLine)]),new Qa(8)),e.push(new Qa(8),r)});var o=new $a(ou,{id:t.id,datatype:"html"});(i=o.children).push.apply(i,[new Qa(8),new $a(ru,{},r.serialize(t.nodes)),new Qa(8),new $a(nu)].concat(e)),t.description&&o.children.push(new Qa(8),new $a("note",{priority:"1",from:"description"},[new Ka(t.description)])),t.meaning&&o.children.push(new Qa(8),new $a("note",{priority:"1",from:"meaning"},[new Ka(t.meaning)])),o.children.push(new Qa(6)),n.push(new Qa(6),o);var i});var o=new $a("body",{},n.concat([new Qa(4)])),i=new $a("file",{"source-language":e||Ja,datatype:"plaintext",original:"ng2.template"},[new Qa(4),o,new Qa(2)]),s=new $a("xliff",{version:Za,xmlns:Ya},[new Qa(2),i,new Qa]);return oe([new Ga({version:"1.0",encoding:"UTF-8"}),new Qa,s,new Qa])},e.prototype.load=function(t,e){var r=new cu,n=r.parse(t,e),o=n.locale,i=n.msgIdToHtml,s=n.errors,a={},u=new lu;if(Object.keys(i).forEach(function(t){var r=u.convert(i[t],e),n=r.i18nNodes,o=r.errors;s.push.apply(s,o),a[t]=n}),s.length)throw new Error("xliff parse errors:\n"+s.join("\n"));return{locale:o,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Nt(t)},e}(Ha),uu=function(){function t(){}return t.prototype.visitText=function(t){return[new Ka(t.value)]},t.prototype.visitContainer=function(t){var e=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(e))}),r},t.prototype.visitIcu=function(t){var e=this,r=[new Ka("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(n){r.push.apply(r,[new Ka(n+" {")].concat(t.cases[n].visit(e),[new Ka("} ")]))}),r.push(new Ka("}")),r},t.prototype.visitTagPlaceholder=function(t){var e=se(t.tag),r=new $a(tu,{id:t.startName,ctype:e});if(t.isVoid)return[r];var n=new $a(tu,{id:t.closeName,ctype:e});return[r].concat(this.serialize(t.children),[n])},t.prototype.visitPlaceholder=function(t){return[new $a(tu,{id:t.name})]},t.prototype.visitIcuPlaceholder=function(t){return[new $a(tu,{id:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),cu=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var r=(new ja).parse(t,e,!1);return this._errors=r.errors,lt(this,r.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t){switch(t.name){case ou:this._unitMlString=null;var e=t.attrs.find(function(t){return"id"===t.name});if(e){var r=e.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(lt(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,"<"+ou+'> misses the "id" attribute');break;case ru:break;case nu:var n=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,i=t.startSourceSpan.start.file.content,s=i.slice(n,o);this._unitMlString=s;break;case eu:var a=t.attrs.find(function(t){return"target-language"===t.name});a&&(this._locale=a.value),lt(this,t.children,null);break;default:lt(this,t.children,null)}},t.prototype.visitAttribute=function(){},t.prototype.visitText=function(){},t.prototype.visitComment=function(){},t.prototype.visitExpansion=function(){},t.prototype.visitExpansionCase=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),lu=function(){function t(){}return t.prototype.convert=function(t,e){var r=(new ja).parse(t,e,!0);this._errors=r.errors;var n=this._errors.length>0||0==r.rootNodes.length?[]:lt(this,r.rootNodes);return{i18nNodes:n,errors:this._errors}},t.prototype.visitText=function(t){return new ha(t.value,t.sourceSpan)},t.prototype.visitElement=function(t){if(t.name===tu){var e=t.attrs.find(function(t){return"id"===t.name});if(e)return new ya("",e.value,t.sourceSpan);this._addError(t,"<"+tu+'> misses the "id" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitExpansion=function(t){var e={};return lt(this,t.cases).forEach(function(r){e[r.value]=new fa(r.nodes,t.sourceSpan)}),new da(t.switchValue,t.type,e,t.sourceSpan)},t.prototype.visitExpansionCase=function(t){return{value:t.value,nodes:lt(this,t.expression)}},t.prototype.visitComment=function(){},t.prototype.visitAttribute=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),pu="2.0",hu="urn:oasis:names:tc:xliff:document:2.0",fu="en",du="ph",mu="pc",yu="xliff",vu="source",gu="target",_u="unit",bu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.write=function(t,e){var r=new wu,n=[];t.forEach(function(t){var e=new $a(_u,{id:t.id});if(t.description||t.meaning){var o=new $a("notes");t.description&&o.children.push(new Qa(8),new $a("note",{category:"description"},[new Ka(t.description)])),t.meaning&&o.children.push(new Qa(8),new $a("note",{category:"meaning"},[new Ka(t.meaning)])),o.children.push(new Qa(6)),e.children.push(new Qa(6),o)}var i=new $a("segment");i.children.push(new Qa(8),new $a(vu,{},r.serialize(t.nodes)),new Qa(6)),e.children.push(new Qa(6),i,new Qa(4)),n.push(new Qa(4),e)});var o=new $a("file",{original:"ng.template",id:"ngi18n"},n.concat([new Qa(2)])),i=new $a(yu,{version:pu,xmlns:hu,srcLang:e||fu},[new Qa(2),o,new Qa]);return oe([new Ga({version:"1.0",encoding:"UTF-8"}),new Qa,i,new Qa])},e.prototype.load=function(t,e){var r=new Cu,n=r.parse(t,e),o=n.locale,i=n.msgIdToHtml,s=n.errors,a={},u=new Eu;if(Object.keys(i).forEach(function(t){var r=u.convert(i[t],e),n=r.i18nNodes,o=r.errors;s.push.apply(s,o),a[t]=n}),s.length)throw new Error("xliff2 parse errors:\n"+s.join("\n"));return{locale:o,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Dt(t)},e}(Ha),wu=function(){function t(){}return t.prototype.visitText=function(t){return[new Ka(t.value)]},t.prototype.visitContainer=function(t){var e=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(e))}),r},t.prototype.visitIcu=function(t){var e=this,r=[new Ka("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(n){r.push.apply(r,[new Ka(n+" {")].concat(t.cases[n].visit(e),[new Ka("} ")]))}),r.push(new Ka("}")),r},t.prototype.visitTagPlaceholder=function(t){var e=this,r=ae(t.tag);if(t.isVoid){var n=new $a(du,{id:(this._nextPlaceholderId++).toString(),equiv:t.startName,type:r,disp:"<"+t.tag+"/>"});return[n]}var o=new $a(mu,{id:(this._nextPlaceholderId++).toString(),equivStart:t.startName,equivEnd:t.closeName,type:r,dispStart:"<"+t.tag+">",dispEnd:"</"+t.tag+">"}),i=[].concat.apply([],t.children.map(function(t){return t.visit(e)}));return i.length?i.forEach(function(t){return o.children.push(t)}):o.children.push(new Ka("")),[o]},t.prototype.visitPlaceholder=function(t){return[new $a(du,{id:(this._nextPlaceholderId++).toString(),equiv:t.name,disp:"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(){return[new $a(du,{id:(this._nextPlaceholderId++).toString()})]},t.prototype.serialize=function(t){var e=this;return this._nextPlaceholderId=0,[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Cu=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var r=(new ja).parse(t,e,!1);return this._errors=r.errors,lt(this,r.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t){switch(t.name){case _u:this._unitMlString=null;var e=t.attrs.find(function(t){return"id"===t.name});if(e){var r=e.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(lt(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,"<"+_u+'> misses the "id" attribute');break;case vu:break;case gu:var n=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,i=t.startSourceSpan.start.file.content,s=i.slice(n,o);this._unitMlString=s;break;case yu:var a=t.attrs.find(function(t){return"trgLang"===t.name});a&&(this._locale=a.value);var u=t.attrs.find(function(t){return"version"===t.name});if(u){var c=u.value;"2.0"!==c?this._addError(t,"The XLIFF file version "+c+" is not compatible with XLIFF 2.0 serializer"):lt(this,t.children,null)}break;default:lt(this,t.children,null)}},t.prototype.visitAttribute=function(){},t.prototype.visitText=function(){},t.prototype.visitComment=function(){},t.prototype.visitExpansion=function(){},t.prototype.visitExpansionCase=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Eu=function(){function t(){}return t.prototype.convert=function(t,e){var r=(new ja).parse(t,e,!0);this._errors=r.errors;var n=this._errors.length>0||0==r.rootNodes.length?[]:[].concat.apply([],lt(this,r.rootNodes));return{i18nNodes:n,errors:this._errors}},t.prototype.visitText=function(t){return new ha(t.value,t.sourceSpan)},t.prototype.visitElement=function(t){var e=this;switch(t.name){case du:var r=t.attrs.find(function(t){return"equiv"===t.name});if(r)return[new ya("",r.value,t.sourceSpan)];this._addError(t,"<"+du+'> misses the "equiv" attribute');break;case mu:var n=t.attrs.find(function(t){return"equivStart"===t.name}),o=t.attrs.find(function(t){return"equivEnd"===t.name});if(n){if(o){var i=n.value,s=o.value,a=[];return a.concat.apply(a,[new ya("",i,t.sourceSpan)].concat(t.children.map(function(t){return t.visit(e,null)}),[new ya("",s,t.sourceSpan)]))}this._addError(t,"<"+du+'> misses the "equivEnd" attribute')}else this._addError(t,"<"+du+'> misses the "equivStart" attribute');break;default:this._addError(t,"Unexpected tag")}return null},t.prototype.visitExpansion=function(t){var e={};return lt(this,t.cases).forEach(function(r){e[r.value]=new fa(r.nodes,t.sourceSpan)}),new da(t.switchValue,t.type,e,t.sourceSpan)},t.prototype.visitExpansionCase=function(t){return{value:t.value,nodes:[].concat.apply([],lt(this,t.expression))}},t.prototype.visitComment=function(){},t.prototype.visitAttribute=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Su="messagebundle",xu="msg",Tu="ph",Pu="ex",Au="source",Ou='<!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)>',Mu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.write=function(t){var e=new ku,r=new Ru,n=new $a(Su);return t.forEach(function(t){var e={id:t.id};t.description&&(e.desc=t.description),t.meaning&&(e.meaning=t.meaning);var o=[];t.sources.forEach(function(t){o.push(new $a(Au,{},[new Ka(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),n.children.push(new Qa(2),new $a(xu,e,o.concat(r.serialize(t.nodes))))}),n.children.push(new Qa),oe([new Ga({version:"1.0",encoding:"UTF-8"}),new Qa,new Wa(Su,Ou),new Qa,e.addDefaultExamples(n),new Qa])},e.prototype.load=function(){throw new Error("Unsupported")},e.prototype.digest=function(t){return ue(t)},e.prototype.createNameMapper=function(t){return new Ba(t,ce)},e}(Ha),Ru=function(){function t(){}return t.prototype.visitText=function(t){return[new Ka(t.value)]},t.prototype.visitContainer=function(t){var e=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(e))}),r},t.prototype.visitIcu=function(t){var e=this,r=[new Ka("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(n){r.push.apply(r,[new Ka(n+" {")].concat(t.cases[n].visit(e),[new Ka("} ")]))}),r.push(new Ka("}")),r},t.prototype.visitTagPlaceholder=function(t){var e=new $a(Pu,{},[new Ka("<"+t.tag+">")]),r=new $a(Tu,{name:t.startName},[e]);if(t.isVoid)return[r];var n=new $a(Pu,{},[new Ka("</"+t.tag+">")]),o=new $a(Tu,{name:t.closeName},[n]);return[r].concat(this.serialize(t.children),[o])},t.prototype.visitPlaceholder=function(t){return[new $a(Tu,{name:t.name})]},t.prototype.visitIcuPlaceholder=function(t){return[new $a(Tu,{name:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),ku=function(){function t(){}return t.prototype.addDefaultExamples=function(t){return t.visit(this),t},t.prototype.visitTag=function(t){var e=this;if(t.name===Tu){if(!t.children||0==t.children.length){var r=new Ka(t.attrs.name||"...");t.children=[new $a(Pu,{},[r])]}}else t.children&&t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitText=function(){},t.prototype.visitDeclaration=function(){},t.prototype.visitDoctype=function(){},t}(),Iu="translationbundle",Nu="translation",Du="ph",ju=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.write=function(){throw new Error("Unsupported")},e.prototype.load=function(t,e){var r=new Lu,n=r.parse(t,e),o=n.locale,i=n.msgIdToHtml,s=n.errors,a={},u=new Vu;if(Object.keys(i).forEach(function(t){var r=function(){var r=u.convert(i[t],e),n=r.i18nNodes,o=r.errors;if(o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return n};le(a,t,r)}),s.length)throw new Error("xtb parse errors:\n"+s.join("\n"));return{locale:o,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return ue(t)},e.prototype.createNameMapper=function(t){return new Ba(t,ce)},e}(Ha),Lu=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._bundleDepth=0,this._msgIdToHtml={};var r=(new ja).parse(t,e,!1);return this._errors=r.errors,lt(this,r.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t){switch(t.name){case Iu:this._bundleDepth++,this._bundleDepth>1&&this._addError(t,"<"+Iu+"> elements can not be nested");var e=t.attrs.find(function(t){return"lang"===t.name});e&&(this._locale=e.value),lt(this,t.children,null),this._bundleDepth--;break;case Nu:var r=t.attrs.find(function(t){return"id"===t.name});if(r){var n=r.value;if(this._msgIdToHtml.hasOwnProperty(n))this._addError(t,"Duplicated translations for msg "+n);else{var o=t.startSourceSpan.end.offset,i=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content,a=s.slice(o,i);this._msgIdToHtml[n]=a}}else this._addError(t,"<"+Nu+'> misses the "id" attribute');break;default:this._addError(t,"Unexpected tag")}},t.prototype.visitAttribute=function(){},t.prototype.visitText=function(){},t.prototype.visitComment=function(){},t.prototype.visitExpansion=function(){},t.prototype.visitExpansionCase=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Vu=function(){function t(){}return t.prototype.convert=function(t,e){var r=(new ja).parse(t,e,!0);this._errors=r.errors;var n=this._errors.length>0||0==r.rootNodes.length?[]:lt(this,r.rootNodes);return{i18nNodes:n,errors:this._errors}},t.prototype.visitText=function(t){return new ha(t.value,t.sourceSpan)},t.prototype.visitExpansion=function(t){var e={};return lt(this,t.cases).forEach(function(r){e[r.value]=new fa(r.nodes,t.sourceSpan)}),new da(t.switchValue,t.type,e,t.sourceSpan)},t.prototype.visitExpansionCase=function(t){return{value:t.value,nodes:lt(this,t.expression)}},t.prototype.visitElement=function(t){if(t.name===Du){var e=t.attrs.find(function(t){return"name"===t.name});if(e)return new ya("",e.value,t.sourceSpan);this._addError(t,"<"+Du+'> misses the "name" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitComment=function(){},t.prototype.visitAttribute=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Fu=function(t){function e(){return t.call(this,c)||this}return Zn(e,t),e.prototype.parse=function(e,r,n,o){return void 0===n&&(n=!1),void 0===o&&(o=Rs),t.prototype.parse.call(this,e,r,n,o)},e}(ca);Fu.decorators=[{type:z}],Fu.ctorParameters=function(){return[]};var Uu=function(){function t(t,r,n,o,i,s){void 0===t&&(t={}),void 0===i&&(i=e.MissingTranslationStrategy.Warning),this._i18nNodesByMsgId=t,this.digest=n,this.mapperFactory=o,this._i18nToHtml=new Hu(t,r,n,o,i,s)}return t.load=function(e,r,n,o,i){var s=n.load(e,r),a=s.locale,u=s.i18nNodesByMsgId,c=function(t){return n.digest(t)},l=function(t){return n.createNameMapper(t)};return new t(u,a,c,l,o,i)},t.prototype.get=function(t){var e=this._i18nToHtml.convert(t);if(e.errors.length)throw new Error(e.errors.join("\n"));return e.nodes},t.prototype.has=function(t){return this.digest(t)in this._i18nNodesByMsgId},t}(),Hu=function(){function t(t,e,r,n,o,i){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this._locale=e,this._digest=r,this._mapperFactory=n,this._missingTranslationStrategy=o,this._console=i,this._contextStack=[],this._errors=[]}return t.prototype.convert=function(t){this._contextStack.length=0,this._errors.length=0;var e=this._convertToText(t),r=t.nodes[0].sourceSpan.start.file.url,n=(new Fu).parse(e,r,!0);return{nodes:n.rootNodes,errors:this._errors.concat(n.errors)}},t.prototype.visitText=function(t){return t.value},t.prototype.visitContainer=function(t){var e=this;return t.children.map(function(t){return t.visit(e)}).join("")},t.prototype.visitIcu=function(t){var e=this,r=Object.keys(t.cases).map(function(r){return r+" {"+t.cases[r].visit(e)+"}"}),n=this._srcMsg.placeholders.hasOwnProperty(t.expression)?this._srcMsg.placeholders[t.expression]:t.expression;return"{"+n+", "+t.type+", "+r.join(" ")+"}"},t.prototype.visitPlaceholder=function(t){var e=this._mapper(t.name);return this._srcMsg.placeholders.hasOwnProperty(e)?this._srcMsg.placeholders[e]:this._srcMsg.placeholderToMessage.hasOwnProperty(e)?this._convertToText(this._srcMsg.placeholderToMessage[e]):(this._addError(t,'Unknown placeholder "'+t.name+'"'),"")},t.prototype.visitTagPlaceholder=function(t){var e=this,r=""+t.tag,n=Object.keys(t.attrs).map(function(e){return e+'="'+t.attrs[e]+'"'}).join(" ");if(t.isVoid)return"<"+r+" "+n+"/>";var o=t.children.map(function(t){return t.visit(e)}).join("");return"<"+r+" "+n+">"+o+"</"+r+">"},t.prototype.visitIcuPlaceholder=function(t){return this._convertToText(this._srcMsg.placeholderToMessage[t.name])},t.prototype._convertToText=function(t){var r,n=this,o=this._digest(t),i=this._mapperFactory?this._mapperFactory(t):null;if(this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=t,this._i18nNodesByMsgId.hasOwnProperty(o))r=this._i18nNodesByMsgId[o],this._mapper=function(t){return i?i.toInternalName(t):t};else{if(this._missingTranslationStrategy===e.MissingTranslationStrategy.Error){var s=this._locale?' for locale "'+this._locale+'"':"";this._addError(t.nodes[0],'Missing translation for message "'+o+'"'+s)}else if(this._console&&this._missingTranslationStrategy===e.MissingTranslationStrategy.Warning){var s=this._locale?' for locale "'+this._locale+'"':"";this._console.warn('Missing translation for message "'+o+'"'+s)}r=t.nodes,this._mapper=function(t){return t}}var a=r.map(function(t){return t.visit(n)}).join(""),u=this._contextStack.pop();return this._srcMsg=u.msg,this._mapper=u.mapper,a},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Bu=function(){function t(t,r,n,o,i){if(void 0===o&&(o=e.MissingTranslationStrategy.Warning),this._htmlParser=t,r){var s=pe(n);this._translationBundle=Uu.load(r,"i18n",s,o,i)}}return t.prototype.parse=function(t,e,r,n){void 0===r&&(r=!1),void 0===n&&(n=Rs);var o=this._htmlParser.parse(t,e,r,n);return this._translationBundle?o.errors.length?new ua(o.rootNodes,o.errors):At(o.rootNodes,this._translationBundle,n,[],{}):o},t}(),qu=he("core"),zu=function(){function t(){}return t}();zu.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleUrl:qu,runtime:e.ANALYZE_FOR_ENTRY_COMPONENTS},zu.ElementRef={name:"ElementRef",moduleUrl:qu,runtime:e.ElementRef},zu.NgModuleRef={name:"NgModuleRef",moduleUrl:qu,runtime:e.NgModuleRef},zu.ViewContainerRef={name:"ViewContainerRef",moduleUrl:qu,runtime:e.ViewContainerRef},zu.ChangeDetectorRef={name:"ChangeDetectorRef",moduleUrl:qu,runtime:e.ChangeDetectorRef},zu.QueryList={name:"QueryList",moduleUrl:qu,runtime:e.QueryList},zu.TemplateRef={name:"TemplateRef",moduleUrl:qu,runtime:e.TemplateRef},zu.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleUrl:qu,runtime:e.ɵCodegenComponentFactoryResolver},zu.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleUrl:qu,runtime:e.ComponentFactoryResolver},zu.ComponentFactory={name:"ComponentFactory",moduleUrl:qu,runtime:e.ComponentFactory},zu.ComponentRef={name:"ComponentRef",moduleUrl:qu,runtime:e.ComponentRef},zu.NgModuleFactory={name:"NgModuleFactory",moduleUrl:qu,runtime:e.NgModuleFactory},zu.NgModuleInjector={name:"ɵNgModuleInjector",moduleUrl:qu,runtime:e.ɵNgModuleInjector},zu.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleUrl:qu,runtime:e.ɵregisterModuleFactory},zu.Injector={name:"Injector",moduleUrl:qu,runtime:e.Injector},zu.ViewEncapsulation={name:"ViewEncapsulation",moduleUrl:qu,runtime:e.ViewEncapsulation},zu.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleUrl:qu,runtime:e.ChangeDetectionStrategy},zu.SecurityContext={name:"SecurityContext",moduleUrl:qu,runtime:e.SecurityContext},zu.LOCALE_ID={name:"LOCALE_ID",moduleUrl:qu,runtime:e.LOCALE_ID},zu.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleUrl:qu,runtime:e.TRANSLATIONS_FORMAT},zu.inlineInterpolate={name:"ɵinlineInterpolate",moduleUrl:qu,runtime:e.ɵinlineInterpolate},zu.interpolate={name:"ɵinterpolate",moduleUrl:qu,runtime:e.ɵinterpolate},zu.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleUrl:qu,runtime:e.ɵEMPTY_ARRAY},zu.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleUrl:qu,runtime:e.ɵEMPTY_MAP},zu.Renderer={name:"Renderer",moduleUrl:qu,runtime:e.Renderer},zu.viewDef={name:"ɵvid",moduleUrl:qu,runtime:e.ɵvid},zu.elementDef={name:"ɵeld",moduleUrl:qu,runtime:e.ɵeld},zu.anchorDef={name:"ɵand",moduleUrl:qu,runtime:e.ɵand},zu.textDef={name:"ɵted",moduleUrl:qu,runtime:e.ɵted},zu.directiveDef={name:"ɵdid",moduleUrl:qu,runtime:e.ɵdid},zu.providerDef={name:"ɵprd",moduleUrl:qu,runtime:e.ɵprd},zu.queryDef={name:"ɵqud",moduleUrl:qu,runtime:e.ɵqud},zu.pureArrayDef={name:"ɵpad",moduleUrl:qu,runtime:e.ɵpad},zu.pureObjectDef={name:"ɵpod",moduleUrl:qu,runtime:e.ɵpod},zu.purePipeDef={name:"ɵppd",moduleUrl:qu,runtime:e.ɵppd},zu.pipeDef={name:"ɵpid",moduleUrl:qu,runtime:e.ɵpid},zu.nodeValue={name:"ɵnov",moduleUrl:qu,runtime:e.ɵnov},zu.ngContentDef={name:"ɵncd",moduleUrl:qu,runtime:e.ɵncd},zu.unwrapValue={name:"ɵunv",moduleUrl:qu,runtime:e.ɵunv},zu.createRendererType2={name:"ɵcrt",moduleUrl:qu,runtime:e.ɵcrt},zu.RendererType2={name:"RendererType2",moduleUrl:qu,runtime:null},zu.ViewDefinition={name:"ɵViewDefinition",moduleUrl:qu,runtime:null},zu.createComponentFactory={name:"ɵccf",moduleUrl:qu,runtime:e.ɵccf};var Gu=["zero","one","two","few","many","other"],Wu=function(){function t(t,e,r){this.nodes=t,this.expanded=e,this.errors=r}return t}(),$u=function(t){function e(e,r){return t.call(this,e,r)||this}return Zn(e,t),e}($s),Ku=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t){return new Ys(t.name,t.attrs,lt(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t){return t},t.prototype.visitText=function(t){return t},t.prototype.visitComment=function(t){return t},t.prototype.visitExpansion=function(t){return this.isExpanded=!0,"plural"==t.type?ge(t,this.errors):_e(t,this.errors)},t.prototype.visitExpansionCase=function(){throw new Error("Should not be reached")},t}(),Qu=function(t){function e(e,r){return t.call(this,r,e)||this}return Zn(e,t),e}($s),Xu=function(){function t(t){var e=this;this.component=t,this.errors=[],this.viewQueries=Se(t),this.viewProviders=new Map,t.viewProviders.forEach(function(t){null==e.viewProviders.get(R(t.token))&&e.viewProviders.set(R(t.token),!0)})}return t}(),Zu=function(){function t(t,e,r,n,o,i,s,a,u){var c=this;this.viewContext=t,this._parent=e,this._isViewRoot=r,this._directiveAsts=n,this._sourceSpan=u,this._transformedProviders=new Map,this._seenProviders=new Map,this._hasViewContainer=!1,this._queriedTokens=new Map,this._attrs={},o.forEach(function(t){return c._attrs[t.name]=t.value});var l=n.map(function(t){return t.directive});if(this._allProviders=Ce(l,u,t.errors),this._contentQueries=xe(a,l),Array.from(this._allProviders.values()).forEach(function(t){c._addQueryReadsTo(t.token,t.token,c._queriedTokens)}),s){var p=ye(zu.TemplateRef);this._addQueryReadsTo(p,p,this._queriedTokens)}i.forEach(function(t){var e=t.value||ye(zu.ElementRef);c._addQueryReadsTo({value:t.name},e,c._queriedTokens)}),this._queriedTokens.get(fe(zu.ViewContainerRef))&&(this._hasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){var e=t.eager||c._queriedTokens.get(R(t.token));e&&c._getOrCreateLocalProvider(t.providerType,t.token,!0)})}return t.prototype.afterElement=function(){var t=this;Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.providerType,e.token,!1)})},Object.defineProperty(t.prototype,"transformProviders",{get:function(){return Array.from(this._transformedProviders.values())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedDirectiveAsts",{get:function(){var t=this.transformProviders.map(function(t){return t.token.identifier}),e=this._directiveAsts.slice();return e.sort(function(e,r){return t.indexOf(e.directive.type)-t.indexOf(r.directive.type)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryMatches",{get:function(){var t=[];return this._queriedTokens.forEach(function(e){t.push.apply(t,e)}),t},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(t,e,r){this._getQueriesFor(t).forEach(function(t){var n=t.meta.read||e,o=R(n),i=r.get(o);i||(i=[],r.set(o,i)),i.push({queryId:t.queryId,value:n})})},t.prototype._getQueriesFor=function(t){for(var e,r=[],n=this,o=0;null!==n;)e=n._contentQueries.get(R(t)),e&&r.push.apply(r,e.filter(function(t){return t.meta.descendants||1>=o})),n._directiveAsts.length>0&&o++,n=n._parent;return e=this.viewContext.viewQueries.get(R(t)),e&&r.push.apply(r,e),r},t.prototype._getOrCreateLocalProvider=function(t,e,r){var n=this,o=this._allProviders.get(R(e));if(!o||(t===po.Directive||t===po.PublicService)&&o.providerType===po.PrivateService||(t===po.PrivateService||t===po.PublicService)&&o.providerType===po.Builtin)return null;var i=this._transformedProviders.get(R(e));if(i)return i;if(null!=this._seenProviders.get(R(e)))return this.viewContext.errors.push(new Qu("Cannot instantiate cyclic dependency! "+M(e),this._sourceSpan)),null;this._seenProviders.set(R(e),!0);var s=o.providers.map(function(t){var e=t.useValue,i=t.useExisting,s=void 0;if(null!=t.useExisting){var a=n._getDependency(o.providerType,{token:t.useExisting},r);null!=a.token?i=a.token:(i=null,e=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;s=u.map(function(t){return n._getDependency(o.providerType,t,r)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return n._getDependency(o.providerType,t,r)})}return be(t,{useExisting:i,useValue:e,deps:s})});return i=we(o,{eager:r,providers:s}),this._transformedProviders.set(R(e),i),i},t.prototype._getLocalDependency=function(t,e,r){if(void 0===r&&(r=!1),e.isAttribute){var n=this._attrs[e.token.value];return{isValue:!0,value:null==n?null:n}}if(null!=e.token){if(t===po.Directive||t===po.Component){if(R(e.token)===fe(zu.Renderer)||R(e.token)===fe(zu.ElementRef)||R(e.token)===fe(zu.ChangeDetectorRef)||R(e.token)===fe(zu.TemplateRef))return e;R(e.token)===fe(zu.ViewContainerRef)&&(this._hasViewContainer=!0)}if(R(e.token)===fe(zu.Injector))return e;if(null!=this._getOrCreateLocalProvider(t,e.token,r))return e}return null},t.prototype._getDependency=function(t,e,r){void 0===r&&(r=!1);var n=this,o=r,i=null;if(e.isSkipSelf||(i=this._getLocalDependency(t,e,r)),e.isSelf)!i&&e.isOptional&&(i={isValue:!0,value:null});else{for(;!i&&n._parent;){var s=n;n=n._parent,s._isViewRoot&&(o=!1),i=n._getLocalDependency(po.PublicService,e,o)}i||(i=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===R(e.token)||null!=this.viewContext.viewProviders.get(R(e.token))?e:e.isOptional?i={isValue:!0,value:null}:null)}return i||this.viewContext.errors.push(new Qu("No provider for "+M(e.token),this._sourceSpan)),i},t}(),Yu=function(){function t(t,e,r){var n=this;
+}:function(e){return e.visit(t,r)};return e.forEach(function(t){var e=o(t);e&&n.push(e)}),n}function n(t){if(":"!=t[0])return[null,t];var e=t.indexOf(":",1);if(-1==e)throw new Error('Unsupported format "'+t+'" expecting ":namespace:name"');return[t.slice(1,e),t.slice(e+1)]}function o(t){return"ng-container"===n(t)[1]}function i(t){return"ng-content"===n(t)[1]}function s(t){return"ng-template"===n(t)[1]}function a(t){return null===t?null:n(t)[0]}function u(t,e){return t?":"+t+":"+e:e}function c(t){return bo[t.toLowerCase()]||wo}function l(t){return t.replace(Ao,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function p(t,e){return f(t,":",e)}function h(t,e){return f(t,".",e)}function f(t,e,r){var n=t.indexOf(e);return-1==n?r:[t.slice(0,n).trim(),t.slice(n+1).trim()]}function d(t,e,r){return Array.isArray(t)?e.visitArray(t,r):b(t)?e.visitStringMap(t,r):null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t?e.visitPrimitive(t,r):e.visitOther(t,r)}function m(t){return null!==t&&void 0!==t}function y(t){return void 0===t?null:t}function v(t){var e=Error(t);return e[Ro]=!0,e}function g(t){return t[Ro]}function _(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function b(t){return"object"==typeof t&&null!==t&&Object.getPrototypeOf(t)===ko}function w(t){for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r);if(n>=55296&&56319>=n&&t.length>r+1){var o=t.charCodeAt(r+1);o>=56320&&57343>=o&&(r++,n=(n-55296<<10)+o-56320+65536)}127>=n?e+=String.fromCharCode(n):2047>=n?e+=String.fromCharCode(n>>6&31|192,63&n|128):65535>=n?e+=String.fromCharCode(n>>12|224,n>>6&63|128,63&n|128):2097151>=n&&(e+=String.fromCharCode(n>>18&7|240,n>>12&63|128,n>>6&63|128,63&n|128))}return e}function C(t){return t.replace(/\W/g,"_")}function E(t){if(!t||!t.reference)return null;var r=t.reference;if(r instanceof mo)return r.name;if(r.__anonymousType)return r.__anonymousType;var n=e.ɵstringify(r);return n.indexOf("(")>=0?(n="anonymous_"+Go++,r.__anonymousType=n):n=C(n),n}function S(t){var r=t.reference;return r instanceof mo?r.filePath:e.ɵreflector.importUri(r)}function x(t,e){return"View_"+E({reference:t})+"_"+e}function T(t){return"RenderType_"+E({reference:t})}function P(t){return"HostView_"+E({reference:t})}function A(t){return"Wrapper_"+E({reference:t})}function O(t){return E({reference:t})+"NgFactory"}function M(t){return null!=t.value?C(t.value):E(t.identifier)}function R(t){return null!=t.identifier?t.identifier.reference:t.value}function k(t,r,n){var o=Eo.parse(r.selector)[0].getMatchingElementTemplate();return Qo.create({isHost:!0,type:{reference:t,diDeps:[],lifecycleHooks:[]},template:new Ko({encapsulation:e.ViewEncapsulation.None,template:o,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null}),exportAs:null,changeDetection:e.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[],componentViewType:n,rendererType:{id:"__Host__",encapsulation:e.ViewEncapsulation.None,styles:[],data:{}},entryComponents:[],componentFactory:null})}function I(t){return t||[]}function N(t){return t.reduce(function(t,e){var r=Array.isArray(e)?N(e):e;return t.concat(r)},[])}function D(t){return t.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function j(t,e,r){var n;return n=r.isInline?e.type.reference instanceof mo?e.type.reference.filePath+"."+e.type.reference.name+".html":E(t)+"/"+E(e.type)+".html":r.templateUrl,D(n)}function L(t,e){var r=t.moduleUrl.split(/\/\\/g),n=r[r.length-1];return D("css/"+e+n+".ngstyle.js")}function V(t){return D(E(t.type)+"/module.ngfactory.js")}function F(t,e){return D(E(t)+"/"+E(e.type)+".ngfactory.js")}function U(t){return t>=Oi&&Ni>=t||t==Ps}function B(t){return t>=rs&&ns>=t}function H(t){return t>=ds&&Es>=t||t>=os&&us>=t}function q(t){return t>=ds&&ys>=t||t>=os&&ss>=t||B(t)}function z(){return function(t){return t}}function G(t,r){if(e.isDevMode()&&null!=r){if(!Array.isArray(r))throw new Error("Expected '"+t+"' to be an array of strings.");for(var n=0;n<r.length;n+=1)if("string"!=typeof r[n])throw new Error("Expected '"+t+"' to be an array of strings.")}}function W(t,r){if(!(null==r||Array.isArray(r)&&2==r.length))throw new Error("Expected '"+t+"' to be an array, [start, end].");if(e.isDevMode()&&null!=r){var n=r[0],o=r[1];Os.forEach(function(t){if(t.test(n)||t.test(o))throw new Error("['"+n+"', '"+o+"'] contains unusable interpolation symbol.")})}}function $(t,e){return new Ds(t,ks.Character,e,String.fromCharCode(e))}function K(t,e){return new Ds(t,ks.Identifier,0,e)}function Q(t,e){return new Ds(t,ks.Keyword,0,e)}function X(t,e){return new Ds(t,ks.Operator,0,e)}function Z(t,e){return new Ds(t,ks.String,0,e)}function Y(t,e){return new Ds(t,ks.Number,e,"")}function J(t,e){return new Ds(t,ks.Error,0,e)}function tt(t){return t>=ds&&Es>=t||t>=os&&us>=t||t==fs||t==Vi}function et(t){if(0==t.length)return!1;var e=new Ls(t);if(!tt(e.peek))return!1;for(e.advance();e.peek!==Ai;){if(!rt(e.peek))return!1;e.advance()}return!0}function rt(t){return H(t)||B(t)||t==fs||t==Vi}function nt(t){return t==ms||t==is}function ot(t){return t==$i||t==Gi}function it(t){return t===Bi||t===ji||t===As}function st(t){switch(t){case vs:return Mi;case ys:return ki;case gs:return Ii;case _s:return Oi;case ws:return Ri;default:return t}}function at(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function ut(t){var e=_(t.start)+"([\\s\\S]*?)"+_(t.end);return new RegExp(e,"g")}function ct(t,e){var r=S(e),n=null!=r?"in "+t+" "+E(e)+" in "+r:"in "+t+" "+E(e),o=new zs("",n);return new Gs(new qs(o,-1,-1,-1),new qs(o,-1,-1,-1))}function lt(t,e,r){void 0===r&&(r=null);var n=[],o=t.visit?function(e){return t.visit(e,r)||e.visit(t,r)}:function(e){return e.visit(t,r)};return e.forEach(function(t){var e=o(t);e&&n.push(e)}),n}function pt(t,e,r,n,o){return void 0===n&&(n=!1),void 0===o&&(o=Rs),new sa(new zs(t,e),r,n,o).tokenize()}function ht(t){var e=t===Ai?"EOF":String.fromCharCode(t);return'Unexpected character "'+e+'"'}function ft(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or  "&#x<hex>;" syntax'}function dt(t){return!U(t)||t===Ai}function mt(t){return U(t)||t===ts||t===Qi||t===Bi||t===ji||t===Ji}function yt(t){return(ds>t||t>Es)&&(os>t||t>us)&&(rs>t||t>ns)}function vt(t){return t==Zi||t==Ai||!q(t)}function gt(t){return t==Zi||t==Ai||!H(t)}function _t(t,e,r){var n=r?t.indexOf(r.start,e)==e:!1;return t.charCodeAt(e)==Ss&&!n}function bt(t){return t===Ji||H(t)}function wt(t,e){return Ct(t)==Ct(e)}function Ct(t){return t>=ds&&Es>=t?t-ds+os:t}function Et(t){for(var e=[],r=void 0,n=0;n<t.length;n++){var o=t[n];r&&r.type==ta.TEXT&&o.type==ta.TEXT?(r.parts[0]+=o.parts[0],r.sourceSpan.end=o.sourceSpan.end):(r=o,e.push(r))}return e}function St(t,e){return t.length>0&&t[t.length-1]===e}function xt(t){var e=new Ea(Ca,t);return function(t,r,n,o){return e.toI18nMessage(t,r,n,o)}}function Tt(t){return t.split(Sa)[2]}function Pt(t,e,r,n){var o=new Ia(r,n);return o.extract(t,e)}function At(t,e,r,n,o){var i=new Ia(n,o);return i.merge(t,e,r)}function Ot(t){return!!(t instanceof Js&&t.value&&t.value.startsWith("i18n"))}function Mt(t){return!!(t instanceof Js&&t.value&&"/i18n"===t.value)}function Rt(t){return t.attrs.find(function(t){return t.name===Ta})||null}function kt(t){if(!t)return{meaning:"",description:"",id:""};var e=t.indexOf(Ma),r=t.indexOf(Oa),n=e>-1?[t.slice(0,e),t.slice(e+2)]:[t,""],o=n[0],i=n[1],s=r>-1?[o.slice(0,r),o.slice(r+1)]:["",o],a=s[0],u=s[1];return{meaning:a,description:u,id:i}}function It(){return Da}function Nt(t){return t.id||Lt(jt(t.nodes).join("")+("["+t.meaning+"]"))}function Dt(t){if(t.id)return t.id;var e=new Fa,r=t.nodes.map(function(t){return t.visit(e,null)});return Ut(r.join(""),t.meaning)}function jt(t){return t.map(function(t){return t.visit(Va,null)})}function Lt(t){var e=w(t),r=Qt(e,Ua.Big),n=8*e.length,o=new Array(80),i=[1732584193,4023233417,2562383102,271733878,3285377520],s=i[0],a=i[1],u=i[2],c=i[3],l=i[4];r[n>>5]|=128<<24-n%32,r[(n+64>>9<<4)+15]=n;for(var p=0;p<r.length;p+=16){for(var h=[s,a,u,c,l],f=h[0],d=h[1],m=h[2],y=h[3],v=h[4],g=0;80>g;g++){o[g]=16>g?r[p+g]:$t(o[g-3]^o[g-8]^o[g-14]^o[g-16],1);var _=Vt(g,a,u,c),b=_[0],C=_[1],E=[$t(s,5),b,l,C,o[g]].reduce(qt);S=[c,u,$t(a,30),s,E],l=S[0],c=S[1],u=S[2],a=S[3],s=S[4]}x=[qt(s,f),qt(a,d),qt(u,m),qt(c,y),qt(l,v)],s=x[0],a=x[1],u=x[2],c=x[3],l=x[4]}return te(Yt([s,a,u,c,l]));var S,x}function Vt(t,e,r,n){return 20>t?[e&r|~e&n,1518500249]:40>t?[e^r^n,1859775393]:60>t?[e&r|e&n|r&n,2400959708]:[e^r^n,3395469782]}function Ft(t){var e=w(t),r=[Bt(e,0),Bt(e,102072)],n=r[0],o=r[1];return 0!=n||0!=o&&1!=o||(n=319790063^n,o=-1801410264^o),[n,o]}function Ut(t,e){var r=Ft(t),n=r[0],o=r[1];if(e){var i=Ft(e),s=i[0],a=i[1];u=Gt(Kt([n,o],1),[s,a]),n=u[0],o=u[1]}return ee(Yt([2147483647&n,o]));var u}function Bt(t,e){var r,n=[2654435769,2654435769],o=n[0],i=n[1],s=t.length;for(r=0;s>=r+12;r+=12)o=qt(o,Zt(t,r,Ua.Little)),i=qt(i,Zt(t,r+4,Ua.Little)),e=qt(e,Zt(t,r+8,Ua.Little)),a=Ht([o,i,e]),o=a[0],i=a[1],e=a[2];return o=qt(o,Zt(t,r,Ua.Little)),i=qt(i,Zt(t,r+4,Ua.Little)),e=qt(e,s),e=qt(e,Zt(t,r+8,Ua.Little)<<8),Ht([o,i,e])[2];var a}function Ht(t){var e=t[0],r=t[1],n=t[2];return e=Wt(e,r),e=Wt(e,n),e^=n>>>13,r=Wt(r,n),r=Wt(r,e),r^=e<<8,n=Wt(n,e),n=Wt(n,r),n^=r>>>13,e=Wt(e,r),e=Wt(e,n),e^=n>>>12,r=Wt(r,n),r=Wt(r,e),r^=e<<16,n=Wt(n,e),n=Wt(n,r),n^=r>>>5,e=Wt(e,r),e=Wt(e,n),e^=n>>>3,r=Wt(r,n),r=Wt(r,e),r^=e<<10,n=Wt(n,e),n=Wt(n,r),n^=r>>>15,[e,r,n]}function qt(t,e){return zt(t,e)[1]}function zt(t,e){var r=(65535&t)+(65535&e),n=(t>>>16)+(e>>>16)+(r>>>16);return[n>>>16,n<<16|65535&r]}function Gt(t,e){var r=t[0],n=t[1],o=e[0],i=e[1],s=zt(n,i),a=s[0],u=s[1],c=qt(qt(r,o),a);return[c,u]}function Wt(t,e){var r=(65535&t)-(65535&e),n=(t>>16)-(e>>16)+(r>>16);return n<<16|65535&r}function $t(t,e){return t<<e|t>>>32-e}function Kt(t,e){var r=t[0],n=t[1],o=r<<e|n>>>32-e,i=n<<e|r>>>32-e;return[o,i]}function Qt(t,e){for(var r=Array(t.length+3>>>2),n=0;n<r.length;n++)r[n]=Zt(t,4*n,e);return r}function Xt(t,e){return e>=t.length?0:255&t.charCodeAt(e)}function Zt(t,e,r){var n=0;if(r===Ua.Big)for(var o=0;4>o;o++)n+=Xt(t,e+o)<<24-8*o;else for(var o=0;4>o;o++)n+=Xt(t,e+o)<<8*o;return n}function Yt(t){return t.reduce(function(t,e){return t+Jt(e)},"")}function Jt(t){for(var e="",r=0;4>r;r++)e+=String.fromCharCode(t>>>8*(3-r)&255);return e}function te(t){for(var e="",r=0;r<t.length;r++){var n=Xt(t,r);e+=(n>>>4).toString(16)+(15&n).toString(16)}return e.toLowerCase()}function ee(t){for(var e="",r="1",n=t.length-1;n>=0;n--)e=re(e,ne(Xt(t,n),r)),r=ne(256,r);return e.split("").reverse().join("")}function re(t,e){for(var r="",n=Math.max(t.length,e.length),o=0,i=0;n>o||i;o++){var s=i+ +(t[o]||0)+ +(e[o]||0);s>=10?(i=1,r+=s-10):(i=0,r+=s)}return r}function ne(t,e){for(var r="",n=e;0!==t;t>>>=1)1&t&&(r=re(r,n)),n=re(n,n);return r}function oe(t){return t.map(function(t){return t.visit(za)}).join("")}function ie(t){return Xa.reduce(function(t,e){return t.replace(e[0],e[1])},t)}function se(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}function ae(t){switch(t.toLowerCase()){case"br":case"b":case"i":case"u":return"fmt";case"img":return"image";case"a":return"link";default:return"other"}}function ue(t){return Dt(t)}function ce(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}function le(t,e,r){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var n=r();return Object.defineProperty(t,e,{enumerable:!0,value:n}),n},set:function(){throw new Error("Could not overwrite an XTB translation")}})}function pe(t){switch(t=(t||"xlf").toLowerCase()){case"xmb":return new Mu;case"xtb":return new ju;case"xliff2":case"xlf2":return new bu;case"xliff":case"xlf":default:return new au}}function he(t,e,r){return void 0===e&&(e=null),void 0===r&&(r="src"),null==e?"@angular/"+t:"@angular/"+t+"/"+r+"/"+e}function fe(t){var r=t.name;return e.ɵreflector.resolveIdentifier(r,t.moduleUrl,null,t.runtime)}function de(t){return{reference:fe(t)}}function me(t){return{identifier:t}}function ye(t){return me(de(t))}function ve(t){var e=new Ku;return new Wu(lt(e,t),e.isExpanded,e.errors)}function ge(t,e){var r=t.cases.map(function(t){-1!=Gu.indexOf(t.value)||t.value.match(/^=\d+$/)||e.push(new $u(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+Gu.join(", ")));var r=ve(t.expression);return e.push.apply(e,r.errors),new Ys("ng-template",[new Zs("ngPluralCase",""+t.value,t.valueSourceSpan)],r.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),n=new Zs("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new Ys("ng-container",[n],r,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function _e(t,e){var r=t.cases.map(function(t){var r=ve(t.expression);return e.push.apply(e,r.errors),"other"===t.value?new Ys("ng-template",[new Zs("ngSwitchDefault","",t.valueSourceSpan)],r.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new Ys("ng-template",[new Zs("ngSwitchCase",""+t.value,t.valueSourceSpan)],r.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),n=new Zs("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new Ys("ng-container",[n],r,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function be(t,e){var r=e.useExisting,n=e.useValue,o=e.deps;return{token:t.token,useClass:t.useClass,useExisting:r,useFactory:t.useFactory,useValue:n,deps:o,multi:t.multi}}function we(t,e){var r=e.eager,n=e.providers;return new lo(t.token,t.multiProvider,t.eager||r,n,t.providerType,t.lifecycleHooks,t.sourceSpan)}function Ce(t,e,r){var n=new Map;t.forEach(function(t){var o={token:{identifier:t.type},useClass:t.type};Ee([o],t.isComponent?po.Component:po.Directive,!0,e,r,n)});var o=t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent}));return o.forEach(function(t){Ee(t.providers,po.PublicService,!1,e,r,n),Ee(t.viewProviders,po.PrivateService,!1,e,r,n)}),n}function Ee(t,e,r,n,o,i){t.forEach(function(t){var s=i.get(R(t.token));if(null!=s&&!!s.multiProvider!=!!t.multi&&o.push(new Qu("Mixing multi and non multi provider is not possible for token "+M(s.token),n)),s)t.multi||(s.providers.length=0),s.providers.push(t);else{var a=t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[],u=!(t.useClass||t.useExisting||t.useFactory);s=new lo(t.token,!!t.multi,r||u,[t],e,a,n),i.set(R(t.token),s)}})}function Se(t){var e=1,r=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return Te(r,{meta:t,queryId:e++})}),r}function xe(t,e){var r=t,n=new Map;return e.forEach(function(t){t.queries&&t.queries.forEach(function(t){return Te(n,{meta:t,queryId:r++})})}),n}function Te(t,e){e.meta.selectors.forEach(function(r){var n=t.get(R(r));n||(n=[],t.set(R(r),n)),n.push(e)})}function Pe(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(nc);return null===e||"package"==e[1]||"asset"==e[1]}function Ae(t,e,r){var n=[],o=r.replace(rc,"").replace(ec,function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=r[1]||r[2];return Pe(i)?(n.push(t.resolve(e,i)),""):r[0]});return new tc(o,n)}function Oe(t){return"@"==t[0]}function Me(t,r,n,o){var i=[];return Eo.parse(r).forEach(function(e){var r=e.element?[e.element]:t.allKnownElementNames(),s=new Set(e.notSelectors.filter(function(t){return t.isElementSelector()}).map(function(t){return t.element})),a=r.filter(function(t){return!s.has(t)});i.push.apply(i,a.map(function(e){return t.securityContext(e,n,o)}))}),0===i.length?[e.SecurityContext.NONE]:Array.from(new Set(i)).sort()}function Re(t){var e=null,r=null,n=null,o=!1,s=null;t.attrs.forEach(function(t){var i=t.name.toLowerCase();i==fc?e=t.value:i==yc?r=t.value:i==mc?n=t.value:t.name==bc?o=!0:t.name==wc&&t.value.length>0&&(s=t.value)}),e=ke(e);var a=t.name.toLowerCase(),u=Cc.OTHER;return i(a)?u=Cc.NG_CONTENT:a==gc?u=Cc.STYLE:a==_c?u=Cc.SCRIPT:a==dc&&n==vc&&(u=Cc.STYLESHEET),new Ec(u,e,r,o,s)}function ke(t){return null===t||0===t.length?"*":t}function Ie(t){return function(e){return-1!==t.indexOf(e.msg)?(Hc[e.msg]=(Hc[e.msg]||0)+1,Hc[e.msg]<=1):!0}}function Ne(t){return t.trim().split(/\s+/g)}function De(t,e){var r=new Eo,o=n(t)[1];r.setElement(o);for(var i=0;i<e.length;i++){var s=e[i][0],a=n(s)[1],u=e[i][1];if(r.addAttribute(a,u),s.toLowerCase()==Vc){var c=Ne(u);c.forEach(function(t){return r.addClassName(t)})}}return r}function je(t){return t instanceof Ks&&0==t.value.trim().length}function Le(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 Ve(t){return t instanceof Si&&(t=t.ast),t instanceof ii}function Fe(t,e,r){if(s(t.name))return!0;var o=n(t.name)[1];return o.toLowerCase()===Dc&&e&&o.toLowerCase()===Dc?(r(Uc,t.sourceSpan),!0):!1}function Ue(){return new el}function Be(){return new el(".")}function He(t){var e=ze(t);return e&&e[nl.Scheme]||""}function qe(t,e,r,n,o,i,s){var a=[];return null!=t&&a.push(t+":"),null!=r&&(a.push("//"),null!=e&&a.push(e+"@"),a.push(r),null!=n&&a.push(":"+n)),null!=o&&a.push(o),null!=i&&a.push("?"+i),null!=s&&a.push("#"+s),a.join("")}function ze(t){return t.match(rl)}function Ge(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",r="/"===t[t.length-1]?"/":"",n=t.split("/"),o=[],i=0,s=0;s<n.length;s++){var a=n[s];switch(a){case"":case".":break;case"..":o.length>0?o.pop():i++;break;default:o.push(a)}}if(""==e){for(;i-->0;)o.unshift("..");0===o.length&&o.push(".")}return e+o.join("/")+r}function We(t){var e=t[nl.Path];return e=null==e?"":Ge(e),t[nl.Path]=e,qe(t[nl.Scheme],t[nl.UserInfo],t[nl.Domain],t[nl.Port],e,t[nl.QueryData],t[nl.Fragment])}function $e(t,e){var r=ze(encodeURI(e)),n=ze(t);if(null!=r[nl.Scheme])return We(r);r[nl.Scheme]=n[nl.Scheme];for(var o=nl.Scheme;o<=nl.Port;o++)null==r[o]&&(r[o]=n[o]);if("/"==r[nl.Path][0])return We(r);var i=n[nl.Path];null==i&&(i="/");var s=i.lastIndexOf("/");return i=i.substring(0,s+1)+r[nl.Path],r[nl.Path]=i,We(r)}function Ke(t){return t instanceof e.Directive}function Qe(t,e){for(var r=t.length-1;r>=0;r--)if(e(t[r]))return t[r];return null}function Xe(t){var e=Je(t);return e[0]+".ngfactory"+e[1]}function Ze(t){return t.replace(cl,".")}function Ye(t){return cl.test(t)}function Je(t){if(t.endsWith(".d.ts"))return[t.slice(0,-5),".ts"];var e=t.lastIndexOf(".");return-1!==e?[t.substring(0,e),t.substring(e)]:[t,""]}function tr(t){var e=t.replace(ul,"");return e+".ngsummary.json"}function er(t,r){return e.ɵreflector.hasLifecycleHook(r,rr(t))}function rr(t){switch(t){case e.ɵLifecycleHooks.OnInit:return"ngOnInit";case e.ɵLifecycleHooks.OnDestroy:return"ngOnDestroy";case e.ɵLifecycleHooks.DoCheck:return"ngDoCheck";case e.ɵLifecycleHooks.OnChanges:return"ngOnChanges";case e.ɵLifecycleHooks.AfterContentInit:return"ngAfterContentInit";case e.ɵLifecycleHooks.AfterContentChecked:return"ngAfterContentChecked";case e.ɵLifecycleHooks.AfterViewInit:return"ngAfterViewInit";case e.ɵLifecycleHooks.AfterViewChecked:return"ngAfterViewChecked"}}function nr(t){return t instanceof e.NgModule}function or(t){return t instanceof e.Pipe}function ir(t,r){if(void 0===r&&(r=[]),t)for(var n=0;n<t.length;n++){var o=e.resolveForwardRef(t[n]);Array.isArray(o)?ir(o,r):r.push(o)}return r}function sr(t){return t?Array.from(new Set(t)):[]}function ar(t){return sr(ir(t))}function ur(t){return t instanceof mo||t instanceof e.Type}function cr(t,e,r){if(e instanceof mo)return t.resourceUri(e);var n=r.moduleId;if("string"==typeof n){var o=He(n);return o?n:"package:"+n+Po}if(null!==n&&void 0!==n)throw v('moduleId should be a string in "'+pr(e)+"\". See https://goo.gl/wIDDiL for more information.\nIf you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.");return t.importUri(e)}function lr(t,e){d(t,new ml,e)}function pr(t){return t instanceof mo?t.name+" in "+t.filePath:e.ɵstringify(t)}function hr(t){var r=Error("Can't compile synchronously as "+e.ɵstringify(t)+" is still being loaded!");return r[e.ɵERROR_COMPONENT_TYPE]=t,r}function fr(t){var e=new vp;return e.visitAllStatements(t,null),e.varNames}function dr(t,e){if(!e)return t;var r=new gp(e);return t.visitStatement(r,null)}function mr(t,e){if(!e)return t;var r=new gp(e);return t.visitExpression(r,null)}function yr(t,e,r){return new Ol(t,e,r)}function vr(t,e,r){return void 0===e&&(e=null),new Vl(t,null,e,r)}function gr(t,e,r){return void 0===e&&(e=null),void 0===r&&(r=null),null!=t?_r(vr(t,e,null),r):null}function _r(t,e){return void 0===e&&(e=null),null!=t?new bl(t,e):null}function br(t,e,r){return new $l(t,e,r)}function wr(t,e,r){return void 0===e&&(e=null),void 0===r&&(r=!1),new Ql(t.map(function(t){return new Kl(t[0],t[1],r)}),e,null)}function Cr(t,e){return new Ul(t,e)}function Er(t,e,r,n){return new ql(t,e,r,n)}function Sr(t,e,r){return new Ll(t,e,r)}function xr(t){var e=t.parentArgs||[],r=t.parent?[Yl.callFn(e).toStmt()]:[],n=Tr(Array.isArray(t.builders)?t.builders:[t.builders]),o=new cp(null,t.ctorParams||[],r.concat(n.ctorStmts));return new pp(t.name,t.parent||null,n.fields,n.getters,o,n.methods,t.modifiers||[],t.sourceSpan)}function Tr(t){return{fields:[].concat.apply([],t.map(function(t){return t.fields||[]})),methods:[].concat.apply([],t.map(function(t){return t.methods||[]})),getters:[].concat.apply([],t.map(function(t){return t.getters||[]})),ctorStmts:[].concat.apply([],t.map(function(t){return t.ctorStmts||[]}))}}function Pr(t,e){return void 0===e&&(e=null),d(t,new bp,e)}function Ar(t){return null!=t.value?Sr(t.value):vr(t.identifier)}function Or(t){var e="";t=w(t);for(var r=0;r<t.length;){var n=t.charCodeAt(r++),o=t.charCodeAt(r++),i=t.charCodeAt(r++);e+=Rr(n>>2),e+=Rr((3&n)<<4|(isNaN(o)?0:o>>4)),e+=isNaN(o)?"=":Rr((15&o)<<2|i>>6),e+=isNaN(o)||isNaN(i)?"=":Rr(63&i)}return e}function Mr(t){t=0>t?(-t<<1)+1:t<<1;var e="";do{var r=31&t;t>>=5,t>0&&(r=32|r),e+=Rr(r)}while(t>0);return e}function Rr(t){if(0>t||t>=64)throw new Error("Can only encode value in the range [0, 63]");return Mp[t]}function kr(t,e,r){if(void 0===r&&(r=!0),null==t)return null;var n=t.replace(Rp,function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return"$"==t[0]?e?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":"\\"+t[0]}),o=r||!kp.test(n);return o?"'"+n+"'":n}function Ir(t){for(var e="",r=0;t>r;r++)e+=Ip;return e}function Nr(t){var e=new Bp(Fp,{fileNameToModuleName:function(t){return t},getImportAs:function(){return null},getTypeArity:function(){return null}}),r=Lp.createRoot([]),n=Array.isArray(t)?t:[t];return n.forEach(function(t){if(t instanceof rp)t.visitStatement(e,r);else if(t instanceof Pl)t.visitExpression(e,r);else{if(!(t instanceof vl))throw new Error("Don't know how to print debug info for "+t);t.visitType(e,r)}}),r.toSource()}function Dr(t,e){for(var r=0,n=e;r<n.length;r++){var o=n[r];Hp[o.toLowerCase()]=t}}function jr(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}function Lr(t){return t.replace(dh,"")}function Vr(t){var e=t.match(mh);return e?e[0]:""}function Fr(t,e){var r=Ur(t),n=0;return r.escapedString.replace(yh,function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var i=t[2],s="",a=t[4],u="";a&&a.startsWith("{"+bh)&&(s=r.blocks[n++],a=a.substring(bh.length+1),u="{");var c=e(new wh(i,s));return""+t[1]+c.selector+t[3]+u+c.content+a})}function Ur(t){for(var e=t.split(vh),r=[],n=[],o=0,i=[],s=0;s<e.length;s++){var a=e[s];a==_h&&o--,o>0?i.push(a):(i.length>0&&(n.push(i.join("")),r.push(bh),i=[]),r.push(a)),a==gh&&o++}return i.length>0&&(n.push(i.join("")),r.push(bh)),new Ch(r.join(""),n)}function Br(t){var e="styles";return t&&(e+="_"+E(t.type)),e}function Hr(t,e,r,n){t||(t=new jh);var o=qr({createLiteralArrayConverter:function(){return function(t){return br(t)}},createLiteralMapConverter:function(t){return function(e){return wr(t.map(function(t,r){return[t,e[r]]}))}},createPipeConverter:function(t){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: "+t)}},r),i=new Dh(t,e,n),s=[];Yr(o.visit(i,Ih.Statement),s),Kr(i.temporaryCount,n,s);var a=s.length-1,u=null;if(a>=0){var c=s[a],l=en(c);l&&(u=tn(n),s[a]=u.set(l.cast(El).notIdentical(Sr(!1))).toDeclStmt(null,[ep.Final]))}return new Rh(s,u)}function qr(t,e){return Gr(t,e)}function zr(t,e,r,n){t||(t=new jh);var o=Jr(n),i=[],s=new Dh(t,e,n),a=r.visit(s,Ih.Expression);if(s.temporaryCount)for(var u=0;u<s.temporaryCount;u++)i.push($r(n,u));return i.push(o.set(a).toDeclStmt(null,[ep.Final])),new kh(i,o)}function Gr(t,e){var r=new Nh(t);return e.visit(r)}function Wr(t,e){return"tmp_"+t+"_"+e}function $r(t,e){return new np(Wr(t,e),Jl)}function Kr(t,e,r){for(var n=t-1;n>=0;n--)r.unshift($r(e,n))}function Qr(t,e){if(t!==Ih.Statement)throw new Error("Expected a statement, but saw "+e)}function Xr(t,e){if(t!==Ih.Expression)throw new Error("Expected an expression, but saw "+e)}function Zr(t,e){return t===Ih.Statement?e.toStmt():e}function Yr(t,e){Array.isArray(t)?t.forEach(function(t){return Yr(t,e)}):e.push(t)}function Jr(t){return yr("currVal_"+t)}function tn(t){return yr("pd_"+t)}function en(t){return t instanceof ip?t.expr:t instanceof sp?t.value:null}function rn(t){return t.multiProvider?nn(t.providers):on(t.providerType,t.providers[0])}function nn(t){function e(t,e){return e.map(function(e,o){var i="p"+t+"_"+o;return n.push(new Hl(i,El)),r.push(an(e)),yr(i)})}var r=[],n=[],o=t.map(function(t,r){var n;if(t.useClass){var o=e(r,t.deps||t.useClass.diDeps);n=vr(t.useClass).instantiate(o)}else if(t.useFactory){var o=e(r,t.deps||t.useFactory.diDeps);n=vr(t.useFactory).callFn(o)}else if(t.useExisting){var o=e(r,[{token:t.useExisting}]);n=o[0]}else n=Pr(t.useValue);return n}),i=Er(n,[new sp(br(o))],Sl);return{providerExpr:i,flags:512,depsExpr:br(r)}}function on(t,e){var r,n,o;t===po.Directive||t===po.Component?(r=vr(e.useClass),n=8192,o=e.deps||e.useClass.diDeps):e.useClass?(r=vr(e.useClass),n=256,o=e.deps||e.useClass.diDeps):e.useFactory?(r=vr(e.useFactory),n=512,o=e.deps||e.useFactory.diDeps):e.useExisting?(r=Jl,n=1024,o=[{token:e.useExisting}]):(r=Pr(e.useValue),n=128,o=[]);var i=br(o.map(function(t){return an(t)}));return{providerExpr:r,flags:n,depsExpr:i}}function sn(t){return t.identifier?vr(t.identifier):Sr(t.value)}function an(t){var e=t.isValue?Pr(t.value):sn(t.token),r=0;return t.isSkipSelf&&(r|=1),t.isOptional&&(r|=2),t.isValue&&(r|=8),0===r?e:br([Sr(r),e])}function un(t){var e=t[t.length-1];return e instanceof ao?e.hasViewContainer:e instanceof so?o(e.name)&&e.children.length?un(e.children):e.hasViewContainer:e instanceof ho}function cn(t){var r=0;switch(t){case e.ɵLifecycleHooks.AfterContentChecked:r=1048576;break;case e.ɵLifecycleHooks.AfterContentInit:r=524288;break;case e.ɵLifecycleHooks.AfterViewChecked:r=4194304;break;case e.ɵLifecycleHooks.AfterViewInit:r=2097152;break;case e.ɵLifecycleHooks.DoCheck:r=131072;break;case e.ɵLifecycleHooks.OnChanges:r=262144;break;case e.ɵLifecycleHooks.OnDestroy:r=65536;break;case e.ɵLifecycleHooks.OnInit:r=32768}return r}function ln(t,e){switch(t.type){case fo.Attribute:return br([Sr(1),Sr(t.name),Sr(t.securityContext)]);case fo.Property:return br([Sr(8),Sr(t.name),Sr(t.securityContext)]);case fo.Animation:var r=8|(e&&e.directive.isComponent?32:16);return br([Sr(r),Sr("@"+t.name),Sr(t.securityContext)]);case fo.Class:return br([Sr(2),Sr(t.name),Jl]);case fo.Style:return br([Sr(4),Sr(t.name),Sr(t.unit)])}}function pn(t){var e=Object.create(null);return t.attrs.forEach(function(t){e[t.name]=t.value}),t.directives.forEach(function(t){Object.keys(t.directive.hostAttributes).forEach(function(r){var n=t.directive.hostAttributes[r],o=e[r];e[r]=null!=o?hn(r,o,n):n})}),br(Object.keys(e).sort().map(function(t){return br([Sr(t),Sr(e[t])])}))}function hn(t,e,r){return t==Vh||t==Fh?e+" "+r:r}function fn(t,e){return Gh.callFn(e.length>10?[zh,Sr(t),Sr(1),br(e)]:[zh,Sr(t),Sr(0)].concat(e))}function dn(t,e,r){return vr(de(zu.unwrapValue)).callFn([zh,Sr(t),Sr(e),r])}function mn(t,e){return void 0===e&&(e=new Map),t.forEach(function(t){var r=new Set,n=new Set,o=void 0;t instanceof so?(mn(t.children,e),t.children.forEach(function(t){var o=e.get(t);o.staticQueryIds.forEach(function(t){return r.add(t)}),o.dynamicQueryIds.forEach(function(t){return n.add(t)})}),o=t.queryMatches):t instanceof ao&&(mn(t.children,e),t.children.forEach(function(t){var r=e.get(t);r.staticQueryIds.forEach(function(t){return n.add(t)}),r.dynamicQueryIds.forEach(function(t){return n.add(t)})}),o=t.queryMatches),o&&o.forEach(function(t){return r.add(t.queryId)}),n.forEach(function(t){return r["delete"](t)}),e.set(t,{staticQueryIds:r,dynamicQueryIds:n})}),e}function yn(t){var e=new Set,r=new Set;return Array.from(t.values()).forEach(function(t){t.staticQueryIds.forEach(function(t){return e.add(t)}),t.dynamicQueryIds.forEach(function(t){return r.add(t)})}),r.forEach(function(t){return e["delete"](t)}),{staticQueryIds:e,dynamicQueryIds:r}}function vn(t){var e=t.find(function(t){return t.directive.isComponent});if(e&&e.directive.entryComponents.length){var r=e.directive.entryComponents.map(function(t){return vr({reference:t.componentFactory})}),n=ye(zu.ComponentFactoryResolver),o={diDeps:[{isValue:!0,value:br(r)},{token:n,isSkipSelf:!0,isOptional:!0},{token:ye(zu.NgModuleRef)}],lifecycleHooks:[],reference:fe(zu.CodegenComponentFactoryResolver)};return new lo(n,!1,!0,[{token:n,multi:!1,useClass:o}],po.PrivateService,[],e.sourceSpan)}return null}function gn(t,e){return t.isAnimation?{name:"@"+t.name+"."+t.phase,target:e&&e.directive.isComponent?"component":null}:t}function _n(t,e,r){var n=0;return n|=!r||!t.staticQueryIds.has(e)&&t.dynamicQueryIds.has(e)?268435456:134217728}function bn(t,e,r,n){var o=new Zh(e,t);r.forEach(function(t){return o.addOrMergeSummary({symbol:t.symbol,metadata:t.metadata})});for(var i=0;i<o.symbols.length;i++){var s=o.symbols[i];if(t.isLibraryFile(s.filePath)){var a=t.resolveSummary(s);if(!a){var u=e.resolveSymbol(s);u&&(a={symbol:u.symbol,metadata:u.metadata})}a&&o.addOrMergeSummary(a)}}return n.forEach(function(e){if(o.addOrMergeSummary({symbol:e.type.reference,metadata:null,type:e}),e.summaryKind===Wo.NgModule){var r=e;r.exportedDirectives.concat(r.exportedPipes).forEach(function(e){var r=e.reference;if(t.isLibraryFile(r.filePath)){var n=t.resolveSummary(r);n&&o.addOrMergeSummary(n)}})}}),o.serialize()}function wn(t,e){var r=new Yh(t);return r.deserialize(e)}function Cn(t,e,r){return e.dependencies.forEach(function(e){e.valuePlaceholder.reference=t.getStaticSymbol(En(e.moduleUrl,e.isShimmed,r),e.name)}),e.statements}function En(t,e,r){return""+t+(e?".shim":"")+".ngstyle"+r}function Sn(t){if(!t.isComponent)throw new Error("Could not compile '"+E(t.type)+"' because it is not a component.")}function xn(t,e,r){var n=On(t,e,r),o=n.ngModules,i=n.symbolsMissingModule;return Pn(t,o,i,r)}function Tn(t,e,r){var n=xn(t,e,r);if(n.symbolsMissingModule&&n.symbolsMissingModule.length){var o=n.symbolsMissingModule.map(function(t){return"Cannot determine the module for class "+t.name+" in "+t.filePath+"! Add "+t.name+" to the NgModule to fix it."});throw v(o.join("\n"))}return n}function Pn(t,e,r,n){var o=new Map;e.forEach(function(t){return o.set(t.type.reference,t)});var i=new Map,s=new Map,a=new Map,u=new Map,c=new Map,l=new Set;t.forEach(function(t){var e=t.filePath;l.add(e),n.isInjectable(t)&&c.set(e,(c.get(e)||[]).concat(t))}),e.forEach(function(t){var e=t.type.reference.filePath;l.add(e),s.set(e,(s.get(e)||[]).concat(t.type.reference)),t.declaredDirectives.forEach(function(e){var r=e.reference.filePath;l.add(r),a.set(r,(a.get(r)||[]).concat(e.reference)),
+i.set(e.reference,t)}),t.declaredPipes.forEach(function(e){var r=e.reference.filePath;l.add(r),u.set(r,(u.get(r)||[]).concat(e.reference)),i.set(e.reference,t)})});var p=[];return l.forEach(function(t){var e=a.get(t)||[],r=u.get(t)||[],n=s.get(t)||[],o=c.get(t)||[];p.push({srcUrl:t,directives:e,pipes:r,ngModules:n,injectables:o})}),{ngModuleByPipeOrDirective:i,files:p,ngModules:e,symbolsMissingModule:r}}function An(t,e,r){var n=[];return e.filter(function(t){return r.isSourceFile(t)}).forEach(function(e){t.getSymbolsOf(e).forEach(function(e){var r=t.resolveSymbol(e),o=r.metadata;o&&"error"!=o.__symbolic&&n.push(r.symbol)})}),n}function On(t,e,r){var n=new Map,o=[],i=new Set,s=function(t){if(n.has(t)||!e.isSourceFile(t.filePath))return!1;var o=r.getNgModuleMetadata(t,!1);return o&&(n.set(o.type.reference,o),o.declaredDirectives.forEach(function(t){return i.add(t.reference)}),o.declaredPipes.forEach(function(t){return i.add(t.reference)}),o.transitiveModule.modules.forEach(function(t){return s(t.reference)})),!!o};t.forEach(function(t){s(t)||!r.isDirective(t)&&!r.isPipe(t)||o.push(t)});var a=o.filter(function(t){return!i.has(t)});return{ngModules:Array.from(n.values()),symbolsMissingModule:a}}function Mn(t){return"object"==typeof t&&t.name&&t.filePath}function Rn(t){return t&&"ignore"==t.__symbolic}function kn(t){switch(t.message){case"Reference to non-exported class":if(t.context&&t.context.className)return"Reference to a non-exported class "+t.context.className+". Consider exporting the class";break;case"Variable not initialized":return"Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler";case"Destructuring not supported":return"Referencing an exported destructured variable or constant is not supported by the template compiler. Consider simplifying this to avoid destructuring";case"Could not resolve type":if(t.context&&t.context.typeName)return"Could not resolve type "+t.context.typeName;break;case"Function call not supported":var e=t.context&&t.context.name?"Calling function '"+t.context.name+"', f":"F";return e+"unction calls are not supported. Consider replacing the function or lambda with a reference to an exported function";case"Reference to a local symbol":if(t.context&&t.context.name)return"Reference to a local (non-exported) symbol '"+t.context.name+"'. Consider exporting the symbol"}return t.message}function In(t){return"Error encountered resolving symbol values statically. "+kn(t)}function Nn(t,e){if(!t)return{};var r={};return Object.keys(t).forEach(function(n){var o=e(t[n],n);Rn(o)||(rf.test(n)?Object.defineProperty(r,n,{enumerable:!1,configurable:!0,value:o}):r[n]=o)}),r}function Dn(t){return null===t||"function"!=typeof t&&"object"!=typeof t}function jn(t,e,r,n){var o=new Error(t);return o.fileName=e,o.line=r,o.column=n,o}function Ln(t){return t.startsWith("___")?t.substr(1):t}function Vn(t,r){var n=r.translations||"",o=Be(),i=new yo,s=new pf(t,i),a=new lf(t,i,s),u=new of(s,a);tf.install(u);var c=new e.ɵConsole,l=new Hu(new Fu,n,r.i18nFormat,e.MissingTranslationStrategy.Warning,c),p=new ti({defaultEncapsulation:e.ViewEncapsulation.Emulated,useJit:!1,enableLegacyTemplate:r.enableLegacyTemplate!==!1}),h=new ol({get:function(e){return t.loadResource(e)}},o,l,p),f=new Us(new Ns),d=new Qp,m=new Wc(p,f,d,l,c,[]),y=new dl(p,new ll(u),new al(u),new pl(u),s,d,h,c,i,u),v={getImportAs:function(t){return a.getImportAs(t)},fileNameToModuleName:function(e,r){return t.fileNameToModuleName(e,r)},getTypeArity:function(t){return a.getTypeArity(t)}},g=new Hh(p,d),_=new Jh(p,t,y,m,new Oh(o),g,new Ep,new Up(v),s,r.locale||null,r.i18nFormat||null,r.genFilePreamble||null,a);return{compiler:_,reflector:u}}function Fn(t,e){var r=t.concat([new sp(br(e.map(function(t){return yr(t)})))]),n=new hf(null,null,null,new Map),o=new df,i=o.visitAllStatements(r,n);return null!=i?i.value:null}function Un(t,e,r,n,o){for(var i=n.createChildWihtLocalVars(),s=0;s<t.length;s++)i.vars.set(t[s],e[s]);var a=o.visitAllStatements(r,i);return a?a.value:null}function Bn(t,e,r){var n={};t.getters.forEach(function(o){n[o.name]={configurable:!1,get:function(){var n=new hf(e,this,t.name,e.vars);return Un([],[],o.body,n,r)}}}),t.methods.forEach(function(o){var i=o.params.map(function(t){return t.name});n[o.name]={writable:!1,configurable:!1,value:function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];var a=new hf(e,this,t.name,e.vars);return Un(i,n,o.body,a,r)}}});var o=t.constructorMethod.params.map(function(t){return t.name}),i=function(){for(var n=this,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var a=new hf(e,this,t.name,e.vars);t.fields.forEach(function(t){n[t.name]=void 0}),Un(o,i,t.constructorMethod.body,a,r)},s=t.parent?t.parent.visitExpression(r,e):Object;return i.prototype=Object.create(s.prototype,n),i}function Hn(t,e,r,n){return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return Un(t,o,e,r,n)}}function qn(t,r,n){var o=r.toSource()+"\n//# sourceURL="+t,i=[],s=[];for(var a in n)i.push(a),s.push(n[a]);if(e.isDevMode()){var u=(new(Function.bind.apply(Function,[void 0].concat(i.concat("return null;"))))).toString(),c=u.slice(0,u.indexOf("return null;")).split("\n").length-1;o+="\n"+r.toSourceMapGenerator(t,t,c).toJsComment()}return(new(Function.bind.apply(Function,[void 0].concat(i.concat(o))))).apply(void 0,s)}function zn(t,e,r){var n=new gf,o=Lp.createRoot(r),i=new sp(br(r.map(function(t){return yr(t)})));return n.visitAllStatements(e.concat([i]),o),qn(t,o,n.getArgs())}function Gn(t){if(!t.isComponent)throw new Error("Could not compile '"+E(t.type)+"' because it is not a component.")}function Wn(t,e,r,n,o){return new Hu(t,e,r,n.missingTranslation,o)}function $n(){e.ɵreflector.reflectionCapabilities=new e.ɵReflectionCapabilities}function Kn(t){return{useJit:Qn(t.map(function(t){return t.useJit})),defaultEncapsulation:Qn(t.map(function(t){return t.defaultEncapsulation})),providers:Xn(t.map(function(t){return t.providers})),missingTranslation:Qn(t.map(function(t){return t.missingTranslation}))}}function Qn(t){for(var e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e];return void 0}function Xn(t){var e=[];return t.forEach(function(t){return t&&e.push.apply(e,t)}),e}var Zn=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Yn=new e.Version("4.1.0"),Jn=function(){function t(t,e,r){this.value=t,this.ngContentIndex=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),to=function(){function t(t,e,r){this.value=t,this.ngContentIndex=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitBoundText(this,e)},t}(),eo=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitAttr(this,e)},t}(),ro=function(){function t(t,e,r,n,o,i){this.name=t,this.type=e,this.securityContext=r,this.value=n,this.unit=o,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===fo.Animation},enumerable:!0,configurable:!0}),t}(),no=function(){function t(t,e,r,n,o){this.name=t,this.target=e,this.phase=r,this.handler=n,this.sourceSpan=o}return t.calcFullName=function(t,e,r){return e?e+":"+t:r?"@"+t+"."+r:t},t.prototype.visit=function(t,e){return t.visitEvent(this,e)},Object.defineProperty(t.prototype,"fullName",{get:function(){return t.calcFullName(this.name,this.target,this.phase)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return!!this.phase},enumerable:!0,configurable:!0}),t}(),oo=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitReference(this,e)},t}(),io=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitVariable(this,e)},t}(),so=function(){function t(t,e,r,n,o,i,s,a,u,c,l,p,h){this.name=t,this.attrs=e,this.inputs=r,this.outputs=n,this.references=o,this.directives=i,this.providers=s,this.hasViewContainer=a,this.queryMatches=u,this.children=c,this.ngContentIndex=l,this.sourceSpan=p,this.endSourceSpan=h}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),ao=function(){function t(t,e,r,n,o,i,s,a,u,c,l){this.attrs=t,this.outputs=e,this.references=r,this.variables=n,this.directives=o,this.providers=i,this.hasViewContainer=s,this.queryMatches=a,this.children=u,this.ngContentIndex=c,this.sourceSpan=l}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}(),uo=function(){function t(t,e,r,n){this.directiveName=t,this.templateName=e,this.value=r,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitDirectiveProperty(this,e)},t}(),co=function(){function t(t,e,r,n,o,i){this.directive=t,this.inputs=e,this.hostProperties=r,this.hostEvents=n,this.contentQueryStartId=o,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),lo=function(){function t(t,e,r,n,o,i,s){this.token=t,this.multiProvider=e,this.eager=r,this.providers=n,this.providerType=o,this.lifecycleHooks=i,this.sourceSpan=s}return t.prototype.visit=function(){return null},t}(),po={};po.PublicService=0,po.PrivateService=1,po.Component=2,po.Directive=3,po.Builtin=4,po[po.PublicService]="PublicService",po[po.PrivateService]="PrivateService",po[po.Component]="Component",po[po.Directive]="Directive",po[po.Builtin]="Builtin";var ho=function(){function t(t,e,r){this.index=t,this.ngContentIndex=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitNgContent(this,e)},t}(),fo={};fo.Property=0,fo.Attribute=1,fo.Class=2,fo.Style=3,fo.Animation=4,fo[fo.Property]="Property",fo[fo.Attribute]="Attribute",fo[fo.Class]="Class",fo[fo.Style]="Style",fo[fo.Animation]="Animation";var mo=function(){function t(t,e,r){this.filePath=t,this.name=e,this.members=r}return t.prototype.assertNoMembers=function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got "+JSON.stringify(this)+".")},t}(),yo=function(){function t(){this.cache=new Map}return t.prototype.get=function(t,e,r){r=r||[];var n=r.length?"."+r.join("."):"",o='"'+t+'".'+e+n,i=this.cache.get(o);return i||(i=new mo(t,e,r),this.cache.set(o,i)),i},t}(),vo={};vo.RAW_TEXT=0,vo.ESCAPABLE_RAW_TEXT=1,vo.PARSABLE_DATA=2,vo[vo.RAW_TEXT]="RAW_TEXT",vo[vo.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",vo[vo.PARSABLE_DATA]="PARSABLE_DATA";var go={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:"‌"},_o=function(){function t(t){var e=void 0===t?{}:t,r=e.closedByChildren,n=e.requiredParents,o=e.implicitNamespacePrefix,i=e.contentType,s=void 0===i?vo.PARSABLE_DATA:i,a=e.closedByParent,u=void 0===a?!1:a,c=e.isVoid,l=void 0===c?!1:c,p=e.ignoreFirstLf,h=void 0===p?!1:p,f=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,r&&r.length>0&&r.forEach(function(t){return f.closedByChildren[t]=!0}),this.isVoid=l,this.closedByParent=u||l,n&&n.length>0&&(this.requiredParents={},this.parentToAdd=n[0],n.forEach(function(t){return f.requiredParents[t]=!0})),this.implicitNamespacePrefix=o||null,this.contentType=s,this.ignoreFirstLf=h}return t.prototype.requireExtraParent=function(t){if(!this.requiredParents)return!1;if(!t)return!0;var e=t.toLowerCase(),r="template"===e||"ng-template"===t;return!r&&1!=this.requiredParents[e]},t.prototype.isClosedByChild=function(t){return this.isVoid||t.toLowerCase()in this.closedByChildren},t}(),bo={base:new _o({isVoid:!0}),meta:new _o({isVoid:!0}),area:new _o({isVoid:!0}),embed:new _o({isVoid:!0}),link:new _o({isVoid:!0}),img:new _o({isVoid:!0}),input:new _o({isVoid:!0}),param:new _o({isVoid:!0}),hr:new _o({isVoid:!0}),br:new _o({isVoid:!0}),source:new _o({isVoid:!0}),track:new _o({isVoid:!0}),wbr:new _o({isVoid:!0}),p:new _o({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 _o({closedByChildren:["tbody","tfoot"]}),tbody:new _o({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new _o({closedByChildren:["tbody"],closedByParent:!0}),tr:new _o({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new _o({closedByChildren:["td","th"],closedByParent:!0}),th:new _o({closedByChildren:["td","th"],closedByParent:!0}),col:new _o({requiredParents:["colgroup"],isVoid:!0}),svg:new _o({implicitNamespacePrefix:"svg"}),math:new _o({implicitNamespacePrefix:"math"}),li:new _o({closedByChildren:["li"],closedByParent:!0}),dt:new _o({closedByChildren:["dt","dd"]}),dd:new _o({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new _o({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new _o({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new _o({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new _o({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new _o({closedByChildren:["optgroup"],closedByParent:!0}),option:new _o({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new _o({ignoreFirstLf:!0}),listing:new _o({ignoreFirstLf:!0}),style:new _o({contentType:vo.RAW_TEXT}),script:new _o({contentType:vo.RAW_TEXT}),title:new _o({contentType:vo.ESCAPABLE_RAW_TEXT}),textarea:new _o({contentType:vo.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},wo=new _o,Co=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),Eo=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var r,n=[],o=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},i=new t,s=i,a=!1;for(Co.lastIndex=0;r=Co.exec(e);){if(r[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new t,i.notSelectors.push(s)}if(r[2]&&s.setElement(r[2]),r[3]&&s.addClassName(r[3]),r[4]&&s.addAttribute(r[4],r[6]),r[7]&&(a=!1,s=i),r[8]){if(a)throw new Error("Multiple selectors in :not are not supported");o(n,i),i=s=new t}}return o(n,i),n},t.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},t.prototype.hasElementSelector=function(){return!!this.element},t.prototype.setElement=function(t){void 0===t&&(t=null),this.element=t},t.prototype.getMatchingElementTemplate=function(){for(var t=this.element||"div",e=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",r="",n=0;n<this.attrs.length;n+=2){var o=this.attrs[n],i=""!==this.attrs[n+1]?'="'+this.attrs[n+1]+'"':"";r+=" "+o+i}return c(t).isVoid?"<"+t+e+r+"/>":"<"+t+e+r+"></"+t+">"},t.prototype.addAttribute=function(t,e){void 0===e&&(e=""),this.attrs.push(t,e&&e.toLowerCase()||"")},t.prototype.addClassName=function(t){this.classNames.push(t.toLowerCase())},t.prototype.toString=function(){var t=this.element||"";if(this.classNames&&this.classNames.forEach(function(e){return t+="."+e}),this.attrs)for(var e=0;e<this.attrs.length;e+=2){var r=this.attrs[e],n=this.attrs[e+1];t+="["+r+(n?"="+n:"")+"]"}return this.notSelectors.forEach(function(e){return t+=":not("+e+")"}),t},t}(),So=function(){function t(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}return t.createNotMatcher=function(e){var r=new t;return r.addSelectables(e,null),r},t.prototype.addSelectables=function(t,e){var r=null;t.length>1&&(r=new xo(t),this._listContexts.push(r));for(var n=0;n<t.length;n++)this._addSelectable(t[n],e,r)},t.prototype._addSelectable=function(t,e,r){var n=this,o=t.element,i=t.classNames,s=t.attrs,a=new To(t,e,r);if(o){var u=0===s.length&&0===i.length;u?this._addTerminal(n._elementMap,o,a):n=this._addPartial(n._elementPartialMap,o)}if(i)for(var c=0;c<i.length;c++){var u=0===s.length&&c===i.length-1,l=i[c];u?this._addTerminal(n._classMap,l,a):n=this._addPartial(n._classPartialMap,l)}if(s)for(var c=0;c<s.length;c+=2){var u=c===s.length-2,p=s[c],h=s[c+1];if(u){var f=n._attrValueMap,d=f.get(p);d||(d=new Map,f.set(p,d)),this._addTerminal(d,h,a)}else{var m=n._attrValuePartialMap,y=m.get(p);y||(y=new Map,m.set(p,y)),n=this._addPartial(y,h)}}},t.prototype._addTerminal=function(t,e,r){var n=t.get(e);n||(n=[],t.set(e,n)),n.push(r)},t.prototype._addPartial=function(e,r){var n=e.get(r);return n||(n=new t,e.set(r,n)),n},t.prototype.match=function(t,e){for(var r=!1,n=t.element,o=t.classNames,i=t.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(r=this._matchTerminal(this._elementMap,n,t,e)||r,r=this._matchPartial(this._elementPartialMap,n,t,e)||r,o)for(var s=0;s<o.length;s++){var a=o[s];r=this._matchTerminal(this._classMap,a,t,e)||r,r=this._matchPartial(this._classPartialMap,a,t,e)||r}if(i)for(var s=0;s<i.length;s+=2){var u=i[s],c=i[s+1],l=this._attrValueMap.get(u);c&&(r=this._matchTerminal(l,"",t,e)||r),r=this._matchTerminal(l,c,t,e)||r;var p=this._attrValuePartialMap.get(u);c&&(r=this._matchPartial(p,"",t,e)||r),r=this._matchPartial(p,c,t,e)||r}return r},t.prototype._matchTerminal=function(t,e,r,n){if(!t||"string"!=typeof e)return!1;var o=t.get(e)||[],i=t.get("*");if(i&&(o=o.concat(i)),0===o.length)return!1;for(var s,a=!1,u=0;u<o.length;u++)s=o[u],a=s.finalize(r,n)||a;return a},t.prototype._matchPartial=function(t,e,r,n){if(!t||"string"!=typeof e)return!1;var o=t.get(e);return o?o.match(r,n):!1},t}(),xo=function(){function t(t){this.selectors=t,this.alreadyMatched=!1}return t}(),To=function(){function t(t,e,r){this.selector=t,this.cbContext=e,this.listContext=r,this.notSelectors=t.notSelectors}return t.prototype.finalize=function(t,e){var r=!0;if(this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched)){var n=So.createNotMatcher(this.notSelectors);r=!n.match(t,null)}return!r||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),r},t}(),Po="",Ao=/-+([a-z0-9])/g,Oo=function(){function t(){}return t.prototype.visitArray=function(t,e){var r=this;return t.map(function(t){return d(t,r,e)})},t.prototype.visitStringMap=function(t,e){var r=this,n={};return Object.keys(t).forEach(function(o){n[o]=d(t[o],r,e)}),n},t.prototype.visitPrimitive=function(t){return t},t.prototype.visitOther=function(t){return t},t}(),Mo=function(){function t(t,e){void 0===e&&(e=null),this.syncResult=t,this.asyncResult=e,e||(this.asyncResult=Promise.resolve(t))}return t}(),Ro="ngSyntaxError",ko=Object.getPrototypeOf({}),Io=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/,No=function(){function t(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.name=t,this.definitions=e}return t}(),Do=function(){function t(){}return t}(),jo=function(t){function e(e,r){var n=t.call(this)||this;return n.stateNameExpr=e,n.styles=r,n}return Zn(e,t),e}(Do),Lo=function(t){function e(e,r){var n=t.call(this)||this;return n.stateChangeExpr=e,n.steps=r,n}return Zn(e,t),e}(Do),Vo=function(){function t(){}return t}(),Fo=function(t){function e(e){void 0===e&&(e=[]);var r=t.call(this)||this;return r.steps=e,r}return Zn(e,t),e}(Vo),Uo=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this)||this;return n.offset=e,n.styles=r,n}return Zn(e,t),e}(Vo),Bo=function(t){function e(e,r){void 0===e&&(e=0),void 0===r&&(r=null);var n=t.call(this)||this;return n.timings=e,n.styles=r,n}return Zn(e,t),e}(Vo),Ho=function(t){function e(e){void 0===e&&(e=null);var r=t.call(this)||this;return r.steps=e,r}return Zn(e,t),e}(Vo),qo=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return Zn(e,t),e}(Ho),zo=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return Zn(e,t),e}(Ho),Go=0,Wo={};Wo.Pipe=0,Wo.Directive=1,Wo.NgModule=2,Wo.Injectable=3,Wo[Wo.Pipe]="Pipe",Wo[Wo.Directive]="Directive",Wo[Wo.NgModule]="NgModule",Wo[Wo.Injectable]="Injectable";var $o=function(){function t(t){var e=void 0===t?{}:t,r=e.moduleUrl,n=e.styles,o=e.styleUrls;this.moduleUrl=r||null,this.styles=I(n),this.styleUrls=I(o)}return t}(),Ko=function(){function t(t){var e=t.encapsulation,r=t.template,n=t.templateUrl,o=t.styles,i=t.styleUrls,s=t.externalStylesheets,a=t.animations,u=t.ngContentSelectors,c=t.interpolation,l=t.isInline;if(this.encapsulation=e,this.template=r,this.templateUrl=n,this.styles=I(o),this.styleUrls=I(i),this.externalStylesheets=I(s),this.animations=a?N(a):[],this.ngContentSelectors=u||[],c&&2!=c.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=c,this.isInline=l}return t.prototype.toSummary=function(){return{animations:this.animations.map(function(t){return t.name}),ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},t}(),Qo=function(){function t(t){var e=t.isHost,r=t.type,n=t.isComponent,o=t.selector,i=t.exportAs,s=t.changeDetection,a=t.inputs,u=t.outputs,c=t.hostListeners,l=t.hostProperties,p=t.hostAttributes,h=t.providers,f=t.viewProviders,d=t.queries,m=t.viewQueries,y=t.entryComponents,v=t.template,g=t.componentViewType,_=t.rendererType,b=t.componentFactory;this.isHost=!!e,this.type=r,this.isComponent=n,this.selector=o,this.exportAs=i,this.changeDetection=s,this.inputs=a,this.outputs=u,this.hostListeners=c,this.hostProperties=l,this.hostAttributes=p,this.providers=I(h),this.viewProviders=I(f),this.queries=I(d),this.viewQueries=I(m),this.entryComponents=I(y),this.template=v,this.componentViewType=g,this.rendererType=_,this.componentFactory=b}return t.create=function(e){var r=e.isHost,n=e.type,o=e.isComponent,i=e.selector,s=e.exportAs,a=e.changeDetection,u=e.inputs,c=e.outputs,l=e.host,h=e.providers,f=e.viewProviders,d=e.queries,m=e.viewQueries,y=e.entryComponents,v=e.template,g=e.componentViewType,_=e.rendererType,b=e.componentFactory,w={},C={},E={};null!=l&&Object.keys(l).forEach(function(t){var e=l[t],r=t.match(Io);null===r?E[t]=e:null!=r[1]?C[r[1]]=e:null!=r[2]&&(w[r[2]]=e)});var S={};null!=u&&u.forEach(function(t){var e=p(t,[t,t]);S[e[0]]=e[1]});var x={};return null!=c&&c.forEach(function(t){var e=p(t,[t,t]);x[e[0]]=e[1]}),new t({isHost:r,type:n,isComponent:!!o,selector:i,exportAs:s,changeDetection:a,inputs:S,outputs:x,hostListeners:w,hostProperties:C,hostAttributes:E,providers:h,viewProviders:f,queries:d,viewQueries:m,entryComponents:y,template:v,componentViewType:g,rendererType:_,componentFactory:b})},t.prototype.toSummary=function(){return{summaryKind:Wo.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}},t}(),Xo=function(){function t(t){var e=t.type,r=t.name,n=t.pure;this.type=e,this.name=r,this.pure=!!n}return t.prototype.toSummary=function(){return{summaryKind:Wo.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),Zo=function(){function t(t){var e=t.type,r=t.providers,n=t.declaredDirectives,o=t.exportedDirectives,i=t.declaredPipes,s=t.exportedPipes,a=t.entryComponents,u=t.bootstrapComponents,c=t.importedModules,l=t.exportedModules,p=t.schemas,h=t.transitiveModule,f=t.id;this.type=e||null,this.declaredDirectives=I(n),this.exportedDirectives=I(o),this.declaredPipes=I(i),this.exportedPipes=I(s),this.providers=I(r),this.entryComponents=I(a),this.bootstrapComponents=I(u),this.importedModules=I(c),this.exportedModules=I(l),this.schemas=I(p),this.id=f||null,this.transitiveModule=h||null}return t.prototype.toSummary=function(){var t=this.transitiveModule;return{summaryKind:Wo.NgModule,type:this.type,entryComponents:t.entryComponents,providers:t.providers,modules:t.modules,exportedDirectives:t.exportedDirectives,exportedPipes:t.exportedPipes}},t}(),Yo=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}(),Jo=function(){function t(t,e){var r=e.useClass,n=e.useValue,o=e.useExisting,i=e.useFactory,s=e.deps,a=e.multi;this.token=t,this.useClass=r||null,this.useValue=n,this.useExisting=o,this.useFactory=i||null,this.dependencies=s||null,this.multi=!!a}return t}(),ti=function(){function t(t){var r=void 0===t?{}:t,n=r.defaultEncapsulation,o=void 0===n?e.ViewEncapsulation.Emulated:n,i=r.useJit,s=void 0===i?!0:i,a=r.missingTranslation,u=r.enableLegacyTemplate;this.defaultEncapsulation=o,this.useJit=!!s,this.missingTranslation=a||null,this.enableLegacyTemplate=u!==!1}return t}(),ei=function(){function t(t,e,r,n){this.input=e,this.errLocation=r,this.ctxLocation=n,this.message="Parser Error: "+t+" "+r+" ["+e+"] in "+n}return t}(),ri=function(){function t(t,e){this.start=t,this.end=e}return t}(),ni=function(){function t(t){this.span=t}return t.prototype.visit=function(t,e){return void 0===e&&(e=null),null},t.prototype.toString=function(){return"AST"},t}(),oi=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.prefix=r,i.uninterpretedExpression=n,i.location=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitQuote(this,e)},e.prototype.toString=function(){return"Quote"},e}(ni),ii=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(ni),si=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(ni),ai=function(t){function e(e,r){var n=t.call(this,e)||this;return n.expressions=r,n}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(ni),ui=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.condition=r,i.trueExp=n,i.falseExp=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(ni),ci=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.receiver=r,o.name=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(ni),li=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.receiver=r,i.name=n,i.value=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(ni),pi=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.receiver=r,o.name=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(ni),hi=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.obj=r,o.key=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(ni),fi=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.obj=r,i.key=n,i.value=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(ni),di=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.exp=r,i.name=n,i.args=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(ni),mi=function(t){function e(e,r){var n=t.call(this,e)||this;return n.value=r,n}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(ni),yi=function(t){function e(e,r){var n=t.call(this,e)||this;return n.expressions=r,n}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(ni),vi=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.keys=r,o.values=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(ni),gi=function(t){function e(e,r,n){
+var o=t.call(this,e)||this;return o.strings=r,o.expressions=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(ni),_i=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.operation=r,i.left=n,i.right=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(ni),bi=function(t){function e(e,r){var n=t.call(this,e)||this;return n.expression=r,n}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(ni),wi=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.receiver=r,i.name=n,i.args=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(ni),Ci=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.receiver=r,i.name=n,i.args=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(ni),Ei=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.target=r,o.args=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(ni),Si=function(t){function e(e,r,n,o){var i=t.call(this,new ri(0,null==r?0:r.length))||this;return i.ast=e,i.source=r,i.location=n,i.errors=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),this.ast.visit(t,e)},e.prototype.toString=function(){return this.source+" in "+this.location},e}(ni),xi=function(){function t(t,e,r,n,o){this.span=t,this.key=e,this.keyIsVar=r,this.name=n,this.expression=o}return t}(),Ti=function(){function t(){}return t.prototype.visitBinary=function(t){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){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(){return null},t.prototype.visitInterpolation=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitKeyedRead=function(t){return t.obj.visit(this),t.key.visit(this),null},t.prototype.visitKeyedWrite=function(t){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(){return null},t.prototype.visitMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitPrefixNot=function(t){return t.expression.visit(this),null},t.prototype.visitPropertyRead=function(t){return t.receiver.visit(this),null},t.prototype.visitPropertyWrite=function(t){return t.receiver.visit(this),t.value.visit(this),null},t.prototype.visitSafePropertyRead=function(t){return t.receiver.visit(this),null},t.prototype.visitSafeMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitAll=function(t,e){var r=this;return t.forEach(function(t){return t.visit(r,e)}),null},t.prototype.visitQuote=function(){return null},t}(),Pi=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t){return t},t.prototype.visitInterpolation=function(t){return new gi(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t){return new mi(t.span,t.value)},t.prototype.visitPropertyRead=function(t){return new ci(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t){return new li(t.span,t.receiver.visit(this),t.name,t.value.visit(this))},t.prototype.visitSafePropertyRead=function(t){return new pi(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t){return new wi(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t){return new Ci(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t){return new Ei(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t){return new yi(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t){return new vi(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t){return new _i(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t){return new bi(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t){return new ui(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t){return new di(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t){return new hi(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t){return new fi(t.span,t.obj.visit(this),t.key.visit(this),t.value.visit(this))},t.prototype.visitAll=function(t){for(var e=new Array(t.length),r=0;r<t.length;++r)e[r]=t[r].visit(this);return e},t.prototype.visitChain=function(t){return new ai(t.span,this.visitAll(t.expressions))},t.prototype.visitQuote=function(t){return new oi(t.span,t.prefix,t.uninterpretedExpression,t.location)},t}(),Ai=0,Oi=9,Mi=10,Ri=11,ki=12,Ii=13,Ni=32,Di=33,ji=34,Li=35,Vi=36,Fi=37,Ui=38,Bi=39,Hi=40,qi=41,zi=42,Gi=43,Wi=44,$i=45,Ki=46,Qi=47,Xi=58,Zi=59,Yi=60,Ji=61,ts=62,es=63,rs=48,ns=57,os=65,is=69,ss=70,as=88,us=90,cs=91,ls=92,ps=93,hs=94,fs=95,ds=97,ms=101,ys=102,vs=110,gs=114,_s=116,bs=117,ws=118,Cs=120,Es=122,Ss=123,xs=124,Ts=125,Ps=160,As=96,Os=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],Ms=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(W("interpolation",e),new t(e[0],e[1])):Rs},t}(),Rs=new Ms("{{","}}"),ks={};ks.Character=0,ks.Identifier=1,ks.Keyword=2,ks.String=3,ks.Operator=4,ks.Number=5,ks.Error=6,ks[ks.Character]="Character",ks[ks.Identifier]="Identifier",ks[ks.Keyword]="Keyword",ks[ks.String]="String",ks[ks.Operator]="Operator",ks[ks.Number]="Number",ks[ks.Error]="Error";var Is=["var","let","as","null","undefined","true","false","if","else","this"],Ns=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new Ls(t),r=[],n=e.scanToken();null!=n;)r.push(n),n=e.scanToken();return r},t}();Ns.decorators=[{type:z}],Ns.ctorParameters=function(){return[]};var Ds=function(){function t(t,e,r,n){this.index=t,this.type=e,this.numValue=r,this.strValue=n}return t.prototype.isCharacter=function(t){return this.type==ks.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==ks.Number},t.prototype.isString=function(){return this.type==ks.String},t.prototype.isOperator=function(t){return this.type==ks.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==ks.Identifier},t.prototype.isKeyword=function(){return this.type==ks.Keyword},t.prototype.isKeywordLet=function(){return this.type==ks.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==ks.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==ks.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==ks.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==ks.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==ks.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==ks.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==ks.Error},t.prototype.toNumber=function(){return this.type==ks.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case ks.Character:case ks.Identifier:case ks.Keyword:case ks.Operator:case ks.String:case ks.Error:return this.strValue;case ks.Number:return this.numValue.toString();default:return null}},t}(),js=new Ds(-1,ks.Character,0,""),Ls=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?Ai:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,r=this.peek,n=this.index;Ni>=r;){if(++n>=e){r=Ai;break}r=t.charCodeAt(n)}if(this.peek=r,this.index=n,n>=e)return null;if(tt(r))return this.scanIdentifier();if(B(r))return this.scanNumber(n);var o=n;switch(r){case Ki:return this.advance(),B(this.peek)?this.scanNumber(o):$(o,Ki);case Hi:case qi:case Ss:case Ts:case cs:case ps:case Wi:case Xi:case Zi:return this.scanCharacter(o,r);case Bi:case ji:return this.scanString();case Li:case Gi:case $i:case zi:case Qi:case Fi:case hs:return this.scanOperator(o,String.fromCharCode(r));case es:return this.scanComplexOperator(o,"?",Ki,".");case Yi:case ts:return this.scanComplexOperator(o,String.fromCharCode(r),Ji,"=");case Di:case Ji:return this.scanComplexOperator(o,String.fromCharCode(r),Ji,"=",Ji,"=");case Ui:return this.scanComplexOperator(o,"&",Ui,"&");case xs:return this.scanComplexOperator(o,"|",xs,"|");case Ps:for(;U(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(r)+"]",0)},t.prototype.scanCharacter=function(t,e){return this.advance(),$(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),X(t,e)},t.prototype.scanComplexOperator=function(t,e,r,n,o,i){this.advance();var s=e;return this.peek==r&&(this.advance(),s+=n),null!=o&&this.peek==o&&(this.advance(),s+=i),X(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();rt(this.peek);)this.advance();var e=this.input.substring(t,this.index);return Is.indexOf(e)>-1?Q(t,e):K(t,e)},t.prototype.scanNumber=function(t){var e=this.index===t;for(this.advance();;){if(B(this.peek));else if(this.peek==Ki)e=!1;else{if(!nt(this.peek))break;if(this.advance(),ot(this.peek)&&this.advance(),!B(this.peek))return this.error("Invalid exponent",-1);e=!1}this.advance()}var r=this.input.substring(t,this.index),n=e?at(r):parseFloat(r);return Y(t,n)},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var r="",n=this.index,o=this.input;this.peek!=e;)if(this.peek==ls){r+=o.substring(n,this.index),this.advance();var i=void 0;if(this.peek=this.peek,this.peek==bs){var s=o.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);i=parseInt(s,16);for(var a=0;5>a;a++)this.advance()}else i=st(this.peek),this.advance();r+=String.fromCharCode(i),n=this.index}else{if(this.peek==Ai)return this.error("Unterminated quote",0);this.advance()}var u=o.substring(n,this.index);return this.advance(),Z(t,r+u)},t.prototype.error=function(t,e){var r=this.index+e;return J(r,"Lexer Error: "+t+" at column "+r+" in expression ["+this.input+"]")},t}(),Vs=function(){function t(t,e,r){this.strings=t,this.expressions=e,this.offsets=r}return t}(),Fs=function(){function t(t,e,r){this.templateBindings=t,this.warnings=e,this.errors=r}return t}(),Us=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,r){void 0===r&&(r=Rs),this._checkNoInterpolation(t,e,r);var n=this._stripComments(t),o=this._lexer.tokenize(this._stripComments(t)),i=new Bs(t,e,o,n.length,!0,this.errors,t.length-n.length).parseChain();return new Si(i,t,e,this.errors)},t.prototype.parseBinding=function(t,e,r){void 0===r&&(r=Rs);var n=this._parseBindingAst(t,e,r);return new Si(n,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,r){void 0===r&&(r=Rs);var n=this._parseBindingAst(t,e,r),o=Hs.check(n);return o.length>0&&this._reportError("Host binding expression cannot contain "+o.join(" "),t,e),new Si(n,t,e,this.errors)},t.prototype._reportError=function(t,e,r,n){this.errors.push(new ei(t,e,r,n))},t.prototype._parseBindingAst=function(t,e,r){var n=this._parseQuote(t,e);if(null!=n)return n;this._checkNoInterpolation(t,e,r);var o=this._stripComments(t),i=this._lexer.tokenize(o);return new Bs(t,e,i,o.length,!1,this.errors,t.length-o.length).parseChain()},t.prototype._parseQuote=function(t,e){if(null==t)return null;var r=t.indexOf(":");if(-1==r)return null;var n=t.substring(0,r).trim();if(!et(n))return null;var o=t.substring(r+1);return new oi(new ri(0,t.length),n,o,e)},t.prototype.parseTemplateBindings=function(t,e,r){var n=this._lexer.tokenize(e);if(t){var o=this._lexer.tokenize(t).map(function(t){return t.index=0,t});n.unshift.apply(n,o)}return new Bs(e,r,n,e.length,!1,this.errors,0).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,r){void 0===r&&(r=Rs);var n=this.splitInterpolation(t,e,r);if(null==n)return null;for(var o=[],i=0;i<n.expressions.length;++i){var s=n.expressions[i],a=this._stripComments(s),u=this._lexer.tokenize(this._stripComments(n.expressions[i])),c=new Bs(t,e,u,a.length,!1,this.errors,n.offsets[i]+(s.length-a.length)).parseChain();o.push(c)}return new Si(new gi(new ri(0,null==t?0:t.length),n.strings,o),t,e,this.errors)},t.prototype.splitInterpolation=function(t,e,r){void 0===r&&(r=Rs);var n=ut(r),o=t.split(n);if(o.length<=1)return null;for(var i=[],s=[],a=[],u=0,c=0;c<o.length;c++){var l=o[c];c%2===0?(i.push(l),u+=l.length):l.trim().length>0?(u+=r.start.length,s.push(l),a.push(u),u+=l.length+r.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",t,"at column "+this._findInterpolationErrorColumn(o,c,r)+" in",e),s.push("$implict"),a.push(u))}return new Vs(i,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new Si(new mi(new ri(0,null==t?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return null!=e?t.substring(0,e).trim():t},t.prototype._commentStart=function(t){for(var e=null,r=0;r<t.length-1;r++){var n=t.charCodeAt(r),o=t.charCodeAt(r+1);if(n===Qi&&o==Qi&&null==e)return r;e===n?e=null:null==e&&it(n)&&(e=n)}return null},t.prototype._checkNoInterpolation=function(t,e,r){var n=ut(r),o=t.split(n);o.length>1&&this._reportError("Got interpolation ("+r.start+r.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(o,1,r)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,r){for(var n="",o=0;e>o;o++)n+=o%2===0?t[o]:""+r.start+t[o]+r.end;return n.length},t}();Us.decorators=[{type:z}],Us.ctorParameters=function(){return[{type:Ns}]};var Bs=function(){function t(t,e,r,n,o,i,s){this.input=t,this.location=e,this.tokens=r,this.inputLength=n,this.parseAction=o,this.errors=i,this.offset=s,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.index=0}return t.prototype.peek=function(t){var e=this.index+t;return e<this.tokens.length?this.tokens[e]:js},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 ri(t,this.inputIndex)},t.prototype.advance=function(){this.index++},t.prototype.optionalCharacter=function(t){return this.next.isCharacter(t)?(this.advance(),!0):!1},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):!1},t.prototype.expectOperator=function(t){this.optionalOperator(t)||this.error("Missing expected operator "+t)},t.prototype.expectIdentifierOrKeyword=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier or keyword"),"")},t.prototype.expectIdentifierOrKeywordOrString=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()||t.isString()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier, keyword, or string"),"")},t.prototype.parseChain=function(){for(var t=[],e=this.inputIndex;this.index<this.tokens.length;){var r=this.parsePipe();if(t.push(r),this.optionalCharacter(Zi))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(Zi););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==t.length?new ii(this.span(e)):1==t.length?t[0]:new ai(this.span(e),t)},t.prototype.parsePipe=function(){var t=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var e=this.expectIdentifierOrKeyword(),r=[];this.optionalCharacter(Xi);)r.push(this.parseExpression());t=new di(this.span(t.span.start),t,e,r)}while(this.optionalOperator("|"))}return t},t.prototype.parseExpression=function(){return this.parseConditional()},t.prototype.parseConditional=function(){var t=this.inputIndex,e=this.parseLogicalOr();if(this.optionalOperator("?")){var r=this.parsePipe(),n=void 0;if(this.optionalCharacter(Xi))n=this.parsePipe();else{var o=this.inputIndex,i=this.input.substring(t,o);this.error("Conditional expression "+i+" requires all 3 expressions"),n=new ii(this.span(t))}return new ui(this.span(t),e,r,n)}return e},t.prototype.parseLogicalOr=function(){for(var t=this.parseLogicalAnd();this.optionalOperator("||");){var e=this.parseLogicalAnd();t=new _i(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 _i(this.span(t.span.start),"&&",t,e)}return t},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==ks.Operator;){var e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();var r=this.parseRelational();t=new _i(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==ks.Operator;){var e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();var r=this.parseAdditive();t=new _i(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==ks.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var r=this.parseMultiplicative();t=new _i(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==ks.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var r=this.parsePrefix();t=new _i(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==ks.Operator){var t=this.inputIndex,e=this.next.strValue,r=void 0;switch(e){case"+":return this.advance(),this.parsePrefix();case"-":return this.advance(),r=this.parsePrefix(),new _i(this.span(t),e,new mi(new ri(t,t),0),r);case"!":return this.advance(),r=this.parsePrefix(),new bi(this.span(t),r)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(Ki))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(cs)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(ps),this.optionalOperator("=")){var r=this.parseConditional();t=new fi(this.span(t.span.start),t,e,r)}else t=new hi(this.span(t.span.start),t,e)}else{if(!this.optionalCharacter(Hi))return t;this.rparensExpected++;var n=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(qi),t=new Ei(this.span(t.span.start),t,n)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(Hi)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(qi),e}if(this.next.isKeywordNull())return this.advance(),new mi(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new mi(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new mi(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new mi(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new si(this.span(t));if(this.optionalCharacter(cs)){this.rbracketsExpected++;var r=this.parseExpressionList(ps);return this.rbracketsExpected--,this.expectCharacter(ps),new yi(this.span(t),r)}if(this.next.isCharacter(Ss))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new si(this.span(t)),!1);if(this.next.isNumber()){var n=this.next.toNumber();return this.advance(),new mi(this.span(t),n)}if(this.next.isString()){var o=this.next.toString();return this.advance(),new mi(this.span(t),o)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new ii(this.span(t))):(this.error("Unexpected token "+this.next),new ii(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do e.push(this.parsePipe());while(this.optionalCharacter(Wi));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],r=this.inputIndex;if(this.expectCharacter(Ss),!this.optionalCharacter(Ts)){this.rbracesExpected++;do{var n=this.expectIdentifierOrKeywordOrString();t.push(n),this.expectCharacter(Xi),e.push(this.parsePipe())}while(this.optionalCharacter(Wi));this.rbracesExpected--,this.expectCharacter(Ts)}return new vi(this.span(r),t,e)},t.prototype.parseAccessMemberOrMethodCall=function(t,e){void 0===e&&(e=!1);var r=t.span.start,n=this.expectIdentifierOrKeyword();if(this.optionalCharacter(Hi)){this.rparensExpected++;var o=this.parseCallArguments();this.expectCharacter(qi),this.rparensExpected--;var i=this.span(r);return e?new Ci(i,t,n,o):new wi(i,t,n,o)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new ii(this.span(r))):new pi(this.span(r),t,n);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new ii(this.span(r));var s=this.parseConditional();return new li(this.span(r),t,n,s)}return new ci(this.span(r),t,n)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(qi))return[];var t=[];do t.push(this.parsePipe());while(this.optionalCharacter(Wi));return t},t.prototype.expectTemplateBindingKey=function(){var t="",e=!1;do t+=this.expectIdentifierOrKeywordOrString(),e=this.optionalOperator("-"),e&&(t+="-");while(e);return t.toString()},t.prototype.parseTemplateBindings=function(){for(var t=[],e=null,r=[];this.index<this.tokens.length;){var n=this.inputIndex,o=this.peekKeywordLet();o&&this.advance();var i=this.expectTemplateBindingKey(),s=i;o||(null==e?e=s:s=e+s[0].toUpperCase()+s.substring(1)),this.optionalCharacter(Xi);var a=null,u=null;if(o)a=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.peekKeywordAs()){var c=this.inputIndex;this.advance(),a=i,s=this.expectTemplateBindingKey(),o=!0}else if(this.next!==js&&!this.peekKeywordLet()){var l=this.inputIndex,p=this.parsePipe(),h=this.input.substring(l-this.offset,this.inputIndex-this.offset);u=new Si(p,h,this.location,this.errors)}if(t.push(new xi(this.span(n),s,o,a,u)),this.peekKeywordAs()&&!o){var c=this.inputIndex;this.advance();var f=this.expectTemplateBindingKey();t.push(new xi(this.span(c),f,!0,s,null))}this.optionalCharacter(Zi)||this.optionalCharacter(Wi)}return new Fs(t,r,this.errors)},t.prototype.error=function(t,e){void 0===e&&(e=null),this.errors.push(new ei(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(Zi)&&(this.rparensExpected<=0||!t.isCharacter(qi))&&(this.rbracesExpected<=0||!t.isCharacter(Ts))&&(this.rbracketsExpected<=0||!t.isCharacter(ps));)this.next.isError()&&this.errors.push(new ei(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next},t}(),Hs=function(){function t(){this.errors=[]}return t.check=function(e){var r=new t;return e.visit(r),r.errors},t.prototype.visitImplicitReceiver=function(){},t.prototype.visitInterpolation=function(){},t.prototype.visitLiteralPrimitive=function(){},t.prototype.visitPropertyRead=function(){},t.prototype.visitPropertyWrite=function(){},t.prototype.visitSafePropertyRead=function(){},t.prototype.visitMethodCall=function(){},t.prototype.visitSafeMethodCall=function(){},t.prototype.visitFunctionCall=function(){},t.prototype.visitLiteralArray=function(t){this.visitAll(t.expressions)},t.prototype.visitLiteralMap=function(t){this.visitAll(t.values)},t.prototype.visitBinary=function(){},t.prototype.visitPrefixNot=function(){},t.prototype.visitConditional=function(){},t.prototype.visitPipe=function(){this.errors.push("pipes")},t.prototype.visitKeyedRead=function(){},t.prototype.visitKeyedWrite=function(){},t.prototype.visitAll=function(t){var e=this;return t.map(function(t){return t.visit(e)})},t.prototype.visitChain=function(){},t.prototype.visitQuote=function(){},t}(),qs=function(){function t(t,e,r,n){this.file=t,this.offset=e,this.line=r,this.col=n}return t.prototype.toString=function(){return null!=this.offset?this.file.url+"@"+this.line+":"+this.col:this.file.url},t.prototype.moveBy=function(e){for(var r=this.file.content,n=r.length,o=this.offset,i=this.line,s=this.col;o>0&&0>e;){o--,e++;var a=r.charCodeAt(o);if(a==Mi){i--;var u=r.substr(0,o-1).lastIndexOf(String.fromCharCode(Mi));s=u>0?o-u:o}else s--}for(;n>o&&e>0;){var a=r.charCodeAt(o);o++,e--,a==Mi?(i++,s=0):s++}return new t(this.file,o,i,s)},t.prototype.getContext=function(t,e){var r=this.file.content,n=this.offset;if(null!=n){n>r.length-1&&(n=r.length-1);for(var o=n,i=0,s=0;t>i&&n>0&&(n--,i++,"\n"!=r[n]||++s!=e););for(i=0,s=0;t>i&&o<r.length-1&&(o++,i++,"\n"!=r[o]||++s!=e););return{before:r.substring(n,this.offset),after:r.substring(this.offset,o+1)}}return null},t}(),zs=function(){function t(t,e){this.content=t,this.url=e}return t}(),Gs=function(){function t(t,e,r){void 0===r&&(r=null),this.start=t,this.end=e,this.details=r}return t.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},t}(),Ws={};Ws.WARNING=0,Ws.ERROR=1,Ws[Ws.WARNING]="WARNING",Ws[Ws.ERROR]="ERROR";var $s=function(){function t(t,e,r){void 0===r&&(r=Ws.ERROR),this.span=t,this.msg=e,this.level=r}return t.prototype.toString=function(){var t=this.span.start.getContext(100,3),e=t?' ("'+t.before+"["+Ws[this.level]+" ->]"+t.after+'")':"",r=this.span.details?", "+this.span.details:"";return""+this.msg+e+": "+this.span.start+r},t}(),Ks=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Qs=function(){function t(t,e,r,n,o){this.switchValue=t,this.type=e,this.cases=r,this.sourceSpan=n,this.switchValueSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitExpansion(this,e)},t}(),Xs=function(){function t(t,e,r,n,o){this.value=t,this.expression=e,this.sourceSpan=r,this.valueSourceSpan=n,this.expSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitExpansionCase(this,e)},t}(),Zs=function(){function t(t,e,r,n){this.name=t,this.value=e,this.sourceSpan=r,this.valueSpan=n}return t.prototype.visit=function(t,e){return t.visitAttribute(this,e)},t}(),Ys=function(){function t(t,e,r,n,o,i){void 0===o&&(o=null),void 0===i&&(i=null),this.name=t,this.attrs=e,this.children=r,this.sourceSpan=n,this.startSourceSpan=o,this.endSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),Js=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}(),ta={};ta.TAG_OPEN_START=0,ta.TAG_OPEN_END=1,ta.TAG_OPEN_END_VOID=2,ta.TAG_CLOSE=3,ta.TEXT=4,ta.ESCAPABLE_RAW_TEXT=5,ta.RAW_TEXT=6,ta.COMMENT_START=7,ta.COMMENT_END=8,ta.CDATA_START=9,ta.CDATA_END=10,ta.ATTR_NAME=11,ta.ATTR_VALUE=12,ta.DOC_TYPE=13,ta.EXPANSION_FORM_START=14,ta.EXPANSION_CASE_VALUE=15,ta.EXPANSION_CASE_EXP_START=16,ta.EXPANSION_CASE_EXP_END=17,ta.EXPANSION_FORM_END=18,ta.EOF=19,ta[ta.TAG_OPEN_START]="TAG_OPEN_START",ta[ta.TAG_OPEN_END]="TAG_OPEN_END",ta[ta.TAG_OPEN_END_VOID]="TAG_OPEN_END_VOID",ta[ta.TAG_CLOSE]="TAG_CLOSE",ta[ta.TEXT]="TEXT",ta[ta.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",ta[ta.RAW_TEXT]="RAW_TEXT",ta[ta.COMMENT_START]="COMMENT_START",ta[ta.COMMENT_END]="COMMENT_END",ta[ta.CDATA_START]="CDATA_START",ta[ta.CDATA_END]="CDATA_END",ta[ta.ATTR_NAME]="ATTR_NAME",ta[ta.ATTR_VALUE]="ATTR_VALUE",ta[ta.DOC_TYPE]="DOC_TYPE",ta[ta.EXPANSION_FORM_START]="EXPANSION_FORM_START",ta[ta.EXPANSION_CASE_VALUE]="EXPANSION_CASE_VALUE",ta[ta.EXPANSION_CASE_EXP_START]="EXPANSION_CASE_EXP_START",ta[ta.EXPANSION_CASE_EXP_END]="EXPANSION_CASE_EXP_END",ta[ta.EXPANSION_FORM_END]="EXPANSION_FORM_END",ta[ta.EOF]="EOF";var ea=function(){function t(t,e,r){this.type=t,this.parts=e,this.sourceSpan=r}return t}(),ra=function(t){function e(e,r,n){var o=t.call(this,n,e)||this;return o.tokenType=r,o}return Zn(e,t),e}($s),na=function(){function t(t,e){this.tokens=t,this.errors=e}return t}(),oa=/\r\n?/g,ia=function(){function t(t){this.error=t}return t}(),sa=function(){function t(t,e,r,n){void 0===n&&(n=Rs),this._file=t,this._getTagDefinition=e,this._tokenizeIcu=r,this._interpolationConfig=n,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=t.content,this._length=t.content.length,this._advance()}return t.prototype._processCarriageReturns=function(t){return t.replace(oa,"\n")},t.prototype.tokenize=function(){for(;this._peek!==Ai;){var t=this._getLocation();try{this._attemptCharCode(Yi)?this._attemptCharCode(Di)?this._attemptCharCode(cs)?this._consumeCdata(t):this._attemptCharCode($i)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(Qi)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){if(!(e instanceof ia))throw e;this.errors.push(e.error)}}return this._beginToken(ta.EOF),this._endToken([]),new na(Et(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(_t(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(bt(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._peek===Ts){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},t.prototype._getLocation=function(){return new qs(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 Gs(t,e)},t.prototype._beginToken=function(t,e){void 0===e&&(e=this._getLocation()),this._currentTokenStart=e,this._currentTokenType=t},t.prototype._endToken=function(t,e){void 0===e&&(e=this._getLocation());var r=new ea(this._currentTokenType,t,new Gs(this._currentTokenStart,e));return this.tokens.push(r),this._currentTokenStart=null,this._currentTokenType=null,r},t.prototype._createError=function(t,e){this._isInExpansionForm()&&(t+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');
 
-this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,t.transitiveModule.modules.forEach(function(t){var e={token:{identifier:t},useClass:t};Ee([e],po.PublicService,!0,r,n._errors,n._allProviders)}),Ee(t.transitiveModule.providers.map(function(t){return t.provider}).concat(e),po.PublicService,!1,r,this._errors,this._allProviders)}return t.prototype.parse=function(){var t=this;if(Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.token,e.eager)}),this._errors.length>0){var e=this._errors.join("\n");throw new Error("Provider parse errors:\n"+e)}return Array.from(this._transformedProviders.values())},t.prototype._getOrCreateLocalProvider=function(t,e){var r=this,n=this._allProviders.get(R(t));if(!n)return null;var o=this._transformedProviders.get(R(t));if(o)return o;if(null!=this._seenProviders.get(R(t)))return this._errors.push(new Qu("Cannot instantiate cyclic dependency! "+M(t),n.sourceSpan)),null;this._seenProviders.set(R(t),!0);var i=n.providers.map(function(t){var o=t.useValue,i=t.useExisting,s=void 0;if(null!=t.useExisting){var a=r._getDependency({token:t.useExisting},e,n.sourceSpan);null!=a.token?i=a.token:(i=null,o=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;s=u.map(function(t){return r._getDependency(t,e,n.sourceSpan)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return r._getDependency(t,e,n.sourceSpan)})}return be(t,{useExisting:i,useValue:o,deps:s})});return o=we(n,{eager:e,providers:i}),this._transformedProviders.set(R(t),o),o},t.prototype._getDependency=function(t,e,r){void 0===e&&(e=!1);var n=!1;t.isSkipSelf||null==t.token||(R(t.token)===fe(zu.Injector)||R(t.token)===fe(zu.ComponentFactoryResolver)?n=!0:null!=this._getOrCreateLocalProvider(t.token,e)&&(n=!0));var o=t;return t.isSelf&&!n&&(t.isOptional?o={isValue:!0,value:null}:this._errors.push(new Qu("No provider for "+M(t.token),r))),o},t}(),Ju=function(){function t(){}return t.prototype.hasProperty=function(){},t.prototype.hasElement=function(){},t.prototype.securityContext=function(){},t.prototype.allKnownElementNames=function(){},t.prototype.getMappedPropName=function(){},t.prototype.getDefaultComponentElementName=function(){},t.prototype.validateProperty=function(){},t.prototype.validateAttribute=function(){},t.prototype.normalizeAnimationStyleProperty=function(){},t.prototype.normalizeAnimationStyleValue=function(){},t}(),tc=function(){function t(t,e){this.style=t,this.styleUrls=e}return t}(),ec=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,rc=/\/\*.+?\*\//g,nc=/^([^:\/?#]+):/,oc=".",ic="attr",sc="class",ac="style",uc="animate-",cc={};cc.DEFAULT=0,cc.LITERAL_ATTR=1,cc.ANIMATION=2,cc[cc.DEFAULT]="DEFAULT",cc[cc.LITERAL_ATTR]="LITERAL_ATTR",cc[cc.ANIMATION]="ANIMATION";var lc=function(){function t(t,e,r,n){this.name=t,this.expression=e,this.type=r,this.sourceSpan=n}return Object.defineProperty(t.prototype,"isLiteral",{get:function(){return this.type===cc.LITERAL_ATTR},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===cc.ANIMATION},enumerable:!0,configurable:!0}),t}(),pc=function(){function t(t,e,r,n,o){var i=this;this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=r,this._targetErrors=o,this.pipesByName=new Map,this._usedPipes=new Map,n.forEach(function(t){return i.pipesByName.set(t.name,t)})}return t.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},t.prototype.createDirectiveHostPropertyAsts=function(t,e,r){var n=this;if(t.hostProperties){var o=[];return Object.keys(t.hostProperties).forEach(function(e){var i=t.hostProperties[e];"string"==typeof i?n.parsePropertyBinding(e,i,!0,r,[],o):n._reportError('Value of the host property binding "'+e+'" needs to be a string representing an expression but got "'+i+'" ('+typeof i+")",r)}),o.map(function(t){return n.createElementPropertyAst(e,t)})}return null},t.prototype.createDirectiveHostEventAsts=function(t,e){var r=this;if(t.hostListeners){var n=[];return Object.keys(t.hostListeners).forEach(function(o){var i=t.hostListeners[o];"string"==typeof i?r.parseEvent(o,i,e,[],n):r._reportError('Value of the host listener "'+o+'" needs to be a string representing an expression but got "'+i+'" ('+typeof i+")",e)}),n}return null},t.prototype.parseInterpolation=function(t,e){var r=e.start.toString();try{var n=this._exprParser.parseInterpolation(t,r,this._interpolationConfig);return n&&this._reportExpressionParserErrors(n.errors,e),this._checkPipes(n,e),n}catch(o){return this._reportError(""+o,e),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype.parseInlineTemplateBinding=function(t,e,r,n,o,i){for(var s=this._parseTemplateBindings(t,e,r),a=0;a<s.length;a++){var u=s[a];u.keyIsVar?i.push(new io(u.key,u.name,r)):u.expression?this._parsePropertyAst(u.key,u.expression,r,n,o):(n.push([u.key,""]),this.parseLiteralAttr(u.key,null,r,n,o))}},t.prototype._parseTemplateBindings=function(t,e,r){var n=this,o=r.start.toString();try{var i=this._exprParser.parseTemplateBindings(t,e,o);return this._reportExpressionParserErrors(i.errors,r),i.templateBindings.forEach(function(t){t.expression&&n._checkPipes(t.expression,r)}),i.warnings.forEach(function(t){n._reportError(t,r,Ws.WARNING)}),i.templateBindings}catch(s){return this._reportError(""+s,r),[]}},t.prototype.parseLiteralAttr=function(t,e,r,n,o){Oe(t)?(t=t.substring(1),e&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',r,Ws.ERROR),this._parseAnimation(t,e,r,n,o)):o.push(new lc(t,this._exprParser.wrapLiteralPrimitive(e,""),cc.LITERAL_ATTR,r))},t.prototype.parsePropertyBinding=function(t,e,r,n,o,i){var s=!1;t.startsWith(uc)?(s=!0,t=t.substring(uc.length)):Oe(t)&&(s=!0,t=t.substring(1)),s?this._parseAnimation(t,e,n,o,i):this._parsePropertyAst(t,this._parseBinding(e,r,n),n,o,i)},t.prototype.parsePropertyInterpolation=function(t,e,r,n,o){var i=this.parseInterpolation(e,r);return i?(this._parsePropertyAst(t,i,r,n,o),!0):!1},t.prototype._parsePropertyAst=function(t,e,r,n,o){n.push([t,e.source]),o.push(new lc(t,e,cc.DEFAULT,r))},t.prototype._parseAnimation=function(t,e,r,n,o){var i=this._parseBinding(e||"null",!1,r);n.push([t,i.source]),o.push(new lc(t,i,cc.ANIMATION,r))},t.prototype._parseBinding=function(t,e,r){var n=r.start.toString();try{var o=e?this._exprParser.parseSimpleBinding(t,n,this._interpolationConfig):this._exprParser.parseBinding(t,n,this._interpolationConfig);return o&&this._reportExpressionParserErrors(o.errors,r),this._checkPipes(o,r),o}catch(i){return this._reportError(""+i,r),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype.createElementPropertyAst=function(t,r){if(r.isAnimation)return new ro(r.name,fo.Animation,e.SecurityContext.NONE,r.expression,null,r.sourceSpan);var n=null,o=void 0,i=null,s=r.name.split(oc),a=void 0;if(s.length>1)if(s[0]==ic){i=s[1],this._validatePropertyOrAttributeName(i,r.sourceSpan,!0),a=Me(this._schemaRegistry,t,i,!0);var c=i.indexOf(":");if(c>-1){var l=i.substring(0,c),p=i.substring(c+1);i=u(l,p)}o=fo.Attribute}else s[0]==sc?(i=s[1],o=fo.Class,a=[e.SecurityContext.NONE]):s[0]==ac&&(n=s.length>2?s[2]:null,i=s[1],o=fo.Style,a=[e.SecurityContext.STYLE]);return null===i&&(i=this._schemaRegistry.getMappedPropName(r.name),a=Me(this._schemaRegistry,t,i,!1),o=fo.Property,this._validatePropertyOrAttributeName(i,r.sourceSpan,!1)),new ro(i,o,a[0],r.expression,n,r.sourceSpan)},t.prototype.parseEvent=function(t,e,r,n,o){Oe(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,r,o)):this._parseEvent(t,e,r,n,o)},t.prototype._parseAnimationEvent=function(t,e,r,n){var o=h(t,[t,""]),i=o[0],s=o[1].toLowerCase();if(s)switch(s){case"start":case"done":var a=this._parseAction(e,r);n.push(new no(i,null,s,a,r));break;default:this._reportError('The provided animation output phase value "'+s+'" for "@'+i+'" is not supported (use start or done)',r)}else this._reportError("The animation trigger output event (@"+i+") is missing its phase value name (start or done are currently supported)",r)},t.prototype._parseEvent=function(t,e,r,n,o){var i=p(t,[null,t]),s=i[0],a=i[1],u=this._parseAction(e,r);n.push([t,u.source]),o.push(new no(a,s,null,u,r))},t.prototype._parseAction=function(t,e){var r=e.start.toString();try{var n=this._exprParser.parseAction(t,r,this._interpolationConfig);return n&&this._reportExpressionParserErrors(n.errors,e),!n||n.ast instanceof ii?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",r)):(this._checkPipes(n,e),n)}catch(o){return this._reportError(""+o,e),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype._reportError=function(t,e,r){void 0===r&&(r=Ws.ERROR),this._targetErrors.push(new $s(e,t,r))},t.prototype._reportExpressionParserErrors=function(t,e){for(var r=0,n=t;r<n.length;r++){var o=n[r];this._reportError(o.message,e)}},t.prototype._checkPipes=function(t,e){var r=this;if(t){var n=new hc;t.visit(n),n.pipes.forEach(function(t,n){var o=r.pipesByName.get(n);o?r._usedPipes.set(n,o):r._reportError("The pipe '"+n+"' could not be found",new Gs(e.start.moveBy(t.span.start),e.start.moveBy(t.span.end)))})}},t.prototype._validatePropertyOrAttributeName=function(t,e,r){var n=r?this._schemaRegistry.validateAttribute(t):this._schemaRegistry.validateProperty(t);n.error&&this._reportError(n.msg,e,Ws.ERROR)},t}(),hc=function(t){function e(){var e=t.apply(this,arguments)||this;return e.pipes=new Map,e}return Zn(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}(Ti),fc="select",dc="link",mc="rel",yc="href",vc="stylesheet",gc="style",_c="script",bc="ngNonBindable",wc="ngProjectAs",Cc={};Cc.NG_CONTENT=0,Cc.STYLE=1,Cc.STYLESHEET=2,Cc.SCRIPT=3,Cc.OTHER=4,Cc[Cc.NG_CONTENT]="NG_CONTENT",Cc[Cc.STYLE]="STYLE",Cc[Cc.STYLESHEET]="STYLESHEET",Cc[Cc.SCRIPT]="SCRIPT",Cc[Cc.OTHER]="OTHER";var Ec=function(){function t(t,e,r,n,o){this.type=t,this.selectAttr=e,this.hrefAttr=r,this.nonBindable=n,this.projectAs=o}return t}(),Sc=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,xc=1,Tc=2,Pc=3,Ac=4,Oc=5,Mc=6,Rc=7,kc=8,Ic=9,Nc=10,Dc="template",jc="template",Lc="*",Vc="class",Fc=Eo.parse("*")[0],Uc="The <template> element is deprecated. Use <ng-template> instead",Hc="The template attribute is deprecated. Use an ng-template element instead.",Bc={},qc=new e.InjectionToken("TemplateTransforms"),zc=function(t){function e(e,r,n){return t.call(this,r,e,n)||this}return Zn(e,t),e}($s),Gc=function(){function t(t,e,r){this.templateAst=t,this.usedPipes=e,this.errors=r}return t}(),Wc=function(){function t(t,e,r,n,o,i){this._config=t,this._exprParser=e,this._schemaRegistry=r,this._htmlParser=n,this._console=o,this.transforms=i}return t.prototype.parse=function(t,e,r,n,o,i){var s=this.tryParse(t,e,r,n,o,i),a=s.errors.filter(function(t){return t.level===Ws.WARNING}).filter(Ie([Hc,Uc])),u=s.errors.filter(function(t){return t.level===Ws.ERROR});if(a.length>0&&this._console.warn("Template parse warnings:\n"+a.join("\n")),u.length>0){var c=u.join("\n");throw v("Template parse errors:\n"+c)}return{template:s.templateAst,pipes:s.usedPipes}},t.prototype.tryParse=function(t,e,r,n,o,i){return this.tryParseHtml(this.expandHtml(this._htmlParser.parse(e,i,!0,this.getInterpolationConfig(t))),t,r,n,o)},t.prototype.tryParseHtml=function(t,e,n,o,i){var s,a=t.errors,u=[];if(t.rootNodes.length>0){var c=Le(n),l=Le(o),p=new Xu(e),h=void 0;e.template&&e.template.interpolation&&(h={start:e.template.interpolation[0],end:e.template.interpolation[1]});var f=new pc(this._exprParser,h,this._schemaRegistry,l,a),d=new $c(this._config,p,c,f,this._schemaRegistry,i,a);s=lt(d,t.rootNodes,Zc),a.push.apply(a,p.errors),u.push.apply(u,f.getUsedPipes())}else s=[];return this._assertNoReferenceDuplicationOnTemplate(s,a),a.length>0?new Gc(s,u,a):(this.transforms&&this.transforms.forEach(function(t){s=r(t,s)}),new Gc(s,u,a))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var r=t.errors;if(0==r.length||e){var n=ve(t.rootNodes);r.push.apply(r,n.errors),t=new ua(n.nodes,r)}return t},t.prototype.getInterpolationConfig=function(t){return t.template?Ms.fromArray(t.template.interpolation):void 0},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,e){var r=[];t.filter(function(t){return!!t.references}).forEach(function(t){return t.references.forEach(function(t){var n=t.name;if(r.indexOf(n)<0)r.push(n);else{var o=new zc('Reference "#'+n+'" is defined several times',t.sourceSpan,Ws.ERROR);e.push(o)}})})},t}();Wc.decorators=[{type:z}],Wc.ctorParameters=function(){return[{type:ti},{type:Us},{type:Ju},{type:Bu},{type:e.ɵConsole},{type:Array,decorators:[{type:e.Optional},{type:e.Inject,args:[qc]}]}]};var $c=function(){function t(t,e,r,n,o,i,s){var a=this;this.config=t,this.providerViewContext=e,this._bindingParser=n,this._schemaRegistry=o,this._schemas=i,this._targetErrors=s,this.selectorMatcher=new So,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=e.component.viewQueries.length+1,r.forEach(function(t,e){var r=Eo.parse(t.selector);a.selectorMatcher.addSelectables(r,t),a.directivesIndex.set(t,e)})}return t.prototype.visitExpansion=function(){return null},t.prototype.visitExpansionCase=function(){return null},t.prototype.visitText=function(t,e){var r=e.findNgContentIndex(Fc),n=this._bindingParser.parseInterpolation(t.value,t.sourceSpan);return n?new to(n,r,t.sourceSpan):new Jn(t.value,r,t.sourceSpan)},t.prototype.visitAttribute=function(t){return new eo(t.name,t.value,t.sourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitElement=function(t,e){var r=this,n=this.contentQueryStartId,o=t.name,i=Re(t);if(i.type===Cc.SCRIPT||i.type===Cc.STYLE)return null;if(i.type===Cc.STYLESHEET&&Pe(i.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=!1,m=[],y=Fe(t,this.config.enableLegacyTemplate,function(t,e){return r._reportError(t,e,Ws.WARNING)});t.attrs.forEach(function(t){var e,n,o=r._parseAttr(y,t,s,a,l,u,c),i=r._normalizeAttributeName(t.name);r.config.enableLegacyTemplate&&i==jc?(r._reportError(Hc,t.sourceSpan,Ws.WARNING),e=t.value):i.startsWith(Lc)&&(e=t.value,n=i.substring(Lc.length)+":");var v=null!=e;v&&(d&&r._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),d=!0,r._bindingParser.parseInlineTemplateBinding(n,e,t.sourceSpan,h,p,f)),o||v||(m.push(r.visitAttribute(t,null)),s.push([t.name,t.value]))});var v=De(o,s),g=this._parseDirectives(this.selectorMatcher,v),_=g.directives,b=g.matchElement,w=[],C=new Set,E=this._createDirectiveAsts(y,t.name,_,a,u,t.sourceSpan,w,C),S=this._createElementPropertyAsts(t.name,a,C),x=e.isTemplateElement||d,T=new Zu(this.providerViewContext,e.providerContext,x,E,m,w,y,n,t.sourceSpan),P=lt(i.nonBindable?Yc:this,t.children,Xc.create(y,E,y?e.providerContext:T));T.afterElement();var A,O=null!=i.projectAs?Eo.parse(i.projectAs)[0]:v,M=e.findNgContentIndex(O);if(i.type===Cc.NG_CONTENT)t.children&&!t.children.every(je)&&this._reportError("<ng-content> element cannot have content.",t.sourceSpan),A=new ho(this.ngContentCount++,d?null:M,t.sourceSpan);else if(y)this._assertAllEventsPublishedByDirectives(E,l),this._assertNoComponentsNorElementBindingsOnTemplate(E,S,t.sourceSpan),A=new ao(m,l,w,c,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:M,t.sourceSpan);else{this._assertElementExists(b,t),this._assertOnlyOneComponent(E,t.sourceSpan);var R=d?null:e.findNgContentIndex(O);A=new so(o,m,S,l,w,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:R,t.sourceSpan,t.endSourceSpan||null)}if(d){var k=this.contentQueryStartId,I=De(Dc,h),N=this._parseDirectives(this.selectorMatcher,I).directives,D=new Set,j=this._createDirectiveAsts(!0,t.name,N,p,[],t.sourceSpan,[],D),L=this._createElementPropertyAsts(t.name,p,D);this._assertNoComponentsNorElementBindingsOnTemplate(j,L,t.sourceSpan);var V=new Zu(this.providerViewContext,e.providerContext,e.isTemplateElement,j,[],[],!0,k,t.sourceSpan);V.afterElement(),A=new ao([],[],[],f,V.transformedDirectiveAsts,V.transformProviders,V.transformedHasViewContainer,V.queryMatches,[A],M,t.sourceSpan)}return A},t.prototype._parseAttr=function(t,e,r,n,o,i,s){var a=this._normalizeAttributeName(e.name),u=e.value,c=e.sourceSpan,l=a.match(Sc),p=!1;if(null!==l)if(p=!0,null!=l[xc])this._bindingParser.parsePropertyBinding(l[Rc],u,!1,c,r,n);else if(l[Tc])if(t){var h=l[Rc];this._parseVariable(h,u,c,s)}else this._reportError('"let-" is only supported on template elements.',c);else if(l[Pc]){var h=l[Rc];this._parseReference(h,u,c,i)}else l[Ac]?this._bindingParser.parseEvent(l[Rc],u,c,r,o):l[Oc]?(this._bindingParser.parsePropertyBinding(l[Rc],u,!1,c,r,n),this._parseAssignmentEvent(l[Rc],u,c,r,o)):l[Mc]?this._bindingParser.parseLiteralAttr(a,u,c,r,n):l[kc]?(this._bindingParser.parsePropertyBinding(l[kc],u,!1,c,r,n),this._parseAssignmentEvent(l[kc],u,c,r,o)):l[Ic]?this._bindingParser.parsePropertyBinding(l[Ic],u,!1,c,r,n):l[Nc]&&this._bindingParser.parseEvent(l[Nc],u,c,r,o);else p=this._bindingParser.parsePropertyInterpolation(a,u,c,r,n);return p||this._bindingParser.parseLiteralAttr(a,u,c,r,n),p},t.prototype._normalizeAttributeName=function(t){return/^data-/i.test(t)?t.substring(5):t},t.prototype._parseVariable=function(t,e,r,n){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',r),n.push(new io(t,e,r))},t.prototype._parseReference=function(t,e,r,n){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',r),n.push(new Qc(t,e,r))},t.prototype._parseAssignmentEvent=function(t,e,r,n,o){this._bindingParser.parseEvent(t+"Change",e+"=$event",r,n,o)},t.prototype._parseDirectives=function(t,e){var r=this,n=new Array(this.directivesIndex.size),o=!1;return t.match(e,function(t,e){n[r.directivesIndex.get(e)]=e,o=o||t.hasElementSelector()}),{directives:n.filter(function(t){return!!t}),matchElement:o}},t.prototype._createDirectiveAsts=function(t,e,r,n,o,i,s,a){var u=this,c=new Set,l=null,p=r.map(function(t){var r=new Gs(i.start,i.end,"Directive "+E(t.type));t.isComponent&&(l=t);var p=[],h=u._bindingParser.createDirectiveHostPropertyAsts(t,e,r);h=u._checkPropertiesInSchema(e,h);var f=u._bindingParser.createDirectiveHostEventAsts(t,r);u._createDirectivePropertyAsts(t.inputs,n,p,a),o.forEach(function(e){(0===e.value.length&&t.isComponent||t.exportAs==e.value)&&(s.push(new oo(e.name,me(t.type),e.sourceSpan)),c.add(e.name))});var d=u.contentQueryStartId;return u.contentQueryStartId+=t.queries.length,new co(t,p,h,f,d,r)});return o.forEach(function(e){if(e.value.length>0)c.has(e.name)||u._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!l){var r=null;t&&(r=ye(zu.TemplateRef)),s.push(new oo(e.name,r,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,r,n){if(t){var o=new Map;e.forEach(function(t){var e=o.get(t.name);(!e||e.isLiteral)&&o.set(t.name,t)}),Object.keys(t).forEach(function(e){var i=t[e],s=o.get(i);s&&(n.add(s.name),Ve(s.expression)||r.push(new uo(e,s.name,s.expression,s.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(t,e,r){var n=this,o=[];return e.forEach(function(e){e.isLiteral||r.has(e.name)||o.push(n._bindingParser.createElementPropertyAst(t,e))}),this._checkPropertiesInSchema(t,o)},t.prototype._findComponentDirectives=function(t){return t.filter(function(t){return t.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(t){return this._findComponentDirectives(t).map(function(t){return E(t.directive.type)})},t.prototype._assertOnlyOneComponent=function(t,e){var r=this._findComponentDirectiveNames(t);r.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: "+r.join(","),e)},t.prototype._assertElementExists=function(t,e){var r=e.name.replace(/^:xhtml:/,"");if(!t&&!this._schemaRegistry.hasElement(r,this._schemas)){var n="'"+r+"' is not a known element:\n";n+="1. If '"+r+"' is an Angular component, then verify that it is part of this module.\n",n+=r.indexOf("-")>-1?"2. If '"+r+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.":"2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",this._reportError(n,e.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,r){var n=this,o=this._findComponentDirectiveNames(t);o.length>0&&this._reportError("Components on an embedded template: "+o.join(","),r),e.forEach(function(t){n._reportError("Property binding "+t.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".',r)})},t.prototype._assertAllEventsPublishedByDirectives=function(t,e){var r=this,n=new Set;t.forEach(function(t){Object.keys(t.directive.outputs).forEach(function(e){var r=t.directive.outputs[e];n.add(r)})}),e.forEach(function(t){null==t.target&&n.has(t.name)||r._reportError("Event binding "+t.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".',t.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(t,e){var r=this;return e.filter(function(e){if(e.type===fo.Property&&!r._schemaRegistry.hasProperty(t,e.name,r._schemas)){var n="Can't bind to '"+e.name+"' since it isn't a known property of '"+t+"'.";t.startsWith("ng-")?n+="\n1. If '"+e.name+"' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.":t.indexOf("-")>-1&&(n+="\n1. If '"+t+"' is an Angular component and it has '"+e.name+"' input, then verify that it is part of this module."+("\n2. If '"+t+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.")+"\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component."),r._reportError(n,e.sourceSpan)}return!Ve(e.value)})},t.prototype._reportError=function(t,e,r){void 0===r&&(r=Ws.ERROR),this._targetErrors.push(new $s(e,t,r))},t}(),Kc=function(){function t(){}return t.prototype.visitElement=function(t,e){var r=Re(t);if(r.type===Cc.SCRIPT||r.type===Cc.STYLE||r.type===Cc.STYLESHEET)return null;var n=t.attrs.map(function(t){return[t.name,t.value]}),o=De(t.name,n),i=e.findNgContentIndex(o),s=lt(this,t.children,Zc);return new so(t.name,lt(this,t.attrs),[],[],[],[],[],!1,[],s,i,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitAttribute=function(t){return new eo(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var r=e.findNgContentIndex(Fc);return new Jn(t.value,r,t.sourceSpan)},t.prototype.visitExpansion=function(t){return t},t.prototype.visitExpansionCase=function(t){return t},t}(),Qc=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t}(),Xc=function(){function t(t,e,r,n){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=r,this.providerContext=n}return t.create=function(e,r,n){var o=new So,i=null,s=r.find(function(t){return t.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u<a.length;u++){var c=a[u];"*"===c?i=u:o.addSelectables(Eo.parse(a[u]),u)}return new t(e,o,i,n)},t.prototype.findNgContentIndex=function(t){var e=[];return this._ngContentIndexMatcher.match(t,function(t,r){e.push(r)}),e.sort(),null!=this._wildcardNgContentIndex&&e.push(this._wildcardNgContentIndex),e.length>0?e[0]:null},t}(),Zc=new Xc(!0,new So,null,null),Yc=new Kc,Jc=function(){function t(){}return t.prototype.get=function(){return null},t}(),tl={provide:e.PACKAGE_ROOT_URL,useValue:"/"},el=function(){function t(t){void 0===t&&(t=null),this._packagePrefix=t}return t.prototype.resolve=function(t,e){var r=e;null!=t&&t.length>0&&(r=$e(t,r));var n=ze(r),o=this._packagePrefix;if(null!=o&&null!=n&&"package"==n[nl.Scheme]){var i=n[nl.Path];return o=o.replace(/\/+$/,""),i=i.replace(/^\/+/,""),o+"/"+i}return r},t}();el.decorators=[{type:z}],el.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.PACKAGE_ROOT_URL]}]}]};var rl=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),nl={};nl.Scheme=1,nl.UserInfo=2,nl.Domain=3,nl.Port=4,nl.Path=5,nl.QueryData=6,nl.Fragment=7,nl[nl.Scheme]="Scheme",nl[nl.UserInfo]="UserInfo",nl[nl.Domain]="Domain",nl[nl.Port]="Port",nl[nl.Path]="Path",nl[nl.QueryData]="QueryData",nl[nl.Fragment]="Fragment";var ol=function(){function t(t,e,r,n){this._resourceLoader=t,this._urlResolver=e,this._htmlParser=r,this._config=n,this._resourceLoaderCache=new Map}return t.prototype.clearCache=function(){this._resourceLoaderCache.clear()},t.prototype.clearCacheFor=function(t){var e=this;if(t.isComponent){var r=t.template;this._resourceLoaderCache["delete"](r.templateUrl),r.externalStylesheets.forEach(function(t){e._resourceLoaderCache["delete"](t.moduleUrl)})}},t.prototype._fetch=function(t){var e=this._resourceLoaderCache.get(t);return e||(e=this._resourceLoader.get(t),this._resourceLoaderCache.set(t,e)),e},t.prototype.normalizeTemplate=function(t){var r=this,n=null,o=void 0;if(m(t.template)){if(m(t.templateUrl))throw v("'"+e.ɵstringify(t.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof t.template)throw v("The template specified for component "+e.ɵstringify(t.componentType)+" is not a string");n=this.normalizeTemplateSync(t),o=Promise.resolve(n)}else{if(!m(t.templateUrl))throw v("No template specified for component "+e.ɵstringify(t.componentType));if("string"!=typeof t.templateUrl)throw v("The templateUrl specified for component "+e.ɵstringify(t.componentType)+" is not a string");o=this.normalizeTemplateAsync(t)}return n&&0===n.styleUrls.length?new Mo(n):new Mo(null,o.then(function(t){return r.normalizeExternalStylesheets(t)}))},t.prototype.normalizeTemplateSync=function(t){return this.normalizeLoadedTemplate(t,t.template,t.moduleUrl)},t.prototype.normalizeTemplateAsync=function(t){var e=this,r=this._urlResolver.resolve(t.moduleUrl,t.templateUrl);return this._fetch(r).then(function(n){return e.normalizeLoadedTemplate(t,n,r)})},t.prototype.normalizeLoadedTemplate=function(t,r,n){var o=!!t.template,i=Ms.fromArray(t.interpolation),s=this._htmlParser.parse(r,j({reference:t.ngModuleType},{type:{reference:t.componentType}},{isInline:o,templateUrl:n}),!0,i);if(s.errors.length>0){var a=s.errors.join("\n");throw v("Template parse errors:\n"+a)}var u=this.normalizeStylesheet(new $o({styles:t.styles,styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})),c=new il;lt(c,s.rootNodes);var l=this.normalizeStylesheet(new $o({styles:c.styles,styleUrls:c.styleUrls,moduleUrl:n})),p=t.encapsulation;null==p&&(p=this._config.defaultEncapsulation);var h=u.styles.concat(l.styles),f=u.styleUrls.concat(l.styleUrls);return p===e.ViewEncapsulation.Emulated&&0===h.length&&0===f.length&&(p=e.ViewEncapsulation.None),new Ko({encapsulation:p,template:r,templateUrl:n,styles:h,styleUrls:f,ngContentSelectors:c.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:o,externalStylesheets:[]})},t.prototype.normalizeExternalStylesheets=function(t){return this._loadMissingExternalStylesheets(t.styleUrls).then(function(e){return new Ko({encapsulation:t.encapsulation,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,externalStylesheets:e,ngContentSelectors:t.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:t.isInline})})},t.prototype._loadMissingExternalStylesheets=function(t,e){var r=this;return void 0===e&&(e=new Map),Promise.all(t.filter(function(t){return!e.has(t)}).map(function(t){return r._fetch(t).then(function(n){var o=r.normalizeStylesheet(new $o({styles:[n],moduleUrl:t}));return e.set(t,o),r._loadMissingExternalStylesheets(o.styleUrls,e)})})).then(function(){return Array.from(e.values())})},t.prototype.normalizeStylesheet=function(t){var e=this,r=t.moduleUrl,n=t.styleUrls.filter(Pe).map(function(t){return e._urlResolver.resolve(r,t)}),o=t.styles.map(function(t){var o=Ae(e._urlResolver,r,t);return n.push.apply(n,o.styleUrls),o.style});return new $o({styles:o,styleUrls:n,moduleUrl:r})},t}();ol.decorators=[{type:z}],ol.ctorParameters=function(){return[{type:Jc},{type:el},{type:Fu},{type:ti}]};var il=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t){var e=Re(t);switch(e.type){case Cc.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(e.selectAttr);break;case Cc.STYLE:var r="";t.children.forEach(function(t){t instanceof Ks&&(r+=t.value)}),this.styles.push(r);break;case Cc.STYLESHEET:this.styleUrls.push(e.hrefAttr)}return e.nonBindable&&this.ngNonBindableStackCount++,lt(this,t.children),e.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t){lt(this,t.cases)},t.prototype.visitExpansionCase=function(t){lt(this,t.expression)},t.prototype.visitComment=function(){return null},t.prototype.visitAttribute=function(){return null},t.prototype.visitText=function(){return null},t}(),sl=void 0||Object.assign||function(t){for(var e,r=1,n=arguments.length;n>r;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},al=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isDirective=function(t){var r=this._reflector.annotations(e.resolveForwardRef(t));return r&&r.some(Ke)},t.prototype.resolve=function(t,r){void 0===r&&(r=!0);var n=this._reflector.annotations(e.resolveForwardRef(t));if(n){var o=Qe(n,Ke);if(o){var i=this._reflector.propMetadata(t);return this._mergeWithPropertyMetadata(o,i,t)}}if(r)throw new Error("No Directive annotation found on "+e.ɵstringify(t));return null},t.prototype._mergeWithPropertyMetadata=function(t,r,n){var o=[],i=[],s={},a={};return Object.keys(r).forEach(function(t){var n=Qe(r[t],function(t){return t instanceof e.Input});n&&o.push(n.bindingPropertyName?t+": "+n.bindingPropertyName:t);var u=Qe(r[t],function(t){return t instanceof e.Output});u&&i.push(u.bindingPropertyName?t+": "+u.bindingPropertyName:t);var c=r[t].filter(function(t){return t&&t instanceof e.HostBinding});c.forEach(function(e){if(e.hostPropertyName){var r=e.hostPropertyName[0];if("("===r)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===r)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");s["["+e.hostPropertyName+"]"]=t}else s["["+t+"]"]=t});var l=r[t].filter(function(t){return t&&t instanceof e.HostListener});l.forEach(function(e){var r=e.args||[];s["("+e.eventName+")"]=t+"("+r.join(",")+")"});var p=Qe(r[t],function(t){return t instanceof e.Query});p&&(a[t]=p)}),this._merge(t,o,i,s,a,n)},t.prototype._extractPublicName=function(t){return p(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,r=[],n=t.length-1;n>=0;n--){var o=t[n],i=this._extractPublicName(o);e.has(i)||(e.add(i),r.push(o))}return r.reverse()},t.prototype._merge=function(t,r,n,o,i){var s=this._dedupeBindings(t.inputs?t.inputs.concat(r):r),a=this._dedupeBindings(t.outputs?t.outputs.concat(n):n),u=t.host?sl({},t.host,o):o,c=t.queries?sl({},t.queries,i):i;
+var r=new ra(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new ia(r)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(ht(Ai),this._getSpan());this._peek===Mi?(this._line++,this._column=0):this._peek!==Mi&&this._peek!==Ii&&this._column++,this._index++,this._peek=this._index>=this._length?Ai:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?Ai:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t?(this._advance(),!0):!1},t.prototype._attemptCharCodeCaseInsensitive=function(t){return wt(this._peek,t)?(this._advance(),!0):!1},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(ht(this._peek),this._getSpan(e,e))},t.prototype._attemptStr=function(t){var e=t.length;if(this._index+e>this._length)return!1;for(var r=this._savePosition(),n=0;e>n;n++)if(!this._attemptCharCode(t.charCodeAt(n)))return this._restorePosition(r),!1;return!0},t.prototype._attemptStrCaseInsensitive=function(t){for(var e=0;e<t.length;e++)if(!this._attemptCharCodeCaseInsensitive(t.charCodeAt(e)))return!1;return!0},t.prototype._requireStr=function(t){var e=this._getLocation();if(!this._attemptStr(t))throw this._createError(ht(this._peek),this._getSpan(e))},t.prototype._attemptCharCodeUntilFn=function(t){for(;!t(this._peek);)this._advance()},t.prototype._requireCharCodeUntilFn=function(t,e){var r=this._getLocation();if(this._attemptCharCodeUntilFn(t),this._index-r.offset<e)throw this._createError(ht(this._peek),this._getSpan(r,r))},t.prototype._attemptUntilChar=function(t){for(;this._peek!==t;)this._advance()},t.prototype._readChar=function(t){if(t&&this._peek===Ui)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(Li)){var e=this._savePosition();if(this._attemptCharCodeUntilFn(gt),this._peek!=Zi)return this._restorePosition(e),"&";this._advance();var r=this._input.substring(t.offset+1,this._index-1),n=go[r];if(!n)throw this._createError(ft(r),this._getSpan(t));return n}var o=this._attemptCharCode(Cs)||this._attemptCharCode(as),i=this._getLocation().offset;if(this._attemptCharCodeUntilFn(vt),this._peek!=Zi)throw this._createError(ht(this._peek),this._getSpan());this._advance();var s=this._input.substring(i,this._index-1);try{var a=parseInt(s,o?16:10);return String.fromCharCode(a)}catch(u){var c=this._input.substring(t.offset+1,this._index-1);throw this._createError(ft(c),this._getSpan(t))}},t.prototype._consumeRawText=function(t,e,r){var n,o=this._getLocation();this._beginToken(t?ta.ESCAPABLE_RAW_TEXT:ta.RAW_TEXT,o);for(var i=[];;){if(n=this._getLocation(),this._attemptCharCode(e)&&r())break;for(this._index>n.offset&&i.push(this._input.substring(n.offset,this._index));this._peek!==e;)i.push(this._readChar(t))}return this._endToken([this._processCarriageReturns(i.join(""))],n)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(ta.COMMENT_START,t),this._requireCharCode($i),this._endToken([]);var r=this._consumeRawText(!1,$i,function(){return e._attemptStr("->")});this._beginToken(ta.COMMENT_END,r.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(ta.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var r=this._consumeRawText(!1,ps,function(){return e._attemptStr("]>")});this._beginToken(ta.CDATA_END,r.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(ta.DOC_TYPE,t),this._attemptUntilChar(ts),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t=this._index,e=null;this._peek!==Xi&&!yt(this._peek);)this._advance();var r;this._peek===Xi?(this._advance(),e=this._input.substring(t,this._index-1),r=this._index):r=t,this._requireCharCodeUntilFn(mt,this._index===r?1:0);var n=this._input.substring(r,this._index);return[e,n]},t.prototype._consumeTagOpen=function(t){var e,r,n=this._savePosition();try{if(!H(this._peek))throw this._createError(ht(this._peek),this._getSpan());var o=this._index;for(this._consumeTagOpenStart(t),e=this._input.substring(o,this._index),r=e.toLowerCase(),this._attemptCharCodeUntilFn(dt);this._peek!==Qi&&this._peek!==ts;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(dt),this._attemptCharCode(Ji)&&(this._attemptCharCodeUntilFn(dt),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(dt);this._consumeTagOpenEnd()}catch(i){if(i instanceof ia)return this._restorePosition(n),this._beginToken(ta.TEXT,t),void this._endToken(["<"]);throw i}var s=this._getTagDefinition(e).contentType;s===vo.RAW_TEXT?this._consumeRawTextWithTagClose(r,!1):s===vo.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var r=this,n=this._consumeRawText(e,Yi,function(){return r._attemptCharCode(Qi)?(r._attemptCharCodeUntilFn(dt),r._attemptStrCaseInsensitive(t)?(r._attemptCharCodeUntilFn(dt),r._attemptCharCode(ts)):!1):!1});this._beginToken(ta.TAG_CLOSE,n.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(ta.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(ta.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){this._beginToken(ta.ATTR_VALUE);var t;if(this._peek===Bi||this._peek===ji){var e=this._peek;this._advance();for(var r=[];this._peek!==e;)r.push(this._readChar(!0));t=r.join(""),this._advance()}else{var n=this._index;this._requireCharCodeUntilFn(mt,1),t=this._input.substring(n,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(Qi)?ta.TAG_OPEN_END_VOID:ta.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(ts),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(ta.TAG_CLOSE,t),this._attemptCharCodeUntilFn(dt);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(dt),this._requireCharCode(ts),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(ta.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(Ss),this._endToken([]),this._expansionCaseStack.push(ta.EXPANSION_FORM_START),this._beginToken(ta.RAW_TEXT,this._getLocation());var t=this._readUntil(Wi);this._endToken([t],this._getLocation()),this._requireCharCode(Wi),this._attemptCharCodeUntilFn(dt),this._beginToken(ta.RAW_TEXT,this._getLocation());var e=this._readUntil(Wi);this._endToken([e],this._getLocation()),this._requireCharCode(Wi),this._attemptCharCodeUntilFn(dt)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(ta.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(Ss).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(dt),this._beginToken(ta.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(Ss),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(dt),this._expansionCaseStack.push(ta.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(ta.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(Ts),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(dt),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(ta.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(Ts),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(ta.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(this._peek===Yi||this._peek===Ai)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(_t(this._input,this._index,this._interpolationConfig))return!0;if(this._peek===Ts&&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]===ta.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===ta.EXPANSION_FORM_START},t}(),aa=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.elementName=e,o}return Zn(e,t),e.create=function(t,r,n){return new e(t,r,n)},e}($s),ua=function(){function t(t,e){this.rootNodes=t,this.errors=e}return t}(),ca=function(){function t(t){this.getTagDefinition=t}return t.prototype.parse=function(t,e,r,n){void 0===r&&(r=!1),void 0===n&&(n=Rs);var o=pt(t,e,this.getTagDefinition,r,n),i=new la(o.tokens,this.getTagDefinition).build();return new ua(i.rootNodes,o.errors.concat(i.errors))},t}(),la=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!==ta.EOF;)this._peek.type===ta.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===ta.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===ta.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===ta.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===ta.TEXT||this._peek.type===ta.RAW_TEXT||this._peek.type===ta.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===ta.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new ua(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(){this._consumeText(this._advance()),this._advanceIf(ta.CDATA_END)},t.prototype._consumeComment=function(t){var e=this._advanceIf(ta.RAW_TEXT);this._advanceIf(ta.COMMENT_END);var r=null!=e?e.parts[0].trim():null;this._addToParent(new Js(r,t.sourceSpan))},t.prototype._consumeExpansion=function(t){for(var e=this._advance(),r=this._advance(),n=[];this._peek.type===ta.EXPANSION_CASE_VALUE;){var o=this._parseExpansionCase();if(!o)return;n.push(o)}if(this._peek.type!==ta.EXPANSION_FORM_END)return void this._errors.push(aa.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));var i=new Gs(t.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new Qs(e.parts[0],r.parts[0],n,i,e.sourceSpan)),this._advance()},t.prototype._parseExpansionCase=function(){var e=this._advance();if(this._peek.type!==ta.EXPANSION_CASE_EXP_START)return this._errors.push(aa.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var r=this._advance(),n=this._collectExpansionExpTokens(r);if(!n)return null;var o=this._advance();n.push(new ea(ta.EOF,[],o.sourceSpan));var i=new t(n,this.getTagDefinition).build();if(i.errors.length>0)return this._errors=this._errors.concat(i.errors),null;var s=new Gs(e.sourceSpan.start,o.sourceSpan.end),a=new Gs(r.sourceSpan.start,o.sourceSpan.end);return new Xs(e.parts[0],i.rootNodes,s,e.sourceSpan,a)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],r=[ta.EXPANSION_CASE_EXP_START];;){if((this._peek.type===ta.EXPANSION_FORM_START||this._peek.type===ta.EXPANSION_CASE_EXP_START)&&r.push(this._peek.type),this._peek.type===ta.EXPANSION_CASE_EXP_END){if(!St(r,ta.EXPANSION_CASE_EXP_START))return this._errors.push(aa.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(r.pop(),0==r.length)return e}if(this._peek.type===ta.EXPANSION_FORM_END){if(!St(r,ta.EXPANSION_FORM_START))return this._errors.push(aa.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.pop()}if(this._peek.type===ta.EOF)return this._errors.push(aa.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;e.push(this._advance())}},t.prototype._consumeText=function(t){var e=t.parts[0];if(e.length>0&&"\n"==e[0]){var r=this._getParentElement();null!=r&&0==r.children.length&&this.getTagDefinition(r.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new Ks(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){if(this._elementStack.length>0){var t=this._elementStack[this._elementStack.length-1];this.getTagDefinition(t.name).isVoid&&this._elementStack.pop()}},t.prototype._consumeStartTag=function(t){for(var e=t.parts[0],r=t.parts[1],n=[];this._peek.type===ta.ATTR_NAME;)n.push(this._consumeAttr(this._advance()));var o=this._getElementFullName(e,r,this._getParentElement()),i=!1;if(this._peek.type===ta.TAG_OPEN_END_VOID){this._advance(),i=!0;var s=this.getTagDefinition(o);s.canSelfClose||null!==a(o)||s.isVoid||this._errors.push(aa.create(o,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===ta.TAG_OPEN_END&&(this._advance(),i=!1);var u=this._peek.sourceSpan.start,c=new Gs(t.sourceSpan.start,u),l=new Ys(o,n,[],c,c,void 0);this._pushElement(l),i&&(this._popElement(o),l.endSourceSpan=c)},t.prototype._pushElement=function(t){if(this._elementStack.length>0){var e=this._elementStack[this._elementStack.length-1];this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop()}var r=this.getTagDefinition(t.name),n=this._getParentElementSkippingContainers(),o=n.parent,i=n.container;if(o&&r.requireExtraParent(o.name)){var s=new Ys(r.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(o,i,s)}this._addToParent(t),this._elementStack.push(t)},t.prototype._consumeEndTag=function(t){var e=this._getElementFullName(t.parts[0],t.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=t.sourceSpan),this.getTagDefinition(e).isVoid)this._errors.push(aa.create(e,t.sourceSpan,'Void elements do not have end tags "'+t.parts[1]+'"'));else if(!this._popElement(e)){var r='Unexpected closing tag "'+e+'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags';this._errors.push(aa.create(e,t.sourceSpan,r))}},t.prototype._popElement=function(t){for(var e=this._elementStack.length-1;e>=0;e--){var r=this._elementStack[e];if(r.name==t)return this._elementStack.splice(e,this._elementStack.length-e),!0;if(!this.getTagDefinition(r.name).closedByParent)return!1}return!1},t.prototype._consumeAttr=function(t){var e=u(t.parts[0],t.parts[1]),r=t.sourceSpan.end,n="",o=void 0;if(this._peek.type===ta.ATTR_VALUE){var i=this._advance();n=i.parts[0],r=i.sourceSpan.end,o=i.sourceSpan}return new Zs(e,n,new Gs(t.sourceSpan.start,r),o)},t.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},t.prototype._getParentElementSkippingContainers=function(){for(var t=null,e=this._elementStack.length-1;e>=0;e--){if(!o(this._elementStack[e].name))return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:this._elementStack[this._elementStack.length-1],container:t}},t.prototype._addToParent=function(t){var e=this._getParentElement();null!=e?e.children.push(t):this._rootNodes.push(t)},t.prototype._insertBeforeContainer=function(t,e,r){if(e){if(t){var n=t.children.indexOf(e);t.children[n]=r}else this._rootNodes.push(r);r.children.push(e),this._elementStack.splice(this._elementStack.indexOf(e),0,r)}else this._addToParent(r),this._elementStack.push(r)},t.prototype._getElementFullName=function(t,e,r){return null==t&&(t=this.getTagDefinition(e).implicitNamespacePrefix,null==t&&null!=r&&(t=a(r.name))),u(t,e)},t}(),pa=function(){function t(t,e,r,n,o,i){this.nodes=t,this.placeholders=e,this.placeholderToMessage=r,this.meaning=n,this.description=o,this.id=i,this.sources=t.length?[{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}]:[]}return t}(),ha=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),fa=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),da=function(){function t(t,e,r,n){this.expression=t,this.type=e,this.cases=r,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitIcu(this,e)},t}(),ma=function(){function t(t,e,r,n,o,i,s){this.tag=t,this.attrs=e,this.startName=r,this.closeName=n,this.children=o,this.isVoid=i,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),ya=function(){function t(t,e,r){this.value=t,this.name=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitPlaceholder(this,e)},t}(),va=function(){function t(t,e,r){this.value=t,this.name=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitIcuPlaceholder(this,e)},t}(),ga=function(){function t(){}return t.prototype.visitText=function(t){return new ha(t.value,t.sourceSpan)},t.prototype.visitContainer=function(t,e){var r=this,n=t.children.map(function(t){return t.visit(r,e)});return new fa(n,t.sourceSpan)},t.prototype.visitIcu=function(t,e){var r=this,n={};Object.keys(t.cases).forEach(function(o){return n[o]=t.cases[o].visit(r,e)});var o=new da(t.expression,t.type,n,t.sourceSpan);return o.expressionPlaceholder=t.expressionPlaceholder,o},t.prototype.visitTagPlaceholder=function(t,e){var r=this,n=t.children.map(function(t){return t.visit(r,e)});return new ma(t.tag,t.attrs,t.startName,t.closeName,n,t.isVoid,t.sourceSpan)},t.prototype.visitPlaceholder=function(t){return new ya(t.value,t.name,t.sourceSpan)},t.prototype.visitIcuPlaceholder=function(t){return new va(t.value,t.name,t.sourceSpan)},t}(),_a=function(){function t(){}return t.prototype.visitText=function(){},t.prototype.visitContainer=function(t){var e=this;t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitIcu=function(t){var e=this;Object.keys(t.cases).forEach(function(r){t.cases[r].visit(e)})},t.prototype.visitTagPlaceholder=function(t){var e=this;t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitPlaceholder=function(){},t.prototype.visitIcuPlaceholder=function(){},t}(),ba={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"},wa=function(){function t(){this._placeHolderNameCounts={},this._signatureToName={}}return t.prototype.getStartTagPlaceholderName=function(t,e,r){var n=this._hashTag(t,e,r);if(this._signatureToName[n])return this._signatureToName[n];var o=t.toUpperCase(),i=ba[o]||"TAG_"+o,s=this._generateUniqueName(r?i:"START_"+i);return this._signatureToName[n]=s,s},t.prototype.getCloseTagPlaceholderName=function(t){var e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];var r=t.toUpperCase(),n=ba[r]||"TAG_"+r,o=this._generateUniqueName("CLOSE_"+n);return this._signatureToName[e]=o,o},t.prototype.getPlaceholderName=function(t,e){var r=t.toUpperCase(),n="PH: "+r+"="+e;if(this._signatureToName[n])return this._signatureToName[n];var o=this._generateUniqueName(r);return this._signatureToName[n]=o,o},t.prototype.getUniquePlaceholder=function(t){return this._generateUniqueName(t.toUpperCase())},t.prototype._hashTag=function(t,e,r){var n="<"+t,o=Object.keys(e).sort().map(function(t){return" "+t+"="+e[t]}).join(""),i=r?"/>":"></"+t+">";return n+o+i},t.prototype._hashClosingTag=function(t){return this._hashTag("/"+t,{},!1)},t.prototype._generateUniqueName=function(t){var e=this._placeHolderNameCounts.hasOwnProperty(t);if(!e)return this._placeHolderNameCounts[t]=1,t;var r=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=r+1,t+"_"+r},t}(),Ca=new Us(new Ns),Ea=function(){function t(t,e){this._expressionParser=t,this._interpolationConfig=e}return t.prototype.toI18nMessage=function(t,e,r,n){this._isIcu=1==t.length&&t[0]instanceof Qs,this._icuDepth=0,this._placeholderRegistry=new wa,this._placeholderToContent={},this._placeholderToMessage={};var o=lt(this,t,{});return new pa(o,this._placeholderToContent,this._placeholderToMessage,e,r,n)},t.prototype.visitElement=function(t){var e=lt(this,t.children),r={};t.attrs.forEach(function(t){r[t.name]=t.value});var n=c(t.name).isVoid,o=this._placeholderRegistry.getStartTagPlaceholderName(t.name,r,n);this._placeholderToContent[o]=t.sourceSpan.toString();var i="";return n||(i=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[i]="</"+t.name+">"),new ma(t.name,r,o,i,e,n,t.sourceSpan)},t.prototype.visitAttribute=function(t){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitText=function(t){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitExpansion=function(e){var r=this;this._icuDepth++;var n={},o=new da(e.switchValue,e.type,n,e.sourceSpan);if(e.cases.forEach(function(t){n[t.value]=new fa(t.expression.map(function(t){return t.visit(r,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var i=this._placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return o.expressionPlaceholder=i,this._placeholderToContent[i]=e.switchValue,o}var s=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),a=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[s]=a.toI18nMessage([e],"","",""),new va(o,s,e.sourceSpan)},t.prototype.visitExpansionCase=function(){throw new Error("Unreachable code")},t.prototype._visitTextWithInterpolation=function(t,e){var r=this._expressionParser.splitInterpolation(t,e.start.toString(),this._interpolationConfig);if(!r)return new ha(t,e);for(var n=[],o=new fa(n,e),i=this._interpolationConfig,s=i.start,a=i.end,u=0;u<r.strings.length-1;u++){var c=r.expressions[u],l=Tt(c)||"INTERPOLATION",p=this._placeholderRegistry.getPlaceholderName(l,c);r.strings[u].length&&n.push(new ha(r.strings[u],e)),n.push(new ya(c,p,e)),this._placeholderToContent[p]=s+c+a}var h=r.strings.length-1;return r.strings[h].length&&n.push(new ha(r.strings[h],e)),o},t}(),Sa=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g,xa=function(t){function e(e,r){return t.call(this,e,r)||this}return Zn(e,t),e}($s),Ta="i18n",Pa="i18n-",Aa=/^i18n:?/,Oa="|",Ma="@@",Ra=function(){function t(t,e){this.messages=t,this.errors=e}return t}(),ka={};ka.Extract=0,ka.Merge=1,ka[ka.Extract]="Extract",ka[ka.Merge]="Merge";var Ia=function(){function t(t,e){this._implicitTags=t,this._implicitAttrs=e}return t.prototype.extract=function(t,e){var r=this;return this._init(ka.Extract,e),t.forEach(function(t){return t.visit(r,null)}),this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Ra(this._messages,this._errors)},t.prototype.merge=function(t,e,r){this._init(ka.Merge,r),this._translations=e;var n=new Ys("wrapper",[],t,void 0,void 0,void 0),o=n.visit(this,null);return this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new ua(o.children,this._errors)},t.prototype.visitExpansionCase=function(t,e){var r=lt(this,t.expression,e);return this._mode===ka.Merge?new Xs(t.value,r,t.sourceSpan,t.valueSourceSpan,t.expSourceSpan):void 0},t.prototype.visitExpansion=function(t,e){this._mayBeAddBlockChildren(t);var r=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([t]),this._inIcu=!0);var n=lt(this,t.cases,e);return this._mode===ka.Merge&&(t=new Qs(t.switchValue,t.type,n,t.sourceSpan,t.switchValueSourceSpan)),this._inIcu=r,t},t.prototype.visitComment=function(t){var e=Ot(t);if(e&&this._isInTranslatableSection)return void this._reportError(t,"Could not start a block inside a translatable section");var r=Mt(t);if(r&&!this._inI18nBlock)return void this._reportError(t,"Trying to close an unopened block");if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(r){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(t,this._blockChildren),this._inI18nBlock=!1;var n=this._addMessage(this._blockChildren,this._blockMeaningAndDesc),o=this._translateMessage(t,n);return lt(this,o)}return void this._reportError(t,"I18N blocks should not cross element boundaries")}}else e&&(this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(Aa,"").trim(),this._openTranslatableSection(t))},t.prototype.visitText=function(t){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(t),t},t.prototype.visitElement=function(t,e){var r=this;this._mayBeAddBlockChildren(t),this._depth++;var n=this._inI18nNode,o=this._inImplicitNode,i=[],s=void 0,a=Rt(t),u=a?a.value:"",c=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,l=!o&&c;if(this._inImplicitNode=o||c,this._isInTranslatableSection||this._inIcu)(a||l)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==ka.Extract&&lt(this,t.children);else{if(a||l){this._inI18nNode=!0;var p=this._addMessage(t.children,u);s=this._translateMessage(t,p)}if(this._mode==ka.Extract){var h=a||l;h&&this._openTranslatableSection(t),lt(this,t.children),h&&this._closeTranslatableSection(t,t.children)}}if(this._mode===ka.Merge){var f=s||t.children;f.forEach(function(t){var n=t.visit(r,e);n&&!r._isInTranslatableSection&&(i=i.concat(n))})}if(this._visitAttributesOf(t),this._depth--,this._inI18nNode=n,this._inImplicitNode=o,this._mode===ka.Merge){var d=this._translateAttributes(t);return new Ys(t.name,d,i,t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}return null},t.prototype.visitAttribute=function(){throw new Error("unreachable code")},t.prototype._init=function(t,e){this._mode=t,this._inI18nBlock=!1,this._inI18nNode=!1,this._depth=0,this._inIcu=!1,this._msgCountAtSectionStart=void 0,this._errors=[],this._messages=[],this._inImplicitNode=!1,this._createI18nMessage=xt(e)},t.prototype._visitAttributesOf=function(t){var e=this,r={},n=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith(Pa)}).forEach(function(t){return r[t.name.slice(Pa.length)]=t.value}),t.attrs.forEach(function(t){t.name in r?e._addMessage([t],r[t.name]):n.some(function(e){return t.name===e})&&e._addMessage([t])})},t.prototype._addMessage=function(t,e){if(0==t.length||1==t.length&&t[0]instanceof Zs&&!t[0].value)return null;var r=kt(e),n=r.meaning,o=r.description,i=r.id,s=this._createI18nMessage(t,n,o,i);return this._messages.push(s),s},t.prototype._translateMessage=function(t,e){if(e&&this._mode===ka.Merge){var r=this._translations.get(e);if(r)return r;this._reportError(t,'Translation unavailable for message id="'+this._translations.digest(e)+'"')}return[]},t.prototype._translateAttributes=function(t){var e=this,r=t.attrs,n={};r.forEach(function(t){t.name.startsWith(Pa)&&(n[t.name.slice(Pa.length)]=kt(t.value))});var o=[];return r.forEach(function(r){if(r.name!==Ta&&!r.name.startsWith(Pa))if(r.value&&""!=r.value&&n.hasOwnProperty(r.name)){var i=n[r.name],s=i.meaning,a=i.description,u=i.id,c=e._createI18nMessage([r],s,a,u),l=e._translations.get(c);if(l)if(0==l.length)o.push(new Zs(r.name,"",r.sourceSpan));else if(l[0]instanceof Ks){var p=l[0].value;o.push(new Zs(r.name,p,r.sourceSpan))}else e._reportError(t,'Unexpected translation for attribute "'+r.name+'" (id="'+(u||e._translations.digest(c))+'")');else e._reportError(t,'Translation unavailable for attribute "'+r.name+'" (id="'+(u||e._translations.digest(c))+'")')}else o.push(r)}),o},t.prototype._mayBeAddBlockChildren=function(t){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(t)},t.prototype._openTranslatableSection=function(t){this._isInTranslatableSection?this._reportError(t,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(t.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),t.prototype._closeTranslatableSection=function(t,e){if(!this._isInTranslatableSection)return void this._reportError(t,"Unexpected section end");var r=this._msgCountAtSectionStart,n=e.reduce(function(t,e){return t+(e instanceof Js?0:1)},0);if(1==n)for(var o=this._messages.length-1;o>=r;o--){var i=this._messages[o].nodes;if(!(1==i.length&&i[0]instanceof ha)){this._messages.splice(o,1);break}}this._msgCountAtSectionStart=void 0},t.prototype._reportError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Na=function(){function t(){this.closedByParent=!1,this.contentType=vo.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return t.prototype.requireExtraParent=function(){return!1},t.prototype.isClosedByChild=function(){return!1},t}(),Da=new Na,ja=function(t){function e(){return t.call(this,It)||this}return Zn(e,t),e.prototype.parse=function(e,r,n){return void 0===n&&(n=!1),t.prototype.parse.call(this,e,r,n)},e}(ca),La=function(){function t(){}return t.prototype.visitText=function(t){return t.value},t.prototype.visitContainer=function(t){var e=this;return"["+t.children.map(function(t){return t.visit(e)}).join(", ")+"]"},t.prototype.visitIcu=function(t){var e=this,r=Object.keys(t.cases).map(function(r){return r+" {"+t.cases[r].visit(e)+"}"});return"{"+t.expression+", "+t.type+", "+r.join(", ")+"}"},t.prototype.visitTagPlaceholder=function(t){var e=this;return t.isVoid?'<ph tag name="'+t.startName+'"/>':'<ph tag name="'+t.startName+'">'+t.children.map(function(t){return t.visit(e)}).join(", ")+'</ph name="'+t.closeName+'">'},t.prototype.visitPlaceholder=function(t){return t.value?'<ph name="'+t.name+'">'+t.value+"</ph>":'<ph name="'+t.name+'"/>'},t.prototype.visitIcuPlaceholder=function(t){return'<ph icu name="'+t.name+'">'+t.value.visit(this)+"</ph>"},t}(),Va=new La,Fa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.visitIcu=function(t){var e=this,r=Object.keys(t.cases).map(function(r){return r+" {"+t.cases[r].visit(e)+"}"});return"{"+t.type+", "+r.join(", ")+"}"},e}(La),Ua={};Ua.Little=0,Ua.Big=1,Ua[Ua.Little]="Little",Ua[Ua.Big]="Big";var Ba=function(){function t(){}return t.prototype.write=function(){},t.prototype.load=function(){},t.prototype.digest=function(){},
+t.prototype.createNameMapper=function(){return null},t}(),Ha=function(t){function e(e,r){var n=t.call(this)||this;return n.mapName=r,n.internalToPublic={},n.publicToNextId={},n.publicToInternal={},e.nodes.forEach(function(t){return t.visit(n)}),n}return Zn(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(){return null},e.prototype.visitTagPlaceholder=function(e,r){this.visitPlaceholderName(e.startName),t.prototype.visitTagPlaceholder.call(this,e,r),this.visitPlaceholderName(e.closeName)},e.prototype.visitPlaceholder=function(t){this.visitPlaceholderName(t.name)},e.prototype.visitIcuPlaceholder=function(t){this.visitPlaceholderName(t.name)},e.prototype.visitPlaceholderName=function(t){if(t&&!this.internalToPublic.hasOwnProperty(t)){var e=this.mapName(t);if(this.publicToInternal.hasOwnProperty(e)){var r=this.publicToNextId[e];this.publicToNextId[e]=r+1,e=e+"_"+r}else this.publicToNextId[e]=1;this.internalToPublic[t]=e,this.publicToInternal[e]=t}},e}(_a),qa=function(){function t(){}return t.prototype.visitTag=function(t){var e=this,r=this._serializeAttributes(t.attrs);if(0==t.children.length)return"<"+t.name+r+"/>";var n=t.children.map(function(t){return t.visit(e)});return"<"+t.name+r+">"+n.join("")+"</"+t.name+">"},t.prototype.visitText=function(t){return t.value},t.prototype.visitDeclaration=function(t){return"<?xml"+this._serializeAttributes(t.attrs)+" ?>"},t.prototype._serializeAttributes=function(t){var e=Object.keys(t).map(function(e){return e+'="'+t[e]+'"'}).join(" ");return e.length>0?" "+e:""},t.prototype.visitDoctype=function(t){return"<!DOCTYPE "+t.rootTag+" [\n"+t.dtd+"\n]>"},t}(),za=new qa,Ga=function(){function t(t){var e=this;this.attrs={},Object.keys(t).forEach(function(r){e.attrs[r]=ie(t[r])})}return t.prototype.visit=function(t){return t.visitDeclaration(this)},t}(),Wa=function(){function t(t,e){this.rootTag=t,this.dtd=e}return t.prototype.visit=function(t){return t.visitDoctype(this)},t}(),$a=function(){function t(t,e,r){void 0===e&&(e={}),void 0===r&&(r=[]);var n=this;this.name=t,this.children=r,this.attrs={},Object.keys(e).forEach(function(t){n.attrs[t]=ie(e[t])})}return t.prototype.visit=function(t){return t.visitTag(this)},t}(),Ka=function(){function t(t){this.value=ie(t)}return t.prototype.visit=function(t){return t.visitText(this)},t}(),Qa=function(t){function e(e){return void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))||this}return Zn(e,t),e}(Ka),Xa=[[/&/g,"&amp;"],[/"/g,"&quot;"],[/'/g,"&apos;"],[/</g,"&lt;"],[/>/g,"&gt;"]],Za="1.2",Ya="urn:oasis:names:tc:xliff:document:1.2",Ja="en",tu="x",eu="file",ru="source",nu="target",ou="trans-unit",iu="context-group",su="context",au=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.write=function(t,e){var r=new uu,n=[];t.forEach(function(t){var e=[];t.sources.forEach(function(t){var r=new $a(iu,{purpose:"location"});r.children.push(new Qa(10),new $a(su,{"context-type":"sourcefile"},[new Ka(t.filePath)]),new Qa(10),new $a(su,{"context-type":"linenumber"},[new Ka(""+t.startLine)]),new Qa(8)),e.push(new Qa(8),r)});var o=new $a(ou,{id:t.id,datatype:"html"});(i=o.children).push.apply(i,[new Qa(8),new $a(ru,{},r.serialize(t.nodes)),new Qa(8),new $a(nu)].concat(e)),t.description&&o.children.push(new Qa(8),new $a("note",{priority:"1",from:"description"},[new Ka(t.description)])),t.meaning&&o.children.push(new Qa(8),new $a("note",{priority:"1",from:"meaning"},[new Ka(t.meaning)])),o.children.push(new Qa(6)),n.push(new Qa(6),o);var i});var o=new $a("body",{},n.concat([new Qa(4)])),i=new $a("file",{"source-language":e||Ja,datatype:"plaintext",original:"ng2.template"},[new Qa(4),o,new Qa(2)]),s=new $a("xliff",{version:Za,xmlns:Ya},[new Qa(2),i,new Qa]);return oe([new Ga({version:"1.0",encoding:"UTF-8"}),new Qa,s,new Qa])},e.prototype.load=function(t,e){var r=new cu,n=r.parse(t,e),o=n.locale,i=n.msgIdToHtml,s=n.errors,a={},u=new lu;if(Object.keys(i).forEach(function(t){var r=u.convert(i[t],e),n=r.i18nNodes,o=r.errors;s.push.apply(s,o),a[t]=n}),s.length)throw new Error("xliff parse errors:\n"+s.join("\n"));return{locale:o,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Nt(t)},e}(Ba),uu=function(){function t(){}return t.prototype.visitText=function(t){return[new Ka(t.value)]},t.prototype.visitContainer=function(t){var e=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(e))}),r},t.prototype.visitIcu=function(t){var e=this,r=[new Ka("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(n){r.push.apply(r,[new Ka(n+" {")].concat(t.cases[n].visit(e),[new Ka("} ")]))}),r.push(new Ka("}")),r},t.prototype.visitTagPlaceholder=function(t){var e=se(t.tag),r=new $a(tu,{id:t.startName,ctype:e});if(t.isVoid)return[r];var n=new $a(tu,{id:t.closeName,ctype:e});return[r].concat(this.serialize(t.children),[n])},t.prototype.visitPlaceholder=function(t){return[new $a(tu,{id:t.name})]},t.prototype.visitIcuPlaceholder=function(t){return[new $a(tu,{id:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),cu=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var r=(new ja).parse(t,e,!1);return this._errors=r.errors,lt(this,r.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t){switch(t.name){case ou:this._unitMlString=null;var e=t.attrs.find(function(t){return"id"===t.name});if(e){var r=e.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(lt(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,"<"+ou+'> misses the "id" attribute');break;case ru:break;case nu:var n=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,i=t.startSourceSpan.start.file.content,s=i.slice(n,o);this._unitMlString=s;break;case eu:var a=t.attrs.find(function(t){return"target-language"===t.name});a&&(this._locale=a.value),lt(this,t.children,null);break;default:lt(this,t.children,null)}},t.prototype.visitAttribute=function(){},t.prototype.visitText=function(){},t.prototype.visitComment=function(){},t.prototype.visitExpansion=function(){},t.prototype.visitExpansionCase=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),lu=function(){function t(){}return t.prototype.convert=function(t,e){var r=(new ja).parse(t,e,!0);this._errors=r.errors;var n=this._errors.length>0||0==r.rootNodes.length?[]:lt(this,r.rootNodes);return{i18nNodes:n,errors:this._errors}},t.prototype.visitText=function(t){return new ha(t.value,t.sourceSpan)},t.prototype.visitElement=function(t){if(t.name===tu){var e=t.attrs.find(function(t){return"id"===t.name});if(e)return new ya("",e.value,t.sourceSpan);this._addError(t,"<"+tu+'> misses the "id" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitExpansion=function(t){var e={};return lt(this,t.cases).forEach(function(r){e[r.value]=new fa(r.nodes,t.sourceSpan)}),new da(t.switchValue,t.type,e,t.sourceSpan)},t.prototype.visitExpansionCase=function(t){return{value:t.value,nodes:lt(this,t.expression)}},t.prototype.visitComment=function(){},t.prototype.visitAttribute=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),pu="2.0",hu="urn:oasis:names:tc:xliff:document:2.0",fu="en",du="ph",mu="pc",yu="xliff",vu="source",gu="target",_u="unit",bu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.write=function(t,e){var r=new wu,n=[];t.forEach(function(t){var e=new $a(_u,{id:t.id});if(t.description||t.meaning){var o=new $a("notes");t.description&&o.children.push(new Qa(8),new $a("note",{category:"description"},[new Ka(t.description)])),t.meaning&&o.children.push(new Qa(8),new $a("note",{category:"meaning"},[new Ka(t.meaning)])),o.children.push(new Qa(6)),e.children.push(new Qa(6),o)}var i=new $a("segment");i.children.push(new Qa(8),new $a(vu,{},r.serialize(t.nodes)),new Qa(6)),e.children.push(new Qa(6),i,new Qa(4)),n.push(new Qa(4),e)});var o=new $a("file",{original:"ng.template",id:"ngi18n"},n.concat([new Qa(2)])),i=new $a(yu,{version:pu,xmlns:hu,srcLang:e||fu},[new Qa(2),o,new Qa]);return oe([new Ga({version:"1.0",encoding:"UTF-8"}),new Qa,i,new Qa])},e.prototype.load=function(t,e){var r=new Cu,n=r.parse(t,e),o=n.locale,i=n.msgIdToHtml,s=n.errors,a={},u=new Eu;if(Object.keys(i).forEach(function(t){var r=u.convert(i[t],e),n=r.i18nNodes,o=r.errors;s.push.apply(s,o),a[t]=n}),s.length)throw new Error("xliff2 parse errors:\n"+s.join("\n"));return{locale:o,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Dt(t)},e}(Ba),wu=function(){function t(){}return t.prototype.visitText=function(t){return[new Ka(t.value)]},t.prototype.visitContainer=function(t){var e=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(e))}),r},t.prototype.visitIcu=function(t){var e=this,r=[new Ka("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(n){r.push.apply(r,[new Ka(n+" {")].concat(t.cases[n].visit(e),[new Ka("} ")]))}),r.push(new Ka("}")),r},t.prototype.visitTagPlaceholder=function(t){var e=this,r=ae(t.tag);if(t.isVoid){var n=new $a(du,{id:(this._nextPlaceholderId++).toString(),equiv:t.startName,type:r,disp:"<"+t.tag+"/>"});return[n]}var o=new $a(mu,{id:(this._nextPlaceholderId++).toString(),equivStart:t.startName,equivEnd:t.closeName,type:r,dispStart:"<"+t.tag+">",dispEnd:"</"+t.tag+">"}),i=[].concat.apply([],t.children.map(function(t){return t.visit(e)}));return i.length?i.forEach(function(t){return o.children.push(t)}):o.children.push(new Ka("")),[o]},t.prototype.visitPlaceholder=function(t){return[new $a(du,{id:(this._nextPlaceholderId++).toString(),equiv:t.name,disp:"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(){return[new $a(du,{id:(this._nextPlaceholderId++).toString()})]},t.prototype.serialize=function(t){var e=this;return this._nextPlaceholderId=0,[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Cu=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var r=(new ja).parse(t,e,!1);return this._errors=r.errors,lt(this,r.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t){switch(t.name){case _u:this._unitMlString=null;var e=t.attrs.find(function(t){return"id"===t.name});if(e){var r=e.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(lt(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,"<"+_u+'> misses the "id" attribute');break;case vu:break;case gu:var n=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,i=t.startSourceSpan.start.file.content,s=i.slice(n,o);this._unitMlString=s;break;case yu:var a=t.attrs.find(function(t){return"trgLang"===t.name});a&&(this._locale=a.value);var u=t.attrs.find(function(t){return"version"===t.name});if(u){var c=u.value;"2.0"!==c?this._addError(t,"The XLIFF file version "+c+" is not compatible with XLIFF 2.0 serializer"):lt(this,t.children,null)}break;default:lt(this,t.children,null)}},t.prototype.visitAttribute=function(){},t.prototype.visitText=function(){},t.prototype.visitComment=function(){},t.prototype.visitExpansion=function(){},t.prototype.visitExpansionCase=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Eu=function(){function t(){}return t.prototype.convert=function(t,e){var r=(new ja).parse(t,e,!0);this._errors=r.errors;var n=this._errors.length>0||0==r.rootNodes.length?[]:[].concat.apply([],lt(this,r.rootNodes));return{i18nNodes:n,errors:this._errors}},t.prototype.visitText=function(t){return new ha(t.value,t.sourceSpan)},t.prototype.visitElement=function(t){var e=this;switch(t.name){case du:var r=t.attrs.find(function(t){return"equiv"===t.name});if(r)return[new ya("",r.value,t.sourceSpan)];this._addError(t,"<"+du+'> misses the "equiv" attribute');break;case mu:var n=t.attrs.find(function(t){return"equivStart"===t.name}),o=t.attrs.find(function(t){return"equivEnd"===t.name});if(n){if(o){var i=n.value,s=o.value,a=[];return a.concat.apply(a,[new ya("",i,t.sourceSpan)].concat(t.children.map(function(t){return t.visit(e,null)}),[new ya("",s,t.sourceSpan)]))}this._addError(t,"<"+du+'> misses the "equivEnd" attribute')}else this._addError(t,"<"+du+'> misses the "equivStart" attribute');break;default:this._addError(t,"Unexpected tag")}return null},t.prototype.visitExpansion=function(t){var e={};return lt(this,t.cases).forEach(function(r){e[r.value]=new fa(r.nodes,t.sourceSpan)}),new da(t.switchValue,t.type,e,t.sourceSpan)},t.prototype.visitExpansionCase=function(t){return{value:t.value,nodes:[].concat.apply([],lt(this,t.expression))}},t.prototype.visitComment=function(){},t.prototype.visitAttribute=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Su="messagebundle",xu="msg",Tu="ph",Pu="ex",Au="source",Ou='<!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)>',Mu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.write=function(t){var e=new ku,r=new Ru,n=new $a(Su);return t.forEach(function(t){var e={id:t.id};t.description&&(e.desc=t.description),t.meaning&&(e.meaning=t.meaning);var o=[];t.sources.forEach(function(t){o.push(new $a(Au,{},[new Ka(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),n.children.push(new Qa(2),new $a(xu,e,o.concat(r.serialize(t.nodes))))}),n.children.push(new Qa),oe([new Ga({version:"1.0",encoding:"UTF-8"}),new Qa,new Wa(Su,Ou),new Qa,e.addDefaultExamples(n),new Qa])},e.prototype.load=function(){throw new Error("Unsupported")},e.prototype.digest=function(t){return ue(t)},e.prototype.createNameMapper=function(t){return new Ha(t,ce)},e}(Ba),Ru=function(){function t(){}return t.prototype.visitText=function(t){return[new Ka(t.value)]},t.prototype.visitContainer=function(t){var e=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(e))}),r},t.prototype.visitIcu=function(t){var e=this,r=[new Ka("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(n){r.push.apply(r,[new Ka(n+" {")].concat(t.cases[n].visit(e),[new Ka("} ")]))}),r.push(new Ka("}")),r},t.prototype.visitTagPlaceholder=function(t){var e=new $a(Pu,{},[new Ka("<"+t.tag+">")]),r=new $a(Tu,{name:t.startName},[e]);if(t.isVoid)return[r];var n=new $a(Pu,{},[new Ka("</"+t.tag+">")]),o=new $a(Tu,{name:t.closeName},[n]);return[r].concat(this.serialize(t.children),[o])},t.prototype.visitPlaceholder=function(t){return[new $a(Tu,{name:t.name})]},t.prototype.visitIcuPlaceholder=function(t){return[new $a(Tu,{name:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),ku=function(){function t(){}return t.prototype.addDefaultExamples=function(t){return t.visit(this),t},t.prototype.visitTag=function(t){var e=this;if(t.name===Tu){if(!t.children||0==t.children.length){var r=new Ka(t.attrs.name||"...");t.children=[new $a(Pu,{},[r])]}}else t.children&&t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitText=function(){},t.prototype.visitDeclaration=function(){},t.prototype.visitDoctype=function(){},t}(),Iu="translationbundle",Nu="translation",Du="ph",ju=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.write=function(){throw new Error("Unsupported")},e.prototype.load=function(t,e){var r=new Lu,n=r.parse(t,e),o=n.locale,i=n.msgIdToHtml,s=n.errors,a={},u=new Vu;if(Object.keys(i).forEach(function(t){var r=function(){var r=u.convert(i[t],e),n=r.i18nNodes,o=r.errors;if(o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return n};le(a,t,r)}),s.length)throw new Error("xtb parse errors:\n"+s.join("\n"));return{locale:o,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return ue(t)},e.prototype.createNameMapper=function(t){return new Ha(t,ce)},e}(Ba),Lu=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._bundleDepth=0,this._msgIdToHtml={};var r=(new ja).parse(t,e,!1);return this._errors=r.errors,lt(this,r.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t){switch(t.name){case Iu:this._bundleDepth++,this._bundleDepth>1&&this._addError(t,"<"+Iu+"> elements can not be nested");var e=t.attrs.find(function(t){return"lang"===t.name});e&&(this._locale=e.value),lt(this,t.children,null),this._bundleDepth--;break;case Nu:var r=t.attrs.find(function(t){return"id"===t.name});if(r){var n=r.value;if(this._msgIdToHtml.hasOwnProperty(n))this._addError(t,"Duplicated translations for msg "+n);else{var o=t.startSourceSpan.end.offset,i=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content,a=s.slice(o,i);this._msgIdToHtml[n]=a}}else this._addError(t,"<"+Nu+'> misses the "id" attribute');break;default:this._addError(t,"Unexpected tag")}},t.prototype.visitAttribute=function(){},t.prototype.visitText=function(){},t.prototype.visitComment=function(){},t.prototype.visitExpansion=function(){},t.prototype.visitExpansionCase=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Vu=function(){function t(){}return t.prototype.convert=function(t,e){var r=(new ja).parse(t,e,!0);this._errors=r.errors;var n=this._errors.length>0||0==r.rootNodes.length?[]:lt(this,r.rootNodes);return{i18nNodes:n,errors:this._errors}},t.prototype.visitText=function(t){return new ha(t.value,t.sourceSpan)},t.prototype.visitExpansion=function(t){var e={};return lt(this,t.cases).forEach(function(r){e[r.value]=new fa(r.nodes,t.sourceSpan)}),new da(t.switchValue,t.type,e,t.sourceSpan)},t.prototype.visitExpansionCase=function(t){return{value:t.value,nodes:lt(this,t.expression)}},t.prototype.visitElement=function(t){if(t.name===Du){var e=t.attrs.find(function(t){return"name"===t.name});if(e)return new ya("",e.value,t.sourceSpan);this._addError(t,"<"+Du+'> misses the "name" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitComment=function(){},t.prototype.visitAttribute=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Fu=function(t){function e(){return t.call(this,c)||this}return Zn(e,t),e.prototype.parse=function(e,r,n,o){return void 0===n&&(n=!1),void 0===o&&(o=Rs),t.prototype.parse.call(this,e,r,n,o)},e}(ca);Fu.decorators=[{type:z}],Fu.ctorParameters=function(){return[]};var Uu=function(){function t(t,r,n,o,i,s){void 0===t&&(t={}),void 0===i&&(i=e.MissingTranslationStrategy.Warning),this._i18nNodesByMsgId=t,this.digest=n,this.mapperFactory=o,this._i18nToHtml=new Bu(t,r,n,o,i,s)}return t.load=function(e,r,n,o,i){var s=n.load(e,r),a=s.locale,u=s.i18nNodesByMsgId,c=function(t){return n.digest(t)},l=function(t){return n.createNameMapper(t)};return new t(u,a,c,l,o,i)},t.prototype.get=function(t){var e=this._i18nToHtml.convert(t);if(e.errors.length)throw new Error(e.errors.join("\n"));return e.nodes},t.prototype.has=function(t){return this.digest(t)in this._i18nNodesByMsgId},t}(),Bu=function(){function t(t,e,r,n,o,i){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this._locale=e,this._digest=r,this._mapperFactory=n,this._missingTranslationStrategy=o,this._console=i,this._contextStack=[],this._errors=[]}return t.prototype.convert=function(t){this._contextStack.length=0,this._errors.length=0;var e=this._convertToText(t),r=t.nodes[0].sourceSpan.start.file.url,n=(new Fu).parse(e,r,!0);return{nodes:n.rootNodes,errors:this._errors.concat(n.errors)}},t.prototype.visitText=function(t){return t.value},t.prototype.visitContainer=function(t){var e=this;return t.children.map(function(t){return t.visit(e)}).join("")},t.prototype.visitIcu=function(t){var e=this,r=Object.keys(t.cases).map(function(r){return r+" {"+t.cases[r].visit(e)+"}"}),n=this._srcMsg.placeholders.hasOwnProperty(t.expression)?this._srcMsg.placeholders[t.expression]:t.expression;return"{"+n+", "+t.type+", "+r.join(" ")+"}"},t.prototype.visitPlaceholder=function(t){var e=this._mapper(t.name);return this._srcMsg.placeholders.hasOwnProperty(e)?this._srcMsg.placeholders[e]:this._srcMsg.placeholderToMessage.hasOwnProperty(e)?this._convertToText(this._srcMsg.placeholderToMessage[e]):(this._addError(t,'Unknown placeholder "'+t.name+'"'),"")},t.prototype.visitTagPlaceholder=function(t){var e=this,r=""+t.tag,n=Object.keys(t.attrs).map(function(e){return e+'="'+t.attrs[e]+'"'}).join(" ");if(t.isVoid)return"<"+r+" "+n+"/>";var o=t.children.map(function(t){return t.visit(e)}).join("");return"<"+r+" "+n+">"+o+"</"+r+">"},t.prototype.visitIcuPlaceholder=function(t){return this._convertToText(this._srcMsg.placeholderToMessage[t.name])},t.prototype._convertToText=function(t){var r,n=this,o=this._digest(t),i=this._mapperFactory?this._mapperFactory(t):null;if(this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=t,this._i18nNodesByMsgId.hasOwnProperty(o))r=this._i18nNodesByMsgId[o],this._mapper=function(t){return i?i.toInternalName(t):t};else{if(this._missingTranslationStrategy===e.MissingTranslationStrategy.Error){var s=this._locale?' for locale "'+this._locale+'"':"";this._addError(t.nodes[0],'Missing translation for message "'+o+'"'+s)}else if(this._console&&this._missingTranslationStrategy===e.MissingTranslationStrategy.Warning){var s=this._locale?' for locale "'+this._locale+'"':"";this._console.warn('Missing translation for message "'+o+'"'+s)}r=t.nodes,this._mapper=function(t){return t}}var a=r.map(function(t){return t.visit(n)}).join(""),u=this._contextStack.pop();return this._srcMsg=u.msg,this._mapper=u.mapper,a},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Hu=function(){function t(t,r,n,o,i){if(void 0===o&&(o=e.MissingTranslationStrategy.Warning),this._htmlParser=t,r){var s=pe(n);this._translationBundle=Uu.load(r,"i18n",s,o,i)}}return t.prototype.parse=function(t,e,r,n){void 0===r&&(r=!1),void 0===n&&(n=Rs);var o=this._htmlParser.parse(t,e,r,n);return this._translationBundle?o.errors.length?new ua(o.rootNodes,o.errors):At(o.rootNodes,this._translationBundle,n,[],{}):o},t}(),qu=he("core"),zu=function(){function t(){}return t}();zu.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleUrl:qu,runtime:e.ANALYZE_FOR_ENTRY_COMPONENTS},zu.ElementRef={name:"ElementRef",moduleUrl:qu,runtime:e.ElementRef},zu.NgModuleRef={name:"NgModuleRef",moduleUrl:qu,runtime:e.NgModuleRef},zu.ViewContainerRef={name:"ViewContainerRef",moduleUrl:qu,runtime:e.ViewContainerRef},zu.ChangeDetectorRef={name:"ChangeDetectorRef",moduleUrl:qu,runtime:e.ChangeDetectorRef},zu.QueryList={name:"QueryList",moduleUrl:qu,runtime:e.QueryList},zu.TemplateRef={name:"TemplateRef",moduleUrl:qu,runtime:e.TemplateRef},zu.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleUrl:qu,runtime:e.ɵCodegenComponentFactoryResolver},zu.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleUrl:qu,runtime:e.ComponentFactoryResolver},zu.ComponentFactory={name:"ComponentFactory",moduleUrl:qu,runtime:e.ComponentFactory},zu.ComponentRef={name:"ComponentRef",moduleUrl:qu,runtime:e.ComponentRef},zu.NgModuleFactory={name:"NgModuleFactory",moduleUrl:qu,runtime:e.NgModuleFactory},zu.NgModuleInjector={name:"ɵNgModuleInjector",moduleUrl:qu,runtime:e.ɵNgModuleInjector},zu.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleUrl:qu,runtime:e.ɵregisterModuleFactory},zu.Injector={name:"Injector",moduleUrl:qu,runtime:e.Injector},zu.ViewEncapsulation={name:"ViewEncapsulation",moduleUrl:qu,runtime:e.ViewEncapsulation},zu.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleUrl:qu,runtime:e.ChangeDetectionStrategy},zu.SecurityContext={name:"SecurityContext",moduleUrl:qu,runtime:e.SecurityContext},zu.LOCALE_ID={name:"LOCALE_ID",moduleUrl:qu,runtime:e.LOCALE_ID},zu.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleUrl:qu,runtime:e.TRANSLATIONS_FORMAT},zu.inlineInterpolate={name:"ɵinlineInterpolate",moduleUrl:qu,runtime:e.ɵinlineInterpolate},zu.interpolate={name:"ɵinterpolate",moduleUrl:qu,runtime:e.ɵinterpolate},zu.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleUrl:qu,runtime:e.ɵEMPTY_ARRAY},zu.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleUrl:qu,runtime:e.ɵEMPTY_MAP},zu.Renderer={name:"Renderer",moduleUrl:qu,runtime:e.Renderer},zu.viewDef={name:"ɵvid",moduleUrl:qu,runtime:e.ɵvid},zu.elementDef={name:"ɵeld",moduleUrl:qu,runtime:e.ɵeld},zu.anchorDef={name:"ɵand",moduleUrl:qu,runtime:e.ɵand},zu.textDef={name:"ɵted",moduleUrl:qu,runtime:e.ɵted},zu.directiveDef={name:"ɵdid",moduleUrl:qu,runtime:e.ɵdid},zu.providerDef={name:"ɵprd",moduleUrl:qu,runtime:e.ɵprd},zu.queryDef={name:"ɵqud",moduleUrl:qu,runtime:e.ɵqud},zu.pureArrayDef={name:"ɵpad",moduleUrl:qu,runtime:e.ɵpad},zu.pureObjectDef={name:"ɵpod",moduleUrl:qu,runtime:e.ɵpod},zu.purePipeDef={name:"ɵppd",moduleUrl:qu,runtime:e.ɵppd},zu.pipeDef={name:"ɵpid",moduleUrl:qu,runtime:e.ɵpid},zu.nodeValue={name:"ɵnov",moduleUrl:qu,runtime:e.ɵnov},zu.ngContentDef={name:"ɵncd",moduleUrl:qu,runtime:e.ɵncd},zu.unwrapValue={name:"ɵunv",moduleUrl:qu,runtime:e.ɵunv},zu.createRendererType2={name:"ɵcrt",moduleUrl:qu,runtime:e.ɵcrt},zu.RendererType2={name:"RendererType2",moduleUrl:qu,runtime:null},zu.ViewDefinition={name:"ɵViewDefinition",moduleUrl:qu,runtime:null},zu.createComponentFactory={name:"ɵccf",moduleUrl:qu,runtime:e.ɵccf};var Gu=["zero","one","two","few","many","other"],Wu=function(){function t(t,e,r){this.nodes=t,this.expanded=e,this.errors=r}return t}(),$u=function(t){function e(e,r){return t.call(this,e,r)||this}return Zn(e,t),e}($s),Ku=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t){return new Ys(t.name,t.attrs,lt(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t){return t},t.prototype.visitText=function(t){return t},t.prototype.visitComment=function(t){return t},t.prototype.visitExpansion=function(t){return this.isExpanded=!0,"plural"==t.type?ge(t,this.errors):_e(t,this.errors)},t.prototype.visitExpansionCase=function(){throw new Error("Should not be reached")},t}(),Qu=function(t){function e(e,r){return t.call(this,r,e)||this}return Zn(e,t),e}($s),Xu=function(){function t(t){var e=this;this.component=t,this.errors=[],this.viewQueries=Se(t),this.viewProviders=new Map,t.viewProviders.forEach(function(t){null==e.viewProviders.get(R(t.token))&&e.viewProviders.set(R(t.token),!0)})}return t}(),Zu=function(){function t(t,e,r,n,o,i,s,a,u){var c=this;this.viewContext=t,this._parent=e,this._isViewRoot=r,this._directiveAsts=n,this._sourceSpan=u,this._transformedProviders=new Map,this._seenProviders=new Map,this._hasViewContainer=!1,this._queriedTokens=new Map,this._attrs={},o.forEach(function(t){return c._attrs[t.name]=t.value});var l=n.map(function(t){return t.directive});if(this._allProviders=Ce(l,u,t.errors),this._contentQueries=xe(a,l),Array.from(this._allProviders.values()).forEach(function(t){c._addQueryReadsTo(t.token,t.token,c._queriedTokens)}),s){var p=ye(zu.TemplateRef);this._addQueryReadsTo(p,p,this._queriedTokens)}i.forEach(function(t){var e=t.value||ye(zu.ElementRef);c._addQueryReadsTo({value:t.name},e,c._queriedTokens)}),this._queriedTokens.get(fe(zu.ViewContainerRef))&&(this._hasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){var e=t.eager||c._queriedTokens.get(R(t.token));e&&c._getOrCreateLocalProvider(t.providerType,t.token,!0)})}return t.prototype.afterElement=function(){var t=this;Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.providerType,e.token,!1)})},Object.defineProperty(t.prototype,"transformProviders",{get:function(){return Array.from(this._transformedProviders.values())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedDirectiveAsts",{get:function(){var t=this.transformProviders.map(function(t){return t.token.identifier}),e=this._directiveAsts.slice();return e.sort(function(e,r){return t.indexOf(e.directive.type)-t.indexOf(r.directive.type)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryMatches",{get:function(){var t=[];return this._queriedTokens.forEach(function(e){t.push.apply(t,e)}),t},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(t,e,r){this._getQueriesFor(t).forEach(function(t){var n=t.meta.read||e,o=R(n),i=r.get(o);i||(i=[],r.set(o,i)),i.push({queryId:t.queryId,value:n})})},t.prototype._getQueriesFor=function(t){for(var e,r=[],n=this,o=0;null!==n;)e=n._contentQueries.get(R(t)),e&&r.push.apply(r,e.filter(function(t){return t.meta.descendants||1>=o})),n._directiveAsts.length>0&&o++,n=n._parent;return e=this.viewContext.viewQueries.get(R(t)),e&&r.push.apply(r,e),r},t.prototype._getOrCreateLocalProvider=function(t,e,r){var n=this,o=this._allProviders.get(R(e));if(!o||(t===po.Directive||t===po.PublicService)&&o.providerType===po.PrivateService||(t===po.PrivateService||t===po.PublicService)&&o.providerType===po.Builtin)return null;var i=this._transformedProviders.get(R(e));if(i)return i;if(null!=this._seenProviders.get(R(e)))return this.viewContext.errors.push(new Qu("Cannot instantiate cyclic dependency! "+M(e),this._sourceSpan)),null;this._seenProviders.set(R(e),!0);var s=o.providers.map(function(t){var e=t.useValue,i=t.useExisting,s=void 0;if(null!=t.useExisting){var a=n._getDependency(o.providerType,{token:t.useExisting},r);null!=a.token?i=a.token:(i=null,e=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;s=u.map(function(t){return n._getDependency(o.providerType,t,r)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return n._getDependency(o.providerType,t,r)})}return be(t,{useExisting:i,useValue:e,deps:s})});return i=we(o,{eager:r,providers:s}),this._transformedProviders.set(R(e),i),i},t.prototype._getLocalDependency=function(t,e,r){if(void 0===r&&(r=!1),e.isAttribute){var n=this._attrs[e.token.value];return{isValue:!0,value:null==n?null:n}}if(null!=e.token){if(t===po.Directive||t===po.Component){if(R(e.token)===fe(zu.Renderer)||R(e.token)===fe(zu.ElementRef)||R(e.token)===fe(zu.ChangeDetectorRef)||R(e.token)===fe(zu.TemplateRef))return e;R(e.token)===fe(zu.ViewContainerRef)&&(this._hasViewContainer=!0)}if(R(e.token)===fe(zu.Injector))return e;if(null!=this._getOrCreateLocalProvider(t,e.token,r))return e}return null},t.prototype._getDependency=function(t,e,r){void 0===r&&(r=!1);var n=this,o=r,i=null;if(e.isSkipSelf||(i=this._getLocalDependency(t,e,r)),e.isSelf)!i&&e.isOptional&&(i={isValue:!0,value:null});else{for(;!i&&n._parent;){var s=n;n=n._parent,s._isViewRoot&&(o=!1),
+i=n._getLocalDependency(po.PublicService,e,o)}i||(i=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===R(e.token)||null!=this.viewContext.viewProviders.get(R(e.token))?e:e.isOptional?i={isValue:!0,value:null}:null)}return i||this.viewContext.errors.push(new Qu("No provider for "+M(e.token),this._sourceSpan)),i},t}(),Yu=function(){function t(t,e,r){var n=this;this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,t.transitiveModule.modules.forEach(function(t){var e={token:{identifier:t},useClass:t};Ee([e],po.PublicService,!0,r,n._errors,n._allProviders)}),Ee(t.transitiveModule.providers.map(function(t){return t.provider}).concat(e),po.PublicService,!1,r,this._errors,this._allProviders)}return t.prototype.parse=function(){var t=this;if(Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.token,e.eager)}),this._errors.length>0){var e=this._errors.join("\n");throw new Error("Provider parse errors:\n"+e)}return Array.from(this._transformedProviders.values())},t.prototype._getOrCreateLocalProvider=function(t,e){var r=this,n=this._allProviders.get(R(t));if(!n)return null;var o=this._transformedProviders.get(R(t));if(o)return o;if(null!=this._seenProviders.get(R(t)))return this._errors.push(new Qu("Cannot instantiate cyclic dependency! "+M(t),n.sourceSpan)),null;this._seenProviders.set(R(t),!0);var i=n.providers.map(function(t){var o=t.useValue,i=t.useExisting,s=void 0;if(null!=t.useExisting){var a=r._getDependency({token:t.useExisting},e,n.sourceSpan);null!=a.token?i=a.token:(i=null,o=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;s=u.map(function(t){return r._getDependency(t,e,n.sourceSpan)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return r._getDependency(t,e,n.sourceSpan)})}return be(t,{useExisting:i,useValue:o,deps:s})});return o=we(n,{eager:e,providers:i}),this._transformedProviders.set(R(t),o),o},t.prototype._getDependency=function(t,e,r){void 0===e&&(e=!1);var n=!1;t.isSkipSelf||null==t.token||(R(t.token)===fe(zu.Injector)||R(t.token)===fe(zu.ComponentFactoryResolver)?n=!0:null!=this._getOrCreateLocalProvider(t.token,e)&&(n=!0));var o=t;return t.isSelf&&!n&&(t.isOptional?o={isValue:!0,value:null}:this._errors.push(new Qu("No provider for "+M(t.token),r))),o},t}(),Ju=function(){function t(){}return t.prototype.hasProperty=function(){},t.prototype.hasElement=function(){},t.prototype.securityContext=function(){},t.prototype.allKnownElementNames=function(){},t.prototype.getMappedPropName=function(){},t.prototype.getDefaultComponentElementName=function(){},t.prototype.validateProperty=function(){},t.prototype.validateAttribute=function(){},t.prototype.normalizeAnimationStyleProperty=function(){},t.prototype.normalizeAnimationStyleValue=function(){},t}(),tc=function(){function t(t,e){this.style=t,this.styleUrls=e}return t}(),ec=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,rc=/\/\*.+?\*\//g,nc=/^([^:\/?#]+):/,oc=".",ic="attr",sc="class",ac="style",uc="animate-",cc={};cc.DEFAULT=0,cc.LITERAL_ATTR=1,cc.ANIMATION=2,cc[cc.DEFAULT]="DEFAULT",cc[cc.LITERAL_ATTR]="LITERAL_ATTR",cc[cc.ANIMATION]="ANIMATION";var lc=function(){function t(t,e,r,n){this.name=t,this.expression=e,this.type=r,this.sourceSpan=n}return Object.defineProperty(t.prototype,"isLiteral",{get:function(){return this.type===cc.LITERAL_ATTR},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===cc.ANIMATION},enumerable:!0,configurable:!0}),t}(),pc=function(){function t(t,e,r,n,o){var i=this;this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=r,this._targetErrors=o,this.pipesByName=new Map,this._usedPipes=new Map,n.forEach(function(t){return i.pipesByName.set(t.name,t)})}return t.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},t.prototype.createDirectiveHostPropertyAsts=function(t,e,r){var n=this;if(t.hostProperties){var o=[];return Object.keys(t.hostProperties).forEach(function(e){var i=t.hostProperties[e];"string"==typeof i?n.parsePropertyBinding(e,i,!0,r,[],o):n._reportError('Value of the host property binding "'+e+'" needs to be a string representing an expression but got "'+i+'" ('+typeof i+")",r)}),o.map(function(t){return n.createElementPropertyAst(e,t)})}return null},t.prototype.createDirectiveHostEventAsts=function(t,e){var r=this;if(t.hostListeners){var n=[];return Object.keys(t.hostListeners).forEach(function(o){var i=t.hostListeners[o];"string"==typeof i?r.parseEvent(o,i,e,[],n):r._reportError('Value of the host listener "'+o+'" needs to be a string representing an expression but got "'+i+'" ('+typeof i+")",e)}),n}return null},t.prototype.parseInterpolation=function(t,e){var r=e.start.toString();try{var n=this._exprParser.parseInterpolation(t,r,this._interpolationConfig);return n&&this._reportExpressionParserErrors(n.errors,e),this._checkPipes(n,e),n}catch(o){return this._reportError(""+o,e),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype.parseInlineTemplateBinding=function(t,e,r,n,o,i){for(var s=this._parseTemplateBindings(t,e,r),a=0;a<s.length;a++){var u=s[a];u.keyIsVar?i.push(new io(u.key,u.name,r)):u.expression?this._parsePropertyAst(u.key,u.expression,r,n,o):(n.push([u.key,""]),this.parseLiteralAttr(u.key,null,r,n,o))}},t.prototype._parseTemplateBindings=function(t,e,r){var n=this,o=r.start.toString();try{var i=this._exprParser.parseTemplateBindings(t,e,o);return this._reportExpressionParserErrors(i.errors,r),i.templateBindings.forEach(function(t){t.expression&&n._checkPipes(t.expression,r)}),i.warnings.forEach(function(t){n._reportError(t,r,Ws.WARNING)}),i.templateBindings}catch(s){return this._reportError(""+s,r),[]}},t.prototype.parseLiteralAttr=function(t,e,r,n,o){Oe(t)?(t=t.substring(1),e&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',r,Ws.ERROR),this._parseAnimation(t,e,r,n,o)):o.push(new lc(t,this._exprParser.wrapLiteralPrimitive(e,""),cc.LITERAL_ATTR,r))},t.prototype.parsePropertyBinding=function(t,e,r,n,o,i){var s=!1;t.startsWith(uc)?(s=!0,t=t.substring(uc.length)):Oe(t)&&(s=!0,t=t.substring(1)),s?this._parseAnimation(t,e,n,o,i):this._parsePropertyAst(t,this._parseBinding(e,r,n),n,o,i)},t.prototype.parsePropertyInterpolation=function(t,e,r,n,o){var i=this.parseInterpolation(e,r);return i?(this._parsePropertyAst(t,i,r,n,o),!0):!1},t.prototype._parsePropertyAst=function(t,e,r,n,o){n.push([t,e.source]),o.push(new lc(t,e,cc.DEFAULT,r))},t.prototype._parseAnimation=function(t,e,r,n,o){var i=this._parseBinding(e||"null",!1,r);n.push([t,i.source]),o.push(new lc(t,i,cc.ANIMATION,r))},t.prototype._parseBinding=function(t,e,r){var n=r.start.toString();try{var o=e?this._exprParser.parseSimpleBinding(t,n,this._interpolationConfig):this._exprParser.parseBinding(t,n,this._interpolationConfig);return o&&this._reportExpressionParserErrors(o.errors,r),this._checkPipes(o,r),o}catch(i){return this._reportError(""+i,r),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype.createElementPropertyAst=function(t,r){if(r.isAnimation)return new ro(r.name,fo.Animation,e.SecurityContext.NONE,r.expression,null,r.sourceSpan);var n=null,o=void 0,i=null,s=r.name.split(oc),a=void 0;if(s.length>1)if(s[0]==ic){i=s[1],this._validatePropertyOrAttributeName(i,r.sourceSpan,!0),a=Me(this._schemaRegistry,t,i,!0);var c=i.indexOf(":");if(c>-1){var l=i.substring(0,c),p=i.substring(c+1);i=u(l,p)}o=fo.Attribute}else s[0]==sc?(i=s[1],o=fo.Class,a=[e.SecurityContext.NONE]):s[0]==ac&&(n=s.length>2?s[2]:null,i=s[1],o=fo.Style,a=[e.SecurityContext.STYLE]);return null===i&&(i=this._schemaRegistry.getMappedPropName(r.name),a=Me(this._schemaRegistry,t,i,!1),o=fo.Property,this._validatePropertyOrAttributeName(i,r.sourceSpan,!1)),new ro(i,o,a[0],r.expression,n,r.sourceSpan)},t.prototype.parseEvent=function(t,e,r,n,o){Oe(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,r,o)):this._parseEvent(t,e,r,n,o)},t.prototype._parseAnimationEvent=function(t,e,r,n){var o=h(t,[t,""]),i=o[0],s=o[1].toLowerCase();if(s)switch(s){case"start":case"done":var a=this._parseAction(e,r);n.push(new no(i,null,s,a,r));break;default:this._reportError('The provided animation output phase value "'+s+'" for "@'+i+'" is not supported (use start or done)',r)}else this._reportError("The animation trigger output event (@"+i+") is missing its phase value name (start or done are currently supported)",r)},t.prototype._parseEvent=function(t,e,r,n,o){var i=p(t,[null,t]),s=i[0],a=i[1],u=this._parseAction(e,r);n.push([t,u.source]),o.push(new no(a,s,null,u,r))},t.prototype._parseAction=function(t,e){var r=e.start.toString();try{var n=this._exprParser.parseAction(t,r,this._interpolationConfig);return n&&this._reportExpressionParserErrors(n.errors,e),!n||n.ast instanceof ii?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",r)):(this._checkPipes(n,e),n)}catch(o){return this._reportError(""+o,e),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype._reportError=function(t,e,r){void 0===r&&(r=Ws.ERROR),this._targetErrors.push(new $s(e,t,r))},t.prototype._reportExpressionParserErrors=function(t,e){for(var r=0,n=t;r<n.length;r++){var o=n[r];this._reportError(o.message,e)}},t.prototype._checkPipes=function(t,e){var r=this;if(t){var n=new hc;t.visit(n),n.pipes.forEach(function(t,n){var o=r.pipesByName.get(n);o?r._usedPipes.set(n,o):r._reportError("The pipe '"+n+"' could not be found",new Gs(e.start.moveBy(t.span.start),e.start.moveBy(t.span.end)))})}},t.prototype._validatePropertyOrAttributeName=function(t,e,r){var n=r?this._schemaRegistry.validateAttribute(t):this._schemaRegistry.validateProperty(t);n.error&&this._reportError(n.msg,e,Ws.ERROR)},t}(),hc=function(t){function e(){var e=t.apply(this,arguments)||this;return e.pipes=new Map,e}return Zn(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}(Ti),fc="select",dc="link",mc="rel",yc="href",vc="stylesheet",gc="style",_c="script",bc="ngNonBindable",wc="ngProjectAs",Cc={};Cc.NG_CONTENT=0,Cc.STYLE=1,Cc.STYLESHEET=2,Cc.SCRIPT=3,Cc.OTHER=4,Cc[Cc.NG_CONTENT]="NG_CONTENT",Cc[Cc.STYLE]="STYLE",Cc[Cc.STYLESHEET]="STYLESHEET",Cc[Cc.SCRIPT]="SCRIPT",Cc[Cc.OTHER]="OTHER";var Ec=function(){function t(t,e,r,n,o){this.type=t,this.selectAttr=e,this.hrefAttr=r,this.nonBindable=n,this.projectAs=o}return t}(),Sc=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,xc=1,Tc=2,Pc=3,Ac=4,Oc=5,Mc=6,Rc=7,kc=8,Ic=9,Nc=10,Dc="template",jc="template",Lc="*",Vc="class",Fc=Eo.parse("*")[0],Uc="The <template> element is deprecated. Use <ng-template> instead",Bc="The template attribute is deprecated. Use an ng-template element instead.",Hc={},qc=new e.InjectionToken("TemplateTransforms"),zc=function(t){function e(e,r,n){return t.call(this,r,e,n)||this}return Zn(e,t),e}($s),Gc=function(){function t(t,e,r){this.templateAst=t,this.usedPipes=e,this.errors=r}return t}(),Wc=function(){function t(t,e,r,n,o,i){this._config=t,this._exprParser=e,this._schemaRegistry=r,this._htmlParser=n,this._console=o,this.transforms=i}return t.prototype.parse=function(t,e,r,n,o,i){var s=this.tryParse(t,e,r,n,o,i),a=s.errors.filter(function(t){return t.level===Ws.WARNING}).filter(Ie([Bc,Uc])),u=s.errors.filter(function(t){return t.level===Ws.ERROR});if(a.length>0&&this._console.warn("Template parse warnings:\n"+a.join("\n")),u.length>0){var c=u.join("\n");throw v("Template parse errors:\n"+c)}return{template:s.templateAst,pipes:s.usedPipes}},t.prototype.tryParse=function(t,e,r,n,o,i){return this.tryParseHtml(this.expandHtml(this._htmlParser.parse(e,i,!0,this.getInterpolationConfig(t))),t,r,n,o)},t.prototype.tryParseHtml=function(t,e,n,o,i){var s,a=t.errors,u=[];if(t.rootNodes.length>0){var c=Le(n),l=Le(o),p=new Xu(e),h=void 0;e.template&&e.template.interpolation&&(h={start:e.template.interpolation[0],end:e.template.interpolation[1]});var f=new pc(this._exprParser,h,this._schemaRegistry,l,a),d=new $c(this._config,p,c,f,this._schemaRegistry,i,a);s=lt(d,t.rootNodes,Zc),a.push.apply(a,p.errors),u.push.apply(u,f.getUsedPipes())}else s=[];return this._assertNoReferenceDuplicationOnTemplate(s,a),a.length>0?new Gc(s,u,a):(this.transforms&&this.transforms.forEach(function(t){s=r(t,s)}),new Gc(s,u,a))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var r=t.errors;if(0==r.length||e){var n=ve(t.rootNodes);r.push.apply(r,n.errors),t=new ua(n.nodes,r)}return t},t.prototype.getInterpolationConfig=function(t){return t.template?Ms.fromArray(t.template.interpolation):void 0},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,e){var r=[];t.filter(function(t){return!!t.references}).forEach(function(t){return t.references.forEach(function(t){var n=t.name;if(r.indexOf(n)<0)r.push(n);else{var o=new zc('Reference "#'+n+'" is defined several times',t.sourceSpan,Ws.ERROR);e.push(o)}})})},t}();Wc.decorators=[{type:z}],Wc.ctorParameters=function(){return[{type:ti},{type:Us},{type:Ju},{type:Hu},{type:e.ɵConsole},{type:Array,decorators:[{type:e.Optional},{type:e.Inject,args:[qc]}]}]};var $c=function(){function t(t,e,r,n,o,i,s){var a=this;this.config=t,this.providerViewContext=e,this._bindingParser=n,this._schemaRegistry=o,this._schemas=i,this._targetErrors=s,this.selectorMatcher=new So,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=e.component.viewQueries.length+1,r.forEach(function(t,e){var r=Eo.parse(t.selector);a.selectorMatcher.addSelectables(r,t),a.directivesIndex.set(t,e)})}return t.prototype.visitExpansion=function(){return null},t.prototype.visitExpansionCase=function(){return null},t.prototype.visitText=function(t,e){var r=e.findNgContentIndex(Fc),n=this._bindingParser.parseInterpolation(t.value,t.sourceSpan);return n?new to(n,r,t.sourceSpan):new Jn(t.value,r,t.sourceSpan)},t.prototype.visitAttribute=function(t){return new eo(t.name,t.value,t.sourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitElement=function(t,e){var r=this,n=this.contentQueryStartId,o=t.name,i=Re(t);if(i.type===Cc.SCRIPT||i.type===Cc.STYLE)return null;if(i.type===Cc.STYLESHEET&&Pe(i.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=!1,m=[],y=Fe(t,this.config.enableLegacyTemplate,function(t,e){return r._reportError(t,e,Ws.WARNING)});t.attrs.forEach(function(t){var e,n,o=r._parseAttr(y,t,s,a,l,u,c),i=r._normalizeAttributeName(t.name);r.config.enableLegacyTemplate&&i==jc?(r._reportError(Bc,t.sourceSpan,Ws.WARNING),e=t.value):i.startsWith(Lc)&&(e=t.value,n=i.substring(Lc.length)+":");var v=null!=e;v&&(d&&r._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),d=!0,r._bindingParser.parseInlineTemplateBinding(n,e,t.sourceSpan,h,p,f)),o||v||(m.push(r.visitAttribute(t,null)),s.push([t.name,t.value]))});var v=De(o,s),g=this._parseDirectives(this.selectorMatcher,v),_=g.directives,b=g.matchElement,w=[],C=new Set,E=this._createDirectiveAsts(y,t.name,_,a,u,t.sourceSpan,w,C),S=this._createElementPropertyAsts(t.name,a,C),x=e.isTemplateElement||d,T=new Zu(this.providerViewContext,e.providerContext,x,E,m,w,y,n,t.sourceSpan),P=lt(i.nonBindable?Yc:this,t.children,Xc.create(y,E,y?e.providerContext:T));T.afterElement();var A,O=null!=i.projectAs?Eo.parse(i.projectAs)[0]:v,M=e.findNgContentIndex(O);if(i.type===Cc.NG_CONTENT)t.children&&!t.children.every(je)&&this._reportError("<ng-content> element cannot have content.",t.sourceSpan),A=new ho(this.ngContentCount++,d?null:M,t.sourceSpan);else if(y)this._assertAllEventsPublishedByDirectives(E,l),this._assertNoComponentsNorElementBindingsOnTemplate(E,S,t.sourceSpan),A=new ao(m,l,w,c,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:M,t.sourceSpan);else{this._assertElementExists(b,t),this._assertOnlyOneComponent(E,t.sourceSpan);var R=d?null:e.findNgContentIndex(O);A=new so(o,m,S,l,w,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:R,t.sourceSpan,t.endSourceSpan||null)}if(d){var k=this.contentQueryStartId,I=De(Dc,h),N=this._parseDirectives(this.selectorMatcher,I).directives,D=new Set,j=this._createDirectiveAsts(!0,t.name,N,p,[],t.sourceSpan,[],D),L=this._createElementPropertyAsts(t.name,p,D);this._assertNoComponentsNorElementBindingsOnTemplate(j,L,t.sourceSpan);var V=new Zu(this.providerViewContext,e.providerContext,e.isTemplateElement,j,[],[],!0,k,t.sourceSpan);V.afterElement(),A=new ao([],[],[],f,V.transformedDirectiveAsts,V.transformProviders,V.transformedHasViewContainer,V.queryMatches,[A],M,t.sourceSpan)}return A},t.prototype._parseAttr=function(t,e,r,n,o,i,s){var a=this._normalizeAttributeName(e.name),u=e.value,c=e.sourceSpan,l=a.match(Sc),p=!1;if(null!==l)if(p=!0,null!=l[xc])this._bindingParser.parsePropertyBinding(l[Rc],u,!1,c,r,n);else if(l[Tc])if(t){var h=l[Rc];this._parseVariable(h,u,c,s)}else this._reportError('"let-" is only supported on template elements.',c);else if(l[Pc]){var h=l[Rc];this._parseReference(h,u,c,i)}else l[Ac]?this._bindingParser.parseEvent(l[Rc],u,c,r,o):l[Oc]?(this._bindingParser.parsePropertyBinding(l[Rc],u,!1,c,r,n),this._parseAssignmentEvent(l[Rc],u,c,r,o)):l[Mc]?this._bindingParser.parseLiteralAttr(a,u,c,r,n):l[kc]?(this._bindingParser.parsePropertyBinding(l[kc],u,!1,c,r,n),this._parseAssignmentEvent(l[kc],u,c,r,o)):l[Ic]?this._bindingParser.parsePropertyBinding(l[Ic],u,!1,c,r,n):l[Nc]&&this._bindingParser.parseEvent(l[Nc],u,c,r,o);else p=this._bindingParser.parsePropertyInterpolation(a,u,c,r,n);return p||this._bindingParser.parseLiteralAttr(a,u,c,r,n),p},t.prototype._normalizeAttributeName=function(t){return/^data-/i.test(t)?t.substring(5):t},t.prototype._parseVariable=function(t,e,r,n){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',r),n.push(new io(t,e,r))},t.prototype._parseReference=function(t,e,r,n){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',r),n.push(new Qc(t,e,r))},t.prototype._parseAssignmentEvent=function(t,e,r,n,o){this._bindingParser.parseEvent(t+"Change",e+"=$event",r,n,o)},t.prototype._parseDirectives=function(t,e){var r=this,n=new Array(this.directivesIndex.size),o=!1;return t.match(e,function(t,e){n[r.directivesIndex.get(e)]=e,o=o||t.hasElementSelector()}),{directives:n.filter(function(t){return!!t}),matchElement:o}},t.prototype._createDirectiveAsts=function(t,e,r,n,o,i,s,a){var u=this,c=new Set,l=null,p=r.map(function(t){var r=new Gs(i.start,i.end,"Directive "+E(t.type));t.isComponent&&(l=t);var p=[],h=u._bindingParser.createDirectiveHostPropertyAsts(t,e,r);h=u._checkPropertiesInSchema(e,h);var f=u._bindingParser.createDirectiveHostEventAsts(t,r);u._createDirectivePropertyAsts(t.inputs,n,p,a),o.forEach(function(e){(0===e.value.length&&t.isComponent||t.exportAs==e.value)&&(s.push(new oo(e.name,me(t.type),e.sourceSpan)),c.add(e.name))});var d=u.contentQueryStartId;return u.contentQueryStartId+=t.queries.length,new co(t,p,h,f,d,r)});return o.forEach(function(e){if(e.value.length>0)c.has(e.name)||u._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!l){var r=null;t&&(r=ye(zu.TemplateRef)),s.push(new oo(e.name,r,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,r,n){if(t){var o=new Map;e.forEach(function(t){var e=o.get(t.name);(!e||e.isLiteral)&&o.set(t.name,t)}),Object.keys(t).forEach(function(e){var i=t[e],s=o.get(i);s&&(n.add(s.name),Ve(s.expression)||r.push(new uo(e,s.name,s.expression,s.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(t,e,r){var n=this,o=[];return e.forEach(function(e){e.isLiteral||r.has(e.name)||o.push(n._bindingParser.createElementPropertyAst(t,e))}),this._checkPropertiesInSchema(t,o)},t.prototype._findComponentDirectives=function(t){return t.filter(function(t){return t.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(t){return this._findComponentDirectives(t).map(function(t){return E(t.directive.type)})},t.prototype._assertOnlyOneComponent=function(t,e){var r=this._findComponentDirectiveNames(t);r.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: "+r.join(","),e)},t.prototype._assertElementExists=function(t,e){var r=e.name.replace(/^:xhtml:/,"");if(!t&&!this._schemaRegistry.hasElement(r,this._schemas)){var n="'"+r+"' is not a known element:\n";n+="1. If '"+r+"' is an Angular component, then verify that it is part of this module.\n",n+=r.indexOf("-")>-1?"2. If '"+r+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.":"2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",this._reportError(n,e.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,r){var n=this,o=this._findComponentDirectiveNames(t);o.length>0&&this._reportError("Components on an embedded template: "+o.join(","),r),e.forEach(function(t){n._reportError("Property binding "+t.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".',r)})},t.prototype._assertAllEventsPublishedByDirectives=function(t,e){var r=this,n=new Set;t.forEach(function(t){Object.keys(t.directive.outputs).forEach(function(e){var r=t.directive.outputs[e];n.add(r)})}),e.forEach(function(t){null==t.target&&n.has(t.name)||r._reportError("Event binding "+t.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".',t.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(t,e){var r=this;return e.filter(function(e){if(e.type===fo.Property&&!r._schemaRegistry.hasProperty(t,e.name,r._schemas)){var n="Can't bind to '"+e.name+"' since it isn't a known property of '"+t+"'.";t.startsWith("ng-")?n+="\n1. If '"+e.name+"' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.":t.indexOf("-")>-1&&(n+="\n1. If '"+t+"' is an Angular component and it has '"+e.name+"' input, then verify that it is part of this module."+("\n2. If '"+t+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.")+"\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component."),r._reportError(n,e.sourceSpan)}return!Ve(e.value)})},t.prototype._reportError=function(t,e,r){void 0===r&&(r=Ws.ERROR),this._targetErrors.push(new $s(e,t,r))},t}(),Kc=function(){function t(){}return t.prototype.visitElement=function(t,e){var r=Re(t);if(r.type===Cc.SCRIPT||r.type===Cc.STYLE||r.type===Cc.STYLESHEET)return null;var n=t.attrs.map(function(t){return[t.name,t.value]}),o=De(t.name,n),i=e.findNgContentIndex(o),s=lt(this,t.children,Zc);return new so(t.name,lt(this,t.attrs),[],[],[],[],[],!1,[],s,i,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitAttribute=function(t){return new eo(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var r=e.findNgContentIndex(Fc);return new Jn(t.value,r,t.sourceSpan)},t.prototype.visitExpansion=function(t){return t},t.prototype.visitExpansionCase=function(t){return t},t}(),Qc=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t}(),Xc=function(){function t(t,e,r,n){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=r,this.providerContext=n}return t.create=function(e,r,n){var o=new So,i=null,s=r.find(function(t){return t.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u<a.length;u++){var c=a[u];"*"===c?i=u:o.addSelectables(Eo.parse(a[u]),u)}return new t(e,o,i,n)},t.prototype.findNgContentIndex=function(t){var e=[];return this._ngContentIndexMatcher.match(t,function(t,r){e.push(r)}),e.sort(),null!=this._wildcardNgContentIndex&&e.push(this._wildcardNgContentIndex),e.length>0?e[0]:null},t}(),Zc=new Xc(!0,new So,null,null),Yc=new Kc,Jc=function(){function t(){}return t.prototype.get=function(){return null},t}(),tl={provide:e.PACKAGE_ROOT_URL,useValue:"/"},el=function(){function t(t){void 0===t&&(t=null),this._packagePrefix=t}return t.prototype.resolve=function(t,e){var r=e;null!=t&&t.length>0&&(r=$e(t,r));var n=ze(r),o=this._packagePrefix;if(null!=o&&null!=n&&"package"==n[nl.Scheme]){var i=n[nl.Path];return o=o.replace(/\/+$/,""),i=i.replace(/^\/+/,""),o+"/"+i}return r},t}();el.decorators=[{type:z}],el.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.PACKAGE_ROOT_URL]}]}]};var rl=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),nl={};nl.Scheme=1,nl.UserInfo=2,nl.Domain=3,nl.Port=4,nl.Path=5,nl.QueryData=6,nl.Fragment=7,nl[nl.Scheme]="Scheme",nl[nl.UserInfo]="UserInfo",nl[nl.Domain]="Domain",nl[nl.Port]="Port",nl[nl.Path]="Path",nl[nl.QueryData]="QueryData",nl[nl.Fragment]="Fragment";var ol=function(){function t(t,e,r,n){this._resourceLoader=t,this._urlResolver=e,this._htmlParser=r,this._config=n,this._resourceLoaderCache=new Map}return t.prototype.clearCache=function(){this._resourceLoaderCache.clear()},t.prototype.clearCacheFor=function(t){var e=this;if(t.isComponent){var r=t.template;this._resourceLoaderCache["delete"](r.templateUrl),r.externalStylesheets.forEach(function(t){e._resourceLoaderCache["delete"](t.moduleUrl)})}},t.prototype._fetch=function(t){var e=this._resourceLoaderCache.get(t);return e||(e=this._resourceLoader.get(t),this._resourceLoaderCache.set(t,e)),e},t.prototype.normalizeTemplate=function(t){var r=this,n=null,o=void 0;if(m(t.template)){if(m(t.templateUrl))throw v("'"+e.ɵstringify(t.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof t.template)throw v("The template specified for component "+e.ɵstringify(t.componentType)+" is not a string");n=this.normalizeTemplateSync(t),o=Promise.resolve(n)}else{if(!m(t.templateUrl))throw v("No template specified for component "+e.ɵstringify(t.componentType));if("string"!=typeof t.templateUrl)throw v("The templateUrl specified for component "+e.ɵstringify(t.componentType)+" is not a string");o=this.normalizeTemplateAsync(t)}return n&&0===n.styleUrls.length?new Mo(n):new Mo(null,o.then(function(t){return r.normalizeExternalStylesheets(t)}))},t.prototype.normalizeTemplateSync=function(t){return this.normalizeLoadedTemplate(t,t.template,t.moduleUrl)},t.prototype.normalizeTemplateAsync=function(t){var e=this,r=this._urlResolver.resolve(t.moduleUrl,t.templateUrl);return this._fetch(r).then(function(n){return e.normalizeLoadedTemplate(t,n,r)})},t.prototype.normalizeLoadedTemplate=function(t,r,n){var o=!!t.template,i=Ms.fromArray(t.interpolation),s=this._htmlParser.parse(r,j({reference:t.ngModuleType},{type:{reference:t.componentType}},{isInline:o,templateUrl:n}),!0,i);if(s.errors.length>0){var a=s.errors.join("\n");throw v("Template parse errors:\n"+a)}var u=this.normalizeStylesheet(new $o({styles:t.styles,styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})),c=new il;lt(c,s.rootNodes);var l=this.normalizeStylesheet(new $o({styles:c.styles,styleUrls:c.styleUrls,moduleUrl:n})),p=t.encapsulation;null==p&&(p=this._config.defaultEncapsulation);var h=u.styles.concat(l.styles),f=u.styleUrls.concat(l.styleUrls);return p===e.ViewEncapsulation.Emulated&&0===h.length&&0===f.length&&(p=e.ViewEncapsulation.None),new Ko({encapsulation:p,template:r,templateUrl:n,styles:h,styleUrls:f,ngContentSelectors:c.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:o,externalStylesheets:[]})},t.prototype.normalizeExternalStylesheets=function(t){return this._loadMissingExternalStylesheets(t.styleUrls).then(function(e){return new Ko({encapsulation:t.encapsulation,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,externalStylesheets:e,ngContentSelectors:t.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:t.isInline})})},t.prototype._loadMissingExternalStylesheets=function(t,e){var r=this;return void 0===e&&(e=new Map),Promise.all(t.filter(function(t){return!e.has(t)}).map(function(t){return r._fetch(t).then(function(n){var o=r.normalizeStylesheet(new $o({styles:[n],moduleUrl:t}));return e.set(t,o),r._loadMissingExternalStylesheets(o.styleUrls,e)})})).then(function(){return Array.from(e.values())})},t.prototype.normalizeStylesheet=function(t){var e=this,r=t.moduleUrl,n=t.styleUrls.filter(Pe).map(function(t){return e._urlResolver.resolve(r,t)}),o=t.styles.map(function(t){var o=Ae(e._urlResolver,r,t);return n.push.apply(n,o.styleUrls),o.style});return new $o({styles:o,styleUrls:n,moduleUrl:r})},t}();ol.decorators=[{type:z}],ol.ctorParameters=function(){return[{type:Jc},{type:el},{type:Fu},{type:ti}]};var il=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t){var e=Re(t);switch(e.type){case Cc.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(e.selectAttr);break;case Cc.STYLE:var r="";t.children.forEach(function(t){t instanceof Ks&&(r+=t.value)}),this.styles.push(r);break;case Cc.STYLESHEET:this.styleUrls.push(e.hrefAttr)}return e.nonBindable&&this.ngNonBindableStackCount++,lt(this,t.children),e.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t){lt(this,t.cases)},t.prototype.visitExpansionCase=function(t){lt(this,t.expression)},t.prototype.visitComment=function(){return null},t.prototype.visitAttribute=function(){return null},t.prototype.visitText=function(){return null},t}(),sl=void 0||Object.assign||function(t){for(var e,r=1,n=arguments.length;n>r;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},al=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isDirective=function(t){var r=this._reflector.annotations(e.resolveForwardRef(t));return r&&r.some(Ke)},t.prototype.resolve=function(t,r){void 0===r&&(r=!0);var n=this._reflector.annotations(e.resolveForwardRef(t));if(n){var o=Qe(n,Ke);if(o){var i=this._reflector.propMetadata(t);return this._mergeWithPropertyMetadata(o,i,t)}}if(r)throw new Error("No Directive annotation found on "+e.ɵstringify(t));return null},t.prototype._mergeWithPropertyMetadata=function(t,r,n){var o=[],i=[],s={},a={};return Object.keys(r).forEach(function(t){var n=Qe(r[t],function(t){return t instanceof e.Input});n&&o.push(n.bindingPropertyName?t+": "+n.bindingPropertyName:t);var u=Qe(r[t],function(t){return t instanceof e.Output});u&&i.push(u.bindingPropertyName?t+": "+u.bindingPropertyName:t);var c=r[t].filter(function(t){return t&&t instanceof e.HostBinding});c.forEach(function(e){if(e.hostPropertyName){var r=e.hostPropertyName[0];if("("===r)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===r)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");s["["+e.hostPropertyName+"]"]=t}else s["["+t+"]"]=t});var l=r[t].filter(function(t){return t&&t instanceof e.HostListener});l.forEach(function(e){var r=e.args||[];s["("+e.eventName+")"]=t+"("+r.join(",")+")"});var p=Qe(r[t],function(t){return t instanceof e.Query});p&&(a[t]=p)}),this._merge(t,o,i,s,a,n);
 
-return t instanceof e.Component?new e.Component({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,moduleId:t.moduleId,queries:c,changeDetection:t.changeDetection,providers:t.providers,viewProviders:t.viewProviders,entryComponents:t.entryComponents,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,encapsulation:t.encapsulation,animations:t.animations,interpolation:t.interpolation}):new e.Directive({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,queries:c,providers:t.providers})},t}();al.decorators=[{type:z}],al.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var ul=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,cl=/\.ngfactory\./,ll=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(nr)},t.prototype.resolve=function(t,r){void 0===r&&(r=!0);var n=Qe(this._reflector.annotations(t),nr);if(n)return n;if(r)throw new Error("No NgModule metadata found for '"+e.ɵstringify(t)+"'.");return null},t}();ll.decorators=[{type:z}],ll.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var pl=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isPipe=function(t){var r=this._reflector.annotations(e.resolveForwardRef(t));return r&&r.some(or)},t.prototype.resolve=function(t,r){void 0===r&&(r=!0);var n=this._reflector.annotations(e.resolveForwardRef(t));if(n){var o=Qe(n,or);if(o)return o}if(r)throw new Error("No Pipe decorator found on "+e.ɵstringify(t));return null},t}();pl.decorators=[{type:z}],pl.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var hl=function(){function t(){}return t.prototype.isLibraryFile=function(){return!1},t.prototype.getLibraryFileName=function(){return null},t.prototype.resolveSummary=function(){return null},t.prototype.getSymbolsOf=function(){return[]},t.prototype.getImportAs=function(t){return t},t}();hl.decorators=[{type:z}],hl.ctorParameters=function(){return[]};var fl=new e.InjectionToken("ErrorCollector"),dl=function(){function t(t,r,n,o,i,s,a,u,c,l,p){void 0===l&&(l=e.ɵreflector),this._config=t,this._ngModuleResolver=r,this._directiveResolver=n,this._pipeResolver=o,this._summaryResolver=i,this._schemaRegistry=s,this._directiveNormalizer=a,this._console=u,this._staticSymbolCache=c,this._reflector=l,this._errorCollector=p,this._nonNormalizedDirectiveCache=new Map,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map}return t.prototype.clearCacheFor=function(t){var e=this._directiveCache.get(t);this._directiveCache["delete"](t),this._nonNormalizedDirectiveCache["delete"](t),this._summaryCache["delete"](t),this._pipeCache["delete"](t),this._ngModuleOfTypes["delete"](t),this._ngModuleCache.clear(),e&&this._directiveNormalizer.clearCacheFor(e)},t.prototype.clearCache=function(){this._directiveCache.clear(),this._nonNormalizedDirectiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},t.prototype._createProxyClass=function(t,r){var n=null,o=function(){if(!n)throw new Error("Illegal state: Class "+r+" for type "+e.ɵstringify(t)+" is not compiled yet!");return n.apply(this,arguments)};return o.setDelegate=function(t){n=t,o.prototype=t.prototype},o.overriddenName=r,o},t.prototype.getGeneratedClass=function(t,e){return t instanceof mo?this._staticSymbolCache.get(Xe(t.filePath),e):this._createProxyClass(t,e)},t.prototype.getComponentViewClass=function(t){return this.getGeneratedClass(t,x(t,0))},t.prototype.getHostComponentViewClass=function(t){return this.getGeneratedClass(t,P(t))},t.prototype.getHostComponentType=function(t){var e=E({reference:t})+"_Host";if(t instanceof mo)return this._staticSymbolCache.get(t.filePath,e);var r=function(){};return r.overriddenName=e,r},t.prototype.getRendererType=function(t){return t instanceof mo?this._staticSymbolCache.get(Xe(t.filePath),T(t)):{}},t.prototype.getComponentFactory=function(t,r,n,o){if(r instanceof mo)return this._staticSymbolCache.get(Xe(r.filePath),O(r));var i=this.getHostComponentViewClass(r);return e.ɵccf(t,r,i,n,o,[])},t.prototype.initComponentFactory=function(t,e){t instanceof mo||(r=t.ngContentSelectors).push.apply(r,e);var r},t.prototype._loadSummary=function(t,e){var r=this._summaryCache.get(t);if(!r){var n=this._summaryResolver.resolveSummary(t);r=n?n.type:null,this._summaryCache.set(t,r||null)}return r&&r.summaryKind===e?r:null},t.prototype._loadDirectiveMetadata=function(t,r,n){var o=this;if(this._directiveCache.has(r))return null;r=e.resolveForwardRef(r);var i=this.getNonNormalizedDirectiveMetadata(r),s=i.annotation,a=i.metadata,u=function(t){var e=new Qo({isHost:!1,type:a.type,isComponent:a.isComponent,selector:a.selector,exportAs:a.exportAs,changeDetection:a.changeDetection,inputs:a.inputs,outputs:a.outputs,hostListeners:a.hostListeners,hostProperties:a.hostProperties,hostAttributes:a.hostAttributes,providers:a.providers,viewProviders:a.viewProviders,queries:a.queries,viewQueries:a.viewQueries,entryComponents:a.entryComponents,componentViewType:a.componentViewType,rendererType:a.rendererType,componentFactory:a.componentFactory,template:t});return t&&o.initComponentFactory(a.componentFactory,t.ngContentSelectors),o._directiveCache.set(r,e),o._summaryCache.set(r,e.toSummary()),e};if(a.isComponent){var c=a.template,l=this._directiveNormalizer.normalizeTemplate({ngModuleType:t,componentType:r,moduleUrl:cr(this._reflector,r,s),encapsulation:c.encapsulation,template:c.template,templateUrl:c.templateUrl,styles:c.styles,styleUrls:c.styleUrls,animations:c.animations,interpolation:c.interpolation});return l.syncResult?(u(l.syncResult),null):n?(this._reportError(hr(r),r),null):l.asyncResult.then(u)}return u(null),null},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var r=this;if(t=e.resolveForwardRef(t),!t)return null;var n=this._nonNormalizedDirectiveCache.get(t);if(n)return n;var o=this._directiveResolver.resolve(t,!1);if(!o)return null;var i=void 0;if(o instanceof e.Component){G("styles",o.styles),G("styleUrls",o.styleUrls),W("interpolation",o.interpolation);var s=o.animations;i=new Ko({encapsulation:y(o.encapsulation),template:y(o.template),templateUrl:y(o.templateUrl),styles:o.styles||[],styleUrls:o.styleUrls||[],animations:s||[],interpolation:y(o.interpolation),isInline:!!o.template,externalStylesheets:[],ngContentSelectors:[]})}var a=null,u=[],c=[],l=o.selector;o instanceof e.Component?(a=o.changeDetection,o.viewProviders&&(u=this._getProvidersMetadata(o.viewProviders,c,'viewProviders for "'+pr(t)+'"',[],t)),o.entryComponents&&(c=ar(o.entryComponents).map(function(t){return r._getEntryComponentMetadata(t)}).concat(c)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(this._reportError(v("Directive "+pr(t)+" has no selector, please add it!"),t),l="error");var p=[];null!=o.providers&&(p=this._getProvidersMetadata(o.providers,c,'providers for "'+pr(t)+'"',[],t));var h=[],f=[];null!=o.queries&&(h=this._getQueriesMetadata(o.queries,!1,t),f=this._getQueriesMetadata(o.queries,!0,t));var d=Qo.create({isHost:!1,selector:l,exportAs:y(o.exportAs),isComponent:!!i,type:this._getTypeMetadata(t),template:i,changeDetection:a,inputs:o.inputs||[],outputs:o.outputs||[],host:o.host||{},providers:p||[],viewProviders:u||[],queries:h||[],viewQueries:f||[],entryComponents:c,componentViewType:i?this.getComponentViewClass(t):null,rendererType:i?this.getRendererType(t):null,componentFactory:null});return i&&(d.componentFactory=this.getComponentFactory(l,t,d.inputs,d.outputs)),n={metadata:d,annotation:o},this._nonNormalizedDirectiveCache.set(t,n),n},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(v("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+pr(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,Wo.Directive);return e||this._reportError(v("Illegal state: Could not load the summary for directive "+pr(t)+"."),t),e},t.prototype.isDirective=function(t){return this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return this._pipeResolver.isPipe(t)},t.prototype.getNgModuleSummary=function(t){var e=this._loadSummary(t,Wo.NgModule);if(!e){var r=this.getNgModuleMetadata(t,!1);e=r?r.toSummary():null,e&&this._summaryCache.set(t,e)}return e},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,r){var n=this;void 0===r&&(r=!0);var o=this.getNgModuleMetadata(t,r),i=[];return o&&(o.declaredDirectives.forEach(function(r){var o=n._loadDirectiveMetadata(t,r.reference,e);o&&i.push(o)}),o.declaredPipes.forEach(function(t){return n._loadPipeMetadata(t.reference)})),Promise.all(i)},t.prototype.getNgModuleMetadata=function(t,r){var n=this;void 0===r&&(r=!0),t=e.resolveForwardRef(t);var o=this._ngModuleCache.get(t);if(o)return o;var i=this._ngModuleResolver.resolve(t,r);if(!i)return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=[];i.imports&&ar(i.imports).forEach(function(e){var r=void 0;if(ur(e))r=e;else if(e&&e.ngModule){var o=e;r=o.ngModule,o.providers&&p.push.apply(p,n._getProvidersMetadata(o.providers,h,"provider for the NgModule '"+pr(r)+"'",[],e))}if(!r)return void n._reportError(v("Unexpected value '"+pr(e)+"' imported by the module '"+pr(t)+"'"),t);if(!n._checkSelfImport(t,r)){var i=n.getNgModuleSummary(r);return i?void c.push(i):void n._reportError(v("Unexpected "+n._getTypeDescriptor(e)+" '"+pr(e)+"' imported by the module '"+pr(t)+"'. Please add a @NgModule annotation."),t)}}),i.exports&&ar(i.exports).forEach(function(e){if(!ur(e))return void n._reportError(v("Unexpected value '"+pr(e)+"' exported by the module '"+pr(t)+"'"),t);var r=n.getNgModuleSummary(e);r?l.push(r):a.push(n._getIdentifierMetadata(e))});var m=this._getTransitiveNgModuleMetadata(c,l);i.declarations&&ar(i.declarations).forEach(function(e){if(!ur(e))return void n._reportError(v("Unexpected value '"+pr(e)+"' declared by the module '"+pr(t)+"'"),t);var r=n._getIdentifierMetadata(e);if(n._directiveResolver.isDirective(e))m.addDirective(r),s.push(r),n._addTypeToModule(e,t);else{if(!n._pipeResolver.isPipe(e))return void n._reportError(v("Unexpected "+n._getTypeDescriptor(e)+" '"+pr(e)+"' declared by the module '"+pr(t)+"'. Please add a @Pipe/@Directive/@Component annotation."),t);m.addPipe(r),m.pipes.push(r),u.push(r),n._addTypeToModule(e,t)}});var y=[],g=[];return a.forEach(function(e){if(m.directivesSet.has(e.reference))y.push(e),m.addExportedDirective(e);else{if(!m.pipesSet.has(e.reference))return void n._reportError(v("Can't export "+n._getTypeDescriptor(e.reference)+" "+pr(e.reference)+" from "+pr(t)+" as it was neither declared nor imported!"),t);g.push(e),m.addExportedPipe(e)}}),i.providers&&p.push.apply(p,this._getProvidersMetadata(i.providers,h,"provider for the NgModule '"+pr(t)+"'",[],t)),i.entryComponents&&h.push.apply(h,ar(i.entryComponents).map(function(t){return n._getEntryComponentMetadata(t)})),i.bootstrap&&ar(i.bootstrap).forEach(function(e){return ur(e)?void f.push(n._getIdentifierMetadata(e)):void n._reportError(v("Unexpected value '"+pr(e)+"' used in the bootstrap property of module '"+pr(t)+"'"),t)}),h.push.apply(h,f.map(function(t){return n._getEntryComponentMetadata(t.reference)})),i.schemas&&d.push.apply(d,ar(i.schemas)),o=new Zo({type:this._getTypeMetadata(t),providers:p,entryComponents:h,bootstrapComponents:f,schemas:d,declaredDirectives:s,exportedDirectives:y,declaredPipes:u,exportedPipes:g,importedModules:c,exportedModules:l,transitiveModule:m,id:i.id||null}),h.forEach(function(t){return m.addEntryComponent(t)}),p.forEach(function(t){return m.addProvider(t,o.type)}),m.addModule(o.type),this._ngModuleCache.set(t,o),o},t.prototype._checkSelfImport=function(t,e){return t===e?(this._reportError(v("'"+pr(t)+"' module can't import itself"),t),!0):!1},t.prototype._getTypeDescriptor=function(t){return this._directiveResolver.isDirective(t)?"directive":this._pipeResolver.isPipe(t)?"pipe":this._ngModuleResolver.isNgModule(t)?"module":t.provide?"provider":"value"},t.prototype._addTypeToModule=function(t,e){var r=this._ngModuleOfTypes.get(t);return r&&r!==e?void this._reportError(v("Type "+pr(t)+" is part of the declarations of 2 modules: "+pr(r)+" and "+pr(e)+"! "+("Please consider moving "+pr(t)+" to a higher module that imports "+pr(r)+" and "+pr(e)+". ")+("You can also create a new NgModule that exports and includes "+pr(t)+" then import that NgModule in "+pr(r)+" and "+pr(e)+".")),e):void this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var r=new Yo,n=new Map;return t.concat(e).forEach(function(t){t.modules.forEach(function(t){return r.addModule(t)}),t.entryComponents.forEach(function(t){return r.addEntryComponent(t)});var e=new Set;t.providers.forEach(function(t){var o=R(t.provider.token),i=n.get(o);i||(i=new Set,n.set(o,i));var s=t.module.reference;(e.has(o)||!i.has(s))&&(i.add(s),e.add(o),r.addProvider(t.provider,t.module))})}),e.forEach(function(t){t.exportedDirectives.forEach(function(t){return r.addExportedDirective(t)}),t.exportedPipes.forEach(function(t){return r.addExportedPipe(t)})}),t.forEach(function(t){t.exportedDirectives.forEach(function(t){return r.addDirective(t)}),t.exportedPipes.forEach(function(t){return r.addPipe(t)})}),r},t.prototype._getIdentifierMetadata=function(t){return t=e.resolveForwardRef(t),{reference:t}},t.prototype.isInjectable=function(t){var r=this._reflector.annotations(t);return r.some(function(t){return t.constructor===e.Injectable})},t.prototype.getInjectableSummary=function(t){return{summaryKind:Wo.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype._getInjectableMetadata=function(t,e){void 0===e&&(e=null);var r=this._loadSummary(t,Wo.Injectable);return r?r.type:this._getTypeMetadata(t,e)},t.prototype._getTypeMetadata=function(t,r,n){void 0===r&&(r=null),void 0===n&&(n=!0);var o=this._getIdentifierMetadata(t);return{reference:o.reference,diDeps:this._getDependenciesMetadata(o.reference,r,n),lifecycleHooks:e.ɵLIFECYCLE_HOOKS_VALUES.filter(function(t){return er(t,o.reference)})}},t.prototype._getFactoryMetadata=function(t,r){return void 0===r&&(r=null),t=e.resolveForwardRef(t),{reference:t,diDeps:this._getDependenciesMetadata(t,r)}},t.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(v("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+pr(t)+"."),t),e||null},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,Wo.Pipe);return e||this._reportError(v("Illegal state: Could not load the summary for pipe "+pr(t)+"."),t),e},t.prototype.getOrLoadPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||(e=this._loadPipeMetadata(t)),e},t.prototype._loadPipeMetadata=function(t){t=e.resolveForwardRef(t);var r=this._pipeResolver.resolve(t),n=new Xo({type:this._getTypeMetadata(t),name:r.name,pure:!!r.pure});return this._pipeCache.set(t,n),this._summaryCache.set(t,n.toSummary()),n},t.prototype._getDependenciesMetadata=function(t,r,n){var o=this;void 0===n&&(n=!0);var i=!1,s=r||this._reflector.parameters(t)||[],a=s.map(function(t){var r=!1,n=!1,s=!1,a=!1,u=!1,c=null;return Array.isArray(t)?t.forEach(function(t){t instanceof e.Host?n=!0:t instanceof e.Self?s=!0:t instanceof e.SkipSelf?a=!0:t instanceof e.Optional?u=!0:t instanceof e.Attribute?(r=!0,c=t.attributeName):t instanceof e.Inject?c=t.token:t instanceof e.InjectionToken?c=t:ur(t)&&null==c&&(c=t)}):c=t,null==c?(i=!0,null):{isAttribute:r,isHost:n,isSelf:s,isSkipSelf:a,isOptional:u,token:o._getTokenMetadata(c)}});if(i){var u=a.map(function(t){return t?pr(t.token):"?"}).join(", "),c="Can't resolve all parameters for "+pr(t)+": ("+u+").";n?this._reportError(v(c),t):this._console.warn("Warning: "+c+" This will become an error in Angular v5.x")}return a},t.prototype._getTokenMetadata=function(t){t=e.resolveForwardRef(t);var r;return r="string"==typeof t?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,r,n,o,i){var s=this;return void 0===o&&(o=[]),t.forEach(function(a,u){if(Array.isArray(a))s._getProvidersMetadata(a,r,n,o);else{a=e.resolveForwardRef(a);var c=void 0;if(a&&"object"==typeof a&&a.hasOwnProperty("provide"))s._validateProvider(a),c=new Jo(a.provide,a);else{if(!ur(a)){if(void 0===a)return void s._reportError(v("Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files."));var l=t.reduce(function(t,e,r){return u>r?t.push(""+pr(e)):r==u?t.push("?"+pr(e)+"?"):r==u+1&&t.push("..."),t},[]).join(", ");return void s._reportError(v("Invalid "+(n?n:"provider")+" - only instances of Provider and Type are allowed, got: ["+l+"]"),i)}c=new Jo(a,{useClass:a})}c.token===fe(zu.ANALYZE_FOR_ENTRY_COMPONENTS)?r.push.apply(r,s._getEntryComponentsFromProvider(c,i)):o.push(s.getProviderMetadata(c))}}),o},t.prototype._validateProvider=function(t){t.hasOwnProperty("useClass")&&null==t.useClass&&this._reportError(v("Invalid provider for "+pr(t.provide)+". useClass cannot be "+t.useClass+".\n           Usually it happens when:\n           1. There's a circular dependency (might be caused by using index.ts (barrel) files).\n           2. Class was used before it was declared. Use forwardRef in this case."))},t.prototype._getEntryComponentsFromProvider=function(t,e){var r=this,n=[],o=[];return t.useFactory||t.useExisting||t.useClass?(this._reportError(v("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),e),[]):t.multi?(lr(t.useValue,o),o.forEach(function(t){var e=r._getEntryComponentMetadata(t.reference,!1);e&&n.push(e)}),n):(this._reportError(v("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),e),[])},t.prototype._getEntryComponentMetadata=function(t,e){void 0===e&&(e=!0);var r=this.getNonNormalizedDirectiveMetadata(t);if(r&&r.metadata.isComponent)return{componentType:t,componentFactory:r.metadata.componentFactory};var n=this._loadSummary(t,Wo.Directive);if(n&&n.isComponent)return{componentType:t,componentFactory:n.componentFactory};if(e)throw v(t.name+" cannot be used as an entry component.");return null},t.prototype.getProviderMetadata=function(t){var e=void 0,r=null,n=null,o=this._getTokenMetadata(t.token);return t.useClass?(r=this._getInjectableMetadata(t.useClass,t.dependencies),e=r.diDeps,t.token===t.useClass&&(o={identifier:r})):t.useFactory&&(n=this._getFactoryMetadata(t.useFactory,t.dependencies),e=n.diDeps),{token:o,useClass:r,useValue:t.useValue,useFactory:n,useExisting:t.useExisting?this._getTokenMetadata(t.useExisting):void 0,deps:e,multi:t.multi}},t.prototype._getQueriesMetadata=function(t,e,r){var n=this,o=[];return Object.keys(t).forEach(function(i){var s=t[i];s.isViewQuery===e&&o.push(n._getQueryMetadata(s,i,r))}),o},t.prototype._queryVarBindings=function(t){return t.split(/\s*,\s*/)},t.prototype._getQueryMetadata=function(t,e,r){var n,o=this;return"string"==typeof t.selector?n=this._queryVarBindings(t.selector).map(function(t){return o._getTokenMetadata(t)}):t.selector?n=[this._getTokenMetadata(t.selector)]:(this._reportError(v("Can't construct a query for the property \""+e+'" of "'+pr(r)+"\" since the query selector wasn't defined."),r),n=[]),{selectors:n,first:t.first,descendants:t.descendants,propertyName:e,read:t.read?this._getTokenMetadata(t.read):null}},t.prototype._reportError=function(t,e,r){if(!this._errorCollector)throw t;this._errorCollector(t,e),r&&this._errorCollector(t,r)},t}();dl.decorators=[{type:z}],dl.ctorParameters=function(){return[{type:ti},{type:ll},{type:al},{type:pl},{type:hl},{type:Ju},{type:ol},{type:e.ɵConsole},{type:yo,decorators:[{type:e.Optional}]},{type:e.ɵReflectorReader},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[fl]}]}]};var ml=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.visitOther=function(t,e){e.push({reference:t})},e}(Oo),yl={};yl.Const=0,yl[yl.Const]="Const";var vl=function(){function t(t){void 0===t&&(t=null),this.modifiers=t,t||(this.modifiers=[])}return t.prototype.visitType=function(){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),gl={};gl.Dynamic=0,gl.Bool=1,gl.String=2,gl.Int=3,gl.Number=4,gl.Function=5,gl.Inferred=6,gl[gl.Dynamic]="Dynamic",gl[gl.Bool]="Bool",gl[gl.String]="String",gl[gl.Int]="Int",gl[gl.Number]="Number",gl[gl.Function]="Function",gl[gl.Inferred]="Inferred";var _l=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this,r)||this;return n.name=e,n}return Zn(e,t),e.prototype.visitType=function(t,e){return t.visitBuiltintType(this,e)},e}(vl),bl=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this,r)||this;return n.value=e,n}return Zn(e,t),e.prototype.visitType=function(t,e){return t.visitExpressionType(this,e)},e}(vl),wl=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this,r)||this;return n.of=e,n}return Zn(e,t),e.prototype.visitType=function(t,e){return t.visitArrayType(this,e)},e}(vl),Cl=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this,r)||this;return n.valueType=e||null,n}return Zn(e,t),e.prototype.visitType=function(t,e){return t.visitMapType(this,e)},e}(vl),El=new _l(gl.Dynamic),Sl=new _l(gl.Inferred),xl=new _l(gl.Bool),Tl=(new _l(gl.Int),new _l(gl.Number),new _l(gl.String),new _l(gl.Function),{});Tl.Equals=0,Tl.NotEquals=1,Tl.Identical=2,Tl.NotIdentical=3,Tl.Minus=4,Tl.Plus=5,Tl.Divide=6,Tl.Multiply=7,Tl.Modulo=8,Tl.And=9,Tl.Or=10,Tl.Lower=11,Tl.LowerEquals=12,Tl.Bigger=13,Tl.BiggerEquals=14,Tl[Tl.Equals]="Equals",Tl[Tl.NotEquals]="NotEquals",Tl[Tl.Identical]="Identical",Tl[Tl.NotIdentical]="NotIdentical",Tl[Tl.Minus]="Minus",Tl[Tl.Plus]="Plus",Tl[Tl.Divide]="Divide",Tl[Tl.Multiply]="Multiply",Tl[Tl.Modulo]="Modulo",Tl[Tl.And]="And",Tl[Tl.Or]="Or",Tl[Tl.Lower]="Lower",Tl[Tl.LowerEquals]="LowerEquals",Tl[Tl.Bigger]="Bigger",Tl[Tl.BiggerEquals]="BiggerEquals";var Pl=function(){function t(t,e){this.type=t||null,this.sourceSpan=e||null}return t.prototype.visitExpression=function(){},t.prototype.prop=function(t,e){return new Gl(this,t,null,e)},t.prototype.key=function(t,e,r){return new Wl(this,t,e,r)},t.prototype.callMethod=function(t,e,r){return new Nl(this,t,e,null,r)},t.prototype.callFn=function(t,e){return new Dl(this,t,null,e)},t.prototype.instantiate=function(t,e,r){return new jl(this,t,e,r)},t.prototype.conditional=function(t,e,r){return void 0===e&&(e=null),new Fl(this,t,e,null,r)},t.prototype.equals=function(t,e){return new zl(Tl.Equals,this,t,null,e)},t.prototype.notEquals=function(t,e){return new zl(Tl.NotEquals,this,t,null,e)},t.prototype.identical=function(t,e){return new zl(Tl.Identical,this,t,null,e)},t.prototype.notIdentical=function(t,e){return new zl(Tl.NotIdentical,this,t,null,e)},t.prototype.minus=function(t,e){return new zl(Tl.Minus,this,t,null,e)},t.prototype.plus=function(t,e){return new zl(Tl.Plus,this,t,null,e)},t.prototype.divide=function(t,e){return new zl(Tl.Divide,this,t,null,e)},t.prototype.multiply=function(t,e){return new zl(Tl.Multiply,this,t,null,e)},t.prototype.modulo=function(t,e){return new zl(Tl.Modulo,this,t,null,e)},t.prototype.and=function(t,e){return new zl(Tl.And,this,t,null,e)},t.prototype.or=function(t,e){return new zl(Tl.Or,this,t,null,e)},t.prototype.lower=function(t,e){return new zl(Tl.Lower,this,t,null,e)},t.prototype.lowerEquals=function(t,e){return new zl(Tl.LowerEquals,this,t,null,e)},t.prototype.bigger=function(t,e){return new zl(Tl.Bigger,this,t,null,e)},t.prototype.biggerEquals=function(t,e){return new zl(Tl.BiggerEquals,this,t,null,e)},t.prototype.isBlank=function(t){return this.equals(tp,t)},t.prototype.cast=function(t,e){return new Hl(this,t,e)},t.prototype.toStmt=function(){return new ip(this,null)},t}(),Al={};Al.This=0,Al.Super=1,Al.CatchError=2,Al.CatchStack=3,Al[Al.This]="This",Al[Al.Super]="Super",Al[Al.CatchError]="CatchError",Al[Al.CatchStack]="CatchStack";var Ol=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return"string"==typeof e?(o.name=e,o.builtin=null):(o.name=null,o.builtin=e),o}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadVarExpr(this,e)},e.prototype.set=function(t){if(!this.name)throw new Error("Built in variable "+this.builtin+" can not be assigned to.");return new Ml(this.name,t,null,this.sourceSpan)},e}(Pl),Ml=function(t){function e(e,r,n,o){var i=t.call(this,n||r.type,o)||this;return i.name=e,i.value=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteVarExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return new np(this.name,this.value,t,e,this.sourceSpan)},e}(Pl),Rl=function(t){function e(e,r,n,o,i){var s=t.call(this,o||n.type,i)||this;return s.receiver=e,s.index=r,s.value=n,s}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteKeyExpr(this,e)},e}(Pl),kl=function(t){function e(e,r,n,o,i){var s=t.call(this,o||n.type,i)||this;return s.receiver=e,s.name=r,s.value=n,s}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitWritePropExpr(this,e)},e}(Pl),Il={};Il.ConcatArray=0,Il.SubscribeObservable=1,Il.Bind=2,Il[Il.ConcatArray]="ConcatArray",Il[Il.SubscribeObservable]="SubscribeObservable",Il[Il.Bind]="Bind";var Nl=function(t){function e(e,r,n,o,i){var s=t.call(this,o,i)||this;return s.receiver=e,s.args=n,"string"==typeof r?(s.name=r,s.builtin=null):(s.name=null,s.builtin=r),s}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeMethodExpr(this,e)},e}(Pl),Dl=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.fn=e,i.args=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeFunctionExpr(this,e)},e}(Pl),jl=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.classExpr=e,i.args=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitInstantiateExpr(this,e)},e}(Pl),Ll=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.value=e,o}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralExpr(this,e)},e}(Pl),Vl=function(t){function e(e,r,n,o){void 0===n&&(n=null);var i=t.call(this,r,o)||this;return i.value=e,i.typeParams=n,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitExternalExpr(this,e)},e}(Pl),Fl=function(t){function e(e,r,n,o,i){void 0===n&&(n=null);var s=t.call(this,o||r.type,i)||this;return s.condition=e,s.falseCase=n,s.trueCase=r,s}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitConditionalExpr(this,e)},e}(Pl),Ul=function(t){function e(e,r){var n=t.call(this,xl,r)||this;return n.condition=e,n}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitNotExpr(this,e)},e}(Pl),Hl=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.value=e,o}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitCastExpr(this,e)},e}(Pl),Bl=function(){function t(t,e){void 0===e&&(e=null),this.name=t,this.type=e}return t}(),ql=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.params=e,i.statements=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitFunctionExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===e&&(e=null),new op(t,this.params,this.statements,this.type,e,this.sourceSpan)},e}(Pl),zl=function(t){function e(e,r,n,o,i){var s=t.call(this,o||r.type,i)||this;return s.operator=e,s.rhs=n,s.lhs=r,s}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitBinaryOperatorExpr(this,e)},e}(Pl),Gl=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.receiver=e,i.name=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadPropExpr(this,e)},e.prototype.set=function(t){return new kl(this.receiver,this.name,t,null,this.sourceSpan)},e}(Pl),Wl=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.receiver=e,i.index=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadKeyExpr(this,e)},e.prototype.set=function(t){return new Rl(this.receiver,this.index,t,null,this.sourceSpan)},e}(Pl),$l=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.entries=e,o}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralArrayExpr(this,e)},e}(Pl),Kl=function(){function t(t,e,r){void 0===r&&(r=!1),this.key=t,this.value=e,this.quoted=r}return t}(),Ql=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.entries=e,o.valueType=null,r&&(o.valueType=r.valueType),o}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralMapExpr(this,e)},e}(Pl),Xl=function(t){function e(e,r){var n=t.call(this,e[e.length-1].type,r)||this;return n.parts=e,n}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitCommaExpr(this,e)},e}(Pl),Zl=new Ol(Al.This,null,null),Yl=new Ol(Al.Super,null,null),Jl=(new Ol(Al.CatchError,null,null),new Ol(Al.CatchStack,null,null),new Ll(null,null,null)),tp=new Ll(null,Sl,null),ep={};ep.Final=0,ep.Private=1,ep[ep.Final]="Final",ep[ep.Private]="Private";var rp=function(){function t(t,e){this.modifiers=t||[],this.sourceSpan=e||null}return t.prototype.visitStatement=function(){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),np=function(t){function e(e,r,n,o,i){void 0===o&&(o=null);var s=t.call(this,o,i)||this;return s.name=e,s.value=r,s.type=n||r.type,s}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareVarStmt(this,e)},e}(rp),op=function(t){function e(e,r,n,o,i,s){void 0===i&&(i=null);var a=t.call(this,i,s)||this;return a.name=e,a.params=r,a.statements=n,a.type=o||null,a}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareFunctionStmt(this,e)},e}(rp),ip=function(t){function e(e,r){var n=t.call(this,null,r)||this;return n.expr=e,n}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitExpressionStmt(this,e)},e}(rp),sp=function(t){function e(e,r){var n=t.call(this,null,r)||this;return n.value=e,n}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitReturnStmt(this,e)},e}(rp),ap=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}(),up=function(t){function e(e,r,n){void 0===n&&(n=null);var o=t.call(this,r,n)||this;return o.name=e,o}return Zn(e,t),e}(ap),cp=function(t){function e(e,r,n,o,i){void 0===i&&(i=null);var s=t.call(this,o,i)||this;return s.name=e,s.params=r,s.body=n,s}return Zn(e,t),e}(ap),lp=function(t){function e(e,r,n,o){void 0===o&&(o=null);var i=t.call(this,n,o)||this;return i.name=e,i.body=r,i}return Zn(e,t),e}(ap),pp=function(t){function e(e,r,n,o,i,s,a,u){void 0===a&&(a=null);var c=t.call(this,a,u)||this;return c.name=e,c.parent=r,c.fields=n,c.getters=o,c.constructorMethod=i,c.methods=s,c}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareClassStmt(this,e)},e}(rp),hp=function(t){function e(e,r,n,o){void 0===n&&(n=[]);var i=t.call(this,null,o)||this;return i.condition=e,i.trueCase=r,i.falseCase=n,i}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitIfStmt(this,e)},e}(rp),fp=function(t){function e(e,r,n){var o=t.call(this,null,n)||this;return o.bodyStmts=e,o.catchStmts=r,o}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitTryCatchStmt(this,e)},e}(rp),dp=function(t){function e(e,r){var n=t.call(this,null,r)||this;return n.error=e,n}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitThrowStmt(this,e)},e}(rp),mp=function(){function t(){}return t.prototype.transformExpr=function(t){return t},t.prototype.transformStmt=function(t){return t},t.prototype.visitReadVarExpr=function(t,e){
-return this.transformExpr(t,e)},t.prototype.visitWriteVarExpr=function(t,e){return this.transformExpr(new Ml(t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWriteKeyExpr=function(t,e){return this.transformExpr(new Rl(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 kl(t.receiver.visitExpression(this,e),t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeMethodExpr=function(t,e){var r=t.builtin||t.name;return this.transformExpr(new Nl(t.receiver.visitExpression(this,e),r,this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeFunctionExpr=function(t,e){return this.transformExpr(new Dl(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 jl(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 Fl(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 Ul(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCastExpr=function(t,e){return this.transformExpr(new Hl(t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitFunctionExpr=function(t,e){return this.transformExpr(new ql(t.params,this.visitAllStatements(t.statements,e),t.type,t.sourceSpan),e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return this.transformExpr(new zl(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 Gl(t.receiver.visitExpression(this,e),t.name,t.type,t.sourceSpan),e)},t.prototype.visitReadKeyExpr=function(t,e){return this.transformExpr(new Wl(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 $l(this.visitAllExpressions(t.entries,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralMapExpr=function(t,e){var r=this,n=t.entries.map(function(t){return new Kl(t.key,t.value.visitExpression(r,e),t.quoted)}),o=new Cl(t.valueType,null);return this.transformExpr(new Ql(n,o,t.sourceSpan),e)},t.prototype.visitCommaExpr=function(t,e){return this.transformExpr(new Xl(this.visitAllExpressions(t.parts,e),t.sourceSpan),e)},t.prototype.visitAllExpressions=function(t,e){var r=this;return t.map(function(t){return t.visitExpression(r,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return this.transformStmt(new np(t.name,t.value.visitExpression(this,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.transformStmt(new op(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 ip(t.expr.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitReturnStmt=function(t,e){return this.transformStmt(new sp(t.value.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitDeclareClassStmt=function(t,e){var r=this,n=t.parent.visitExpression(this,e),o=t.getters.map(function(t){return new lp(t.name,r.visitAllStatements(t.body,e),t.type,t.modifiers)}),i=t.constructorMethod&&new cp(t.constructorMethod.name,t.constructorMethod.params,this.visitAllStatements(t.constructorMethod.body,e),t.constructorMethod.type,t.constructorMethod.modifiers),s=t.methods.map(function(t){return new cp(t.name,t.params,r.visitAllStatements(t.body,e),t.type,t.modifiers)});return this.transformStmt(new pp(t.name,n,t.fields,o,i,s,t.modifiers,t.sourceSpan),e)},t.prototype.visitIfStmt=function(t,e){return this.transformStmt(new hp(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 fp(this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t.sourceSpan),e)},t.prototype.visitThrowStmt=function(t,e){return this.transformStmt(new dp(t.error.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCommentStmt=function(t,e){return this.transformStmt(t,e)},t.prototype.visitAllStatements=function(t,e){var r=this;return t.map(function(t){return t.visitStatement(r,e)})},t}(),yp=function(){function t(){}return t.prototype.visitReadVarExpr=function(t){return t},t.prototype.visitWriteVarExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitWriteKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitWritePropExpr=function(t,e){return t.receiver.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitInvokeMethodExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInstantiateExpr=function(t,e){return t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitLiteralExpr=function(t){return t},t.prototype.visitExternalExpr=function(t){return t},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t},t.prototype.visitNotExpr=function(t,e){return t.condition.visitExpression(this,e),t},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitFunctionExpr=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitBinaryOperatorExpr=function(t,e){return t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),t},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e),t},t.prototype.visitLiteralMapExpr=function(t,e){var r=this;return t.entries.forEach(function(t){return t.value.visitExpression(r,e)}),t},t.prototype.visitCommaExpr=function(t,e){this.visitAllExpressions(t.parts,e)},t.prototype.visitAllExpressions=function(t,e){var r=this;t.forEach(function(t){return t.visitExpression(r,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),t},t.prototype.visitReturnStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareClassStmt=function(t,e){var r=this;return t.parent.visitExpression(this,e),t.getters.forEach(function(t){return r.visitAllStatements(t.body,e)}),t.constructorMethod&&this.visitAllStatements(t.constructorMethod.body,e),t.methods.forEach(function(t){return r.visitAllStatements(t.body,e)}),t},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t},t.prototype.visitTryCatchStmt=function(t,e){return this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t},t.prototype.visitThrowStmt=function(t,e){return t.error.visitExpression(this,e),t},t.prototype.visitCommentStmt=function(t){return t},t.prototype.visitAllStatements=function(t,e){var r=this;t.forEach(function(t){return t.visitStatement(r,e)})},t}(),vp=function(t){function e(){var e=t.apply(this,arguments)||this;return e.varNames=new Set,e}return Zn(e,t),e.prototype.visitDeclareFunctionStmt=function(t){return t},e.prototype.visitDeclareClassStmt=function(t){return t},e.prototype.visitReadVarExpr=function(t){return t.name&&this.varNames.add(t.name),null},e}(yp),gp=function(t){function e(e){var r=t.call(this)||this;return r.sourceSpan=e,r}return Zn(e,t),e.prototype._clone=function(t){var e=Object.create(t.constructor.prototype);for(var r in t)e[r]=t[r];return e},e.prototype.transformExpr=function(t){return t.sourceSpan||(t=this._clone(t),t.sourceSpan=this.sourceSpan),t},e.prototype.transformStmt=function(t){return t.sourceSpan||(t=this._clone(t),t.sourceSpan=this.sourceSpan),t},e}(mp),_p="$quoted$",bp=function(){function t(){}return t.prototype.visitArray=function(t,e){var r=this;return br(t.map(function(t){return d(t,r,null)}),e)},t.prototype.visitStringMap=function(t,e){var r=this,n=[],o=new Set(t&&t[_p]);return Object.keys(t).forEach(function(e){n.push(new Kl(e,d(t[e],r,null),o.has(e)))}),new Ql(n,e)},t.prototype.visitPrimitive=function(t,e){return Sr(t,e)},t.prototype.visitOther=function(t){return t instanceof Pl?t:vr({reference:t})},t}(),wp=function(){function t(t){this.compType=t}return t}(),Cp=function(){function t(t,e,r){this.statements=t,this.ngModuleFactoryVar=e,this.dependencies=r}return t}(),Ep=function(){function t(){}return t.prototype.compile=function(t,e){var r=ct("NgModule",t.type),n=[],o=[],i=t.transitiveModule.entryComponents.map(function(e){return t.bootstrapComponents.some(function(t){return t.reference===e.componentType})&&o.push({reference:e.componentFactory}),n.push(new wp(e.componentType)),{reference:e.componentFactory}}),s=new Sp(t,i,o,r),a=new Yu(t,e,r);a.parse().forEach(function(t){return s.addProvider(t)});var u=s.build(),c=E(t.type)+"NgFactory",l=yr(c).set(vr(de(zu.NgModuleFactory)).instantiate([yr(u.name),vr(t.type)],gr(de(zu.NgModuleFactory),[gr(t.type)],[yl.Const]))).toDeclStmt(null,[ep.Final]),p=[u,l];if(t.id){var h=vr(de(zu.RegisterModuleFactoryFn)).callFn([Sr(t.id),yr(c)]).toStmt();p.push(h)}return new Cp(p,c,n)},t}();Ep.decorators=[{type:z}],Ep.ctorParameters=function(){return[]};var Sp=function(){function t(t,e,r,n){this._ngModuleMeta=t,this._entryComponentFactories=e,this._bootstrapComponentFactories=r,this._sourceSpan=n,this.fields=[],this.getters=[],this.methods=[],this.ctorStmts=[],this._lazyProps=new Map,this._tokens=[],this._instances=new Map,this._createStmts=[],this._destroyStmts=[]}return t.prototype.addProvider=function(t){var r=this,n=t.providers.map(function(t){return r._getProviderValue(t)}),o="_"+M(t.token)+"_"+this._instances.size,i=this._createProviderProperty(o,t,n,t.multiProvider,t.eager);if(-1!==t.lifecycleHooks.indexOf(e.ɵLifecycleHooks.OnDestroy)){var s=i.callMethod("ngOnDestroy",[]);t.eager||(s=this._lazyProps.get(i.name).and(s)),this._destroyStmts.push(s.toStmt())}this._tokens.push(t.token),this._instances.set(R(t.token),i)},t.prototype.build=function(){var t=this,e=this._tokens.map(function(e){var r=t._instances.get(R(e));return new hp(Tp.token.identical(Ar(e)),[new sp(r)])}),r=[new cp("createInternal",[],this._createStmts.concat(new sp(this._instances.get(this._ngModuleMeta.type.reference))),gr(this._ngModuleMeta.type)),new cp("getInternal",[new Bl(Tp.token.name,El),new Bl(Tp.notFoundResult.name,El)],e.concat([new sp(Tp.notFoundResult)]),El),new cp("destroyInternal",[],this._destroyStmts)],n=[yr(xp.parent.name),br(this._entryComponentFactories.map(function(t){return vr(t)})),br(this._bootstrapComponentFactories.map(function(t){return vr(t)}))],o=E(this._ngModuleMeta.type)+"Injector";return xr({name:o,ctorParams:[new Bl(xp.parent.name,gr(de(zu.Injector)))],parent:vr(de(zu.NgModuleInjector),[gr(this._ngModuleMeta.type)]),parentArgs:n,builders:[{methods:r},this]})},t.prototype._getProviderValue=function(t){var e,r=this;if(null!=t.useExisting)e=this._getDependency({token:t.useExisting});else if(null!=t.useFactory){var n=t.deps||t.useFactory.diDeps,o=n.map(function(t){return r._getDependency(t)});e=vr(t.useFactory).callFn(o)}else if(null!=t.useClass){var n=t.deps||t.useClass.diDeps,o=n.map(function(t){return r._getDependency(t)});e=vr(t.useClass).instantiate(o,gr(t.useClass))}else e=Pr(t.useValue);return e},t.prototype._createProviderProperty=function(t,e,r,n,o){var i,s;if(n?(i=br(r),s=new wl(El)):(i=r[0],s=r[0].type),s||(s=El),o)this.fields.push(new up(t,s)),this._createStmts.push(Zl.prop(t).set(i).toStmt());else{var a=Zl.prop("_"+t);this.fields.push(new up(a.name,s));var u=[new hp(a.isBlank(),[a.set(i).toStmt()]),new sp(a)];this.getters.push(new lp(t,u,s)),this._lazyProps.set(t,a)}return Zl.prop(t)},t.prototype._getDependency=function(t){var e=null;if(t.isValue&&(e=Sr(t.value)),t.isSkipSelf||(t.token&&(R(t.token)===fe(zu.Injector)?e=Zl:R(t.token)===fe(zu.ComponentFactoryResolver)&&(e=Zl.prop("componentFactoryResolver"))),e||(e=this._instances.get(R(t.token)))),!e){var r=[Ar(t.token)];t.isOptional&&r.push(Jl),e=xp.parent.callMethod("get",r)}return e},t}(),xp=function(){function t(){}return t}();xp.parent=Zl.prop("parent");var Tp=function(){function t(){}return t}();Tp.token=yr("token"),Tp.notFoundResult=yr("notFoundResult");var Pp=3,Ap="# sourceMappingURL=data:application/json;base64,",Op=function(){function t(t){void 0===t&&(t=null),this.file=t,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return t.prototype.addSource=function(t,e){return void 0===e&&(e=null),this.sourcesContent.has(t)||this.sourcesContent.set(t,e),this},t.prototype.addLine=function(){return this.lines.push([]),this.lastCol0=0,this},t.prototype.addMapping=function(t,e,r,n){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=e&&!this.sourcesContent.has(e))throw new Error('Unknown source file "'+e+'"');if(null==t)throw new Error("The column in the generated code must be provided");if(t<this.lastCol0)throw new Error("Mapping should be added in output order");if(e&&(null==r||null==n))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=t,this.currentLine.push({col0:t,sourceUrl:e,sourceLine0:r,sourceCol0:n}),this},Object.defineProperty(t.prototype,"currentLine",{get:function(){return this.lines.slice(-1)[0]},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){var t=this;if(!this.hasMappings)return null;var e=new Map,r=[],n=[];Array.from(this.sourcesContent.keys()).forEach(function(o,i){e.set(o,i),r.push(o),n.push(t.sourcesContent.get(o)||null)});var o="",i=0,s=0,a=0,u=0;return this.lines.forEach(function(t){i=0,o+=t.map(function(t){var r=Mr(t.col0-i);return i=t.col0,null!=t.sourceUrl&&(r+=Mr(e.get(t.sourceUrl)-s),s=e.get(t.sourceUrl),r+=Mr(t.sourceLine0-a),a=t.sourceLine0,r+=Mr(t.sourceCol0-u),u=t.sourceCol0),r}).join(","),o+=";"}),o=o.slice(0,-1),{file:this.file||"",version:Pp,sourceRoot:"",sources:r,sourcesContent:n,mappings:o}},t.prototype.toJsComment=function(){return this.hasMappings?"//"+Ap+Or(JSON.stringify(this,null,0)):""},t}(),Mp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Rp=/'|\\|\n|\r|\$/g,kp=/^[$A-Z_][0-9A-Z_$]*$/i,Ip="  ",Np=yr("error",null,null),Dp=yr("stack",null,null),jp=function(){function t(t){this.indent=t,this.parts=[],this.srcSpans=[]}return t}(),Lp=function(){function t(t,e){this._exportedVars=t,this._indent=e,this._classes=[],this._lines=[new jp(e)]}return t.createRoot=function(e){return new t(e,0)},Object.defineProperty(t.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),t.prototype.isExportedVar=function(t){return-1!==this._exportedVars.indexOf(t)},t.prototype.println=function(t,e){void 0===e&&(e=""),this.print(t||null,e,!0)},t.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},t.prototype.print=function(t,e,r){void 0===r&&(r=!1),e.length>0&&(this._currentLine.parts.push(e),this._currentLine.srcSpans.push(t&&t.sourceSpan||null)),r&&this._lines.push(new jp(this._indent))},t.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},t.prototype.incIndent=function(){this._indent++,this._currentLine.indent=this._indent},t.prototype.decIndent=function(){this._indent--,this._currentLine.indent=this._indent},t.prototype.pushClass=function(t){this._classes.push(t)},t.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(t.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.toSource=function(){return this.sourceLines.map(function(t){return t.parts.length>0?Ir(t.indent)+t.parts.join(""):""}).join("\n")},t.prototype.toSourceMapGenerator=function(t,e,r){void 0===r&&(r=0);for(var n=new Op(e),o=!1,i=function(){o||(n.addSource(t," ").addMapping(0,t,0,0),o=!0)},s=0;r>s;s++)n.addLine(),i();return this.sourceLines.forEach(function(t,e){n.addLine();for(var r=t.srcSpans,s=t.parts,a=t.indent*Ip.length,u=0;u<r.length&&!r[u];)a+=s[u].length,u++;for(u<r.length&&0===e&&0===a?o=!0:i();u<r.length;){var c=r[u],l=c.start.file,p=c.start.line,h=c.start.col;for(n.addSource(l.url,l.content).addMapping(a,l.url,p,h),a+=s[u].length,u++;u<r.length&&(c===r[u]||!r[u]);)a+=s[u].length,u++}}),n},Object.defineProperty(t.prototype,"sourceLines",{get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines},enumerable:!0,configurable:!0}),t}(),Vp=function(){function t(t){this._escapeDollarInStrings=t}return t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitReturnStmt=function(t,e){return e.print(t,"return "),t.value.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCastExpr=function(){},t.prototype.visitDeclareClassStmt=function(){},t.prototype.visitIfStmt=function(t,e){e.print(t,"if ("),t.condition.visitExpression(this,e),e.print(t,") {");var r=null!=t.falseCase&&t.falseCase.length>0;return t.trueCase.length<=1&&!r?(e.print(t," "),this.visitAllStatements(t.trueCase,e),e.removeEmptyLastLine(),e.print(t," ")):(e.println(),e.incIndent(),this.visitAllStatements(t.trueCase,e),e.decIndent(),r&&(e.println(t,"} else {"),e.incIndent(),this.visitAllStatements(t.falseCase,e),e.decIndent())),e.println(t,"}"),null},t.prototype.visitTryCatchStmt=function(){},t.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){var r=t.comment.split("\n");return r.forEach(function(r){e.println(t,"// "+r)}),null},t.prototype.visitDeclareVarStmt=function(){},t.prototype.visitWriteVarExpr=function(t,e){var r=e.lineIsEmpty();return r||e.print(t,"("),e.print(t,t.name+" = "),t.value.visitExpression(this,e),r||e.print(t,")"),null},t.prototype.visitWriteKeyExpr=function(t,e){var r=e.lineIsEmpty();return r||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"] = "),t.value.visitExpression(this,e),r||e.print(t,")"),null},t.prototype.visitWritePropExpr=function(t,e){var r=e.lineIsEmpty();return r||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"."+t.name+" = "),t.value.visitExpression(this,e),r||e.print(t,")"),null},t.prototype.visitInvokeMethodExpr=function(t,e){t.receiver.visitExpression(this,e);var r=t.name;return null!=t.builtin&&(r=this.getBuiltinMethodName(t.builtin),null==r)?null:(e.print(t,"."+r+"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null)},t.prototype.getBuiltinMethodName=function(){},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitReadVarExpr=function(t,e){var r=t.name;if(null!=t.builtin)switch(t.builtin){case Al.Super:r="super";break;case Al.This:r="this";break;case Al.CatchError:r=Np.name;break;case Al.CatchStack:r=Dp.name;break;default:throw new Error("Unknown builtin variable "+t.builtin)}return e.print(t,r),null},t.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),t.classExpr.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitLiteralExpr=function(t,e){var r=t.value;return"string"==typeof r?e.print(t,kr(r,this._escapeDollarInStrings)):e.print(t,""+r),null},t.prototype.visitExternalExpr=function(){},t.prototype.visitConditionalExpr=function(t,e){return e.print(t,"("),t.condition.visitExpression(this,e),e.print(t,"? "),t.trueCase.visitExpression(this,e),e.print(t,": "),t.falseCase.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitNotExpr=function(t,e){return e.print(t,"!"),t.condition.visitExpression(this,e),null},t.prototype.visitFunctionExpr=function(){},t.prototype.visitDeclareFunctionStmt=function(){},t.prototype.visitBinaryOperatorExpr=function(t,e){var r;switch(t.operator){case Tl.Equals:r="==";break;case Tl.Identical:r="===";break;case Tl.NotEquals:r="!=";break;case Tl.NotIdentical:r="!==";break;case Tl.And:r="&&";break;case Tl.Or:r="||";break;case Tl.Plus:r="+";break;case Tl.Minus:r="-";break;case Tl.Divide:r="/";break;case Tl.Multiply:r="*";break;case Tl.Modulo:r="%";break;case Tl.Lower:r="<";break;case Tl.LowerEquals:r="<=";break;case Tl.Bigger:r=">";break;case Tl.BiggerEquals:r=">=";break;default:throw new Error("Unknown operator "+t.operator)}return e.print(t,"("),t.lhs.visitExpression(this,e),e.print(t," "+r+" "),t.rhs.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"."),e.print(t,t.name),null},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"]"),null},t.prototype.visitLiteralArrayExpr=function(t,e){var r=t.entries.length>1;return e.print(t,"[",r),e.incIndent(),this.visitAllExpressions(t.entries,e,",",r),e.decIndent(),e.print(t,"]",r),null},t.prototype.visitLiteralMapExpr=function(t,e){var r=this,n=t.entries.length>1;return e.print(t,"{",n),e.incIndent(),this.visitAllObjects(function(n){e.print(t,kr(n.key,r._escapeDollarInStrings,n.quoted)+": "),n.value.visitExpression(r,e)},t.entries,e,",",n),e.decIndent(),e.print(t,"}",n),null},t.prototype.visitCommaExpr=function(t,e){return e.print(t,"("),this.visitAllExpressions(t.parts,e,","),e.print(t,")"),null},t.prototype.visitAllExpressions=function(t,e,r,n){var o=this;void 0===n&&(n=!1),this.visitAllObjects(function(t){return t.visitExpression(o,e)},t,e,r,n)},t.prototype.visitAllObjects=function(t,e,r,n,o){void 0===o&&(o=!1);for(var i=0;i<e.length;i++)i>0&&r.print(null,n,o),t(e[i]);o&&r.println()},t.prototype.visitAllStatements=function(t,e){var r=this;t.forEach(function(t){return t.visitStatement(r,e)})},t}(),Fp="/debug/lib",Up=function(){function t(t){this._importResolver=t}return t.prototype.emitStatements=function(t,e,r,n,o){var i=this;void 0===o&&(o="");var s=new Hp(e,this._importResolver),a=Lp.createRoot(n);s.visitAllStatements(r,a);var u=o?o.split("\n"):[];s.reexports.forEach(function(t,r){var n=t.map(function(t){return t.name+" as "+t.as}).join(",");u.push("export {"+n+"} from '"+i._importResolver.fileNameToModuleName(r,e)+"';")}),s.importsWithPrefixes.forEach(function(t,r){u.push("imp"+("ort * as "+t+" from '"+i._importResolver.fileNameToModuleName(r,e)+"';"))});var c=a.toSourceMapGenerator(t,e,u.length).toJsComment(),l=u.concat([a.toSource(),c]);return c&&l.push(""),l.join("\n")},t}(),Hp=function(t){function e(e,r){var n=t.call(this,!1)||this;return n._genFilePath=e,n._importResolver=r,n.typeExpression=0,n.importsWithPrefixes=new Map,n.reexports=new Map,n}return Zn(e,t),e.prototype.visitType=function(t,e,r){void 0===r&&(r="any"),t?(this.typeExpression++,t.visitType(this,e),this.typeExpression--):e.print(null,r)},e.prototype.visitLiteralExpr=function(e,r){var n=e.value;return null==n&&e.type!=Sl?(r.print(e,"("+n+" as any)"),null):t.prototype.visitLiteralExpr.call(this,e,r)},e.prototype.visitLiteralArrayExpr=function(e,r){0===e.entries.length&&r.print(e,"(");var n=t.prototype.visitLiteralArrayExpr.call(this,e,r);return 0===e.entries.length&&r.print(e," as any[])"),n},e.prototype.visitExternalExpr=function(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null},e.prototype.visitDeclareVarStmt=function(t,e){if(e.isExportedVar(t.name)&&t.value instanceof Vl&&!t.type){var r=this._resolveStaticSymbol(t.value.value),n=r.name,o=r.filePath,i=r.members;if(0===i.length&&o!==this._genFilePath){var s=this.reexports.get(o);return s||(s=[],this.reexports.set(o,s)),s.push({name:n,as:t.name}),null}}return e.isExportedVar(t.name)&&e.print(t,"export "),t.hasModifier(ep.Final)?e.print(t,"const"):e.print(t,"var"),e.print(t," "+t.name),this._printColonType(t.type,e),e.print(t," = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return e.print(t,"(<"),t.type.visitType(this,e),e.print(t,">"),t.value.visitExpression(this,e),e.print(t,")"),null},e.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),this.typeExpression++,t.classExpr.visitExpression(this,e),this.typeExpression--,e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},e.prototype.visitDeclareClassStmt=function(t,e){var r=this;return e.pushClass(t),e.isExportedVar(t.name)&&e.print(t,"export "),e.print(t,"class "+t.name),null!=t.parent&&(e.print(t," extends "),this.typeExpression++,t.parent.visitExpression(this,e),this.typeExpression--),e.println(t," {"),e.incIndent(),t.fields.forEach(function(t){return r._visitClassField(t,e)}),null!=t.constructorMethod&&this._visitClassConstructor(t,e),t.getters.forEach(function(t){return r._visitClassGetter(t,e)}),t.methods.forEach(function(t){return r._visitClassMethod(t,e)}),e.decIndent(),e.println(t,"}"),e.popClass(),null},e.prototype._visitClassField=function(t,e){t.hasModifier(ep.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(ep.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(ep.Private)&&e.print(null,"private "),e.print(null,t.name+"("),this._visitParams(t.params,e),e.print(null,")"),this._printColonType(t.type,e,"void"),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," => {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.isExportedVar(t.name)&&e.print(t,"export "),e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+Np.name+") {"),e.incIndent();var r=[Dp.set(Np.prop("stack",null)).toDeclStmt(null,[ep.Final])].concat(t.catchStmts);return this.visitAllStatements(r,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitBuiltintType=function(t,e){var r;switch(t.name){case gl.Bool:r="boolean";break;case gl.Dynamic:r="any";break;case gl.Function:r="Function";break;case gl.Number:r="number";break;case gl.Int:r="number";break;case gl.String:r="string";break;default:throw new Error("Unsupported builtin type "+t.name)}return e.print(null,r),null},e.prototype.visitExpressionType=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitArrayType=function(t,e){return this.visitType(t.of,e),e.print(null,"[]"),null},e.prototype.visitMapType=function(t,e){return e.print(null,"{[key: string]:"),this.visitType(t.valueType,e),e.print(null,"}"),null},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Il.ConcatArray:e="concat";break;case Il.SubscribeObservable:e="subscribe";break;case Il.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e.prototype._visitParams=function(t,e){var r=this;this.visitAllObjects(function(t){e.print(null,t.name),r._printColonType(t.type,e)},t,e,",")},e.prototype._resolveStaticSymbol=function(t){var e=t.reference;if(!(e instanceof mo))throw new Error("Internal error: unknown identifier "+JSON.stringify(t));var r=this._importResolver.getTypeArity(e)||void 0,n=this._importResolver.getImportAs(e)||e;return{name:n.name,filePath:n.filePath,members:n.members,arity:r}},e.prototype._visitIdentifier=function(t,e,r){var n=this,o=this._resolveStaticSymbol(t),i=o.name,s=o.filePath,a=o.members,u=o.arity;if(s!=this._genFilePath){var c=this.importsWithPrefixes.get(s);null==c&&(c="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(s,c)),r.print(null,c+".")}if(a.length?(r.print(null,i),r.print(null,"."),r.print(null,a.join("."))):r.print(null,i),this.typeExpression>0){var l=e&&e.length||0,p=(u||0)-l;if(l>0||p>0){if(r.print(null,"<"),l>0&&this.visitAllObjects(function(t){return t.visitType(n,r)},e,r,","),p>0)for(var h=0;p>h;h++)(h>0||l>0)&&r.print(null,","),r.print(null,"any");r.print(null,">")}}},e.prototype._printColonType=function(t,e,r){t!==Sl&&(e.print(null,":"),this.visitType(t,e,r))},e}(Vp),Bp={};Dr(e.SecurityContext.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Dr(e.SecurityContext.STYLE,["*|style"]),Dr(e.SecurityContext.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","img|srcset","input|src","ins|cite","q|cite","source|src","source|srcset","track|src","video|poster","video|src"]),Dr(e.SecurityContext.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"]);var qp="boolean",zp="number",Gp="string",Wp="object",$p=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","keygen^[HTMLElement]|!autofocus,challenge,!disabled,keytype,name","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:cursor^:svg:|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime"],Kp={
-"class":"className","for":"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Qp=function(t){function r(){var e=t.call(this)||this;return e._schema={},$p.forEach(function(t){var r={},n=t.split("|"),o=n[0],i=n[1],s=i.split(","),a=o.split("^"),u=a[0],c=a[1];u.split(",").forEach(function(t){return e._schema[t.toLowerCase()]=r});var l=c&&e._schema[c.toLowerCase()];l&&Object.keys(l).forEach(function(t){r[t]=l[t]}),s.forEach(function(t){if(t.length>0)switch(t[0]){case"*":break;case"!":r[t.substring(1)]=qp;break;case"#":r[t.substring(1)]=zp;break;case"%":r[t.substring(1)]=Wp;break;default:r[t]=Gp}})}),e}return Zn(r,t),r.prototype.hasProperty=function(t,r,n){if(n.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if(o(t)||i(t))return!1;if(n.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}var s=this._schema[t.toLowerCase()]||this._schema.unknown;return!!s[r]},r.prototype.hasElement=function(t,r){if(r.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if(o(t)||i(t))return!0;if(r.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!this._schema[t.toLowerCase()]},r.prototype.securityContext=function(t,r,n){n&&(r=this.getMappedPropName(r)),t=t.toLowerCase(),r=r.toLowerCase();var o=Bp[t+"|"+r];return o?o:(o=Bp["*|"+r],o?o:e.SecurityContext.NONE)},r.prototype.getMappedPropName=function(t){return Kp[t]||t},r.prototype.getDefaultComponentElementName=function(){return"ng-component"},r.prototype.validateProperty=function(t){if(t.toLowerCase().startsWith("on")){var e="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.";return{error:!0,msg:e}}return{error:!1}},r.prototype.validateAttribute=function(t){if(t.toLowerCase().startsWith("on")){var e="Binding to event attribute '"+t+"' is disallowed for security reasons, "+("please use ("+t.slice(2)+")=...");return{error:!0,msg:e}}return{error:!1}},r.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},r.prototype.normalizeAnimationStyleProperty=function(t){return l(t)},r.prototype.normalizeAnimationStyleValue=function(t,e,r){var n="",o=r.toString().trim(),i=null;if(jr(t)&&0!==r&&"0"!==r)if("number"==typeof r)n="px";else{var s=r.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&(i="Please provide a CSS unit value for "+e+":"+r)}return{error:i,value:o+n}},r}(Ju);Qp.decorators=[{type:z}],Qp.ctorParameters=function(){return[]};var Xp=function(){function t(){this.strictStyling=!0}return t.prototype.shimCssText=function(t,e,r){void 0===r&&(r="");var n=Vr(t);return t=Lr(t),t=this._insertDirectives(t),this._scopeCssText(t,e,r)+n},t.prototype._insertDirectives=function(t){return t=this._insertPolyfillDirectivesInCssText(t),this._insertPolyfillRulesInCssText(t)},t.prototype._insertPolyfillDirectivesInCssText=function(t){return t.replace(Yp,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(Jp,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[0].replace(t[1],"").replace(t[2],"");return t[4]+r})},t.prototype._scopeCssText=function(t,e,r){var n=this._extractUnscopedRulesFromCssText(t);return t=this._insertPolyfillHostInCssText(t),t=this._convertColonHost(t),t=this._convertColonHostContext(t),t=this._convertShadowDOMSelectors(t),e&&(t=this._scopeSelectors(t,e,r)),t=t+"\n"+n,t.trim()},t.prototype._extractUnscopedRulesFromCssText=function(t){var e,r="";for(th.lastIndex=0;null!==(e=th.exec(t));){var n=e[0].replace(e[2],"").replace(e[1],e[4]);r+=n+"\n\n"}return r},t.prototype._convertColonHost=function(t){return this._convertColonRule(t,oh,this._colonHostPartReplacer)},t.prototype._convertColonHostContext=function(t){return this._convertColonRule(t,ih,this._colonHostContextPartReplacer)},t.prototype._convertColonRule=function(t,e,r){return t.replace(e,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t[2]){for(var n=t[2].split(","),o=[],i=0;i<n.length;i++){var s=n[i].trim();if(!s)break;o.push(r(sh,s,t[3]))}return o.join(",")}return sh+t[3]})},t.prototype._colonHostContextPartReplacer=function(t,e,r){return e.indexOf(eh)>-1?this._colonHostPartReplacer(t,e,r):t+e+r+", "+e+" "+t+r},t.prototype._colonHostPartReplacer=function(t,e,r){return t+e.replace(eh,"")+r},t.prototype._convertShadowDOMSelectors=function(t){return uh.reduce(function(t,e){return t.replace(e," ")},t)},t.prototype._scopeSelectors=function(t,e,r){var n=this;return Fr(t,function(t){var o=t.selector,i=t.content;return"@"!=t.selector[0]?o=n._scopeSelector(t.selector,e,r,n.strictStyling):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(i=n._scopeSelectors(t.content,e,r)),new wh(o,i)})},t.prototype._scopeSelector=function(t,e,r,n){var o=this;return t.split(",").map(function(t){return t.trim().split(ch)}).map(function(t){var i=t[0],s=t.slice(1),a=function(t){return o._selectorNeedsScoping(t,e)?n?o._applyStrictSelectorScope(t,e,r):o._applySelectorScope(t,e,r):t};return[a(i)].concat(s).join(" ")}).join(", ")},t.prototype._selectorNeedsScoping=function(t,e){var r=this._makeScopeMatcher(e);return!r.test(t)},t.prototype._makeScopeMatcher=function(t){var e=/\[/g,r=/\]/g;return t=t.replace(e,"\\[").replace(r,"\\]"),new RegExp("^("+t+")"+lh,"m")},t.prototype._applySelectorScope=function(t,e,r){return this._applySimpleSelectorScope(t,e,r)},t.prototype._applySimpleSelectorScope=function(t,e,r){if(ph.lastIndex=0,ph.test(t)){var n=this.strictStyling?"["+r+"]":e;return t.replace(ah,function(t,e){return e.replace(/([^:]*)(:*)(.*)/,function(t,e,r,o){return e+n+r+o})}).replace(ph,n+" ")}return e+" "+t},t.prototype._applyStrictSelectorScope=function(t,e,r){var n=this,o=/\[is=([^\]]*)\]/g;e=e.replace(o,function(){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return t[0]});var i="["+e+"]",s=function(t){var o=t.trim();if(!o)return"";if(t.indexOf(sh)>-1)o=n._applySimpleSelectorScope(t,e,r);else{var s=t.replace(ph,"");if(s.length>0){var a=s.match(/([^:]*)(:*)(.*)/);a&&(o=a[1]+i+a[2]+a[3])}}return o},a=new Zp(t);t=a.content();for(var u,c="",l=0,p=/( |>|\+|~(?!=))\s*/g,h=t.indexOf(sh);null!==(u=p.exec(t));){var f=u[1],d=t.slice(l,u.index).trim(),m=l>=h?s(d):d;c+=m+" "+f+" ",l=p.lastIndex}return c+=s(t.substring(l)),a.restore(c)},t.prototype._insertPolyfillHostInCssText=function(t){return t.replace(fh,rh).replace(hh,eh)},t}(),Zp=function(){function t(t){var e=this;this.placeholders=[],this.index=0,t=t.replace(/(\[[^\]]*\])/g,function(t,r){var n="__ph-"+e.index+"__";return e.placeholders.push(r),e.index++,n}),this._content=t.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(t,r,n){var o="__ph-"+e.index+"__";return e.placeholders.push(n),e.index++,r+o})}return t.prototype.restore=function(t){var e=this;return t.replace(/__ph-(\d+)__/g,function(t,r){return e.placeholders[+r]})},t.prototype.content=function(){return this._content},t}(),Yp=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,Jp=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,th=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,eh="-shadowcsshost",rh="-shadowcsscontext",nh=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",oh=new RegExp("("+eh+nh,"gim"),ih=new RegExp("("+rh+nh,"gim"),sh=eh+"-no-combinator",ah=/-shadowcsshost-no-combinator([^\s]*)/,uh=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],ch=/(?:>>>)|(?:\/deep\/)/g,lh="([>\\s~+[.,{:][\\s\\S]*)?$",ph=/-shadowcsshost/gim,hh=/:host/gim,fh=/:host-context/gim,dh=/\/\*\s*[\s\S]*?\*\//g,mh=/\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//,yh=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,vh=/([{}])/g,gh="{",_h="}",bh="%BLOCK%",wh=function(){function t(t,e){this.selector=t,this.content=e}return t}(),Ch=function(){function t(t,e){this.escapedString=t,this.blocks=e}return t}(),Eh="%COMP%",Sh="_nghost-"+Eh,xh="_ngcontent-"+Eh,Th=function(){function t(t,e,r,n){this.name=t,this.moduleUrl=e,this.isShimmed=r,this.valuePlaceholder=n}return t}(),Ph=function(){function t(t,e){this.componentStylesheet=t,this.externalStylesheets=e}return t}(),Ah=function(){function t(t,e,r,n,o){this.statements=t,this.stylesVar=e,this.dependencies=r,this.isShimmed=n,this.meta=o}return t}(),Oh=function(){function t(t){this._urlResolver=t,this._shadowCss=new Xp}return t.prototype.compileComponent=function(t){var e=this,r=t.template,n=[],o=this._compileStyles(t,new $o({styles:r.styles,styleUrls:r.styleUrls,moduleUrl:S(t.type)}),!0);return r.externalStylesheets.forEach(function(r){var o=e._compileStyles(t,r,!1);n.push(o)}),new Ph(o,n)},t.prototype._compileStyles=function(t,r,n){for(var o=this,i=t.template.encapsulation===e.ViewEncapsulation.Emulated,s=r.styles.map(function(t){return Sr(o._shimIfNeeded(t,i))}),a=[],u=0;u<r.styleUrls.length;u++){var c={reference:null};a.push(new Th(Hr(null),r.styleUrls[u],i,c)),s.push(new Vl(c))}var l=Hr(n?t:null),p=yr(l).set(br(s,new wl(El,[yl.Const]))).toDeclStmt(null,[ep.Final]);return new Ah([p],l,a,i,r)},t.prototype._shimIfNeeded=function(t,e){return e?this._shadowCss.shimCssText(t,xh,Sh):t},t}();Oh.decorators=[{type:z}],Oh.ctorParameters=function(){return[{type:el}]};var Mh=function(){function t(){}return t}();Mh.event=yr("$event");var Rh=function(){function t(t,e){this.stmts=t,this.allowDefault=e}return t}(),kh=function(){function t(t,e){this.stmts=t,this.currValExpr=e}return t}(),Ih={};Ih.Statement=0,Ih.Expression=1,Ih[Ih.Statement]="Statement",Ih[Ih.Expression]="Expression";var Nh=function(t){function e(e){var r=t.call(this)||this;return r._converterFactory=e,r}return Zn(e,t),e.prototype.visitPipe=function(t,e){var r=this,n=[t.exp].concat(t.args).map(function(t){return t.visit(r,e)});return new Lh(t.span,n,this._converterFactory.createPipeConverter(t.name,n.length))},e.prototype.visitLiteralArray=function(t,e){var r=this,n=t.expressions.map(function(t){return t.visit(r,e)});return new Lh(t.span,n,this._converterFactory.createLiteralArrayConverter(t.expressions.length))},e.prototype.visitLiteralMap=function(t,e){var r=this,n=t.values.map(function(t){return t.visit(r,e)});return new Lh(t.span,n,this._converterFactory.createLiteralMapConverter(t.keys))},e}(Pi),Dh=function(){function t(t,e,r){this._localResolver=t,this._implicitReceiver=e,this.bindingId=r,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0}return t.prototype.visitBinary=function(t,e){var r;switch(t.operation){case"+":r=Tl.Plus;break;case"-":r=Tl.Minus;break;case"*":r=Tl.Multiply;break;case"/":r=Tl.Divide;break;case"%":r=Tl.Modulo;break;case"&&":r=Tl.And;break;case"||":r=Tl.Or;break;case"==":r=Tl.Equals;break;case"!=":r=Tl.NotEquals;break;case"===":r=Tl.Identical;break;case"!==":r=Tl.NotIdentical;break;case"<":r=Tl.Lower;break;case">":r=Tl.Bigger;break;case"<=":r=Tl.LowerEquals;break;case">=":r=Tl.BiggerEquals;break;default:throw new Error("Unsupported operation "+t.operation)}return Zr(e,new zl(r,this.visit(t.left,Ih.Expression),this.visit(t.right,Ih.Expression)))},t.prototype.visitChain=function(t,e){return Qr(e,t),this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){var r=this.visit(t.condition,Ih.Expression);return Zr(e,r.conditional(this.visit(t.trueExp,Ih.Expression),this.visit(t.falseExp,Ih.Expression)))},t.prototype.visitPipe=function(t){throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: "+t.name)},t.prototype.visitFunctionCall=function(t,e){var r,n=this.visitAll(t.args,Ih.Expression);return r=t instanceof Lh?t.converter(n):this.visit(t.target,Ih.Expression).callFn(n),Zr(e,r)},t.prototype.visitImplicitReceiver=function(t,e){return Xr(e,t),this._implicitReceiver},t.prototype.visitInterpolation=function(t,e){Xr(e,t);for(var r=[Sr(t.expressions.length)],n=0;n<t.strings.length-1;n++)r.push(Sr(t.strings[n])),r.push(this.visit(t.expressions[n],Ih.Expression));return r.push(Sr(t.strings[t.strings.length-1])),t.expressions.length<=9?vr(de(zu.inlineInterpolate)).callFn(r):vr(de(zu.interpolate)).callFn([r[0],br(r.slice(1))])},t.prototype.visitKeyedRead=function(t,e){var r=this.leftMostSafeNode(t);return r?this.convertSafeAccess(t,r,e):Zr(e,this.visit(t.obj,Ih.Expression).key(this.visit(t.key,Ih.Expression)))},t.prototype.visitKeyedWrite=function(t,e){var r=this.visit(t.obj,Ih.Expression),n=this.visit(t.key,Ih.Expression),o=this.visit(t.value,Ih.Expression);return Zr(e,r.key(n).set(o))},t.prototype.visitLiteralArray=function(){throw new Error("Illegal State: literal arrays should have been converted into functions")},t.prototype.visitLiteralMap=function(){throw new Error("Illegal State: literal maps should have been converted into functions")},t.prototype.visitLiteralPrimitive=function(t,e){return Zr(e,Sr(t.value))},t.prototype._getLocal=function(t){return this._localResolver.getLocal(t)},t.prototype.visitMethodCall=function(t,e){var r=this.leftMostSafeNode(t);if(r)return this.convertSafeAccess(t,r,e);var n=this.visitAll(t.args,Ih.Expression),o=null,i=this.visit(t.receiver,Ih.Expression);if(i===this._implicitReceiver){var s=this._getLocal(t.name);s&&(o=s.callFn(n))}return null==o&&(o=i.callMethod(t.name,n)),Zr(e,o)},t.prototype.visitPrefixNot=function(t,e){return Zr(e,Cr(this.visit(t.expression,Ih.Expression)))},t.prototype.visitPropertyRead=function(t,e){var r=this.leftMostSafeNode(t);if(r)return this.convertSafeAccess(t,r,e);var n=null,o=this.visit(t.receiver,Ih.Expression);return o===this._implicitReceiver&&(n=this._getLocal(t.name)),null==n&&(n=o.prop(t.name)),Zr(e,n)},t.prototype.visitPropertyWrite=function(t,e){var r=this.visit(t.receiver,Ih.Expression);if(r===this._implicitReceiver){var n=this._getLocal(t.name);if(n)throw new Error("Cannot assign to a reference or variable!")}return Zr(e,r.prop(t.name).set(this.visit(t.value,Ih.Expression)))},t.prototype.visitSafePropertyRead=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitSafeMethodCall=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitAll=function(t,e){var r=this;return t.map(function(t){return r.visit(t,e)})},t.prototype.visitQuote=function(t){throw new Error("Quotes are not supported for evaluation!\n        Statement: "+t.uninterpretedExpression+" located at "+t.location)},t.prototype.visit=function(t,e){var r=this._resultMap.get(t);return r?r:(this._nodeMap.get(t)||t).visit(this,e)},t.prototype.convertSafeAccess=function(t,e,r){var n=this.visit(e.receiver,Ih.Expression),o=void 0;this.needsTemporary(e.receiver)&&(o=this.allocateTemporary(),n=o.set(n),this._resultMap.set(e.receiver,o));var i=n.isBlank();e instanceof Ci?this._nodeMap.set(e,new wi(e.span,e.receiver,e.name,e.args)):this._nodeMap.set(e,new ci(e.span,e.receiver,e.name));var s=this.visit(t,Ih.Expression);return this._nodeMap["delete"](e),o&&this.releaseTemporary(o),Zr(r,i.conditional(Sr(null),s))},t.prototype.leftMostSafeNode=function(t){var e=this,r=function(t,r){return(e._nodeMap.get(r)||r).visit(t)};return t.visit({visitBinary:function(){return null},visitChain:function(){return null},visitConditional:function(){return null},visitFunctionCall:function(){return null},visitImplicitReceiver:function(){return null},visitInterpolation:function(){return null},visitKeyedRead:function(t){return r(this,t.obj)},visitKeyedWrite:function(){return null},visitLiteralArray:function(){return null},visitLiteralMap:function(){return null},visitLiteralPrimitive:function(){return null},visitMethodCall:function(t){return r(this,t.receiver)},visitPipe:function(){return null},visitPrefixNot:function(){return null},visitPropertyRead:function(t){return r(this,t.receiver)},visitPropertyWrite:function(){return null},visitQuote:function(){return null},visitSafeMethodCall:function(t){return r(this,t.receiver)||t},visitSafePropertyRead:function(t){return r(this,t.receiver)||t}})},t.prototype.needsTemporary=function(t){var e=this,r=function(t,r){return r&&(e._nodeMap.get(r)||r).visit(t)},n=function(t,e){return e.some(function(e){return r(t,e)})};return t.visit({visitBinary:function(t){return r(this,t.left)||r(this,t.right)},visitChain:function(){return!1},visitConditional:function(t){return r(this,t.condition)||r(this,t.trueExp)||r(this,t.falseExp)},visitFunctionCall:function(){return!0},visitImplicitReceiver:function(){return!1},visitInterpolation:function(t){return n(this,t.expressions)},visitKeyedRead:function(){return!1},visitKeyedWrite:function(){return!1},visitLiteralArray:function(){return!0},visitLiteralMap:function(){return!0},visitLiteralPrimitive:function(){return!1},visitMethodCall:function(){return!0},visitPipe:function(){return!0},visitPrefixNot:function(t){return r(this,t.expression)},visitPropertyRead:function(){return!1},visitPropertyWrite:function(){return!1},visitQuote:function(){return!1},visitSafeMethodCall:function(){return!0},visitSafePropertyRead:function(){return!1}})},t.prototype.allocateTemporary=function(){var t=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new Ol(Wr(this.bindingId,t))},t.prototype.releaseTemporary=function(t){if(this._currentTemporary--,t.name!=Wr(this.bindingId,this._currentTemporary))throw new Error("Temporary "+t.name+" released out of order")},t}(),jh=function(){function t(){}return t.prototype.getLocal=function(t){return t===Mh.event.name?Mh.event:null},t}(),Lh=function(t){function e(e,r,n){var o=t.call(this,e,null,r)||this;return o.args=r,o.converter=n,o}return Zn(e,t),e}(Ei),Vh="class",Fh="style",Uh="$implicit",Hh=function(){function t(t,e,r){this.statements=t,this.viewClassVar=e,this.rendererTypeVar=r}return t}(),Bh=function(){function t(t,e){this._genConfigNext=t,this._schemaRegistry=e}return t.prototype.compileComponent=function(t,e,r,n){var o=0,i=mn(e),s=[],a=void 0;if(!t.isHost){var u=t.template,c=[];u.animations&&u.animations.length&&c.push(new Kl("animation",Pr(u.animations),!0));var l=yr(T(t.type.reference));a=l.name,s.push(l.set(vr(de(zu.createRendererType2)).callFn([new Ql([new Kl("encapsulation",Sr(u.encapsulation)),new Kl("styles",r),new Kl("data",new Ql(c))])])).toDeclStmt(gr(de(zu.RendererType2)),[ep.Final]))}var p=function(e){var r=o++;return new Qh(e,t,r,n,i,p)},h=p(null);return h.visitAll([],e),s.push.apply(s,h.build()),new Hh(s,h.viewName,a)},t}();Bh.decorators=[{type:z}],Bh.ctorParameters=function(){return[{type:ti},{type:Ju}]};var qh=yr("l"),zh=yr("v"),Gh=yr("ck"),Wh=yr("co"),$h=yr("en"),Kh=yr("ad"),Qh=function(){function t(t,e,r,n,o,i){this.parent=t,this.component=e,this.embeddedViewIndex=r,this.usedPipes=n,this.staticQueryIds=o,this.viewBuilderFactory=i,this.nodes=[],this.purePipeNodeIndices=Object.create(null),this.refNodeIndices=Object.create(null),this.variables=[],this.children=[],this.compType=this.embeddedViewIndex>0?El:gr(this.component.type)}return Object.defineProperty(t.prototype,"viewName",{get:function(){return x(this.component.type.reference,this.embeddedViewIndex)},enumerable:!0,configurable:!0}),t.prototype.visitAll=function(t,e){var n=this;if(this.variables=t,this.parent||this.usedPipes.forEach(function(t){t.pure&&(n.purePipeNodeIndices[t.name]=n._createPipe(null,t))}),!this.parent){var o=yn(this.staticQueryIds);this.component.viewQueries.forEach(function(t,e){var r=e+1,i=t.first?0:1,s=67108864|_n(o,r,t.first);n.nodes.push(function(){return{sourceSpan:null,nodeFlags:s,nodeDef:vr(de(zu.queryDef)).callFn([Sr(s),Sr(r),new Ql([new Kl(t.propertyName,Sr(i))])])}})})}r(this,e),this.parent&&(0===e.length||un(e))&&this.nodes.push(function(){return{sourceSpan:null,nodeFlags:1,nodeDef:vr(de(zu.anchorDef)).callFn([Sr(0),Jl,Jl,Sr(0)])}})},t.prototype.build=function(t){void 0===t&&(t=[]),this.children.forEach(function(e){return e.build(t)});var r=this._createNodeExpressions(),n=r.updateRendererStmts,o=r.updateDirectivesStmts,i=r.nodeDefExprs,s=this._createUpdateFn(n),a=this._createUpdateFn(o),u=0;this.parent||this.component.changeDetection!==e.ChangeDetectionStrategy.OnPush||(u|=2);var c=new op(this.viewName,[new Bl(qh.name)],[new sp(vr(de(zu.viewDef)).callFn([Sr(u),br(i),a,s]))],gr(de(zu.ViewDefinition)));return t.push(c),t},t.prototype._createUpdateFn=function(t){var e;if(t.length>0){var r=[];!this.component.isHost&&fr(t).has(Wh.name)&&r.push(Wh.set(zh.prop("component")).toDeclStmt(this.compType)),e=Er([new Bl(Gh.name,Sl),new Bl(zh.name,Sl)],r.concat(t),Sl)}else e=Jl;return e},t.prototype.visitNgContent=function(t){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:4,nodeDef:vr(de(zu.ngContentDef)).callFn([Sr(t.ngContentIndex),Sr(t.index)])}})},t.prototype.visitText=function(t){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:vr(de(zu.textDef)).callFn([Sr(t.ngContentIndex),br([Sr(t.value)])])}})},t.prototype.visitBoundText=function(t){var e=this,r=this.nodes.length;this.nodes.push(null);var n=t.value,o=n.ast,i=o.expressions.map(function(n,o){return e._preprocessUpdateExpression({nodeIndex:r,bindingIndex:o,sourceSpan:t.sourceSpan,context:Wh,value:n})});this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:vr(de(zu.textDef)).callFn([Sr(t.ngContentIndex),br(o.strings.map(function(t){return Sr(t)}))]),updateRenderer:i}}},t.prototype.visitEmbeddedTemplate=function(t){var e=this,r=this.nodes.length;this.nodes.push(null);var n=this._visitElementOrTemplate(r,t),o=n.flags,i=n.queryMatchesExpr,s=n.hostEvents,a=this.viewBuilderFactory(this);this.children.push(a),a.visitAll(t.variables,t.children);var u=this.nodes.length-r-1;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|o,nodeDef:vr(de(zu.anchorDef)).callFn([Sr(o),i,Sr(t.ngContentIndex),Sr(u),e._createElementHandleEventFn(r,s),yr(a.viewName)])}}},t.prototype.visitElement=function(t){var e=this,n=this.nodes.length;this.nodes.push(null);var i=o(t.name)?null:t.name,s=this._visitElementOrTemplate(n,t),a=s.flags,u=s.usedEvents,c=s.queryMatchesExpr,l=s.hostBindings,p=s.hostEvents,h=[],f=[],d=[];if(i){var m=t.inputs.map(function(t){return{context:Wh,inputAst:t,dirAst:null}}).concat(l);m.length&&(f=m.map(function(t,r){return e._preprocessUpdateExpression({context:t.context,nodeIndex:n,bindingIndex:r,sourceSpan:t.inputAst.sourceSpan,value:t.inputAst.value})}),h=m.map(function(t){return ln(t.inputAst,t.dirAst)})),d=u.map(function(t){var e=t[0],r=t[1];return br([Sr(e),Sr(r)])})}r(this,t.children);var y=this.nodes.length-n-1,v=t.directives.find(function(t){return t.directive.isComponent}),g=Jl,_=Jl;v&&(_=vr({reference:v.directive.componentViewType}),g=vr({reference:v.directive.rendererType})),this.nodes[n]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|a,nodeDef:vr(de(zu.elementDef)).callFn([Sr(a),c,Sr(t.ngContentIndex),Sr(y),Sr(i),i?pn(t):Jl,h.length?br(h):Jl,d.length?br(d):Jl,e._createElementHandleEventFn(n,p),_,g]),updateRenderer:f}}},t.prototype._visitElementOrTemplate=function(t,r){var n=this,o=0;r.hasViewContainer&&(o|=8388608);var i=new Map;r.outputs.forEach(function(t){var r=gn(t,null),n=r.name,o=r.target;i.set(e.ɵelementEventFullName(o,n),[o,n])}),r.directives.forEach(function(t){t.hostEvents.forEach(function(r){var n=gn(r,t),o=n.name,s=n.target;i.set(e.ɵelementEventFullName(s,o),[s,o])})});var s=[],a=[],u=vn(r.directives);u&&this._visitProvider(u,r.queryMatches),r.providers.forEach(function(e){var o=void 0,u=void 0;if(r.directives.forEach(function(t,r){t.directive.type.reference===R(e.token)&&(o=t,u=r)}),o){var c=n._visitDirective(e,o,u,t,r.references,r.queryMatches,i,n.staticQueryIds.get(r)),l=c.hostBindings,p=c.hostEvents;s.push.apply(s,l),a.push.apply(a,p)}else n._visitProvider(e,r.queryMatches)});var c=[];return r.queryMatches.forEach(function(t){var e=void 0;R(t.value)===fe(zu.ElementRef)?e=0:R(t.value)===fe(zu.ViewContainerRef)?e=3:R(t.value)===fe(zu.TemplateRef)&&(e=2),null!=e&&c.push(br([Sr(t.queryId),Sr(e)]))}),r.references.forEach(function(e){var r=void 0;e.value?R(e.value)===fe(zu.TemplateRef)&&(r=2):r=1,null!=r&&(n.refNodeIndices[e.name]=t,c.push(br([Sr(e.name),Sr(r)])))}),r.outputs.forEach(function(t){a.push({context:Wh,eventAst:t,dirAst:null})}),{flags:o,usedEvents:Array.from(i.values()),queryMatchesExpr:c.length?br(c):Jl,hostBindings:s,hostEvents:a}},t.prototype._visitDirective=function(t,e,r,n,o,i,s,a){var u=this,c=this.nodes.length;this.nodes.push(null),e.directive.queries.forEach(function(t,r){var n=e.contentQueryStartId+r,o=33554432|_n(a,n,t.first),i=t.first?0:1;u.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:o,nodeDef:vr(de(zu.queryDef)).callFn([Sr(o),Sr(n),new Ql([new Kl(t.propertyName,Sr(i))])])}})});var l=this.nodes.length-c-1,p=this._visitProviderOrDirective(t,i),h=p.flags,f=p.queryMatchExprs,d=p.providerExpr,m=p.depsExpr;o.forEach(function(e){e.value&&R(e.value)===R(t.token)&&(u.refNodeIndices[e.name]=c,f.push(br([Sr(e.name),Sr(4)])))}),e.directive.isComponent&&(h|=16384);var y=e.inputs.map(function(t,e){var r=br([Sr(e),Sr(t.directiveName)]);return new Kl(t.directiveName,r,!1)}),v=[],g=e.directive;Object.keys(g.outputs).forEach(function(t){var e=g.outputs[t];s.has(e)&&v.push(new Kl(t,Sr(e),!1))});var _=[];(e.inputs.length||(163840&h)>0)&&(_=e.inputs.map(function(t,e){return u._preprocessUpdateExpression({nodeIndex:c,bindingIndex:e,sourceSpan:t.sourceSpan,context:Wh,value:t.value})}));var b=vr(de(zu.nodeValue)).callFn([zh,Sr(c)]),w=e.hostProperties.map(function(t){return{context:b,dirAst:e,inputAst:t}}),C=e.hostEvents.map(function(t){return{context:b,eventAst:t,dirAst:e}});return this.nodes[c]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:8192|h,nodeDef:vr(de(zu.directiveDef)).callFn([Sr(h),f.length?br(f):Jl,Sr(l),d,m,y.length?new Ql(y):Jl,v.length?new Ql(v):Jl]),updateDirectives:_,directive:e.directive.type}},{hostBindings:w,hostEvents:C}},t.prototype._visitProvider=function(t,e){var r=this.nodes.length;this.nodes.push(null);var n=this._visitProviderOrDirective(t,e),o=n.flags,i=n.queryMatchExprs,s=n.providerExpr,a=n.depsExpr;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:o,nodeDef:vr(de(zu.providerDef)).callFn([Sr(o),i.length?br(i):Jl,sn(t.token),s,a])}}},t.prototype._visitProviderOrDirective=function(t,r){var n=0;t.eager||(n|=2048),t.providerType===po.PrivateService&&(n|=4096),t.lifecycleHooks.forEach(function(r){(r===e.ɵLifecycleHooks.OnDestroy||t.providerType===po.Directive||t.providerType===po.Component)&&(n|=cn(r))});var o=[];r.forEach(function(e){R(e.value)===R(t.token)&&o.push(br([Sr(e.queryId),Sr(4)]))});var i=rn(t),s=i.providerExpr,a=i.depsExpr,u=i.flags;return{flags:n|u,queryMatchExprs:o,providerExpr:s,depsExpr:a}},t.prototype.getLocal=function(t){if(t==Mh.event.name)return Mh.event;for(var e=zh,r=this;r;r=r.parent,e=e.prop("parent").cast(El)){var n=r.refNodeIndices[t];if(null!=n)return vr(de(zu.nodeValue)).callFn([e,Sr(n)]);var o=r.variables.find(function(e){return e.name===t});if(o){var i=o.value||Uh;return e.prop("context").prop(i)}}return null},t.prototype.createLiteralArrayConverter=function(t,e){if(0===e){var r=vr(de(zu.EMPTY_ARRAY));return function(){return r}}var n=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:16,nodeDef:vr(de(zu.pureArrayDef)).callFn([Sr(e)])}}),function(t){return fn(n,t)}},t.prototype.createLiteralMapConverter=function(t,e){if(0===e.length){var r=vr(de(zu.EMPTY_MAP));return function(){return r}}var n=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:32,nodeDef:vr(de(zu.pureObjectDef)).callFn([br(e.map(function(t){return Sr(t)}))])}}),function(t){return fn(n,t)}},t.prototype.createPipeConverter=function(t,e,r){var n=this.usedPipes.find(function(t){return t.name===e});if(n.pure){var o=this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:64,nodeDef:vr(de(zu.purePipeDef)).callFn([Sr(r)])}});for(var i=zh,s=this;s.parent;)s=s.parent,i=i.prop("parent").cast(El);var a=s.purePipeNodeIndices[e],u=vr(de(zu.nodeValue)).callFn([i,Sr(a)]);return function(e){return dn(t.nodeIndex,t.bindingIndex,fn(o,[u].concat(e)))}}var c=this._createPipe(t.sourceSpan,n),l=vr(de(zu.nodeValue)).callFn([zh,Sr(c)]);return function(e){return dn(t.nodeIndex,t.bindingIndex,l.callMethod("transform",e))}},t.prototype._createPipe=function(t,r){var n=this.nodes.length,o=0;r.type.lifecycleHooks.forEach(function(t){t===e.ɵLifecycleHooks.OnDestroy&&(o|=cn(t))});var i=r.type.diDeps.map(an);return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:8,nodeDef:vr(de(zu.pipeDef)).callFn([Sr(o),vr(r.type),br(i)])}}),n},t.prototype._preprocessUpdateExpression=function(t){var e=this;return{nodeIndex:t.nodeIndex,bindingIndex:t.bindingIndex,sourceSpan:t.sourceSpan,context:t.context,value:qr({createLiteralArrayConverter:function(r){return e.createLiteralArrayConverter(t.sourceSpan,r)},createLiteralMapConverter:function(r){return e.createLiteralMapConverter(t.sourceSpan,r)},createPipeConverter:function(r,n){return e.createPipeConverter(t,r,n)}},t.value)}},t.prototype._createNodeExpressions=function(){function t(t,n,o,i){var s=[],a=o.map(function(t){var n=t.sourceSpan,o=t.context,i=t.value,a=""+r++,u=o===Wh?e:null,c=zr(u,o,i,a),l=c.stmts,p=c.currValExpr;return s.push.apply(s,l.map(function(t){return dr(t,n)})),mr(p,n)});return(o.length||i)&&s.push(dr(fn(t,a).toStmt(),n)),s}var e=this,r=0,n=[],o=[],i=this.nodes.map(function(e,r){var i=e(),s=i.nodeDef,a=i.nodeFlags,u=i.updateDirectives,c=i.updateRenderer,l=i.sourceSpan;c&&n.push.apply(n,t(r,l,c,!1)),u&&o.push.apply(o,t(r,l,u,(163840&a)>0));var p=3&a?new Xl([qh.callFn([]).callFn([]),s]):s;return mr(p,l)});return{updateRendererStmts:n,updateDirectivesStmts:o,nodeDefExprs:i}},t.prototype._createElementHandleEventFn=function(t,r){var n=this,o=[],i=0;r.forEach(function(t){var r=t.context,s=t.eventAst,a=t.dirAst,u=""+i++,c=r===Wh?n:null,l=Br(c,r,s.handler,u),p=l.stmts,h=l.allowDefault,f=p;h&&f.push(Kh.set(h.and(Kh)).toStmt());var d=gn(s,a),m=d.target,y=d.name,v=e.ɵelementEventFullName(m,y);o.push(dr(new hp(Sr(v).identical($h),f),s.sourceSpan))});var s;if(o.length>0){var a=[Kh.set(Sr(!0)).toDeclStmt(xl)];!this.component.isHost&&fr(o).has(Wh.name)&&a.push(Wh.set(zh.prop("component")).toDeclStmt(this.compType)),s=Er([new Bl(zh.name,Sl),new Bl($h.name,Sl),new Bl(Mh.event.name,Sl)],a.concat(o,[new sp(Kh)]),Sl)}else s=Jl;return s},t.prototype.visitDirective=function(){},t.prototype.visitDirectiveProperty=function(){},t.prototype.visitReference=function(){},t.prototype.visitVariable=function(){},t.prototype.visitEvent=function(){},t.prototype.visitElementProperty=function(){},t.prototype.visitAttr=function(){},t}(),Xh=function(){function t(t,e,r){this.srcFileUrl=t,this.genFileUrl=e,this.source=r}return t}(),Zh=function(t){function e(e,r){var n=t.call(this)||this;return n.symbolResolver=e,n.summaryResolver=r,n.symbols=[],n.indexBySymbol=new Map,n.processedSummaryBySymbol=new Map,n.processedSummaries=[],n}return Zn(e,t),e.prototype.addOrMergeSummary=function(t){var e=t.metadata;if(e&&"class"===e.__symbolic){var r={};Object.keys(e).forEach(function(t){"decorators"!==t&&(r[t]=e[t])}),e=r}var n=this.processedSummaryBySymbol.get(t.symbol);n||(n=this.processValue({symbol:t.symbol}),this.processedSummaries.push(n),this.processedSummaryBySymbol.set(t.symbol,n)),null==n.metadata&&null!=e&&(n.metadata=this.processValue(e)),null==n.type&&null!=t.type&&(n.type=this.processValue(t.type))},e.prototype.serialize=function(){var t=this,e=[],r=JSON.stringify({summaries:this.processedSummaries,symbols:this.symbols.map(function(r,n){r.assertNoMembers();var o=void 0;return t.summaryResolver.isLibraryFile(r.filePath)&&(o=r.name+"_"+n,e.push({symbol:r,exportAs:o})),{__symbol:n,name:r.name,filePath:t.summaryResolver.getLibraryFileName(r.filePath),importAs:o}})});return{json:r,exportAs:e
-}},e.prototype.processValue=function(t){return d(t,this,null)},e.prototype.visitOther=function(t){if(t instanceof mo){var e=this.symbolResolver.getStaticSymbol(t.filePath,t.name),r=this.indexBySymbol.get(e);return null==r&&(r=this.indexBySymbol.size,this.indexBySymbol.set(e,r),this.symbols.push(e)),{__symbol:r,members:t.members}}},e}(Oo),Yh=function(t){function e(e){var r=t.call(this)||this;return r.symbolCache=e,r}return Zn(e,t),e.prototype.deserialize=function(t){var e=this,r=JSON.parse(t),n=[];this.symbols=[],r.symbols.forEach(function(t){var r=e.symbolCache.get(t.filePath,t.name);e.symbols.push(r),t.importAs&&n.push({symbol:r,importAs:t.importAs})});var o=d(r.summaries,this,null);return{summaries:o,importAs:n}},e.prototype.visitStringMap=function(e,r){if("__symbol"in e){var n=this.symbols[e.__symbol],o=e.members;return o.length?this.symbolCache.get(n.filePath,n.name,o):n}return t.prototype.visitStringMap.call(this,e,r)},e}(Oo),Jh=function(){function t(t,e,r,n,o,i,s,a,u,c,l,p,h){this._config=t,this._host=e,this._metadataResolver=r,this._templateParser=n,this._styleCompiler=o,this._viewCompiler=i,this._ngModuleCompiler=s,this._outputEmitter=a,this._summaryResolver=u,this._localeId=c,this._translationFormat=l,this._genFilePreamble=p,this._symbolResolver=h}return t.prototype.clearCache=function(){this._metadataResolver.clearCache()},t.prototype.compileAll=function(t){var e=this,r=An(this._symbolResolver,t,this._host),n=Tn(r,this._host,this._metadataResolver),o=n.ngModuleByPipeOrDirective,i=n.files,s=n.ngModules;return Promise.all(s.map(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=i.map(function(t){return e._compileSrcFile(t.srcUrl,o,t.directives,t.pipes,t.ngModules,t.injectables)});return N(t)})},t.prototype._compileSrcFile=function(t,e,r,n,o,i){var s=this,a=Je(t)[1],u=[],c=[],l=[];if(l.push(this._createSummary(t,r,n,o,i,u,c)),c.push.apply(c,o.map(function(t){return s._compileModule(t,u)})),r.forEach(function(r){var n=s._metadataResolver.getDirectiveMetadata(r);if(!n.isComponent)return Promise.resolve(null);var o=e.get(r);if(!o)throw new Error("Internal Error: cannot determine the module for component "+E(n.type)+"!");Sn(n);var i=s._styleCompiler.compileComponent(n);i.externalStylesheets.forEach(function(e){l.push(s._codgenStyles(t,e,a))});var p=s._compileComponent(n,o,o.transitiveModule.directives,i.componentStylesheet,a,u);c.push(s._compileComponentFactory(n,o,a,u),p.viewClassVar,p.compRenderTypeVar)}),u.length>0){var p=this._codegenSourceModule(t,Xe(t),u,c);l.unshift(p)}return l},t.prototype._createSummary=function(t,e,r,n,o,i,s){var a=this,u=this._symbolResolver.getSymbolsOf(t).map(function(t){return a._symbolResolver.resolveSymbol(t)}),c=n.map(function(t){return a._metadataResolver.getNgModuleSummary(t)}).concat(e.map(function(t){return a._metadataResolver.getDirectiveSummary(t)}),r.map(function(t){return a._metadataResolver.getPipeSummary(t)}),o.map(function(t){return a._metadataResolver.getInjectableSummary(t)})),l=bn(this._summaryResolver,this._symbolResolver,u,c),p=l.json,h=l.exportAs;return h.forEach(function(t){i.push(yr(t.exportAs).set(vr({reference:t.symbol})).toDeclStmt()),s.push(t.exportAs)}),new Xh(t,tr(t),p)},t.prototype._compileModule=function(t,e){var r=this._metadataResolver.getNgModuleMetadata(t),n=[];this._localeId&&n.push({token:ye(zu.LOCALE_ID),useValue:this._localeId}),this._translationFormat&&n.push({token:ye(zu.TRANSLATIONS_FORMAT),useValue:this._translationFormat});var o=this._ngModuleCompiler.compile(r,n);return e.push.apply(e,o.statements),o.ngModuleFactoryVar},t.prototype._compileComponentFactory=function(t,e,r,n){var o=this._metadataResolver.getHostComponentType(t.type.reference),i=k(o,t,this._metadataResolver.getHostComponentViewClass(o)),s=this._compileComponent(i,e,[t.type],null,r,n).viewClassVar,a=O(t.type.reference),u=[];for(var c in t.inputs){var l=t.inputs[c];u.push(new Kl(c,Sr(l),!1))}var p=[];for(var c in t.outputs){var l=t.outputs[c];p.push(new Kl(c,Sr(l),!1))}return n.push(yr(a).set(vr(de(zu.createComponentFactory)).callFn([Sr(t.selector),vr(t.type),yr(s),new Ql(u),new Ql(p),br(t.template.ngContentSelectors.map(function(t){return Sr(t)}))])).toDeclStmt(gr(de(zu.ComponentFactory),[gr(t.type)],[yl.Const]),[ep.Final])),a},t.prototype._compileComponent=function(t,e,r,n,o,i){var s=this,a=r.map(function(t){return s._metadataResolver.getDirectiveSummary(t.reference)}),u=e.transitiveModule.pipes.map(function(t){return s._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(t,t.template.template,a,u,e.schemas,j(e.type,t,t.template)),l=c.template,p=c.pipes,h=n?yr(n.stylesVar):br([]),f=this._viewCompiler.compileComponent(t,l,h,p);return n&&i.push.apply(i,Cn(this._symbolResolver,n,o)),i.push.apply(i,f.statements),{viewClassVar:f.viewClassVar,compRenderTypeVar:f.rendererTypeVar}},t.prototype._codgenStyles=function(t,e,r){return Cn(this._symbolResolver,e,r),this._codegenSourceModule(t,En(e.meta.moduleUrl,e.isShimmed,r),e.statements,[e.stylesVar])},t.prototype._codegenSourceModule=function(t,e,r,n){return new Xh(t,e,this._outputEmitter.emitStatements(D(t),e,r,n,this._genFilePreamble))},t}(),tf=function(){function t(t){this.staticDelegate=t,this.dynamicDelegate=new e.ɵReflectionCapabilities}return t.install=function(r){e.ɵreflector.updateCapabilities(new t(r))},t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return this.dynamicDelegate.factory(t)},t.prototype.hasLifecycleHook=function(t,e){return Mn(t)?this.staticDelegate.hasLifecycleHook(t,e):this.dynamicDelegate.hasLifecycleHook(t,e)},t.prototype.parameters=function(t){return Mn(t)?this.staticDelegate.parameters(t):this.dynamicDelegate.parameters(t)},t.prototype.annotations=function(t){return Mn(t)?this.staticDelegate.annotations(t):this.dynamicDelegate.annotations(t)},t.prototype.propMetadata=function(t){return Mn(t)?this.staticDelegate.propMetadata(t):this.dynamicDelegate.propMetadata(t)},t.prototype.getter=function(t){return this.dynamicDelegate.getter(t)},t.prototype.setter=function(t){return this.dynamicDelegate.setter(t)},t.prototype.method=function(t){return this.dynamicDelegate.method(t)},t.prototype.importUri=function(t){return this.staticDelegate.importUri(t)},t.prototype.resourceUri=function(t){return this.staticDelegate.resourceUri(t)},t.prototype.resolveIdentifier=function(t,e,r){return this.staticDelegate.resolveIdentifier(t,e,r)},t.prototype.resolveEnum=function(t,e){return Mn(t)?this.staticDelegate.resolveEnum(t,e):null},t}(),ef="@angular/core",rf=/^\$.*\$$/,nf={__symbolic:"ignore"},of=function(){function t(t,r,n,o,i){void 0===n&&(n=[]),void 0===o&&(o=[]);var s=this;this.summaryResolver=t,this.symbolResolver=r,this.errorRecorder=i,this.annotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.conversionMap=new Map,this.annotationForParentClassWithSummaryKind=new Map,this.annotationNames=new Map,this.initializeConversionMap(),n.forEach(function(t){return s._registerDecoratorOrConstructor(s.getStaticSymbol(t.filePath,t.name),t.ctor)}),o.forEach(function(t){return s._registerFunction(s.getStaticSymbol(t.filePath,t.name),t.fn)}),this.annotationForParentClassWithSummaryKind.set(Wo.Directive,[e.Directive,e.Component]),this.annotationForParentClassWithSummaryKind.set(Wo.Pipe,[e.Pipe]),this.annotationForParentClassWithSummaryKind.set(Wo.NgModule,[e.NgModule]),this.annotationForParentClassWithSummaryKind.set(Wo.Injectable,[e.Injectable,e.Pipe,e.Directive,e.Component,e.NgModule]),this.annotationNames.set(e.Directive,"Directive"),this.annotationNames.set(e.Component,"Component"),this.annotationNames.set(e.Pipe,"Pipe"),this.annotationNames.set(e.NgModule,"NgModule"),this.annotationNames.set(e.Injectable,"Injectable")}return t.prototype.importUri=function(t){var e=this.findSymbolDeclaration(t);return e?e.filePath:null},t.prototype.resourceUri=function(t){var e=this.findSymbolDeclaration(t);return this.symbolResolver.getResourcePath(e)},t.prototype.resolveIdentifier=function(t,e,r){var n=this.getStaticSymbol(e,t),o=this.findDeclaration(e,t);return n!=o&&this.symbolResolver.recordImportAs(o,n),r&&r.length?this.getStaticSymbol(o.filePath,o.name,r):o},t.prototype.findDeclaration=function(t,e,r){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(t,e,r))},t.prototype.findSymbolDeclaration=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata instanceof mo?this.findSymbolDeclaration(e.metadata):t},t.prototype.resolveEnum=function(t,e){var r=t,n=(r.members||[]).concat(e);return this.getStaticSymbol(r.filePath,r.name,n)},t.prototype.annotations=function(t){var e=this,r=this.annotationCache.get(t);if(!r){r=[];var n=this.getTypeMetadata(t),o=this.findParentType(t,n);if(o){var i=this.annotations(o);r.push.apply(r,i)}var s=[];if(n.decorators&&(s=this.simplify(t,n.decorators),r.push.apply(r,s)),o&&!this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(o.filePath)){var a=this.summaryResolver.resolveSummary(o);if(a&&a.type){var u=this.annotationForParentClassWithSummaryKind.get(a.type.summaryKind),c=u.some(function(t){return s.some(function(e){return e instanceof t})});c||this.reportError(v("Class "+t.name+" in "+t.filePath+" extends from a "+Wo[a.type.summaryKind]+" in another compilation unit without duplicating the decorator. "+("Please add a "+u.map(function(t){return e.annotationNames.get(t)}).join(" or ")+" decorator to the class.")),t)}}this.annotationCache.set(t,r.filter(function(t){return!!t}))}return r},t.prototype.propMetadata=function(t){var e=this,r=this.propertyCache.get(t);if(!r){var n=this.getTypeMetadata(t);r={};var o=this.findParentType(t,n);if(o){var i=this.propMetadata(o);Object.keys(i).forEach(function(t){r[t]=i[t]})}var s=n.members||{};Object.keys(s).forEach(function(n){var o=s[n],i=o.find(function(t){return"property"==t.__symbolic||"method"==t.__symbolic}),a=[];r[n]&&a.push.apply(a,r[n]),r[n]=a,i&&i.decorators&&a.push.apply(a,e.simplify(t,i.decorators))}),this.propertyCache.set(t,r)}return r},t.prototype.parameters=function(t){if(!(t instanceof mo))return this.reportError(new Error("parameters received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),[];try{var e=this.parameterCache.get(t);if(!e){var r=this.getTypeMetadata(t),n=this.findParentType(t,r),o=r?r.members:null,i=o?o.__ctor__:null;if(i){var s=i.find(function(t){return"constructor"==t.__symbolic}),a=this.simplify(t,s.parameters||[]),u=this.simplify(t,s.parameterDecorators||[]);e=[],a.forEach(function(t,r){var n=[];t&&n.push(t);var o=u?u[r]:null;o&&n.push.apply(n,o),e.push(n)})}else n&&(e=this.parameters(n));e||(e=[]),this.parameterCache.set(t,e)}return e}catch(c){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+c),c}},t.prototype._methodNames=function(t){var e=this.methodCache.get(t);if(!e){var r=this.getTypeMetadata(t);e={};var n=this.findParentType(t,r);if(n){var o=this._methodNames(n);Object.keys(o).forEach(function(t){e[t]=o[t]})}var i=r.members||{};Object.keys(i).forEach(function(t){var r=i[t],n=r.some(function(t){return"method"==t.__symbolic});e[t]=e[t]||n}),this.methodCache.set(t,e)}return e},t.prototype.findParentType=function(t,e){var r=this.trySimplify(t,e["extends"]);return r instanceof mo?r:void 0},t.prototype.hasLifecycleHook=function(t,e){t instanceof mo||this.reportError(new Error("hasLifecycleHook received "+JSON.stringify(t)+" which is not a StaticSymbol"),t);try{return!!this._methodNames(t)[e]}catch(r){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+r),r}},t.prototype._registerDecoratorOrConstructor=function(t,e){this.conversionMap.set(t,function(t,r){return new(e.bind.apply(e,[void 0].concat(r)))})},t.prototype._registerFunction=function(t,e){this.conversionMap.set(t,function(t,r){return e.apply(void 0,r)})},t.prototype.initializeConversionMap=function(){this.injectionToken=this.findDeclaration(ef,"InjectionToken"),this.opaqueToken=this.findDeclaration(ef,"OpaqueToken"),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Injectable"),e.Injectable),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Inject"),e.Inject),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Optional"),e.Optional),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Attribute"),e.Attribute),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"ContentChild"),e.ContentChild),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"ContentChildren"),e.ContentChildren),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"ViewChild"),e.ViewChild),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"ViewChildren"),e.ViewChildren),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Input"),e.Input),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Output"),e.Output),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Pipe"),e.Pipe),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"HostBinding"),e.HostBinding),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"HostListener"),e.HostListener),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Directive"),e.Directive),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Component"),e.Component),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"NgModule"),e.NgModule),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Optional"),e.Optional),this._registerFunction(this.findDeclaration(ef,"trigger"),e.trigger),this._registerFunction(this.findDeclaration(ef,"state"),e.state),this._registerFunction(this.findDeclaration(ef,"transition"),e.transition),this._registerFunction(this.findDeclaration(ef,"style"),e.style),this._registerFunction(this.findDeclaration(ef,"animate"),e.animate),this._registerFunction(this.findDeclaration(ef,"keyframes"),e.keyframes),this._registerFunction(this.findDeclaration(ef,"sequence"),e.sequence),this._registerFunction(this.findDeclaration(ef,"group"),e.group)},t.prototype.getStaticSymbol=function(t,e,r){return this.symbolResolver.getStaticSymbol(t,e,r)},t.prototype.reportError=function(t,e,r){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||r)},t.prototype.trySimplify=function(t,e){var r=this.errorRecorder;this.errorRecorder=function(){};var n=this.simplify(t,e);return this.errorRecorder=r,n},t.prototype.simplify=function(t,e){function r(t,e,n){function a(t){var e=o.symbolResolver.resolveSymbol(t);return e?e.metadata:null}function u(e,o,a){if(o&&"function"==o.__symbolic){if(s.get(e))throw new Error("Recursion not supported");s.set(e,!0);try{var u=o.value;if(u&&(0!=n||"error"!=u.__symbolic)){var l=o.parameters,p=o.defaults;a=a.map(function(e){return r(t,e,n+1)}).map(function(t){return Rn(t)?void 0:t}),p&&p.length>a.length&&a.push.apply(a,p.slice(a.length).map(function(t){return c(t)}));for(var h=sf.build(),f=0;f<l.length;f++)h.define(l[f],a[f]);var d,m=i;try{i=h.done(),d=r(e,u,n+1)}finally{i=m}return d}}finally{s["delete"](e)}}return 0===n?nf:c({__symbolic:"error",message:"Function call not supported",context:e})}function c(e){if(Dn(e))return e;if(e instanceof Array){for(var s=[],l=0,p=e;l<p.length;l++){var h=p[l];if(h&&"spread"===h.__symbolic){var f=c(h.expression);if(Array.isArray(f)){for(var d=0,m=f;d<m.length;d++){var y=m[d];s.push(y)}continue}}var v=c(h);Rn(v)||s.push(v)}return s}if(e instanceof mo){if(e===o.injectionToken||e===o.opaqueToken||o.conversionMap.has(e))return e;var g=e,_=a(g);return _?r(g,_,n+1):g}if(e){if(e.__symbolic){var g=void 0;switch(e.__symbolic){case"binop":var b=c(e.left);if(Rn(b))return b;var w=c(e.right);if(Rn(w))return w;switch(e.operator){case"&&":return b&&w;case"||":return b||w;case"|":return b|w;case"^":return b^w;case"&":return b&w;case"==":return b==w;case"!=":return b!=w;case"===":return b===w;case"!==":return b!==w;case"<":return w>b;case">":return b>w;case"<=":return w>=b;case">=":return b>=w;case"<<":return b<<w;case">>":return b>>w;case"+":return b+w;case"-":return b-w;case"*":return b*w;case"/":return b/w;case"%":return b%w}return null;case"if":var C=c(e.condition);return c(C?e.thenExpression:e.elseExpression);case"pre":var E=c(e.operand);if(Rn(E))return E;switch(e.operator){case"+":return E;case"-":return-E;case"!":return!E;case"~":return~E}return null;case"index":var S=c(e.expression),x=c(e.index);return S&&Dn(x)?S[x]:null;case"select":var T=e.member,P=t,A=c(e.expression);if(A instanceof mo){var O=A.members.concat(T);P=o.getStaticSymbol(A.filePath,A.name,O);var _=a(P);return _?r(P,_,n+1):P}return A&&Dn(T)?r(P,A[T],n+1):null;case"reference":var M=e.name,R=i.resolve(M);if(R!=sf.missing)return R;break;case"class":return t;case"function":return t;case"new":case"call":if(g=r(t,e.expression,n+1),g instanceof mo){if(g===o.injectionToken||g===o.opaqueToken)return t;var k=e.arguments||[],I=o.conversionMap.get(g);if(I){var N=k.map(function(e){return r(t,e,n+1)}).map(function(t){return Rn(t)?void 0:t});return I(t,N)}var D=a(g);return u(g,D,k)}return nf;case"error":var j=In(e);return e.line?(j=j+" (position "+(e.line+1)+":"+(e.character+1)+" in the original .ts file)",o.reportError(jn(j,t.filePath,e.line,e.character),t)):o.reportError(new Error(j),t),nf;case"ignore":return e}return null}return Nn(e,function(t){return c(t)})}return nf}try{return c(e)}catch(l){var p=t.members.length?"."+t.members.join("."):"",h=l.message+", resolving symbol "+t.name+p+" in "+t.filePath;if(l.fileName)throw jn(h,l.fileName,l.line,l.column);throw v(h)}}var n=this,o=this,i=sf.empty,s=new Map,a=function(t,e,o){try{return r(t,e,o)}catch(i){n.reportError(i,t)}},u=this.errorRecorder?a(t,e,0):r(t,e,0);return Rn(u)?void 0:u},t.prototype.getTypeMetadata=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata?e.metadata:{__symbolic:"class"}},t}(),sf=function(){function t(){}return t.prototype.resolve=function(){},t.build=function(){var e=new Map;return{define:function(t,r){return e.set(t,r),this},done:function(){return e.size>0?new af(e):t.empty}}},t}();sf.missing={},sf.empty={resolve:function(){return sf.missing}};var af=function(t){function e(e){var r=t.call(this)||this;return r.bindings=e,r}return Zn(e,t),e.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):sf.missing},e}(sf),uf=function(){function t(t,e){this.symbol=t,this.metadata=e}return t}(),cf=3,lf=function(){function t(t,e,r,n){this.host=t,this.staticSymbolCache=e,this.summaryResolver=r,this.errorRecorder=n,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.resolvedFilePaths=new Set,this.importAs=new Map,this.symbolResourcePaths=new Map,this.symbolFromFile=new Map}return t.prototype.resolveSymbol=function(t){if(t.members.length>0)return this._resolveSymbolMembers(t);var e=this.resolvedSymbols.get(t);return e?e:(e=this._resolveSymbolFromSummary(t))?e:(this._createSymbolsOf(t.filePath),e=this.resolvedSymbols.get(t))},t.prototype.getImportAs=function(t){if(t.members.length){var e=this.getStaticSymbol(t.filePath,t.name),r=this.getImportAs(e);return r?this.getStaticSymbol(r.filePath,r.name,t.members):null}var n=this.summaryResolver.getImportAs(t);return n||(n=this.importAs.get(t)),n},t.prototype.getResourcePath=function(t){return this.symbolResourcePaths.get(t)||t.filePath},t.prototype.getTypeArity=function(t){if(Ye(t.filePath))return null;for(var e=this.resolveSymbol(t);e&&e.metadata instanceof mo;)e=this.resolveSymbol(e.metadata);return e&&e.metadata&&e.metadata.arity||null},t.prototype.recordImportAs=function(t,e){t.assertNoMembers(),e.assertNoMembers(),this.importAs.set(t,e)},t.prototype.invalidateFile=function(t){this.metadataCache["delete"](t),this.resolvedFilePaths["delete"](t);var e=this.symbolFromFile.get(t);if(e){this.symbolFromFile["delete"](t);for(var r=0,n=e;r<n.length;r++){var o=n[r];this.resolvedSymbols["delete"](o),this.importAs["delete"](o),this.symbolResourcePaths["delete"](o)}}},t.prototype._resolveSymbolMembers=function(t){var e=t.members,r=this.resolveSymbol(this.getStaticSymbol(t.filePath,t.name));if(!r)return null;var n=r.metadata;if(n instanceof mo)return new uf(t,this.getStaticSymbol(n.filePath,n.name,e));if(!n||"class"!==n.__symbolic){for(var o=n,i=0;i<e.length&&o;i++)o=o[e[i]];return new uf(t,o)}return n.statics&&1===e.length?new uf(t,n.statics[e[0]]):null},t.prototype._resolveSymbolFromSummary=function(t){var e=this.summaryResolver.resolveSummary(t);return e?new uf(t,e.metadata):null},t.prototype.getStaticSymbol=function(t,e,r){return this.staticSymbolCache.get(t,e,r)},t.prototype.getSymbolsOf=function(t){var e=new Set(this.summaryResolver.getSymbolsOf(t));return this._createSymbolsOf(t),this.resolvedSymbols.forEach(function(r){r.symbol.filePath===t&&e.add(r.symbol)}),Array.from(e)},t.prototype._createSymbolsOf=function(t){var e=this;if(!this.resolvedFilePaths.has(t)){this.resolvedFilePaths.add(t);var r=[],n=this.getModuleMetadata(t);if(n.metadata){var o=new Set(Object.keys(n.metadata).map(Ln)),i=n.origins||{};Object.keys(n.metadata).forEach(function(s){var a=n.metadata[s],u=Ln(s),c=e.getStaticSymbol(t,u),l=void 0;n.importAs&&(l=e.getStaticSymbol(n.importAs,u),e.recordImportAs(c,l));var p=i.hasOwnProperty(s)&&i[s];if(p){var h=e.resolveModule(p,t);h?e.symbolResourcePaths.set(c,h):e.reportError(new Error("Couldn't resolve original symbol for "+p+" from "+t))}r.push(e.createResolvedSymbol(c,t,o,a))})}if(n.exports)for(var s=function(n){if(n["export"])n["export"].forEach(function(o){var i;i="string"==typeof o?o:o.as,i=Ln(i);var s=i;"string"!=typeof o&&(s=Ln(o.name));var a=e.resolveModule(n.from,t);if(a){var u=e.getStaticSymbol(a,s),c=e.getStaticSymbol(t,i);r.push(e.createExport(c,u))}});else{var o=a.resolveModule(n.from,t);if(o){var i=a.getSymbolsOf(o);i.forEach(function(n){var o=e.getStaticSymbol(t,n.name);r.push(e.createExport(o,n))})}}},a=this,u=0,c=n.exports;u<c.length;u++){var l=c[u];s(l)}r.forEach(function(t){return e.resolvedSymbols.set(t.symbol,t)}),this.symbolFromFile.set(t,r.map(function(t){return t.symbol}))}},t.prototype.createResolvedSymbol=function(t,e,r,n){if(this.summaryResolver.isLibraryFile(t.filePath)&&n&&"class"===n.__symbolic){var o={__symbolic:"class",arity:n.arity};return new uf(t,o)}var i=this,s=function(n){function o(){return null!==n&&n.apply(this,arguments)||this}return Zn(o,n),o.prototype.visitStringMap=function(o,s){var a=o.__symbolic;if("function"===a){var u=s.length;s.push.apply(s,o.parameters||[]);var c=n.prototype.visitStringMap.call(this,o,s);return s.length=u,c}if("reference"!==a)return n.prototype.visitStringMap.call(this,o,s);var l=o.module,p=o.name?Ln(o.name):o.name;if(!p)return null;var h=void 0;return l?(h=i.resolveModule(l,t.filePath),h?i.getStaticSymbol(h,p):{__symbolic:"error",message:"Could not resolve "+l+" relative to "+t.filePath+"."}):s.indexOf(p)>=0?{__symbolic:"reference",name:p}:r.has(p)?i.getStaticSymbol(e,p):void 0},o}(Oo),a=d(n,new s,[]);return a instanceof mo?this.createExport(t,a):new uf(t,a)},t.prototype.createExport=function(t,e){return t.assertNoMembers(),e.assertNoMembers(),this.summaryResolver.isLibraryFile(t.filePath)&&this.importAs.set(e,this.getImportAs(t)||t),new uf(t,e)},t.prototype.reportError=function(t,e,r){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||r)},t.prototype.getModuleMetadata=function(t){var e=this.metadataCache.get(t);if(!e){var r=this.host.getMetadataFor(t);if(r){var n=-1;r.forEach(function(t){t.version>n&&(n=t.version,e=t)})}if(e||(e={__symbolic:"module",version:cf,module:t,metadata:{}}),e.version!=cf){var o=2==e.version?"Unsupported metadata version "+e.version+" for module "+t+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+t+", found version "+e.version+", expected "+cf;this.reportError(new Error(o))}this.metadataCache.set(t,e)}return e},t.prototype.getSymbolByModule=function(t,e,r){var n=this.resolveModule(t,r);return n?this.getStaticSymbol(n,e):(this.reportError(new Error("Could not resolve module "+t+(r?" relative to $ {\n            containingFile\n          } ":""))),this.getStaticSymbol("ERROR:"+t,e))},t.prototype.resolveModule=function(t,e){try{return this.host.moduleNameToFileName(t,e)}catch(r){console.error("Could not resolve module '"+t+"' relative to file "+e),this.reportError(r,void 0,e)}return null},t}(),pf=function(){function t(t,e){this.host=t,this.staticSymbolCache=e,this.summaryCache=new Map,this.loadedFilePaths=new Set,this.importAs=new Map}return t.prototype.isLibraryFile=function(t){return!this.host.isSourceFile(Ze(t))},t.prototype.getLibraryFileName=function(t){return this.host.getOutputFileName(t)},t.prototype.resolveSummary=function(t){t.assertNoMembers();var e=this.summaryCache.get(t);return e||(this._loadSummaryFile(t.filePath),e=this.summaryCache.get(t)),e},t.prototype.getSymbolsOf=function(t){return this._loadSummaryFile(t),Array.from(this.summaryCache.keys()).filter(function(e){return e.filePath===t})},t.prototype.getImportAs=function(t){return t.assertNoMembers(),this.importAs.get(t)},t.prototype._loadSummaryFile=function(t){var e=this;if(!this.loadedFilePaths.has(t)&&(this.loadedFilePaths.add(t),this.isLibraryFile(t))){var r=tr(t),n=void 0;try{n=this.host.loadSummary(r)}catch(o){throw console.error("Error loading summary file "+r),o}if(n){var i=wn(this.staticSymbolCache,n),s=i.summaries,a=i.importAs;s.forEach(function(t){return e.summaryCache.set(t.symbol,t)}),a.forEach(function(r){e.importAs.set(r.symbol,e.staticSymbolCache.get(Xe(t),r.importAs))})}}},t}(),hf=function(){function t(t,e,r,n){this.parent=t,this.instance=e,this.className=r,this.vars=n}return t.prototype.createChildWihtLocalVars=function(){return new t(this,this.instance,this.className,new Map)},t}(),ff=function(){function t(t){this.value=t}return t}(),df=function(){function t(){}return t.prototype.debugAst=function(t){return Nr(t)},t.prototype.visitDeclareVarStmt=function(t,e){return e.vars.set(t.name,t.value.visitExpression(this,e)),null},t.prototype.visitWriteVarExpr=function(t,e){for(var r=t.value.visitExpression(this,e),n=e;null!=n;){if(n.vars.has(t.name))return n.vars.set(t.name,r),r;n=n.parent}throw new Error("Not declared variable "+t.name)},t.prototype.visitReadVarExpr=function(t,e){var r=t.name;if(null!=t.builtin)switch(t.builtin){case Al.Super:return e.instance.__proto__;case Al.This:return e.instance;case Al.CatchError:r=mf;break;case Al.CatchStack:r=yf;break;default:throw new Error("Unknown builtin variable "+t.builtin)}for(var n=e;null!=n;){if(n.vars.has(r))return n.vars.get(r);n=n.parent}throw new Error("Not declared variable "+r)},t.prototype.visitWriteKeyExpr=function(t,e){var r=t.receiver.visitExpression(this,e),n=t.index.visitExpression(this,e),o=t.value.visitExpression(this,e);return r[n]=o,o},t.prototype.visitWritePropExpr=function(t,e){var r=t.receiver.visitExpression(this,e),n=t.value.visitExpression(this,e);return r[t.name]=n,n},t.prototype.visitInvokeMethodExpr=function(t,e){var r,n=t.receiver.visitExpression(this,e),o=this.visitAllExpressions(t.args,e);if(null!=t.builtin)switch(t.builtin){case Il.ConcatArray:r=n.concat.apply(n,o);break;case Il.SubscribeObservable:r=n.subscribe({next:o[0]});break;case Il.Bind:r=n.bind.apply(n,o);break;default:throw new Error("Unknown builtin method "+t.builtin)}else r=n[t.name].apply(n,o);return r},t.prototype.visitInvokeFunctionExpr=function(t,e){var r=this.visitAllExpressions(t.args,e),n=t.fn;if(n instanceof Ol&&n.builtin===Al.Super)return e.instance.constructor.prototype.constructor.apply(e.instance,r),null;var o=t.fn.visitExpression(this,e);return o.apply(null,r)},t.prototype.visitReturnStmt=function(t,e){return new ff(t.value.visitExpression(this,e))},t.prototype.visitDeclareClassStmt=function(t,e){var r=Hn(t,e,this);return e.vars.set(t.name,r),null},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e)},t.prototype.visitIfStmt=function(t,e){var r=t.condition.visitExpression(this,e);return r?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(mf,r),n.vars.set(yf,r.stack),this.visitAllStatements(t.catchStmts,n)}},t.prototype.visitThrowStmt=function(t,e){throw t.error.visitExpression(this,e)},t.prototype.visitCommentStmt=function(){return null},t.prototype.visitInstantiateExpr=function(t,e){var r=this.visitAllExpressions(t.args,e),n=t.classExpr.visitExpression(this,e);return new(n.bind.apply(n,[void 0].concat(r)))},t.prototype.visitLiteralExpr=function(t){return t.value},t.prototype.visitExternalExpr=function(t){return t.value.reference},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e)?t.trueCase.visitExpression(this,e):null!=t.falseCase?t.falseCase.visitExpression(this,e):null},t.prototype.visitNotExpr=function(t,e){return!t.condition.visitExpression(this,e)},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e)},t.prototype.visitFunctionExpr=function(t,e){var r=t.params.map(function(t){return t.name});return Bn(r,t.statements,e,this)},t.prototype.visitDeclareFunctionStmt=function(t,e){var r=t.params.map(function(t){return t.name});return e.vars.set(t.name,Bn(r,t.statements,e,this)),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var r=this,n=function(){return t.lhs.visitExpression(r,e)},o=function(){return t.rhs.visitExpression(r,e)};switch(t.operator){case Tl.Equals:return n()==o();case Tl.Identical:return n()===o();case Tl.NotEquals:return n()!=o();case Tl.NotIdentical:return n()!==o();case Tl.And:return n()&&o();case Tl.Or:return n()||o();case Tl.Plus:return n()+o();case Tl.Minus:return n()-o();case Tl.Divide:return n()/o();case Tl.Multiply:return n()*o();case Tl.Modulo:return n()%o();case Tl.Lower:return n()<o();case Tl.LowerEquals:return n()<=o();case Tl.Bigger:return n()>o();case Tl.BiggerEquals:return n()>=o();default:throw new Error("Unknown operator "+t.operator)}},t.prototype.visitReadPropExpr=function(t,e){var r,n=t.receiver.visitExpression(this,e);return r=n[t.name]},t.prototype.visitReadKeyExpr=function(t,e){var r=t.receiver.visitExpression(this,e),n=t.index.visitExpression(this,e);return r[n]},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e)},t.prototype.visitLiteralMapExpr=function(t,e){var r=this,n={};return t.entries.forEach(function(t){return n[t.key]=t.value.visitExpression(r,e)}),n},t.prototype.visitCommaExpr=function(t,e){var r=this.visitAllExpressions(t.parts,e);return r[r.length-1]},t.prototype.visitAllExpressions=function(t,e){var r=this;return t.map(function(t){return t.visitExpression(r,e)})},t.prototype.visitAllStatements=function(t,e){for(var r=0;r<t.length;r++){var n=t[r],o=n.visitStatement(this,e);if(o instanceof ff)return o}return null},t}(),mf="error",yf="stack",vf=function(t){function e(){return t.call(this,!1)||this}return Zn(e,t),e.prototype.visitDeclareClassStmt=function(t,e){var r=this;return e.pushClass(t),this._visitClassConstructor(t,e),null!=t.parent&&(e.print(t,t.name+".prototype = Object.create("),t.parent.visitExpression(this,e),e.println(t,".prototype);")),t.getters.forEach(function(n){return r._visitClassGetter(t,n,e)}),t.methods.forEach(function(n){return r._visitClassMethod(t,n,e)}),e.popClass(),null},e.prototype._visitClassConstructor=function(t,e){e.print(t,"function "+t.name+"("),
-null!=t.constructorMethod&&this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),null!=t.constructorMethod&&t.constructorMethod.body.length>0&&(e.println(t,"var self = this;"),this.visitAllStatements(t.constructorMethod.body,e)),e.decIndent(),e.println(t,"}")},e.prototype._visitClassGetter=function(t,e,r){r.println(t,"Object.defineProperty("+t.name+".prototype, '"+e.name+"', { get: function() {"),r.incIndent(),e.body.length>0&&(r.println(t,"var self = this;"),this.visitAllStatements(e.body,r)),r.decIndent(),r.println(t,"}});")},e.prototype._visitClassMethod=function(t,e,r){r.print(t,t.name+".prototype."+e.name+" = function("),this._visitParams(e.params,r),r.println(t,") {"),r.incIndent(),e.body.length>0&&(r.println(t,"var self = this;"),this.visitAllStatements(e.body,r)),r.decIndent(),r.println(t,"};")},e.prototype.visitReadVarExpr=function(e,r){if(e.builtin===Al.This)r.print(e,"self");else{if(e.builtin===Al.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");t.prototype.visitReadVarExpr.call(this,e,r)}return null},e.prototype.visitDeclareVarStmt=function(t,e){return e.print(t,"var "+t.name+" = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitInvokeFunctionExpr=function(e,r){var n=e.fn;return n instanceof Ol&&n.builtin===Al.Super?(r.currentClass.parent.visitExpression(this,r),r.print(e,".call(this"),e.args.length>0&&(r.print(e,", "),this.visitAllExpressions(e.args,r,",")),r.print(e,")")):t.prototype.visitInvokeFunctionExpr.call(this,e,r),null},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"function("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+Np.name+") {"),e.incIndent();var r=[Dp.set(Np.prop("stack")).toDeclStmt(null,[ep.Final])].concat(t.catchStmts);return this.visitAllStatements(r,e),e.decIndent(),e.println(t,"}"),null},e.prototype._visitParams=function(t,e){this.visitAllObjects(function(t){return e.print(null,t.name)},t,e,",")},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Il.ConcatArray:e="concat";break;case Il.SubscribeObservable:e="subscribe";break;case Il.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e}(Vp),gf=function(t){function e(){var e=t.apply(this,arguments)||this;return e._evalArgNames=[],e._evalArgValues=[],e}return Zn(e,t),e.prototype.getArgs=function(){for(var t={},e=0;e<this._evalArgNames.length;e++)t[this._evalArgNames[e]]=this._evalArgValues[e];return t},e.prototype.visitExternalExpr=function(t,e){var r=t.value.reference,n=this._evalArgValues.indexOf(r);if(-1===n){n=this._evalArgValues.length,this._evalArgValues.push(r);var o=E(t.value)||"val";this._evalArgNames.push("jit_"+o+n)}return e.print(t,this._evalArgNames[n]),null},e}(vf),_f=function(){function t(t,e,r,n,o,i,s,a){this._injector=t,this._metadataResolver=e,this._templateParser=r,this._styleCompiler=n,this._viewCompiler=o,this._ngModuleCompiler=i,this._compilerConfig=s,this._console=a,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._sharedStylesheetCount=0}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._compileModuleAndComponents(t,!0).syncResult},t.prototype.compileModuleAsync=function(t){return this._compileModuleAndComponents(t,!1).asyncResult},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._compileModuleAndAllComponents(t,!0).syncResult},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._compileModuleAndAllComponents(t,!1).asyncResult},t.prototype.getNgContentSelectors=function(t){this._console.warn("Compiler.getNgContentSelectors is deprecated. Use ComponentFactory.ngContentSelectors instead!");var r=this._compiledTemplateCache.get(t);if(!r)throw new Error("The component "+e.ɵstringify(t)+" is not yet compiled!");return r.compMeta.template.ngContentSelectors},t.prototype._compileModuleAndComponents=function(t,e){var r=this,n=this._loadModules(t,e),o=function(){return r._compileComponents(t,null),r._compileModule(t)};return e?new Mo(o()):new Mo(null,n.then(o))},t.prototype._compileModuleAndAllComponents=function(t,r){var n=this,o=this._loadModules(t,r),i=function(){var r=[];return n._compileComponents(t,r),new e.ModuleWithComponentFactories(n._compileModule(t),r)};return r?new Mo(i()):new Mo(null,o.then(i))},t.prototype._loadModules=function(t,e){var r=this,n=[],o=this._metadataResolver.getNgModuleMetadata(t);return o.transitiveModule.modules.forEach(function(t){n.push(r._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.reference,e))}),Promise.all(n)},t.prototype._compileModule=function(t){var r=this,n=this._compiledNgModuleCache.get(t);if(!n){var o=this._metadataResolver.getNgModuleMetadata(t),i=[this._metadataResolver.getProviderMetadata(new Jo(e.Compiler,{useFactory:function(){return new wf(r,o.type.reference)}}))],s=this._ngModuleCompiler.compile(o,i);n=this._compilerConfig.useJit?zn(V(o),s.statements,[s.ngModuleFactoryVar])[0]:Fn(s.statements,[s.ngModuleFactoryVar])[0],this._compiledNgModuleCache.set(o.type.reference,n)}return n},t.prototype._compileComponents=function(t,e){var r=this,n=this._metadataResolver.getNgModuleMetadata(t),o=new Map,i=new Set;n.transitiveModule.modules.forEach(function(t){var n=r._metadataResolver.getNgModuleMetadata(t.reference);n.declaredDirectives.forEach(function(t){o.set(t.reference,n);var s=r._metadataResolver.getDirectiveMetadata(t.reference);if(s.isComponent&&(i.add(r._createCompiledTemplate(s,n)),e)){var a=r._createCompiledHostTemplate(s.type.reference,n);i.add(a),e.push(s.componentFactory)}})}),n.transitiveModule.modules.forEach(function(t){var e=r._metadataResolver.getNgModuleMetadata(t.reference);e.declaredDirectives.forEach(function(t){var e=r._metadataResolver.getDirectiveMetadata(t.reference);e.isComponent&&e.entryComponents.forEach(function(t){var e=o.get(t.componentType);i.add(r._createCompiledHostTemplate(t.componentType,e))})}),e.entryComponents.forEach(function(t){var e=o.get(t.componentType);i.add(r._createCompiledHostTemplate(t.componentType,e))})}),i.forEach(function(t){return r._compileTemplate(t)})},t.prototype.clearCacheFor=function(t){this._compiledNgModuleCache["delete"](t),this._metadataResolver.clearCacheFor(t),this._compiledHostTemplateCache["delete"](t);var e=this._compiledTemplateCache.get(t);e&&this._compiledTemplateCache["delete"](t)},t.prototype.clearCache=function(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(),this._compiledNgModuleCache.clear()},t.prototype._createCompiledHostTemplate=function(t,r){if(!r)throw new Error("Component "+e.ɵstringify(t)+" is not part of any NgModule or the module has not been imported into your module.");var n=this._compiledHostTemplateCache.get(t);if(!n){var o=this._metadataResolver.getDirectiveMetadata(t);Gn(o);var i=o.componentFactory,s=this._metadataResolver.getHostComponentType(t),a=k(s,o,e.ɵgetComponentViewDefinitionFactory(i));n=new bf(!0,o.type,a,r,[o.type]),this._compiledHostTemplateCache.set(t,n)}return n},t.prototype._createCompiledTemplate=function(t,e){var r=this._compiledTemplateCache.get(t.type.reference);return r||(Gn(t),r=new bf(!1,t.type,t,e,e.transitiveModule.directives),this._compiledTemplateCache.set(t.type.reference,r)),r},t.prototype._compileTemplate=function(t){var e=this;if(!t.isCompiled){var r=t.compMeta,n=new Map,o=this._styleCompiler.compileComponent(r);o.externalStylesheets.forEach(function(t){n.set(t.meta.moduleUrl,t)}),this._resolveStylesCompileResult(o.componentStylesheet,n);var i,s,a=t.directives.map(function(t){return e._metadataResolver.getDirectiveSummary(t.reference)}),u=t.ngModule.transitiveModule.pipes.map(function(t){return e._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(r,r.template.template,a,u,t.ngModule.schemas,j(t.ngModule.type,t.compMeta,t.compMeta.template)),l=c.template,p=c.pipes,h=this._viewCompiler.compileComponent(r,l,yr(o.componentStylesheet.stylesVar),p),f=o.componentStylesheet.statements.concat(h.statements),d=r.isHost?[h.viewClassVar]:[h.viewClassVar,h.rendererTypeVar];this._compilerConfig.useJit?(y=zn(F(t.ngModule.type,t.compMeta),f,d),i=y[0],s=y[1]):(m=Fn(f,d),i=m[0],s=m[1]),t.compiled(i,s);var m,y}},t.prototype._resolveStylesCompileResult=function(t,e){var r=this;t.dependencies.forEach(function(t){var n=e.get(t.moduleUrl),o=r._resolveAndEvalStylesCompileResult(n,e);t.valuePlaceholder.reference=o})},t.prototype._resolveAndEvalStylesCompileResult=function(t,e){return this._resolveStylesCompileResult(t,e),this._compilerConfig.useJit?zn(L(t.meta,this._sharedStylesheetCount++),t.statements,[t.stylesVar])[0]:Fn(t.statements,[t.stylesVar])[0]},t}();_f.decorators=[{type:z}],_f.ctorParameters=function(){return[{type:e.Injector},{type:dl},{type:Wc},{type:Oh},{type:Bh},{type:Ep},{type:ti},{type:e.ɵConsole}]};var bf=function(){function t(t,e,r,n,o){this.isHost=t,this.compType=e,this.compMeta=r,this.ngModule=n,this.directives=o,this._viewClass=null,this.isCompiled=!1}return t.prototype.compiled=function(t,e){this._viewClass=t,this.compMeta.componentViewType.setDelegate(t);for(var r in e)this.compMeta.rendererType[r]=e[r];this.isCompiled=!0},t}(),wf=function(){function t(t,e){this._delegate=t,this._ngModule=e}return Object.defineProperty(t.prototype,"_injector",{get:function(){return this._delegate.injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._delegate.compileModuleSync(t)},t.prototype.compileModuleAsync=function(t){return this._delegate.compileModuleAsync(t)},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._delegate.compileModuleAndAllComponentsSync(t)},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._delegate.compileModuleAndAllComponentsAsync(t)},t.prototype.getNgContentSelectors=function(t){return this._delegate.getNgContentSelectors(t)},t.prototype.clearCache=function(){this._delegate.clearCache()},t.prototype.clearCacheFor=function(t){this._delegate.clearCacheFor(t)},t}(),Cf=function(){function t(t,e,r,n){void 0===n&&(n=null),this._htmlParser=t,this._implicitTags=e,this._implicitAttrs=r,this._locale=n,this._messages=[]}return t.prototype.updateFromTemplate=function(t,e,r){var n=this._htmlParser.parse(t,e,!0,r);if(n.errors.length)return n.errors;var o=Pt(n.rootNodes,r,this._implicitTags,this._implicitAttrs);return o.errors.length?o.errors:((i=this._messages).push.apply(i,o.messages),null);var i},t.prototype.getMessages=function(){return this._messages},t.prototype.write=function(t,e){var r={},n=new Ef;this._messages.forEach(function(e){var n=t.digest(e);r.hasOwnProperty(n)?(o=r[n].sources).push.apply(o,e.sources):r[n]=e;var o});var o=Object.keys(r).map(function(o){var i=t.createNameMapper(r[o]),s=r[o],a=i?n.convert(s.nodes,i):s.nodes,u=new pa(a,{},{},s.meaning,s.description,o);return u.sources=s.sources,e&&u.sources.forEach(function(t){return t.filePath=e(t.filePath)}),u});return t.write(o,this._locale)},t}(),Ef=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.convert=function(t,e){var r=this;return e?t.map(function(t){return t.visit(r,e)}):t},e.prototype.visitTagPlaceholder=function(t,e){var r=this,n=e.toPublicName(t.startName),o=t.closeName?e.toPublicName(t.closeName):t.closeName,i=t.children.map(function(t){return t.visit(r,e)});return new ma(t.tag,t.attrs,n,o,i,t.isVoid,t.sourceSpan)},e.prototype.visitPlaceholder=function(t,e){return new ya(t.value,e.toPublicName(t.name),t.sourceSpan)},e.prototype.visitIcuPlaceholder=function(t,e){return new va(t.value,e.toPublicName(t.name),t.sourceSpan)},e}(ga),Sf=function(){function t(t,e,r,n){this.host=t,this.staticSymbolResolver=e,this.messageBundle=r,this.metadataResolver=n}return t.prototype.extract=function(t){var e=this,r=An(this.staticSymbolResolver,t,this.host),n=Tn(r,this.host,this.metadataResolver),o=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(o.forEach(function(r){var n=[];r.directives.forEach(function(t){var r=e.metadataResolver.getDirectiveMetadata(t);r&&r.isComponent&&n.push(r)}),n.forEach(function(n){var o=n.template.template,i=Ms.fromArray(n.template.interpolation);t.push.apply(t,e.messageBundle.updateFromTemplate(o,r.srcUrl,i))})}),t.length)throw new Error(t.map(function(t){return t.toString()}).join("\n"));return e.messageBundle})},t.create=function(r,n){var o=new Bu(new Fu),i=He(),s=new yo,a=new pf(r,s),u=new lf(r,s,a),c=new of(a,u);tf.install(c);var l=new ti({defaultEncapsulation:e.ViewEncapsulation.Emulated,useJit:!1}),p=new ol({get:function(t){return r.loadResource(t)}},i,o,l),h=new Qp,f=new dl(l,new ll(c),new al(c),new pl(c),a,h,p,new e.ɵConsole,s,c),d=new Cf(o,[],{},n),m=new t(r,u,d,f);return{extractor:m,staticReflector:c}},t}(),xf={get:function(t){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+t+'"')}},Tf=new e.InjectionToken("HtmlParser"),Pf=[{provide:e.ɵReflector,useValue:e.ɵreflector},{provide:e.ɵReflectorReader,useExisting:e.ɵReflector},{provide:Jc,useValue:xf},hl,e.ɵConsole,Ns,Us,{provide:Tf,useClass:Fu},{provide:Bu,useFactory:Wn,deps:[Tf,[new e.Optional,new e.Inject(e.TRANSLATIONS)],[new e.Optional,new e.Inject(e.TRANSLATIONS_FORMAT)],[ti],[e.ɵConsole]]},{provide:Fu,useExisting:Bu},Wc,ol,dl,tl,Oh,Bh,Ep,{provide:ti,useValue:new ti},_f,{provide:e.Compiler,useExisting:_f},Qp,{provide:Ju,useExisting:Qp},el,al,pl,ll],Af=function(){function t(t){var r={useDebug:e.isDevMode(),useJit:!0,defaultEncapsulation:e.ViewEncapsulation.Emulated,missingTranslation:e.MissingTranslationStrategy.Warning,enableLegacyTemplate:!0};this._defaultOptions=[r].concat(t)}return t.prototype.createCompiler=function(t){void 0===t&&(t=[]);var r=Kn(this._defaultOptions.concat(t)),n=e.ReflectiveInjector.resolveAndCreate([Pf,{provide:ti,useFactory:function(){return new ti({useJit:r.useJit,defaultEncapsulation:r.defaultEncapsulation,missingTranslation:r.missingTranslation,enableLegacyTemplate:r.enableLegacyTemplate})},deps:[]},r.providers]);return n.get(e.Compiler)},t}();Af.decorators=[{type:z}],Af.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Inject,args:[e.COMPILER_OPTIONS]}]}]};var Of=e.createPlatformFactory(e.platformCore,"coreDynamic",[{provide:e.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:e.CompilerFactory,useClass:Af},{provide:e.PLATFORM_INITIALIZER,useValue:$n,multi:!0}]),Mf=function(){function t(){}return t.prototype.fileNameToModuleName=function(){},t.prototype.getImportAs=function(){},t.prototype.getTypeArity=function(){},t}();t.VERSION=Yn,t.TEMPLATE_TRANSFORMS=qc,t.CompilerConfig=ti,t.JitCompiler=_f,t.DirectiveResolver=al,t.PipeResolver=pl,t.NgModuleResolver=ll,t.DEFAULT_INTERPOLATION_CONFIG=Rs,t.InterpolationConfig=Ms,t.NgModuleCompiler=Ep,t.ViewCompiler=Bh,t.isSyntaxError=g,t.syntaxError=v,t.TextAst=Jn,t.BoundTextAst=to,t.AttrAst=eo,t.BoundElementPropertyAst=ro,t.BoundEventAst=no,t.ReferenceAst=oo,t.VariableAst=io,t.ElementAst=so,t.EmbeddedTemplateAst=ao,t.BoundDirectivePropertyAst=uo,t.DirectiveAst=co,t.ProviderAst=lo,t.ProviderAstType=po,t.NgContentAst=ho,t.PropertyBindingType=fo,t.templateVisitAll=r,t.CompileAnimationEntryMetadata=No,t.CompileAnimationStateMetadata=Do,t.CompileAnimationStateDeclarationMetadata=jo,t.CompileAnimationStateTransitionMetadata=Lo,t.CompileAnimationMetadata=Vo,t.CompileAnimationKeyframesSequenceMetadata=Fo,t.CompileAnimationStyleMetadata=Uo,t.CompileAnimationAnimateMetadata=Ho,t.CompileAnimationWithStepsMetadata=Bo,t.CompileAnimationSequenceMetadata=qo,t.CompileAnimationGroupMetadata=zo,t.identifierName=E,t.identifierModuleUrl=S,t.viewClassName=x,t.rendererTypeName=T,t.hostViewClassName=P,t.dirWrapperClassName=A,t.componentFactoryName=O,t.CompileSummaryKind=Wo,t.tokenName=M,t.tokenReference=R,t.CompileStylesheetMetadata=$o,t.CompileTemplateMetadata=Ko,t.CompileDirectiveMetadata=Qo,t.createHostComponentMeta=k,t.CompilePipeMetadata=Xo,t.CompileNgModuleMetadata=Zo,t.TransitiveCompileNgModuleMetadata=Yo,t.ProviderMeta=Jo,t.flatten=N,t.sourceUrl=D,t.templateSourceUrl=j,t.sharedStylesheetJitUrl=L,t.ngModuleJitUrl=V,t.templateJitUrl=F,t.createAotCompiler=Vn,t.AotCompiler=Jh,t.analyzeNgModules=xn,t.analyzeAndValidateNgModules=Tn,t.extractProgramSymbols=An,t.GeneratedFile=Xh,t.StaticReflector=of,t.StaticAndDynamicReflectionCapabilities=tf,t.StaticSymbol=mo,t.StaticSymbolCache=yo,t.ResolvedStaticSymbol=uf,t.StaticSymbolResolver=lf,t.unescapeIdentifier=Ln,t.AotSummaryResolver=pf,t.SummaryResolver=hl,t.i18nHtmlParserFactory=Wn,t.COMPILER_PROVIDERS=Pf,t.JitCompilerFactory=Af,t.platformCoreDynamic=Of,t.createUrlResolverWithoutPackagePrefix=Ue,t.createOfflineCompileUrlResolver=He,t.DEFAULT_PACKAGE_URL_PROVIDER=tl,t.UrlResolver=el,t.getUrlScheme=Be,t.ResourceLoader=Jc,t.ElementSchemaRegistry=Ju,t.Extractor=Sf,t.I18NHtmlParser=Bu,t.MessageBundle=Cf,t.Serializer=Ha,t.Xliff=au,t.Xliff2=bu,t.Xmb=Mu,t.Xtb=ju,t.DirectiveNormalizer=ol,t.ParserError=ei,t.ParseSpan=ri,t.AST=ni,t.Quote=oi,t.EmptyExpr=ii,t.ImplicitReceiver=si,t.Chain=ai,t.Conditional=ui,t.PropertyRead=ci,t.PropertyWrite=li,t.SafePropertyRead=pi,t.KeyedRead=hi,t.KeyedWrite=fi,t.BindingPipe=di,t.LiteralPrimitive=mi,t.LiteralArray=yi,t.LiteralMap=vi,t.Interpolation=gi,t.Binary=_i,t.PrefixNot=bi,t.MethodCall=wi,t.SafeMethodCall=Ci,t.FunctionCall=Ei,t.ASTWithSource=Si,t.TemplateBinding=xi,t.RecursiveAstVisitor=Ti,t.AstTransformer=Pi,t.TokenType=ks,t.Lexer=Ns,t.Token=Ds,t.EOF=js,t.isIdentifier=et,t.isQuote=it,t.SplitInterpolation=Vs,t.TemplateBindingParseResult=Fs,t.Parser=Us,t._ParseAST=Hs,t.ERROR_COLLECTOR_TOKEN=fl,t.CompileMetadataResolver=dl,t.componentModuleUrl=cr,t.Text=Ks,t.Expansion=Qs,t.ExpansionCase=Xs,t.Attribute=Zs,t.Element=Ys,t.Comment=Js,t.visitAll=lt,t.ParseTreeResult=ua,t.TreeError=aa,t.HtmlParser=Fu,t.HtmlTagDefinition=_o,t.getHtmlTagDefinition=c,t.TagContentType=vo,t.splitNsName=n,t.isNgContainer=o,t.isNgContent=i,t.isNgTemplate=s,t.getNsPrefix=a,t.mergeNsAndName=u,t.NAMED_ENTITIES=go,t.ImportResolver=Mf,t.debugOutputAstAsTypeScript=Nr,t.TypeScriptEmitter=Up,t.ParseLocation=qs,t.ParseSourceFile=zs,t.ParseSourceSpan=Gs,t.ParseErrorLevel=Ws,t.ParseError=$s,t.typeSourceSpan=ct,t.DomElementSchemaRegistry=Qp,t.CssSelector=Eo,t.SelectorMatcher=So,t.SelectorListContext=xo,t.SelectorContext=To,t.StylesCompileDependency=Th,t.StylesCompileResult=Ph,t.CompiledStylesheet=Ah,t.StyleCompiler=Oh,t.TemplateParseError=zc,t.TemplateParseResult=Gc,t.TemplateParser=Wc,t.splitClasses=Ne,t.createElementCssSelector=De,t.removeSummaryDuplicates=Le,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":8}],8:[function(e,r,n){(function(o){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("rxjs/Observable"),e("rxjs/observable/merge"),e("rxjs/operator/share"),e("rxjs/Subject")):"function"==typeof t&&t.amd?t(["exports","rxjs/Observable","rxjs/observable/merge","rxjs/operator/share","rxjs/Subject"],i):i((o.ng=o.ng||{},o.ng.core=o.ng.core||{}),o.Rx,o.Rx.Observable,o.Rx.Observable.prototype,o.Rx)}(this,function(t,e,r,n,i){"use strict";function s(){if(!oo){var t=no.Symbol;if(t&&t.iterator)oo=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),r=0;r<e.length;++r){var n=e[r];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(oo=n)}}return oo}function a(t){Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function u(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function c(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var r=e.indexOf("\n");return-1===r?e:e.substring(0,r)}function l(t){return"function"==typeof t&&t.hasOwnProperty("annotation")&&(t=t.annotation),t}function p(t,e){if(t===Object||t===String||t===Function||t===Number||t===Array)throw new Error("Can not use native "+c(t)+" as constructor");if("function"==typeof t)return t;if(Array.isArray(t)){var r=t,n=r.length-1,o=t[n];if("function"!=typeof o)throw new Error("Last position of Class method array must be Function in key "+e+" was '"+c(o)+"'");if(n!=o.length)throw new Error("Number of annotations ("+n+") does not match number of arguments ("+o.length+") in the function: "+c(o));for(var i=[],s=0,a=r.length-1;a>s;s++){var u=[];i.push(u);var p=r[s];if(Array.isArray(p))for(var h=0;h<p.length;h++)u.push(l(p[h]));else u.push("function"==typeof p?l(p):p)}return so.defineMetadata("parameters",i,o),o}throw new Error("Only Function or Array is supported in Class definition for key '"+e+"' is '"+c(t)+"'")}function h(t){var e=p(t.hasOwnProperty("constructor")?t.constructor:void 0,"constructor"),r=e.prototype;if(t.hasOwnProperty("extends")){if("function"!=typeof t["extends"])throw new Error("Class definition 'extends' property must be a constructor function was: "+c(t["extends"]));e.prototype=r=Object.create(t["extends"].prototype)}for(var n in t)"extends"!==n&&"prototype"!==n&&t.hasOwnProperty(n)&&(r[n]=p(t[n],n));this&&this.annotations instanceof Array&&so.defineMetadata("annotations",this.annotations,e);var o=e.name;return o&&"constructor"!==o||(e.overriddenName="class"+io++),e}function f(t,e,r,n){function o(t){if(!so||!so.getOwnMetadata)throw"reflect-metadata shim is required when using class decorators";if(this instanceof o)return i.call(this,t),this;var e=new o(t),r="function"==typeof this&&Array.isArray(this.annotations)?this.annotations:[];r.push(e);var s=function(t){var r=so.getOwnMetadata("annotations",t)||[];return r.push(e),so.defineMetadata("annotations",r,t),t};return s.annotations=r,s.Class=h,n&&n(s),s}var i=d([e]);return r&&(o.prototype=Object.create(r.prototype)),o.prototype.toString=function(){return"@"+t},o.annotationCls=o,o}function d(t){return function(){for(var e=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];t.forEach(function(t,n){var o=r[n];if(Array.isArray(t))e[t[0]]=void 0===o?t[1]:o;else for(var i in t)e[i]=o&&o.hasOwnProperty(i)?o[i]:t[i]})}}function m(t,e,r){function n(){function t(t,e,r){for(var n=so.getOwnMetadata("parameters",t)||[];n.length<=r;)n.push(null);return n[r]=n[r]||[],n[r].push(i),so.defineMetadata("parameters",n,t),t}for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this instanceof n)return o.apply(this,e),this;var i=new(n.bind.apply(n,[void 0].concat(e)));return t.annotation=i,t}var o=d(e);return r&&(n.prototype=Object.create(r.prototype)),n.prototype.toString=function(){return"@"+t},n.annotationCls=n,n}function y(t,e,r){function n(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof n)return o.apply(this,t),this;var r=new(n.bind.apply(n,[void 0].concat(t)));return function(t,e){var n=so.getOwnMetadata("propMetadata",t.constructor)||{};n[e]=n.hasOwnProperty(e)&&n[e]||[],n[e].unshift(r),so.defineMetadata("propMetadata",n,t.constructor)}}var o=d(e);return r&&(n.prototype=Object.create(r.prototype)),n.prototype.toString=function(){return"@"+t},n.annotationCls=n,n}function v(t){return null==t||t===mo.Default}function g(t){return t.__forward_ref__=g,t.toString=function(){return c(this())},t}function _(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===g?t():t}function b(t){return t[Bo]}function w(t){return t[qo]}function C(t){return t[zo]||E}function E(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];t.error.apply(t,e)}function S(t,e){var r=t+" caused by: "+(e instanceof Error?e.message:e),n=Error(r);return n[qo]=e,n}function x(t){for(var e=[],r=0;r<t.length;++r){if(e.indexOf(t[r])>-1)return e.push(t[r]),e;e.push(t[r])}return e}function T(t){if(t.length>1){var e=x(t.slice().reverse()),r=e.map(function(t){return c(t.token)});return" ("+r.join(" -> ")+")"}return""}function P(t,e,r,n){var o=n?S("",n):Error();return o.addKey=A,o.keys=[e],o.injectors=[t],o.constructResolvingMessage=r,o.message=o.constructResolvingMessage(),o[qo]=n,o}function A(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage()}function O(t,e){return P(t,e,function(){var t=c(this.keys[0].token);return"No provider for "+t+"!"+T(this.keys)})}function M(t,e){return P(t,e,function(){return"Cannot instantiate cyclic dependency!"+T(this.keys)})}function R(t,e,r,n){return P(t,n,function(){var t=c(this.keys[0].token);return w(this).message+": Error during instantiation of "+t+"!"+T(this.keys)+"."},e)}function k(t){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+t)}function I(t,e){for(var r=[],n=0,o=e.length;o>n;n++){var i=e[n];r.push(i&&0!=i.length?i.map(c).join(" "):"?")}return Error("Cannot resolve all parameters for '"+c(t)+"'("+r.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+c(t)+"' is decorated with Injectable.")}function N(t){return Error("Index "+t+" is out-of-bounds.")}function D(t,e){return Error("Cannot mix multi providers and regular providers, got: "+t+" "+e)}function j(t){return"function"==typeof t}function L(t){return t?t.map(function(t){var e=t.type,r=e.annotationCls,n=t.args?t.args:[];return new(r.bind.apply(r,[void 0].concat(n)))}):[]}function V(t){var e=Object.getPrototypeOf(t.prototype),r=e?e.constructor:null;return r||Object}function F(t){var e,r;if(t.useClass){var n=_(t.useClass);e=ti.factory(n),r=G(n)}else t.useExisting?(e=function(t){return t},r=[ei.fromKey(Wo.get(t.useExisting))]):t.useFactory?(e=t.useFactory,r=z(t.useFactory,t.deps)):(e=function(){return t.useValue},r=ri);return new oi(e,r)}function U(t){return new ni(Wo.get(t.provide),[F(t)],t.multi||!1)}function H(t){var e=q(t,[]),r=e.map(U),n=B(r,new Map);return Array.from(n.values())}function B(t,e){for(var r=0;r<t.length;r++){var n=t[r],o=e.get(n.key.id);if(o){if(n.multiProvider!==o.multiProvider)throw D(o,n);if(n.multiProvider)for(var i=0;i<n.resolvedFactories.length;i++)o.resolvedFactories.push(n.resolvedFactories[i]);else e.set(n.key.id,n)}else{var s=void 0;s=n.multiProvider?new ni(n.key,n.resolvedFactories.slice(),n.multiProvider):n,e.set(n.key.id,s)}}return e}function q(t,e){return t.forEach(function(t){if(t instanceof Qo)e.push({provide:t,useClass:t});else if(t&&"object"==typeof t&&void 0!==t.provide)e.push(t);else{if(!(t instanceof Array))throw k(t);q(t,e)}}),e}function z(t,e){if(e){var r=e.map(function(t){return[t]});return e.map(function(e){return W(t,e,r)})}return G(t)}function G(t){var e=ti.parameters(t);if(!e)return[];if(e.some(function(t){return null==t}))throw I(t,e);return e.map(function(r){return W(t,r,e)})}function W(t,e,r){var n=null,o=!1;if(!Array.isArray(e))return e instanceof Ro?$(e.token,o,null):$(e,o,null);for(var i=null,s=0;s<e.length;++s){var a=e[s];a instanceof Qo?n=a:a instanceof Ro?n=a.token:a instanceof ko?o=!0:a instanceof No||a instanceof Do?i=a:a instanceof Jn&&(n=a)}if(n=_(n),null!=n)return $(n,o,i);throw I(t,r)}function $(t,e,r){return new ei(Wo.get(t),e,r)}function K(t,e){for(var r=new Array(t._providers.length),n=0;n<t._providers.length;++n)r[n]=e(t.getProviderAtIndex(n));return r}function Q(t){return!!t&&"function"==typeof t.then}function X(t){return!!t&&"function"==typeof t.subscribe}function Z(){return""+Y()+Y()+Y()}function Y(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function J(){throw new Error("Runtime compiler is not loaded")}function tt(t){var e=Error("No component factory found for "+c(t)+". Did you add it to @NgModule.entryComponents?");return e[Si]=t,e}function et(){var t=no.wtf;return t&&(Pi=t.trace)?(Ai=Pi.events,!0):!1}function rt(t,e){return void 0===e&&(e=null),Ai.createScope(t,e)}function nt(t,e){return Pi.leaveScope(t,e),e}function ot(t,e){return Pi.beginTimeRange(t,e)}function it(t){Pi.endTimeRange(t)}function st(){return null}function at(t){Wi=t}function ut(){if(Ki)throw new Error("Cannot enable prod mode after platform setup.");$i=!1}function ct(){return Ki=!0,$i}function lt(t){if(zi&&!zi.destroyed&&!zi.injector.get(Qi,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");zi=t.get(Zi);var e=t.get(fi,null);return e&&e.forEach(function(t){return t()}),zi}function pt(t,e,r){void 0===r&&(r=[]);var n=new Jn("Platform: "+e);return function(e){void 0===e&&(e=[]);var o=dt();return(!o||o.injector.get(Qi,!1))&&(t?t(r.concat(e).concat({provide:n,useValue:!0})):lt(si.resolveAndCreate(r.concat(e).concat({provide:n,useValue:!0})))),ht(n)}}function ht(t){var e=dt();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}function ft(){zi&&!zi.destroyed&&zi.destroy()}function dt(){return zi&&!zi.destroyed?zi:null}function mt(t,e){try{var r=e();return Q(r)?r["catch"](function(e){throw t.handleError(e),e}):r}catch(n){throw t.handleError(n),n}}function yt(t,e){var r=t.indexOf(e);r>-1&&t.splice(r,1)}function vt(t,e){var r=ls.get(t);if(r)throw new Error("Duplicate module registered for "+t+" - "+r.moduleType.name+" vs "+e.moduleType.name);ls.set(t,e)}function gt(t){var e=ls.get(t);if(!e)throw new Error("No module with ID "+t+" loaded");return e}function _t(t){return t.reduce(function(t,e){var r=Array.isArray(e)?_t(e):e;return t.concat(r)},[])}function bt(t,e,r){if(!t)throw new Error("Cannot find '"+r+"' in '"+e+"'");return t}function wt(t){return t.map(function(t){return t.nativeElement})}function Ct(t,e,r){t.childNodes.forEach(function(t){t instanceof Ss&&(e(t)&&r.push(t),Ct(t,e,r))})}function Et(t,e,r){t instanceof Ss&&t.childNodes.forEach(function(t){e(t)&&r.push(t),t instanceof Ss&&Et(t,e,r)})}function St(t){return xs.get(t)||null}function xt(t){xs.set(t.nativeNode,t)}function Tt(t){xs["delete"](t.nativeNode)}function Pt(t,e){var r=At(t),n=At(e);if(r&&n)return Ot(t,e,Pt);var o=t&&("object"==typeof t||"function"==typeof t),i=e&&("object"==typeof e||"function"==typeof e);return!r&&o&&!n&&i?!0:u(t,e)}function At(t){return Rt(t)?Array.isArray(t)||!(t instanceof Map)&&s()in t:!1}function Ot(t,e,r){for(var n=t[s()](),o=e[s()]();;){var i=n.next(),a=o.next();if(i.done&&a.done)return!0;if(i.done||a.done)return!1;if(!r(i.value,a.value))return!1}}function Mt(t,e){if(Array.isArray(t))for(var r=0;r<t.length;r++)e(t[r]);else for(var n=t[s()](),o=void 0;!(o=n.next()).done;)e(o.value)}function Rt(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function kt(t,e,r){var n=t.previousIndex;if(null===n)return n;var o=0;return r&&n<r.length&&(o=r[n]),n+e+o}function It(t){return t.name||typeof t}function Nt(){return ti}function Dt(t,e){return t.nodes[e]}function jt(t,e){return t.nodes[e]}function Lt(t,e){return t.nodes[e]}function Vt(t,e){return t.nodes[e]}function Ft(t,e){return t.nodes[e]}function Ut(t,e,r,n){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+r+"'.";return n&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),Bt(o,t)}function Ht(t,e){return t instanceof Error||(t=new Error(t.toString())),qt(t,e),t}function Bt(t,e){
-var r=new Error(t);return qt(r,e),r}function qt(t,e){t[Bo]=e,t[zo]=e.logError.bind(e)}function zt(t){return!!b(t)}function Gt(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}function Wt(t){var e=ea.get(t);return e||(e=c(t)+"_"+ea.size,ea.set(t,e)),e}function $t(t,e,r,n){if(n instanceof Ts){n=n.wrapped;var o=t.def.nodes[e].bindingIndex+r,i=t.oldValues[o];i instanceof Ts&&(i=i.wrapped),t.oldValues[o]=new Ts(i)}return n}function Kt(t){return{id:ra,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}function Qt(t){if(t&&t.id===ra){var e=null!=t.encapsulation&&t.encapsulation!==Po.None||t.styles.length||Object.keys(t.data).length;t.id=e?"c"+oa++:na}return t&&t.id===na&&(t=null),t||null}function Xt(t,e,r,n){var o=t.oldValues;return 1&t.state||!u(o[e.bindingIndex+r],n)?!0:!1}function Zt(t,e,r,n){return Xt(t,e,r,n)?(t.oldValues[e.bindingIndex+r]=n,!0):!1}function Yt(t,e,r,n){var o=t.oldValues[e.bindingIndex+r];if(1&t.state||!Pt(o,n))throw Ut(Js.createDebugContext(t,e.index),o,n,0!==(1&t.state))}function Jt(t){for(var e=t;e;)2&e.def.flags&&(e.state|=2),e=e.viewContainerParent||e.parent}function te(t,e,r,n){var o=t.def.nodes[e],i=16777216&o.flags?jt(t,e).componentView:t;return Jt(i),Js.handleEvent(t,e,r,n)}function ee(t){if(t.parent){var e=t.parent;return jt(e,t.parentNodeDef.index)}return null}function re(t){var e=t.parent;return e?t.parentNodeDef.parent:null}function ne(t,e){switch(100673535&e.flags){case 1:return jt(t,e.index).renderElement;case 2:return Dt(t,e.index).renderText}}function oe(t,e){return t?t+":"+e:e}function ie(t){return!!t.parent&&!!(16384&t.parentNodeDef.flags)}function se(t){return!(!t.parent||16384&t.parentNodeDef.flags)}function ae(t){return 1<<t%32}function ue(t){var e={},r=0,n={};return t&&t.forEach(function(t){var o=t[0],i=t[1];"number"==typeof o?(e[o]=i,r|=ae(o)):n[o]=i}),{matchedQueries:e,references:n,matchedQueryIds:r}}function ce(t,e,r){var n=r.renderParent;return n?0===(1&n.flags)||0===(16777216&n.flags)||n.element.componentRendererType&&n.element.componentRendererType.encapsulation===Po.Native?jt(t,r.renderParent.index).renderElement:void 0:e}function le(t){var e=ia.get(t);return e||(e=t(function(){return ta}),e.factory=t,ia.set(t,e)),e}function pe(t){var e=[];return he(t,0,void 0,void 0,e),e}function he(t,e,r,n,o){3===e&&(r=t.renderer.parentNode(ne(t,t.def.lastRenderRootNode))),fe(t,e,0,t.def.nodes.length-1,r,n,o)}function fe(t,e,r,n,o,i,s){for(var a=r;n>=a;a++){var u=t.def.nodes[a];7&u.flags&&me(t,u,e,o,i,s),a+=u.childCount}}function de(t,e,r,n,o,i){for(var s=t;s&&!ie(s);)s=s.parent;for(var a=s.parent,u=re(s),c=u.index+1,l=u.index+u.childCount,p=c;l>=p;p++){var h=a.def.nodes[p];h.ngContentIndex===e&&me(a,h,r,n,o,i),p+=h.childCount}if(!a.parent){var f=t.root.projectableNodes[e];if(f)for(var p=0;p<f.length;p++)ye(t,f[p],r,n,o,i)}}function me(t,e,r,n,o,i){if(4&e.flags)de(t,e.ngContent.index,r,n,o,i);else{var s=ne(t,e);if(3===r&&16777216&e.flags&&48&e.bindingFlags){if(16&e.bindingFlags&&ye(t,s,r,n,o,i),32&e.bindingFlags){var a=jt(t,e.index).componentView;ye(a,s,r,n,o,i)}}else ye(t,s,r,n,o,i);if(8388608&e.flags)for(var u=jt(t,e.index).viewContainer._embeddedViews,c=0;c<u.length;c++)he(u[c],r,n,o,i);1&e.flags&&!e.element.name&&fe(t,r,e.index+1,e.index+e.childCount,n,o,i)}}function ye(t,e,r,n,o,i){var s=t.renderer;switch(r){case 1:s.appendChild(n,e);break;case 2:s.insertBefore(n,e,o);break;case 3:s.removeChild(n,e);break;case 0:i.push(e)}}function ve(t){if(":"===t[0]){var e=t.match(sa);return[e[1],e[2]]}return["",t]}function ge(t){for(var e=0,r=0;r<t.length;r++)e|=t[r].flags;return e}function _e(t,e){for(var r="",n=0;2*t>n;n+=2)r=r+e[n]+we(e[n+1]);return r+e[2*t]}function be(t,e,r,n,o,i,s,a,u,c,l,p,h,f,d,m,y,v,g,_){switch(t){case 1:return e+we(r)+n;case 2:return e+we(r)+n+we(o)+i;case 3:return e+we(r)+n+we(o)+i+we(s)+a;case 4:return e+we(r)+n+we(o)+i+we(s)+a+we(u)+c;case 5:return e+we(r)+n+we(o)+i+we(s)+a+we(u)+c+we(l)+p;case 6:return e+we(r)+n+we(o)+i+we(s)+a+we(u)+c+we(l)+p+we(h)+f;case 7:return e+we(r)+n+we(o)+i+we(s)+a+we(u)+c+we(l)+p+we(h)+f+we(d)+m;case 8:return e+we(r)+n+we(o)+i+we(s)+a+we(u)+c+we(l)+p+we(h)+f+we(d)+m+we(y)+v;case 9:return e+we(r)+n+we(o)+i+we(s)+a+we(u)+c+we(l)+p+we(h)+f+we(d)+m+we(y)+v+we(g)+_;default:throw new Error("Does not support more than 9 expressions")}}function we(t){return null!=t?t.toString():""}function Ce(t,e,r,n,o,i){t|=1;var s=ue(e),a=s.matchedQueries,u=s.references,c=s.matchedQueryIds,l=i?le(i):null;return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a,matchedQueryIds:c,references:u,ngContentIndex:r,childCount:n,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:l,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:o||ta},provider:null,text:null,query:null,ngContent:null}}function Ee(t,e,r,n,o,i,s,a,u,c,l){void 0===i&&(i=[]),u||(u=ta);var p=ue(e),h=p.matchedQueries,f=p.references,d=p.matchedQueryIds,m=null,y=null;o&&(I=ve(o),m=I[0],y=I[1]),s=s||[];for(var v=new Array(s.length),g=0;g<s.length;g++){var _=s[g],b=_[0],w=_[1],C=_[2],E=ve(w),S=E[0],x=E[1],T=void 0,P=void 0;switch(15&b){case 4:P=C;break;case 1:case 8:T=C}v[g]={flags:b,ns:S,name:x,nonMinifiedName:x,securityContext:T,suffix:P}}a=a||[];for(var A=new Array(a.length),g=0;g<a.length;g++){var O=a[g],M=O[0],R=O[1];A[g]={type:0,target:M,eventName:R,propName:null}}i=i||[];var k=i.map(function(t){var e=t[0],r=t[1],n=ve(e),o=n[0],i=n[1];return[o,i,r]});return l=Qt(l),c&&(t|=16777216),t|=1,{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:h,matchedQueryIds:d,references:f,ngContentIndex:r,childCount:n,bindings:v,bindingFlags:ge(v),outputs:A,element:{ns:m,name:y,attrs:k,template:null,componentProvider:null,componentView:c||null,componentRendererType:l,publicProviders:null,allProviders:null,handleEvent:u||ta},provider:null,text:null,query:null,ngContent:null};var I}function Se(t,e,r){var n,o=r.element,i=t.root.selectorOrNode,s=t.renderer;if(t.parent||!i){n=o.name?s.createElement(o.name,o.ns):s.createComment("");var a=ce(t,e,r);a&&s.appendChild(a,n)}else n=s.selectRootElement(i);if(o.attrs)for(var u=0;u<o.attrs.length;u++){var c=o.attrs[u],l=c[0],p=c[1],h=c[2];s.setAttribute(n,p,h,l)}return n}function xe(t,e,r,n){for(var o=0;o<r.outputs.length;o++){var i=r.outputs[o],s=Te(t,r.index,oe(i.target,i.eventName)),a=i.target,u=t;"component"===i.target&&(a=null,u=e);var c=u.renderer.listen(a||n,i.eventName,s);t.disposables[r.outputIndex+o]=c}}function Te(t,e,r){return function(n){return te(t,e,r,n)}}function Pe(t,e,r,n,o,i,s,a,u,c,l,p){var h=e.bindings.length,f=!1;return h>0&&Oe(t,e,0,r)&&(f=!0),h>1&&Oe(t,e,1,n)&&(f=!0),h>2&&Oe(t,e,2,o)&&(f=!0),h>3&&Oe(t,e,3,i)&&(f=!0),h>4&&Oe(t,e,4,s)&&(f=!0),h>5&&Oe(t,e,5,a)&&(f=!0),h>6&&Oe(t,e,6,u)&&(f=!0),h>7&&Oe(t,e,7,c)&&(f=!0),h>8&&Oe(t,e,8,l)&&(f=!0),h>9&&Oe(t,e,9,p)&&(f=!0),f}function Ae(t,e,r){for(var n=!1,o=0;o<r.length;o++)Oe(t,e,o,r[o])&&(n=!0);return n}function Oe(t,e,r,n){if(!Zt(t,e,r,n))return!1;var o=e.bindings[r],i=jt(t,e.index),s=i.renderElement,a=o.name;switch(15&o.flags){case 1:Me(t,o,s,o.ns,a,n);break;case 2:Re(t,s,a,n);break;case 4:ke(t,o,s,a,n);break;case 8:var u=16777216&e.flags&&32&o.flags?i.componentView:t;Ie(u,o,s,a,n)}return!0}function Me(t,e,r,n,o,i){var s=e.securityContext,a=s?t.root.sanitizer.sanitize(s,i):i;a=null!=a?a.toString():null;var u=t.renderer;null!=i?u.setAttribute(r,o,a,n):u.removeAttribute(r,o,n)}function Re(t,e,r,n){var o=t.renderer;n?o.addClass(e,r):o.removeClass(e,r)}function ke(t,e,r,n,o){var i=t.root.sanitizer.sanitize(Xs.STYLE,o);if(null!=i){i=i.toString();var s=e.suffix;null!=s&&(i+=s)}else i=null;var a=t.renderer;null!=i?a.setStyle(r,n,i):a.removeStyle(r,n)}function Ie(t,e,r,n,o){var i=e.securityContext,s=i?t.root.sanitizer.sanitize(i,o):o;t.renderer.setProperty(r,n,s)}function Ne(t,e){return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:4,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:e}}}function De(t,e,r){var n=ce(t,e,r);if(n){var o=r.ngContent.index;de(t,o,1,n,null,void 0)}}function je(t,e,r,n){var o=e.viewContainer._embeddedViews;(null===r||void 0===r)&&(r=o.length),n.viewContainerParent=t,He(o,r,n);var i=ee(n);if(i&&i!==e){var s=i.template._projectedViews;s||(s=i.template._projectedViews=[]),s.push(n)}Js.dirtyParentQueries(n);var a=r>0?o[r-1]:null;Fe(e,a,n)}function Le(t,e){var r=t.viewContainer._embeddedViews;if((null==e||e>=r.length)&&(e=r.length-1),0>e)return null;var n=r[e];n.viewContainerParent=null,Be(r,e);var o=ee(n);if(o&&o!==t){var i=o.template._projectedViews;Be(i,i.indexOf(n))}return Js.dirtyParentQueries(n),Ue(n),n}function Ve(t,e,r){var n=t.viewContainer._embeddedViews,o=n[e];Be(n,e),null==r&&(r=n.length),He(n,r,o),Js.dirtyParentQueries(o),Ue(o);var i=r>0?n[r-1]:null;return Fe(t,i,o),o}function Fe(t,e,r){var n=e?ne(e,e.def.lastRenderRootNode):t.renderElement,o=r.renderer.parentNode(n),i=r.renderer.nextSibling(n);he(r,2,o,i,void 0)}function Ue(t){he(t,3,null,null,void 0)}function He(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function Be(t,e){e>=t.length-1?t.pop():t.splice(e,1)}function qe(t,e,r,n,o,i){return new la(t,e,r,n,o,i)}function ze(t){return t.viewDefFactory}function Ge(t,e,r){return new ha(t,e,r)}function We(t){return new fa(t)}function $e(t,e){return new da(t,e)}function Ke(t,e){return new ma(t,e)}function Qe(t,e){var r=t.def.nodes[e];if(1&r.flags){var n=jt(t,r.index);return r.element.template?n.template:n.renderElement}if(2&r.flags)return Dt(t,r.index).renderText;if(10120&r.flags)return Lt(t,r.index).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function Xe(t){return new ya(t.renderer)}function Ze(t,e,r,n,o,i,s){var a=[];if(i)for(var u in i){var c=i[u],l=c[0],p=c[1];a[l]={flags:8,name:u,nonMinifiedName:p,ns:null,securityContext:null,suffix:null}}var h=[];if(s)for(var f in s)h.push({type:1,propName:f,target:null,eventName:s[f]});return t|=8192,tr(t,e,r,n,n,o,a,h)}function Ye(t,e,r){return t|=8,tr(t,null,0,e,e,r)}function Je(t,e,r,n,o){return tr(t,e,0,r,n,o)}function tr(t,e,r,n,o,i,s,a){var u=ue(e),c=u.matchedQueries,l=u.references,p=u.matchedQueryIds;a||(a=[]),s||(s=[]);var h=i.map(function(t){var e,r;return Array.isArray(t)?(r=t[0],e=t[1]):(r=0,e=t),{flags:r,token:e,tokenKey:Wt(e)}});return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:p,references:l,ngContentIndex:-1,childCount:r,bindings:s,bindingFlags:ge(s),outputs:a,element:null,provider:{token:n,tokenKey:Wt(n),value:o,deps:h},text:null,query:null,ngContent:null}}function er(t,e){return 2048&e.flags?Sa:ar(t,e)}function rr(t,e){for(var r=t;r.parent&&!ie(r);)r=r.parent;var n=!0;return ur(r.parent,re(r),n,e.provider.value,e.provider.deps)}function nr(t,e){var r=(16384&e.flags)>0,n=ur(t,e.parent,r,e.provider.value,e.provider.deps);if(e.outputs.length)for(var o=0;o<e.outputs.length;o++){var i=e.outputs[o],s=n[i.propName].subscribe(or(t,e.parent.index,i.eventName));t.disposables[e.outputIndex+o]=s.unsubscribe.bind(s)}return n}function or(t,e,r){return function(n){return te(t,e,r,n)}}function ir(t,e,r,n,o,i,s,a,u,c,l,p){var h=Lt(t,e.index),f=h.instance,d=!1,m=void 0,y=e.bindings.length;return y>0&&Xt(t,e,0,r)&&(d=!0,m=hr(t,h,e,0,r,m)),y>1&&Xt(t,e,1,n)&&(d=!0,m=hr(t,h,e,1,n,m)),y>2&&Xt(t,e,2,o)&&(d=!0,m=hr(t,h,e,2,o,m)),y>3&&Xt(t,e,3,i)&&(d=!0,m=hr(t,h,e,3,i,m)),y>4&&Xt(t,e,4,s)&&(d=!0,m=hr(t,h,e,4,s,m)),y>5&&Xt(t,e,5,a)&&(d=!0,m=hr(t,h,e,5,a,m)),y>6&&Xt(t,e,6,u)&&(d=!0,m=hr(t,h,e,6,u,m)),y>7&&Xt(t,e,7,c)&&(d=!0,m=hr(t,h,e,7,c,m)),y>8&&Xt(t,e,8,l)&&(d=!0,m=hr(t,h,e,8,l,m)),y>9&&Xt(t,e,9,p)&&(d=!0,m=hr(t,h,e,9,p,m)),m&&f.ngOnChanges(m),1&t.state&&32768&e.flags&&f.ngOnInit(),131072&e.flags&&f.ngDoCheck(),d}function sr(t,e,r){for(var n=Lt(t,e.index),o=n.instance,i=!1,s=void 0,a=0;a<r.length;a++)Xt(t,e,a,r[a])&&(i=!0,s=hr(t,n,e,a,r[a],s));return s&&o.ngOnChanges(s),1&t.state&&32768&e.flags&&o.ngOnInit(),131072&e.flags&&o.ngDoCheck(),i}function ar(t,e){var r,n=(4096&e.flags)>0,o=e.provider;switch(100673535&e.flags){case 256:r=ur(t,e.parent,n,o.value,o.deps);break;case 512:r=cr(t,e.parent,n,o.value,o.deps);break;case 1024:r=lr(t,e.parent,n,o.deps[0]);break;case 128:r=o.value}return r}function ur(t,e,r,n,o){var i,s=o.length;switch(s){case 0:i=new n;break;case 1:i=new n(lr(t,e,r,o[0]));break;case 2:i=new n(lr(t,e,r,o[0]),lr(t,e,r,o[1]));break;case 3:i=new n(lr(t,e,r,o[0]),lr(t,e,r,o[1]),lr(t,e,r,o[2]));break;default:for(var a=new Array(s),u=0;s>u;u++)a[u]=lr(t,e,r,o[u]);i=new(n.bind.apply(n,[void 0].concat(a)))}return i}function cr(t,e,r,n,o){var i,s=o.length;switch(s){case 0:i=n();break;case 1:i=n(lr(t,e,r,o[0]));break;case 2:i=n(lr(t,e,r,o[0]),lr(t,e,r,o[1]));break;case 3:i=n(lr(t,e,r,o[0]),lr(t,e,r,o[1]),lr(t,e,r,o[2]));break;default:for(var a=Array(s),u=0;s>u;u++)a[u]=lr(t,e,r,o[u]);i=n.apply(void 0,a)}return i}function lr(t,e,r,n,o){if(void 0===o&&(o=Uo.THROW_IF_NOT_FOUND),8&n.flags)return n.token;var i=t;2&n.flags&&(o=null);var s=n.tokenKey;for(e&&1&n.flags&&(r=!1,e=e.parent);t;){if(e)switch(s){case va:var a=pr(t,e,r);return Xe(a);case ga:var a=pr(t,e,r);return a.renderer;case _a:return new us(jt(t,e.index).renderElement);case ba:return jt(t,e.index).viewContainer;case wa:if(e.element.template)return jt(t,e.index).template;break;case Ca:var u=pr(t,e,r);return We(u);case Ea:return Ke(t,e);default:var c=(r?e.element.allProviders:e.element.publicProviders)[s];if(c){var l=Lt(t,c.index);return l.instance===Sa&&(l.instance=ar(t,c)),l.instance}}r=ie(t),e=re(t),t=t.parent}var p=i.root.injector.get(n.token,xa);return p!==xa||o===xa?p:i.root.ngModule.injector.get(n.token,o)}function pr(t,e,r){var n;if(r)n=jt(t,e.index).componentView;else for(n=t;n.parent&&!ie(n);)n=n.parent;return n}function hr(t,e,r,n,o,i){if(16384&r.flags){var s=jt(t,r.parent.index).componentView;2&s.def.flags&&(s.state|=2)}var a=r.bindings[n],u=a.name;if(e.instance[u]=o,262144&r.flags){i=i||{};var c=t.oldValues[r.bindingIndex+n];c instanceof Ts&&(c=c.wrapped);var l=r.bindings[n];i[l.nonMinifiedName]=new As(c,o,0!==(1&t.state))}return t.oldValues[r.bindingIndex+n]=o,i}function fr(t,e){if(t.def.nodeFlags&e)for(var r=t.def.nodes,n=0;n<r.length;n++){var o=r[n],i=o.parent;for(!i&&o.flags&e&&mr(t,n,o.flags&e),0===(o.childFlags&e)&&(n+=o.childCount);i&&1&i.flags&&n===i.index+i.childCount;)i.directChildFlags&e&&dr(t,i,e),i=i.parent}}function dr(t,e,r){for(var n=e.index+1;n<=e.index+e.childCount;n++){var o=t.def.nodes[n];o.flags&r&&mr(t,n,o.flags&r),n+=o.childCount}}function mr(t,e,r){var n=Lt(t,e).instance;n!==Sa&&(Js.setCurrentNode(t,e),524288&r&&n.ngAfterContentInit(),1048576&r&&n.ngAfterContentChecked(),2097152&r&&n.ngAfterViewInit(),4194304&r&&n.ngAfterViewChecked(),65536&r&&n.ngOnDestroy())}function yr(t){return _r(64,new Array(t+1))}function vr(t){return _r(16,new Array(t))}function gr(t){return _r(32,t)}function _r(t,e){for(var r=new Array(e.length),n=0;n<e.length;n++){var o=e[n];r[n]={flags:8,name:o,ns:null,nonMinifiedName:o,securityContext:null,suffix:null}}return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:ge(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function br(){return{value:void 0}}function wr(t,e,r,n,o,i,s,a,u,c,l,p){var h=e.bindings,f=!1,d=h.length;if(d>0&&Zt(t,e,0,r)&&(f=!0),d>1&&Zt(t,e,1,n)&&(f=!0),d>2&&Zt(t,e,2,o)&&(f=!0),d>3&&Zt(t,e,3,i)&&(f=!0),d>4&&Zt(t,e,4,s)&&(f=!0),d>5&&Zt(t,e,5,a)&&(f=!0),d>6&&Zt(t,e,6,u)&&(f=!0),d>7&&Zt(t,e,7,c)&&(f=!0),d>8&&Zt(t,e,8,l)&&(f=!0),d>9&&Zt(t,e,9,p)&&(f=!0),f){var m=Vt(t,e.index),y=void 0;switch(100673535&e.flags){case 16:y=new Array(h.length),d>0&&(y[0]=r),d>1&&(y[1]=n),d>2&&(y[2]=o),d>3&&(y[3]=i),d>4&&(y[4]=s),d>5&&(y[5]=a),d>6&&(y[6]=u),d>7&&(y[7]=c),d>8&&(y[8]=l),d>9&&(y[9]=p);break;case 32:y={},d>0&&(y[h[0].name]=r),d>1&&(y[h[1].name]=n),d>2&&(y[h[2].name]=o),d>3&&(y[h[3].name]=i),d>4&&(y[h[4].name]=s),d>5&&(y[h[5].name]=a),d>6&&(y[h[6].name]=u),d>7&&(y[h[7].name]=c),d>8&&(y[h[8].name]=l),d>9&&(y[h[9].name]=p);break;case 64:var v=r;switch(d){case 1:y=v.transform(r);break;case 2:y=v.transform(n);break;case 3:y=v.transform(n,o);break;case 4:y=v.transform(n,o,i);break;case 5:y=v.transform(n,o,i,s);break;case 6:y=v.transform(n,o,i,s,a);break;case 7:y=v.transform(n,o,i,s,a,u);break;case 8:y=v.transform(n,o,i,s,a,u,c);break;case 9:y=v.transform(n,o,i,s,a,u,c,l);break;case 10:y=v.transform(n,o,i,s,a,u,c,l,p)}}m.value=y}return f}function Cr(t,e,r){for(var n=e.bindings,o=!1,i=0;i<r.length;i++)Zt(t,e,i,r[i])&&(o=!0);if(o){var s=Vt(t,e.index),a=void 0;switch(100673535&e.flags){case 16:a=r;break;case 32:a={};for(var i=0;i<r.length;i++)a[n[i].name]=r[i];break;case 64:var u=r[0],c=r.slice(1);a=u.transform.apply(u,c)}s.value=a}return o}function Er(t,e,r){var n=[];for(var o in r){var i=r[o];n.push({propName:o,bindingType:i})}return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:e,filterId:ae(e),bindings:n},ngContent:null}}function Sr(){return new ps}function xr(t){for(var e=t.def.nodeMatchedQueries;t.parent&&se(t);){var r=t.parentNodeDef;t=t.parent;for(var n=r.index+r.childCount,o=0;n>=o;o++){var i=t.def.nodes[o];33554432&i.flags&&268435456&i.flags&&(i.query.filterId&e)===i.query.filterId&&Ft(t,o).setDirty(),!(1&i.flags&&o+i.childCount<r.index)&&33554432&i.childFlags&&268435456&i.childFlags||(o+=i.childCount)}}if(67108864&t.def.nodeFlags)for(var o=0;o<t.def.nodes.length;o++){var i=t.def.nodes[o];67108864&i.flags&&268435456&i.flags&&Ft(t,o).setDirty(),o+=i.childCount}}function Tr(t,e){var r=Ft(t,e.index);if(r.dirty){var n,o=void 0;if(33554432&e.flags){var i=e.parent.parent;o=Pr(t,i.index,i.index+i.childCount,e.query,[]),n=Lt(t,e.parent.index).instance}else 67108864&e.flags&&(o=Pr(t,0,t.def.nodes.length-1,e.query,[]),n=t.component);r.reset(o);for(var s=e.query.bindings,a=!1,u=0;u<s.length;u++){var c=s[u],l=void 0;switch(c.bindingType){case 0:l=r.first;break;case 1:l=r,a=!0}n[c.propName]=l}a&&r.notifyOnChanges()}}function Pr(t,e,r,n,o){for(var i=e;r>=i;i++){var s=t.def.nodes[i],a=s.matchedQueries[n.id];if(null!=a&&o.push(Ar(t,s,a)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&n.filterId)===n.filterId){var u=jt(t,i);if(8388608&s.flags)for(var c=u.viewContainer._embeddedViews,l=0;l<c.length;l++){var p=c[l],h=ee(p);h&&h===u&&Pr(p,0,p.def.nodes.length-1,n,o)}var f=u.template._projectedViews;if(f)for(var l=0;l<f.length;l++){var d=f[l];Pr(d,0,d.def.nodes.length-1,n,o)}}(s.childMatchedQueries&n.filterId)!==n.filterId&&(i+=s.childCount)}return o}function Ar(t,e,r){if(null!=r){var n=void 0;switch(r){case 1:n=jt(t,e.index).renderElement;break;case 0:n=new us(jt(t,e.index).renderElement);break;case 2:n=jt(t,e.index).template;break;case 3:n=jt(t,e.index).viewContainer;break;case 4:n=Lt(t,e.index).instance}return n}}function Or(t,e){for(var r=new Array(e.length-1),n=1;n<e.length;n++)r[n-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:e[n]};var o=2;return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:o,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:r,bindingFlags:ge(r),outputs:[],element:null,provider:null,text:{prefix:e[0]},query:null,ngContent:null}}function Mr(t,e,r){var n,o=t.renderer;n=o.createText(r.text.prefix);var i=ce(t,e,r);return i&&o.appendChild(i,n),{renderText:n}}function Rr(t,e,r,n,o,i,s,a,u,c,l,p){var h=!1,f=e.bindings,d=f.length;if(d>0&&Zt(t,e,0,r)&&(h=!0),d>1&&Zt(t,e,1,n)&&(h=!0),d>2&&Zt(t,e,2,o)&&(h=!0),d>3&&Zt(t,e,3,i)&&(h=!0),d>4&&Zt(t,e,4,s)&&(h=!0),d>5&&Zt(t,e,5,a)&&(h=!0),d>6&&Zt(t,e,6,u)&&(h=!0),d>7&&Zt(t,e,7,c)&&(h=!0),d>8&&Zt(t,e,8,l)&&(h=!0),d>9&&Zt(t,e,9,p)&&(h=!0),h){var m=e.text.prefix;d>0&&(m+=Ir(r,f[0])),d>1&&(m+=Ir(n,f[1])),d>2&&(m+=Ir(o,f[2])),d>3&&(m+=Ir(i,f[3])),d>4&&(m+=Ir(s,f[4])),d>5&&(m+=Ir(a,f[5])),d>6&&(m+=Ir(u,f[6])),d>7&&(m+=Ir(c,f[7])),d>8&&(m+=Ir(l,f[8])),d>9&&(m+=Ir(p,f[9]));var y=Dt(t,e.index).renderText;t.renderer.setValue(y,m)}return h}function kr(t,e,r){for(var n=e.bindings,o=!1,i=0;i<r.length;i++)Zt(t,e,i,r[i])&&(o=!0);if(o){for(var s="",i=0;i<r.length;i++)s+=Ir(r[i],n[i]);s=e.text.prefix+s;var a=Dt(t,e.index).renderText;t.renderer.setValue(a,s)}return o}function Ir(t,e){var r=null!=t?t.toString():"";return r+e.suffix}function Nr(t,e,r,n){for(var o=0,i=0,s=0,a=0,u=0,c=null,l=!1,p=!1,h=null,f=0;f<e.length;f++){for(;c&&f>c.index+c.childCount;){var d=c.parent;d&&(d.childFlags|=c.childFlags,d.childMatchedQueries|=c.childMatchedQueries),c=d}var m=e[f];m.index=f,m.parent=c,m.bindingIndex=o,m.outputIndex=i;var y=void 0;if(y=c&&1&c.flags&&!c.element.name?c.renderParent:c,m.renderParent=y,m.element){var v=m.element;v.publicProviders=c?c.element.publicProviders:Object.create(null),v.allProviders=v.publicProviders,l=!1,p=!1}if(Dr(c,m,e.length),s|=m.flags,u|=m.matchedQueryIds,m.element&&m.element.template&&(u|=m.element.template.nodeMatchedQueries),c?(c.childFlags|=m.flags,c.directChildFlags|=m.flags,c.childMatchedQueries|=m.matchedQueryIds,m.element&&m.element.template&&(c.childMatchedQueries|=m.element.template.nodeMatchedQueries)):a|=m.flags,o+=m.bindings.length,i+=m.outputs.length,!y&&3&m.flags&&(h=m),10112&m.flags){l||(l=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);var g=0!==(4096&m.flags),_=0!==(16384&m.flags);!g||_?c.element.publicProviders[m.provider.tokenKey]=m:(p||(p=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[m.provider.tokenKey]=m),_&&(c.element.componentProvider=m)}m.childCount&&(c=m)}for(;c;){var d=c.parent;d&&(d.childFlags|=c.childFlags,d.childMatchedQueries|=c.childMatchedQueries),c=d}var b=function(t,r,n,o){return e[r].element.handleEvent(t,n,o)};return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:r||ta,updateRenderer:n||ta,handleEvent:b||ta,bindingCount:o,outputCount:i,lastRenderRootNode:h}}function Dr(t,e,r){var n=e.element&&e.element.template;if(n){if(!n.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(n.lastRenderRootNode&&8388608&n.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.index+"!")}if(10112&e.flags){var o=t?t.flags:0;if(0===(1&o))throw new Error("Illegal State: Provider/Directive nodes need to be children of elements or anchors, at index "+e.index+"!")}if(e.query){if(33554432&e.flags&&(!t||0===(8192&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.index+"!");if(67108864&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.index+"!")}if(e.childCount){var i=t?t.index+t.childCount:r-1;if(e.index<=i&&e.index+e.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.index+"!")}}function jr(t,e,r){var n=Vr(t.root,t.renderer,t,e,e.element.template);return Fr(n,t.component,r),Ur(n),n}function Lr(t,e,r){var n=Vr(t,t.renderer,null,null,e);return Fr(n,r,r),Ur(n),n}function Vr(t,e,r,n,o){var i=new Array(o.nodes.length),s=o.outputCount?new Array(o.outputCount):null,a={def:o,parent:r,viewContainerParent:null,parentNodeDef:n,context:null,component:null,nodes:i,state:3,root:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:s};return a}function Fr(t,e,r){t.component=e,t.context=r}function Ur(t){var e;if(ie(t)){var r=t.parentNodeDef;e=jt(t.parent,r.parent.index).renderElement}for(var n=t.def,o=t.nodes,i=0;i<n.nodes.length;i++){var s=n.nodes[i];Js.setCurrentNode(t,i);var a=void 0;switch(100673535&s.flags){case 1:var u=Se(t,e,s),c=void 0;if(16777216&s.flags){var l=le(s.element.componentView),p=s.element.componentRendererType,h=void 0;h=p?t.root.rendererFactory.createRenderer(u,p):t.root.renderer,c=Vr(t.root,h,t,s.element.componentProvider,l)}xe(t,c,s,u),a={renderElement:u,componentView:c,viewContainer:null,template:s.element.template?$e(t,s):void 0},8388608&s.flags&&(a.viewContainer=Ge(t,s,a));break;case 2:a=Mr(t,e,s);break;case 256:case 512:case 1024:case 128:var f=er(t,s);a={instance:f};break;case 8:var f=rr(t,s);a={instance:f};break;case 8192:var f=nr(t,s);if(a={instance:f},16384&s.flags){var d=jt(t,s.parent.index).componentView;Fr(d,f,f)}break;case 16:case 32:case 64:a=br(t,s);break;case 33554432:case 67108864:a=Sr();break;case 4:De(t,e,s),a=void 0}o[i]=a}Yr(t,Ta.CreateViewNodes),en(t,100663296,134217728,0)}function Hr(t){Js.updateDirectives(t,1),Jr(t,Ta.CheckNoChanges),Js.updateRenderer(t,1),Yr(t,Ta.CheckNoChanges)}function Br(t){Js.updateDirectives(t,0),Jr(t,Ta.CheckAndUpdate),en(t,33554432,268435456,0),fr(t,1048576|(1&t.state?524288:0)),Js.updateRenderer(t,0),Yr(t,Ta.CheckAndUpdate),en(t,67108864,268435456,0),fr(t,4194304|(1&t.state?2097152:0)),2&t.def.flags&&(t.state&=-3),t.state&=-2}function qr(t,e,r,n,o,i,s,a,u,c,l,p,h){return 0===r?zr(t,e,n,o,i,s,a,u,c,l,p,h):Gr(t,e,n)}function zr(t,e,r,n,o,i,s,a,u,c,l,p){var h=!1;switch(100673535&e.flags){case 1:h=Pe(t,e,r,n,o,i,s,a,u,c,l,p);break;case 2:h=Rr(t,e,r,n,o,i,s,a,u,c,l,p);break;case 8192:h=ir(t,e,r,n,o,i,s,a,u,c,l,p);break;case 16:case 32:case 64:h=wr(t,e,r,n,o,i,s,a,u,c,l,p)}return h}function Gr(t,e,r){var n=!1;switch(100673535&e.flags){case 1:n=Ae(t,e,r);break;case 2:n=kr(t,e,r);break;case 8192:n=sr(t,e,r);break;case 16:case 32:case 64:n=Cr(t,e,r)}if(n)for(var o=e.bindings.length,i=e.bindingIndex,s=t.oldValues,a=0;o>a;a++)s[i+a]=r[a];return n}function Wr(t,e,r,n,o,i,s,a,u,c,l,p,h){return 0===r?$r(t,e,n,o,i,s,a,u,c,l,p,h):Kr(t,e,n),!1}function $r(t,e,r,n,o,i,s,a,u,c,l,p){var h=e.bindings.length;h>0&&Yt(t,e,0,r),h>1&&Yt(t,e,1,n),h>2&&Yt(t,e,2,o),h>3&&Yt(t,e,3,i),h>4&&Yt(t,e,4,s),h>5&&Yt(t,e,5,a),h>6&&Yt(t,e,6,u),h>7&&Yt(t,e,7,c),h>8&&Yt(t,e,8,l),h>9&&Yt(t,e,9,p)}function Kr(t,e,r){for(var n=0;n<r.length;n++)Yt(t,e,n,r[n])}function Qr(t,e){var r=Ft(t,e.index);if(r.dirty)throw Ut(Js.createDebugContext(t,e.index),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!==(1&t.state))}function Xr(t){if(!(8&t.state)){if(Jr(t,Ta.Destroy),Yr(t,Ta.Destroy),fr(t,65536),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();t.renderer.destroyNode&&Zr(t),ie(t)&&t.renderer.destroy(),t.state|=8}}function Zr(t){for(var e=t.def.nodes.length,r=0;e>r;r++){var n=t.def.nodes[r];1&n.flags?t.renderer.destroyNode(jt(t,r).renderElement):2&n.flags&&t.renderer.destroyNode(Dt(t,r).renderText)}}function Yr(t,e){var r=t.def;if(16777216&r.nodeFlags)for(var n=0;n<r.nodes.length;n++){var o=r.nodes[n];16777216&o.flags?tn(jt(t,n).componentView,e):0===(16777216&o.childFlags)&&(n+=o.childCount)}}function Jr(t,e){var r=t.def;if(8388608&r.nodeFlags)for(var n=0;n<r.nodes.length;n++){var o=r.nodes[n];if(8388608&o.flags)for(var i=jt(t,n).viewContainer._embeddedViews,s=0;s<i.length;s++)tn(i[s],e);else 0===(8388608&o.childFlags)&&(n+=o.childCount)}}function tn(t,e){var r=t.state;switch(e){case Ta.CheckNoChanges:2&r&&0===(12&r)&&Hr(t);break;case Ta.CheckAndUpdate:2&r&&0===(12&r)&&Br(t);break;case Ta.Destroy:Xr(t);break;case Ta.CreateViewNodes:Ur(t)}}function en(t,e,r,n){if(t.def.nodeFlags&e&&t.def.nodeFlags&r)for(var o=t.def.nodes.length,i=0;o>i;i++){var s=t.def.nodes[i];if(s.flags&e&&s.flags&r)switch(Js.setCurrentNode(t,s.index),n){case 0:Tr(t,s);break;case 1:Qr(t,s)}s.childFlags&e&&s.childFlags&r||(i+=s.childCount)}}function rn(){if(!Pa){Pa=!0;var t=ct()?on():nn();Js.setCurrentNode=t.setCurrentNode,Js.createRootView=t.createRootView,Js.createEmbeddedView=t.createEmbeddedView,Js.checkAndUpdateView=t.checkAndUpdateView,Js.checkNoChangesView=t.checkNoChangesView,Js.destroyView=t.destroyView,Js.resolveDep=lr,Js.createDebugContext=t.createDebugContext,Js.handleEvent=t.handleEvent,Js.updateDirectives=t.updateDirectives,Js.updateRenderer=t.updateRenderer,Js.dirtyParentQueries=xr}}function nn(){return{setCurrentNode:function(){},createRootView:sn,createEmbeddedView:jr,checkAndUpdateView:Br,checkNoChangesView:Hr,destroyView:Xr,createDebugContext:function(t,e){return new Ia(t,e)},handleEvent:function(t,e,r,n){return t.def.handleEvent(t,e,r,n)},updateDirectives:function(t,e){return t.def.updateDirectives(0===e?cn:ln,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?cn:ln,t)}}}function on(){return{setCurrentNode:mn,createRootView:an,createEmbeddedView:pn,checkAndUpdateView:hn,checkNoChangesView:fn,destroyView:dn,createDebugContext:function(t,e){return new Ia(t,e)},handleEvent:yn,updateDirectives:vn,updateRenderer:gn}}function sn(t,e,r,n,o,i){var s=o.injector.get(is);return Lr(un(t,o,s,e,r),n,i)}function an(t,e,r,n,o,i){var s=o.injector.get(is),a=un(t,o,new Na(s),e,r);return On(Aa.create,Lr,null,[a,n,i])}function un(t,e,r,n,o){var i=e.injector.get(Zs),s=r.createRenderer(null,null);return{ngModule:e,injector:t,projectableNodes:n,selectorOrNode:o,sanitizer:i,rendererFactory:r,renderer:s}}function cn(t,e,r,n,o,i,s,a,u,c,l,p,h){var f=t.def.nodes[e];return qr(t,f,r,n,o,i,s,a,u,c,l,p,h),112&f.flags?Vt(t,e).value:void 0}function ln(t,e,r,n,o,i,s,a,u,c,l,p,h){var f=t.def.nodes[e];return Wr(t,f,r,n,o,i,s,a,u,c,l,p,h),112&f.flags?Vt(t,e).value:void 0}function pn(t,e,r){return On(Aa.create,jr,null,[t,e,r])}function hn(t){return On(Aa.detectChanges,Br,null,[t])}function fn(t){return On(Aa.checkNoChanges,Hr,null,[t])}function dn(t){return On(Aa.destroy,Xr,null,[t])}function mn(t,e){Ma=t,Ra=e}function yn(t,e,r,n){return mn(t,e),On(Aa.handleEvent,t.def.handleEvent,null,[t,e,r,n])}function vn(t,e){function r(t,r,n){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=t.def.nodes[r];return 0===e?_n(t,s,n,o):bn(t,s,n,o),8192&s.flags&&mn(t,Sn(t,r)),112&s.flags?Vt(t,s.index).value:void 0}if(8&t.state)throw Gt(Aa[Oa]);return mn(t,Sn(t,0)),t.def.updateDirectives(r,t)}function gn(t,e){function r(t,r,n){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=t.def.nodes[r];return 0===e?_n(t,s,n,o):bn(t,s,n,o),3&s.flags&&mn(t,xn(t,r)),112&s.flags?Vt(t,s.index).value:void 0}if(8&t.state)throw Gt(Aa[Oa]);return mn(t,xn(t,0)),t.def.updateRenderer(r,t)}function _n(t,e,r,n){var o=qr.apply(void 0,[t,e,r].concat(n));if(o){var i=1===r?n[0]:n;if(8192&e.flags){for(var s={},a=0;a<e.bindings.length;a++){var u=e.bindings[a],c=i[a];8&u.flags&&(s[wn(u.nonMinifiedName)]=En(c))}var l=e.parent,p=jt(t,l.index).renderElement;if(l.element.name)for(var h in s){var c=s[h];null!=c?t.renderer.setAttribute(p,h,c):t.renderer.removeAttribute(p,h)}else t.renderer.setValue(p,"bindings="+JSON.stringify(s,null,2))}}}function bn(t,e,r,n){Wr.apply(void 0,[t,e,r].concat(n))}function wn(t){return t=Cn(t.replace(/[$@]/g,"_")),"ng-reflect-"+t}function Cn(t){return t.replace(ka,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()})}function En(t){try{return null!=t?t.toString().slice(0,30):t}catch(e){return"[ERROR] Exception while trying to serialize the value"}}function Sn(t,e){for(var r=e;r<t.def.nodes.length;r++){var n=t.def.nodes[r];if(8192&n.flags&&n.bindings&&n.bindings.length)return r}return null}function xn(t,e){for(var r=e;r<t.def.nodes.length;r++){
-var n=t.def.nodes[r];if(3&n.flags&&n.bindings&&n.bindings.length)return r}return null}function Tn(t,e){for(var r=-1,n=0;e>=n;n++){var o=t.nodes[n];3&o.flags&&r++}return r}function Pn(t){for(;t&&!ie(t);)t=t.parent;return t.parent?jt(t.parent,re(t).index):null}function An(t,e,r){for(var n in e.references)r[n]=Ar(t,e,e.references[n])}function On(t,e,r,n){var o=Oa,i=Ma,s=Ra;try{Oa=t;var a=e.apply(r,n);return Ma=i,Ra=s,Oa=o,a}catch(u){if(zt(u)||!Ma)throw u;throw Ma.state|=4,Ht(u,Mn())}}function Mn(){return Ma?new Ia(Ma,Ra):null}function Rn(){return Bs}function kn(){return qs}function In(t){return t||"en-US"}function Nn(){rn()}function Dn(t,e){return{name:t,definitions:e}}function jn(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}}function Ln(t){return{type:3,steps:t}}function Vn(t){return{type:2,steps:t}}function Fn(t){return{type:6,styles:t}}function Un(t,e){return{type:0,name:t,styles:e}}function Hn(t){return{type:5,steps:t}}function Bn(t,e){return{type:1,expr:t,animation:e}}function qn(t,e){return Dn(t,e)}function zn(t,e){return jn(t,e)}function Gn(t){return Ln(t)}function Wn(t){return Vn(t)}function $n(t){return Fn(t)}function Kn(t,e){return Un(t,e)}function Qn(t){return Hn(t)}function Xn(t,e){return Bn(t,e)}var Zn=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Yn=function(){function t(t){this._desc=t}return t.prototype.toString=function(){return"Token "+this._desc},t}(),Jn=function(t){function e(e){return t.call(this,e)||this}return Zn(e,t),e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(Yn),to="undefined"!=typeof window&&window,eo="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ro="undefined"!=typeof o&&o,no=to||ro||eo,oo=null,io=0,so=no.Reflect,ao=new Jn("AnalyzeForEntryComponents"),uo=m("Attribute",[["attributeName",void 0]]),co=function(){function t(){}return t}(),lo=y("ContentChildren",[["selector",void 0],{first:!1,isViewQuery:!1,descendants:!1,read:void 0}],co),po=y("ContentChild",[["selector",void 0],{first:!0,isViewQuery:!1,descendants:!0,read:void 0}],co),ho=y("ViewChildren",[["selector",void 0],{first:!1,isViewQuery:!0,descendants:!0,read:void 0}],co),fo=y("ViewChild",[["selector",void 0],{first:!0,isViewQuery:!0,descendants:!0,read:void 0}],co),mo={};mo.OnPush=0,mo.Default=1,mo[mo.OnPush]="OnPush",mo[mo.Default]="Default";var yo={};yo.CheckOnce=0,yo.Checked=1,yo.CheckAlways=2,yo.Detached=3,yo.Errored=4,yo.Destroyed=5,yo[yo.CheckOnce]="CheckOnce",yo[yo.Checked]="Checked",yo[yo.CheckAlways]="CheckAlways",yo[yo.Detached]="Detached",yo[yo.Errored]="Errored",yo[yo.Destroyed]="Destroyed";var vo=f("Directive",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,providers:void 0,exportAs:void 0,queries:void 0}),go=f("Component",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,exportAs:void 0,moduleId:void 0,providers:void 0,viewProviders:void 0,changeDetection:mo.Default,queries:void 0,templateUrl:void 0,template:void 0,styleUrls:void 0,styles:void 0,animations:void 0,encapsulation:void 0,interpolation:void 0,entryComponents:void 0},vo),_o=f("Pipe",{name:void 0,pure:!0}),bo=y("Input",[["bindingPropertyName",void 0]]),wo=y("Output",[["bindingPropertyName",void 0]]),Co=y("HostBinding",[["hostPropertyName",void 0]]),Eo=y("HostListener",[["eventName",void 0],["args",[]]]),So={name:"custom-elements"},xo={name:"no-errors-schema"},To=f("NgModule",{providers:void 0,declarations:void 0,imports:void 0,exports:void 0,entryComponents:void 0,bootstrap:void 0,schemas:void 0,id:void 0}),Po={};Po.Emulated=0,Po.Native=1,Po.None=2,Po[Po.Emulated]="Emulated",Po[Po.Native]="Native",Po[Po.None]="None";var Ao=function(){function t(t){var e=void 0===t?{}:t,r=e.templateUrl,n=e.template,o=e.encapsulation,i=e.styles,s=e.styleUrls,a=e.animations,u=e.interpolation;this.templateUrl=r,this.template=n,this.styleUrls=s,this.styles=i,this.encapsulation=o,this.animations=a,this.interpolation=u}return t}(),Oo=function(){function t(t){this.full=t}return Object.defineProperty(t.prototype,"major",{get:function(){return this.full.split(".")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minor",{get:function(){return this.full.split(".")[1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"patch",{get:function(){return this.full.split(".").slice(2).join(".")},enumerable:!0,configurable:!0}),t}(),Mo=new Oo("4.1.0"),Ro=m("Inject",[["token",void 0]]),ko=m("Optional",[]),Io=f("Injectable",[]),No=m("Self",[]),Do=m("SkipSelf",[]),jo=m("Host",[]),Lo=new Object,Vo=Lo,Fo=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=Lo),e===Lo)throw new Error("No provider for "+c(t)+"!");return e},t}(),Uo=function(){function t(){}return t.prototype.get=function(){},t.prototype.get=function(){},t}();Uo.THROW_IF_NOT_FOUND=Lo,Uo.NULL=new Fo;var Ho="ngComponentType",Bo="ngDebugContext",qo="ngOriginalError",zo="ngErrorLogger",Go=function(){function t(){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),r=this._findContext(t),n=C(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),r&&n(this._console,"ERROR CONTEXT",r)},t.prototype._findContext=function(t){return t?b(t)?b(t):this._findContext(w(t)):null},t.prototype._findOriginalError=function(t){for(var e=w(t);e&&w(e);)e=w(e);return e},t}(),Wo=function(){function t(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!")}return Object.defineProperty(t.prototype,"displayName",{get:function(){return c(this.token)},enumerable:!0,configurable:!0}),t.get=function(t){return Ko.get(_(t))},Object.defineProperty(t,"numberOfKeys",{get:function(){return Ko.numberOfKeys},enumerable:!0,configurable:!0}),t}(),$o=function(){function t(){this._allKeys=new Map}return t.prototype.get=function(t){if(t instanceof Wo)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var e=new Wo(t,Wo.numberOfKeys);return this._allKeys.set(t,e),e},Object.defineProperty(t.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),t}(),Ko=new $o,Qo=Function,Xo=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,Zo=function(){function t(t){this._reflect=t||no.Reflect}return t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,[void 0].concat(e)))}},t.prototype._zipTypesAndAnnotations=function(t,e){var r;r=new Array("undefined"==typeof t?e.length:t.length);for(var n=0;n<r.length;n++)r[n]="undefined"==typeof t?[]:t[n]!=Object?[t[n]]:[],e&&null!=e[n]&&(r[n]=r[n].concat(e[n]));return r},t.prototype._ownParameters=function(t,e){if(Xo.exec(t.toString()))return null;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;var r=t.ctorParameters;if(r&&r!==e.ctorParameters){var n="function"==typeof r?r():r,o=n.map(function(t){return t&&t.type}),i=n.map(function(t){return t&&L(t.decorators)});return this._zipTypesAndAnnotations(o,i)}if(null!=this._reflect&&null!=this._reflect.getOwnMetadata){var i=this._reflect.getOwnMetadata("parameters",t),o=this._reflect.getOwnMetadata("design:paramtypes",t);if(o||i)return this._zipTypesAndAnnotations(o,i)}return new Array(t.length).fill(void 0)},t.prototype.parameters=function(t){if(!j(t))return[];var e=V(t),r=this._ownParameters(t,e);return r||e===Object||(r=this.parameters(e)),r||[]},t.prototype._ownAnnotations=function(t,e){if(t.annotations&&t.annotations!==e.annotations){var r=t.annotations;return"function"==typeof r&&r.annotations&&(r=r.annotations),r}return t.decorators&&t.decorators!==e.decorators?L(t.decorators):this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("annotations",t):null},t.prototype.annotations=function(t){if(!j(t))return[];var e=V(t),r=this._ownAnnotations(t,e)||[],n=e!==Object?this.annotations(e):[];return n.concat(r)},t.prototype._ownPropMetadata=function(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){var r=t.propMetadata;return"function"==typeof r&&r.propMetadata&&(r=r.propMetadata),r}if(t.propDecorators&&t.propDecorators!==e.propDecorators){var n=t.propDecorators,o={};return Object.keys(n).forEach(function(t){o[t]=L(n[t])}),o}return this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("propMetadata",t):null},t.prototype.propMetadata=function(t){if(!j(t))return{};var e=V(t),r={};if(e!==Object){var n=this.propMetadata(e);Object.keys(n).forEach(function(t){r[t]=n[t]})}var o=this._ownPropMetadata(t,e);return o&&Object.keys(o).forEach(function(t){var e=[];r.hasOwnProperty(t)&&e.push.apply(e,r[t]),e.push.apply(e,o[t]),r[t]=e}),r},t.prototype.hasLifecycleHook=function(t,e){return t instanceof Qo&&e in t.prototype},t.prototype.getter=function(t){return new Function("o","return o."+t+";")},t.prototype.setter=function(t){return new Function("o","v","return o."+t+" = v;")},t.prototype.method=function(t){var e="if (!o."+t+") throw new Error('\""+t+"\" is undefined');\n        return o."+t+".apply(o, args);";return new Function("o","args",e)},t.prototype.importUri=function(t){return"object"==typeof t&&t.filePath?t.filePath:"./"+c(t)},t.prototype.resourceUri=function(t){return"./"+c(t)},t.prototype.resolveIdentifier=function(t,e,r,n){return n},t.prototype.resolveEnum=function(t,e){return t[e]},t}(),Yo=function(){function t(){}return t.prototype.parameters=function(){},t.prototype.annotations=function(){},t.prototype.propMetadata=function(){},t.prototype.importUri=function(){},t.prototype.resourceUri=function(){},t.prototype.resolveIdentifier=function(){},t.prototype.resolveEnum=function(){},t}(),Jo=function(t){function e(e){var r=t.call(this)||this;return r.reflectionCapabilities=e,r}return Zn(e,t),e.prototype.updateCapabilities=function(t){this.reflectionCapabilities=t},e.prototype.factory=function(t){return this.reflectionCapabilities.factory(t)},e.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},e.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},e.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},e.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},e.prototype.getter=function(t){return this.reflectionCapabilities.getter(t)},e.prototype.setter=function(t){return this.reflectionCapabilities.setter(t)},e.prototype.method=function(t){return this.reflectionCapabilities.method(t)},e.prototype.importUri=function(t){return this.reflectionCapabilities.importUri(t)},e.prototype.resourceUri=function(t){return this.reflectionCapabilities.resourceUri(t)},e.prototype.resolveIdentifier=function(t,e,r,n){return this.reflectionCapabilities.resolveIdentifier(t,e,r,n)},e.prototype.resolveEnum=function(t,e){return this.reflectionCapabilities.resolveEnum(t,e)},e}(Yo),ti=new Jo(new Zo),ei=function(){function t(t,e,r){this.key=t,this.optional=e,this.visibility=r}return t.fromKey=function(e){return new t(e,!1,null)},t}(),ri=[],ni=function(){function t(t,e,r){this.key=t,this.resolvedFactories=e,this.multiProvider=r}return Object.defineProperty(t.prototype,"resolvedFactory",{get:function(){return this.resolvedFactories[0]},enumerable:!0,configurable:!0}),t}(),oi=function(){function t(t,e){this.factory=t,this.dependencies=e}return t}(),ii=new Object,si=function(){function t(){}return t.resolve=function(t){return H(t)},t.resolveAndCreate=function(e,r){var n=t.resolve(e);return t.fromResolvedProviders(n,r)},t.fromResolvedProviders=function(t,e){return new ai(t,e)},t.prototype.parent=function(){},t.prototype.resolveAndCreateChild=function(){},t.prototype.createChildFromResolved=function(){},t.prototype.resolveAndInstantiate=function(){},t.prototype.instantiateResolved=function(){},t.prototype.get=function(){},t}(),ai=function(){function t(t,e){this._constructionCounter=0,this._providers=t,this._parent=e||null;var r=t.length;this.keyIds=new Array(r),this.objs=new Array(r);for(var n=0;r>n;n++)this.keyIds[n]=t[n].key.id,this.objs[n]=ii}return t.prototype.get=function(t,e){return void 0===e&&(e=Vo),this._getByKey(Wo.get(t),null,e)},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),t.prototype.resolveAndCreateChild=function(t){var e=si.resolve(t);return this.createChildFromResolved(e)},t.prototype.createChildFromResolved=function(e){var r=new t(e);return r._parent=this,r},t.prototype.resolveAndInstantiate=function(t){return this.instantiateResolved(si.resolve([t])[0])},t.prototype.instantiateResolved=function(t){return this._instantiateProvider(t)},t.prototype.getProviderAtIndex=function(t){if(0>t||t>=this._providers.length)throw N(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw M(this,t.key);return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),r=0;r<t.resolvedFactories.length;++r)e[r]=this._instantiate(t,t.resolvedFactories[r]);return e}return this._instantiate(t,t.resolvedFactories[0])},t.prototype._instantiate=function(t,e){var r,n=this,o=e.factory;try{r=e.dependencies.map(function(t){return n._getByReflectiveDependency(t)})}catch(i){throw i.addKey&&i.addKey(this,t.key),i}var s;try{s=o.apply(void 0,r)}catch(i){throw R(this,i,i.stack,t.key)}return s},t.prototype._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:Vo)},t.prototype._getByKey=function(t,e,r){return t===ui?this:e instanceof No?this._getByKeySelf(t,r):this._getByKeyDefault(t,r,e)},t.prototype._getObjByKeyId=function(t){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===ii&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return ii},t.prototype._throwOrNull=function(t,e){if(e!==Vo)return e;throw O(this,t)},t.prototype._getByKeySelf=function(t,e){var r=this._getObjByKeyId(t.id);return r!==ii?r:this._throwOrNull(t,e)},t.prototype._getByKeyDefault=function(e,r,n){var o;for(o=n instanceof Do?this._parent:this;o instanceof t;){var i=o,s=i._getObjByKeyId(e.id);if(s!==ii)return s;o=i._parent}return null!==o?o.get(e.token,r):this._throwOrNull(e,r)},Object.defineProperty(t.prototype,"displayName",{get:function(){var t=K(this,function(t){return' "'+t.key.displayName+'" '}).join(", ");return"ReflectiveInjector(providers: ["+t+"])"},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.displayName},t}(),ui=Wo.get(Uo),ci=new Jn("Application Initializer"),li=function(){function t(t){var e=this;this._done=!1;var r=[];if(t)for(var n=0;n<t.length;n++){var o=t[n]();Q(o)&&r.push(o)}this._donePromise=Promise.all(r).then(function(){e._done=!0}),0===r.length&&(this._done=!0)}return Object.defineProperty(t.prototype,"done",{get:function(){return this._done},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"donePromise",{get:function(){return this._donePromise},enumerable:!0,configurable:!0}),t}();li.decorators=[{type:Io}],li.ctorParameters=function(){return[{type:Array,decorators:[{type:Ro,args:[ci]},{type:ko}]}]};var pi=new Jn("AppId"),hi={provide:pi,useFactory:Z,deps:[]},fi=new Jn("Platform Initializer"),di=new Jn("Platform ID"),mi=new Jn("appBootstrapListener"),yi=new Jn("Application Packages Root URL"),vi=function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t}();vi.decorators=[{type:Io}],vi.ctorParameters=function(){return[]};var gi=function(){function t(t,e){this.ngModuleFactory=t,this.componentFactories=e}return t}(),_i=function(){function t(){}return t.prototype.compileModuleSync=function(){throw J()},t.prototype.compileModuleAsync=function(){throw J()},t.prototype.compileModuleAndAllComponentsSync=function(){throw J()},t.prototype.compileModuleAndAllComponentsAsync=function(){throw J()},t.prototype.getNgContentSelectors=function(){throw J()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(){},t}();_i.decorators=[{type:Io}],_i.ctorParameters=function(){return[]};var bi=new Jn("compilerOptions"),wi=function(){function t(){}return t.prototype.createCompiler=function(){},t}(),Ci=function(){function t(){}return t.prototype.location=function(){},t.prototype.injector=function(){},t.prototype.instance=function(){},t.prototype.hostView=function(){},t.prototype.changeDetectorRef=function(){},t.prototype.componentType=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(){},t}(),Ei=function(){function t(){}return t.prototype.selector=function(){},t.prototype.componentType=function(){},t.prototype.ngContentSelectors=function(){},t.prototype.inputs=function(){},t.prototype.outputs=function(){},t.prototype.create=function(){},t}(),Si="ngComponent",xi=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw tt(t)},t}(),Ti=function(){function t(){}return t.prototype.resolveComponentFactory=function(){},t}();Ti.NULL=new xi;var Pi,Ai,Oi=function(){function t(t,e,r){this._parent=e,this._ngModule=r,this._factories=new Map;for(var n=0;n<t.length;n++){var o=t[n];this._factories.set(o.componentType,o)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t)||this._parent.resolveComponentFactory(t);return new Mi(e,this._ngModule)},t}(),Mi=function(t){function e(e,r){var n=t.call(this)||this;return n.factory=e,n.ngModule=r,n}return Zn(e,t),Object.defineProperty(e.prototype,"selector",{get:function(){return this.factory.selector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this.factory.componentType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngContentSelectors",{get:function(){return this.factory.ngContentSelectors},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputs",{get:function(){return this.factory.inputs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return this.factory.outputs},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,r,n){return this.factory.create(t,e,r,n||this.ngModule)},e}(Ei),Ri=function(){function t(){}return t.prototype.injector=function(){},t.prototype.componentFactoryResolver=function(){},t.prototype.instance=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(){},t}(),ki=function(){function t(t,e){this._injectorClass=t,this._moduleType=e}return Object.defineProperty(t.prototype,"moduleType",{get:function(){return this._moduleType},enumerable:!0,configurable:!0}),t.prototype.create=function(t){var e=new this._injectorClass(t||Uo.NULL);return e.create(),e},t}(),Ii=new Object,Ni=function(){function t(t,e,r){var n=this;this.parent=t,this._destroyListeners=[],this._destroyed=!1,this.bootstrapFactories=r.map(function(t){return new Mi(t,n)}),this._cmpFactoryResolver=new Oi(e,t.get(Ti,Ti.NULL),this)}return t.prototype.create=function(){this.instance=this.createInternal()},t.prototype.createInternal=function(){},t.prototype.get=function(t,e){if(void 0===e&&(e=Vo),t===Uo||t===Ri)return this;if(t===Ti)return this._cmpFactoryResolver;var r=this.getInternal(t,Ii);return r===Ii?this.parent.get(t,e):r},t.prototype.getInternal=function(){},Object.defineProperty(t.prototype,"injector",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this._cmpFactoryResolver},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+c(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,this.destroyInternal(),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t.prototype.destroyInternal=function(){},t}(),Di=et(),ji=Di?rt:function(){return st},Li=Di?nt:function(t,e){return e},Vi=Di?ot:function(){return null},Fi=Di?it:function(){return null},Ui=function(t){function e(e){void 0===e&&(e=!1);var r=t.call(this)||this;return r.__isAsync=e,r}return Zn(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,r,n){var o,i=function(){return null},s=function(){return null};return e&&"object"==typeof e?(o=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(i=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(o=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},r&&(i=this.__isAsync?function(t){setTimeout(function(){return r(t)})}:function(t){r(t)}),n&&(s=this.__isAsync?function(){setTimeout(function(){return n()})}:function(){n()})),t.prototype.subscribe.call(this,o,i,s)},e}(i.Subject),Hi=function(){function t(t){var e=t.enableLongStackTrace,r=void 0===e?!1:e;if(this._hasPendingMicrotasks=!1,this._hasPendingMacrotasks=!1,this._isStable=!0,this._nesting=0,this._onUnstable=new Ui(!1),this._onMicrotaskEmpty=new Ui(!1),this._onStable=new Ui(!1),this._onErrorEvents=new Ui(!1),"undefined"==typeof Zone)throw new Error("Angular requires Zone.js prolyfill.");Zone.assertZonePatched(),this.outer=this.inner=Zone.current,Zone.wtfZoneSpec&&(this.inner=this.inner.fork(Zone.wtfZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(this.inner=this.inner.fork(Zone.longStackTraceZoneSpec)),this.forkInnerZoneWithAngularBehavior()}return t.isInAngularZone=function(){return Zone.current.get("isAngularZone")===!0},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t){return this.inner.run(t)},t.prototype.runGuarded=function(t){return this.inner.runGuarded(t)},t.prototype.runOutsideAngular=function(t){return this.outer.run(t)},Object.defineProperty(t.prototype,"onUnstable",{get:function(){return this._onUnstable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onMicrotaskEmpty",{get:function(){return this._onMicrotaskEmpty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onStable",{get:function(){return this._onStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onError",{get:function(){return this._onErrorEvents},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMicrotasks",{get:function(){return this._hasPendingMicrotasks},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMacrotasks",{get:function(){return this._hasPendingMacrotasks},enumerable:!0,configurable:!0}),t.prototype.checkStable=function(){var t=this;if(0==this._nesting&&!this._hasPendingMicrotasks&&!this._isStable)try{this._nesting++,this._onMicrotaskEmpty.emit(null)}finally{if(this._nesting--,!this._hasPendingMicrotasks)try{this.runOutsideAngular(function(){return t._onStable.emit(null)})}finally{this._isStable=!0}}},t.prototype.forkInnerZoneWithAngularBehavior=function(){var t=this;this.inner=this.inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,r,n,o,i,s){try{return t.onEnter(),e.invokeTask(n,o,i,s)}finally{t.onLeave()}},onInvoke:function(e,r,n,o,i,s,a){try{return t.onEnter(),e.invoke(n,o,i,s,a)}finally{t.onLeave()}},onHasTask:function(e,r,n,o){e.hasTask(n,o),r===n&&("microTask"==o.change?t.setHasMicrotask(o.microTask):"macroTask"==o.change&&t.setHasMacrotask(o.macroTask))},onHandleError:function(e,r,n,o){return e.handleError(n,o),t.triggerError(o),!1}})},t.prototype.onEnter=function(){this._nesting++,this._isStable&&(this._isStable=!1,this._onUnstable.emit(null))},t.prototype.onLeave=function(){this._nesting--,this.checkStable()},t.prototype.setHasMicrotask=function(t){this._hasPendingMicrotasks=t,this.checkStable()},t.prototype.setHasMacrotask=function(t){this._hasPendingMacrotasks=t},t.prototype.triggerError=function(t){this._onErrorEvents.emit(t)},t}(),Bi=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(){Hi.assertNotInAngularZone(),a(function(){t._isZoneStable=!0,t._runCallbacksIfReady()})}})})},t.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},t.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;this.isStable()?a(function(){for(;0!==t._callbacks.length;)t._callbacks.pop()(t._didWork);t._didWork=!1}):this._didWork=!0},t.prototype.whenStable=function(t){this._callbacks.push(t),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findBindings=function(){return[]},t.prototype.findProviders=function(){return[]},t}();Bi.decorators=[{type:Io}],Bi.ctorParameters=function(){return[{type:Hi}]};var qi=function(){function t(){this._applications=new Map,Wi.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),Wi.findTestabilityInTree(this,t,e)},t}();qi.decorators=[{type:Io}],qi.ctorParameters=function(){return[]};var zi,Gi=function(){function t(){}return t.prototype.addToWindow=function(){},t.prototype.findTestabilityInTree=function(){return null},t}(),Wi=new Gi,$i=!0,Ki=!1,Qi=new Jn("AllowMultipleToken"),Xi=function(){function t(t,e){this.name=t,this.token=e}return t}(),Zi=function(){function t(){}return t.prototype.bootstrapModuleFactory=function(){},t.prototype.bootstrapModule=function(){},t.prototype.onDestroy=function(){},t.prototype.injector=function(){},t.prototype.destroy=function(){},t.prototype.destroyed=function(){},t}(),Yi=function(t){function e(e){var r=t.call(this)||this;return r._injector=e,r._modules=[],r._destroyListeners=[],r._destroyed=!1,r}return Zn(e,t),e.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},e.prototype.bootstrapModuleFactory=function(t){return this._bootstrapModuleFactoryWithZone(t)},e.prototype._bootstrapModuleFactoryWithZone=function(t,e){var r=this;return e||(e=new Hi({enableLongStackTrace:ct()})),e.run(function(){var n=si.resolveAndCreate([{provide:Hi,useValue:e}],r.injector),o=t.create(n),i=o.injector.get(Go,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.onDestroy(function(){return yt(r._modules,o)}),e.onError.subscribe({next:function(t){i.handleError(t)}}),mt(i,function(){var t=o.injector.get(li);return t.donePromise.then(function(){return r._moduleDoBootstrap(o),o})})})},e.prototype.bootstrapModule=function(t,e){return void 0===e&&(e=[]),this._bootstrapModuleWithZone(t,e)},e.prototype._bootstrapModuleWithZone=function(t,e,r){var n=this;void 0===e&&(e=[]);var o=this.injector.get(wi),i=o.createCompiler(Array.isArray(e)?e:[e]);return i.compileModuleAsync(t).then(function(t){return n._bootstrapModuleFactoryWithZone(t,r)})},e.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Ji);if(t.bootstrapFactories.length>0)t.bootstrapFactories.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+c(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},e}(Zi);Yi.decorators=[{type:Io}],Yi.ctorParameters=function(){return[{type:Uo}]};var Ji=function(){function t(){}return t.prototype.bootstrap=function(){},t.prototype.tick=function(){},t.prototype.componentTypes=function(){},t.prototype.components=function(){},t.prototype.attachView=function(){},t.prototype.detachView=function(){},t.prototype.viewCount=function(){},t.prototype.isStable=function(){},t}(),ts=function(t){function o(o,i,s,u,c,l){var p=t.call(this)||this;p._zone=o,p._console=i,p._injector=s,p._exceptionHandler=u,p._componentFactoryResolver=c,p._initStatus=l,p._bootstrapListeners=[],p._rootComponents=[],p._rootComponentTypes=[],p._views=[],p._runningTick=!1,p._enforceNoNewChanges=!1,p._stable=!0,p._enforceNoNewChanges=ct(),p._zone.onMicrotaskEmpty.subscribe({next:function(){p._zone.run(function(){p.tick()})}});var h=new e.Observable(function(t){p._stable=p._zone.isStable&&!p._zone.hasPendingMacrotasks&&!p._zone.hasPendingMicrotasks,p._zone.runOutsideAngular(function(){t.next(p._stable),t.complete()})}),f=new e.Observable(function(t){var e=p._zone.onStable.subscribe(function(){Hi.assertNotInAngularZone(),a(function(){p._stable||p._zone.hasPendingMacrotasks||p._zone.hasPendingMicrotasks||(p._stable=!0,t.next(!0))})}),r=p._zone.onUnstable.subscribe(function(){Hi.assertInAngularZone(),p._stable&&(p._stable=!1,p._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),r.unsubscribe()}});return p._isStable=r.merge(h,n.share.call(f)),p}return Zn(o,t),o.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},o.prototype.detachView=function(t){var e=t;yt(this._views,e),e.detachFromAppRef()},o.prototype.bootstrap=function(t){var e=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");var r;r=t instanceof Ei?t:this._componentFactoryResolver.resolveComponentFactory(t),this._rootComponentTypes.push(r.componentType);var n=r instanceof Mi?null:this._injector.get(Ri),o=r.create(Uo.NULL,[],r.selector,n);o.onDestroy(function(){e._unloadComponent(o)});var i=o.injector.get(Bi,null);return i&&o.injector.get(qi).registerApplication(o.location.nativeElement,i),this._loadComponent(o),ct()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},o.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this._rootComponents.push(t);var e=this._injector.get(mi,[]).concat(this._bootstrapListeners);e.forEach(function(e){return e(t)})},o.prototype._unloadComponent=function(t){this.detachView(t.hostView),yt(this._rootComponents,t);
+},t.prototype._extractPublicName=function(t){return p(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,r=[],n=t.length-1;n>=0;n--){var o=t[n],i=this._extractPublicName(o);e.has(i)||(e.add(i),r.push(o))}return r.reverse()},t.prototype._merge=function(t,r,n,o,i){var s=this._dedupeBindings(t.inputs?t.inputs.concat(r):r),a=this._dedupeBindings(t.outputs?t.outputs.concat(n):n),u=t.host?sl({},t.host,o):o,c=t.queries?sl({},t.queries,i):i;return t instanceof e.Component?new e.Component({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,moduleId:t.moduleId,queries:c,changeDetection:t.changeDetection,providers:t.providers,viewProviders:t.viewProviders,entryComponents:t.entryComponents,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,encapsulation:t.encapsulation,animations:t.animations,interpolation:t.interpolation}):new e.Directive({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,queries:c,providers:t.providers})},t}();al.decorators=[{type:z}],al.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var ul=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,cl=/\.ngfactory\./,ll=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(nr)},t.prototype.resolve=function(t,r){void 0===r&&(r=!0);var n=Qe(this._reflector.annotations(t),nr);if(n)return n;if(r)throw new Error("No NgModule metadata found for '"+e.ɵstringify(t)+"'.");return null},t}();ll.decorators=[{type:z}],ll.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var pl=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isPipe=function(t){var r=this._reflector.annotations(e.resolveForwardRef(t));return r&&r.some(or)},t.prototype.resolve=function(t,r){void 0===r&&(r=!0);var n=this._reflector.annotations(e.resolveForwardRef(t));if(n){var o=Qe(n,or);if(o)return o}if(r)throw new Error("No Pipe decorator found on "+e.ɵstringify(t));return null},t}();pl.decorators=[{type:z}],pl.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var hl=function(){function t(){}return t.prototype.isLibraryFile=function(){return!1},t.prototype.getLibraryFileName=function(){return null},t.prototype.resolveSummary=function(){return null},t.prototype.getSymbolsOf=function(){return[]},t.prototype.getImportAs=function(t){return t},t}();hl.decorators=[{type:z}],hl.ctorParameters=function(){return[]};var fl=new e.InjectionToken("ErrorCollector"),dl=function(){function t(t,r,n,o,i,s,a,u,c,l,p){void 0===l&&(l=e.ɵreflector),this._config=t,this._ngModuleResolver=r,this._directiveResolver=n,this._pipeResolver=o,this._summaryResolver=i,this._schemaRegistry=s,this._directiveNormalizer=a,this._console=u,this._staticSymbolCache=c,this._reflector=l,this._errorCollector=p,this._nonNormalizedDirectiveCache=new Map,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map}return t.prototype.clearCacheFor=function(t){var e=this._directiveCache.get(t);this._directiveCache["delete"](t),this._nonNormalizedDirectiveCache["delete"](t),this._summaryCache["delete"](t),this._pipeCache["delete"](t),this._ngModuleOfTypes["delete"](t),this._ngModuleCache.clear(),e&&this._directiveNormalizer.clearCacheFor(e)},t.prototype.clearCache=function(){this._directiveCache.clear(),this._nonNormalizedDirectiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},t.prototype._createProxyClass=function(t,r){var n=null,o=function(){if(!n)throw new Error("Illegal state: Class "+r+" for type "+e.ɵstringify(t)+" is not compiled yet!");return n.apply(this,arguments)};return o.setDelegate=function(t){n=t,o.prototype=t.prototype},o.overriddenName=r,o},t.prototype.getGeneratedClass=function(t,e){return t instanceof mo?this._staticSymbolCache.get(Xe(t.filePath),e):this._createProxyClass(t,e)},t.prototype.getComponentViewClass=function(t){return this.getGeneratedClass(t,x(t,0))},t.prototype.getHostComponentViewClass=function(t){return this.getGeneratedClass(t,P(t))},t.prototype.getHostComponentType=function(t){var e=E({reference:t})+"_Host";if(t instanceof mo)return this._staticSymbolCache.get(t.filePath,e);var r=function(){};return r.overriddenName=e,r},t.prototype.getRendererType=function(t){return t instanceof mo?this._staticSymbolCache.get(Xe(t.filePath),T(t)):{}},t.prototype.getComponentFactory=function(t,r,n,o){if(r instanceof mo)return this._staticSymbolCache.get(Xe(r.filePath),O(r));var i=this.getHostComponentViewClass(r);return e.ɵccf(t,r,i,n,o,[])},t.prototype.initComponentFactory=function(t,e){t instanceof mo||(r=t.ngContentSelectors).push.apply(r,e);var r},t.prototype._loadSummary=function(t,e){var r=this._summaryCache.get(t);if(!r){var n=this._summaryResolver.resolveSummary(t);r=n?n.type:null,this._summaryCache.set(t,r||null)}return r&&r.summaryKind===e?r:null},t.prototype._loadDirectiveMetadata=function(t,r,n){var o=this;if(this._directiveCache.has(r))return null;r=e.resolveForwardRef(r);var i=this.getNonNormalizedDirectiveMetadata(r),s=i.annotation,a=i.metadata,u=function(t){var e=new Qo({isHost:!1,type:a.type,isComponent:a.isComponent,selector:a.selector,exportAs:a.exportAs,changeDetection:a.changeDetection,inputs:a.inputs,outputs:a.outputs,hostListeners:a.hostListeners,hostProperties:a.hostProperties,hostAttributes:a.hostAttributes,providers:a.providers,viewProviders:a.viewProviders,queries:a.queries,viewQueries:a.viewQueries,entryComponents:a.entryComponents,componentViewType:a.componentViewType,rendererType:a.rendererType,componentFactory:a.componentFactory,template:t});return t&&o.initComponentFactory(a.componentFactory,t.ngContentSelectors),o._directiveCache.set(r,e),o._summaryCache.set(r,e.toSummary()),e};if(a.isComponent){var c=a.template,l=this._directiveNormalizer.normalizeTemplate({ngModuleType:t,componentType:r,moduleUrl:cr(this._reflector,r,s),encapsulation:c.encapsulation,template:c.template,templateUrl:c.templateUrl,styles:c.styles,styleUrls:c.styleUrls,animations:c.animations,interpolation:c.interpolation});return l.syncResult?(u(l.syncResult),null):n?(this._reportError(hr(r),r),null):l.asyncResult.then(u)}return u(null),null},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var r=this;if(t=e.resolveForwardRef(t),!t)return null;var n=this._nonNormalizedDirectiveCache.get(t);if(n)return n;var o=this._directiveResolver.resolve(t,!1);if(!o)return null;var i=void 0;if(o instanceof e.Component){G("styles",o.styles),G("styleUrls",o.styleUrls),W("interpolation",o.interpolation);var s=o.animations;i=new Ko({encapsulation:y(o.encapsulation),template:y(o.template),templateUrl:y(o.templateUrl),styles:o.styles||[],styleUrls:o.styleUrls||[],animations:s||[],interpolation:y(o.interpolation),isInline:!!o.template,externalStylesheets:[],ngContentSelectors:[]})}var a=null,u=[],c=[],l=o.selector;o instanceof e.Component?(a=o.changeDetection,o.viewProviders&&(u=this._getProvidersMetadata(o.viewProviders,c,'viewProviders for "'+pr(t)+'"',[],t)),o.entryComponents&&(c=ar(o.entryComponents).map(function(t){return r._getEntryComponentMetadata(t)}).concat(c)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(this._reportError(v("Directive "+pr(t)+" has no selector, please add it!"),t),l="error");var p=[];null!=o.providers&&(p=this._getProvidersMetadata(o.providers,c,'providers for "'+pr(t)+'"',[],t));var h=[],f=[];null!=o.queries&&(h=this._getQueriesMetadata(o.queries,!1,t),f=this._getQueriesMetadata(o.queries,!0,t));var d=Qo.create({isHost:!1,selector:l,exportAs:y(o.exportAs),isComponent:!!i,type:this._getTypeMetadata(t),template:i,changeDetection:a,inputs:o.inputs||[],outputs:o.outputs||[],host:o.host||{},providers:p||[],viewProviders:u||[],queries:h||[],viewQueries:f||[],entryComponents:c,componentViewType:i?this.getComponentViewClass(t):null,rendererType:i?this.getRendererType(t):null,componentFactory:null});return i&&(d.componentFactory=this.getComponentFactory(l,t,d.inputs,d.outputs)),n={metadata:d,annotation:o},this._nonNormalizedDirectiveCache.set(t,n),n},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(v("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+pr(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,Wo.Directive);return e||this._reportError(v("Illegal state: Could not load the summary for directive "+pr(t)+"."),t),e},t.prototype.isDirective=function(t){return this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return this._pipeResolver.isPipe(t)},t.prototype.getNgModuleSummary=function(t){var e=this._loadSummary(t,Wo.NgModule);if(!e){var r=this.getNgModuleMetadata(t,!1);e=r?r.toSummary():null,e&&this._summaryCache.set(t,e)}return e},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,r){var n=this;void 0===r&&(r=!0);var o=this.getNgModuleMetadata(t,r),i=[];return o&&(o.declaredDirectives.forEach(function(r){var o=n._loadDirectiveMetadata(t,r.reference,e);o&&i.push(o)}),o.declaredPipes.forEach(function(t){return n._loadPipeMetadata(t.reference)})),Promise.all(i)},t.prototype.getNgModuleMetadata=function(t,r){var n=this;void 0===r&&(r=!0),t=e.resolveForwardRef(t);var o=this._ngModuleCache.get(t);if(o)return o;var i=this._ngModuleResolver.resolve(t,r);if(!i)return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=[];i.imports&&ar(i.imports).forEach(function(e){var r=void 0;if(ur(e))r=e;else if(e&&e.ngModule){var o=e;r=o.ngModule,o.providers&&p.push.apply(p,n._getProvidersMetadata(o.providers,h,"provider for the NgModule '"+pr(r)+"'",[],e))}if(!r)return void n._reportError(v("Unexpected value '"+pr(e)+"' imported by the module '"+pr(t)+"'"),t);if(!n._checkSelfImport(t,r)){var i=n.getNgModuleSummary(r);return i?void c.push(i):void n._reportError(v("Unexpected "+n._getTypeDescriptor(e)+" '"+pr(e)+"' imported by the module '"+pr(t)+"'. Please add a @NgModule annotation."),t)}}),i.exports&&ar(i.exports).forEach(function(e){if(!ur(e))return void n._reportError(v("Unexpected value '"+pr(e)+"' exported by the module '"+pr(t)+"'"),t);var r=n.getNgModuleSummary(e);r?l.push(r):a.push(n._getIdentifierMetadata(e))});var m=this._getTransitiveNgModuleMetadata(c,l);i.declarations&&ar(i.declarations).forEach(function(e){if(!ur(e))return void n._reportError(v("Unexpected value '"+pr(e)+"' declared by the module '"+pr(t)+"'"),t);var r=n._getIdentifierMetadata(e);if(n._directiveResolver.isDirective(e))m.addDirective(r),s.push(r),n._addTypeToModule(e,t);else{if(!n._pipeResolver.isPipe(e))return void n._reportError(v("Unexpected "+n._getTypeDescriptor(e)+" '"+pr(e)+"' declared by the module '"+pr(t)+"'. Please add a @Pipe/@Directive/@Component annotation."),t);m.addPipe(r),m.pipes.push(r),u.push(r),n._addTypeToModule(e,t)}});var y=[],g=[];return a.forEach(function(e){if(m.directivesSet.has(e.reference))y.push(e),m.addExportedDirective(e);else{if(!m.pipesSet.has(e.reference))return void n._reportError(v("Can't export "+n._getTypeDescriptor(e.reference)+" "+pr(e.reference)+" from "+pr(t)+" as it was neither declared nor imported!"),t);g.push(e),m.addExportedPipe(e)}}),i.providers&&p.push.apply(p,this._getProvidersMetadata(i.providers,h,"provider for the NgModule '"+pr(t)+"'",[],t)),i.entryComponents&&h.push.apply(h,ar(i.entryComponents).map(function(t){return n._getEntryComponentMetadata(t)})),i.bootstrap&&ar(i.bootstrap).forEach(function(e){return ur(e)?void f.push(n._getIdentifierMetadata(e)):void n._reportError(v("Unexpected value '"+pr(e)+"' used in the bootstrap property of module '"+pr(t)+"'"),t)}),h.push.apply(h,f.map(function(t){return n._getEntryComponentMetadata(t.reference)})),i.schemas&&d.push.apply(d,ar(i.schemas)),o=new Zo({type:this._getTypeMetadata(t),providers:p,entryComponents:h,bootstrapComponents:f,schemas:d,declaredDirectives:s,exportedDirectives:y,declaredPipes:u,exportedPipes:g,importedModules:c,exportedModules:l,transitiveModule:m,id:i.id||null}),h.forEach(function(t){return m.addEntryComponent(t)}),p.forEach(function(t){return m.addProvider(t,o.type)}),m.addModule(o.type),this._ngModuleCache.set(t,o),o},t.prototype._checkSelfImport=function(t,e){return t===e?(this._reportError(v("'"+pr(t)+"' module can't import itself"),t),!0):!1},t.prototype._getTypeDescriptor=function(t){return this._directiveResolver.isDirective(t)?"directive":this._pipeResolver.isPipe(t)?"pipe":this._ngModuleResolver.isNgModule(t)?"module":t.provide?"provider":"value"},t.prototype._addTypeToModule=function(t,e){var r=this._ngModuleOfTypes.get(t);return r&&r!==e?void this._reportError(v("Type "+pr(t)+" is part of the declarations of 2 modules: "+pr(r)+" and "+pr(e)+"! "+("Please consider moving "+pr(t)+" to a higher module that imports "+pr(r)+" and "+pr(e)+". ")+("You can also create a new NgModule that exports and includes "+pr(t)+" then import that NgModule in "+pr(r)+" and "+pr(e)+".")),e):void this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var r=new Yo,n=new Map;return t.concat(e).forEach(function(t){t.modules.forEach(function(t){return r.addModule(t)}),t.entryComponents.forEach(function(t){return r.addEntryComponent(t)});var e=new Set;t.providers.forEach(function(t){var o=R(t.provider.token),i=n.get(o);i||(i=new Set,n.set(o,i));var s=t.module.reference;(e.has(o)||!i.has(s))&&(i.add(s),e.add(o),r.addProvider(t.provider,t.module))})}),e.forEach(function(t){t.exportedDirectives.forEach(function(t){return r.addExportedDirective(t)}),t.exportedPipes.forEach(function(t){return r.addExportedPipe(t)})}),t.forEach(function(t){t.exportedDirectives.forEach(function(t){return r.addDirective(t)}),t.exportedPipes.forEach(function(t){return r.addPipe(t)})}),r},t.prototype._getIdentifierMetadata=function(t){return t=e.resolveForwardRef(t),{reference:t}},t.prototype.isInjectable=function(t){var r=this._reflector.annotations(t);return r.some(function(t){return t.constructor===e.Injectable})},t.prototype.getInjectableSummary=function(t){return{summaryKind:Wo.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype._getInjectableMetadata=function(t,e){void 0===e&&(e=null);var r=this._loadSummary(t,Wo.Injectable);return r?r.type:this._getTypeMetadata(t,e)},t.prototype._getTypeMetadata=function(t,r,n){void 0===r&&(r=null),void 0===n&&(n=!0);var o=this._getIdentifierMetadata(t);return{reference:o.reference,diDeps:this._getDependenciesMetadata(o.reference,r,n),lifecycleHooks:e.ɵLIFECYCLE_HOOKS_VALUES.filter(function(t){return er(t,o.reference)})}},t.prototype._getFactoryMetadata=function(t,r){return void 0===r&&(r=null),t=e.resolveForwardRef(t),{reference:t,diDeps:this._getDependenciesMetadata(t,r)}},t.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(v("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+pr(t)+"."),t),e||null},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,Wo.Pipe);return e||this._reportError(v("Illegal state: Could not load the summary for pipe "+pr(t)+"."),t),e},t.prototype.getOrLoadPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||(e=this._loadPipeMetadata(t)),e},t.prototype._loadPipeMetadata=function(t){t=e.resolveForwardRef(t);var r=this._pipeResolver.resolve(t),n=new Xo({type:this._getTypeMetadata(t),name:r.name,pure:!!r.pure});return this._pipeCache.set(t,n),this._summaryCache.set(t,n.toSummary()),n},t.prototype._getDependenciesMetadata=function(t,r,n){var o=this;void 0===n&&(n=!0);var i=!1,s=r||this._reflector.parameters(t)||[],a=s.map(function(t){var r=!1,n=!1,s=!1,a=!1,u=!1,c=null;return Array.isArray(t)?t.forEach(function(t){t instanceof e.Host?n=!0:t instanceof e.Self?s=!0:t instanceof e.SkipSelf?a=!0:t instanceof e.Optional?u=!0:t instanceof e.Attribute?(r=!0,c=t.attributeName):t instanceof e.Inject?c=t.token:t instanceof e.InjectionToken?c=t:ur(t)&&null==c&&(c=t)}):c=t,null==c?(i=!0,null):{isAttribute:r,isHost:n,isSelf:s,isSkipSelf:a,isOptional:u,token:o._getTokenMetadata(c)}});if(i){var u=a.map(function(t){return t?pr(t.token):"?"}).join(", "),c="Can't resolve all parameters for "+pr(t)+": ("+u+").";n?this._reportError(v(c),t):this._console.warn("Warning: "+c+" This will become an error in Angular v5.x")}return a},t.prototype._getTokenMetadata=function(t){t=e.resolveForwardRef(t);var r;return r="string"==typeof t?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,r,n,o,i){var s=this;return void 0===o&&(o=[]),t.forEach(function(a,u){if(Array.isArray(a))s._getProvidersMetadata(a,r,n,o);else{a=e.resolveForwardRef(a);var c=void 0;if(a&&"object"==typeof a&&a.hasOwnProperty("provide"))s._validateProvider(a),c=new Jo(a.provide,a);else{if(!ur(a)){if(void 0===a)return void s._reportError(v("Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files."));var l=t.reduce(function(t,e,r){return u>r?t.push(""+pr(e)):r==u?t.push("?"+pr(e)+"?"):r==u+1&&t.push("..."),t},[]).join(", ");return void s._reportError(v("Invalid "+(n?n:"provider")+" - only instances of Provider and Type are allowed, got: ["+l+"]"),i)}c=new Jo(a,{useClass:a})}c.token===fe(zu.ANALYZE_FOR_ENTRY_COMPONENTS)?r.push.apply(r,s._getEntryComponentsFromProvider(c,i)):o.push(s.getProviderMetadata(c))}}),o},t.prototype._validateProvider=function(t){t.hasOwnProperty("useClass")&&null==t.useClass&&this._reportError(v("Invalid provider for "+pr(t.provide)+". useClass cannot be "+t.useClass+".\n           Usually it happens when:\n           1. There's a circular dependency (might be caused by using index.ts (barrel) files).\n           2. Class was used before it was declared. Use forwardRef in this case."))},t.prototype._getEntryComponentsFromProvider=function(t,e){var r=this,n=[],o=[];return t.useFactory||t.useExisting||t.useClass?(this._reportError(v("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),e),[]):t.multi?(lr(t.useValue,o),o.forEach(function(t){var e=r._getEntryComponentMetadata(t.reference,!1);e&&n.push(e)}),n):(this._reportError(v("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),e),[])},t.prototype._getEntryComponentMetadata=function(t,e){void 0===e&&(e=!0);var r=this.getNonNormalizedDirectiveMetadata(t);if(r&&r.metadata.isComponent)return{componentType:t,componentFactory:r.metadata.componentFactory};var n=this._loadSummary(t,Wo.Directive);if(n&&n.isComponent)return{componentType:t,componentFactory:n.componentFactory};if(e)throw v(t.name+" cannot be used as an entry component.");return null},t.prototype.getProviderMetadata=function(t){var e=void 0,r=null,n=null,o=this._getTokenMetadata(t.token);return t.useClass?(r=this._getInjectableMetadata(t.useClass,t.dependencies),e=r.diDeps,t.token===t.useClass&&(o={identifier:r})):t.useFactory&&(n=this._getFactoryMetadata(t.useFactory,t.dependencies),e=n.diDeps),{token:o,useClass:r,useValue:t.useValue,useFactory:n,useExisting:t.useExisting?this._getTokenMetadata(t.useExisting):void 0,deps:e,multi:t.multi}},t.prototype._getQueriesMetadata=function(t,e,r){var n=this,o=[];return Object.keys(t).forEach(function(i){var s=t[i];s.isViewQuery===e&&o.push(n._getQueryMetadata(s,i,r))}),o},t.prototype._queryVarBindings=function(t){return t.split(/\s*,\s*/)},t.prototype._getQueryMetadata=function(t,e,r){var n,o=this;return"string"==typeof t.selector?n=this._queryVarBindings(t.selector).map(function(t){return o._getTokenMetadata(t)}):t.selector?n=[this._getTokenMetadata(t.selector)]:(this._reportError(v("Can't construct a query for the property \""+e+'" of "'+pr(r)+"\" since the query selector wasn't defined."),r),n=[]),{selectors:n,first:t.first,descendants:t.descendants,propertyName:e,read:t.read?this._getTokenMetadata(t.read):null}},t.prototype._reportError=function(t,e,r){if(!this._errorCollector)throw t;this._errorCollector(t,e),r&&this._errorCollector(t,r)},t}();dl.decorators=[{type:z}],dl.ctorParameters=function(){return[{type:ti},{type:ll},{type:al},{type:pl},{type:hl},{type:Ju},{type:ol},{type:e.ɵConsole},{type:yo,decorators:[{type:e.Optional}]},{type:e.ɵReflectorReader},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[fl]}]}]};var ml=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.visitOther=function(t,e){e.push({reference:t})},e}(Oo),yl={};yl.Const=0,yl[yl.Const]="Const";var vl=function(){function t(t){void 0===t&&(t=null),this.modifiers=t,t||(this.modifiers=[])}return t.prototype.visitType=function(){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),gl={};gl.Dynamic=0,gl.Bool=1,gl.String=2,gl.Int=3,gl.Number=4,gl.Function=5,gl.Inferred=6,gl[gl.Dynamic]="Dynamic",gl[gl.Bool]="Bool",gl[gl.String]="String",gl[gl.Int]="Int",gl[gl.Number]="Number",gl[gl.Function]="Function",gl[gl.Inferred]="Inferred";var _l=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this,r)||this;return n.name=e,n}return Zn(e,t),e.prototype.visitType=function(t,e){return t.visitBuiltintType(this,e)},e}(vl),bl=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this,r)||this;return n.value=e,n}return Zn(e,t),e.prototype.visitType=function(t,e){return t.visitExpressionType(this,e)},e}(vl),wl=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this,r)||this;return n.of=e,n}return Zn(e,t),e.prototype.visitType=function(t,e){return t.visitArrayType(this,e)},e}(vl),Cl=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this,r)||this;return n.valueType=e||null,n}return Zn(e,t),e.prototype.visitType=function(t,e){return t.visitMapType(this,e)},e}(vl),El=new _l(gl.Dynamic),Sl=new _l(gl.Inferred),xl=new _l(gl.Bool),Tl=(new _l(gl.Int),new _l(gl.Number),new _l(gl.String),new _l(gl.Function),{});Tl.Equals=0,Tl.NotEquals=1,Tl.Identical=2,Tl.NotIdentical=3,Tl.Minus=4,Tl.Plus=5,Tl.Divide=6,Tl.Multiply=7,Tl.Modulo=8,Tl.And=9,Tl.Or=10,Tl.Lower=11,Tl.LowerEquals=12,Tl.Bigger=13,Tl.BiggerEquals=14,Tl[Tl.Equals]="Equals",Tl[Tl.NotEquals]="NotEquals",Tl[Tl.Identical]="Identical",Tl[Tl.NotIdentical]="NotIdentical",Tl[Tl.Minus]="Minus",Tl[Tl.Plus]="Plus",Tl[Tl.Divide]="Divide",Tl[Tl.Multiply]="Multiply",Tl[Tl.Modulo]="Modulo",Tl[Tl.And]="And",Tl[Tl.Or]="Or",Tl[Tl.Lower]="Lower",Tl[Tl.LowerEquals]="LowerEquals",Tl[Tl.Bigger]="Bigger",Tl[Tl.BiggerEquals]="BiggerEquals";var Pl=function(){function t(t,e){this.type=t||null,this.sourceSpan=e||null}return t.prototype.visitExpression=function(){},t.prototype.prop=function(t,e){return new Gl(this,t,null,e)},t.prototype.key=function(t,e,r){return new Wl(this,t,e,r)},t.prototype.callMethod=function(t,e,r){return new Nl(this,t,e,null,r)},t.prototype.callFn=function(t,e){return new Dl(this,t,null,e)},t.prototype.instantiate=function(t,e,r){return new jl(this,t,e,r)},t.prototype.conditional=function(t,e,r){return void 0===e&&(e=null),new Fl(this,t,e,null,r)},t.prototype.equals=function(t,e){return new zl(Tl.Equals,this,t,null,e)},t.prototype.notEquals=function(t,e){return new zl(Tl.NotEquals,this,t,null,e)},t.prototype.identical=function(t,e){return new zl(Tl.Identical,this,t,null,e)},t.prototype.notIdentical=function(t,e){return new zl(Tl.NotIdentical,this,t,null,e)},t.prototype.minus=function(t,e){return new zl(Tl.Minus,this,t,null,e)},t.prototype.plus=function(t,e){return new zl(Tl.Plus,this,t,null,e)},t.prototype.divide=function(t,e){return new zl(Tl.Divide,this,t,null,e)},t.prototype.multiply=function(t,e){return new zl(Tl.Multiply,this,t,null,e)},t.prototype.modulo=function(t,e){return new zl(Tl.Modulo,this,t,null,e)},t.prototype.and=function(t,e){return new zl(Tl.And,this,t,null,e)},t.prototype.or=function(t,e){return new zl(Tl.Or,this,t,null,e)},t.prototype.lower=function(t,e){return new zl(Tl.Lower,this,t,null,e)},t.prototype.lowerEquals=function(t,e){return new zl(Tl.LowerEquals,this,t,null,e)},t.prototype.bigger=function(t,e){return new zl(Tl.Bigger,this,t,null,e)},t.prototype.biggerEquals=function(t,e){return new zl(Tl.BiggerEquals,this,t,null,e)},t.prototype.isBlank=function(t){return this.equals(tp,t)},t.prototype.cast=function(t,e){return new Bl(this,t,e)},t.prototype.toStmt=function(){return new ip(this,null)},t}(),Al={};Al.This=0,Al.Super=1,Al.CatchError=2,Al.CatchStack=3,Al[Al.This]="This",Al[Al.Super]="Super",Al[Al.CatchError]="CatchError",Al[Al.CatchStack]="CatchStack";var Ol=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return"string"==typeof e?(o.name=e,o.builtin=null):(o.name=null,o.builtin=e),o}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadVarExpr(this,e)},e.prototype.set=function(t){if(!this.name)throw new Error("Built in variable "+this.builtin+" can not be assigned to.");return new Ml(this.name,t,null,this.sourceSpan)},e}(Pl),Ml=function(t){function e(e,r,n,o){var i=t.call(this,n||r.type,o)||this;return i.name=e,i.value=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteVarExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return new np(this.name,this.value,t,e,this.sourceSpan)},e}(Pl),Rl=function(t){function e(e,r,n,o,i){var s=t.call(this,o||n.type,i)||this;return s.receiver=e,s.index=r,s.value=n,s}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteKeyExpr(this,e)},e}(Pl),kl=function(t){function e(e,r,n,o,i){var s=t.call(this,o||n.type,i)||this;return s.receiver=e,s.name=r,s.value=n,s}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitWritePropExpr(this,e)},e}(Pl),Il={};Il.ConcatArray=0,Il.SubscribeObservable=1,Il.Bind=2,Il[Il.ConcatArray]="ConcatArray",Il[Il.SubscribeObservable]="SubscribeObservable",Il[Il.Bind]="Bind";var Nl=function(t){function e(e,r,n,o,i){var s=t.call(this,o,i)||this;return s.receiver=e,s.args=n,"string"==typeof r?(s.name=r,s.builtin=null):(s.name=null,s.builtin=r),s}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeMethodExpr(this,e)},e}(Pl),Dl=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.fn=e,i.args=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeFunctionExpr(this,e)},e}(Pl),jl=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.classExpr=e,i.args=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitInstantiateExpr(this,e)},e}(Pl),Ll=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.value=e,o}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralExpr(this,e)},e}(Pl),Vl=function(t){function e(e,r,n,o){void 0===n&&(n=null);var i=t.call(this,r,o)||this;return i.value=e,i.typeParams=n,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitExternalExpr(this,e)},e}(Pl),Fl=function(t){function e(e,r,n,o,i){void 0===n&&(n=null);var s=t.call(this,o||r.type,i)||this;return s.condition=e,s.falseCase=n,s.trueCase=r,s}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitConditionalExpr(this,e)},e}(Pl),Ul=function(t){function e(e,r){var n=t.call(this,xl,r)||this;return n.condition=e,n}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitNotExpr(this,e)},e}(Pl),Bl=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.value=e,o}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitCastExpr(this,e)},e}(Pl),Hl=function(){function t(t,e){void 0===e&&(e=null),this.name=t,this.type=e}return t}(),ql=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.params=e,i.statements=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitFunctionExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===e&&(e=null),new op(t,this.params,this.statements,this.type,e,this.sourceSpan)},e}(Pl),zl=function(t){function e(e,r,n,o,i){var s=t.call(this,o||r.type,i)||this;return s.operator=e,s.rhs=n,s.lhs=r,s}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitBinaryOperatorExpr(this,e)},e}(Pl),Gl=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.receiver=e,i.name=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadPropExpr(this,e)},e.prototype.set=function(t){return new kl(this.receiver,this.name,t,null,this.sourceSpan)},e}(Pl),Wl=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.receiver=e,i.index=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadKeyExpr(this,e)},e.prototype.set=function(t){return new Rl(this.receiver,this.index,t,null,this.sourceSpan)},e}(Pl),$l=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.entries=e,o}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralArrayExpr(this,e)},e}(Pl),Kl=function(){function t(t,e,r){void 0===r&&(r=!1),this.key=t,this.value=e,this.quoted=r}return t}(),Ql=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.entries=e,o.valueType=null,r&&(o.valueType=r.valueType),o}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralMapExpr(this,e)},e}(Pl),Xl=function(t){function e(e,r){var n=t.call(this,e[e.length-1].type,r)||this;return n.parts=e,n}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitCommaExpr(this,e)},e}(Pl),Zl=new Ol(Al.This,null,null),Yl=new Ol(Al.Super,null,null),Jl=(new Ol(Al.CatchError,null,null),new Ol(Al.CatchStack,null,null),new Ll(null,null,null)),tp=new Ll(null,Sl,null),ep={};ep.Final=0,ep.Private=1,ep[ep.Final]="Final",ep[ep.Private]="Private";var rp=function(){function t(t,e){this.modifiers=t||[],this.sourceSpan=e||null}return t.prototype.visitStatement=function(){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),np=function(t){function e(e,r,n,o,i){void 0===o&&(o=null);var s=t.call(this,o,i)||this;return s.name=e,s.value=r,s.type=n||r.type,s}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareVarStmt(this,e)},e}(rp),op=function(t){function e(e,r,n,o,i,s){void 0===i&&(i=null);var a=t.call(this,i,s)||this;return a.name=e,a.params=r,a.statements=n,a.type=o||null,a}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareFunctionStmt(this,e)},e}(rp),ip=function(t){function e(e,r){var n=t.call(this,null,r)||this;return n.expr=e,n}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitExpressionStmt(this,e)},e}(rp),sp=function(t){function e(e,r){var n=t.call(this,null,r)||this;return n.value=e,n}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitReturnStmt(this,e)},e}(rp),ap=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}(),up=function(t){function e(e,r,n){void 0===n&&(n=null);var o=t.call(this,r,n)||this;return o.name=e,o}return Zn(e,t),e}(ap),cp=function(t){function e(e,r,n,o,i){void 0===i&&(i=null);var s=t.call(this,o,i)||this;return s.name=e,s.params=r,s.body=n,s}return Zn(e,t),e}(ap),lp=function(t){function e(e,r,n,o){void 0===o&&(o=null);var i=t.call(this,n,o)||this;return i.name=e,i.body=r,i}return Zn(e,t),e}(ap),pp=function(t){function e(e,r,n,o,i,s,a,u){void 0===a&&(a=null);var c=t.call(this,a,u)||this;return c.name=e,c.parent=r,c.fields=n,c.getters=o,c.constructorMethod=i,c.methods=s,c}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareClassStmt(this,e)},e}(rp),hp=function(t){function e(e,r,n,o){void 0===n&&(n=[]);var i=t.call(this,null,o)||this;return i.condition=e,i.trueCase=r,i.falseCase=n,i}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitIfStmt(this,e)},e}(rp),fp=function(t){function e(e,r,n){var o=t.call(this,null,n)||this;
 
-},o.prototype.tick=function(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var t=o._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}finally{this._runningTick=!1,Li(t)}},o.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(o.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),o}(Ji);ts._tickScope=ji("ApplicationRef#tick()"),ts.decorators=[{type:Io}],ts.ctorParameters=function(){return[{type:Hi},{type:vi},{type:Uo},{type:Go},{type:Ti},{type:li}]};var es=function(){function t(t,e,r,n,o,i){this.id=t,this.templateUrl=e,this.slotCount=r,this.encapsulation=n,this.styles=o,this.animations=i}return t}(),rs=function(){function t(){}return t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.source=function(){},t}(),ns=function(){function t(){}return t.prototype.selectRootElement=function(){},t.prototype.createElement=function(){},t.prototype.createViewRoot=function(){},t.prototype.createTemplateAnchor=function(){},t.prototype.createText=function(){},t.prototype.projectNodes=function(){},t.prototype.attachViewAfter=function(){},t.prototype.detachView=function(){},t.prototype.destroyView=function(){},t.prototype.listen=function(){},t.prototype.listenGlobal=function(){},t.prototype.setElementProperty=function(){},t.prototype.setElementAttribute=function(){},t.prototype.setBindingDebugInfo=function(){},t.prototype.setElementClass=function(){},t.prototype.setElementStyle=function(){},t.prototype.invokeElementMethod=function(){},t.prototype.setText=function(){},t.prototype.animate=function(){},t}(),os=(new Jn("Renderer2Interceptor"),function(){function t(){}return t.prototype.renderComponent=function(){},t}()),is=function(){function t(){}return t.prototype.createRenderer=function(){},t}(),ss={};ss.Important=1,ss.DashCase=2,ss[ss.Important]="Important",ss[ss.DashCase]="DashCase";var as=function(){function t(){}return t.prototype.data=function(){},t.prototype.destroy=function(){},t.prototype.createElement=function(){},t.prototype.createComment=function(){},t.prototype.createText=function(){},t.prototype.appendChild=function(){},t.prototype.insertBefore=function(){},t.prototype.removeChild=function(){},t.prototype.selectRootElement=function(){},t.prototype.parentNode=function(){},t.prototype.nextSibling=function(){},t.prototype.setAttribute=function(){},t.prototype.removeAttribute=function(){},t.prototype.addClass=function(){},t.prototype.removeClass=function(){},t.prototype.setStyle=function(){},t.prototype.removeStyle=function(){},t.prototype.setProperty=function(){},t.prototype.setValue=function(){},t.prototype.listen=function(){},t}(),us=function(){function t(t){this.nativeElement=t}return t}(),cs=function(){function t(){}return t.prototype.load=function(){},t}(),ls=new Map,ps=function(){function t(){this._dirty=!0,this._results=[],this._emitter=new Ui}return Object.defineProperty(t.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[s()]=function(){return this._results[s()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=_t(t),this._dirty=!1},t.prototype.notifyOnChanges=function(){this._emitter.emit(this)},t.prototype.setDirty=function(){this._dirty=!0},Object.defineProperty(t.prototype,"dirty",{get:function(){return this._dirty},enumerable:!0,configurable:!0}),t}(),hs="#",fs="NgFactory",ds=function(){function t(){}return t}(),ms={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},ys=function(){function t(t,e){this._compiler=t,this._config=e||ms}return t.prototype.load=function(t){var e=this._compiler instanceof _i;return e?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=t.split(hs),n=r[0],o=r[1];return void 0===o&&(o="default"),System["import"](n).then(function(t){return t[o]}).then(function(t){return bt(t,n,o)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split(hs),r=e[0],n=e[1],o=fs;return void 0===n&&(n="default",o=""),System["import"](this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[n+o]}).then(function(t){return bt(t,r,n)})},t}();ys.decorators=[{type:Io}],ys.ctorParameters=function(){return[{type:_i},{type:ds,decorators:[{type:ko}]}]};var vs=function(){function t(){}return t.prototype.elementRef=function(){},t.prototype.createEmbeddedView=function(){},t}(),gs=function(){function t(){}return t.prototype.element=function(){},t.prototype.injector=function(){},t.prototype.parentInjector=function(){},t.prototype.clear=function(){},t.prototype.get=function(){},t.prototype.length=function(){},t.prototype.createEmbeddedView=function(){},t.prototype.createComponent=function(){},t.prototype.insert=function(){},t.prototype.move=function(){},t.prototype.indexOf=function(){},t.prototype.remove=function(){},t.prototype.detach=function(){},t}(),_s=function(){function t(){}return t.prototype.markForCheck=function(){},t.prototype.detach=function(){},t.prototype.detectChanges=function(){},t.prototype.checkNoChanges=function(){},t.prototype.reattach=function(){},t}(),bs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.destroy=function(){},e.prototype.destroyed=function(){},e.prototype.onDestroy=function(){},e}(_s),ws=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.context=function(){},e.prototype.rootNodes=function(){},e}(bs),Cs=function(){function t(t,e){this.name=t,this.callback=e}return t}(),Es=function(){function t(t,e,r){this._debugContext=r,this.nativeNode=t,e&&e instanceof Ss?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"source",{get:function(){return"Deprecated since v4"},enumerable:!0,configurable:!0}),t}(),Ss=function(t){function e(e,r,n){var o=t.call(this,e,r,n)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return Zn(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var r=this,n=this.childNodes.indexOf(t);-1!==n&&((o=this.childNodes).splice.apply(o,[n+1,0].concat(e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=r}));var o},e.prototype.insertBefore=function(t,e){var r=this.childNodes.indexOf(t);-1===r?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(r,0,e))},e.prototype.query=function(t){var e=this.queryAll(t);return e[0]||null},e.prototype.queryAll=function(t){var e=[];return Ct(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return Et(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(r){r.name==t&&r.callback(e)})},e}(Es),xs=new Map,Ts=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t}(),Ps=function(){function t(){this.hasWrappedValue=!1}return t.prototype.unwrap=function(t){return t instanceof Ts?(this.hasWrappedValue=!0,t.wrapped):t},t.prototype.reset=function(){this.hasWrappedValue=!1},t}(),As=function(){function t(t,e,r){this.previousValue=t,this.currentValue=e,this.firstChange=r}return t.prototype.isFirstChange=function(){return this.firstChange},t}(),Os=function(){function t(){}return t.prototype.supports=function(t){return At(t)},t.prototype.create=function(t,e){return new Rs(e||t)},t}(),Ms=function(t,e){return e},Rs=function(){function t(t){this._length=0,this._collection=null,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Ms}return Object.defineProperty(t.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,r=this._removalsHead,n=0,o=null;e||r;){var i=!r||e&&e.currentIndex<kt(r,n,o)?e:r,s=kt(i,n,o),a=i.currentIndex;if(i===r)n--,r=r._nextRemoved;else if(e=e._next,null==i.previousIndex)n++;else{o||(o=[]);var u=s-n,c=a-n;if(u!=c){for(var l=0;u>l;l++){var p=l<o.length?o[l]:o[l]=0,h=p+l;h>=c&&u>h&&(o[l]=p+1)}var f=i.previousIndex;o[f]=c-u}}s!==a&&t(i,s,a)}},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachMovedItem=function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.forEachIdentityChange=function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)},t.prototype.diff=function(t){if(null==t&&(t=[]),!At(t))throw new Error("Error trying to diff '"+c(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var r,n,o,i=this._itHead,s=!1;if(Array.isArray(t)){this._length=t.length;for(var a=0;a<this._length;a++)n=t[a],o=this._trackByFn(a,n),null!==i&&u(i.trackById,o)?(s&&(i=this._verifyReinsertion(i,n,o,a)),u(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,o,a),s=!0),i=i._next}else r=0,Mt(t,function(t){o=e._trackByFn(r,t),null!==i&&u(i.trackById,o)?(s&&(i=e._verifyReinsertion(i,t,o,r)),u(i.item,t)||e._addIdentityChange(i,t)):(i=e._mismatch(i,t,o,r),s=!0),i=i._next,r++}),this._length=r;return this._truncate(i),this._collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,r,n){var o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),t=null===this._linkedRecords?null:this._linkedRecords.get(r,n),null!==t?(u(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,n)):(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null),null!==t?(u(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,n)):t=this._addAfter(new ks(e,r),o,n)),t},t.prototype._verifyReinsertion=function(t,e,r,n){var o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?t=this._reinsertAfter(o,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,e,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var n=t._prevRemoved,o=t._nextRemoved;return null===n?this._removalsHead=o:n._nextRemoved=o,null===o?this._removalsTail=n:o._prevRemoved=n,this._insertAfter(t,e,r),this._addToMoves(t,r),t},t.prototype._moveAfter=function(t,e,r){return this._unlink(t),this._insertAfter(t,e,r),this._addToMoves(t,r),t},t.prototype._addAfter=function(t,e,r){return this._insertAfter(t,e,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,r){var n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ns),this._linkedRecords.put(t),t.currentIndex=r,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,r=t._next;return null===e?this._itHead=r:e._next=r,null===r?this._itTail=e:r._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ns),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,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t},t.prototype.toString=function(){var t=[];this.forEachItem(function(e){return t.push(e)});var e=[];this.forEachPreviousItem(function(t){return e.push(t)});var r=[];this.forEachAddedItem(function(t){return r.push(t)});var n=[];this.forEachMovedItem(function(t){return n.push(t)});var o=[];this.forEachRemovedItem(function(t){return o.push(t)});var i=[];return this.forEachIdentityChange(function(t){return i.push(t)}),"collection: "+t.join(", ")+"\nprevious: "+e.join(", ")+"\nadditions: "+r.join(", ")+"\nmoves: "+n.join(", ")+"\nremovals: "+o.join(", ")+"\nidentityChanges: "+i.join(", ")+"\n"},t}(),ks=function(){function t(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}return t.prototype.toString=function(){return this.previousIndex===this.currentIndex?c(this.item):c(this.item)+"["+c(this.previousIndex)+"->"+c(this.currentIndex)+"]"},t}(),Is=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var r;for(r=this._head;null!==r;r=r._nextDup)if((null===e||e<r.currentIndex)&&u(r.trackById,t))return r;return null},t.prototype.remove=function(t){var e=t._prevDup,r=t._nextDup;return null===e?this._head=r:e._nextDup=r,null===r?this._tail=e:r._prevDup=e,null===this._head},t}(),Ns=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,r=this.map.get(e);r||(r=new Is,this.map.set(e,r)),r.add(t)},t.prototype.get=function(t,e){var r=t,n=this.map.get(r);return n?n.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById,r=this.map.get(e);return r.remove(t)&&this.map["delete"](e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t.prototype.toString=function(){return"_DuplicateMap("+c(this.map)+")"},t}(),Ds=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||Rt(t)},t.prototype.create=function(){return new js},t}(),js=function(){function t(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||Rt(t)))throw new Error("Error trying to diff '"+c(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var r=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(t,n){if(r&&r.key===n)e._maybeAddToChanges(r,t),e._appendAfter=r,r=r._next;else{var o=e._getOrCreateRecordForKey(n,t);r=e._insertBeforeOrAppend(r,o)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(var n=r;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records["delete"](n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},t.prototype._insertBeforeOrAppend=function(t,e){if(t){var r=t._prev;return e._next=t,e._prev=r,t._prev=e,r&&(r._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null},t.prototype._getOrCreateRecordForKey=function(t,e){if(this._records.has(t)){var r=this._records.get(t);this._maybeAddToChanges(r,e);var n=r._prev,o=r._next;return n&&(n._next=o),o&&(o._prev=n),r._next=null,r._prev=null,r}var i=new Ls(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},t.prototype._maybeAddToChanges=function(t,e){u(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype.toString=function(){var t=[],e=[],r=[],n=[],o=[];return this.forEachItem(function(e){return t.push(c(e))}),this.forEachPreviousItem(function(t){return e.push(c(t))}),this.forEachChangedItem(function(t){return r.push(c(t))}),this.forEachAddedItem(function(t){return n.push(c(t))}),this.forEachRemovedItem(function(t){return o.push(c(t))}),"map: "+t.join(", ")+"\nprevious: "+e.join(", ")+"\nadditions: "+n.join(", ")+"\nchanges: "+r.join(", ")+"\nremovals: "+o.join(", ")+"\n"},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(r){return e(t[r],r)})},t}(),Ls=function(){function t(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}return t.prototype.toString=function(){return u(this.previousValue,this.currentValue)?c(this.key):c(this.key)+"["+c(this.previousValue)+"->"+c(this.currentValue)+"]"},t}(),Vs=function(){function t(t){this.factories=t}return t.create=function(e,r){if(null!=r){var n=r.factories.slice();return e=e.concat(n),new t(e)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(r){if(!r)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,r)},deps:[[t,new Do,new ko]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(null!=e)return e;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+It(t)+"'")},t}(),Fs=function(){function t(t){this.factories=t}return t.create=function(e,r){if(r){var n=r.factories.slice();e=e.concat(n)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(r){if(!r)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,r)},deps:[[t,new Do,new ko]]}},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}(),Us=[new Ds],Hs=[new Os],Bs=new Vs(Hs),qs=new Fs(Us),zs=[{provide:di,useValue:"unknown"},Yi,{provide:Zi,useExisting:Yi},{provide:Jo,useFactory:Nt,deps:[]},{provide:Yo,useExisting:Jo},qi,vi],Gs=pt(null,"core",zs),Ws=new Jn("LocaleId"),$s=new Jn("Translations"),Ks=new Jn("TranslationsFormat"),Qs={};Qs.Error=0,Qs.Warning=1,Qs.Ignore=2,Qs[Qs.Error]="Error",Qs[Qs.Warning]="Warning",Qs[Qs.Ignore]="Ignore";var Xs={};Xs.NONE=0,Xs.HTML=1,Xs.STYLE=2,Xs.SCRIPT=3,Xs.URL=4,Xs.RESOURCE_URL=5,Xs[Xs.NONE]="NONE",Xs[Xs.HTML]="HTML",Xs[Xs.STYLE]="STYLE",Xs[Xs.SCRIPT]="SCRIPT",Xs[Xs.URL]="URL",Xs[Xs.RESOURCE_URL]="RESOURCE_URL";var Zs=function(){function t(){}return t.prototype.sanitize=function(){},t}(),Ys=function(){function t(){}return t.prototype.view=function(){},t.prototype.nodeIndex=function(){},t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.componentRenderElement=function(){},t.prototype.renderNode=function(){},t.prototype.logError=function(){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e]},t}(),Js={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},ta=function(){},ea=new Map,ra="$$undefined",na="$$empty",oa=0,ia=new WeakMap,sa=/^:([^:]+):(.+)$/,aa=[],ua={},ca=new Object,la=function(t){function e(e,r,n,o,i,s){var a=t.call(this)||this;return a.selector=e,a.componentType=r,a._inputs=o,a._outputs=i,a.ngContentSelectors=s,a.viewDefFactory=n,a}return Zn(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var r in e){var n=e[r];t.push({propName:r,templateName:n})}return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs){var r=this._outputs[e];t.push({propName:e,templateName:r})}return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,r,n){if(!n)throw new Error("ngModule should be provided");var o=le(this.viewDefFactory),i=o.nodes[0].element.componentProvider.index,s=Js.createRootView(t,e||[],r,o,n,ca),a=Lt(s,i).instance;return s.renderer.setAttribute(jt(s,0).renderElement,"ng-version",Mo.full),new pa(s,new fa(s),a)},e}(Ei),pa=function(t){function e(e,r,n){var o=t.call(this)||this;return o._view=e,o._viewRef=r,o._component=n,o._elDef=o._view.def.nodes[0],o}return Zn(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new us(jt(this._view,this._elDef.index).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new ma(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"instance",{get:function(){return this._component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostView",{get:function(){return this._viewRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"changeDetectorRef",{get:function(){return this._viewRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(Ci),ha=function(){function t(t,e,r){this._view=t,this._elDef=e,this._data=r,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new us(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new ma(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=re(t),t=t.parent;return t?new ma(t,e):new ma(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length,e=t-1;e>=0;e--){var r=Le(this._data,e);Js.destroyView(r)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var r=new fa(e);return r.attachToViewContainerRef(this),r}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,r){var n=t.createEmbeddedView(e||{});return this.insert(n,r),n},t.prototype.createComponent=function(t,e,r,n,o){var i=r||this.parentInjector;o||t instanceof Mi||(o=i.get(Ri));var s=t.create(i,n,void 0,o);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){var r=t,n=r._view;return je(this._view,this._data,e,n),r.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){var r=this._embeddedViews.indexOf(t._view);return Ve(this._data,r,e),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Le(this._data,t);e&&Js.destroyView(e)},t.prototype.detach=function(t){var e=Le(this._data,t);return e?new fa(e):null},t}(),fa=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return pe(this._view)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!==(8&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){Jt(this._view)},t.prototype.detach=function(){this._view.state&=-3},t.prototype.detectChanges=function(){Js.checkAndUpdateView(this._view)},t.prototype.checkNoChanges=function(){Js.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=2},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)),Js.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Ue(this._view),Js.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}(),da=function(t){function e(e,r){var n=t.call(this)||this;return n._parentView=e,n._def=r,n}return Zn(e,t),e.prototype.createEmbeddedView=function(t){return new fa(Js.createEmbeddedView(this._parentView,this._def,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new us(jt(this._parentView,this._def.index).renderElement)},enumerable:!0,configurable:!0}),e}(vs),ma=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){void 0===e&&(e=Uo.THROW_IF_NOT_FOUND);var r=this.elDef?0!==(16777216&this.elDef.flags):!1;return Js.resolveDep(this.view,this.elDef,r,{flags:0,token:t,tokenKey:Wt(t)},e)},t}(),ya=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var r=ve(e),n=r[0],o=r[1],i=this.delegate.createElement(o,n);return t&&this.delegate.appendChild(t,i),i},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var r=this.delegate.createText(e);return t&&this.delegate.appendChild(t,r),r},t.prototype.projectNodes=function(t,e){
-for(var r=0;r<e.length;r++)this.delegate.appendChild(t,e[r])},t.prototype.attachViewAfter=function(t,e){for(var r=this.delegate.parentNode(t),n=this.delegate.nextSibling(t),o=0;o<e.length;o++)this.delegate.insertBefore(r,e[o],n)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var r=t[e],n=this.delegate.parentNode(r);this.delegate.removeChild(n,r)}},t.prototype.destroyView=function(t,e){for(var r=0;r<e.length;r++)this.delegate.destroyNode(e[r])},t.prototype.listen=function(t,e,r){return this.delegate.listen(t,e,r)},t.prototype.listenGlobal=function(t,e,r){return this.delegate.listen(t,e,r)},t.prototype.setElementProperty=function(t,e,r){this.delegate.setProperty(t,e,r)},t.prototype.setElementAttribute=function(t,e,r){var n=ve(e),o=n[0],i=n[1];null!=r?this.delegate.setAttribute(t,i,r,o):this.delegate.removeAttribute(t,i,o)},t.prototype.setBindingDebugInfo=function(){},t.prototype.setElementClass=function(t,e,r){r?this.delegate.addClass(t,e):this.delegate.removeClass(t,e)},t.prototype.setElementStyle=function(t,e,r){null!=r?this.delegate.setStyle(t,e,r):this.delegate.removeStyle(t,e)},t.prototype.invokeElementMethod=function(t,e,r){t[e].apply(t,r)},t.prototype.setText=function(t,e){this.delegate.setValue(t,e)},t.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},t}(),va=Wt(ns),ga=Wt(as),_a=Wt(us),ba=Wt(gs),wa=Wt(vs),Ca=Wt(_s),Ea=Wt(Uo),Sa=new Object,xa={},Ta={};Ta.CreateViewNodes=0,Ta.CheckNoChanges=1,Ta.CheckAndUpdate=2,Ta.Destroy=3,Ta[Ta.CreateViewNodes]="CreateViewNodes",Ta[Ta.CheckNoChanges]="CheckNoChanges",Ta[Ta.CheckAndUpdate]="CheckAndUpdate",Ta[Ta.Destroy]="Destroy";var Pa=!1,Aa={};Aa.create=0,Aa.detectChanges=1,Aa.checkNoChanges=2,Aa.destroy=3,Aa.handleEvent=4,Aa[Aa.create]="create",Aa[Aa.detectChanges]="detectChanges",Aa[Aa.checkNoChanges]="checkNoChanges",Aa[Aa.destroy]="destroy",Aa[Aa.handleEvent]="handleEvent";var Oa,Ma,Ra,ka=/([A-Z])/g,Ia=function(){function t(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];for(var r=this.nodeDef,n=t;r&&0===(1&r.flags);)r=r.parent;if(!r)for(;!r&&n;)r=re(n),n=n.parent;this.elDef=r,this.elView=n}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return jt(this.elView,this.elDef.index).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return Ke(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=[];if(this.elDef)for(var e=this.elDef.index+1;e<=this.elDef.index+this.elDef.childCount;e++){var r=this.elView.def.nodes[e];10112&r.flags&&t.push(r.provider.token),e+=r.childCount}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t={};if(this.elDef){An(this.elView,this.elDef,t);for(var e=this.elDef.index+1;e<=this.elDef.index+this.elDef.childCount;e++){var r=this.elView.def.nodes[e];10112&r.flags&&An(this.elView,r,t),e+=r.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=Pn(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?ne(this.view,this.nodeDef):ne(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n,o;2&this.nodeDef.flags?(n=this.view.def,o=this.nodeDef.index):(n=this.elView.def,o=this.elDef.index);var i=Tn(n,o),s=-1,a=function(){return s++,s===i?(r=t.error).bind.apply(r,[t].concat(e)):ta;var r};n.factory(a),i>s&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,e))},t}(),Na=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new Da(this.delegate.createRenderer(t,e))},t}(),Da=function(){function t(t){this.delegate=t}return Object.defineProperty(t.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),t.prototype.destroyNode=function(t){Tt(St(t)),this.delegate.destroyNode&&this.delegate.destroyNode(t)},t.prototype.destroy=function(){this.delegate.destroy()},t.prototype.createElement=function(t,e){var r=this.delegate.createElement(t,e),n=Mn();if(n){var o=new Ss(r,null,n);o.name=t,xt(o)}return r},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),r=Mn();return r&&xt(new Es(e,null,r)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),r=Mn();return r&&xt(new Es(e,null,r)),e},t.prototype.appendChild=function(t,e){var r=St(t),n=St(e);r&&n&&r instanceof Ss&&r.addChild(n),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,r){var n=St(t),o=St(e),i=St(r);n&&o&&n instanceof Ss&&n.insertBefore(i,o),this.delegate.insertBefore(t,e,r)},t.prototype.removeChild=function(t,e){var r=St(t),n=St(e);r&&n&&r instanceof Ss&&r.removeChild(n),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t){var e=this.delegate.selectRootElement(t),r=Mn();return r&&xt(new Ss(e,null,r)),e},t.prototype.setAttribute=function(t,e,r,n){var o=St(t);if(o&&o instanceof Ss){var i=n?n+":"+e:e;o.attributes[i]=r}this.delegate.setAttribute(t,e,r,n)},t.prototype.removeAttribute=function(t,e,r){var n=St(t);if(n&&n instanceof Ss){var o=r?r+":"+e:e;n.attributes[o]=null}this.delegate.removeAttribute(t,e,r)},t.prototype.addClass=function(t,e){var r=St(t);r&&r instanceof Ss&&(r.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var r=St(t);r&&r instanceof Ss&&(r.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,r,n){var o=St(t);o&&o instanceof Ss&&(o.styles[e]=r),this.delegate.setStyle(t,e,r,n)},t.prototype.removeStyle=function(t,e,r){var n=St(t);n&&n instanceof Ss&&(n.styles[e]=null),this.delegate.removeStyle(t,e,r)},t.prototype.setProperty=function(t,e,r){var n=St(t);n&&n instanceof Ss&&(n.properties[e]=r),this.delegate.setProperty(t,e,r)},t.prototype.listen=function(t,e,r){if("string"!=typeof t){var n=St(t);n&&n.listeners.push(new Cs(e,r))}return this.delegate.listen(t,e,r)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setValue=function(t,e){return this.delegate.setValue(t,e)},t}(),ja=function(){function t(){}return t}();ja.decorators=[{type:To,args:[{providers:[ts,{provide:Ji,useExisting:ts},li,_i,hi,{provide:Vs,useFactory:Rn},{provide:Fs,useFactory:kn},{provide:Ws,useFactory:In,deps:[[new Ro(Ws),new ko,new Do]]},{provide:ci,useValue:Nn,multi:!0}]}]}],ja.ctorParameters=function(){return[{type:Ji}]};var La={};La.OnInit=0,La.OnDestroy=1,La.DoCheck=2,La.OnChanges=3,La.AfterContentInit=4,La.AfterContentChecked=5,La.AfterViewInit=6,La.AfterViewChecked=7,La[La.OnInit]="OnInit",La[La.OnDestroy]="OnDestroy",La[La.DoCheck]="DoCheck",La[La.OnChanges]="OnChanges",La[La.AfterContentInit]="AfterContentInit",La[La.AfterContentChecked]="AfterContentChecked",La[La.AfterViewInit]="AfterViewInit",La[La.AfterViewChecked]="AfterViewChecked";var Va=[La.OnInit,La.OnDestroy,La.DoCheck,La.OnChanges,La.AfterContentInit,La.AfterContentChecked,La.AfterViewInit,La.AfterViewChecked],Fa="*";t.Class=h,t.createPlatform=lt,t.assertPlatform=ht,t.destroyPlatform=ft,t.getPlatform=dt,t.PlatformRef=Zi,t.ApplicationRef=Ji,t.enableProdMode=ut,t.isDevMode=ct,t.createPlatformFactory=pt,t.NgProbeToken=Xi,t.APP_ID=pi,t.PACKAGE_ROOT_URL=yi,t.PLATFORM_INITIALIZER=fi,t.PLATFORM_ID=di,t.APP_BOOTSTRAP_LISTENER=mi,t.APP_INITIALIZER=ci,t.ApplicationInitStatus=li,t.DebugElement=Ss,t.DebugNode=Es,t.asNativeElements=wt,t.getDebugNode=St,t.Testability=Bi,t.TestabilityRegistry=qi,t.setTestabilityGetter=at,t.TRANSLATIONS=$s,t.TRANSLATIONS_FORMAT=Ks,t.LOCALE_ID=Ws,t.MissingTranslationStrategy=Qs,t.ApplicationModule=ja,t.wtfCreateScope=ji,t.wtfLeave=Li,t.wtfStartTimeRange=Vi,t.wtfEndTimeRange=Fi,t.Type=Qo,t.EventEmitter=Ui,t.ErrorHandler=Go,t.Sanitizer=Zs,t.SecurityContext=Xs,t.ANALYZE_FOR_ENTRY_COMPONENTS=ao,t.Attribute=uo,t.ContentChild=po,t.ContentChildren=lo,t.Query=co,t.ViewChild=fo,t.ViewChildren=ho,t.Component=go,t.Directive=vo,t.HostBinding=Co,t.HostListener=Eo,t.Input=bo,t.Output=wo,t.Pipe=_o,t.CUSTOM_ELEMENTS_SCHEMA=So,t.NO_ERRORS_SCHEMA=xo,t.NgModule=To,t.ViewEncapsulation=Po,t.Version=Oo,t.VERSION=Mo,t.forwardRef=g,t.resolveForwardRef=_,t.Injector=Uo,t.ReflectiveInjector=si,t.ResolvedReflectiveFactory=oi,t.ReflectiveKey=Wo,t.InjectionToken=Jn,t.OpaqueToken=Yn,t.Inject=Ro,t.Optional=ko,t.Injectable=Io,t.Self=No,t.SkipSelf=Do,t.Host=jo,t.NgZone=Hi,t.RenderComponentType=es,t.Renderer=ns,t.Renderer2=as,t.RendererFactory2=is,t.RendererStyleFlags2=ss,t.RootRenderer=os,t.COMPILER_OPTIONS=bi,t.Compiler=_i,t.CompilerFactory=wi,t.ModuleWithComponentFactories=gi,t.ComponentFactory=Ei,t.ComponentRef=Ci,t.ComponentFactoryResolver=Ti,t.ElementRef=us,t.NgModuleFactory=ki,t.NgModuleRef=Ri,t.NgModuleFactoryLoader=cs,t.getModuleFactory=gt,t.QueryList=ps,t.SystemJsNgModuleLoader=ys,t.SystemJsNgModuleLoaderConfig=ds,t.TemplateRef=vs,t.ViewContainerRef=gs,t.EmbeddedViewRef=ws,t.ViewRef=bs,t.ChangeDetectionStrategy=mo,t.ChangeDetectorRef=_s,t.DefaultIterableDiffer=Rs,t.IterableDiffers=Vs,t.KeyValueDiffers=Fs,t.SimpleChange=As,t.WrappedValue=Ts,t.platformCore=Gs,t.ɵALLOW_MULTIPLE_PLATFORMS=Qi,t.ɵAPP_ID_RANDOM_PROVIDER=hi,t.ɵValueUnwrapper=Ps,t.ɵdevModeEqual=Pt,t.ɵisListLikeIterable=At,t.ɵChangeDetectorStatus=yo,t.ɵisDefaultChangeDetectionStrategy=v,t.ɵConsole=vi,t.ɵERROR_COMPONENT_TYPE=Ho,t.ɵComponentFactory=Ei,t.ɵCodegenComponentFactoryResolver=Oi,t.ɵLIFECYCLE_HOOKS_VALUES=Va,t.ɵLifecycleHooks=La,t.ɵViewMetadata=Ao,t.ɵReflector=Jo,t.ɵreflector=ti,t.ɵReflectionCapabilities=Zo,t.ɵReflectorReader=Yo,t.ɵRenderDebugInfo=rs,t.ɵglobal=no,t.ɵlooseIdentical=u,t.ɵstringify=c,t.ɵmakeDecorator=f,t.ɵisObservable=X,t.ɵisPromise=Q,t.ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR=xa,t.ɵNgModuleInjector=Ni,t.ɵregisterModuleFactory=vt,t.ɵEMPTY_ARRAY=aa,t.ɵEMPTY_MAP=ua,t.ɵand=Ce,t.ɵccf=qe,t.ɵcrt=Kt,t.ɵdid=Ze,t.ɵeld=Ee,t.ɵelementEventFullName=oe,t.ɵgetComponentViewDefinitionFactory=ze,t.ɵinlineInterpolate=be,t.ɵinterpolate=_e,t.ɵncd=Ne,t.ɵnov=Qe,t.ɵpid=Ye,t.ɵprd=Je,t.ɵpad=vr,t.ɵpod=gr,t.ɵppd=yr,t.ɵqud=Er,t.ɵted=Or,t.ɵunv=$t,t.ɵvid=Nr,t.AUTO_STYLE=Fa,t.trigger=qn,t.animate=zn,t.group=Gn,t.sequence=Wn,t.style=$n,t.state=Kn,t.keyframes=Qn,t.transition=Xn,t.ɵba=jn,t.ɵbb=Ln,t.ɵbf=Hn,t.ɵbc=Vn,t.ɵbe=Un,t.ɵbd=Fn,t.ɵbg=Bn,t.ɵz=Dn,t.ɵo=Nn,t.ɵl=Rn,t.ɵm=kn,t.ɵn=In,t.ɵf=ts,t.ɵg=Z,t.ɵh=Bs,t.ɵi=qs,t.ɵj=Os,t.ɵk=Ds,t.ɵc=ai,t.ɵd=ei,t.ɵe=H,t.ɵp=Di,t.ɵr=rt,t.ɵq=et,t.ɵu=it,t.ɵs=nt,t.ɵt=ot,t.ɵa=m,t.ɵb=y,t.ɵw=tr,t.ɵx=Ys,Object.defineProperty(t,"__esModule",{value:!0})})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"rxjs/Observable":17,"rxjs/Subject":20,"rxjs/observable/merge":37,"rxjs/operator/share":53}],9:[function(e,r,n){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/core"),e("rxjs/observable/forkJoin"),e("rxjs/observable/fromPromise"),e("rxjs/operator/map"),e("@angular/platform-browser")):"function"==typeof t&&t.amd?t(["exports","@angular/core","rxjs/observable/forkJoin","rxjs/observable/fromPromise","rxjs/operator/map","@angular/platform-browser"],i):i((o.ng=o.ng||{},o.ng.forms=o.ng.forms||{}),o.ng.core,o.Rx.Observable,o.Rx.Observable,o.Rx.Observable.prototype,o.ng.platformBrowser)}(this,function(t,e,r,n,o,i){"use strict";function s(t){return null==t||0===t.length}function a(t){return null!=t}function u(t){var r=e.ɵisPromise(t)?n.fromPromise(t):t;if(!e.ɵisObservable(r))throw new Error("Expected validator to return Promise or Observable.");return r}function c(t,e){return e.map(function(e){return e(t)})}function l(t,e){return e.map(function(e){return e(t)})}function p(t){var e=t.reduce(function(t,e){return null!=e?F({},t,e):t},{});return 0===Object.keys(e).length?null:e}function h(){var t=i.ɵgetDOM()?i.ɵgetDOM().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}function f(t){return t.validate?function(e){return t.validate(e)}:t}function d(t){return t.validate?function(e){return t.validate(e)}:t}function m(){throw new Error("unimplemented")}function y(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function v(t){return t.split(":")[0]}function g(t,e){return null==t?""+e:("string"==typeof e&&(e="'"+e+"'"),e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function _(t){return t.split(":")[0]}function b(t,e){return e.path.concat([t])}function w(t,e){t||x(e,"Cannot find control with"),e.valueAccessor||x(e,"No value accessor for form control with"),t.validator=q.compose([t.validator,e.validator]),t.asyncValidator=q.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),e.valueAccessor.registerOnChange(function(r){e.viewToModelUpdate(r),t.markAsDirty(),t.setValue(r,{emitModelToViewChange:!1})}),e.valueAccessor.registerOnTouched(function(){return t.markAsTouched()}),t.registerOnChange(function(t,r){e.valueAccessor.writeValue(t),r&&e.viewToModelUpdate(t)}),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function C(t,e){e.valueAccessor.registerOnChange(function(){return S(e)}),e.valueAccessor.registerOnTouched(function(){return S(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}function E(t,e){null==t&&x(e,"Cannot find control with"),t.validator=q.compose([t.validator,e.validator]),t.asyncValidator=q.composeAsync([t.asyncValidator,e.asyncValidator])}function S(t){return x(t,"There is no FormControl instance attached to form control element with")}function x(t,e){var r;throw r=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+r)}function T(t){return null!=t?q.compose(t.map(f)):null}function P(t){return null!=t?q.composeAsync(t.map(d)):null}function A(t,r){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return n.isFirstChange()?!0:!e.ɵlooseIdentical(r,n.currentValue)}function O(t){return lt.some(function(e){return t.constructor===e})}function M(t,e){if(!e)return null;var r=void 0,n=void 0,o=void 0;return e.forEach(function(e){e.constructor===Q?r=e:O(e)?(n&&x(t,"More than one built-in value accessor matches form control with"),n=e):(o&&x(t,"More than one custom value accessor matches form control with"),o=e)}),o?o:n?n:r?r:(x(t,"No valid value accessor for form control with"),null)}function R(t,e,r){return null==e?null:(e instanceof Array||(e=e.split(r)),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof Ct?t.controls[e]||null:t instanceof Et?t.at(e)||null:null},t))}function k(t){return Array.isArray(t)?T(t):t||null}function I(t){return Array.isArray(t)?P(t):t||null}function N(t,e){var r=t.indexOf(e);r>-1&&t.splice(r,1)}function D(t){return!(t instanceof Ut||t instanceof Vt||t instanceof Bt)}var j=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},L=function(){function t(){}return t.prototype.control=function(){},Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return this.control?this.control.hasError(t,e):!1},t.prototype.getError=function(t,e){return this.control?this.control.getError(t,e):null},t}(),V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e}(L),F=void 0||Object.assign||function(t){for(var e,r=1,n=arguments.length;n>r;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},U=new e.InjectionToken("NgValidators"),H=new e.InjectionToken("NgAsyncValidators"),B=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,q=function(){function t(){}return t.required=function(t){return s(t.value)?{required:!0}:null},t.requiredTrue=function(t){return t.value===!0?null:{required:!0}},t.email=function(t){return B.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(s(e.value))return null;var r=e.value?e.value.length:0;return t>r?{minlength:{requiredLength:t,actualLength:r}}:null}},t.maxLength=function(t){return function(e){var r=e.value?e.value.length:0;return r>t?{maxlength:{requiredLength:t,actualLength:r}}:null}},t.pattern=function(e){if(!e)return t.nullValidator;var r,n;return"string"==typeof e?(n="^"+e+"$",r=new RegExp(n)):(n=e.toString(),r=e),function(t){if(s(t.value))return null;var e=t.value;return r.test(e)?null:{pattern:{requiredPattern:n,actualValue:e}}}},t.nullValidator=function(){return null},t.compose=function(t){if(!t)return null;var e=t.filter(a);return 0==e.length?null:function(t){return p(c(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(a);return 0==e.length?null:function(t){var n=l(t,e).map(u);return o.map.call(r.forkJoin(n),p)}},t}(),z=new e.InjectionToken("NgValueAccessor"),G={provide:z,useExisting:e.forwardRef(function(){return W}),multi:!0},W=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();W.decorators=[{type:e.Directive,args:[{selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[G]}]}],W.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]};var $={provide:z,useExisting:e.forwardRef(function(){return Q}),multi:!0},K=new e.InjectionToken("CompositionEventMode"),Q=function(){function t(t,e,r){this._renderer=t,this._elementRef=e,this._compositionMode=r,this.onChange=function(){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!h())}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t}();Q.decorators=[{type:e.Directive,args:[{selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"_handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"_compositionStart()","(compositionend)":"_compositionEnd($event.target.value)"},providers:[$]}]}],Q.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[K]}]}]};var X={provide:z,useExisting:e.forwardRef(function(){return Z}),multi:!0},Z=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();Z.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:[X]}]}],Z.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]};var Y=function(t){function e(){var e=t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return j(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return m()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return m()},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(){},e}(L),J={provide:z,useExisting:e.forwardRef(function(){return et}),multi:!0},tt=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(r){e._isSameGroup(r,t)&&r[1]!==t&&r[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return t[0].control?t[0]._parent===e._control._parent&&t[1].name===e.name:!1},t}();tt.decorators=[{type:e.Injectable}],tt.ctorParameters=function(){return[]};var et=function(){function t(t,e,r,n){this._renderer=t,this._elementRef=e,this._registry=r,this._injector=n,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(Y),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n      If you define both a name and a formControlName attribute on your radio button, their values\n      must match. Ex: <input type="radio" formControlName="food" name="food">\n    ')},t}();et.decorators=[{type:e.Directive,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[J]}]}],et.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef},{type:tt},{type:e.Injector}]},et.propDecorators={name:[{type:e.Input}],formControlName:[{type:e.Input}],value:[{type:e.Input}]};var rt={provide:z,useExisting:e.forwardRef(function(){return nt}),multi:!0},nt=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();nt.decorators=[{type:e.Directive,args:[{selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[rt]}]}],nt.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]};var ot={provide:z,useExisting:e.forwardRef(function(){return it}),multi:!0},it=function(){function t(t,r){this._renderer=t,this._elementRef=r,this._optionMap=new Map,this._idCounter=0,this.onChange=function(){},this.onTouched=function(){},this._compareWith=e.ɵlooseIdentical}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setElementProperty(this._elementRef.nativeElement,"selectedIndex",-1);var r=y(e,t);this._renderer.setElementProperty(this._elementRef.nativeElement,"value",r)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(r){e.value=r,t(e._getOptionValue(r))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){for(var e=0,r=Array.from(this._optionMap.keys());e<r.length;e++){var n=r[e];if(this._compareWith(this._optionMap.get(n),t))return n}return null},t.prototype._getOptionValue=function(t){var e=v(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}();it.decorators=[{type:e.Directive,args:[{selector:"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]",host:{"(change)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[ot]}]}],it.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]},it.propDecorators={compareWith:[{type:e.Input}]};var st=function(){function t(t,e,r){this._element=t,this._renderer=e,this._select=r,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(y(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setElementProperty(this._element.nativeElement,"value",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap["delete"](this.id),this._select.writeValue(this._select.value))},t}();st.decorators=[{type:e.Directive,args:[{selector:"option"}]}],st.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer},{type:it,decorators:[{type:e.Optional},{type:e.Host}]}]},st.propDecorators={ngValue:[{type:e.Input,args:["ngValue"]}],value:[{type:e.Input,args:["value"]}]};var at={provide:z,useExisting:e.forwardRef(function(){return ut}),multi:!0},ut=function(){function t(t,r){this._renderer=t,this._elementRef=r,this._optionMap=new Map,this._idCounter=0,this.onChange=function(){},this.onTouched=function(){},this._compareWith=e.ɵlooseIdentical}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e=this;this.value=t;var r;if(Array.isArray(t)){var n=t.map(function(t){return e._getOptionId(t)});r=function(t,e){t._setSelected(n.indexOf(e.toString())>-1)}}else r=function(t){t._setSelected(!1)};this._optionMap.forEach(r)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(r){var n=[];if(r.hasOwnProperty("selectedOptions"))for(var o=r.selectedOptions,i=0;i<o.length;i++){var s=o.item(i),a=e._getOptionValue(s.value);n.push(a)}else for(var o=r.options,i=0;i<o.length;i++){var s=o.item(i);if(s.selected){var a=e._getOptionValue(s.value);n.push(a)}}e.value=n,t(n)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(t){var e=(this._idCounter++).toString();return this._optionMap.set(e,t),e},t.prototype._getOptionId=function(t){for(var e=0,r=Array.from(this._optionMap.keys());e<r.length;e++){var n=r[e];if(this._compareWith(this._optionMap.get(n)._value,t))return n}return null},t.prototype._getOptionValue=function(t){var e=_(t);
+return o.bodyStmts=e,o.catchStmts=r,o}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitTryCatchStmt(this,e)},e}(rp),dp=function(t){function e(e,r){var n=t.call(this,null,r)||this;return n.error=e,n}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitThrowStmt(this,e)},e}(rp),mp=function(){function t(){}return t.prototype.transformExpr=function(t){return t},t.prototype.transformStmt=function(t){return t},t.prototype.visitReadVarExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitWriteVarExpr=function(t,e){return this.transformExpr(new Ml(t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWriteKeyExpr=function(t,e){return this.transformExpr(new Rl(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 kl(t.receiver.visitExpression(this,e),t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeMethodExpr=function(t,e){var r=t.builtin||t.name;return this.transformExpr(new Nl(t.receiver.visitExpression(this,e),r,this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeFunctionExpr=function(t,e){return this.transformExpr(new Dl(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 jl(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 Fl(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 Ul(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCastExpr=function(t,e){return this.transformExpr(new Bl(t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitFunctionExpr=function(t,e){return this.transformExpr(new ql(t.params,this.visitAllStatements(t.statements,e),t.type,t.sourceSpan),e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return this.transformExpr(new zl(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 Gl(t.receiver.visitExpression(this,e),t.name,t.type,t.sourceSpan),e)},t.prototype.visitReadKeyExpr=function(t,e){return this.transformExpr(new Wl(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 $l(this.visitAllExpressions(t.entries,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralMapExpr=function(t,e){var r=this,n=t.entries.map(function(t){return new Kl(t.key,t.value.visitExpression(r,e),t.quoted)}),o=new Cl(t.valueType,null);return this.transformExpr(new Ql(n,o,t.sourceSpan),e)},t.prototype.visitCommaExpr=function(t,e){return this.transformExpr(new Xl(this.visitAllExpressions(t.parts,e),t.sourceSpan),e)},t.prototype.visitAllExpressions=function(t,e){var r=this;return t.map(function(t){return t.visitExpression(r,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return this.transformStmt(new np(t.name,t.value.visitExpression(this,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.transformStmt(new op(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 ip(t.expr.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitReturnStmt=function(t,e){return this.transformStmt(new sp(t.value.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitDeclareClassStmt=function(t,e){var r=this,n=t.parent.visitExpression(this,e),o=t.getters.map(function(t){return new lp(t.name,r.visitAllStatements(t.body,e),t.type,t.modifiers)}),i=t.constructorMethod&&new cp(t.constructorMethod.name,t.constructorMethod.params,this.visitAllStatements(t.constructorMethod.body,e),t.constructorMethod.type,t.constructorMethod.modifiers),s=t.methods.map(function(t){return new cp(t.name,t.params,r.visitAllStatements(t.body,e),t.type,t.modifiers)});return this.transformStmt(new pp(t.name,n,t.fields,o,i,s,t.modifiers,t.sourceSpan),e)},t.prototype.visitIfStmt=function(t,e){return this.transformStmt(new hp(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 fp(this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t.sourceSpan),e)},t.prototype.visitThrowStmt=function(t,e){return this.transformStmt(new dp(t.error.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCommentStmt=function(t,e){return this.transformStmt(t,e)},t.prototype.visitAllStatements=function(t,e){var r=this;return t.map(function(t){return t.visitStatement(r,e)})},t}(),yp=function(){function t(){}return t.prototype.visitReadVarExpr=function(t){return t},t.prototype.visitWriteVarExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitWriteKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitWritePropExpr=function(t,e){return t.receiver.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitInvokeMethodExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInstantiateExpr=function(t,e){return t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitLiteralExpr=function(t){return t},t.prototype.visitExternalExpr=function(t){return t},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t},t.prototype.visitNotExpr=function(t,e){return t.condition.visitExpression(this,e),t},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitFunctionExpr=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitBinaryOperatorExpr=function(t,e){return t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),t},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e),t},t.prototype.visitLiteralMapExpr=function(t,e){var r=this;return t.entries.forEach(function(t){return t.value.visitExpression(r,e)}),t},t.prototype.visitCommaExpr=function(t,e){this.visitAllExpressions(t.parts,e)},t.prototype.visitAllExpressions=function(t,e){var r=this;t.forEach(function(t){return t.visitExpression(r,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),t},t.prototype.visitReturnStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareClassStmt=function(t,e){var r=this;return t.parent.visitExpression(this,e),t.getters.forEach(function(t){return r.visitAllStatements(t.body,e)}),t.constructorMethod&&this.visitAllStatements(t.constructorMethod.body,e),t.methods.forEach(function(t){return r.visitAllStatements(t.body,e)}),t},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t},t.prototype.visitTryCatchStmt=function(t,e){return this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t},t.prototype.visitThrowStmt=function(t,e){return t.error.visitExpression(this,e),t},t.prototype.visitCommentStmt=function(t){return t},t.prototype.visitAllStatements=function(t,e){var r=this;t.forEach(function(t){return t.visitStatement(r,e)})},t}(),vp=function(t){function e(){var e=t.apply(this,arguments)||this;return e.varNames=new Set,e}return Zn(e,t),e.prototype.visitDeclareFunctionStmt=function(t){return t},e.prototype.visitDeclareClassStmt=function(t){return t},e.prototype.visitReadVarExpr=function(t){return t.name&&this.varNames.add(t.name),null},e}(yp),gp=function(t){function e(e){var r=t.call(this)||this;return r.sourceSpan=e,r}return Zn(e,t),e.prototype._clone=function(t){var e=Object.create(t.constructor.prototype);for(var r in t)e[r]=t[r];return e},e.prototype.transformExpr=function(t){return t.sourceSpan||(t=this._clone(t),t.sourceSpan=this.sourceSpan),t},e.prototype.transformStmt=function(t){return t.sourceSpan||(t=this._clone(t),t.sourceSpan=this.sourceSpan),t},e}(mp),_p="$quoted$",bp=function(){function t(){}return t.prototype.visitArray=function(t,e){var r=this;return br(t.map(function(t){return d(t,r,null)}),e)},t.prototype.visitStringMap=function(t,e){var r=this,n=[],o=new Set(t&&t[_p]);return Object.keys(t).forEach(function(e){n.push(new Kl(e,d(t[e],r,null),o.has(e)))}),new Ql(n,e)},t.prototype.visitPrimitive=function(t,e){return Sr(t,e)},t.prototype.visitOther=function(t){return t instanceof Pl?t:vr({reference:t})},t}(),wp=function(){function t(t){this.compType=t}return t}(),Cp=function(){function t(t,e,r){this.statements=t,this.ngModuleFactoryVar=e,this.dependencies=r}return t}(),Ep=function(){function t(){}return t.prototype.compile=function(t,e){var r=ct("NgModule",t.type),n=[],o=[],i=t.transitiveModule.entryComponents.map(function(e){return t.bootstrapComponents.some(function(t){return t.reference===e.componentType})&&o.push({reference:e.componentFactory}),n.push(new wp(e.componentType)),{reference:e.componentFactory}}),s=new Sp(t,i,o,r),a=new Yu(t,e,r);a.parse().forEach(function(t){return s.addProvider(t)});var u=s.build(),c=E(t.type)+"NgFactory",l=yr(c).set(vr(de(zu.NgModuleFactory)).instantiate([yr(u.name),vr(t.type)],gr(de(zu.NgModuleFactory),[gr(t.type)],[yl.Const]))).toDeclStmt(null,[ep.Final]),p=[u,l];if(t.id){var h=vr(de(zu.RegisterModuleFactoryFn)).callFn([Sr(t.id),yr(c)]).toStmt();p.push(h)}return new Cp(p,c,n)},t}();Ep.decorators=[{type:z}],Ep.ctorParameters=function(){return[]};var Sp=function(){function t(t,e,r,n){this._ngModuleMeta=t,this._entryComponentFactories=e,this._bootstrapComponentFactories=r,this._sourceSpan=n,this.fields=[],this.getters=[],this.methods=[],this.ctorStmts=[],this._lazyProps=new Map,this._tokens=[],this._instances=new Map,this._createStmts=[],this._destroyStmts=[]}return t.prototype.addProvider=function(t){var r=this,n=t.providers.map(function(t){return r._getProviderValue(t)}),o="_"+M(t.token)+"_"+this._instances.size,i=this._createProviderProperty(o,t,n,t.multiProvider,t.eager);if(-1!==t.lifecycleHooks.indexOf(e.ɵLifecycleHooks.OnDestroy)){var s=i.callMethod("ngOnDestroy",[]);t.eager||(s=this._lazyProps.get(i.name).and(s)),this._destroyStmts.push(s.toStmt())}this._tokens.push(t.token),this._instances.set(R(t.token),i)},t.prototype.build=function(){var t=this,e=this._tokens.map(function(e){var r=t._instances.get(R(e));return new hp(Tp.token.identical(Ar(e)),[new sp(r)])}),r=[new cp("createInternal",[],this._createStmts.concat(new sp(this._instances.get(this._ngModuleMeta.type.reference))),gr(this._ngModuleMeta.type)),new cp("getInternal",[new Hl(Tp.token.name,El),new Hl(Tp.notFoundResult.name,El)],e.concat([new sp(Tp.notFoundResult)]),El),new cp("destroyInternal",[],this._destroyStmts)],n=[yr(xp.parent.name),br(this._entryComponentFactories.map(function(t){return vr(t)})),br(this._bootstrapComponentFactories.map(function(t){return vr(t)}))],o=E(this._ngModuleMeta.type)+"Injector";return xr({name:o,ctorParams:[new Hl(xp.parent.name,gr(de(zu.Injector)))],parent:vr(de(zu.NgModuleInjector),[gr(this._ngModuleMeta.type)]),parentArgs:n,builders:[{methods:r},this]})},t.prototype._getProviderValue=function(t){var e,r=this;if(null!=t.useExisting)e=this._getDependency({token:t.useExisting});else if(null!=t.useFactory){var n=t.deps||t.useFactory.diDeps,o=n.map(function(t){return r._getDependency(t)});e=vr(t.useFactory).callFn(o)}else if(null!=t.useClass){var n=t.deps||t.useClass.diDeps,o=n.map(function(t){return r._getDependency(t)});e=vr(t.useClass).instantiate(o,gr(t.useClass))}else e=Pr(t.useValue);return e},t.prototype._createProviderProperty=function(t,e,r,n,o){var i,s;if(n?(i=br(r),s=new wl(El)):(i=r[0],s=r[0].type),s||(s=El),o)this.fields.push(new up(t,s)),this._createStmts.push(Zl.prop(t).set(i).toStmt());else{var a=Zl.prop("_"+t);this.fields.push(new up(a.name,s));var u=[new hp(a.isBlank(),[a.set(i).toStmt()]),new sp(a)];this.getters.push(new lp(t,u,s)),this._lazyProps.set(t,a)}return Zl.prop(t)},t.prototype._getDependency=function(t){var e=null;if(t.isValue&&(e=Sr(t.value)),t.isSkipSelf||(t.token&&(R(t.token)===fe(zu.Injector)?e=Zl:R(t.token)===fe(zu.ComponentFactoryResolver)&&(e=Zl.prop("componentFactoryResolver"))),e||(e=this._instances.get(R(t.token)))),!e){var r=[Ar(t.token)];t.isOptional&&r.push(Jl),e=xp.parent.callMethod("get",r)}return e},t}(),xp=function(){function t(){}return t}();xp.parent=Zl.prop("parent");var Tp=function(){function t(){}return t}();Tp.token=yr("token"),Tp.notFoundResult=yr("notFoundResult");var Pp=3,Ap="# sourceMappingURL=data:application/json;base64,",Op=function(){function t(t){void 0===t&&(t=null),this.file=t,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return t.prototype.addSource=function(t,e){return void 0===e&&(e=null),this.sourcesContent.has(t)||this.sourcesContent.set(t,e),this},t.prototype.addLine=function(){return this.lines.push([]),this.lastCol0=0,this},t.prototype.addMapping=function(t,e,r,n){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=e&&!this.sourcesContent.has(e))throw new Error('Unknown source file "'+e+'"');if(null==t)throw new Error("The column in the generated code must be provided");if(t<this.lastCol0)throw new Error("Mapping should be added in output order");if(e&&(null==r||null==n))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=t,this.currentLine.push({col0:t,sourceUrl:e,sourceLine0:r,sourceCol0:n}),this},Object.defineProperty(t.prototype,"currentLine",{get:function(){return this.lines.slice(-1)[0]},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){var t=this;if(!this.hasMappings)return null;var e=new Map,r=[],n=[];Array.from(this.sourcesContent.keys()).forEach(function(o,i){e.set(o,i),r.push(o),n.push(t.sourcesContent.get(o)||null)});var o="",i=0,s=0,a=0,u=0;return this.lines.forEach(function(t){i=0,o+=t.map(function(t){var r=Mr(t.col0-i);return i=t.col0,null!=t.sourceUrl&&(r+=Mr(e.get(t.sourceUrl)-s),s=e.get(t.sourceUrl),r+=Mr(t.sourceLine0-a),a=t.sourceLine0,r+=Mr(t.sourceCol0-u),u=t.sourceCol0),r}).join(","),o+=";"}),o=o.slice(0,-1),{file:this.file||"",version:Pp,sourceRoot:"",sources:r,sourcesContent:n,mappings:o}},t.prototype.toJsComment=function(){return this.hasMappings?"//"+Ap+Or(JSON.stringify(this,null,0)):""},t}(),Mp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Rp=/'|\\|\n|\r|\$/g,kp=/^[$A-Z_][0-9A-Z_$]*$/i,Ip="  ",Np=yr("error",null,null),Dp=yr("stack",null,null),jp=function(){function t(t){this.indent=t,this.parts=[],this.srcSpans=[]}return t}(),Lp=function(){function t(t,e){this._exportedVars=t,this._indent=e,this._classes=[],this._lines=[new jp(e)]}return t.createRoot=function(e){return new t(e,0)},Object.defineProperty(t.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),t.prototype.isExportedVar=function(t){return-1!==this._exportedVars.indexOf(t)},t.prototype.println=function(t,e){void 0===e&&(e=""),this.print(t||null,e,!0)},t.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},t.prototype.print=function(t,e,r){void 0===r&&(r=!1),e.length>0&&(this._currentLine.parts.push(e),this._currentLine.srcSpans.push(t&&t.sourceSpan||null)),r&&this._lines.push(new jp(this._indent))},t.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},t.prototype.incIndent=function(){this._indent++,this._currentLine.indent=this._indent},t.prototype.decIndent=function(){this._indent--,this._currentLine.indent=this._indent},t.prototype.pushClass=function(t){this._classes.push(t)},t.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(t.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.toSource=function(){return this.sourceLines.map(function(t){return t.parts.length>0?Ir(t.indent)+t.parts.join(""):""}).join("\n")},t.prototype.toSourceMapGenerator=function(t,e,r){void 0===r&&(r=0);for(var n=new Op(e),o=!1,i=function(){o||(n.addSource(t," ").addMapping(0,t,0,0),o=!0)},s=0;r>s;s++)n.addLine(),i();return this.sourceLines.forEach(function(t,e){n.addLine();for(var r=t.srcSpans,s=t.parts,a=t.indent*Ip.length,u=0;u<r.length&&!r[u];)a+=s[u].length,u++;for(u<r.length&&0===e&&0===a?o=!0:i();u<r.length;){var c=r[u],l=c.start.file,p=c.start.line,h=c.start.col;for(n.addSource(l.url,l.content).addMapping(a,l.url,p,h),a+=s[u].length,u++;u<r.length&&(c===r[u]||!r[u]);)a+=s[u].length,u++}}),n},Object.defineProperty(t.prototype,"sourceLines",{get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines},enumerable:!0,configurable:!0}),t}(),Vp=function(){function t(t){this._escapeDollarInStrings=t}return t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitReturnStmt=function(t,e){return e.print(t,"return "),t.value.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCastExpr=function(){},t.prototype.visitDeclareClassStmt=function(){},t.prototype.visitIfStmt=function(t,e){e.print(t,"if ("),t.condition.visitExpression(this,e),e.print(t,") {");var r=null!=t.falseCase&&t.falseCase.length>0;return t.trueCase.length<=1&&!r?(e.print(t," "),this.visitAllStatements(t.trueCase,e),e.removeEmptyLastLine(),e.print(t," ")):(e.println(),e.incIndent(),this.visitAllStatements(t.trueCase,e),e.decIndent(),r&&(e.println(t,"} else {"),e.incIndent(),this.visitAllStatements(t.falseCase,e),e.decIndent())),e.println(t,"}"),null},t.prototype.visitTryCatchStmt=function(){},t.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){var r=t.comment.split("\n");return r.forEach(function(r){e.println(t,"// "+r)}),null},t.prototype.visitDeclareVarStmt=function(){},t.prototype.visitWriteVarExpr=function(t,e){var r=e.lineIsEmpty();return r||e.print(t,"("),e.print(t,t.name+" = "),t.value.visitExpression(this,e),r||e.print(t,")"),null},t.prototype.visitWriteKeyExpr=function(t,e){var r=e.lineIsEmpty();return r||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"] = "),t.value.visitExpression(this,e),r||e.print(t,")"),null},t.prototype.visitWritePropExpr=function(t,e){var r=e.lineIsEmpty();return r||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"."+t.name+" = "),t.value.visitExpression(this,e),r||e.print(t,")"),null},t.prototype.visitInvokeMethodExpr=function(t,e){t.receiver.visitExpression(this,e);var r=t.name;return null!=t.builtin&&(r=this.getBuiltinMethodName(t.builtin),null==r)?null:(e.print(t,"."+r+"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null)},t.prototype.getBuiltinMethodName=function(){},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitReadVarExpr=function(t,e){var r=t.name;if(null!=t.builtin)switch(t.builtin){case Al.Super:r="super";break;case Al.This:r="this";break;case Al.CatchError:r=Np.name;break;case Al.CatchStack:r=Dp.name;break;default:throw new Error("Unknown builtin variable "+t.builtin)}return e.print(t,r),null},t.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),t.classExpr.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitLiteralExpr=function(t,e){var r=t.value;return"string"==typeof r?e.print(t,kr(r,this._escapeDollarInStrings)):e.print(t,""+r),null},t.prototype.visitExternalExpr=function(){},t.prototype.visitConditionalExpr=function(t,e){return e.print(t,"("),t.condition.visitExpression(this,e),e.print(t,"? "),t.trueCase.visitExpression(this,e),e.print(t,": "),t.falseCase.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitNotExpr=function(t,e){return e.print(t,"!"),t.condition.visitExpression(this,e),null},t.prototype.visitFunctionExpr=function(){},t.prototype.visitDeclareFunctionStmt=function(){},t.prototype.visitBinaryOperatorExpr=function(t,e){var r;switch(t.operator){case Tl.Equals:r="==";break;case Tl.Identical:r="===";break;case Tl.NotEquals:r="!=";break;case Tl.NotIdentical:r="!==";break;case Tl.And:r="&&";break;case Tl.Or:r="||";break;case Tl.Plus:r="+";break;case Tl.Minus:r="-";break;case Tl.Divide:r="/";break;case Tl.Multiply:r="*";break;case Tl.Modulo:r="%";break;case Tl.Lower:r="<";break;case Tl.LowerEquals:r="<=";break;case Tl.Bigger:r=">";break;case Tl.BiggerEquals:r=">=";break;default:throw new Error("Unknown operator "+t.operator)}return e.print(t,"("),t.lhs.visitExpression(this,e),e.print(t," "+r+" "),t.rhs.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"."),e.print(t,t.name),null},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"]"),null},t.prototype.visitLiteralArrayExpr=function(t,e){var r=t.entries.length>1;return e.print(t,"[",r),e.incIndent(),this.visitAllExpressions(t.entries,e,",",r),e.decIndent(),e.print(t,"]",r),null},t.prototype.visitLiteralMapExpr=function(t,e){var r=this,n=t.entries.length>1;return e.print(t,"{",n),e.incIndent(),this.visitAllObjects(function(n){e.print(t,kr(n.key,r._escapeDollarInStrings,n.quoted)+": "),n.value.visitExpression(r,e)},t.entries,e,",",n),e.decIndent(),e.print(t,"}",n),null},t.prototype.visitCommaExpr=function(t,e){return e.print(t,"("),this.visitAllExpressions(t.parts,e,","),e.print(t,")"),null},t.prototype.visitAllExpressions=function(t,e,r,n){var o=this;void 0===n&&(n=!1),this.visitAllObjects(function(t){return t.visitExpression(o,e)},t,e,r,n)},t.prototype.visitAllObjects=function(t,e,r,n,o){void 0===o&&(o=!1);for(var i=0;i<e.length;i++)i>0&&r.print(null,n,o),t(e[i]);o&&r.println()},t.prototype.visitAllStatements=function(t,e){var r=this;t.forEach(function(t){return t.visitStatement(r,e)})},t}(),Fp="/debug/lib",Up=function(){function t(t){this._importResolver=t}return t.prototype.emitStatements=function(t,e,r,n,o){var i=this;void 0===o&&(o="");var s=new Bp(e,this._importResolver),a=Lp.createRoot(n);s.visitAllStatements(r,a);var u=o?o.split("\n"):[];s.reexports.forEach(function(t,r){var n=t.map(function(t){return t.name+" as "+t.as}).join(",");u.push("export {"+n+"} from '"+i._importResolver.fileNameToModuleName(r,e)+"';")}),s.importsWithPrefixes.forEach(function(t,r){u.push("imp"+("ort * as "+t+" from '"+i._importResolver.fileNameToModuleName(r,e)+"';"))});var c=a.toSourceMapGenerator(t,e,u.length).toJsComment(),l=u.concat([a.toSource(),c]);return c&&l.push(""),l.join("\n")},t}(),Bp=function(t){function e(e,r){var n=t.call(this,!1)||this;return n._genFilePath=e,n._importResolver=r,n.typeExpression=0,n.importsWithPrefixes=new Map,n.reexports=new Map,n}return Zn(e,t),e.prototype.visitType=function(t,e,r){void 0===r&&(r="any"),t?(this.typeExpression++,t.visitType(this,e),this.typeExpression--):e.print(null,r)},e.prototype.visitLiteralExpr=function(e,r){var n=e.value;return null==n&&e.type!=Sl?(r.print(e,"("+n+" as any)"),null):t.prototype.visitLiteralExpr.call(this,e,r)},e.prototype.visitLiteralArrayExpr=function(e,r){0===e.entries.length&&r.print(e,"(");var n=t.prototype.visitLiteralArrayExpr.call(this,e,r);return 0===e.entries.length&&r.print(e," as any[])"),n},e.prototype.visitExternalExpr=function(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null},e.prototype.visitDeclareVarStmt=function(t,e){if(e.isExportedVar(t.name)&&t.value instanceof Vl&&!t.type){var r=this._resolveStaticSymbol(t.value.value),n=r.name,o=r.filePath,i=r.members;if(0===i.length&&o!==this._genFilePath){var s=this.reexports.get(o);return s||(s=[],this.reexports.set(o,s)),s.push({name:n,as:t.name}),null}}return e.isExportedVar(t.name)&&e.print(t,"export "),t.hasModifier(ep.Final)?e.print(t,"const"):e.print(t,"var"),e.print(t," "+t.name),this._printColonType(t.type,e),e.print(t," = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return e.print(t,"(<"),t.type.visitType(this,e),e.print(t,">"),t.value.visitExpression(this,e),e.print(t,")"),null},e.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),this.typeExpression++,t.classExpr.visitExpression(this,e),this.typeExpression--,e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},e.prototype.visitDeclareClassStmt=function(t,e){var r=this;return e.pushClass(t),e.isExportedVar(t.name)&&e.print(t,"export "),e.print(t,"class "+t.name),null!=t.parent&&(e.print(t," extends "),this.typeExpression++,t.parent.visitExpression(this,e),this.typeExpression--),e.println(t," {"),e.incIndent(),t.fields.forEach(function(t){return r._visitClassField(t,e)}),null!=t.constructorMethod&&this._visitClassConstructor(t,e),t.getters.forEach(function(t){return r._visitClassGetter(t,e)}),t.methods.forEach(function(t){return r._visitClassMethod(t,e)}),e.decIndent(),e.println(t,"}"),e.popClass(),null},e.prototype._visitClassField=function(t,e){t.hasModifier(ep.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(ep.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(ep.Private)&&e.print(null,"private "),e.print(null,t.name+"("),this._visitParams(t.params,e),e.print(null,")"),this._printColonType(t.type,e,"void"),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," => {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.isExportedVar(t.name)&&e.print(t,"export "),e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+Np.name+") {"),e.incIndent();var r=[Dp.set(Np.prop("stack",null)).toDeclStmt(null,[ep.Final])].concat(t.catchStmts);return this.visitAllStatements(r,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitBuiltintType=function(t,e){var r;switch(t.name){case gl.Bool:r="boolean";break;case gl.Dynamic:r="any";break;case gl.Function:r="Function";break;case gl.Number:r="number";break;case gl.Int:r="number";break;case gl.String:r="string";break;default:throw new Error("Unsupported builtin type "+t.name)}return e.print(null,r),null},e.prototype.visitExpressionType=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitArrayType=function(t,e){return this.visitType(t.of,e),e.print(null,"[]"),null},e.prototype.visitMapType=function(t,e){return e.print(null,"{[key: string]:"),this.visitType(t.valueType,e),e.print(null,"}"),null},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Il.ConcatArray:e="concat";break;case Il.SubscribeObservable:e="subscribe";break;case Il.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e.prototype._visitParams=function(t,e){var r=this;this.visitAllObjects(function(t){e.print(null,t.name),r._printColonType(t.type,e)},t,e,",")},e.prototype._resolveStaticSymbol=function(t){var e=t.reference;if(!(e instanceof mo))throw new Error("Internal error: unknown identifier "+JSON.stringify(t));var r=this._importResolver.getTypeArity(e)||void 0,n=this._importResolver.getImportAs(e)||e;return{name:n.name,filePath:n.filePath,members:n.members,arity:r}},e.prototype._visitIdentifier=function(t,e,r){var n=this,o=this._resolveStaticSymbol(t),i=o.name,s=o.filePath,a=o.members,u=o.arity;if(s!=this._genFilePath){var c=this.importsWithPrefixes.get(s);null==c&&(c="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(s,c)),r.print(null,c+".")}if(a.length?(r.print(null,i),r.print(null,"."),r.print(null,a.join("."))):r.print(null,i),this.typeExpression>0){var l=e&&e.length||0,p=(u||0)-l;if(l>0||p>0){if(r.print(null,"<"),l>0&&this.visitAllObjects(function(t){return t.visitType(n,r)},e,r,","),p>0)for(var h=0;p>h;h++)(h>0||l>0)&&r.print(null,","),r.print(null,"any");r.print(null,">")}}},e.prototype._printColonType=function(t,e,r){t!==Sl&&(e.print(null,":"),this.visitType(t,e,r))},e}(Vp),Hp={};Dr(e.SecurityContext.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Dr(e.SecurityContext.STYLE,["*|style"]),Dr(e.SecurityContext.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","img|srcset","input|src","ins|cite","q|cite","source|src","source|srcset","track|src","video|poster","video|src"]),Dr(e.SecurityContext.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"]);var qp="boolean",zp="number",Gp="string",Wp="object",$p=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","keygen^[HTMLElement]|!autofocus,challenge,!disabled,keytype,name","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:cursor^:svg:|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime"],Kp={
+"class":"className","for":"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Qp=function(t){function r(){var e=t.call(this)||this;return e._schema={},$p.forEach(function(t){var r={},n=t.split("|"),o=n[0],i=n[1],s=i.split(","),a=o.split("^"),u=a[0],c=a[1];u.split(",").forEach(function(t){return e._schema[t.toLowerCase()]=r});var l=c&&e._schema[c.toLowerCase()];l&&Object.keys(l).forEach(function(t){r[t]=l[t]}),s.forEach(function(t){if(t.length>0)switch(t[0]){case"*":break;case"!":r[t.substring(1)]=qp;break;case"#":r[t.substring(1)]=zp;break;case"%":r[t.substring(1)]=Wp;break;default:r[t]=Gp}})}),e}return Zn(r,t),r.prototype.hasProperty=function(t,r,n){if(n.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if(o(t)||i(t))return!1;if(n.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}var s=this._schema[t.toLowerCase()]||this._schema.unknown;return!!s[r]},r.prototype.hasElement=function(t,r){if(r.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if(o(t)||i(t))return!0;if(r.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!this._schema[t.toLowerCase()]},r.prototype.securityContext=function(t,r,n){n&&(r=this.getMappedPropName(r)),t=t.toLowerCase(),r=r.toLowerCase();var o=Hp[t+"|"+r];return o?o:(o=Hp["*|"+r],o?o:e.SecurityContext.NONE)},r.prototype.getMappedPropName=function(t){return Kp[t]||t},r.prototype.getDefaultComponentElementName=function(){return"ng-component"},r.prototype.validateProperty=function(t){if(t.toLowerCase().startsWith("on")){var e="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.";return{error:!0,msg:e}}return{error:!1}},r.prototype.validateAttribute=function(t){if(t.toLowerCase().startsWith("on")){var e="Binding to event attribute '"+t+"' is disallowed for security reasons, "+("please use ("+t.slice(2)+")=...");return{error:!0,msg:e}}return{error:!1}},r.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},r.prototype.normalizeAnimationStyleProperty=function(t){return l(t)},r.prototype.normalizeAnimationStyleValue=function(t,e,r){var n="",o=r.toString().trim(),i=null;if(jr(t)&&0!==r&&"0"!==r)if("number"==typeof r)n="px";else{var s=r.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&(i="Please provide a CSS unit value for "+e+":"+r)}return{error:i,value:o+n}},r}(Ju);Qp.decorators=[{type:z}],Qp.ctorParameters=function(){return[]};var Xp=function(){function t(){this.strictStyling=!0}return t.prototype.shimCssText=function(t,e,r){void 0===r&&(r="");var n=Vr(t);return t=Lr(t),t=this._insertDirectives(t),this._scopeCssText(t,e,r)+n},t.prototype._insertDirectives=function(t){return t=this._insertPolyfillDirectivesInCssText(t),this._insertPolyfillRulesInCssText(t)},t.prototype._insertPolyfillDirectivesInCssText=function(t){return t.replace(Yp,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(Jp,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[0].replace(t[1],"").replace(t[2],"");return t[4]+r})},t.prototype._scopeCssText=function(t,e,r){var n=this._extractUnscopedRulesFromCssText(t);return t=this._insertPolyfillHostInCssText(t),t=this._convertColonHost(t),t=this._convertColonHostContext(t),t=this._convertShadowDOMSelectors(t),e&&(t=this._scopeSelectors(t,e,r)),t=t+"\n"+n,t.trim()},t.prototype._extractUnscopedRulesFromCssText=function(t){var e,r="";for(th.lastIndex=0;null!==(e=th.exec(t));){var n=e[0].replace(e[2],"").replace(e[1],e[4]);r+=n+"\n\n"}return r},t.prototype._convertColonHost=function(t){return this._convertColonRule(t,oh,this._colonHostPartReplacer)},t.prototype._convertColonHostContext=function(t){return this._convertColonRule(t,ih,this._colonHostContextPartReplacer)},t.prototype._convertColonRule=function(t,e,r){return t.replace(e,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t[2]){for(var n=t[2].split(","),o=[],i=0;i<n.length;i++){var s=n[i].trim();if(!s)break;o.push(r(sh,s,t[3]))}return o.join(",")}return sh+t[3]})},t.prototype._colonHostContextPartReplacer=function(t,e,r){return e.indexOf(eh)>-1?this._colonHostPartReplacer(t,e,r):t+e+r+", "+e+" "+t+r},t.prototype._colonHostPartReplacer=function(t,e,r){return t+e.replace(eh,"")+r},t.prototype._convertShadowDOMSelectors=function(t){return uh.reduce(function(t,e){return t.replace(e," ")},t)},t.prototype._scopeSelectors=function(t,e,r){var n=this;return Fr(t,function(t){var o=t.selector,i=t.content;return"@"!=t.selector[0]?o=n._scopeSelector(t.selector,e,r,n.strictStyling):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(i=n._scopeSelectors(t.content,e,r)),new wh(o,i)})},t.prototype._scopeSelector=function(t,e,r,n){var o=this;return t.split(",").map(function(t){return t.trim().split(ch)}).map(function(t){var i=t[0],s=t.slice(1),a=function(t){return o._selectorNeedsScoping(t,e)?n?o._applyStrictSelectorScope(t,e,r):o._applySelectorScope(t,e,r):t};return[a(i)].concat(s).join(" ")}).join(", ")},t.prototype._selectorNeedsScoping=function(t,e){var r=this._makeScopeMatcher(e);return!r.test(t)},t.prototype._makeScopeMatcher=function(t){var e=/\[/g,r=/\]/g;return t=t.replace(e,"\\[").replace(r,"\\]"),new RegExp("^("+t+")"+lh,"m")},t.prototype._applySelectorScope=function(t,e,r){return this._applySimpleSelectorScope(t,e,r)},t.prototype._applySimpleSelectorScope=function(t,e,r){if(ph.lastIndex=0,ph.test(t)){var n=this.strictStyling?"["+r+"]":e;return t.replace(ah,function(t,e){return e.replace(/([^:]*)(:*)(.*)/,function(t,e,r,o){return e+n+r+o})}).replace(ph,n+" ")}return e+" "+t},t.prototype._applyStrictSelectorScope=function(t,e,r){var n=this,o=/\[is=([^\]]*)\]/g;e=e.replace(o,function(){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return t[0]});var i="["+e+"]",s=function(t){var o=t.trim();if(!o)return"";if(t.indexOf(sh)>-1)o=n._applySimpleSelectorScope(t,e,r);else{var s=t.replace(ph,"");if(s.length>0){var a=s.match(/([^:]*)(:*)(.*)/);a&&(o=a[1]+i+a[2]+a[3])}}return o},a=new Zp(t);t=a.content();for(var u,c="",l=0,p=/( |>|\+|~(?!=))\s*/g,h=t.indexOf(sh);null!==(u=p.exec(t));){var f=u[1],d=t.slice(l,u.index).trim(),m=l>=h?s(d):d;c+=m+" "+f+" ",l=p.lastIndex}return c+=s(t.substring(l)),a.restore(c)},t.prototype._insertPolyfillHostInCssText=function(t){return t.replace(fh,rh).replace(hh,eh)},t}(),Zp=function(){function t(t){var e=this;this.placeholders=[],this.index=0,t=t.replace(/(\[[^\]]*\])/g,function(t,r){var n="__ph-"+e.index+"__";return e.placeholders.push(r),e.index++,n}),this._content=t.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(t,r,n){var o="__ph-"+e.index+"__";return e.placeholders.push(n),e.index++,r+o})}return t.prototype.restore=function(t){var e=this;return t.replace(/__ph-(\d+)__/g,function(t,r){return e.placeholders[+r]})},t.prototype.content=function(){return this._content},t}(),Yp=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,Jp=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,th=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,eh="-shadowcsshost",rh="-shadowcsscontext",nh=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",oh=new RegExp("("+eh+nh,"gim"),ih=new RegExp("("+rh+nh,"gim"),sh=eh+"-no-combinator",ah=/-shadowcsshost-no-combinator([^\s]*)/,uh=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],ch=/(?:>>>)|(?:\/deep\/)/g,lh="([>\\s~+[.,{:][\\s\\S]*)?$",ph=/-shadowcsshost/gim,hh=/:host/gim,fh=/:host-context/gim,dh=/\/\*\s*[\s\S]*?\*\//g,mh=/\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//,yh=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,vh=/([{}])/g,gh="{",_h="}",bh="%BLOCK%",wh=function(){function t(t,e){this.selector=t,this.content=e}return t}(),Ch=function(){function t(t,e){this.escapedString=t,this.blocks=e}return t}(),Eh="%COMP%",Sh="_nghost-"+Eh,xh="_ngcontent-"+Eh,Th=function(){function t(t,e,r,n){this.name=t,this.moduleUrl=e,this.isShimmed=r,this.valuePlaceholder=n}return t}(),Ph=function(){function t(t,e){this.componentStylesheet=t,this.externalStylesheets=e}return t}(),Ah=function(){function t(t,e,r,n,o){this.statements=t,this.stylesVar=e,this.dependencies=r,this.isShimmed=n,this.meta=o}return t}(),Oh=function(){function t(t){this._urlResolver=t,this._shadowCss=new Xp}return t.prototype.compileComponent=function(t){var e=this,r=t.template,n=[],o=this._compileStyles(t,new $o({styles:r.styles,styleUrls:r.styleUrls,moduleUrl:S(t.type)}),!0);return r.externalStylesheets.forEach(function(r){var o=e._compileStyles(t,r,!1);n.push(o)}),new Ph(o,n)},t.prototype._compileStyles=function(t,r,n){for(var o=this,i=t.template.encapsulation===e.ViewEncapsulation.Emulated,s=r.styles.map(function(t){return Sr(o._shimIfNeeded(t,i))}),a=[],u=0;u<r.styleUrls.length;u++){var c={reference:null};a.push(new Th(Br(null),r.styleUrls[u],i,c)),s.push(new Vl(c))}var l=Br(n?t:null),p=yr(l).set(br(s,new wl(El,[yl.Const]))).toDeclStmt(null,[ep.Final]);return new Ah([p],l,a,i,r)},t.prototype._shimIfNeeded=function(t,e){return e?this._shadowCss.shimCssText(t,xh,Sh):t},t}();Oh.decorators=[{type:z}],Oh.ctorParameters=function(){return[{type:el}]};var Mh=function(){function t(){}return t}();Mh.event=yr("$event");var Rh=function(){function t(t,e){this.stmts=t,this.allowDefault=e}return t}(),kh=function(){function t(t,e){this.stmts=t,this.currValExpr=e}return t}(),Ih={};Ih.Statement=0,Ih.Expression=1,Ih[Ih.Statement]="Statement",Ih[Ih.Expression]="Expression";var Nh=function(t){function e(e){var r=t.call(this)||this;return r._converterFactory=e,r}return Zn(e,t),e.prototype.visitPipe=function(t,e){var r=this,n=[t.exp].concat(t.args).map(function(t){return t.visit(r,e)});return new Lh(t.span,n,this._converterFactory.createPipeConverter(t.name,n.length))},e.prototype.visitLiteralArray=function(t,e){var r=this,n=t.expressions.map(function(t){return t.visit(r,e)});return new Lh(t.span,n,this._converterFactory.createLiteralArrayConverter(t.expressions.length))},e.prototype.visitLiteralMap=function(t,e){var r=this,n=t.values.map(function(t){return t.visit(r,e)});return new Lh(t.span,n,this._converterFactory.createLiteralMapConverter(t.keys))},e}(Pi),Dh=function(){function t(t,e,r){this._localResolver=t,this._implicitReceiver=e,this.bindingId=r,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0}return t.prototype.visitBinary=function(t,e){var r;switch(t.operation){case"+":r=Tl.Plus;break;case"-":r=Tl.Minus;break;case"*":r=Tl.Multiply;break;case"/":r=Tl.Divide;break;case"%":r=Tl.Modulo;break;case"&&":r=Tl.And;break;case"||":r=Tl.Or;break;case"==":r=Tl.Equals;break;case"!=":r=Tl.NotEquals;break;case"===":r=Tl.Identical;break;case"!==":r=Tl.NotIdentical;break;case"<":r=Tl.Lower;break;case">":r=Tl.Bigger;break;case"<=":r=Tl.LowerEquals;break;case">=":r=Tl.BiggerEquals;break;default:throw new Error("Unsupported operation "+t.operation)}return Zr(e,new zl(r,this.visit(t.left,Ih.Expression),this.visit(t.right,Ih.Expression)))},t.prototype.visitChain=function(t,e){return Qr(e,t),this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){var r=this.visit(t.condition,Ih.Expression);return Zr(e,r.conditional(this.visit(t.trueExp,Ih.Expression),this.visit(t.falseExp,Ih.Expression)))},t.prototype.visitPipe=function(t){throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: "+t.name)},t.prototype.visitFunctionCall=function(t,e){var r,n=this.visitAll(t.args,Ih.Expression);return r=t instanceof Lh?t.converter(n):this.visit(t.target,Ih.Expression).callFn(n),Zr(e,r)},t.prototype.visitImplicitReceiver=function(t,e){return Xr(e,t),this._implicitReceiver},t.prototype.visitInterpolation=function(t,e){Xr(e,t);for(var r=[Sr(t.expressions.length)],n=0;n<t.strings.length-1;n++)r.push(Sr(t.strings[n])),r.push(this.visit(t.expressions[n],Ih.Expression));return r.push(Sr(t.strings[t.strings.length-1])),t.expressions.length<=9?vr(de(zu.inlineInterpolate)).callFn(r):vr(de(zu.interpolate)).callFn([r[0],br(r.slice(1))])},t.prototype.visitKeyedRead=function(t,e){var r=this.leftMostSafeNode(t);return r?this.convertSafeAccess(t,r,e):Zr(e,this.visit(t.obj,Ih.Expression).key(this.visit(t.key,Ih.Expression)))},t.prototype.visitKeyedWrite=function(t,e){var r=this.visit(t.obj,Ih.Expression),n=this.visit(t.key,Ih.Expression),o=this.visit(t.value,Ih.Expression);return Zr(e,r.key(n).set(o))},t.prototype.visitLiteralArray=function(){throw new Error("Illegal State: literal arrays should have been converted into functions")},t.prototype.visitLiteralMap=function(){throw new Error("Illegal State: literal maps should have been converted into functions")},t.prototype.visitLiteralPrimitive=function(t,e){return Zr(e,Sr(t.value))},t.prototype._getLocal=function(t){return this._localResolver.getLocal(t)},t.prototype.visitMethodCall=function(t,e){var r=this.leftMostSafeNode(t);if(r)return this.convertSafeAccess(t,r,e);var n=this.visitAll(t.args,Ih.Expression),o=null,i=this.visit(t.receiver,Ih.Expression);if(i===this._implicitReceiver){var s=this._getLocal(t.name);s&&(o=s.callFn(n))}return null==o&&(o=i.callMethod(t.name,n)),Zr(e,o)},t.prototype.visitPrefixNot=function(t,e){return Zr(e,Cr(this.visit(t.expression,Ih.Expression)))},t.prototype.visitPropertyRead=function(t,e){var r=this.leftMostSafeNode(t);if(r)return this.convertSafeAccess(t,r,e);var n=null,o=this.visit(t.receiver,Ih.Expression);return o===this._implicitReceiver&&(n=this._getLocal(t.name)),null==n&&(n=o.prop(t.name)),Zr(e,n)},t.prototype.visitPropertyWrite=function(t,e){var r=this.visit(t.receiver,Ih.Expression);if(r===this._implicitReceiver){var n=this._getLocal(t.name);if(n)throw new Error("Cannot assign to a reference or variable!")}return Zr(e,r.prop(t.name).set(this.visit(t.value,Ih.Expression)))},t.prototype.visitSafePropertyRead=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitSafeMethodCall=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitAll=function(t,e){var r=this;return t.map(function(t){return r.visit(t,e)})},t.prototype.visitQuote=function(t){throw new Error("Quotes are not supported for evaluation!\n        Statement: "+t.uninterpretedExpression+" located at "+t.location)},t.prototype.visit=function(t,e){var r=this._resultMap.get(t);return r?r:(this._nodeMap.get(t)||t).visit(this,e)},t.prototype.convertSafeAccess=function(t,e,r){var n=this.visit(e.receiver,Ih.Expression),o=void 0;this.needsTemporary(e.receiver)&&(o=this.allocateTemporary(),n=o.set(n),this._resultMap.set(e.receiver,o));var i=n.isBlank();e instanceof Ci?this._nodeMap.set(e,new wi(e.span,e.receiver,e.name,e.args)):this._nodeMap.set(e,new ci(e.span,e.receiver,e.name));var s=this.visit(t,Ih.Expression);return this._nodeMap["delete"](e),o&&this.releaseTemporary(o),Zr(r,i.conditional(Sr(null),s))},t.prototype.leftMostSafeNode=function(t){var e=this,r=function(t,r){return(e._nodeMap.get(r)||r).visit(t)};return t.visit({visitBinary:function(){return null},visitChain:function(){return null},visitConditional:function(){return null},visitFunctionCall:function(){return null},visitImplicitReceiver:function(){return null},visitInterpolation:function(){return null},visitKeyedRead:function(t){return r(this,t.obj)},visitKeyedWrite:function(){return null},visitLiteralArray:function(){return null},visitLiteralMap:function(){return null},visitLiteralPrimitive:function(){return null},visitMethodCall:function(t){return r(this,t.receiver)},visitPipe:function(){return null},visitPrefixNot:function(){return null},visitPropertyRead:function(t){return r(this,t.receiver)},visitPropertyWrite:function(){return null},visitQuote:function(){return null},visitSafeMethodCall:function(t){return r(this,t.receiver)||t},visitSafePropertyRead:function(t){return r(this,t.receiver)||t}})},t.prototype.needsTemporary=function(t){var e=this,r=function(t,r){return r&&(e._nodeMap.get(r)||r).visit(t)},n=function(t,e){return e.some(function(e){return r(t,e)})};return t.visit({visitBinary:function(t){return r(this,t.left)||r(this,t.right)},visitChain:function(){return!1},visitConditional:function(t){return r(this,t.condition)||r(this,t.trueExp)||r(this,t.falseExp)},visitFunctionCall:function(){return!0},visitImplicitReceiver:function(){return!1},visitInterpolation:function(t){return n(this,t.expressions)},visitKeyedRead:function(){return!1},visitKeyedWrite:function(){return!1},visitLiteralArray:function(){return!0},visitLiteralMap:function(){return!0},visitLiteralPrimitive:function(){return!1},visitMethodCall:function(){return!0},visitPipe:function(){return!0},visitPrefixNot:function(t){return r(this,t.expression)},visitPropertyRead:function(){return!1},visitPropertyWrite:function(){return!1},visitQuote:function(){return!1},visitSafeMethodCall:function(){return!0},visitSafePropertyRead:function(){return!1}})},t.prototype.allocateTemporary=function(){var t=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new Ol(Wr(this.bindingId,t))},t.prototype.releaseTemporary=function(t){if(this._currentTemporary--,t.name!=Wr(this.bindingId,this._currentTemporary))throw new Error("Temporary "+t.name+" released out of order")},t}(),jh=function(){function t(){}return t.prototype.getLocal=function(t){return t===Mh.event.name?Mh.event:null},t}(),Lh=function(t){function e(e,r,n){var o=t.call(this,e,null,r)||this;return o.args=r,o.converter=n,o}return Zn(e,t),e}(Ei),Vh="class",Fh="style",Uh="$implicit",Bh=function(){function t(t,e,r){this.statements=t,this.viewClassVar=e,this.rendererTypeVar=r}return t}(),Hh=function(){function t(t,e){this._genConfigNext=t,this._schemaRegistry=e}return t.prototype.compileComponent=function(t,e,r,n){var o=0,i=mn(e),s=[],a=void 0;if(!t.isHost){var u=t.template,c=[];u.animations&&u.animations.length&&c.push(new Kl("animation",Pr(u.animations),!0));var l=yr(T(t.type.reference));a=l.name,s.push(l.set(vr(de(zu.createRendererType2)).callFn([new Ql([new Kl("encapsulation",Sr(u.encapsulation)),new Kl("styles",r),new Kl("data",new Ql(c))])])).toDeclStmt(gr(de(zu.RendererType2)),[ep.Final]))}var p=function(e){var r=o++;return new Qh(e,t,r,n,i,p)},h=p(null);return h.visitAll([],e),s.push.apply(s,h.build()),new Bh(s,h.viewName,a)},t}();Hh.decorators=[{type:z}],Hh.ctorParameters=function(){return[{type:ti},{type:Ju}]};var qh=yr("l"),zh=yr("v"),Gh=yr("ck"),Wh=yr("co"),$h=yr("en"),Kh=yr("ad"),Qh=function(){function t(t,e,r,n,o,i){this.parent=t,this.component=e,this.embeddedViewIndex=r,this.usedPipes=n,this.staticQueryIds=o,this.viewBuilderFactory=i,this.nodes=[],this.purePipeNodeIndices=Object.create(null),this.refNodeIndices=Object.create(null),this.variables=[],this.children=[],this.compType=this.embeddedViewIndex>0?El:gr(this.component.type)}return Object.defineProperty(t.prototype,"viewName",{get:function(){return x(this.component.type.reference,this.embeddedViewIndex)},enumerable:!0,configurable:!0}),t.prototype.visitAll=function(t,e){var n=this;if(this.variables=t,this.parent||this.usedPipes.forEach(function(t){t.pure&&(n.purePipeNodeIndices[t.name]=n._createPipe(null,t))}),!this.parent){var o=yn(this.staticQueryIds);this.component.viewQueries.forEach(function(t,e){var r=e+1,i=t.first?0:1,s=67108864|_n(o,r,t.first);n.nodes.push(function(){return{sourceSpan:null,nodeFlags:s,nodeDef:vr(de(zu.queryDef)).callFn([Sr(s),Sr(r),new Ql([new Kl(t.propertyName,Sr(i))])])}})})}r(this,e),this.parent&&(0===e.length||un(e))&&this.nodes.push(function(){return{sourceSpan:null,nodeFlags:1,nodeDef:vr(de(zu.anchorDef)).callFn([Sr(0),Jl,Jl,Sr(0)])}})},t.prototype.build=function(t){void 0===t&&(t=[]),this.children.forEach(function(e){return e.build(t)});var r=this._createNodeExpressions(),n=r.updateRendererStmts,o=r.updateDirectivesStmts,i=r.nodeDefExprs,s=this._createUpdateFn(n),a=this._createUpdateFn(o),u=0;this.parent||this.component.changeDetection!==e.ChangeDetectionStrategy.OnPush||(u|=2);var c=new op(this.viewName,[new Hl(qh.name)],[new sp(vr(de(zu.viewDef)).callFn([Sr(u),br(i),a,s]))],gr(de(zu.ViewDefinition)));return t.push(c),t},t.prototype._createUpdateFn=function(t){var e;if(t.length>0){var r=[];!this.component.isHost&&fr(t).has(Wh.name)&&r.push(Wh.set(zh.prop("component")).toDeclStmt(this.compType)),e=Er([new Hl(Gh.name,Sl),new Hl(zh.name,Sl)],r.concat(t),Sl)}else e=Jl;return e},t.prototype.visitNgContent=function(t){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:4,nodeDef:vr(de(zu.ngContentDef)).callFn([Sr(t.ngContentIndex),Sr(t.index)])}})},t.prototype.visitText=function(t){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:vr(de(zu.textDef)).callFn([Sr(t.ngContentIndex),br([Sr(t.value)])])}})},t.prototype.visitBoundText=function(t){var e=this,r=this.nodes.length;this.nodes.push(null);var n=t.value,o=n.ast,i=o.expressions.map(function(n,o){return e._preprocessUpdateExpression({nodeIndex:r,bindingIndex:o,sourceSpan:t.sourceSpan,context:Wh,value:n})});this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:vr(de(zu.textDef)).callFn([Sr(t.ngContentIndex),br(o.strings.map(function(t){return Sr(t)}))]),updateRenderer:i}}},t.prototype.visitEmbeddedTemplate=function(t){var e=this,r=this.nodes.length;this.nodes.push(null);var n=this._visitElementOrTemplate(r,t),o=n.flags,i=n.queryMatchesExpr,s=n.hostEvents,a=this.viewBuilderFactory(this);this.children.push(a),a.visitAll(t.variables,t.children);var u=this.nodes.length-r-1;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|o,nodeDef:vr(de(zu.anchorDef)).callFn([Sr(o),i,Sr(t.ngContentIndex),Sr(u),e._createElementHandleEventFn(r,s),yr(a.viewName)])}}},t.prototype.visitElement=function(t){var e=this,n=this.nodes.length;this.nodes.push(null);var i=o(t.name)?null:t.name,s=this._visitElementOrTemplate(n,t),a=s.flags,u=s.usedEvents,c=s.queryMatchesExpr,l=s.hostBindings,p=s.hostEvents,h=[],f=[],d=[];if(i){var m=t.inputs.map(function(t){return{context:Wh,inputAst:t,dirAst:null}}).concat(l);m.length&&(f=m.map(function(t,r){return e._preprocessUpdateExpression({context:t.context,nodeIndex:n,bindingIndex:r,sourceSpan:t.inputAst.sourceSpan,value:t.inputAst.value})}),h=m.map(function(t){return ln(t.inputAst,t.dirAst)})),d=u.map(function(t){var e=t[0],r=t[1];return br([Sr(e),Sr(r)])})}r(this,t.children);var y=this.nodes.length-n-1,v=t.directives.find(function(t){return t.directive.isComponent}),g=Jl,_=Jl;v&&(_=vr({reference:v.directive.componentViewType}),g=vr({reference:v.directive.rendererType})),this.nodes[n]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|a,nodeDef:vr(de(zu.elementDef)).callFn([Sr(a),c,Sr(t.ngContentIndex),Sr(y),Sr(i),i?pn(t):Jl,h.length?br(h):Jl,d.length?br(d):Jl,e._createElementHandleEventFn(n,p),_,g]),updateRenderer:f}}},t.prototype._visitElementOrTemplate=function(t,r){var n=this,o=0;r.hasViewContainer&&(o|=8388608);var i=new Map;r.outputs.forEach(function(t){var r=gn(t,null),n=r.name,o=r.target;i.set(e.ɵelementEventFullName(o,n),[o,n])}),r.directives.forEach(function(t){t.hostEvents.forEach(function(r){var n=gn(r,t),o=n.name,s=n.target;i.set(e.ɵelementEventFullName(s,o),[s,o])})});var s=[],a=[],u=vn(r.directives);u&&this._visitProvider(u,r.queryMatches),r.providers.forEach(function(e){var o=void 0,u=void 0;if(r.directives.forEach(function(t,r){t.directive.type.reference===R(e.token)&&(o=t,u=r)}),o){var c=n._visitDirective(e,o,u,t,r.references,r.queryMatches,i,n.staticQueryIds.get(r)),l=c.hostBindings,p=c.hostEvents;s.push.apply(s,l),a.push.apply(a,p)}else n._visitProvider(e,r.queryMatches)});var c=[];return r.queryMatches.forEach(function(t){var e=void 0;R(t.value)===fe(zu.ElementRef)?e=0:R(t.value)===fe(zu.ViewContainerRef)?e=3:R(t.value)===fe(zu.TemplateRef)&&(e=2),null!=e&&c.push(br([Sr(t.queryId),Sr(e)]))}),r.references.forEach(function(e){var r=void 0;e.value?R(e.value)===fe(zu.TemplateRef)&&(r=2):r=1,null!=r&&(n.refNodeIndices[e.name]=t,c.push(br([Sr(e.name),Sr(r)])))}),r.outputs.forEach(function(t){a.push({context:Wh,eventAst:t,dirAst:null})}),{flags:o,usedEvents:Array.from(i.values()),queryMatchesExpr:c.length?br(c):Jl,hostBindings:s,hostEvents:a}},t.prototype._visitDirective=function(t,e,r,n,o,i,s,a){var u=this,c=this.nodes.length;this.nodes.push(null),e.directive.queries.forEach(function(t,r){var n=e.contentQueryStartId+r,o=33554432|_n(a,n,t.first),i=t.first?0:1;u.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:o,nodeDef:vr(de(zu.queryDef)).callFn([Sr(o),Sr(n),new Ql([new Kl(t.propertyName,Sr(i))])])}})});var l=this.nodes.length-c-1,p=this._visitProviderOrDirective(t,i),h=p.flags,f=p.queryMatchExprs,d=p.providerExpr,m=p.depsExpr;o.forEach(function(e){e.value&&R(e.value)===R(t.token)&&(u.refNodeIndices[e.name]=c,f.push(br([Sr(e.name),Sr(4)])))}),e.directive.isComponent&&(h|=16384);var y=e.inputs.map(function(t,e){var r=br([Sr(e),Sr(t.directiveName)]);return new Kl(t.directiveName,r,!1)}),v=[],g=e.directive;Object.keys(g.outputs).forEach(function(t){var e=g.outputs[t];s.has(e)&&v.push(new Kl(t,Sr(e),!1))});var _=[];(e.inputs.length||(163840&h)>0)&&(_=e.inputs.map(function(t,e){return u._preprocessUpdateExpression({nodeIndex:c,bindingIndex:e,sourceSpan:t.sourceSpan,context:Wh,value:t.value})}));var b=vr(de(zu.nodeValue)).callFn([zh,Sr(c)]),w=e.hostProperties.map(function(t){return{context:b,dirAst:e,inputAst:t}}),C=e.hostEvents.map(function(t){return{context:b,eventAst:t,dirAst:e}});return this.nodes[c]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:8192|h,nodeDef:vr(de(zu.directiveDef)).callFn([Sr(h),f.length?br(f):Jl,Sr(l),d,m,y.length?new Ql(y):Jl,v.length?new Ql(v):Jl]),updateDirectives:_,directive:e.directive.type}},{hostBindings:w,hostEvents:C}},t.prototype._visitProvider=function(t,e){var r=this.nodes.length;this.nodes.push(null);var n=this._visitProviderOrDirective(t,e),o=n.flags,i=n.queryMatchExprs,s=n.providerExpr,a=n.depsExpr;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:o,nodeDef:vr(de(zu.providerDef)).callFn([Sr(o),i.length?br(i):Jl,sn(t.token),s,a])}}},t.prototype._visitProviderOrDirective=function(t,r){var n=0;t.eager||(n|=2048),t.providerType===po.PrivateService&&(n|=4096),t.lifecycleHooks.forEach(function(r){(r===e.ɵLifecycleHooks.OnDestroy||t.providerType===po.Directive||t.providerType===po.Component)&&(n|=cn(r))});var o=[];r.forEach(function(e){R(e.value)===R(t.token)&&o.push(br([Sr(e.queryId),Sr(4)]))});var i=rn(t),s=i.providerExpr,a=i.depsExpr,u=i.flags;return{flags:n|u,queryMatchExprs:o,providerExpr:s,depsExpr:a}},t.prototype.getLocal=function(t){if(t==Mh.event.name)return Mh.event;for(var e=zh,r=this;r;r=r.parent,e=e.prop("parent").cast(El)){var n=r.refNodeIndices[t];if(null!=n)return vr(de(zu.nodeValue)).callFn([e,Sr(n)]);var o=r.variables.find(function(e){return e.name===t});if(o){var i=o.value||Uh;return e.prop("context").prop(i)}}return null},t.prototype.createLiteralArrayConverter=function(t,e){if(0===e){var r=vr(de(zu.EMPTY_ARRAY));return function(){return r}}var n=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:16,nodeDef:vr(de(zu.pureArrayDef)).callFn([Sr(e)])}}),function(t){return fn(n,t)}},t.prototype.createLiteralMapConverter=function(t,e){if(0===e.length){var r=vr(de(zu.EMPTY_MAP));return function(){return r}}var n=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:32,nodeDef:vr(de(zu.pureObjectDef)).callFn([br(e.map(function(t){return Sr(t)}))])}}),function(t){return fn(n,t)}},t.prototype.createPipeConverter=function(t,e,r){var n=this.usedPipes.find(function(t){return t.name===e});if(n.pure){var o=this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:64,nodeDef:vr(de(zu.purePipeDef)).callFn([Sr(r)])}});for(var i=zh,s=this;s.parent;)s=s.parent,i=i.prop("parent").cast(El);var a=s.purePipeNodeIndices[e],u=vr(de(zu.nodeValue)).callFn([i,Sr(a)]);return function(e){return dn(t.nodeIndex,t.bindingIndex,fn(o,[u].concat(e)))}}var c=this._createPipe(t.sourceSpan,n),l=vr(de(zu.nodeValue)).callFn([zh,Sr(c)]);return function(e){return dn(t.nodeIndex,t.bindingIndex,l.callMethod("transform",e))}},t.prototype._createPipe=function(t,r){var n=this.nodes.length,o=0;r.type.lifecycleHooks.forEach(function(t){t===e.ɵLifecycleHooks.OnDestroy&&(o|=cn(t))});var i=r.type.diDeps.map(an);return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:8,nodeDef:vr(de(zu.pipeDef)).callFn([Sr(o),vr(r.type),br(i)])}}),n},t.prototype._preprocessUpdateExpression=function(t){var e=this;return{nodeIndex:t.nodeIndex,bindingIndex:t.bindingIndex,sourceSpan:t.sourceSpan,context:t.context,value:qr({createLiteralArrayConverter:function(r){return e.createLiteralArrayConverter(t.sourceSpan,r)},createLiteralMapConverter:function(r){return e.createLiteralMapConverter(t.sourceSpan,r)},createPipeConverter:function(r,n){return e.createPipeConverter(t,r,n)}},t.value)}},t.prototype._createNodeExpressions=function(){function t(t,n,o,i){var s=[],a=o.map(function(t){var n=t.sourceSpan,o=t.context,i=t.value,a=""+r++,u=o===Wh?e:null,c=zr(u,o,i,a),l=c.stmts,p=c.currValExpr;return s.push.apply(s,l.map(function(t){return dr(t,n)})),mr(p,n)});return(o.length||i)&&s.push(dr(fn(t,a).toStmt(),n)),s}var e=this,r=0,n=[],o=[],i=this.nodes.map(function(e,r){var i=e(),s=i.nodeDef,a=i.nodeFlags,u=i.updateDirectives,c=i.updateRenderer,l=i.sourceSpan;c&&n.push.apply(n,t(r,l,c,!1)),u&&o.push.apply(o,t(r,l,u,(163840&a)>0));var p=3&a?new Xl([qh.callFn([]).callFn([]),s]):s;return mr(p,l)});return{updateRendererStmts:n,updateDirectivesStmts:o,nodeDefExprs:i}},t.prototype._createElementHandleEventFn=function(t,r){var n=this,o=[],i=0;r.forEach(function(t){var r=t.context,s=t.eventAst,a=t.dirAst,u=""+i++,c=r===Wh?n:null,l=Hr(c,r,s.handler,u),p=l.stmts,h=l.allowDefault,f=p;h&&f.push(Kh.set(h.and(Kh)).toStmt());var d=gn(s,a),m=d.target,y=d.name,v=e.ɵelementEventFullName(m,y);o.push(dr(new hp(Sr(v).identical($h),f),s.sourceSpan))});var s;if(o.length>0){var a=[Kh.set(Sr(!0)).toDeclStmt(xl)];!this.component.isHost&&fr(o).has(Wh.name)&&a.push(Wh.set(zh.prop("component")).toDeclStmt(this.compType)),s=Er([new Hl(zh.name,Sl),new Hl($h.name,Sl),new Hl(Mh.event.name,Sl)],a.concat(o,[new sp(Kh)]),Sl)}else s=Jl;return s},t.prototype.visitDirective=function(){},t.prototype.visitDirectiveProperty=function(){},t.prototype.visitReference=function(){},t.prototype.visitVariable=function(){},t.prototype.visitEvent=function(){},t.prototype.visitElementProperty=function(){},t.prototype.visitAttr=function(){},t}(),Xh=function(){function t(t,e,r){this.srcFileUrl=t,this.genFileUrl=e,this.source=r}return t}(),Zh=function(t){function e(e,r){var n=t.call(this)||this;return n.symbolResolver=e,n.summaryResolver=r,n.symbols=[],n.indexBySymbol=new Map,n.processedSummaryBySymbol=new Map,n.processedSummaries=[],n}return Zn(e,t),e.prototype.addOrMergeSummary=function(t){var e=t.metadata;if(e&&"class"===e.__symbolic){var r={};Object.keys(e).forEach(function(t){"decorators"!==t&&(r[t]=e[t])}),e=r}var n=this.processedSummaryBySymbol.get(t.symbol);n||(n=this.processValue({symbol:t.symbol}),this.processedSummaries.push(n),this.processedSummaryBySymbol.set(t.symbol,n)),null==n.metadata&&null!=e&&(n.metadata=this.processValue(e)),null==n.type&&null!=t.type&&(n.type=this.processValue(t.type))},e.prototype.serialize=function(){var t=this,e=[],r=JSON.stringify({summaries:this.processedSummaries,symbols:this.symbols.map(function(r,n){r.assertNoMembers();var o=void 0;return t.summaryResolver.isLibraryFile(r.filePath)&&(o=r.name+"_"+n,e.push({symbol:r,exportAs:o})),{__symbol:n,name:r.name,filePath:t.summaryResolver.getLibraryFileName(r.filePath),importAs:o}})});return{json:r,exportAs:e
+}},e.prototype.processValue=function(t){return d(t,this,null)},e.prototype.visitOther=function(t){if(t instanceof mo){var e=this.symbolResolver.getStaticSymbol(t.filePath,t.name),r=this.indexBySymbol.get(e);return null==r&&(r=this.indexBySymbol.size,this.indexBySymbol.set(e,r),this.symbols.push(e)),{__symbol:r,members:t.members}}},e}(Oo),Yh=function(t){function e(e){var r=t.call(this)||this;return r.symbolCache=e,r}return Zn(e,t),e.prototype.deserialize=function(t){var e=this,r=JSON.parse(t),n=[];this.symbols=[],r.symbols.forEach(function(t){var r=e.symbolCache.get(t.filePath,t.name);e.symbols.push(r),t.importAs&&n.push({symbol:r,importAs:t.importAs})});var o=d(r.summaries,this,null);return{summaries:o,importAs:n}},e.prototype.visitStringMap=function(e,r){if("__symbol"in e){var n=this.symbols[e.__symbol],o=e.members;return o.length?this.symbolCache.get(n.filePath,n.name,o):n}return t.prototype.visitStringMap.call(this,e,r)},e}(Oo),Jh=function(){function t(t,e,r,n,o,i,s,a,u,c,l,p,h){this._config=t,this._host=e,this._metadataResolver=r,this._templateParser=n,this._styleCompiler=o,this._viewCompiler=i,this._ngModuleCompiler=s,this._outputEmitter=a,this._summaryResolver=u,this._localeId=c,this._translationFormat=l,this._genFilePreamble=p,this._symbolResolver=h}return t.prototype.clearCache=function(){this._metadataResolver.clearCache()},t.prototype.compileAll=function(t){var e=this,r=An(this._symbolResolver,t,this._host),n=Tn(r,this._host,this._metadataResolver),o=n.ngModuleByPipeOrDirective,i=n.files,s=n.ngModules;return Promise.all(s.map(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=i.map(function(t){return e._compileSrcFile(t.srcUrl,o,t.directives,t.pipes,t.ngModules,t.injectables)});return N(t)})},t.prototype._compileSrcFile=function(t,e,r,n,o,i){var s=this,a=Je(t)[1],u=[],c=[],l=[];if(l.push(this._createSummary(t,r,n,o,i,u,c)),c.push.apply(c,o.map(function(t){return s._compileModule(t,u)})),r.forEach(function(r){var n=s._metadataResolver.getDirectiveMetadata(r);if(!n.isComponent)return Promise.resolve(null);var o=e.get(r);if(!o)throw new Error("Internal Error: cannot determine the module for component "+E(n.type)+"!");Sn(n);var i=s._styleCompiler.compileComponent(n);i.externalStylesheets.forEach(function(e){l.push(s._codgenStyles(t,e,a))});var p=s._compileComponent(n,o,o.transitiveModule.directives,i.componentStylesheet,a,u);c.push(s._compileComponentFactory(n,o,a,u),p.viewClassVar,p.compRenderTypeVar)}),u.length>0){var p=this._codegenSourceModule(t,Xe(t),u,c);l.unshift(p)}return l},t.prototype._createSummary=function(t,e,r,n,o,i,s){var a=this,u=this._symbolResolver.getSymbolsOf(t).map(function(t){return a._symbolResolver.resolveSymbol(t)}),c=n.map(function(t){return a._metadataResolver.getNgModuleSummary(t)}).concat(e.map(function(t){return a._metadataResolver.getDirectiveSummary(t)}),r.map(function(t){return a._metadataResolver.getPipeSummary(t)}),o.map(function(t){return a._metadataResolver.getInjectableSummary(t)})),l=bn(this._summaryResolver,this._symbolResolver,u,c),p=l.json,h=l.exportAs;return h.forEach(function(t){i.push(yr(t.exportAs).set(vr({reference:t.symbol})).toDeclStmt()),s.push(t.exportAs)}),new Xh(t,tr(t),p)},t.prototype._compileModule=function(t,e){var r=this._metadataResolver.getNgModuleMetadata(t),n=[];this._localeId&&n.push({token:ye(zu.LOCALE_ID),useValue:this._localeId}),this._translationFormat&&n.push({token:ye(zu.TRANSLATIONS_FORMAT),useValue:this._translationFormat});var o=this._ngModuleCompiler.compile(r,n);return e.push.apply(e,o.statements),o.ngModuleFactoryVar},t.prototype._compileComponentFactory=function(t,e,r,n){var o=this._metadataResolver.getHostComponentType(t.type.reference),i=k(o,t,this._metadataResolver.getHostComponentViewClass(o)),s=this._compileComponent(i,e,[t.type],null,r,n).viewClassVar,a=O(t.type.reference),u=[];for(var c in t.inputs){var l=t.inputs[c];u.push(new Kl(c,Sr(l),!1))}var p=[];for(var c in t.outputs){var l=t.outputs[c];p.push(new Kl(c,Sr(l),!1))}return n.push(yr(a).set(vr(de(zu.createComponentFactory)).callFn([Sr(t.selector),vr(t.type),yr(s),new Ql(u),new Ql(p),br(t.template.ngContentSelectors.map(function(t){return Sr(t)}))])).toDeclStmt(gr(de(zu.ComponentFactory),[gr(t.type)],[yl.Const]),[ep.Final])),a},t.prototype._compileComponent=function(t,e,r,n,o,i){var s=this,a=r.map(function(t){return s._metadataResolver.getDirectiveSummary(t.reference)}),u=e.transitiveModule.pipes.map(function(t){return s._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(t,t.template.template,a,u,e.schemas,j(e.type,t,t.template)),l=c.template,p=c.pipes,h=n?yr(n.stylesVar):br([]),f=this._viewCompiler.compileComponent(t,l,h,p);return n&&i.push.apply(i,Cn(this._symbolResolver,n,o)),i.push.apply(i,f.statements),{viewClassVar:f.viewClassVar,compRenderTypeVar:f.rendererTypeVar}},t.prototype._codgenStyles=function(t,e,r){return Cn(this._symbolResolver,e,r),this._codegenSourceModule(t,En(e.meta.moduleUrl,e.isShimmed,r),e.statements,[e.stylesVar])},t.prototype._codegenSourceModule=function(t,e,r,n){return new Xh(t,e,this._outputEmitter.emitStatements(D(t),e,r,n,this._genFilePreamble))},t}(),tf=function(){function t(t){this.staticDelegate=t,this.dynamicDelegate=new e.ɵReflectionCapabilities}return t.install=function(r){e.ɵreflector.updateCapabilities(new t(r))},t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return this.dynamicDelegate.factory(t)},t.prototype.hasLifecycleHook=function(t,e){return Mn(t)?this.staticDelegate.hasLifecycleHook(t,e):this.dynamicDelegate.hasLifecycleHook(t,e)},t.prototype.parameters=function(t){return Mn(t)?this.staticDelegate.parameters(t):this.dynamicDelegate.parameters(t)},t.prototype.annotations=function(t){return Mn(t)?this.staticDelegate.annotations(t):this.dynamicDelegate.annotations(t)},t.prototype.propMetadata=function(t){return Mn(t)?this.staticDelegate.propMetadata(t):this.dynamicDelegate.propMetadata(t)},t.prototype.getter=function(t){return this.dynamicDelegate.getter(t)},t.prototype.setter=function(t){return this.dynamicDelegate.setter(t)},t.prototype.method=function(t){return this.dynamicDelegate.method(t)},t.prototype.importUri=function(t){return this.staticDelegate.importUri(t)},t.prototype.resourceUri=function(t){return this.staticDelegate.resourceUri(t)},t.prototype.resolveIdentifier=function(t,e,r){return this.staticDelegate.resolveIdentifier(t,e,r)},t.prototype.resolveEnum=function(t,e){return Mn(t)?this.staticDelegate.resolveEnum(t,e):null},t}(),ef="@angular/core",rf=/^\$.*\$$/,nf={__symbolic:"ignore"},of=function(){function t(t,r,n,o,i){void 0===n&&(n=[]),void 0===o&&(o=[]);var s=this;this.summaryResolver=t,this.symbolResolver=r,this.errorRecorder=i,this.annotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.conversionMap=new Map,this.annotationForParentClassWithSummaryKind=new Map,this.annotationNames=new Map,this.initializeConversionMap(),n.forEach(function(t){return s._registerDecoratorOrConstructor(s.getStaticSymbol(t.filePath,t.name),t.ctor)}),o.forEach(function(t){return s._registerFunction(s.getStaticSymbol(t.filePath,t.name),t.fn)}),this.annotationForParentClassWithSummaryKind.set(Wo.Directive,[e.Directive,e.Component]),this.annotationForParentClassWithSummaryKind.set(Wo.Pipe,[e.Pipe]),this.annotationForParentClassWithSummaryKind.set(Wo.NgModule,[e.NgModule]),this.annotationForParentClassWithSummaryKind.set(Wo.Injectable,[e.Injectable,e.Pipe,e.Directive,e.Component,e.NgModule]),this.annotationNames.set(e.Directive,"Directive"),this.annotationNames.set(e.Component,"Component"),this.annotationNames.set(e.Pipe,"Pipe"),this.annotationNames.set(e.NgModule,"NgModule"),this.annotationNames.set(e.Injectable,"Injectable")}return t.prototype.importUri=function(t){var e=this.findSymbolDeclaration(t);return e?e.filePath:null},t.prototype.resourceUri=function(t){var e=this.findSymbolDeclaration(t);return this.symbolResolver.getResourcePath(e)},t.prototype.resolveIdentifier=function(t,e,r){var n=this.getStaticSymbol(e,t),o=this.findDeclaration(e,t);return n!=o&&this.symbolResolver.recordImportAs(o,n),r&&r.length?this.getStaticSymbol(o.filePath,o.name,r):o},t.prototype.findDeclaration=function(t,e,r){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(t,e,r))},t.prototype.findSymbolDeclaration=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata instanceof mo?this.findSymbolDeclaration(e.metadata):t},t.prototype.resolveEnum=function(t,e){var r=t,n=(r.members||[]).concat(e);return this.getStaticSymbol(r.filePath,r.name,n)},t.prototype.annotations=function(t){var e=this,r=this.annotationCache.get(t);if(!r){r=[];var n=this.getTypeMetadata(t),o=this.findParentType(t,n);if(o){var i=this.annotations(o);r.push.apply(r,i)}var s=[];if(n.decorators&&(s=this.simplify(t,n.decorators),r.push.apply(r,s)),o&&!this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(o.filePath)){var a=this.summaryResolver.resolveSummary(o);if(a&&a.type){var u=this.annotationForParentClassWithSummaryKind.get(a.type.summaryKind),c=u.some(function(t){return s.some(function(e){return e instanceof t})});c||this.reportError(v("Class "+t.name+" in "+t.filePath+" extends from a "+Wo[a.type.summaryKind]+" in another compilation unit without duplicating the decorator. "+("Please add a "+u.map(function(t){return e.annotationNames.get(t)}).join(" or ")+" decorator to the class.")),t)}}this.annotationCache.set(t,r.filter(function(t){return!!t}))}return r},t.prototype.propMetadata=function(t){var e=this,r=this.propertyCache.get(t);if(!r){var n=this.getTypeMetadata(t);r={};var o=this.findParentType(t,n);if(o){var i=this.propMetadata(o);Object.keys(i).forEach(function(t){r[t]=i[t]})}var s=n.members||{};Object.keys(s).forEach(function(n){var o=s[n],i=o.find(function(t){return"property"==t.__symbolic||"method"==t.__symbolic}),a=[];r[n]&&a.push.apply(a,r[n]),r[n]=a,i&&i.decorators&&a.push.apply(a,e.simplify(t,i.decorators))}),this.propertyCache.set(t,r)}return r},t.prototype.parameters=function(t){if(!(t instanceof mo))return this.reportError(new Error("parameters received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),[];try{var e=this.parameterCache.get(t);if(!e){var r=this.getTypeMetadata(t),n=this.findParentType(t,r),o=r?r.members:null,i=o?o.__ctor__:null;if(i){var s=i.find(function(t){return"constructor"==t.__symbolic}),a=this.simplify(t,s.parameters||[]),u=this.simplify(t,s.parameterDecorators||[]);e=[],a.forEach(function(t,r){var n=[];t&&n.push(t);var o=u?u[r]:null;o&&n.push.apply(n,o),e.push(n)})}else n&&(e=this.parameters(n));e||(e=[]),this.parameterCache.set(t,e)}return e}catch(c){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+c),c}},t.prototype._methodNames=function(t){var e=this.methodCache.get(t);if(!e){var r=this.getTypeMetadata(t);e={};var n=this.findParentType(t,r);if(n){var o=this._methodNames(n);Object.keys(o).forEach(function(t){e[t]=o[t]})}var i=r.members||{};Object.keys(i).forEach(function(t){var r=i[t],n=r.some(function(t){return"method"==t.__symbolic});e[t]=e[t]||n}),this.methodCache.set(t,e)}return e},t.prototype.findParentType=function(t,e){var r=this.trySimplify(t,e["extends"]);return r instanceof mo?r:void 0},t.prototype.hasLifecycleHook=function(t,e){t instanceof mo||this.reportError(new Error("hasLifecycleHook received "+JSON.stringify(t)+" which is not a StaticSymbol"),t);try{return!!this._methodNames(t)[e]}catch(r){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+r),r}},t.prototype._registerDecoratorOrConstructor=function(t,e){this.conversionMap.set(t,function(t,r){return new(e.bind.apply(e,[void 0].concat(r)))})},t.prototype._registerFunction=function(t,e){this.conversionMap.set(t,function(t,r){return e.apply(void 0,r)})},t.prototype.initializeConversionMap=function(){this.injectionToken=this.findDeclaration(ef,"InjectionToken"),this.opaqueToken=this.findDeclaration(ef,"OpaqueToken"),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Injectable"),e.Injectable),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Inject"),e.Inject),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Optional"),e.Optional),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Attribute"),e.Attribute),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"ContentChild"),e.ContentChild),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"ContentChildren"),e.ContentChildren),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"ViewChild"),e.ViewChild),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"ViewChildren"),e.ViewChildren),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Input"),e.Input),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Output"),e.Output),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Pipe"),e.Pipe),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"HostBinding"),e.HostBinding),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"HostListener"),e.HostListener),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Directive"),e.Directive),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Component"),e.Component),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"NgModule"),e.NgModule),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Optional"),e.Optional),this._registerFunction(this.findDeclaration(ef,"trigger"),e.trigger),this._registerFunction(this.findDeclaration(ef,"state"),e.state),this._registerFunction(this.findDeclaration(ef,"transition"),e.transition),this._registerFunction(this.findDeclaration(ef,"style"),e.style),this._registerFunction(this.findDeclaration(ef,"animate"),e.animate),this._registerFunction(this.findDeclaration(ef,"keyframes"),e.keyframes),this._registerFunction(this.findDeclaration(ef,"sequence"),e.sequence),this._registerFunction(this.findDeclaration(ef,"group"),e.group)},t.prototype.getStaticSymbol=function(t,e,r){return this.symbolResolver.getStaticSymbol(t,e,r)},t.prototype.reportError=function(t,e,r){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||r)},t.prototype.trySimplify=function(t,e){var r=this.errorRecorder;this.errorRecorder=function(){};var n=this.simplify(t,e);return this.errorRecorder=r,n},t.prototype.simplify=function(t,e){function r(t,e,n){function a(t){var e=o.symbolResolver.resolveSymbol(t);return e?e.metadata:null}function u(e,o,a){if(o&&"function"==o.__symbolic){if(s.get(e))throw new Error("Recursion not supported");s.set(e,!0);try{var u=o.value;if(u&&(0!=n||"error"!=u.__symbolic)){var l=o.parameters,p=o.defaults;a=a.map(function(e){return r(t,e,n+1)}).map(function(t){return Rn(t)?void 0:t}),p&&p.length>a.length&&a.push.apply(a,p.slice(a.length).map(function(t){return c(t)}));for(var h=sf.build(),f=0;f<l.length;f++)h.define(l[f],a[f]);var d,m=i;try{i=h.done(),d=r(e,u,n+1)}finally{i=m}return d}}finally{s["delete"](e)}}return 0===n?nf:c({__symbolic:"error",message:"Function call not supported",context:e})}function c(e){if(Dn(e))return e;if(e instanceof Array){for(var s=[],l=0,p=e;l<p.length;l++){var h=p[l];if(h&&"spread"===h.__symbolic){var f=c(h.expression);if(Array.isArray(f)){for(var d=0,m=f;d<m.length;d++){var y=m[d];s.push(y)}continue}}var v=c(h);Rn(v)||s.push(v)}return s}if(e instanceof mo){if(e===o.injectionToken||e===o.opaqueToken||o.conversionMap.has(e))return e;var g=e,_=a(g);return _?r(g,_,n+1):g}if(e){if(e.__symbolic){var g=void 0;switch(e.__symbolic){case"binop":var b=c(e.left);if(Rn(b))return b;var w=c(e.right);if(Rn(w))return w;switch(e.operator){case"&&":return b&&w;case"||":return b||w;case"|":return b|w;case"^":return b^w;case"&":return b&w;case"==":return b==w;case"!=":return b!=w;case"===":return b===w;case"!==":return b!==w;case"<":return w>b;case">":return b>w;case"<=":return w>=b;case">=":return b>=w;case"<<":return b<<w;case">>":return b>>w;case"+":return b+w;case"-":return b-w;case"*":return b*w;case"/":return b/w;case"%":return b%w}return null;case"if":var C=c(e.condition);return c(C?e.thenExpression:e.elseExpression);case"pre":var E=c(e.operand);if(Rn(E))return E;switch(e.operator){case"+":return E;case"-":return-E;case"!":return!E;case"~":return~E}return null;case"index":var S=c(e.expression),x=c(e.index);return S&&Dn(x)?S[x]:null;case"select":var T=e.member,P=t,A=c(e.expression);if(A instanceof mo){var O=A.members.concat(T);P=o.getStaticSymbol(A.filePath,A.name,O);var _=a(P);return _?r(P,_,n+1):P}return A&&Dn(T)?r(P,A[T],n+1):null;case"reference":var M=e.name,R=i.resolve(M);if(R!=sf.missing)return R;break;case"class":return t;case"function":return t;case"new":case"call":if(g=r(t,e.expression,n+1),g instanceof mo){if(g===o.injectionToken||g===o.opaqueToken)return t;var k=e.arguments||[],I=o.conversionMap.get(g);if(I){var N=k.map(function(e){return r(t,e,n+1)}).map(function(t){return Rn(t)?void 0:t});return I(t,N)}var D=a(g);return u(g,D,k)}return nf;case"error":var j=In(e);return e.line?(j=j+" (position "+(e.line+1)+":"+(e.character+1)+" in the original .ts file)",o.reportError(jn(j,t.filePath,e.line,e.character),t)):o.reportError(new Error(j),t),nf;case"ignore":return e}return null}return Nn(e,function(t){return c(t)})}return nf}try{return c(e)}catch(l){var p=t.members.length?"."+t.members.join("."):"",h=l.message+", resolving symbol "+t.name+p+" in "+t.filePath;if(l.fileName)throw jn(h,l.fileName,l.line,l.column);throw v(h)}}var n=this,o=this,i=sf.empty,s=new Map,a=function(t,e,o){try{return r(t,e,o)}catch(i){n.reportError(i,t)}},u=this.errorRecorder?a(t,e,0):r(t,e,0);return Rn(u)?void 0:u},t.prototype.getTypeMetadata=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata?e.metadata:{__symbolic:"class"}},t}(),sf=function(){function t(){}return t.prototype.resolve=function(){},t.build=function(){var e=new Map;return{define:function(t,r){return e.set(t,r),this},done:function(){return e.size>0?new af(e):t.empty}}},t}();sf.missing={},sf.empty={resolve:function(){return sf.missing}};var af=function(t){function e(e){var r=t.call(this)||this;return r.bindings=e,r}return Zn(e,t),e.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):sf.missing},e}(sf),uf=function(){function t(t,e){this.symbol=t,this.metadata=e}return t}(),cf=3,lf=function(){function t(t,e,r,n){this.host=t,this.staticSymbolCache=e,this.summaryResolver=r,this.errorRecorder=n,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.resolvedFilePaths=new Set,this.importAs=new Map,this.symbolResourcePaths=new Map,this.symbolFromFile=new Map}return t.prototype.resolveSymbol=function(t){if(t.members.length>0)return this._resolveSymbolMembers(t);var e=this.resolvedSymbols.get(t);return e?e:(e=this._resolveSymbolFromSummary(t))?e:(this._createSymbolsOf(t.filePath),e=this.resolvedSymbols.get(t))},t.prototype.getImportAs=function(t){if(t.members.length){var e=this.getStaticSymbol(t.filePath,t.name),r=this.getImportAs(e);return r?this.getStaticSymbol(r.filePath,r.name,t.members):null}var n=this.summaryResolver.getImportAs(t);return n||(n=this.importAs.get(t)),n},t.prototype.getResourcePath=function(t){return this.symbolResourcePaths.get(t)||t.filePath},t.prototype.getTypeArity=function(t){if(Ye(t.filePath))return null;for(var e=this.resolveSymbol(t);e&&e.metadata instanceof mo;)e=this.resolveSymbol(e.metadata);return e&&e.metadata&&e.metadata.arity||null},t.prototype.recordImportAs=function(t,e){t.assertNoMembers(),e.assertNoMembers(),this.importAs.set(t,e)},t.prototype.invalidateFile=function(t){this.metadataCache["delete"](t),this.resolvedFilePaths["delete"](t);var e=this.symbolFromFile.get(t);if(e){this.symbolFromFile["delete"](t);for(var r=0,n=e;r<n.length;r++){var o=n[r];this.resolvedSymbols["delete"](o),this.importAs["delete"](o),this.symbolResourcePaths["delete"](o)}}},t.prototype._resolveSymbolMembers=function(t){var e=t.members,r=this.resolveSymbol(this.getStaticSymbol(t.filePath,t.name));if(!r)return null;var n=r.metadata;if(n instanceof mo)return new uf(t,this.getStaticSymbol(n.filePath,n.name,e));if(!n||"class"!==n.__symbolic){for(var o=n,i=0;i<e.length&&o;i++)o=o[e[i]];return new uf(t,o)}return n.statics&&1===e.length?new uf(t,n.statics[e[0]]):null},t.prototype._resolveSymbolFromSummary=function(t){var e=this.summaryResolver.resolveSummary(t);return e?new uf(t,e.metadata):null},t.prototype.getStaticSymbol=function(t,e,r){return this.staticSymbolCache.get(t,e,r)},t.prototype.getSymbolsOf=function(t){var e=new Set(this.summaryResolver.getSymbolsOf(t));return this._createSymbolsOf(t),this.resolvedSymbols.forEach(function(r){r.symbol.filePath===t&&e.add(r.symbol)}),Array.from(e)},t.prototype._createSymbolsOf=function(t){var e=this;if(!this.resolvedFilePaths.has(t)){this.resolvedFilePaths.add(t);var r=[],n=this.getModuleMetadata(t);if(n.metadata){var o=new Set(Object.keys(n.metadata).map(Ln)),i=n.origins||{};Object.keys(n.metadata).forEach(function(s){var a=n.metadata[s],u=Ln(s),c=e.getStaticSymbol(t,u),l=void 0;n.importAs&&(l=e.getStaticSymbol(n.importAs,u),e.recordImportAs(c,l));var p=i.hasOwnProperty(s)&&i[s];if(p){var h=e.resolveModule(p,t);h?e.symbolResourcePaths.set(c,h):e.reportError(new Error("Couldn't resolve original symbol for "+p+" from "+t))}r.push(e.createResolvedSymbol(c,t,o,a))})}if(n.exports)for(var s=function(n){if(n["export"])n["export"].forEach(function(o){var i;i="string"==typeof o?o:o.as,i=Ln(i);var s=i;"string"!=typeof o&&(s=Ln(o.name));var a=e.resolveModule(n.from,t);if(a){var u=e.getStaticSymbol(a,s),c=e.getStaticSymbol(t,i);r.push(e.createExport(c,u))}});else{var o=a.resolveModule(n.from,t);if(o){var i=a.getSymbolsOf(o);i.forEach(function(n){var o=e.getStaticSymbol(t,n.name);r.push(e.createExport(o,n))})}}},a=this,u=0,c=n.exports;u<c.length;u++){var l=c[u];s(l)}r.forEach(function(t){return e.resolvedSymbols.set(t.symbol,t)}),this.symbolFromFile.set(t,r.map(function(t){return t.symbol}))}},t.prototype.createResolvedSymbol=function(t,e,r,n){if(this.summaryResolver.isLibraryFile(t.filePath)&&n&&"class"===n.__symbolic){var o={__symbolic:"class",arity:n.arity};return new uf(t,o)}var i=this,s=function(n){function o(){return null!==n&&n.apply(this,arguments)||this}return Zn(o,n),o.prototype.visitStringMap=function(o,s){var a=o.__symbolic;if("function"===a){var u=s.length;s.push.apply(s,o.parameters||[]);var c=n.prototype.visitStringMap.call(this,o,s);return s.length=u,c}if("reference"!==a)return n.prototype.visitStringMap.call(this,o,s);var l=o.module,p=o.name?Ln(o.name):o.name;if(!p)return null;var h=void 0;return l?(h=i.resolveModule(l,t.filePath),h?i.getStaticSymbol(h,p):{__symbolic:"error",message:"Could not resolve "+l+" relative to "+t.filePath+"."}):s.indexOf(p)>=0?{__symbolic:"reference",name:p}:r.has(p)?i.getStaticSymbol(e,p):void 0},o}(Oo),a=d(n,new s,[]);return a instanceof mo?this.createExport(t,a):new uf(t,a)},t.prototype.createExport=function(t,e){return t.assertNoMembers(),e.assertNoMembers(),this.summaryResolver.isLibraryFile(t.filePath)&&this.importAs.set(e,this.getImportAs(t)||t),new uf(t,e)},t.prototype.reportError=function(t,e,r){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||r)},t.prototype.getModuleMetadata=function(t){var e=this.metadataCache.get(t);if(!e){var r=this.host.getMetadataFor(t);if(r){var n=-1;r.forEach(function(t){t.version>n&&(n=t.version,e=t)})}if(e||(e={__symbolic:"module",version:cf,module:t,metadata:{}}),e.version!=cf){var o=2==e.version?"Unsupported metadata version "+e.version+" for module "+t+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+t+", found version "+e.version+", expected "+cf;this.reportError(new Error(o))}this.metadataCache.set(t,e)}return e},t.prototype.getSymbolByModule=function(t,e,r){var n=this.resolveModule(t,r);return n?this.getStaticSymbol(n,e):(this.reportError(new Error("Could not resolve module "+t+(r?" relative to $ {\n            containingFile\n          } ":""))),this.getStaticSymbol("ERROR:"+t,e))},t.prototype.resolveModule=function(t,e){try{return this.host.moduleNameToFileName(t,e)}catch(r){console.error("Could not resolve module '"+t+"' relative to file "+e),this.reportError(r,void 0,e)}return null},t}(),pf=function(){function t(t,e){this.host=t,this.staticSymbolCache=e,this.summaryCache=new Map,this.loadedFilePaths=new Set,this.importAs=new Map}return t.prototype.isLibraryFile=function(t){return!this.host.isSourceFile(Ze(t))},t.prototype.getLibraryFileName=function(t){return this.host.getOutputFileName(t)},t.prototype.resolveSummary=function(t){t.assertNoMembers();var e=this.summaryCache.get(t);return e||(this._loadSummaryFile(t.filePath),e=this.summaryCache.get(t)),e},t.prototype.getSymbolsOf=function(t){return this._loadSummaryFile(t),Array.from(this.summaryCache.keys()).filter(function(e){return e.filePath===t})},t.prototype.getImportAs=function(t){return t.assertNoMembers(),this.importAs.get(t)},t.prototype._loadSummaryFile=function(t){var e=this;if(!this.loadedFilePaths.has(t)&&(this.loadedFilePaths.add(t),this.isLibraryFile(t))){var r=tr(t),n=void 0;try{n=this.host.loadSummary(r)}catch(o){throw console.error("Error loading summary file "+r),o}if(n){var i=wn(this.staticSymbolCache,n),s=i.summaries,a=i.importAs;s.forEach(function(t){return e.summaryCache.set(t.symbol,t)}),a.forEach(function(r){e.importAs.set(r.symbol,e.staticSymbolCache.get(Xe(t),r.importAs))})}}},t}(),hf=function(){function t(t,e,r,n){this.parent=t,this.instance=e,this.className=r,this.vars=n}return t.prototype.createChildWihtLocalVars=function(){return new t(this,this.instance,this.className,new Map)},t}(),ff=function(){function t(t){this.value=t}return t}(),df=function(){function t(){}return t.prototype.debugAst=function(t){return Nr(t)},t.prototype.visitDeclareVarStmt=function(t,e){return e.vars.set(t.name,t.value.visitExpression(this,e)),null},t.prototype.visitWriteVarExpr=function(t,e){for(var r=t.value.visitExpression(this,e),n=e;null!=n;){if(n.vars.has(t.name))return n.vars.set(t.name,r),r;n=n.parent}throw new Error("Not declared variable "+t.name)},t.prototype.visitReadVarExpr=function(t,e){var r=t.name;if(null!=t.builtin)switch(t.builtin){case Al.Super:return e.instance.__proto__;case Al.This:return e.instance;case Al.CatchError:r=mf;break;case Al.CatchStack:r=yf;break;default:throw new Error("Unknown builtin variable "+t.builtin)}for(var n=e;null!=n;){if(n.vars.has(r))return n.vars.get(r);n=n.parent}throw new Error("Not declared variable "+r)},t.prototype.visitWriteKeyExpr=function(t,e){var r=t.receiver.visitExpression(this,e),n=t.index.visitExpression(this,e),o=t.value.visitExpression(this,e);return r[n]=o,o},t.prototype.visitWritePropExpr=function(t,e){var r=t.receiver.visitExpression(this,e),n=t.value.visitExpression(this,e);return r[t.name]=n,n},t.prototype.visitInvokeMethodExpr=function(t,e){var r,n=t.receiver.visitExpression(this,e),o=this.visitAllExpressions(t.args,e);if(null!=t.builtin)switch(t.builtin){case Il.ConcatArray:r=n.concat.apply(n,o);break;case Il.SubscribeObservable:r=n.subscribe({next:o[0]});break;case Il.Bind:r=n.bind.apply(n,o);break;default:throw new Error("Unknown builtin method "+t.builtin)}else r=n[t.name].apply(n,o);return r},t.prototype.visitInvokeFunctionExpr=function(t,e){var r=this.visitAllExpressions(t.args,e),n=t.fn;if(n instanceof Ol&&n.builtin===Al.Super)return e.instance.constructor.prototype.constructor.apply(e.instance,r),null;var o=t.fn.visitExpression(this,e);return o.apply(null,r)},t.prototype.visitReturnStmt=function(t,e){return new ff(t.value.visitExpression(this,e))},t.prototype.visitDeclareClassStmt=function(t,e){var r=Bn(t,e,this);return e.vars.set(t.name,r),null},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e)},t.prototype.visitIfStmt=function(t,e){var r=t.condition.visitExpression(this,e);return r?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(mf,r),n.vars.set(yf,r.stack),this.visitAllStatements(t.catchStmts,n)}},t.prototype.visitThrowStmt=function(t,e){throw t.error.visitExpression(this,e)},t.prototype.visitCommentStmt=function(){return null},t.prototype.visitInstantiateExpr=function(t,e){var r=this.visitAllExpressions(t.args,e),n=t.classExpr.visitExpression(this,e);return new(n.bind.apply(n,[void 0].concat(r)))},t.prototype.visitLiteralExpr=function(t){return t.value},t.prototype.visitExternalExpr=function(t){return t.value.reference},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e)?t.trueCase.visitExpression(this,e):null!=t.falseCase?t.falseCase.visitExpression(this,e):null},t.prototype.visitNotExpr=function(t,e){return!t.condition.visitExpression(this,e)},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e)},t.prototype.visitFunctionExpr=function(t,e){var r=t.params.map(function(t){return t.name});return Hn(r,t.statements,e,this)},t.prototype.visitDeclareFunctionStmt=function(t,e){var r=t.params.map(function(t){return t.name});return e.vars.set(t.name,Hn(r,t.statements,e,this)),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var r=this,n=function(){return t.lhs.visitExpression(r,e)},o=function(){return t.rhs.visitExpression(r,e)};switch(t.operator){case Tl.Equals:return n()==o();case Tl.Identical:return n()===o();case Tl.NotEquals:return n()!=o();case Tl.NotIdentical:return n()!==o();case Tl.And:return n()&&o();case Tl.Or:return n()||o();case Tl.Plus:return n()+o();case Tl.Minus:return n()-o();case Tl.Divide:return n()/o();case Tl.Multiply:return n()*o();case Tl.Modulo:return n()%o();case Tl.Lower:return n()<o();case Tl.LowerEquals:return n()<=o();case Tl.Bigger:return n()>o();case Tl.BiggerEquals:return n()>=o();default:throw new Error("Unknown operator "+t.operator)}},t.prototype.visitReadPropExpr=function(t,e){var r,n=t.receiver.visitExpression(this,e);return r=n[t.name]},t.prototype.visitReadKeyExpr=function(t,e){var r=t.receiver.visitExpression(this,e),n=t.index.visitExpression(this,e);return r[n]},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e)},t.prototype.visitLiteralMapExpr=function(t,e){var r=this,n={};return t.entries.forEach(function(t){return n[t.key]=t.value.visitExpression(r,e)}),n},t.prototype.visitCommaExpr=function(t,e){var r=this.visitAllExpressions(t.parts,e);return r[r.length-1]},t.prototype.visitAllExpressions=function(t,e){var r=this;return t.map(function(t){return t.visitExpression(r,e)})},t.prototype.visitAllStatements=function(t,e){for(var r=0;r<t.length;r++){var n=t[r],o=n.visitStatement(this,e);if(o instanceof ff)return o}return null},t}(),mf="error",yf="stack",vf=function(t){function e(){return t.call(this,!1)||this}return Zn(e,t),e.prototype.visitDeclareClassStmt=function(t,e){var r=this;return e.pushClass(t),this._visitClassConstructor(t,e),null!=t.parent&&(e.print(t,t.name+".prototype = Object.create("),t.parent.visitExpression(this,e),e.println(t,".prototype);")),t.getters.forEach(function(n){return r._visitClassGetter(t,n,e)}),t.methods.forEach(function(n){return r._visitClassMethod(t,n,e)}),e.popClass(),null},e.prototype._visitClassConstructor=function(t,e){e.print(t,"function "+t.name+"("),
+null!=t.constructorMethod&&this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),null!=t.constructorMethod&&t.constructorMethod.body.length>0&&(e.println(t,"var self = this;"),this.visitAllStatements(t.constructorMethod.body,e)),e.decIndent(),e.println(t,"}")},e.prototype._visitClassGetter=function(t,e,r){r.println(t,"Object.defineProperty("+t.name+".prototype, '"+e.name+"', { get: function() {"),r.incIndent(),e.body.length>0&&(r.println(t,"var self = this;"),this.visitAllStatements(e.body,r)),r.decIndent(),r.println(t,"}});")},e.prototype._visitClassMethod=function(t,e,r){r.print(t,t.name+".prototype."+e.name+" = function("),this._visitParams(e.params,r),r.println(t,") {"),r.incIndent(),e.body.length>0&&(r.println(t,"var self = this;"),this.visitAllStatements(e.body,r)),r.decIndent(),r.println(t,"};")},e.prototype.visitReadVarExpr=function(e,r){if(e.builtin===Al.This)r.print(e,"self");else{if(e.builtin===Al.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");t.prototype.visitReadVarExpr.call(this,e,r)}return null},e.prototype.visitDeclareVarStmt=function(t,e){return e.print(t,"var "+t.name+" = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitInvokeFunctionExpr=function(e,r){var n=e.fn;return n instanceof Ol&&n.builtin===Al.Super?(r.currentClass.parent.visitExpression(this,r),r.print(e,".call(this"),e.args.length>0&&(r.print(e,", "),this.visitAllExpressions(e.args,r,",")),r.print(e,")")):t.prototype.visitInvokeFunctionExpr.call(this,e,r),null},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"function("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+Np.name+") {"),e.incIndent();var r=[Dp.set(Np.prop("stack")).toDeclStmt(null,[ep.Final])].concat(t.catchStmts);return this.visitAllStatements(r,e),e.decIndent(),e.println(t,"}"),null},e.prototype._visitParams=function(t,e){this.visitAllObjects(function(t){return e.print(null,t.name)},t,e,",")},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Il.ConcatArray:e="concat";break;case Il.SubscribeObservable:e="subscribe";break;case Il.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e}(Vp),gf=function(t){function e(){var e=t.apply(this,arguments)||this;return e._evalArgNames=[],e._evalArgValues=[],e}return Zn(e,t),e.prototype.getArgs=function(){for(var t={},e=0;e<this._evalArgNames.length;e++)t[this._evalArgNames[e]]=this._evalArgValues[e];return t},e.prototype.visitExternalExpr=function(t,e){var r=t.value.reference,n=this._evalArgValues.indexOf(r);if(-1===n){n=this._evalArgValues.length,this._evalArgValues.push(r);var o=E(t.value)||"val";this._evalArgNames.push("jit_"+o+n)}return e.print(t,this._evalArgNames[n]),null},e}(vf),_f=function(){function t(t,e,r,n,o,i,s,a){this._injector=t,this._metadataResolver=e,this._templateParser=r,this._styleCompiler=n,this._viewCompiler=o,this._ngModuleCompiler=i,this._compilerConfig=s,this._console=a,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._sharedStylesheetCount=0}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._compileModuleAndComponents(t,!0).syncResult},t.prototype.compileModuleAsync=function(t){return this._compileModuleAndComponents(t,!1).asyncResult},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._compileModuleAndAllComponents(t,!0).syncResult},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._compileModuleAndAllComponents(t,!1).asyncResult},t.prototype.getNgContentSelectors=function(t){this._console.warn("Compiler.getNgContentSelectors is deprecated. Use ComponentFactory.ngContentSelectors instead!");var r=this._compiledTemplateCache.get(t);if(!r)throw new Error("The component "+e.ɵstringify(t)+" is not yet compiled!");return r.compMeta.template.ngContentSelectors},t.prototype._compileModuleAndComponents=function(t,e){var r=this,n=this._loadModules(t,e),o=function(){return r._compileComponents(t,null),r._compileModule(t)};return e?new Mo(o()):new Mo(null,n.then(o))},t.prototype._compileModuleAndAllComponents=function(t,r){var n=this,o=this._loadModules(t,r),i=function(){var r=[];return n._compileComponents(t,r),new e.ModuleWithComponentFactories(n._compileModule(t),r)};return r?new Mo(i()):new Mo(null,o.then(i))},t.prototype._loadModules=function(t,e){var r=this,n=[],o=this._metadataResolver.getNgModuleMetadata(t);return o.transitiveModule.modules.forEach(function(t){n.push(r._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.reference,e))}),Promise.all(n)},t.prototype._compileModule=function(t){var r=this,n=this._compiledNgModuleCache.get(t);if(!n){var o=this._metadataResolver.getNgModuleMetadata(t),i=[this._metadataResolver.getProviderMetadata(new Jo(e.Compiler,{useFactory:function(){return new wf(r,o.type.reference)}}))],s=this._ngModuleCompiler.compile(o,i);n=this._compilerConfig.useJit?zn(V(o),s.statements,[s.ngModuleFactoryVar])[0]:Fn(s.statements,[s.ngModuleFactoryVar])[0],this._compiledNgModuleCache.set(o.type.reference,n)}return n},t.prototype._compileComponents=function(t,e){var r=this,n=this._metadataResolver.getNgModuleMetadata(t),o=new Map,i=new Set;n.transitiveModule.modules.forEach(function(t){var n=r._metadataResolver.getNgModuleMetadata(t.reference);n.declaredDirectives.forEach(function(t){o.set(t.reference,n);var s=r._metadataResolver.getDirectiveMetadata(t.reference);if(s.isComponent&&(i.add(r._createCompiledTemplate(s,n)),e)){var a=r._createCompiledHostTemplate(s.type.reference,n);i.add(a),e.push(s.componentFactory)}})}),n.transitiveModule.modules.forEach(function(t){var e=r._metadataResolver.getNgModuleMetadata(t.reference);e.declaredDirectives.forEach(function(t){var e=r._metadataResolver.getDirectiveMetadata(t.reference);e.isComponent&&e.entryComponents.forEach(function(t){var e=o.get(t.componentType);i.add(r._createCompiledHostTemplate(t.componentType,e))})}),e.entryComponents.forEach(function(t){var e=o.get(t.componentType);i.add(r._createCompiledHostTemplate(t.componentType,e))})}),i.forEach(function(t){return r._compileTemplate(t)})},t.prototype.clearCacheFor=function(t){this._compiledNgModuleCache["delete"](t),this._metadataResolver.clearCacheFor(t),this._compiledHostTemplateCache["delete"](t);var e=this._compiledTemplateCache.get(t);e&&this._compiledTemplateCache["delete"](t)},t.prototype.clearCache=function(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(),this._compiledNgModuleCache.clear()},t.prototype._createCompiledHostTemplate=function(t,r){if(!r)throw new Error("Component "+e.ɵstringify(t)+" is not part of any NgModule or the module has not been imported into your module.");var n=this._compiledHostTemplateCache.get(t);if(!n){var o=this._metadataResolver.getDirectiveMetadata(t);Gn(o);var i=o.componentFactory,s=this._metadataResolver.getHostComponentType(t),a=k(s,o,e.ɵgetComponentViewDefinitionFactory(i));n=new bf(!0,o.type,a,r,[o.type]),this._compiledHostTemplateCache.set(t,n)}return n},t.prototype._createCompiledTemplate=function(t,e){var r=this._compiledTemplateCache.get(t.type.reference);return r||(Gn(t),r=new bf(!1,t.type,t,e,e.transitiveModule.directives),this._compiledTemplateCache.set(t.type.reference,r)),r},t.prototype._compileTemplate=function(t){var e=this;if(!t.isCompiled){var r=t.compMeta,n=new Map,o=this._styleCompiler.compileComponent(r);o.externalStylesheets.forEach(function(t){n.set(t.meta.moduleUrl,t)}),this._resolveStylesCompileResult(o.componentStylesheet,n);var i,s,a=t.directives.map(function(t){return e._metadataResolver.getDirectiveSummary(t.reference)}),u=t.ngModule.transitiveModule.pipes.map(function(t){return e._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(r,r.template.template,a,u,t.ngModule.schemas,j(t.ngModule.type,t.compMeta,t.compMeta.template)),l=c.template,p=c.pipes,h=this._viewCompiler.compileComponent(r,l,yr(o.componentStylesheet.stylesVar),p),f=o.componentStylesheet.statements.concat(h.statements),d=r.isHost?[h.viewClassVar]:[h.viewClassVar,h.rendererTypeVar];this._compilerConfig.useJit?(y=zn(F(t.ngModule.type,t.compMeta),f,d),i=y[0],s=y[1]):(m=Fn(f,d),i=m[0],s=m[1]),t.compiled(i,s);var m,y}},t.prototype._resolveStylesCompileResult=function(t,e){var r=this;t.dependencies.forEach(function(t){var n=e.get(t.moduleUrl),o=r._resolveAndEvalStylesCompileResult(n,e);t.valuePlaceholder.reference=o})},t.prototype._resolveAndEvalStylesCompileResult=function(t,e){return this._resolveStylesCompileResult(t,e),this._compilerConfig.useJit?zn(L(t.meta,this._sharedStylesheetCount++),t.statements,[t.stylesVar])[0]:Fn(t.statements,[t.stylesVar])[0]},t}();_f.decorators=[{type:z}],_f.ctorParameters=function(){return[{type:e.Injector},{type:dl},{type:Wc},{type:Oh},{type:Hh},{type:Ep},{type:ti},{type:e.ɵConsole}]};var bf=function(){function t(t,e,r,n,o){this.isHost=t,this.compType=e,this.compMeta=r,this.ngModule=n,this.directives=o,this._viewClass=null,this.isCompiled=!1}return t.prototype.compiled=function(t,e){this._viewClass=t,this.compMeta.componentViewType.setDelegate(t);for(var r in e)this.compMeta.rendererType[r]=e[r];this.isCompiled=!0},t}(),wf=function(){function t(t,e){this._delegate=t,this._ngModule=e}return Object.defineProperty(t.prototype,"_injector",{get:function(){return this._delegate.injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._delegate.compileModuleSync(t)},t.prototype.compileModuleAsync=function(t){return this._delegate.compileModuleAsync(t)},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._delegate.compileModuleAndAllComponentsSync(t)},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._delegate.compileModuleAndAllComponentsAsync(t)},t.prototype.getNgContentSelectors=function(t){return this._delegate.getNgContentSelectors(t)},t.prototype.clearCache=function(){this._delegate.clearCache()},t.prototype.clearCacheFor=function(t){this._delegate.clearCacheFor(t)},t}(),Cf=function(){function t(t,e,r,n){void 0===n&&(n=null),this._htmlParser=t,this._implicitTags=e,this._implicitAttrs=r,this._locale=n,this._messages=[]}return t.prototype.updateFromTemplate=function(t,e,r){var n=this._htmlParser.parse(t,e,!0,r);if(n.errors.length)return n.errors;var o=Pt(n.rootNodes,r,this._implicitTags,this._implicitAttrs);return o.errors.length?o.errors:((i=this._messages).push.apply(i,o.messages),null);var i},t.prototype.getMessages=function(){return this._messages},t.prototype.write=function(t,e){var r={},n=new Ef;this._messages.forEach(function(e){var n=t.digest(e);r.hasOwnProperty(n)?(o=r[n].sources).push.apply(o,e.sources):r[n]=e;var o});var o=Object.keys(r).map(function(o){var i=t.createNameMapper(r[o]),s=r[o],a=i?n.convert(s.nodes,i):s.nodes,u=new pa(a,{},{},s.meaning,s.description,o);return u.sources=s.sources,e&&u.sources.forEach(function(t){return t.filePath=e(t.filePath)}),u});return t.write(o,this._locale)},t}(),Ef=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.convert=function(t,e){var r=this;return e?t.map(function(t){return t.visit(r,e)}):t},e.prototype.visitTagPlaceholder=function(t,e){var r=this,n=e.toPublicName(t.startName),o=t.closeName?e.toPublicName(t.closeName):t.closeName,i=t.children.map(function(t){return t.visit(r,e)});return new ma(t.tag,t.attrs,n,o,i,t.isVoid,t.sourceSpan)},e.prototype.visitPlaceholder=function(t,e){return new ya(t.value,e.toPublicName(t.name),t.sourceSpan)},e.prototype.visitIcuPlaceholder=function(t,e){return new va(t.value,e.toPublicName(t.name),t.sourceSpan)},e}(ga),Sf=function(){function t(t,e,r,n){this.host=t,this.staticSymbolResolver=e,this.messageBundle=r,this.metadataResolver=n}return t.prototype.extract=function(t){var e=this,r=An(this.staticSymbolResolver,t,this.host),n=Tn(r,this.host,this.metadataResolver),o=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(o.forEach(function(r){var n=[];r.directives.forEach(function(t){var r=e.metadataResolver.getDirectiveMetadata(t);r&&r.isComponent&&n.push(r)}),n.forEach(function(n){var o=n.template.template,i=Ms.fromArray(n.template.interpolation);t.push.apply(t,e.messageBundle.updateFromTemplate(o,r.srcUrl,i))})}),t.length)throw new Error(t.map(function(t){return t.toString()}).join("\n"));return e.messageBundle})},t.create=function(r,n){var o=new Hu(new Fu),i=Be(),s=new yo,a=new pf(r,s),u=new lf(r,s,a),c=new of(a,u);tf.install(c);var l=new ti({defaultEncapsulation:e.ViewEncapsulation.Emulated,useJit:!1}),p=new ol({get:function(t){return r.loadResource(t)}},i,o,l),h=new Qp,f=new dl(l,new ll(c),new al(c),new pl(c),a,h,p,new e.ɵConsole,s,c),d=new Cf(o,[],{},n),m=new t(r,u,d,f);return{extractor:m,staticReflector:c}},t}(),xf={get:function(t){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+t+'"')}},Tf=new e.InjectionToken("HtmlParser"),Pf=[{provide:e.ɵReflector,useValue:e.ɵreflector},{provide:e.ɵReflectorReader,useExisting:e.ɵReflector},{provide:Jc,useValue:xf},hl,e.ɵConsole,Ns,Us,{provide:Tf,useClass:Fu},{provide:Hu,useFactory:Wn,deps:[Tf,[new e.Optional,new e.Inject(e.TRANSLATIONS)],[new e.Optional,new e.Inject(e.TRANSLATIONS_FORMAT)],[ti],[e.ɵConsole]]},{provide:Fu,useExisting:Hu},Wc,ol,dl,tl,Oh,Hh,Ep,{provide:ti,useValue:new ti},_f,{provide:e.Compiler,useExisting:_f},Qp,{provide:Ju,useExisting:Qp},el,al,pl,ll],Af=function(){function t(t){var r={useDebug:e.isDevMode(),useJit:!0,defaultEncapsulation:e.ViewEncapsulation.Emulated,missingTranslation:e.MissingTranslationStrategy.Warning,enableLegacyTemplate:!0};this._defaultOptions=[r].concat(t)}return t.prototype.createCompiler=function(t){void 0===t&&(t=[]);var r=Kn(this._defaultOptions.concat(t)),n=e.ReflectiveInjector.resolveAndCreate([Pf,{provide:ti,useFactory:function(){return new ti({useJit:r.useJit,defaultEncapsulation:r.defaultEncapsulation,missingTranslation:r.missingTranslation,enableLegacyTemplate:r.enableLegacyTemplate})},deps:[]},r.providers]);return n.get(e.Compiler)},t}();Af.decorators=[{type:z}],Af.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Inject,args:[e.COMPILER_OPTIONS]}]}]};var Of=e.createPlatformFactory(e.platformCore,"coreDynamic",[{provide:e.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:e.CompilerFactory,useClass:Af},{provide:e.PLATFORM_INITIALIZER,useValue:$n,multi:!0}]),Mf=function(){function t(){}return t.prototype.fileNameToModuleName=function(){},t.prototype.getImportAs=function(){},t.prototype.getTypeArity=function(){},t}();t.VERSION=Yn,t.TEMPLATE_TRANSFORMS=qc,t.CompilerConfig=ti,t.JitCompiler=_f,t.DirectiveResolver=al,t.PipeResolver=pl,t.NgModuleResolver=ll,t.DEFAULT_INTERPOLATION_CONFIG=Rs,t.InterpolationConfig=Ms,t.NgModuleCompiler=Ep,t.ViewCompiler=Hh,t.isSyntaxError=g,t.syntaxError=v,t.TextAst=Jn,t.BoundTextAst=to,t.AttrAst=eo,t.BoundElementPropertyAst=ro,t.BoundEventAst=no,t.ReferenceAst=oo,t.VariableAst=io,t.ElementAst=so,t.EmbeddedTemplateAst=ao,t.BoundDirectivePropertyAst=uo,t.DirectiveAst=co,t.ProviderAst=lo,t.ProviderAstType=po,t.NgContentAst=ho,t.PropertyBindingType=fo,t.templateVisitAll=r,t.CompileAnimationEntryMetadata=No,t.CompileAnimationStateMetadata=Do,t.CompileAnimationStateDeclarationMetadata=jo,t.CompileAnimationStateTransitionMetadata=Lo,t.CompileAnimationMetadata=Vo,t.CompileAnimationKeyframesSequenceMetadata=Fo,t.CompileAnimationStyleMetadata=Uo,t.CompileAnimationAnimateMetadata=Bo,t.CompileAnimationWithStepsMetadata=Ho,t.CompileAnimationSequenceMetadata=qo,t.CompileAnimationGroupMetadata=zo,t.identifierName=E,t.identifierModuleUrl=S,t.viewClassName=x,t.rendererTypeName=T,t.hostViewClassName=P,t.dirWrapperClassName=A,t.componentFactoryName=O,t.CompileSummaryKind=Wo,t.tokenName=M,t.tokenReference=R,t.CompileStylesheetMetadata=$o,t.CompileTemplateMetadata=Ko,t.CompileDirectiveMetadata=Qo,t.createHostComponentMeta=k,t.CompilePipeMetadata=Xo,t.CompileNgModuleMetadata=Zo,t.TransitiveCompileNgModuleMetadata=Yo,t.ProviderMeta=Jo,t.flatten=N,t.sourceUrl=D,t.templateSourceUrl=j,t.sharedStylesheetJitUrl=L,t.ngModuleJitUrl=V,t.templateJitUrl=F,t.createAotCompiler=Vn,t.AotCompiler=Jh,t.analyzeNgModules=xn,t.analyzeAndValidateNgModules=Tn,t.extractProgramSymbols=An,t.GeneratedFile=Xh,t.StaticReflector=of,t.StaticAndDynamicReflectionCapabilities=tf,t.StaticSymbol=mo,t.StaticSymbolCache=yo,t.ResolvedStaticSymbol=uf,t.StaticSymbolResolver=lf,t.unescapeIdentifier=Ln,t.AotSummaryResolver=pf,t.SummaryResolver=hl,t.i18nHtmlParserFactory=Wn,t.COMPILER_PROVIDERS=Pf,t.JitCompilerFactory=Af,t.platformCoreDynamic=Of,t.createUrlResolverWithoutPackagePrefix=Ue,t.createOfflineCompileUrlResolver=Be,t.DEFAULT_PACKAGE_URL_PROVIDER=tl,t.UrlResolver=el,t.getUrlScheme=He,t.ResourceLoader=Jc,t.ElementSchemaRegistry=Ju,t.Extractor=Sf,t.I18NHtmlParser=Hu,t.MessageBundle=Cf,t.Serializer=Ba,t.Xliff=au,t.Xliff2=bu,t.Xmb=Mu,t.Xtb=ju,t.DirectiveNormalizer=ol,t.ParserError=ei,t.ParseSpan=ri,t.AST=ni,t.Quote=oi,t.EmptyExpr=ii,t.ImplicitReceiver=si,t.Chain=ai,t.Conditional=ui,t.PropertyRead=ci,t.PropertyWrite=li,t.SafePropertyRead=pi,t.KeyedRead=hi,t.KeyedWrite=fi,t.BindingPipe=di,t.LiteralPrimitive=mi,t.LiteralArray=yi,t.LiteralMap=vi,t.Interpolation=gi,t.Binary=_i,t.PrefixNot=bi,t.MethodCall=wi,t.SafeMethodCall=Ci,t.FunctionCall=Ei,t.ASTWithSource=Si,t.TemplateBinding=xi,t.RecursiveAstVisitor=Ti,t.AstTransformer=Pi,t.TokenType=ks,t.Lexer=Ns,t.Token=Ds,t.EOF=js,t.isIdentifier=et,t.isQuote=it,t.SplitInterpolation=Vs,t.TemplateBindingParseResult=Fs,t.Parser=Us,t._ParseAST=Bs,t.ERROR_COLLECTOR_TOKEN=fl,t.CompileMetadataResolver=dl,t.componentModuleUrl=cr,t.Text=Ks,t.Expansion=Qs,t.ExpansionCase=Xs,t.Attribute=Zs,t.Element=Ys,t.Comment=Js,t.visitAll=lt,t.ParseTreeResult=ua,t.TreeError=aa,t.HtmlParser=Fu,t.HtmlTagDefinition=_o,t.getHtmlTagDefinition=c,t.TagContentType=vo,t.splitNsName=n,t.isNgContainer=o,t.isNgContent=i,t.isNgTemplate=s,t.getNsPrefix=a,t.mergeNsAndName=u,t.NAMED_ENTITIES=go,t.ImportResolver=Mf,t.debugOutputAstAsTypeScript=Nr,t.TypeScriptEmitter=Up,t.ParseLocation=qs,t.ParseSourceFile=zs,t.ParseSourceSpan=Gs,t.ParseErrorLevel=Ws,t.ParseError=$s,t.typeSourceSpan=ct,t.DomElementSchemaRegistry=Qp,t.CssSelector=Eo,t.SelectorMatcher=So,t.SelectorListContext=xo,t.SelectorContext=To,t.StylesCompileDependency=Th,t.StylesCompileResult=Ph,t.CompiledStylesheet=Ah,t.StyleCompiler=Oh,t.TemplateParseError=zc,t.TemplateParseResult=Gc,t.TemplateParser=Wc,t.splitClasses=Ne,t.createElementCssSelector=De,t.removeSummaryDuplicates=Le,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":8}],8:[function(e,r,n){(function(o){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("rxjs/Observable"),e("rxjs/observable/merge"),e("rxjs/operator/share"),e("rxjs/Subject")):"function"==typeof t&&t.amd?t(["exports","rxjs/Observable","rxjs/observable/merge","rxjs/operator/share","rxjs/Subject"],i):i((o.ng=o.ng||{},o.ng.core=o.ng.core||{}),o.Rx,o.Rx.Observable,o.Rx.Observable.prototype,o.Rx)}(this,function(t,e,r,n,i){"use strict";function s(){if(!oo){var t=no.Symbol;if(t&&t.iterator)oo=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),r=0;r<e.length;++r){var n=e[r];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(oo=n)}}return oo}function a(t){Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function u(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function c(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var r=e.indexOf("\n");return-1===r?e:e.substring(0,r)}function l(t){return"function"==typeof t&&t.hasOwnProperty("annotation")&&(t=t.annotation),t}function p(t,e){if(t===Object||t===String||t===Function||t===Number||t===Array)throw new Error("Can not use native "+c(t)+" as constructor");if("function"==typeof t)return t;if(Array.isArray(t)){var r=t,n=r.length-1,o=t[n];if("function"!=typeof o)throw new Error("Last position of Class method array must be Function in key "+e+" was '"+c(o)+"'");if(n!=o.length)throw new Error("Number of annotations ("+n+") does not match number of arguments ("+o.length+") in the function: "+c(o));for(var i=[],s=0,a=r.length-1;a>s;s++){var u=[];i.push(u);var p=r[s];if(Array.isArray(p))for(var h=0;h<p.length;h++)u.push(l(p[h]));else u.push("function"==typeof p?l(p):p)}return so.defineMetadata("parameters",i,o),o}throw new Error("Only Function or Array is supported in Class definition for key '"+e+"' is '"+c(t)+"'")}function h(t){var e=p(t.hasOwnProperty("constructor")?t.constructor:void 0,"constructor"),r=e.prototype;if(t.hasOwnProperty("extends")){if("function"!=typeof t["extends"])throw new Error("Class definition 'extends' property must be a constructor function was: "+c(t["extends"]));e.prototype=r=Object.create(t["extends"].prototype)}for(var n in t)"extends"!==n&&"prototype"!==n&&t.hasOwnProperty(n)&&(r[n]=p(t[n],n));this&&this.annotations instanceof Array&&so.defineMetadata("annotations",this.annotations,e);var o=e.name;return o&&"constructor"!==o||(e.overriddenName="class"+io++),e}function f(t,e,r,n){function o(t){if(!so||!so.getOwnMetadata)throw"reflect-metadata shim is required when using class decorators";if(this instanceof o)return i.call(this,t),this;var e=new o(t),r="function"==typeof this&&Array.isArray(this.annotations)?this.annotations:[];r.push(e);var s=function(t){var r=so.getOwnMetadata("annotations",t)||[];return r.push(e),so.defineMetadata("annotations",r,t),t};return s.annotations=r,s.Class=h,n&&n(s),s}var i=d([e]);return r&&(o.prototype=Object.create(r.prototype)),o.prototype.toString=function(){return"@"+t},o.annotationCls=o,o}function d(t){return function(){for(var e=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];t.forEach(function(t,n){var o=r[n];if(Array.isArray(t))e[t[0]]=void 0===o?t[1]:o;else for(var i in t)e[i]=o&&o.hasOwnProperty(i)?o[i]:t[i]})}}function m(t,e,r){function n(){function t(t,e,r){for(var n=so.getOwnMetadata("parameters",t)||[];n.length<=r;)n.push(null);return n[r]=n[r]||[],n[r].push(i),so.defineMetadata("parameters",n,t),t}for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this instanceof n)return o.apply(this,e),this;var i=new(n.bind.apply(n,[void 0].concat(e)));return t.annotation=i,t}var o=d(e);return r&&(n.prototype=Object.create(r.prototype)),n.prototype.toString=function(){return"@"+t},n.annotationCls=n,n}function y(t,e,r){function n(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof n)return o.apply(this,t),this;var r=new(n.bind.apply(n,[void 0].concat(t)));return function(t,e){var n=so.getOwnMetadata("propMetadata",t.constructor)||{};n[e]=n.hasOwnProperty(e)&&n[e]||[],n[e].unshift(r),so.defineMetadata("propMetadata",n,t.constructor)}}var o=d(e);return r&&(n.prototype=Object.create(r.prototype)),n.prototype.toString=function(){return"@"+t},n.annotationCls=n,n}function v(t){return null==t||t===mo.Default}function g(t){return t.__forward_ref__=g,t.toString=function(){return c(this())},t}function _(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===g?t():t}function b(t){return t[Ho]}function w(t){return t[qo]}function C(t){return t[zo]||E}function E(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];t.error.apply(t,e)}function S(t,e){var r=t+" caused by: "+(e instanceof Error?e.message:e),n=Error(r);return n[qo]=e,n}function x(t){for(var e=[],r=0;r<t.length;++r){if(e.indexOf(t[r])>-1)return e.push(t[r]),e;e.push(t[r])}return e}function T(t){if(t.length>1){var e=x(t.slice().reverse()),r=e.map(function(t){return c(t.token)});return" ("+r.join(" -> ")+")"}return""}function P(t,e,r,n){var o=n?S("",n):Error();return o.addKey=A,o.keys=[e],o.injectors=[t],o.constructResolvingMessage=r,o.message=o.constructResolvingMessage(),o[qo]=n,o}function A(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage()}function O(t,e){return P(t,e,function(){var t=c(this.keys[0].token);return"No provider for "+t+"!"+T(this.keys)})}function M(t,e){return P(t,e,function(){return"Cannot instantiate cyclic dependency!"+T(this.keys)})}function R(t,e,r,n){return P(t,n,function(){var t=c(this.keys[0].token);return w(this).message+": Error during instantiation of "+t+"!"+T(this.keys)+"."},e)}function k(t){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+t)}function I(t,e){for(var r=[],n=0,o=e.length;o>n;n++){var i=e[n];r.push(i&&0!=i.length?i.map(c).join(" "):"?")}return Error("Cannot resolve all parameters for '"+c(t)+"'("+r.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+c(t)+"' is decorated with Injectable.")}function N(t){return Error("Index "+t+" is out-of-bounds.")}function D(t,e){return Error("Cannot mix multi providers and regular providers, got: "+t+" "+e)}function j(t){return"function"==typeof t}function L(t){return t?t.map(function(t){var e=t.type,r=e.annotationCls,n=t.args?t.args:[];return new(r.bind.apply(r,[void 0].concat(n)))}):[]}function V(t){var e=Object.getPrototypeOf(t.prototype),r=e?e.constructor:null;return r||Object}function F(t){var e,r;if(t.useClass){var n=_(t.useClass);e=ti.factory(n),r=G(n)}else t.useExisting?(e=function(t){return t},r=[ei.fromKey(Wo.get(t.useExisting))]):t.useFactory?(e=t.useFactory,r=z(t.useFactory,t.deps)):(e=function(){return t.useValue},r=ri);return new oi(e,r)}function U(t){return new ni(Wo.get(t.provide),[F(t)],t.multi||!1)}function B(t){var e=q(t,[]),r=e.map(U),n=H(r,new Map);return Array.from(n.values())}function H(t,e){for(var r=0;r<t.length;r++){var n=t[r],o=e.get(n.key.id);if(o){if(n.multiProvider!==o.multiProvider)throw D(o,n);if(n.multiProvider)for(var i=0;i<n.resolvedFactories.length;i++)o.resolvedFactories.push(n.resolvedFactories[i]);else e.set(n.key.id,n)}else{var s=void 0;s=n.multiProvider?new ni(n.key,n.resolvedFactories.slice(),n.multiProvider):n,e.set(n.key.id,s)}}return e}function q(t,e){return t.forEach(function(t){if(t instanceof Qo)e.push({provide:t,useClass:t});else if(t&&"object"==typeof t&&void 0!==t.provide)e.push(t);else{if(!(t instanceof Array))throw k(t);q(t,e)}}),e}function z(t,e){if(e){var r=e.map(function(t){return[t]});return e.map(function(e){return W(t,e,r)})}return G(t)}function G(t){var e=ti.parameters(t);if(!e)return[];if(e.some(function(t){return null==t}))throw I(t,e);return e.map(function(r){return W(t,r,e)})}function W(t,e,r){var n=null,o=!1;if(!Array.isArray(e))return e instanceof Ro?$(e.token,o,null):$(e,o,null);for(var i=null,s=0;s<e.length;++s){var a=e[s];a instanceof Qo?n=a:a instanceof Ro?n=a.token:a instanceof ko?o=!0:a instanceof No||a instanceof Do?i=a:a instanceof Jn&&(n=a)}if(n=_(n),null!=n)return $(n,o,i);throw I(t,r)}function $(t,e,r){return new ei(Wo.get(t),e,r)}function K(t,e){for(var r=new Array(t._providers.length),n=0;n<t._providers.length;++n)r[n]=e(t.getProviderAtIndex(n));return r}function Q(t){return!!t&&"function"==typeof t.then}function X(t){return!!t&&"function"==typeof t.subscribe}function Z(){return""+Y()+Y()+Y()}function Y(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function J(){throw new Error("Runtime compiler is not loaded")}function tt(t){var e=Error("No component factory found for "+c(t)+". Did you add it to @NgModule.entryComponents?");return e[Si]=t,e}function et(){var t=no.wtf;return t&&(Pi=t.trace)?(Ai=Pi.events,!0):!1}function rt(t,e){return void 0===e&&(e=null),Ai.createScope(t,e)}function nt(t,e){return Pi.leaveScope(t,e),e}function ot(t,e){return Pi.beginTimeRange(t,e)}function it(t){Pi.endTimeRange(t)}function st(){return null}function at(t){Wi=t}function ut(){if(Ki)throw new Error("Cannot enable prod mode after platform setup.");$i=!1}function ct(){return Ki=!0,$i}function lt(t){if(zi&&!zi.destroyed&&!zi.injector.get(Qi,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");zi=t.get(Zi);var e=t.get(fi,null);return e&&e.forEach(function(t){return t()}),zi}function pt(t,e,r){void 0===r&&(r=[]);var n=new Jn("Platform: "+e);return function(e){void 0===e&&(e=[]);var o=dt();return(!o||o.injector.get(Qi,!1))&&(t?t(r.concat(e).concat({provide:n,useValue:!0})):lt(si.resolveAndCreate(r.concat(e).concat({provide:n,useValue:!0})))),ht(n)}}function ht(t){var e=dt();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}function ft(){zi&&!zi.destroyed&&zi.destroy()}function dt(){return zi&&!zi.destroyed?zi:null}function mt(t,e){try{var r=e();return Q(r)?r["catch"](function(e){throw t.handleError(e),e}):r}catch(n){throw t.handleError(n),n}}function yt(t,e){var r=t.indexOf(e);r>-1&&t.splice(r,1)}function vt(t,e){var r=ls.get(t);if(r)throw new Error("Duplicate module registered for "+t+" - "+r.moduleType.name+" vs "+e.moduleType.name);ls.set(t,e)}function gt(t){var e=ls.get(t);if(!e)throw new Error("No module with ID "+t+" loaded");return e}function _t(t){return t.reduce(function(t,e){var r=Array.isArray(e)?_t(e):e;return t.concat(r)},[])}function bt(t,e,r){if(!t)throw new Error("Cannot find '"+r+"' in '"+e+"'");return t}function wt(t){return t.map(function(t){return t.nativeElement})}function Ct(t,e,r){t.childNodes.forEach(function(t){t instanceof Ss&&(e(t)&&r.push(t),Ct(t,e,r))})}function Et(t,e,r){t instanceof Ss&&t.childNodes.forEach(function(t){e(t)&&r.push(t),t instanceof Ss&&Et(t,e,r)})}function St(t){return xs.get(t)||null}function xt(t){xs.set(t.nativeNode,t)}function Tt(t){xs["delete"](t.nativeNode)}function Pt(t,e){var r=At(t),n=At(e);if(r&&n)return Ot(t,e,Pt);var o=t&&("object"==typeof t||"function"==typeof t),i=e&&("object"==typeof e||"function"==typeof e);return!r&&o&&!n&&i?!0:u(t,e)}function At(t){return Rt(t)?Array.isArray(t)||!(t instanceof Map)&&s()in t:!1}function Ot(t,e,r){for(var n=t[s()](),o=e[s()]();;){var i=n.next(),a=o.next();if(i.done&&a.done)return!0;if(i.done||a.done)return!1;if(!r(i.value,a.value))return!1}}function Mt(t,e){if(Array.isArray(t))for(var r=0;r<t.length;r++)e(t[r]);else for(var n=t[s()](),o=void 0;!(o=n.next()).done;)e(o.value)}function Rt(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function kt(t,e,r){var n=t.previousIndex;if(null===n)return n;var o=0;return r&&n<r.length&&(o=r[n]),n+e+o}function It(t){return t.name||typeof t}function Nt(){return ti}function Dt(t,e){return t.nodes[e]}function jt(t,e){return t.nodes[e]}function Lt(t,e){return t.nodes[e]}function Vt(t,e){return t.nodes[e]}function Ft(t,e){return t.nodes[e]}function Ut(t,e,r,n){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+r+"'.";return n&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),Ht(o,t)}function Bt(t,e){return t instanceof Error||(t=new Error(t.toString())),qt(t,e),t}function Ht(t,e){
+var r=new Error(t);return qt(r,e),r}function qt(t,e){t[Ho]=e,t[zo]=e.logError.bind(e)}function zt(t){return!!b(t)}function Gt(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}function Wt(t){var e=ea.get(t);return e||(e=c(t)+"_"+ea.size,ea.set(t,e)),e}function $t(t,e,r,n){if(n instanceof Ts){n=n.wrapped;var o=t.def.nodes[e].bindingIndex+r,i=t.oldValues[o];i instanceof Ts&&(i=i.wrapped),t.oldValues[o]=new Ts(i)}return n}function Kt(t){return{id:ra,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}function Qt(t){if(t&&t.id===ra){var e=null!=t.encapsulation&&t.encapsulation!==Po.None||t.styles.length||Object.keys(t.data).length;t.id=e?"c"+oa++:na}return t&&t.id===na&&(t=null),t||null}function Xt(t,e,r,n){var o=t.oldValues;return 1&t.state||!u(o[e.bindingIndex+r],n)?!0:!1}function Zt(t,e,r,n){return Xt(t,e,r,n)?(t.oldValues[e.bindingIndex+r]=n,!0):!1}function Yt(t,e,r,n){var o=t.oldValues[e.bindingIndex+r];if(1&t.state||!Pt(o,n))throw Ut(Js.createDebugContext(t,e.index),o,n,0!==(1&t.state))}function Jt(t){for(var e=t;e;)2&e.def.flags&&(e.state|=2),e=e.viewContainerParent||e.parent}function te(t,e,r,n){var o=t.def.nodes[e],i=16777216&o.flags?jt(t,e).componentView:t;return Jt(i),Js.handleEvent(t,e,r,n)}function ee(t){if(t.parent){var e=t.parent;return jt(e,t.parentNodeDef.index)}return null}function re(t){var e=t.parent;return e?t.parentNodeDef.parent:null}function ne(t,e){switch(100673535&e.flags){case 1:return jt(t,e.index).renderElement;case 2:return Dt(t,e.index).renderText}}function oe(t,e){return t?t+":"+e:e}function ie(t){return!!t.parent&&!!(16384&t.parentNodeDef.flags)}function se(t){return!(!t.parent||16384&t.parentNodeDef.flags)}function ae(t){return 1<<t%32}function ue(t){var e={},r=0,n={};return t&&t.forEach(function(t){var o=t[0],i=t[1];"number"==typeof o?(e[o]=i,r|=ae(o)):n[o]=i}),{matchedQueries:e,references:n,matchedQueryIds:r}}function ce(t,e,r){var n=r.renderParent;return n?0===(1&n.flags)||0===(16777216&n.flags)||n.element.componentRendererType&&n.element.componentRendererType.encapsulation===Po.Native?jt(t,r.renderParent.index).renderElement:void 0:e}function le(t){var e=ia.get(t);return e||(e=t(function(){return ta}),e.factory=t,ia.set(t,e)),e}function pe(t){var e=[];return he(t,0,void 0,void 0,e),e}function he(t,e,r,n,o){3===e&&(r=t.renderer.parentNode(ne(t,t.def.lastRenderRootNode))),fe(t,e,0,t.def.nodes.length-1,r,n,o)}function fe(t,e,r,n,o,i,s){for(var a=r;n>=a;a++){var u=t.def.nodes[a];7&u.flags&&me(t,u,e,o,i,s),a+=u.childCount}}function de(t,e,r,n,o,i){for(var s=t;s&&!ie(s);)s=s.parent;for(var a=s.parent,u=re(s),c=u.index+1,l=u.index+u.childCount,p=c;l>=p;p++){var h=a.def.nodes[p];h.ngContentIndex===e&&me(a,h,r,n,o,i),p+=h.childCount}if(!a.parent){var f=t.root.projectableNodes[e];if(f)for(var p=0;p<f.length;p++)ye(t,f[p],r,n,o,i)}}function me(t,e,r,n,o,i){if(4&e.flags)de(t,e.ngContent.index,r,n,o,i);else{var s=ne(t,e);if(3===r&&16777216&e.flags&&48&e.bindingFlags){if(16&e.bindingFlags&&ye(t,s,r,n,o,i),32&e.bindingFlags){var a=jt(t,e.index).componentView;ye(a,s,r,n,o,i)}}else ye(t,s,r,n,o,i);if(8388608&e.flags)for(var u=jt(t,e.index).viewContainer._embeddedViews,c=0;c<u.length;c++)he(u[c],r,n,o,i);1&e.flags&&!e.element.name&&fe(t,r,e.index+1,e.index+e.childCount,n,o,i)}}function ye(t,e,r,n,o,i){var s=t.renderer;switch(r){case 1:s.appendChild(n,e);break;case 2:s.insertBefore(n,e,o);break;case 3:s.removeChild(n,e);break;case 0:i.push(e)}}function ve(t){if(":"===t[0]){var e=t.match(sa);return[e[1],e[2]]}return["",t]}function ge(t){for(var e=0,r=0;r<t.length;r++)e|=t[r].flags;return e}function _e(t,e){for(var r="",n=0;2*t>n;n+=2)r=r+e[n]+we(e[n+1]);return r+e[2*t]}function be(t,e,r,n,o,i,s,a,u,c,l,p,h,f,d,m,y,v,g,_){switch(t){case 1:return e+we(r)+n;case 2:return e+we(r)+n+we(o)+i;case 3:return e+we(r)+n+we(o)+i+we(s)+a;case 4:return e+we(r)+n+we(o)+i+we(s)+a+we(u)+c;case 5:return e+we(r)+n+we(o)+i+we(s)+a+we(u)+c+we(l)+p;case 6:return e+we(r)+n+we(o)+i+we(s)+a+we(u)+c+we(l)+p+we(h)+f;case 7:return e+we(r)+n+we(o)+i+we(s)+a+we(u)+c+we(l)+p+we(h)+f+we(d)+m;case 8:return e+we(r)+n+we(o)+i+we(s)+a+we(u)+c+we(l)+p+we(h)+f+we(d)+m+we(y)+v;case 9:return e+we(r)+n+we(o)+i+we(s)+a+we(u)+c+we(l)+p+we(h)+f+we(d)+m+we(y)+v+we(g)+_;default:throw new Error("Does not support more than 9 expressions")}}function we(t){return null!=t?t.toString():""}function Ce(t,e,r,n,o,i){t|=1;var s=ue(e),a=s.matchedQueries,u=s.references,c=s.matchedQueryIds,l=i?le(i):null;return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a,matchedQueryIds:c,references:u,ngContentIndex:r,childCount:n,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:l,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:o||ta},provider:null,text:null,query:null,ngContent:null}}function Ee(t,e,r,n,o,i,s,a,u,c,l){void 0===i&&(i=[]),u||(u=ta);var p=ue(e),h=p.matchedQueries,f=p.references,d=p.matchedQueryIds,m=null,y=null;o&&(I=ve(o),m=I[0],y=I[1]),s=s||[];for(var v=new Array(s.length),g=0;g<s.length;g++){var _=s[g],b=_[0],w=_[1],C=_[2],E=ve(w),S=E[0],x=E[1],T=void 0,P=void 0;switch(15&b){case 4:P=C;break;case 1:case 8:T=C}v[g]={flags:b,ns:S,name:x,nonMinifiedName:x,securityContext:T,suffix:P}}a=a||[];for(var A=new Array(a.length),g=0;g<a.length;g++){var O=a[g],M=O[0],R=O[1];A[g]={type:0,target:M,eventName:R,propName:null}}i=i||[];var k=i.map(function(t){var e=t[0],r=t[1],n=ve(e),o=n[0],i=n[1];return[o,i,r]});return l=Qt(l),c&&(t|=16777216),t|=1,{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:h,matchedQueryIds:d,references:f,ngContentIndex:r,childCount:n,bindings:v,bindingFlags:ge(v),outputs:A,element:{ns:m,name:y,attrs:k,template:null,componentProvider:null,componentView:c||null,componentRendererType:l,publicProviders:null,allProviders:null,handleEvent:u||ta},provider:null,text:null,query:null,ngContent:null};var I}function Se(t,e,r){var n,o=r.element,i=t.root.selectorOrNode,s=t.renderer;if(t.parent||!i){n=o.name?s.createElement(o.name,o.ns):s.createComment("");var a=ce(t,e,r);a&&s.appendChild(a,n)}else n=s.selectRootElement(i);if(o.attrs)for(var u=0;u<o.attrs.length;u++){var c=o.attrs[u],l=c[0],p=c[1],h=c[2];s.setAttribute(n,p,h,l)}return n}function xe(t,e,r,n){for(var o=0;o<r.outputs.length;o++){var i=r.outputs[o],s=Te(t,r.index,oe(i.target,i.eventName)),a=i.target,u=t;"component"===i.target&&(a=null,u=e);var c=u.renderer.listen(a||n,i.eventName,s);t.disposables[r.outputIndex+o]=c}}function Te(t,e,r){return function(n){return te(t,e,r,n)}}function Pe(t,e,r,n,o,i,s,a,u,c,l,p){var h=e.bindings.length,f=!1;return h>0&&Oe(t,e,0,r)&&(f=!0),h>1&&Oe(t,e,1,n)&&(f=!0),h>2&&Oe(t,e,2,o)&&(f=!0),h>3&&Oe(t,e,3,i)&&(f=!0),h>4&&Oe(t,e,4,s)&&(f=!0),h>5&&Oe(t,e,5,a)&&(f=!0),h>6&&Oe(t,e,6,u)&&(f=!0),h>7&&Oe(t,e,7,c)&&(f=!0),h>8&&Oe(t,e,8,l)&&(f=!0),h>9&&Oe(t,e,9,p)&&(f=!0),f}function Ae(t,e,r){for(var n=!1,o=0;o<r.length;o++)Oe(t,e,o,r[o])&&(n=!0);return n}function Oe(t,e,r,n){if(!Zt(t,e,r,n))return!1;var o=e.bindings[r],i=jt(t,e.index),s=i.renderElement,a=o.name;switch(15&o.flags){case 1:Me(t,o,s,o.ns,a,n);break;case 2:Re(t,s,a,n);break;case 4:ke(t,o,s,a,n);break;case 8:var u=16777216&e.flags&&32&o.flags?i.componentView:t;Ie(u,o,s,a,n)}return!0}function Me(t,e,r,n,o,i){var s=e.securityContext,a=s?t.root.sanitizer.sanitize(s,i):i;a=null!=a?a.toString():null;var u=t.renderer;null!=i?u.setAttribute(r,o,a,n):u.removeAttribute(r,o,n)}function Re(t,e,r,n){var o=t.renderer;n?o.addClass(e,r):o.removeClass(e,r)}function ke(t,e,r,n,o){var i=t.root.sanitizer.sanitize(Xs.STYLE,o);if(null!=i){i=i.toString();var s=e.suffix;null!=s&&(i+=s)}else i=null;var a=t.renderer;null!=i?a.setStyle(r,n,i):a.removeStyle(r,n)}function Ie(t,e,r,n,o){var i=e.securityContext,s=i?t.root.sanitizer.sanitize(i,o):o;t.renderer.setProperty(r,n,s)}function Ne(t,e){return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:4,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:e}}}function De(t,e,r){var n=ce(t,e,r);if(n){var o=r.ngContent.index;de(t,o,1,n,null,void 0)}}function je(t,e,r,n){var o=e.viewContainer._embeddedViews;(null===r||void 0===r)&&(r=o.length),n.viewContainerParent=t,Be(o,r,n);var i=ee(n);if(i&&i!==e){var s=i.template._projectedViews;s||(s=i.template._projectedViews=[]),s.push(n)}Js.dirtyParentQueries(n);var a=r>0?o[r-1]:null;Fe(e,a,n)}function Le(t,e){var r=t.viewContainer._embeddedViews;if((null==e||e>=r.length)&&(e=r.length-1),0>e)return null;var n=r[e];n.viewContainerParent=null,He(r,e);var o=ee(n);if(o&&o!==t){var i=o.template._projectedViews;He(i,i.indexOf(n))}return Js.dirtyParentQueries(n),Ue(n),n}function Ve(t,e,r){var n=t.viewContainer._embeddedViews,o=n[e];He(n,e),null==r&&(r=n.length),Be(n,r,o),Js.dirtyParentQueries(o),Ue(o);var i=r>0?n[r-1]:null;return Fe(t,i,o),o}function Fe(t,e,r){var n=e?ne(e,e.def.lastRenderRootNode):t.renderElement,o=r.renderer.parentNode(n),i=r.renderer.nextSibling(n);he(r,2,o,i,void 0)}function Ue(t){he(t,3,null,null,void 0)}function Be(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function He(t,e){e>=t.length-1?t.pop():t.splice(e,1)}function qe(t,e,r,n,o,i){return new la(t,e,r,n,o,i)}function ze(t){return t.viewDefFactory}function Ge(t,e,r){return new ha(t,e,r)}function We(t){return new fa(t)}function $e(t,e){return new da(t,e)}function Ke(t,e){return new ma(t,e)}function Qe(t,e){var r=t.def.nodes[e];if(1&r.flags){var n=jt(t,r.index);return r.element.template?n.template:n.renderElement}if(2&r.flags)return Dt(t,r.index).renderText;if(10120&r.flags)return Lt(t,r.index).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function Xe(t){return new ya(t.renderer)}function Ze(t,e,r,n,o,i,s){var a=[];if(i)for(var u in i){var c=i[u],l=c[0],p=c[1];a[l]={flags:8,name:u,nonMinifiedName:p,ns:null,securityContext:null,suffix:null}}var h=[];if(s)for(var f in s)h.push({type:1,propName:f,target:null,eventName:s[f]});return t|=8192,tr(t,e,r,n,n,o,a,h)}function Ye(t,e,r){return t|=8,tr(t,null,0,e,e,r)}function Je(t,e,r,n,o){return tr(t,e,0,r,n,o)}function tr(t,e,r,n,o,i,s,a){var u=ue(e),c=u.matchedQueries,l=u.references,p=u.matchedQueryIds;a||(a=[]),s||(s=[]);var h=i.map(function(t){var e,r;return Array.isArray(t)?(r=t[0],e=t[1]):(r=0,e=t),{flags:r,token:e,tokenKey:Wt(e)}});return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:p,references:l,ngContentIndex:-1,childCount:r,bindings:s,bindingFlags:ge(s),outputs:a,element:null,provider:{token:n,tokenKey:Wt(n),value:o,deps:h},text:null,query:null,ngContent:null}}function er(t,e){return 2048&e.flags?Sa:ar(t,e)}function rr(t,e){for(var r=t;r.parent&&!ie(r);)r=r.parent;var n=!0;return ur(r.parent,re(r),n,e.provider.value,e.provider.deps)}function nr(t,e){var r=(16384&e.flags)>0,n=ur(t,e.parent,r,e.provider.value,e.provider.deps);if(e.outputs.length)for(var o=0;o<e.outputs.length;o++){var i=e.outputs[o],s=n[i.propName].subscribe(or(t,e.parent.index,i.eventName));t.disposables[e.outputIndex+o]=s.unsubscribe.bind(s)}return n}function or(t,e,r){return function(n){return te(t,e,r,n)}}function ir(t,e,r,n,o,i,s,a,u,c,l,p){var h=Lt(t,e.index),f=h.instance,d=!1,m=void 0,y=e.bindings.length;return y>0&&Xt(t,e,0,r)&&(d=!0,m=hr(t,h,e,0,r,m)),y>1&&Xt(t,e,1,n)&&(d=!0,m=hr(t,h,e,1,n,m)),y>2&&Xt(t,e,2,o)&&(d=!0,m=hr(t,h,e,2,o,m)),y>3&&Xt(t,e,3,i)&&(d=!0,m=hr(t,h,e,3,i,m)),y>4&&Xt(t,e,4,s)&&(d=!0,m=hr(t,h,e,4,s,m)),y>5&&Xt(t,e,5,a)&&(d=!0,m=hr(t,h,e,5,a,m)),y>6&&Xt(t,e,6,u)&&(d=!0,m=hr(t,h,e,6,u,m)),y>7&&Xt(t,e,7,c)&&(d=!0,m=hr(t,h,e,7,c,m)),y>8&&Xt(t,e,8,l)&&(d=!0,m=hr(t,h,e,8,l,m)),y>9&&Xt(t,e,9,p)&&(d=!0,m=hr(t,h,e,9,p,m)),m&&f.ngOnChanges(m),1&t.state&&32768&e.flags&&f.ngOnInit(),131072&e.flags&&f.ngDoCheck(),d}function sr(t,e,r){for(var n=Lt(t,e.index),o=n.instance,i=!1,s=void 0,a=0;a<r.length;a++)Xt(t,e,a,r[a])&&(i=!0,s=hr(t,n,e,a,r[a],s));return s&&o.ngOnChanges(s),1&t.state&&32768&e.flags&&o.ngOnInit(),131072&e.flags&&o.ngDoCheck(),i}function ar(t,e){var r,n=(4096&e.flags)>0,o=e.provider;switch(100673535&e.flags){case 256:r=ur(t,e.parent,n,o.value,o.deps);break;case 512:r=cr(t,e.parent,n,o.value,o.deps);break;case 1024:r=lr(t,e.parent,n,o.deps[0]);break;case 128:r=o.value}return r}function ur(t,e,r,n,o){var i,s=o.length;switch(s){case 0:i=new n;break;case 1:i=new n(lr(t,e,r,o[0]));break;case 2:i=new n(lr(t,e,r,o[0]),lr(t,e,r,o[1]));break;case 3:i=new n(lr(t,e,r,o[0]),lr(t,e,r,o[1]),lr(t,e,r,o[2]));break;default:for(var a=new Array(s),u=0;s>u;u++)a[u]=lr(t,e,r,o[u]);i=new(n.bind.apply(n,[void 0].concat(a)))}return i}function cr(t,e,r,n,o){var i,s=o.length;switch(s){case 0:i=n();break;case 1:i=n(lr(t,e,r,o[0]));break;case 2:i=n(lr(t,e,r,o[0]),lr(t,e,r,o[1]));break;case 3:i=n(lr(t,e,r,o[0]),lr(t,e,r,o[1]),lr(t,e,r,o[2]));break;default:for(var a=Array(s),u=0;s>u;u++)a[u]=lr(t,e,r,o[u]);i=n.apply(void 0,a)}return i}function lr(t,e,r,n,o){if(void 0===o&&(o=Uo.THROW_IF_NOT_FOUND),8&n.flags)return n.token;var i=t;2&n.flags&&(o=null);var s=n.tokenKey;for(e&&1&n.flags&&(r=!1,e=e.parent);t;){if(e)switch(s){case va:var a=pr(t,e,r);return Xe(a);case ga:var a=pr(t,e,r);return a.renderer;case _a:return new us(jt(t,e.index).renderElement);case ba:return jt(t,e.index).viewContainer;case wa:if(e.element.template)return jt(t,e.index).template;break;case Ca:var u=pr(t,e,r);return We(u);case Ea:return Ke(t,e);default:var c=(r?e.element.allProviders:e.element.publicProviders)[s];if(c){var l=Lt(t,c.index);return l.instance===Sa&&(l.instance=ar(t,c)),l.instance}}r=ie(t),e=re(t),t=t.parent}var p=i.root.injector.get(n.token,xa);return p!==xa||o===xa?p:i.root.ngModule.injector.get(n.token,o)}function pr(t,e,r){var n;if(r)n=jt(t,e.index).componentView;else for(n=t;n.parent&&!ie(n);)n=n.parent;return n}function hr(t,e,r,n,o,i){if(16384&r.flags){var s=jt(t,r.parent.index).componentView;2&s.def.flags&&(s.state|=2)}var a=r.bindings[n],u=a.name;if(e.instance[u]=o,262144&r.flags){i=i||{};var c=t.oldValues[r.bindingIndex+n];c instanceof Ts&&(c=c.wrapped);var l=r.bindings[n];i[l.nonMinifiedName]=new As(c,o,0!==(1&t.state))}return t.oldValues[r.bindingIndex+n]=o,i}function fr(t,e){if(t.def.nodeFlags&e)for(var r=t.def.nodes,n=0;n<r.length;n++){var o=r[n],i=o.parent;for(!i&&o.flags&e&&mr(t,n,o.flags&e),0===(o.childFlags&e)&&(n+=o.childCount);i&&1&i.flags&&n===i.index+i.childCount;)i.directChildFlags&e&&dr(t,i,e),i=i.parent}}function dr(t,e,r){for(var n=e.index+1;n<=e.index+e.childCount;n++){var o=t.def.nodes[n];o.flags&r&&mr(t,n,o.flags&r),n+=o.childCount}}function mr(t,e,r){var n=Lt(t,e).instance;n!==Sa&&(Js.setCurrentNode(t,e),524288&r&&n.ngAfterContentInit(),1048576&r&&n.ngAfterContentChecked(),2097152&r&&n.ngAfterViewInit(),4194304&r&&n.ngAfterViewChecked(),65536&r&&n.ngOnDestroy())}function yr(t){return _r(64,new Array(t+1))}function vr(t){return _r(16,new Array(t))}function gr(t){return _r(32,t)}function _r(t,e){for(var r=new Array(e.length),n=0;n<e.length;n++){var o=e[n];r[n]={flags:8,name:o,ns:null,nonMinifiedName:o,securityContext:null,suffix:null}}return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:ge(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function br(){return{value:void 0}}function wr(t,e,r,n,o,i,s,a,u,c,l,p){var h=e.bindings,f=!1,d=h.length;if(d>0&&Zt(t,e,0,r)&&(f=!0),d>1&&Zt(t,e,1,n)&&(f=!0),d>2&&Zt(t,e,2,o)&&(f=!0),d>3&&Zt(t,e,3,i)&&(f=!0),d>4&&Zt(t,e,4,s)&&(f=!0),d>5&&Zt(t,e,5,a)&&(f=!0),d>6&&Zt(t,e,6,u)&&(f=!0),d>7&&Zt(t,e,7,c)&&(f=!0),d>8&&Zt(t,e,8,l)&&(f=!0),d>9&&Zt(t,e,9,p)&&(f=!0),f){var m=Vt(t,e.index),y=void 0;switch(100673535&e.flags){case 16:y=new Array(h.length),d>0&&(y[0]=r),d>1&&(y[1]=n),d>2&&(y[2]=o),d>3&&(y[3]=i),d>4&&(y[4]=s),d>5&&(y[5]=a),d>6&&(y[6]=u),d>7&&(y[7]=c),d>8&&(y[8]=l),d>9&&(y[9]=p);break;case 32:y={},d>0&&(y[h[0].name]=r),d>1&&(y[h[1].name]=n),d>2&&(y[h[2].name]=o),d>3&&(y[h[3].name]=i),d>4&&(y[h[4].name]=s),d>5&&(y[h[5].name]=a),d>6&&(y[h[6].name]=u),d>7&&(y[h[7].name]=c),d>8&&(y[h[8].name]=l),d>9&&(y[h[9].name]=p);break;case 64:var v=r;switch(d){case 1:y=v.transform(r);break;case 2:y=v.transform(n);break;case 3:y=v.transform(n,o);break;case 4:y=v.transform(n,o,i);break;case 5:y=v.transform(n,o,i,s);break;case 6:y=v.transform(n,o,i,s,a);break;case 7:y=v.transform(n,o,i,s,a,u);break;case 8:y=v.transform(n,o,i,s,a,u,c);break;case 9:y=v.transform(n,o,i,s,a,u,c,l);break;case 10:y=v.transform(n,o,i,s,a,u,c,l,p)}}m.value=y}return f}function Cr(t,e,r){for(var n=e.bindings,o=!1,i=0;i<r.length;i++)Zt(t,e,i,r[i])&&(o=!0);if(o){var s=Vt(t,e.index),a=void 0;switch(100673535&e.flags){case 16:a=r;break;case 32:a={};for(var i=0;i<r.length;i++)a[n[i].name]=r[i];break;case 64:var u=r[0],c=r.slice(1);a=u.transform.apply(u,c)}s.value=a}return o}function Er(t,e,r){var n=[];for(var o in r){var i=r[o];n.push({propName:o,bindingType:i})}return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:e,filterId:ae(e),bindings:n},ngContent:null}}function Sr(){return new ps}function xr(t){for(var e=t.def.nodeMatchedQueries;t.parent&&se(t);){var r=t.parentNodeDef;t=t.parent;for(var n=r.index+r.childCount,o=0;n>=o;o++){var i=t.def.nodes[o];33554432&i.flags&&268435456&i.flags&&(i.query.filterId&e)===i.query.filterId&&Ft(t,o).setDirty(),!(1&i.flags&&o+i.childCount<r.index)&&33554432&i.childFlags&&268435456&i.childFlags||(o+=i.childCount)}}if(67108864&t.def.nodeFlags)for(var o=0;o<t.def.nodes.length;o++){var i=t.def.nodes[o];67108864&i.flags&&268435456&i.flags&&Ft(t,o).setDirty(),o+=i.childCount}}function Tr(t,e){var r=Ft(t,e.index);if(r.dirty){var n,o=void 0;if(33554432&e.flags){var i=e.parent.parent;o=Pr(t,i.index,i.index+i.childCount,e.query,[]),n=Lt(t,e.parent.index).instance}else 67108864&e.flags&&(o=Pr(t,0,t.def.nodes.length-1,e.query,[]),n=t.component);r.reset(o);for(var s=e.query.bindings,a=!1,u=0;u<s.length;u++){var c=s[u],l=void 0;switch(c.bindingType){case 0:l=r.first;break;case 1:l=r,a=!0}n[c.propName]=l}a&&r.notifyOnChanges()}}function Pr(t,e,r,n,o){for(var i=e;r>=i;i++){var s=t.def.nodes[i],a=s.matchedQueries[n.id];if(null!=a&&o.push(Ar(t,s,a)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&n.filterId)===n.filterId){var u=jt(t,i);if(8388608&s.flags)for(var c=u.viewContainer._embeddedViews,l=0;l<c.length;l++){var p=c[l],h=ee(p);h&&h===u&&Pr(p,0,p.def.nodes.length-1,n,o)}var f=u.template._projectedViews;if(f)for(var l=0;l<f.length;l++){var d=f[l];Pr(d,0,d.def.nodes.length-1,n,o)}}(s.childMatchedQueries&n.filterId)!==n.filterId&&(i+=s.childCount)}return o}function Ar(t,e,r){if(null!=r){var n=void 0;switch(r){case 1:n=jt(t,e.index).renderElement;break;case 0:n=new us(jt(t,e.index).renderElement);break;case 2:n=jt(t,e.index).template;break;case 3:n=jt(t,e.index).viewContainer;break;case 4:n=Lt(t,e.index).instance}return n}}function Or(t,e){for(var r=new Array(e.length-1),n=1;n<e.length;n++)r[n-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:e[n]};var o=2;return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:o,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:r,bindingFlags:ge(r),outputs:[],element:null,provider:null,text:{prefix:e[0]},query:null,ngContent:null}}function Mr(t,e,r){var n,o=t.renderer;n=o.createText(r.text.prefix);var i=ce(t,e,r);return i&&o.appendChild(i,n),{renderText:n}}function Rr(t,e,r,n,o,i,s,a,u,c,l,p){var h=!1,f=e.bindings,d=f.length;if(d>0&&Zt(t,e,0,r)&&(h=!0),d>1&&Zt(t,e,1,n)&&(h=!0),d>2&&Zt(t,e,2,o)&&(h=!0),d>3&&Zt(t,e,3,i)&&(h=!0),d>4&&Zt(t,e,4,s)&&(h=!0),d>5&&Zt(t,e,5,a)&&(h=!0),d>6&&Zt(t,e,6,u)&&(h=!0),d>7&&Zt(t,e,7,c)&&(h=!0),d>8&&Zt(t,e,8,l)&&(h=!0),d>9&&Zt(t,e,9,p)&&(h=!0),h){var m=e.text.prefix;d>0&&(m+=Ir(r,f[0])),d>1&&(m+=Ir(n,f[1])),d>2&&(m+=Ir(o,f[2])),d>3&&(m+=Ir(i,f[3])),d>4&&(m+=Ir(s,f[4])),d>5&&(m+=Ir(a,f[5])),d>6&&(m+=Ir(u,f[6])),d>7&&(m+=Ir(c,f[7])),d>8&&(m+=Ir(l,f[8])),d>9&&(m+=Ir(p,f[9]));var y=Dt(t,e.index).renderText;t.renderer.setValue(y,m)}return h}function kr(t,e,r){for(var n=e.bindings,o=!1,i=0;i<r.length;i++)Zt(t,e,i,r[i])&&(o=!0);if(o){for(var s="",i=0;i<r.length;i++)s+=Ir(r[i],n[i]);s=e.text.prefix+s;var a=Dt(t,e.index).renderText;t.renderer.setValue(a,s)}return o}function Ir(t,e){var r=null!=t?t.toString():"";return r+e.suffix}function Nr(t,e,r,n){for(var o=0,i=0,s=0,a=0,u=0,c=null,l=!1,p=!1,h=null,f=0;f<e.length;f++){for(;c&&f>c.index+c.childCount;){var d=c.parent;d&&(d.childFlags|=c.childFlags,d.childMatchedQueries|=c.childMatchedQueries),c=d}var m=e[f];m.index=f,m.parent=c,m.bindingIndex=o,m.outputIndex=i;var y=void 0;if(y=c&&1&c.flags&&!c.element.name?c.renderParent:c,m.renderParent=y,m.element){var v=m.element;v.publicProviders=c?c.element.publicProviders:Object.create(null),v.allProviders=v.publicProviders,l=!1,p=!1}if(Dr(c,m,e.length),s|=m.flags,u|=m.matchedQueryIds,m.element&&m.element.template&&(u|=m.element.template.nodeMatchedQueries),c?(c.childFlags|=m.flags,c.directChildFlags|=m.flags,c.childMatchedQueries|=m.matchedQueryIds,m.element&&m.element.template&&(c.childMatchedQueries|=m.element.template.nodeMatchedQueries)):a|=m.flags,o+=m.bindings.length,i+=m.outputs.length,!y&&3&m.flags&&(h=m),10112&m.flags){l||(l=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);var g=0!==(4096&m.flags),_=0!==(16384&m.flags);!g||_?c.element.publicProviders[m.provider.tokenKey]=m:(p||(p=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[m.provider.tokenKey]=m),_&&(c.element.componentProvider=m)}m.childCount&&(c=m)}for(;c;){var d=c.parent;d&&(d.childFlags|=c.childFlags,d.childMatchedQueries|=c.childMatchedQueries),c=d}var b=function(t,r,n,o){return e[r].element.handleEvent(t,n,o)};return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:r||ta,updateRenderer:n||ta,handleEvent:b||ta,bindingCount:o,outputCount:i,lastRenderRootNode:h}}function Dr(t,e,r){var n=e.element&&e.element.template;if(n){if(!n.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(n.lastRenderRootNode&&8388608&n.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.index+"!")}if(10112&e.flags){var o=t?t.flags:0;if(0===(1&o))throw new Error("Illegal State: Provider/Directive nodes need to be children of elements or anchors, at index "+e.index+"!")}if(e.query){if(33554432&e.flags&&(!t||0===(8192&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.index+"!");if(67108864&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.index+"!")}if(e.childCount){var i=t?t.index+t.childCount:r-1;if(e.index<=i&&e.index+e.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.index+"!")}}function jr(t,e,r){var n=Vr(t.root,t.renderer,t,e,e.element.template);return Fr(n,t.component,r),Ur(n),n}function Lr(t,e,r){var n=Vr(t,t.renderer,null,null,e);return Fr(n,r,r),Ur(n),n}function Vr(t,e,r,n,o){var i=new Array(o.nodes.length),s=o.outputCount?new Array(o.outputCount):null,a={def:o,parent:r,viewContainerParent:null,parentNodeDef:n,context:null,component:null,nodes:i,state:3,root:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:s};return a}function Fr(t,e,r){t.component=e,t.context=r}function Ur(t){var e;if(ie(t)){var r=t.parentNodeDef;e=jt(t.parent,r.parent.index).renderElement}for(var n=t.def,o=t.nodes,i=0;i<n.nodes.length;i++){var s=n.nodes[i];Js.setCurrentNode(t,i);var a=void 0;switch(100673535&s.flags){case 1:var u=Se(t,e,s),c=void 0;if(16777216&s.flags){var l=le(s.element.componentView),p=s.element.componentRendererType,h=void 0;h=p?t.root.rendererFactory.createRenderer(u,p):t.root.renderer,c=Vr(t.root,h,t,s.element.componentProvider,l)}xe(t,c,s,u),a={renderElement:u,componentView:c,viewContainer:null,template:s.element.template?$e(t,s):void 0},8388608&s.flags&&(a.viewContainer=Ge(t,s,a));break;case 2:a=Mr(t,e,s);break;case 256:case 512:case 1024:case 128:var f=er(t,s);a={instance:f};break;case 8:var f=rr(t,s);a={instance:f};break;case 8192:var f=nr(t,s);if(a={instance:f},16384&s.flags){var d=jt(t,s.parent.index).componentView;Fr(d,f,f)}break;case 16:case 32:case 64:a=br(t,s);break;case 33554432:case 67108864:a=Sr();break;case 4:De(t,e,s),a=void 0}o[i]=a}Yr(t,Ta.CreateViewNodes),en(t,100663296,134217728,0)}function Br(t){Js.updateDirectives(t,1),Jr(t,Ta.CheckNoChanges),Js.updateRenderer(t,1),Yr(t,Ta.CheckNoChanges)}function Hr(t){Js.updateDirectives(t,0),Jr(t,Ta.CheckAndUpdate),en(t,33554432,268435456,0),fr(t,1048576|(1&t.state?524288:0)),Js.updateRenderer(t,0),Yr(t,Ta.CheckAndUpdate),en(t,67108864,268435456,0),fr(t,4194304|(1&t.state?2097152:0)),2&t.def.flags&&(t.state&=-3),t.state&=-2}function qr(t,e,r,n,o,i,s,a,u,c,l,p,h){return 0===r?zr(t,e,n,o,i,s,a,u,c,l,p,h):Gr(t,e,n)}function zr(t,e,r,n,o,i,s,a,u,c,l,p){var h=!1;switch(100673535&e.flags){case 1:h=Pe(t,e,r,n,o,i,s,a,u,c,l,p);break;case 2:h=Rr(t,e,r,n,o,i,s,a,u,c,l,p);break;case 8192:h=ir(t,e,r,n,o,i,s,a,u,c,l,p);break;case 16:case 32:case 64:h=wr(t,e,r,n,o,i,s,a,u,c,l,p)}return h}function Gr(t,e,r){var n=!1;switch(100673535&e.flags){case 1:n=Ae(t,e,r);break;case 2:n=kr(t,e,r);break;case 8192:n=sr(t,e,r);break;case 16:case 32:case 64:n=Cr(t,e,r)}if(n)for(var o=e.bindings.length,i=e.bindingIndex,s=t.oldValues,a=0;o>a;a++)s[i+a]=r[a];return n}function Wr(t,e,r,n,o,i,s,a,u,c,l,p,h){return 0===r?$r(t,e,n,o,i,s,a,u,c,l,p,h):Kr(t,e,n),!1}function $r(t,e,r,n,o,i,s,a,u,c,l,p){var h=e.bindings.length;h>0&&Yt(t,e,0,r),h>1&&Yt(t,e,1,n),h>2&&Yt(t,e,2,o),h>3&&Yt(t,e,3,i),h>4&&Yt(t,e,4,s),h>5&&Yt(t,e,5,a),h>6&&Yt(t,e,6,u),h>7&&Yt(t,e,7,c),h>8&&Yt(t,e,8,l),h>9&&Yt(t,e,9,p)}function Kr(t,e,r){for(var n=0;n<r.length;n++)Yt(t,e,n,r[n])}function Qr(t,e){var r=Ft(t,e.index);if(r.dirty)throw Ut(Js.createDebugContext(t,e.index),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!==(1&t.state))}function Xr(t){if(!(8&t.state)){if(Jr(t,Ta.Destroy),Yr(t,Ta.Destroy),fr(t,65536),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();t.renderer.destroyNode&&Zr(t),ie(t)&&t.renderer.destroy(),t.state|=8}}function Zr(t){for(var e=t.def.nodes.length,r=0;e>r;r++){var n=t.def.nodes[r];1&n.flags?t.renderer.destroyNode(jt(t,r).renderElement):2&n.flags&&t.renderer.destroyNode(Dt(t,r).renderText)}}function Yr(t,e){var r=t.def;if(16777216&r.nodeFlags)for(var n=0;n<r.nodes.length;n++){var o=r.nodes[n];16777216&o.flags?tn(jt(t,n).componentView,e):0===(16777216&o.childFlags)&&(n+=o.childCount)}}function Jr(t,e){var r=t.def;if(8388608&r.nodeFlags)for(var n=0;n<r.nodes.length;n++){var o=r.nodes[n];if(8388608&o.flags)for(var i=jt(t,n).viewContainer._embeddedViews,s=0;s<i.length;s++)tn(i[s],e);else 0===(8388608&o.childFlags)&&(n+=o.childCount)}}function tn(t,e){var r=t.state;switch(e){case Ta.CheckNoChanges:2&r&&0===(12&r)&&Br(t);break;case Ta.CheckAndUpdate:2&r&&0===(12&r)&&Hr(t);break;case Ta.Destroy:Xr(t);break;case Ta.CreateViewNodes:Ur(t)}}function en(t,e,r,n){if(t.def.nodeFlags&e&&t.def.nodeFlags&r)for(var o=t.def.nodes.length,i=0;o>i;i++){var s=t.def.nodes[i];if(s.flags&e&&s.flags&r)switch(Js.setCurrentNode(t,s.index),n){case 0:Tr(t,s);break;case 1:Qr(t,s)}s.childFlags&e&&s.childFlags&r||(i+=s.childCount)}}function rn(){if(!Pa){Pa=!0;var t=ct()?on():nn();Js.setCurrentNode=t.setCurrentNode,Js.createRootView=t.createRootView,Js.createEmbeddedView=t.createEmbeddedView,Js.checkAndUpdateView=t.checkAndUpdateView,Js.checkNoChangesView=t.checkNoChangesView,Js.destroyView=t.destroyView,Js.resolveDep=lr,Js.createDebugContext=t.createDebugContext,Js.handleEvent=t.handleEvent,Js.updateDirectives=t.updateDirectives,Js.updateRenderer=t.updateRenderer,Js.dirtyParentQueries=xr}}function nn(){return{setCurrentNode:function(){},createRootView:sn,createEmbeddedView:jr,checkAndUpdateView:Hr,checkNoChangesView:Br,destroyView:Xr,createDebugContext:function(t,e){return new Ia(t,e)},handleEvent:function(t,e,r,n){return t.def.handleEvent(t,e,r,n)},updateDirectives:function(t,e){return t.def.updateDirectives(0===e?cn:ln,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?cn:ln,t)}}}function on(){return{setCurrentNode:mn,createRootView:an,createEmbeddedView:pn,checkAndUpdateView:hn,checkNoChangesView:fn,destroyView:dn,createDebugContext:function(t,e){return new Ia(t,e)},handleEvent:yn,updateDirectives:vn,updateRenderer:gn}}function sn(t,e,r,n,o,i){var s=o.injector.get(is);return Lr(un(t,o,s,e,r),n,i)}function an(t,e,r,n,o,i){var s=o.injector.get(is),a=un(t,o,new Na(s),e,r);return On(Aa.create,Lr,null,[a,n,i])}function un(t,e,r,n,o){var i=e.injector.get(Zs),s=r.createRenderer(null,null);return{ngModule:e,injector:t,projectableNodes:n,selectorOrNode:o,sanitizer:i,rendererFactory:r,renderer:s}}function cn(t,e,r,n,o,i,s,a,u,c,l,p,h){var f=t.def.nodes[e];return qr(t,f,r,n,o,i,s,a,u,c,l,p,h),112&f.flags?Vt(t,e).value:void 0}function ln(t,e,r,n,o,i,s,a,u,c,l,p,h){var f=t.def.nodes[e];return Wr(t,f,r,n,o,i,s,a,u,c,l,p,h),112&f.flags?Vt(t,e).value:void 0}function pn(t,e,r){return On(Aa.create,jr,null,[t,e,r])}function hn(t){return On(Aa.detectChanges,Hr,null,[t])}function fn(t){return On(Aa.checkNoChanges,Br,null,[t])}function dn(t){return On(Aa.destroy,Xr,null,[t])}function mn(t,e){Ma=t,Ra=e}function yn(t,e,r,n){return mn(t,e),On(Aa.handleEvent,t.def.handleEvent,null,[t,e,r,n])}function vn(t,e){function r(t,r,n){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=t.def.nodes[r];return 0===e?_n(t,s,n,o):bn(t,s,n,o),8192&s.flags&&mn(t,Sn(t,r)),112&s.flags?Vt(t,s.index).value:void 0}if(8&t.state)throw Gt(Aa[Oa]);return mn(t,Sn(t,0)),t.def.updateDirectives(r,t)}function gn(t,e){function r(t,r,n){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=t.def.nodes[r];return 0===e?_n(t,s,n,o):bn(t,s,n,o),3&s.flags&&mn(t,xn(t,r)),112&s.flags?Vt(t,s.index).value:void 0}if(8&t.state)throw Gt(Aa[Oa]);return mn(t,xn(t,0)),t.def.updateRenderer(r,t)}function _n(t,e,r,n){var o=qr.apply(void 0,[t,e,r].concat(n));if(o){var i=1===r?n[0]:n;if(8192&e.flags){for(var s={},a=0;a<e.bindings.length;a++){var u=e.bindings[a],c=i[a];8&u.flags&&(s[wn(u.nonMinifiedName)]=En(c))}var l=e.parent,p=jt(t,l.index).renderElement;if(l.element.name)for(var h in s){var c=s[h];null!=c?t.renderer.setAttribute(p,h,c):t.renderer.removeAttribute(p,h)}else t.renderer.setValue(p,"bindings="+JSON.stringify(s,null,2))}}}function bn(t,e,r,n){Wr.apply(void 0,[t,e,r].concat(n))}function wn(t){return t=Cn(t.replace(/[$@]/g,"_")),"ng-reflect-"+t}function Cn(t){return t.replace(ka,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()})}function En(t){try{return null!=t?t.toString().slice(0,30):t}catch(e){return"[ERROR] Exception while trying to serialize the value"}}function Sn(t,e){for(var r=e;r<t.def.nodes.length;r++){var n=t.def.nodes[r];if(8192&n.flags&&n.bindings&&n.bindings.length)return r}return null}function xn(t,e){for(var r=e;r<t.def.nodes.length;r++){
+var n=t.def.nodes[r];if(3&n.flags&&n.bindings&&n.bindings.length)return r}return null}function Tn(t,e){for(var r=-1,n=0;e>=n;n++){var o=t.nodes[n];3&o.flags&&r++}return r}function Pn(t){for(;t&&!ie(t);)t=t.parent;return t.parent?jt(t.parent,re(t).index):null}function An(t,e,r){for(var n in e.references)r[n]=Ar(t,e,e.references[n])}function On(t,e,r,n){var o=Oa,i=Ma,s=Ra;try{Oa=t;var a=e.apply(r,n);return Ma=i,Ra=s,Oa=o,a}catch(u){if(zt(u)||!Ma)throw u;throw Ma.state|=4,Bt(u,Mn())}}function Mn(){return Ma?new Ia(Ma,Ra):null}function Rn(){return Hs}function kn(){return qs}function In(t){return t||"en-US"}function Nn(){rn()}function Dn(t,e){return{name:t,definitions:e}}function jn(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}}function Ln(t){return{type:3,steps:t}}function Vn(t){return{type:2,steps:t}}function Fn(t){return{type:6,styles:t}}function Un(t,e){return{type:0,name:t,styles:e}}function Bn(t){return{type:5,steps:t}}function Hn(t,e){return{type:1,expr:t,animation:e}}function qn(t,e){return Dn(t,e)}function zn(t,e){return jn(t,e)}function Gn(t){return Ln(t)}function Wn(t){return Vn(t)}function $n(t){return Fn(t)}function Kn(t,e){return Un(t,e)}function Qn(t){return Bn(t)}function Xn(t,e){return Hn(t,e)}var Zn=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Yn=function(){function t(t){this._desc=t}return t.prototype.toString=function(){return"Token "+this._desc},t}(),Jn=function(t){function e(e){return t.call(this,e)||this}return Zn(e,t),e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(Yn),to="undefined"!=typeof window&&window,eo="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ro="undefined"!=typeof o&&o,no=to||ro||eo,oo=null,io=0,so=no.Reflect,ao=new Jn("AnalyzeForEntryComponents"),uo=m("Attribute",[["attributeName",void 0]]),co=function(){function t(){}return t}(),lo=y("ContentChildren",[["selector",void 0],{first:!1,isViewQuery:!1,descendants:!1,read:void 0}],co),po=y("ContentChild",[["selector",void 0],{first:!0,isViewQuery:!1,descendants:!0,read:void 0}],co),ho=y("ViewChildren",[["selector",void 0],{first:!1,isViewQuery:!0,descendants:!0,read:void 0}],co),fo=y("ViewChild",[["selector",void 0],{first:!0,isViewQuery:!0,descendants:!0,read:void 0}],co),mo={};mo.OnPush=0,mo.Default=1,mo[mo.OnPush]="OnPush",mo[mo.Default]="Default";var yo={};yo.CheckOnce=0,yo.Checked=1,yo.CheckAlways=2,yo.Detached=3,yo.Errored=4,yo.Destroyed=5,yo[yo.CheckOnce]="CheckOnce",yo[yo.Checked]="Checked",yo[yo.CheckAlways]="CheckAlways",yo[yo.Detached]="Detached",yo[yo.Errored]="Errored",yo[yo.Destroyed]="Destroyed";var vo=f("Directive",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,providers:void 0,exportAs:void 0,queries:void 0}),go=f("Component",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,exportAs:void 0,moduleId:void 0,providers:void 0,viewProviders:void 0,changeDetection:mo.Default,queries:void 0,templateUrl:void 0,template:void 0,styleUrls:void 0,styles:void 0,animations:void 0,encapsulation:void 0,interpolation:void 0,entryComponents:void 0},vo),_o=f("Pipe",{name:void 0,pure:!0}),bo=y("Input",[["bindingPropertyName",void 0]]),wo=y("Output",[["bindingPropertyName",void 0]]),Co=y("HostBinding",[["hostPropertyName",void 0]]),Eo=y("HostListener",[["eventName",void 0],["args",[]]]),So={name:"custom-elements"},xo={name:"no-errors-schema"},To=f("NgModule",{providers:void 0,declarations:void 0,imports:void 0,exports:void 0,entryComponents:void 0,bootstrap:void 0,schemas:void 0,id:void 0}),Po={};Po.Emulated=0,Po.Native=1,Po.None=2,Po[Po.Emulated]="Emulated",Po[Po.Native]="Native",Po[Po.None]="None";var Ao=function(){function t(t){var e=void 0===t?{}:t,r=e.templateUrl,n=e.template,o=e.encapsulation,i=e.styles,s=e.styleUrls,a=e.animations,u=e.interpolation;this.templateUrl=r,this.template=n,this.styleUrls=s,this.styles=i,this.encapsulation=o,this.animations=a,this.interpolation=u}return t}(),Oo=function(){function t(t){this.full=t}return Object.defineProperty(t.prototype,"major",{get:function(){return this.full.split(".")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minor",{get:function(){return this.full.split(".")[1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"patch",{get:function(){return this.full.split(".").slice(2).join(".")},enumerable:!0,configurable:!0}),t}(),Mo=new Oo("4.1.0"),Ro=m("Inject",[["token",void 0]]),ko=m("Optional",[]),Io=f("Injectable",[]),No=m("Self",[]),Do=m("SkipSelf",[]),jo=m("Host",[]),Lo=new Object,Vo=Lo,Fo=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=Lo),e===Lo)throw new Error("No provider for "+c(t)+"!");return e},t}(),Uo=function(){function t(){}return t.prototype.get=function(){},t.prototype.get=function(){},t}();Uo.THROW_IF_NOT_FOUND=Lo,Uo.NULL=new Fo;var Bo="ngComponentType",Ho="ngDebugContext",qo="ngOriginalError",zo="ngErrorLogger",Go=function(){function t(){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),r=this._findContext(t),n=C(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),r&&n(this._console,"ERROR CONTEXT",r)},t.prototype._findContext=function(t){return t?b(t)?b(t):this._findContext(w(t)):null},t.prototype._findOriginalError=function(t){for(var e=w(t);e&&w(e);)e=w(e);return e},t}(),Wo=function(){function t(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!")}return Object.defineProperty(t.prototype,"displayName",{get:function(){return c(this.token)},enumerable:!0,configurable:!0}),t.get=function(t){return Ko.get(_(t))},Object.defineProperty(t,"numberOfKeys",{get:function(){return Ko.numberOfKeys},enumerable:!0,configurable:!0}),t}(),$o=function(){function t(){this._allKeys=new Map}return t.prototype.get=function(t){if(t instanceof Wo)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var e=new Wo(t,Wo.numberOfKeys);return this._allKeys.set(t,e),e},Object.defineProperty(t.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),t}(),Ko=new $o,Qo=Function,Xo=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,Zo=function(){function t(t){this._reflect=t||no.Reflect}return t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,[void 0].concat(e)))}},t.prototype._zipTypesAndAnnotations=function(t,e){var r;r=new Array("undefined"==typeof t?e.length:t.length);for(var n=0;n<r.length;n++)r[n]="undefined"==typeof t?[]:t[n]!=Object?[t[n]]:[],e&&null!=e[n]&&(r[n]=r[n].concat(e[n]));return r},t.prototype._ownParameters=function(t,e){if(Xo.exec(t.toString()))return null;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;var r=t.ctorParameters;if(r&&r!==e.ctorParameters){var n="function"==typeof r?r():r,o=n.map(function(t){return t&&t.type}),i=n.map(function(t){return t&&L(t.decorators)});return this._zipTypesAndAnnotations(o,i)}if(null!=this._reflect&&null!=this._reflect.getOwnMetadata){var i=this._reflect.getOwnMetadata("parameters",t),o=this._reflect.getOwnMetadata("design:paramtypes",t);if(o||i)return this._zipTypesAndAnnotations(o,i)}return new Array(t.length).fill(void 0)},t.prototype.parameters=function(t){if(!j(t))return[];var e=V(t),r=this._ownParameters(t,e);return r||e===Object||(r=this.parameters(e)),r||[]},t.prototype._ownAnnotations=function(t,e){if(t.annotations&&t.annotations!==e.annotations){var r=t.annotations;return"function"==typeof r&&r.annotations&&(r=r.annotations),r}return t.decorators&&t.decorators!==e.decorators?L(t.decorators):this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("annotations",t):null},t.prototype.annotations=function(t){if(!j(t))return[];var e=V(t),r=this._ownAnnotations(t,e)||[],n=e!==Object?this.annotations(e):[];return n.concat(r)},t.prototype._ownPropMetadata=function(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){var r=t.propMetadata;return"function"==typeof r&&r.propMetadata&&(r=r.propMetadata),r}if(t.propDecorators&&t.propDecorators!==e.propDecorators){var n=t.propDecorators,o={};return Object.keys(n).forEach(function(t){o[t]=L(n[t])}),o}return this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("propMetadata",t):null},t.prototype.propMetadata=function(t){if(!j(t))return{};var e=V(t),r={};if(e!==Object){var n=this.propMetadata(e);Object.keys(n).forEach(function(t){r[t]=n[t]})}var o=this._ownPropMetadata(t,e);return o&&Object.keys(o).forEach(function(t){var e=[];r.hasOwnProperty(t)&&e.push.apply(e,r[t]),e.push.apply(e,o[t]),r[t]=e}),r},t.prototype.hasLifecycleHook=function(t,e){return t instanceof Qo&&e in t.prototype},t.prototype.getter=function(t){return new Function("o","return o."+t+";")},t.prototype.setter=function(t){return new Function("o","v","return o."+t+" = v;")},t.prototype.method=function(t){var e="if (!o."+t+") throw new Error('\""+t+"\" is undefined');\n        return o."+t+".apply(o, args);";return new Function("o","args",e)},t.prototype.importUri=function(t){return"object"==typeof t&&t.filePath?t.filePath:"./"+c(t)},t.prototype.resourceUri=function(t){return"./"+c(t)},t.prototype.resolveIdentifier=function(t,e,r,n){return n},t.prototype.resolveEnum=function(t,e){return t[e]},t}(),Yo=function(){function t(){}return t.prototype.parameters=function(){},t.prototype.annotations=function(){},t.prototype.propMetadata=function(){},t.prototype.importUri=function(){},t.prototype.resourceUri=function(){},t.prototype.resolveIdentifier=function(){},t.prototype.resolveEnum=function(){},t}(),Jo=function(t){function e(e){var r=t.call(this)||this;return r.reflectionCapabilities=e,r}return Zn(e,t),e.prototype.updateCapabilities=function(t){this.reflectionCapabilities=t},e.prototype.factory=function(t){return this.reflectionCapabilities.factory(t)},e.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},e.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},e.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},e.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},e.prototype.getter=function(t){return this.reflectionCapabilities.getter(t)},e.prototype.setter=function(t){return this.reflectionCapabilities.setter(t)},e.prototype.method=function(t){return this.reflectionCapabilities.method(t)},e.prototype.importUri=function(t){return this.reflectionCapabilities.importUri(t)},e.prototype.resourceUri=function(t){return this.reflectionCapabilities.resourceUri(t)},e.prototype.resolveIdentifier=function(t,e,r,n){return this.reflectionCapabilities.resolveIdentifier(t,e,r,n)},e.prototype.resolveEnum=function(t,e){return this.reflectionCapabilities.resolveEnum(t,e)},e}(Yo),ti=new Jo(new Zo),ei=function(){function t(t,e,r){this.key=t,this.optional=e,this.visibility=r}return t.fromKey=function(e){return new t(e,!1,null)},t}(),ri=[],ni=function(){function t(t,e,r){this.key=t,this.resolvedFactories=e,this.multiProvider=r}return Object.defineProperty(t.prototype,"resolvedFactory",{get:function(){return this.resolvedFactories[0]},enumerable:!0,configurable:!0}),t}(),oi=function(){function t(t,e){this.factory=t,this.dependencies=e}return t}(),ii=new Object,si=function(){function t(){}return t.resolve=function(t){return B(t)},t.resolveAndCreate=function(e,r){var n=t.resolve(e);return t.fromResolvedProviders(n,r)},t.fromResolvedProviders=function(t,e){return new ai(t,e)},t.prototype.parent=function(){},t.prototype.resolveAndCreateChild=function(){},t.prototype.createChildFromResolved=function(){},t.prototype.resolveAndInstantiate=function(){},t.prototype.instantiateResolved=function(){},t.prototype.get=function(){},t}(),ai=function(){function t(t,e){this._constructionCounter=0,this._providers=t,this._parent=e||null;var r=t.length;this.keyIds=new Array(r),this.objs=new Array(r);for(var n=0;r>n;n++)this.keyIds[n]=t[n].key.id,this.objs[n]=ii}return t.prototype.get=function(t,e){return void 0===e&&(e=Vo),this._getByKey(Wo.get(t),null,e)},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),t.prototype.resolveAndCreateChild=function(t){var e=si.resolve(t);return this.createChildFromResolved(e)},t.prototype.createChildFromResolved=function(e){var r=new t(e);return r._parent=this,r},t.prototype.resolveAndInstantiate=function(t){return this.instantiateResolved(si.resolve([t])[0])},t.prototype.instantiateResolved=function(t){return this._instantiateProvider(t)},t.prototype.getProviderAtIndex=function(t){if(0>t||t>=this._providers.length)throw N(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw M(this,t.key);return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),r=0;r<t.resolvedFactories.length;++r)e[r]=this._instantiate(t,t.resolvedFactories[r]);return e}return this._instantiate(t,t.resolvedFactories[0])},t.prototype._instantiate=function(t,e){var r,n=this,o=e.factory;try{r=e.dependencies.map(function(t){return n._getByReflectiveDependency(t)})}catch(i){throw i.addKey&&i.addKey(this,t.key),i}var s;try{s=o.apply(void 0,r)}catch(i){throw R(this,i,i.stack,t.key)}return s},t.prototype._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:Vo)},t.prototype._getByKey=function(t,e,r){return t===ui?this:e instanceof No?this._getByKeySelf(t,r):this._getByKeyDefault(t,r,e)},t.prototype._getObjByKeyId=function(t){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===ii&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return ii},t.prototype._throwOrNull=function(t,e){if(e!==Vo)return e;throw O(this,t)},t.prototype._getByKeySelf=function(t,e){var r=this._getObjByKeyId(t.id);return r!==ii?r:this._throwOrNull(t,e)},t.prototype._getByKeyDefault=function(e,r,n){var o;for(o=n instanceof Do?this._parent:this;o instanceof t;){var i=o,s=i._getObjByKeyId(e.id);if(s!==ii)return s;o=i._parent}return null!==o?o.get(e.token,r):this._throwOrNull(e,r)},Object.defineProperty(t.prototype,"displayName",{get:function(){var t=K(this,function(t){return' "'+t.key.displayName+'" '}).join(", ");return"ReflectiveInjector(providers: ["+t+"])"},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.displayName},t}(),ui=Wo.get(Uo),ci=new Jn("Application Initializer"),li=function(){function t(t){var e=this;this._done=!1;var r=[];if(t)for(var n=0;n<t.length;n++){var o=t[n]();Q(o)&&r.push(o)}this._donePromise=Promise.all(r).then(function(){e._done=!0}),0===r.length&&(this._done=!0)}return Object.defineProperty(t.prototype,"done",{get:function(){return this._done},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"donePromise",{get:function(){return this._donePromise},enumerable:!0,configurable:!0}),t}();li.decorators=[{type:Io}],li.ctorParameters=function(){return[{type:Array,decorators:[{type:Ro,args:[ci]},{type:ko}]}]};var pi=new Jn("AppId"),hi={provide:pi,useFactory:Z,deps:[]},fi=new Jn("Platform Initializer"),di=new Jn("Platform ID"),mi=new Jn("appBootstrapListener"),yi=new Jn("Application Packages Root URL"),vi=function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t}();vi.decorators=[{type:Io}],vi.ctorParameters=function(){return[]};var gi=function(){function t(t,e){this.ngModuleFactory=t,this.componentFactories=e}return t}(),_i=function(){function t(){}return t.prototype.compileModuleSync=function(){throw J()},t.prototype.compileModuleAsync=function(){throw J()},t.prototype.compileModuleAndAllComponentsSync=function(){throw J()},t.prototype.compileModuleAndAllComponentsAsync=function(){throw J()},t.prototype.getNgContentSelectors=function(){throw J()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(){},t}();_i.decorators=[{type:Io}],_i.ctorParameters=function(){return[]};var bi=new Jn("compilerOptions"),wi=function(){function t(){}return t.prototype.createCompiler=function(){},t}(),Ci=function(){function t(){}return t.prototype.location=function(){},t.prototype.injector=function(){},t.prototype.instance=function(){},t.prototype.hostView=function(){},t.prototype.changeDetectorRef=function(){},t.prototype.componentType=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(){},t}(),Ei=function(){function t(){}return t.prototype.selector=function(){},t.prototype.componentType=function(){},t.prototype.ngContentSelectors=function(){},t.prototype.inputs=function(){},t.prototype.outputs=function(){},t.prototype.create=function(){},t}(),Si="ngComponent",xi=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw tt(t)},t}(),Ti=function(){function t(){}return t.prototype.resolveComponentFactory=function(){},t}();Ti.NULL=new xi;var Pi,Ai,Oi=function(){function t(t,e,r){this._parent=e,this._ngModule=r,this._factories=new Map;for(var n=0;n<t.length;n++){var o=t[n];this._factories.set(o.componentType,o)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t)||this._parent.resolveComponentFactory(t);return new Mi(e,this._ngModule)},t}(),Mi=function(t){function e(e,r){var n=t.call(this)||this;return n.factory=e,n.ngModule=r,n}return Zn(e,t),Object.defineProperty(e.prototype,"selector",{get:function(){return this.factory.selector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this.factory.componentType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngContentSelectors",{get:function(){return this.factory.ngContentSelectors},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputs",{get:function(){return this.factory.inputs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return this.factory.outputs},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,r,n){return this.factory.create(t,e,r,n||this.ngModule)},e}(Ei),Ri=function(){function t(){}return t.prototype.injector=function(){},t.prototype.componentFactoryResolver=function(){},t.prototype.instance=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(){},t}(),ki=function(){function t(t,e){this._injectorClass=t,this._moduleType=e}return Object.defineProperty(t.prototype,"moduleType",{get:function(){return this._moduleType},enumerable:!0,configurable:!0}),t.prototype.create=function(t){var e=new this._injectorClass(t||Uo.NULL);return e.create(),e},t}(),Ii=new Object,Ni=function(){function t(t,e,r){var n=this;this.parent=t,this._destroyListeners=[],this._destroyed=!1,this.bootstrapFactories=r.map(function(t){return new Mi(t,n)}),this._cmpFactoryResolver=new Oi(e,t.get(Ti,Ti.NULL),this)}return t.prototype.create=function(){this.instance=this.createInternal()},t.prototype.createInternal=function(){},t.prototype.get=function(t,e){if(void 0===e&&(e=Vo),t===Uo||t===Ri)return this;if(t===Ti)return this._cmpFactoryResolver;var r=this.getInternal(t,Ii);return r===Ii?this.parent.get(t,e):r},t.prototype.getInternal=function(){},Object.defineProperty(t.prototype,"injector",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this._cmpFactoryResolver},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+c(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,this.destroyInternal(),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t.prototype.destroyInternal=function(){},t}(),Di=et(),ji=Di?rt:function(){return st},Li=Di?nt:function(t,e){return e},Vi=Di?ot:function(){return null},Fi=Di?it:function(){return null},Ui=function(t){function e(e){void 0===e&&(e=!1);var r=t.call(this)||this;return r.__isAsync=e,r}return Zn(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,r,n){var o,i=function(){return null},s=function(){return null};return e&&"object"==typeof e?(o=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(i=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(o=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},r&&(i=this.__isAsync?function(t){setTimeout(function(){return r(t)})}:function(t){r(t)}),n&&(s=this.__isAsync?function(){setTimeout(function(){return n()})}:function(){n()})),t.prototype.subscribe.call(this,o,i,s)},e}(i.Subject),Bi=function(){function t(t){var e=t.enableLongStackTrace,r=void 0===e?!1:e;if(this._hasPendingMicrotasks=!1,this._hasPendingMacrotasks=!1,this._isStable=!0,this._nesting=0,this._onUnstable=new Ui(!1),this._onMicrotaskEmpty=new Ui(!1),this._onStable=new Ui(!1),this._onErrorEvents=new Ui(!1),"undefined"==typeof Zone)throw new Error("Angular requires Zone.js prolyfill.");Zone.assertZonePatched(),this.outer=this.inner=Zone.current,Zone.wtfZoneSpec&&(this.inner=this.inner.fork(Zone.wtfZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(this.inner=this.inner.fork(Zone.longStackTraceZoneSpec)),this.forkInnerZoneWithAngularBehavior()}return t.isInAngularZone=function(){return Zone.current.get("isAngularZone")===!0},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t){return this.inner.run(t)},t.prototype.runGuarded=function(t){return this.inner.runGuarded(t)},t.prototype.runOutsideAngular=function(t){return this.outer.run(t)},Object.defineProperty(t.prototype,"onUnstable",{get:function(){return this._onUnstable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onMicrotaskEmpty",{get:function(){return this._onMicrotaskEmpty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onStable",{get:function(){return this._onStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onError",{get:function(){return this._onErrorEvents},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMicrotasks",{get:function(){return this._hasPendingMicrotasks},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMacrotasks",{get:function(){return this._hasPendingMacrotasks},enumerable:!0,configurable:!0}),t.prototype.checkStable=function(){var t=this;if(0==this._nesting&&!this._hasPendingMicrotasks&&!this._isStable)try{this._nesting++,this._onMicrotaskEmpty.emit(null)}finally{if(this._nesting--,!this._hasPendingMicrotasks)try{this.runOutsideAngular(function(){return t._onStable.emit(null)})}finally{this._isStable=!0}}},t.prototype.forkInnerZoneWithAngularBehavior=function(){var t=this;this.inner=this.inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,r,n,o,i,s){try{return t.onEnter(),e.invokeTask(n,o,i,s)}finally{t.onLeave()}},onInvoke:function(e,r,n,o,i,s,a){try{return t.onEnter(),e.invoke(n,o,i,s,a)}finally{t.onLeave()}},onHasTask:function(e,r,n,o){e.hasTask(n,o),r===n&&("microTask"==o.change?t.setHasMicrotask(o.microTask):"macroTask"==o.change&&t.setHasMacrotask(o.macroTask))},onHandleError:function(e,r,n,o){return e.handleError(n,o),t.triggerError(o),!1}})},t.prototype.onEnter=function(){this._nesting++,this._isStable&&(this._isStable=!1,this._onUnstable.emit(null))},t.prototype.onLeave=function(){this._nesting--,this.checkStable()},t.prototype.setHasMicrotask=function(t){this._hasPendingMicrotasks=t,this.checkStable()},t.prototype.setHasMacrotask=function(t){this._hasPendingMacrotasks=t},t.prototype.triggerError=function(t){this._onErrorEvents.emit(t)},t}(),Hi=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(){Bi.assertNotInAngularZone(),a(function(){t._isZoneStable=!0,t._runCallbacksIfReady()})}})})},t.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},t.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;this.isStable()?a(function(){for(;0!==t._callbacks.length;)t._callbacks.pop()(t._didWork);t._didWork=!1}):this._didWork=!0},t.prototype.whenStable=function(t){this._callbacks.push(t),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findBindings=function(){return[]},t.prototype.findProviders=function(){return[]},t}();Hi.decorators=[{type:Io}],Hi.ctorParameters=function(){return[{type:Bi}]};var qi=function(){function t(){this._applications=new Map,Wi.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),Wi.findTestabilityInTree(this,t,e)},t}();qi.decorators=[{type:Io}],qi.ctorParameters=function(){return[]};var zi,Gi=function(){function t(){}return t.prototype.addToWindow=function(){},t.prototype.findTestabilityInTree=function(){return null},t}(),Wi=new Gi,$i=!0,Ki=!1,Qi=new Jn("AllowMultipleToken"),Xi=function(){function t(t,e){this.name=t,this.token=e}return t}(),Zi=function(){function t(){}return t.prototype.bootstrapModuleFactory=function(){},t.prototype.bootstrapModule=function(){},t.prototype.onDestroy=function(){},t.prototype.injector=function(){},t.prototype.destroy=function(){},t.prototype.destroyed=function(){},t}(),Yi=function(t){function e(e){var r=t.call(this)||this;return r._injector=e,r._modules=[],r._destroyListeners=[],r._destroyed=!1,r}return Zn(e,t),e.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},e.prototype.bootstrapModuleFactory=function(t){return this._bootstrapModuleFactoryWithZone(t)},e.prototype._bootstrapModuleFactoryWithZone=function(t,e){var r=this;return e||(e=new Bi({enableLongStackTrace:ct()})),e.run(function(){var n=si.resolveAndCreate([{provide:Bi,useValue:e}],r.injector),o=t.create(n),i=o.injector.get(Go,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.onDestroy(function(){return yt(r._modules,o)}),e.onError.subscribe({next:function(t){i.handleError(t)}}),mt(i,function(){var t=o.injector.get(li);return t.donePromise.then(function(){return r._moduleDoBootstrap(o),o})})})},e.prototype.bootstrapModule=function(t,e){return void 0===e&&(e=[]),this._bootstrapModuleWithZone(t,e)},e.prototype._bootstrapModuleWithZone=function(t,e,r){var n=this;void 0===e&&(e=[]);var o=this.injector.get(wi),i=o.createCompiler(Array.isArray(e)?e:[e]);return i.compileModuleAsync(t).then(function(t){return n._bootstrapModuleFactoryWithZone(t,r)})},e.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Ji);if(t.bootstrapFactories.length>0)t.bootstrapFactories.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+c(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},e}(Zi);Yi.decorators=[{type:Io}],Yi.ctorParameters=function(){return[{type:Uo}]};var Ji=function(){function t(){}return t.prototype.bootstrap=function(){},t.prototype.tick=function(){},t.prototype.componentTypes=function(){},t.prototype.components=function(){},t.prototype.attachView=function(){},t.prototype.detachView=function(){},t.prototype.viewCount=function(){},t.prototype.isStable=function(){},t}(),ts=function(t){function o(o,i,s,u,c,l){var p=t.call(this)||this;p._zone=o,p._console=i,p._injector=s,p._exceptionHandler=u,p._componentFactoryResolver=c,p._initStatus=l,p._bootstrapListeners=[],p._rootComponents=[],p._rootComponentTypes=[],p._views=[],p._runningTick=!1,p._enforceNoNewChanges=!1,p._stable=!0,p._enforceNoNewChanges=ct(),p._zone.onMicrotaskEmpty.subscribe({next:function(){p._zone.run(function(){p.tick()})}});var h=new e.Observable(function(t){p._stable=p._zone.isStable&&!p._zone.hasPendingMacrotasks&&!p._zone.hasPendingMicrotasks,p._zone.runOutsideAngular(function(){t.next(p._stable),t.complete()})}),f=new e.Observable(function(t){var e=p._zone.onStable.subscribe(function(){Bi.assertNotInAngularZone(),a(function(){p._stable||p._zone.hasPendingMacrotasks||p._zone.hasPendingMicrotasks||(p._stable=!0,t.next(!0))})}),r=p._zone.onUnstable.subscribe(function(){Bi.assertInAngularZone(),p._stable&&(p._stable=!1,p._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),r.unsubscribe()}});return p._isStable=r.merge(h,n.share.call(f)),p}return Zn(o,t),o.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},o.prototype.detachView=function(t){var e=t;yt(this._views,e),e.detachFromAppRef()},o.prototype.bootstrap=function(t){var e=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");var r;r=t instanceof Ei?t:this._componentFactoryResolver.resolveComponentFactory(t),this._rootComponentTypes.push(r.componentType);var n=r instanceof Mi?null:this._injector.get(Ri),o=r.create(Uo.NULL,[],r.selector,n);o.onDestroy(function(){e._unloadComponent(o)});var i=o.injector.get(Hi,null);return i&&o.injector.get(qi).registerApplication(o.location.nativeElement,i),this._loadComponent(o),ct()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},o.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this._rootComponents.push(t);var e=this._injector.get(mi,[]).concat(this._bootstrapListeners);e.forEach(function(e){return e(t)})},o.prototype._unloadComponent=function(t){this.detachView(t.hostView),yt(this._rootComponents,t);
 
-return this._optionMap.has(e)?this._optionMap.get(e)._value:t},t}();ut.decorators=[{type:e.Directive,args:[{selector:"select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]",host:{"(change)":"onChange($event.target)","(blur)":"onTouched()"},providers:[at]}]}],ut.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]},ut.propDecorators={compareWith:[{type:e.Input}]};var ct=function(){function t(t,e,r){this._element=t,this._renderer=e,this._select=r,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._value=t,this._setElementValue(g(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._select?(this._value=t,this._setElementValue(g(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setElementProperty(this._element.nativeElement,"value",t)},t.prototype._setSelected=function(t){this._renderer.setElementProperty(this._element.nativeElement,"selected",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap["delete"](this.id),this._select.writeValue(this._select.value))},t}();ct.decorators=[{type:e.Directive,args:[{selector:"option"}]}],ct.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer},{type:ut,decorators:[{type:e.Optional},{type:e.Host}]}]},ct.propDecorators={ngValue:[{type:e.Input,args:["ngValue"]}],value:[{type:e.Input,args:["value"]}]};var lt=[W,nt,Z,it,ut,et],pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return b(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return T(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return P(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(V),ht=function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return this._cd.control?this._cd.control.untouched:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return this._cd.control?this._cd.control.touched:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return this._cd.control?this._cd.control.pristine:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return this._cd.control?this._cd.control.dirty:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return this._cd.control?this._cd.control.valid:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return this._cd.control?this._cd.control.invalid:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return this._cd.control?this._cd.control.pending:!1},enumerable:!0,configurable:!0}),t}(),ft={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},dt=function(t){function e(e){return t.call(this,e)||this}return j(e,t),e}(ht);dt.decorators=[{type:e.Directive,args:[{selector:"[formControlName],[ngModel],[formControl]",host:ft}]}],dt.ctorParameters=function(){return[{type:Y,decorators:[{type:e.Self}]}]};var mt=function(t){function e(e){return t.call(this,e)||this}return j(e,t),e}(ht);mt.decorators=[{type:e.Directive,args:[{selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:ft}]}],mt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Self}]}]};var yt="VALID",vt="INVALID",gt="PENDING",_t="DISABLED",bt=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this._pristine=!0,this._touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this._status===yt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this._status===vt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this._status==gt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._status===_t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this._status!==_t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this._errors},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this._pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this._valueChanges},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this._statusChanges},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=k(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=I(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){var e=(void 0===t?{}:t).onlySelf;this._touched=!0,this._parent&&!e&&this._parent.markAsTouched({onlySelf:e})},t.prototype.markAsUntouched=function(t){var e=(void 0===t?{}:t).onlySelf;this._touched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!e&&this._parent._updateTouched({onlySelf:e})},t.prototype.markAsDirty=function(t){var e=(void 0===t?{}:t).onlySelf;this._pristine=!1,this._parent&&!e&&this._parent.markAsDirty({onlySelf:e})},t.prototype.markAsPristine=function(t){var e=(void 0===t?{}:t).onlySelf;this._pristine=!0,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!e&&this._parent._updatePristine({onlySelf:e})},t.prototype.markAsPending=function(t){var e=(void 0===t?{}:t).onlySelf;this._status=gt,this._parent&&!e&&this._parent.markAsPending({onlySelf:e})},t.prototype.disable=function(t){var e=void 0===t?{}:t,r=e.onlySelf,n=e.emitEvent;this._status=_t,this._errors=null,this._forEachChild(function(t){t.disable({onlySelf:!0})}),this._updateValue(),n!==!1&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._updateAncestors(!!r),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){var e=void 0===t?{}:t,r=e.onlySelf,n=e.emitEvent;this._status=yt,this._forEachChild(function(t){t.enable({onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n}),this._updateAncestors(!!r),this._onDisabledChange.forEach(function(t){return t(!1)})},t.prototype._updateAncestors=function(t){this._parent&&!t&&(this._parent.updateValueAndValidity(),this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.setValue=function(){},t.prototype.patchValue=function(){},t.prototype.reset=function(){},t.prototype.updateValueAndValidity=function(t){var e=void 0===t?{}:t,r=e.onlySelf,n=e.emitEvent;this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this._errors=this._runValidator(),this._status=this._calculateStatus(),(this._status===yt||this._status===gt)&&this._runAsyncValidator(n)),n!==!1&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._parent&&!r&&this._parent.updateValueAndValidity({onlySelf:r,emitEvent:n})},t.prototype._updateTreeValidity=function(t){var e=(void 0===t?{emitEvent:!0}:t).emitEvent;this._forEachChild(function(t){return t._updateTreeValidity({emitEvent:e})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e})},t.prototype._setInitialStatus=function(){this._status=this._allControlsDisabled()?_t:yt},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this._status=gt;var r=u(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(function(r){return e.setErrors(r,{emitEvent:t})})}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){var r=(void 0===e?{}:e).emitEvent;this._errors=t,this._updateControlsErrors(r!==!1)},t.prototype.get=function(t){return R(this,t,".")},t.prototype.getError=function(t,e){var r=e?this.get(e):this;return r&&r._errors?r._errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this._status=this._calculateStatus(),t&&this._statusChanges.emit(this._status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this._valueChanges=new e.EventEmitter,this._statusChanges=new e.EventEmitter},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?_t:this._errors?vt:this._anyControlsHaveStatus(gt)?gt:this._anyControlsHaveStatus(vt)?vt:yt},t.prototype._updateValue=function(){},t.prototype._forEachChild=function(){},t.prototype._anyControls=function(){},t.prototype._allControlsDisabled=function(){},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls(function(e){return e.status===t})},t.prototype._anyControlsDirty=function(){return this._anyControls(function(t){return t.dirty})},t.prototype._anyControlsTouched=function(){return this._anyControls(function(t){return t.touched})},t.prototype._updatePristine=function(t){var e=(void 0===t?{}:t).onlySelf;this._pristine=!this._anyControlsDirty(),this._parent&&!e&&this._parent._updatePristine({onlySelf:e})},t.prototype._updateTouched=function(t){var e=(void 0===t?{}:t).onlySelf;this._touched=this._anyControlsTouched(),this._parent&&!e&&this._parent._updateTouched({onlySelf:e})},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t}(),wt=function(t){function e(e,r,n){void 0===e&&(e=null);var o=t.call(this,k(r),I(n))||this;return o._onChange=[],o._applyFormState(e),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o._initObservables(),o}return j(e,t),e.prototype.setValue=function(t,e){var r=this,n=void 0===e?{}:e,o=n.onlySelf,i=n.emitEvent,s=n.emitModelToViewChange,a=n.emitViewToModelChange;this._value=t,this._onChange.length&&s!==!1&&this._onChange.forEach(function(t){return t(r._value,a!==!1)}),this.updateValueAndValidity({onlySelf:o,emitEvent:i})},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);var r=void 0===e?{}:e,n=r.onlySelf,o=r.emitEvent;this._applyFormState(t),this.markAsPristine({onlySelf:n}),this.markAsUntouched({onlySelf:n}),this.setValue(this._value,{onlySelf:n,emitEvent:o})},e.prototype._updateValue=function(){},e.prototype._anyControls=function(){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(){},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this._value=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this._value=t},e}(bt),Ct=function(t){function e(e,r,n){var o=t.call(this,r||null,n||null)||this;return o.controls=e,o._initObservables(),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return j(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var r=this,n=void 0===e?{}:e,o=n.onlySelf,i=n.emitEvent;this._checkAllValuesPresent(t),Object.keys(t).forEach(function(e){r._throwIfControlMissing(e),r.controls[e].setValue(t[e],{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:o,emitEvent:i})},e.prototype.patchValue=function(t,e){var r=this,n=void 0===e?{}:e,o=n.onlySelf,i=n.emitEvent;Object.keys(t).forEach(function(e){r.controls[e]&&r.controls[e].patchValue(t[e],{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:o,emitEvent:i})},e.prototype.reset=function(t,e){void 0===t&&(t={});var r=void 0===e?{}:e,n=r.onlySelf,o=r.emitEvent;this._forEachChild(function(e,r){e.reset(t[r],{onlySelf:!0,emitEvent:o})}),this.updateValueAndValidity({onlySelf:n,emitEvent:o}),this._updatePristine({onlySelf:n}),this._updateTouched({onlySelf:n})},e.prototype.getRawValue=function(){return this._reduceChildren({},function(t,e,r){return t[r]=e instanceof wt?e.value:e.getRawValue(),t})},e.prototype._throwIfControlMissing=function(t){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[t])throw new Error("Cannot find form control with name: "+t+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach(function(r){return t(e.controls[r],r)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})},e.prototype._updateValue=function(){this._value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,r=!1;return this._forEachChild(function(n,o){r=r||e.contains(o)&&t(n)}),r},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},function(e,r,n){return(r.enabled||t.disabled)&&(e[n]=r.value),e})},e.prototype._reduceChildren=function(t,e){var r=t;return this._forEachChild(function(t,n){r=e(r,t,n)}),r},e.prototype._allControlsDisabled=function(){for(var t=0,e=Object.keys(this.controls);t<e.length;t++){var r=e[t];if(this.controls[r].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,r){if(void 0===t[r])throw new Error("Must supply a value for form control with name: '"+r+"'.")})},e}(bt),Et=function(t){function e(e,r,n){var o=t.call(this,r||null,n||null)||this;return o.controls=e,o._initObservables(),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return j(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var r=this,n=void 0===e?{}:e,o=n.onlySelf,i=n.emitEvent;this._checkAllValuesPresent(t),t.forEach(function(t,e){r._throwIfControlMissing(e),r.at(e).setValue(t,{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:o,emitEvent:i})},e.prototype.patchValue=function(t,e){var r=this,n=void 0===e?{}:e,o=n.onlySelf,i=n.emitEvent;t.forEach(function(t,e){r.at(e)&&r.at(e).patchValue(t,{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:o,emitEvent:i})},e.prototype.reset=function(t,e){void 0===t&&(t=[]);var r=void 0===e?{}:e,n=r.onlySelf,o=r.emitEvent;this._forEachChild(function(e,r){e.reset(t[r],{onlySelf:!0,emitEvent:o})}),this.updateValueAndValidity({onlySelf:n,emitEvent:o}),this._updatePristine({onlySelf:n}),this._updateTouched({onlySelf:n})},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof wt?t.value:t.getRawValue()})},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,r){t(e,r)})},e.prototype._updateValue=function(){var t=this;this._value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,r){if(void 0===t[r])throw new Error("Must supply a value for form control at index: "+r+".")})},e.prototype._allControlsDisabled=function(){for(var t=0,e=this.controls;t<e.length;t++){var r=e[t];if(r.enabled)return!1}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(bt),St={provide:V,useExisting:e.forwardRef(function(){return Tt})},xt=Promise.resolve(null),Tt=function(t){function r(r,n){var o=t.call(this)||this;return o._submitted=!1,o.ngSubmit=new e.EventEmitter,o.form=new Ct({},T(r),P(n)),o}return j(r,t),Object.defineProperty(r.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),r.prototype.addControl=function(t){var e=this;xt.then(function(){var r=e._findContainer(t.path);t._control=r.registerControl(t.name,t.control),w(t.control,t),t.control.updateValueAndValidity({emitEvent:!1})})},r.prototype.getControl=function(t){return this.form.get(t.path)},r.prototype.removeControl=function(t){var e=this;xt.then(function(){var r=e._findContainer(t.path);r&&r.removeControl(t.name)})},r.prototype.addFormGroup=function(t){var e=this;xt.then(function(){var r=e._findContainer(t.path),n=new Ct({});E(n,t),r.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})},r.prototype.removeFormGroup=function(t){var e=this;xt.then(function(){var r=e._findContainer(t.path);r&&r.removeControl(t.name)})},r.prototype.getFormGroup=function(t){return this.form.get(t.path)},r.prototype.updateModel=function(t,e){var r=this;xt.then(function(){var n=r.form.get(t.path);n.setValue(e)})},r.prototype.setValue=function(t){this.control.setValue(t)},r.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},r.prototype.onReset=function(){this.resetForm()},r.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},r.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},r}(V);Tt.decorators=[{type:e.Directive,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]",providers:[St],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],Tt.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[H]}]}]};var Pt={formControlName:'\n    <div [formGroup]="myGroup">\n      <input formControlName="firstName">\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });',formGroupName:'\n    <div [formGroup]="myGroup">\n       <div formGroupName="person">\n          <input formControlName="firstName">\n       </div>\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });',formArrayName:'\n    <div [formGroup]="myGroup">\n      <div formArrayName="cities">\n        <div *ngFor="let city of cityArray.controls; index as i">\n          <input [formControlName]="i">\n        </div>\n      </div>\n    </div>\n\n    In your class:\n\n    this.cityArray = new FormArray([new FormControl(\'SF\')]);\n    this.myGroup = new FormGroup({\n      cities: this.cityArray\n    });',ngModelGroup:'\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>',ngModelWithFormGroup:'\n    <div [formGroup]="myGroup">\n       <input formControlName="firstName">\n       <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n    </div>\n  '},At=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      '+Pt.formControlName+"\n\n      Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n      Example:\n\n      "+Pt.ngModelWithFormGroup)},t.formGroupNameException=function(){throw new Error("\n      ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n      Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n      "+Pt.formGroupName+"\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      "+Pt.ngModelGroup)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n      control must be defined as \'standalone\' in ngModelOptions.\n\n      Example 1: <input [(ngModel)]="person.firstName" name="first">\n      Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},t.modelGroupParentException=function(){throw new Error("\n      ngModelGroup cannot be used with a parent formGroup directive.\n\n      Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n      "+Pt.formGroupName+"\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      "+Pt.ngModelGroup)},t}(),Ot={provide:V,useExisting:e.forwardRef(function(){return Mt})},Mt=function(t){function e(e,r,n){var o=t.call(this)||this;return o._parent=e,o._validators=r,o._asyncValidators=n,o}return j(e,t),e.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof Tt||At.modelGroupParentException()},e}(pt);Mt.decorators=[{type:e.Directive,args:[{selector:"[ngModelGroup]",providers:[Ot],exportAs:"ngModelGroup"}]}],Mt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[H]}]}]},Mt.propDecorators={name:[{type:e.Input,args:["ngModelGroup"]}]};var Rt={provide:Y,useExisting:e.forwardRef(function(){return It})},kt=Promise.resolve(null),It=function(t){function r(r,n,o,i){var s=t.call(this)||this;return s._control=new wt,s._registered=!1,s.update=new e.EventEmitter,s._parent=r,s._rawValidators=n||[],s._rawAsyncValidators=o||[],s.valueAccessor=M(s,i),s}return j(r,t),r.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),A(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},r.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(r.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"path",{get:function(){return this._parent?b(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"validator",{get:function(){return T(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"asyncValidator",{get:function(){return P(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),r.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},r.prototype._setUpControl=function(){this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},r.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},r.prototype._setUpStandalone=function(){w(this._control,this),this._control.updateValueAndValidity({emitEvent:!1})},r.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},r.prototype._checkParentType=function(){!(this._parent instanceof Mt)&&this._parent instanceof pt?At.formGroupNameException():this._parent instanceof Mt||this._parent instanceof Tt||At.modelParentException()},r.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||At.missingNameException()},r.prototype._updateValue=function(t){var e=this;kt.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},r.prototype._updateDisabled=function(t){var e=this,r=t.isDisabled.currentValue,n=""===r||r&&"false"!==r;kt.then(function(){n&&!e.control.disabled?e.control.disable():!n&&e.control.disabled&&e.control.enable()})},r}(Y);It.decorators=[{type:e.Directive,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[Rt],exportAs:"ngModel"}]}],It.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[H]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[z]}]}]},It.propDecorators={name:[{type:e.Input}],isDisabled:[{type:e.Input,args:["disabled"]}],model:[{type:e.Input,args:["ngModel"]}],options:[{type:e.Input,args:["ngModelOptions"]}],update:[{type:e.Output,args:["ngModelChange"]}]};var Nt=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      "+Pt.formControlName)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n       that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n       Option 1:  Update the parent to be formGroupName (reactive form strategy)\n\n        '+Pt.formGroupName+"\n\n        Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n        "+Pt.ngModelGroup)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n       Example:\n\n       "+Pt.formControlName)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive.  You'll want to add a formGroup\n      directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      "+Pt.formGroupName)},t.arrayParentException=function(){throw new Error("formArrayName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n        Example:\n\n        "+Pt.formArrayName)},t.disabledAttrWarning=function(){console.warn("\n      It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n      when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n      you. We recommend using this approach to avoid 'changed after checked' errors.\n       \n      Example: \n      form = new FormGroup({\n        first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n        last: new FormControl('Drew', Validators.required)\n      });\n    ")},t}(),Dt={provide:Y,useExisting:e.forwardRef(function(){return jt})},jt=function(t){function r(r,n,o){var i=t.call(this)||this;return i.update=new e.EventEmitter,i._rawValidators=r||[],i._rawAsyncValidators=n||[],i.valueAccessor=M(i,o),i}
-return j(r,t),Object.defineProperty(r.prototype,"isDisabled",{set:function(){Nt.disabledAttrWarning()},enumerable:!0,configurable:!0}),r.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&(w(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),A(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(r.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"validator",{get:function(){return T(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"asyncValidator",{get:function(){return P(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),r.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},r.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},r}(Y);jt.decorators=[{type:e.Directive,args:[{selector:"[formControl]",providers:[Dt],exportAs:"ngForm"}]}],jt.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[H]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[z]}]}]},jt.propDecorators={form:[{type:e.Input,args:["formControl"]}],model:[{type:e.Input,args:["ngModel"]}],update:[{type:e.Output,args:["ngModelChange"]}],isDisabled:[{type:e.Input,args:["disabled"]}]};var Lt={provide:V,useExisting:e.forwardRef(function(){return Vt})},Vt=function(t){function r(r,n){var o=t.call(this)||this;return o._validators=r,o._asyncValidators=n,o._submitted=!1,o.directives=[],o.form=null,o.ngSubmit=new e.EventEmitter,o}return j(r,t),r.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(r.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),r.prototype.addControl=function(t){var e=this.form.get(t.path);return w(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},r.prototype.getControl=function(t){return this.form.get(t.path)},r.prototype.removeControl=function(t){N(this.directives,t)},r.prototype.addFormGroup=function(t){var e=this.form.get(t.path);E(e,t),e.updateValueAndValidity({emitEvent:!1})},r.prototype.removeFormGroup=function(){},r.prototype.getFormGroup=function(t){return this.form.get(t.path)},r.prototype.addFormArray=function(t){var e=this.form.get(t.path);E(e,t),e.updateValueAndValidity({emitEvent:!1})},r.prototype.removeFormArray=function(){},r.prototype.getFormArray=function(t){return this.form.get(t.path)},r.prototype.updateModel=function(t,e){var r=this.form.get(t.path);r.setValue(e)},r.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},r.prototype.onReset=function(){this.resetForm()},r.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},r.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var r=t.form.get(e.path);e._control!==r&&(C(e._control,e),r&&w(r,e),e._control=r)}),this.form._updateTreeValidity({emitEvent:!1})},r.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},r.prototype._updateValidators=function(){var t=T(this._validators);this.form.validator=q.compose([this.form.validator,t]);var e=P(this._asyncValidators);this.form.asyncValidator=q.composeAsync([this.form.asyncValidator,e])},r.prototype._checkFormPresent=function(){this.form||Nt.missingFormException()},r}(V);Vt.decorators=[{type:e.Directive,args:[{selector:"[formGroup]",providers:[Lt],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],Vt.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[H]}]}]},Vt.propDecorators={form:[{type:e.Input,args:["formGroup"]}],ngSubmit:[{type:e.Output}]};var Ft={provide:V,useExisting:e.forwardRef(function(){return Ut})},Ut=function(t){function e(e,r,n){var o=t.call(this)||this;return o._parent=e,o._validators=r,o._asyncValidators=n,o}return j(e,t),e.prototype._checkParentType=function(){D(this._parent)&&Nt.groupParentException()},e}(pt);Ut.decorators=[{type:e.Directive,args:[{selector:"[formGroupName]",providers:[Ft]}]}],Ut.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[H]}]}]},Ut.propDecorators={name:[{type:e.Input,args:["formGroupName"]}]};var Ht={provide:V,useExisting:e.forwardRef(function(){return Bt})},Bt=function(t){function e(e,r,n){var o=t.call(this)||this;return o._parent=e,o._validators=r,o._asyncValidators=n,o}return j(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return b(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return T(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return P(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){D(this._parent)&&Nt.arrayParentException()},e}(V);Bt.decorators=[{type:e.Directive,args:[{selector:"[formArrayName]",providers:[Ht]}]}],Bt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[H]}]}]},Bt.propDecorators={name:[{type:e.Input,args:["formArrayName"]}]};var qt={provide:Y,useExisting:e.forwardRef(function(){return zt})},zt=function(t){function r(r,n,o,i){var s=t.call(this)||this;return s._added=!1,s.update=new e.EventEmitter,s._parent=r,s._rawValidators=n||[],s._rawAsyncValidators=o||[],s.valueAccessor=M(s,i),s}return j(r,t),Object.defineProperty(r.prototype,"isDisabled",{set:function(){Nt.disabledAttrWarning()},enumerable:!0,configurable:!0}),r.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),A(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},r.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},r.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(r.prototype,"path",{get:function(){return b(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"validator",{get:function(){return T(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"asyncValidator",{get:function(){return P(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),r.prototype._checkParentType=function(){!(this._parent instanceof Ut)&&this._parent instanceof pt?Nt.ngModelGroupException():this._parent instanceof Ut||this._parent instanceof Vt||this._parent instanceof Bt||Nt.controlParentException()},r.prototype._setUpControl=function(){this._checkParentType(),this._control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},r}(Y);zt.decorators=[{type:e.Directive,args:[{selector:"[formControlName]",providers:[qt]}]}],zt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[H]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[z]}]}]},zt.propDecorators={name:[{type:e.Input,args:["formControlName"]}],model:[{type:e.Input,args:["ngModel"]}],update:[{type:e.Output,args:["ngModelChange"]}],isDisabled:[{type:e.Input,args:["disabled"]}]};var Gt={provide:U,useExisting:e.forwardRef(function(){return $t}),multi:!0},Wt={provide:U,useExisting:e.forwardRef(function(){return Kt}),multi:!0},$t=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&t!==!1&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?q.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();$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}]};var Kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.validate=function(t){return this.required?q.requiredTrue(t):null},e}($t);Kt.decorators=[{type:e.Directive,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[Wt],host:{"[attr.required]":'required ? "" : null'}}]}],Kt.ctorParameters=function(){return[]};var Qt={provide:U,useExisting:e.forwardRef(function(){return Xt}),multi:!0},Xt=function(){function t(){}return Object.defineProperty(t.prototype,"email",{set:function(t){this._enabled=""===t||t===!0||"true"===t,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this._enabled?q.email(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();Xt.decorators=[{type:e.Directive,args:[{selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[Qt]}]}],Xt.ctorParameters=function(){return[]},Xt.propDecorators={email:[{type:e.Input}]};var Zt={provide:U,useExisting:e.forwardRef(function(){return Yt}),multi:!0},Yt=function(){function t(){}return t.prototype.ngOnChanges=function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null==this.minlength?null:this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=q.minLength(parseInt(this.minlength,10))},t}();Yt.decorators=[{type:e.Directive,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[Zt],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],Yt.ctorParameters=function(){return[]},Yt.propDecorators={minlength:[{type:e.Input}]};var Jt={provide:U,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=q.maxLength(parseInt(this.maxlength,10))},t}();te.decorators=[{type:e.Directive,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[Jt],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],te.ctorParameters=function(){return[]},te.propDecorators={maxlength:[{type:e.Input}]};var ee={provide:U,useExisting:e.forwardRef(function(){return re}),multi:!0},re=function(){function t(){}return t.prototype.ngOnChanges=function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=q.pattern(this.pattern)},t}();re.decorators=[{type:e.Directive,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[ee],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],re.ctorParameters=function(){return[]},re.propDecorators={pattern:[{type:e.Input}]};var ne=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var r=this._reduceControls(t),n=null!=e?e.validator:null,o=null!=e?e.asyncValidator:null;return new Ct(r,n,o)},t.prototype.control=function(t,e,r){return new wt(t,e,r)},t.prototype.array=function(t,e,r){var n=this,o=t.map(function(t){return n._createControl(t)});return new Et(o,e,r)},t.prototype._reduceControls=function(t){var e=this,r={};return Object.keys(t).forEach(function(n){r[n]=e._createControl(t[n])}),r},t.prototype._createControl=function(t){if(t instanceof wt||t instanceof Ct||t instanceof Et)return t;if(Array.isArray(t)){var e=t[0],r=t.length>1?t[1]:null,n=t.length>2?t[2]:null;return this.control(e,r,n)}return this.control(t)},t}();ne.decorators=[{type:e.Injectable}],ne.ctorParameters=function(){return[]};var oe=new e.Version("4.1.0"),ie=function(){function t(){}return t}();ie.decorators=[{type:e.Directive,args:[{selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}}]}],ie.ctorParameters=function(){return[]};var se=[ie,st,ct,Q,Z,nt,W,it,ut,et,dt,mt,$t,Yt,te,re,Kt,Xt],ae=[It,Mt,Tt],ue=[jt,Vt,zt,Ut,Bt],ce=function(){function t(){}return t}();ce.decorators=[{type:e.NgModule,args:[{declarations:se,exports:se}]}],ce.ctorParameters=function(){return[]};var le=function(){function t(){}return t}();le.decorators=[{type:e.NgModule,args:[{declarations:ae,providers:[tt],exports:[ce,ae]}]}],le.ctorParameters=function(){return[]};var pe=function(){function t(){}return t}();pe.decorators=[{type:e.NgModule,args:[{declarations:[ue],providers:[ne,tt],exports:[ce,ue]}]}],pe.ctorParameters=function(){return[]},t.AbstractControlDirective=L,t.AbstractFormGroupDirective=pt,t.CheckboxControlValueAccessor=W,t.ControlContainer=V,t.NG_VALUE_ACCESSOR=z,t.COMPOSITION_BUFFER_MODE=K,t.DefaultValueAccessor=Q,t.NgControl=Y,t.NgControlStatus=dt,t.NgControlStatusGroup=mt,t.NgForm=Tt,t.NgModel=It,t.NgModelGroup=Mt,t.RadioControlValueAccessor=et,t.FormControlDirective=jt,t.FormControlName=zt,t.FormGroupDirective=Vt,t.FormArrayName=Bt,t.FormGroupName=Ut,t.NgSelectOption=st,t.SelectControlValueAccessor=it,t.SelectMultipleControlValueAccessor=ut,t.CheckboxRequiredValidator=Kt,t.EmailValidator=Xt,t.MaxLengthValidator=te,t.MinLengthValidator=Yt,t.PatternValidator=re,t.RequiredValidator=$t,t.FormBuilder=ne,t.AbstractControl=bt,t.FormArray=Et,t.FormControl=wt,t.FormGroup=Ct,t.NG_ASYNC_VALIDATORS=H,t.NG_VALIDATORS=U,t.Validators=q,t.VERSION=oe,t.FormsModule=le,t.ReactiveFormsModule=pe,t.ɵba=ce,t.ɵz=ue,t.ɵx=se,t.ɵy=ae,t.ɵa=G,t.ɵb=$,t.ɵc=ht,t.ɵd=ft,t.ɵe=St,t.ɵf=Rt,t.ɵg=Ot,t.ɵbf=ie,t.ɵbb=X,t.ɵbc=Z,t.ɵh=J,t.ɵi=tt,t.ɵbd=rt,t.ɵbe=nt,t.ɵj=Dt,t.ɵk=qt,t.ɵl=Lt,t.ɵn=Ht,t.ɵm=Ft,t.ɵo=ot,t.ɵq=ct,t.ɵp=at,t.ɵs=Wt,t.ɵt=Qt,t.ɵv=Jt,t.ɵu=Zt,t.ɵw=ee,t.ɵr=Gt,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":8,"@angular/platform-browser":12,"rxjs/observable/forkJoin":34,"rxjs/observable/fromPromise":36,"rxjs/operator/map":46}],10:[function(e,r,n){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/core"),e("rxjs/Observable"),e("@angular/platform-browser")):"function"==typeof t&&t.amd?t(["exports","@angular/core","rxjs/Observable","@angular/platform-browser"],i):i((o.ng=o.ng||{},o.ng.http=o.ng.http||{}),o.ng.core,o.Rx,o.ng.platformBrowser)}(this,function(t,e,r,n){"use strict";function o(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return v.Get;case"POST":return v.Post;case"PUT":return v.Put;case"DELETE":return v.Delete;case"OPTIONS":return v.Options;case"HEAD":return v.Head;case"PATCH":return v.Patch}throw new Error('Invalid request method. The method "'+t+'" is not supported.')}function i(t){return"responseURL"in t?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}function s(t){for(var e=new Uint16Array(t.length),r=0,n=t.length;n>r;r++)e[r]=t.charCodeAt(r);return e.buffer}function a(t){void 0===t&&(t="");var e=new Map;if(t.length>0){var r=t.split("&");r.forEach(function(t){var r=t.indexOf("="),n=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)],o=n[0],i=n[1],s=e.get(o)||[];s.push(i),e.set(o,s)})}return e}function u(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function c(){var t="object"==typeof window?window:{};return null===D&&(D=t[N]={}),D}function l(t,e){return t.createConnection(e).response}function p(t,e,r,n){var o=t;return o.merge(e?new $({method:e.method||r,url:e.url||n,search:e.search,params:e.params,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType}):new $({method:r,url:n}))}function h(){return new G}function f(t,e){return new et(t,e)}function d(t,e){return new rt(t,e)}var m=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},y=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}();y.decorators=[{type:e.Injectable}],y.ctorParameters=function(){return[]};var v={};v.Get=0,v.Post=1,v.Put=2,v.Delete=3,v.Options=4,v.Head=5,v.Patch=6,v[v.Get]="Get",v[v.Post]="Post",v[v.Put]="Put",v[v.Delete]="Delete",v[v.Options]="Options",v[v.Head]="Head",v[v.Patch]="Patch";var g={};g.Unsent=0,g.Open=1,g.HeadersReceived=2,g.Loading=3,g.Done=4,g.Cancelled=5,g[g.Unsent]="Unsent",g[g.Open]="Open",g[g.HeadersReceived]="HeadersReceived",g[g.Loading]="Loading",g[g.Done]="Done",g[g.Cancelled]="Cancelled";var _={};_.Basic=0,_.Cors=1,_.Default=2,_.Error=3,_.Opaque=4,_[_.Basic]="Basic",_[_.Cors]="Cors",_[_.Default]="Default",_[_.Error]="Error",_[_.Opaque]="Opaque";var b={};b.NONE=0,b.JSON=1,b.FORM=2,b.FORM_DATA=3,b.TEXT=4,b.BLOB=5,b.ARRAY_BUFFER=6,b[b.NONE]="NONE",b[b.JSON]="JSON",b[b.FORM]="FORM",b[b.FORM_DATA]="FORM_DATA",b[b.TEXT]="TEXT",b[b.BLOB]="BLOB",b[b.ARRAY_BUFFER]="ARRAY_BUFFER";var w={};w.Text=0,w.Json=1,w.ArrayBuffer=2,w.Blob=3,w[w.Text]="Text",w[w.Json]="Json",w[w.ArrayBuffer]="ArrayBuffer",w[w.Blob]="Blob";var C=function(){function t(e){var r=this;return this._headers=new Map,this._normalizedNames=new Map,e?e instanceof t?void e.forEach(function(t,e){t.forEach(function(t){return r.append(e,t)})}):void Object.keys(e).forEach(function(t){var n=Array.isArray(e[t])?e[t]:[e[t]];r["delete"](t),n.forEach(function(e){return r.append(t,e)})}):void 0}return t.fromResponseHeaderString=function(e){var r=new t;return e.split("\n").forEach(function(t){var e=t.indexOf(":");if(e>0){var n=t.slice(0,e),o=t.slice(e+1).trim();r.set(n,o)}}),r},t.prototype.append=function(t,e){var r=this.getAll(t);null===r?this.set(t,e):r.push(e)},t.prototype["delete"]=function(t){var e=t.toLowerCase();this._normalizedNames["delete"](e),this._headers["delete"](e)},t.prototype.forEach=function(t){var e=this;this._headers.forEach(function(r,n){return t(r,e._normalizedNames.get(n),e._headers)})},t.prototype.get=function(t){var e=this.getAll(t);return null===e?null:e.length>0?e[0]:null},t.prototype.has=function(t){return this._headers.has(t.toLowerCase())},t.prototype.keys=function(){return Array.from(this._normalizedNames.values())},t.prototype.set=function(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)},t.prototype.values=function(){return Array.from(this._headers.values())},t.prototype.toJSON=function(){var t=this,e={};return this._headers.forEach(function(r,n){var o=[];r.forEach(function(t){return o.push.apply(o,t.split(","))}),e[t._normalizedNames.get(n)]=o}),e},t.prototype.getAll=function(t){return this.has(t)?this._headers.get(t.toLowerCase())||null:null},t.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},t.prototype.mayBeSetNormalizedName=function(t){var e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)},t}(),E=function(){function t(t){var e=void 0===t?{}:t,r=e.body,n=e.status,o=e.headers,i=e.statusText,s=e.type,a=e.url;this.body=null!=r?r:null,this.status=null!=n?n:null,this.headers=null!=o?o:null,this.statusText=null!=i?i:null,this.type=null!=s?s:null,this.url=null!=a?a:null}return t.prototype.merge=function(e){return new t({body:e&&null!=e.body?e.body:this.body,status:e&&null!=e.status?e.status:this.status,headers:e&&null!=e.headers?e.headers:this.headers,statusText:e&&null!=e.statusText?e.statusText:this.statusText,type:e&&null!=e.type?e.type:this.type,url:e&&null!=e.url?e.url:this.url})},t}(),S=function(t){function e(){return t.call(this,{status:200,statusText:"Ok",type:_.Default,headers:new C})||this}return m(e,t),e}(E);S.decorators=[{type:e.Injectable}],S.ctorParameters=function(){return[]};var x=function(){function t(){}return t.prototype.createConnection=function(){},t}(),T=function(){function t(){}return t}(),P=function(){function t(){}return t.prototype.configureRequest=function(){},t}(),A=function(t){return t>=200&&300>t},O=function(){function t(){}return t.prototype.encodeKey=function(t){return u(t)},t.prototype.encodeValue=function(t){return u(t)},t}(),M=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=new O),this.rawParams=t,this.queryEncoder=e,this.paramsMap=a(t)}return t.prototype.clone=function(){var e=new t("",this.queryEncoder);return e.appendAll(this),e},t.prototype.has=function(t){return this.paramsMap.has(t)},t.prototype.get=function(t){var e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null},t.prototype.getAll=function(t){return this.paramsMap.get(t)||[]},t.prototype.set=function(t,e){if(void 0===e||null===e)return void this["delete"](t);var r=this.paramsMap.get(t)||[];r.length=0,r.push(e),this.paramsMap.set(t,r)},t.prototype.setAll=function(t){var e=this;t.paramsMap.forEach(function(t,r){var n=e.paramsMap.get(r)||[];n.length=0,n.push(t[0]),e.paramsMap.set(r,n)})},t.prototype.append=function(t,e){if(void 0!==e&&null!==e){var r=this.paramsMap.get(t)||[];r.push(e),this.paramsMap.set(t,r)}},t.prototype.appendAll=function(t){var e=this;t.paramsMap.forEach(function(t,r){for(var n=e.paramsMap.get(r)||[],o=0;o<t.length;++o)n.push(t[o]);e.paramsMap.set(r,n)})},t.prototype.replaceAll=function(t){var e=this;t.paramsMap.forEach(function(t,r){var n=e.paramsMap.get(r)||[];n.length=0;for(var o=0;o<t.length;++o)n.push(t[o]);e.paramsMap.set(r,n)})},t.prototype.toString=function(){var t=this,e=[];return this.paramsMap.forEach(function(r,n){r.forEach(function(r){return e.push(t.queryEncoder.encodeKey(n)+"="+t.queryEncoder.encodeValue(r))})}),e.join("&")},t.prototype["delete"]=function(t){this.paramsMap["delete"](t)},t}(),R=function(){function t(){}return t.prototype.json=function(){return"string"==typeof this._body?JSON.parse(this._body):this._body instanceof ArrayBuffer?JSON.parse(this.text()):this._body},t.prototype.text=function(){return this._body instanceof M?this._body.toString():this._body instanceof ArrayBuffer?String.fromCharCode.apply(null,new Uint16Array(this._body)):null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()},t.prototype.arrayBuffer=function(){return this._body instanceof ArrayBuffer?this._body:s(this.text())},t.prototype.blob=function(){if(this._body instanceof Blob)return this._body;if(this._body instanceof ArrayBuffer)return new Blob([this._body]);throw new Error("The request body isn't either a blob or an array buffer")},t}(),k=function(t){function e(e){var r=t.call(this)||this;return r._body=e.body,r.status=e.status,r.ok=r.status>=200&&r.status<=299,r.statusText=e.statusText,r.headers=e.headers,r.type=e.type,r.url=e.url,r}return m(e,t),e.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},e}(R),I=0,N="__ng_jsonp__",D=null,j=function(){function t(){}return t.prototype.build=function(t){var e=document.createElement("script");return e.src=t,e},t.prototype.nextRequestID=function(){return"__req"+I++},t.prototype.requestCallback=function(t){return N+"."+t+".finished"},t.prototype.exposeConnection=function(t,e){var r=c();r[t]=e},t.prototype.removeConnection=function(t){var e=c();e[t]=null},t.prototype.send=function(t){document.body.appendChild(t)},t.prototype.cleanup=function(t){t.parentNode&&t.parentNode.removeChild(t)},t}();j.decorators=[{type:e.Injectable}],j.ctorParameters=function(){return[]};var L="JSONP injected script did not invoke callback.",V="JSONP requests must use GET request method.",F=function(){function t(){}return t.prototype.finished=function(){},t}(),U=function(t){function e(e,n,o){var i=t.call(this)||this;if(i._dom=n,i.baseResponseOptions=o,i._finished=!1,e.method!==v.Get)throw new TypeError(V);return i.request=e,i.response=new r.Observable(function(t){i.readyState=g.Loading;var r=i._id=n.nextRequestID();n.exposeConnection(r,i);var s=n.requestCallback(i._id),a=e.url;a.indexOf("=JSONP_CALLBACK&")>-1?a=a.replace("=JSONP_CALLBACK&","="+s+"&"):a.lastIndexOf("=JSONP_CALLBACK")===a.length-"=JSONP_CALLBACK".length&&(a=a.substring(0,a.length-"=JSONP_CALLBACK".length)+("="+s));var u=i._script=n.build(a),c=function(){if(i.readyState!==g.Cancelled){if(i.readyState=g.Done,n.cleanup(u),!i._finished){var e=new E({body:L,type:_.Error,url:a});return o&&(e=o.merge(e)),void t.error(new k(e))}var r=new E({body:i._responseData,url:a});i.baseResponseOptions&&(r=i.baseResponseOptions.merge(r)),t.next(new k(r)),t.complete()}},l=function(e){if(i.readyState!==g.Cancelled){i.readyState=g.Done,n.cleanup(u);var r=new E({body:e.message,type:_.Error});o&&(r=o.merge(r)),t.error(new k(r))}};return u.addEventListener("load",c),u.addEventListener("error",l),n.send(u),function(){i.readyState=g.Cancelled,u.removeEventListener("load",c),u.removeEventListener("error",l),i._dom.cleanup(u)}}),i}return m(e,t),e.prototype.finished=function(t){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==g.Cancelled&&(this._responseData=t)},e}(F),H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e}(x),B=function(t){function e(e,r){var n=t.call(this)||this;return n._browserJSONP=e,n._baseResponseOptions=r,n}return m(e,t),e.prototype.createConnection=function(t){return new U(t,this._browserJSONP,this._baseResponseOptions)},e}(H);B.decorators=[{type:e.Injectable}],B.ctorParameters=function(){return[{type:j},{type:E}]};var q=/^\)\]\}',?\n/,z=function(){function t(t,e,n){var o=this;this.request=t,this.response=new r.Observable(function(r){var s=e.build();s.open(v[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(s.withCredentials=t.withCredentials);var a=function(){var e=1223===s.status?204:s.status,o=null;204!==e&&(o="undefined"==typeof s.response?s.responseText:s.response,"string"==typeof o&&(o=o.replace(q,""))),0===e&&(e=o?200:0);var a=C.fromResponseHeaderString(s.getAllResponseHeaders()),u=i(s)||t.url,c=s.statusText||"OK",l=new E({body:o,status:e,headers:a,statusText:c,url:u});null!=n&&(l=n.merge(l));var p=new k(l);return p.ok=A(e),p.ok?(r.next(p),void r.complete()):void r.error(p)},u=function(t){var e=new E({body:t,type:_.Error,status:s.status,statusText:s.statusText});null!=n&&(e=n.merge(e)),r.error(new k(e))};if(o.setDetectedContentType(t,s),null==t.headers&&(t.headers=new C),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach(function(t,e){return s.setRequestHeader(e,t.join(","))}),null!=t.responseType&&null!=s.responseType)switch(t.responseType){case w.ArrayBuffer:s.responseType="arraybuffer";break;case w.Json:s.responseType="json";break;case w.Text:s.responseType="text";break;case w.Blob:s.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return s.addEventListener("load",a),s.addEventListener("error",u),s.send(o.request.getBody()),function(){s.removeEventListener("load",a),s.removeEventListener("error",u),s.abort()}})}return t.prototype.setDetectedContentType=function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case b.NONE:break;case b.JSON:e.setRequestHeader("content-type","application/json");break;case b.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case b.TEXT:e.setRequestHeader("content-type","text/plain");break;case b.BLOB:var r=t.blob();r.type&&e.setRequestHeader("content-type",r.type)}},t}(),G=function(){function t(t,e){void 0===t&&(t="XSRF-TOKEN"),void 0===e&&(e="X-XSRF-TOKEN"),this._cookieName=t,this._headerName=e}return t.prototype.configureRequest=function(t){var e=n.ɵgetDOM().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)},t}(),W=function(){function t(t,e,r){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=r}return t.prototype.createConnection=function(t){return this._xsrfStrategy.configureRequest(t),new z(t,this._browserXHR,this._baseResponseOptions)},t}();W.decorators=[{type:e.Injectable}],W.ctorParameters=function(){return[{type:y},{type:E},{type:P}]};var $=function(){function t(t){var e=void 0===t?{}:t,r=e.method,n=e.headers,i=e.body,s=e.url,a=e.search,u=e.params,c=e.withCredentials,l=e.responseType;this.method=null!=r?o(r):null,this.headers=null!=n?n:null,this.body=null!=i?i:null,this.url=null!=s?s:null,this.params=this._mergeSearchParams(u||a),this.withCredentials=null!=c?c:null,this.responseType=null!=l?l:null}return Object.defineProperty(t.prototype,"search",{get:function(){return this.params},set:function(t){this.params=t},enumerable:!0,configurable:!0}),t.prototype.merge=function(e){return new t({method:e&&null!=e.method?e.method:this.method,headers:e&&null!=e.headers?e.headers:new C(this.headers),body:e&&null!=e.body?e.body:this.body,url:e&&null!=e.url?e.url:this.url,params:e&&this._mergeSearchParams(e.params||e.search),withCredentials:e&&null!=e.withCredentials?e.withCredentials:this.withCredentials,responseType:e&&null!=e.responseType?e.responseType:this.responseType})},t.prototype._mergeSearchParams=function(t){return t?t instanceof M?t.clone():"string"==typeof t?new M(t):this._parseParams(t):this.params},t.prototype._parseParams=function(t){var e=this;
-void 0===t&&(t={});var r=new M;return Object.keys(t).forEach(function(n){var o=t[n];Array.isArray(o)?o.forEach(function(t){return e._appendParam(n,t,r)}):e._appendParam(n,o,r)}),r},t.prototype._appendParam=function(t,e,r){"string"!=typeof e&&(e=JSON.stringify(e)),r.append(t,e)},t}(),K=function(t){function e(){return t.call(this,{method:v.Get,headers:new C})||this}return m(e,t),e}($);K.decorators=[{type:e.Injectable}],K.ctorParameters=function(){return[]};var Q=function(t){function e(e){var r=t.call(this)||this,n=e.url;if(r.url=e.url,e.params){var i=e.params.toString();if(i.length>0){var s="?";-1!=r.url.indexOf("?")&&(s="&"==r.url[r.url.length-1]?"":"&"),r.url=n+s+i}}return r._body=e.body,r.method=o(e.method),r.headers=new C(e.headers),r.contentType=r.detectContentType(),r.withCredentials=e.withCredentials,r.responseType=e.responseType,r}return m(e,t),e.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return b.JSON;case"application/x-www-form-urlencoded":return b.FORM;case"multipart/form-data":return b.FORM_DATA;case"text/plain":case"text/html":return b.TEXT;case"application/octet-stream":return this._body instanceof tt?b.ARRAY_BUFFER:b.BLOB;default:return this.detectContentTypeFromBody()}},e.prototype.detectContentTypeFromBody=function(){return null==this._body?b.NONE:this._body instanceof M?b.FORM:this._body instanceof Y?b.FORM_DATA:this._body instanceof J?b.BLOB:this._body instanceof tt?b.ARRAY_BUFFER:this._body&&"object"==typeof this._body?b.JSON:b.TEXT},e.prototype.getBody=function(){switch(this.contentType){case b.JSON:return this.text();case b.FORM:return this.text();case b.FORM_DATA:return this._body;case b.TEXT:return this.text();case b.BLOB:return this.blob();case b.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},e}(R),X=function(){},Z="object"==typeof window?window:X,Y=Z.FormData||X,J=Z.Blob||X,tt=Z.ArrayBuffer||X,et=function(){function t(t,e){this._backend=t,this._defaultOptions=e}return t.prototype.request=function(t,e){var r;if("string"==typeof t)r=l(this._backend,new Q(p(this._defaultOptions,e,v.Get,t)));else{if(!(t instanceof Q))throw new Error("First argument must be a url string or Request instance.");r=l(this._backend,t)}return r},t.prototype.get=function(t,e){return this.request(new Q(p(this._defaultOptions,e,v.Get,t)))},t.prototype.post=function(t,e,r){return this.request(new Q(p(this._defaultOptions.merge(new $({body:e})),r,v.Post,t)))},t.prototype.put=function(t,e,r){return this.request(new Q(p(this._defaultOptions.merge(new $({body:e})),r,v.Put,t)))},t.prototype["delete"]=function(t,e){return this.request(new Q(p(this._defaultOptions,e,v.Delete,t)))},t.prototype.patch=function(t,e,r){return this.request(new Q(p(this._defaultOptions.merge(new $({body:e})),r,v.Patch,t)))},t.prototype.head=function(t,e){return this.request(new Q(p(this._defaultOptions,e,v.Head,t)))},t.prototype.options=function(t,e){return this.request(new Q(p(this._defaultOptions,e,v.Options,t)))},t}();et.decorators=[{type:e.Injectable}],et.ctorParameters=function(){return[{type:x},{type:$}]};var rt=function(t){function e(e,r){return t.call(this,e,r)||this}return m(e,t),e.prototype.request=function(t,e){var r;if("string"==typeof t&&(t=new Q(p(this._defaultOptions,e,v.Get,t))),!(t instanceof Q))throw new Error("First argument must be a url string or Request instance.");if(t.method!==v.Get)throw new Error("JSONP requests must use GET request method.");return r=l(this._backend,t)},e}(et);rt.decorators=[{type:e.Injectable}],rt.ctorParameters=function(){return[{type:x},{type:$}]};var nt=function(){function t(){}return t}();nt.decorators=[{type:e.NgModule,args:[{providers:[{provide:et,useFactory:f,deps:[W,$]},y,{provide:$,useClass:K},{provide:E,useClass:S},W,{provide:P,useFactory:h}]}]}],nt.ctorParameters=function(){return[]};var ot=function(){function t(){}return t}();ot.decorators=[{type:e.NgModule,args:[{providers:[{provide:rt,useFactory:d,deps:[H,$]},j,{provide:$,useClass:K},{provide:E,useClass:S},{provide:H,useClass:B}]}]}],ot.ctorParameters=function(){return[]};var it=new e.Version("4.1.0");t.BrowserXhr=y,t.JSONPBackend=H,t.JSONPConnection=F,t.CookieXSRFStrategy=G,t.XHRBackend=W,t.XHRConnection=z,t.BaseRequestOptions=K,t.RequestOptions=$,t.BaseResponseOptions=S,t.ResponseOptions=E,t.ReadyState=g,t.RequestMethod=v,t.ResponseContentType=w,t.ResponseType=_,t.Headers=C,t.Http=et,t.Jsonp=rt,t.HttpModule=nt,t.JsonpModule=ot,t.Connection=T,t.ConnectionBackend=x,t.XSRFStrategy=P,t.Request=Q,t.Response=k,t.QueryEncoder=O,t.URLSearchParams=M,t.VERSION=it,t.ɵg=j,t.ɵa=B,t.ɵf=R,t.ɵb=h,t.ɵc=f,t.ɵd=d,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":8,"@angular/platform-browser":12,"rxjs/Observable":17}],11:[function(e,r,n){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/compiler"),e("@angular/core"),e("@angular/common"),e("@angular/platform-browser")):"function"==typeof t&&t.amd?t(["exports","@angular/compiler","@angular/core","@angular/common","@angular/platform-browser"],i):i((o.ng=o.ng||{},o.ng.platformBrowserDynamic=o.ng.platformBrowserDynamic||{}),o.ng.compiler,o.ng.core,o.ng.common,o.ng.platformBrowser)}(this,function(t,e,r,n,o){"use strict";var i=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.get=function(t){var e,r,n=new Promise(function(t,n){e=t,r=n}),o=new XMLHttpRequest;return o.open("GET",t,!0),o.responseType="text",o.onload=function(){var n=o.response||o.responseText,i=1223===o.status?204:o.status;0===i&&(i=n?200:0),i>=200&&300>=i?e(n):r("Failed to load "+t)},o.onerror=function(){r("Failed to load "+t)},o.send(),n},e}(e.ResourceLoader);s.decorators=[{type:r.Injectable}],s.ctorParameters=function(){return[]};var a=[o.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS,{provide:r.COMPILER_OPTIONS,useValue:{providers:[{provide:e.ResourceLoader,useClass:s}]},multi:!0},{provide:r.PLATFORM_ID,useValue:n.ɵPLATFORM_BROWSER_ID}],u=function(t){function e(){var e=t.call(this)||this;if(e._cache=r.ɵglobal.$templateCache,null==e._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.");return e}return i(e,t),e.prototype.get=function(t){return this._cache.hasOwnProperty(t)?Promise.resolve(this._cache[t]):Promise.reject("CachedResourceLoader: Did not find cached template for "+t)},e}(e.ResourceLoader),c=new r.Version("4.1.0"),l=[{provide:e.ResourceLoader,useClass:u}],p=r.createPlatformFactory(e.platformCoreDynamic,"browserDynamic",a);t.RESOURCE_CACHE_PROVIDER=l,t.platformBrowserDynamic=p,t.VERSION=c,t.ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS=a,t.ɵResourceLoaderImpl=s,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":6,"@angular/compiler":7,"@angular/core":8,"@angular/platform-browser":12}],12:[function(e,r,n){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/common"),e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/common","@angular/core"],i):i((o.ng=o.ng||{},o.ng.platformBrowser=o.ng.platformBrowser||{}),o.ng.common,o.ng.core)}(this,function(t,e,r){"use strict";function n(){return L}function o(t){L||(L=t)}function i(){return W||(W=document.querySelector("base"))?W.getAttribute("href"):null}function s(t){return z||(z=document.createElement("a")),z.setAttribute("href",t),"/"===z.pathname.charAt(0)?z.pathname:"/"+z.pathname}function a(t,e){e=encodeURIComponent(e);for(var r=0,n=t.split(";");r<n.length;r++){var o=n[r],i=o.indexOf("="),s=-1==i?[o,""]:[o.slice(0,i),o.slice(i+1)],a=s[0],u=s[1];if(a.trim()===e)return decodeURIComponent(u)}return null}function u(t,e,r){for(var n=e.split("."),o=t;n.length>1;){var i=n.shift();o=o.hasOwnProperty(i)&&null!=o[i]?o[i]:o[i]={}}(void 0===o||null===o)&&(o={}),o[n.shift()]=r}function c(){return!!window.history.pushState}function l(t,e){var r=function(){var r=n(),o=Array.prototype.slice.apply(r.querySelectorAll(e,"style[ng-transition]"));o.filter(function(e){return r.getAttribute(e,"ng-transition")===t}).forEach(function(t){return r.remove(t)})};return r}function p(t){return r.getDebugNode(t)}function h(t,e){var r=(t||[]).concat(e||[]);return n().setGlobalVar(rt,p),n().setGlobalVar(nt,tt({},et,f(r||[]))),function(){return p}}function f(t){return t.reduce(function(t,e){return t[e.name]=e.token,t},{})}function d(t){return mt.replace(ht,t)}function m(t){return dt.replace(ht,t)}function y(t,e,r){for(var n=0;n<e.length;n++){var o=e[n];Array.isArray(o)?y(t,o,r):(o=o.replace(ht,t),r.push(o))}return r}function v(t){return function(e){var r=t(e);r===!1&&(e.preventDefault(),e.returnValue=!1)}}function g(t,e){if(t.charCodeAt(0)===gt)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}function _(t){return t=String(t),t.match(Ot)||t.match(Mt)?t:(r.isDevMode()&&n().log("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function b(t){return t=String(t),t.split(",").map(function(t){return _(t.trim())}).join(", ")}function w(){if(Rt)return Rt;kt=n();var t=kt.createElement("template");if("content"in t)return t;var e=kt.createHtmlDocument();if(Rt=kt.querySelector(e,"body"),null==Rt){var r=kt.createElement("html",e);Rt=kt.createElement("body",e),kt.appendChild(r,Rt),kt.appendChild(e,r)}return Rt}function C(t){for(var e={},r=0,n=t.split(",");r<n.length;r++){var o=n[r];e[o]=!0}return e}function E(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r={},n=0,o=t;n<o.length;n++){var i=o[n];for(var s in i)i.hasOwnProperty(s)&&(r[s]=!0)}return r}function S(t,e){if(e&&kt.contains(t,e))throw new Error("Failed to sanitize html because the element is clobbered: "+kt.getOuterHTML(t));return e}function x(t){return t.replace(/&/g,"&amp;").replace(Gt,function(t){var e=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+(1024*(e-55296)+(r-56320)+65536)+";"}).replace(Wt,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function T(t){kt.attributeMap(t).forEach(function(e,r){("xmlns:ns1"===r||0===r.indexOf("ns1:"))&&kt.removeAttribute(t,r)});for(var e=0,r=kt.childNodesAsList(t);e<r.length;e++){var n=r[e];kt.isElementNode(n)&&T(n)}}function P(t,e){try{var n=w(),o=e?String(e):"",i=5,s=o;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,o=s,kt.setInnerHTML(n,o),t.documentMode&&T(n),s=kt.getInnerHTML(n)}while(o!==s);for(var a=new zt,u=a.sanitizeChildren(kt.getTemplateContent(n)||n),c=kt.getTemplateContent(n)||n,l=0,p=kt.childNodesAsList(c);l<p.length;l++){var h=p[l];kt.removeChild(c,h)}return r.isDevMode()&&a.sanitizedSomething&&kt.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),u}catch(f){throw Rt=null,f}}function A(t){for(var e=!0,r=!0,n=0;n<t.length;n++){var o=t.charAt(n);"'"===o&&r?e=!e:'"'===o&&e&&(r=!r)}return e&&r}function O(t){if(t=String(t).trim(),!t)return"";var e=t.match(te);return e&&_(e[1])===e[1]||t.match(Jt)&&A(t)?t:(r.isDevMode()&&n().log("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}function M(){G.makeCurrent(),Y.init()}function R(){return new r.ErrorHandler}function k(){return document}function I(t){return n().setGlobalVar(ye,new me(t)),t}function N(){n().setGlobalVar(ye,null)}var D,j=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},L=null,V=function(){function t(){this.resourceLoaderType=null}return t.prototype.hasProperty=function(){},t.prototype.setProperty=function(){},t.prototype.getProperty=function(){},t.prototype.invoke=function(){},t.prototype.logError=function(){},t.prototype.log=function(){},t.prototype.logGroup=function(){},t.prototype.logGroupEnd=function(){},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t.prototype.contains=function(){},t.prototype.parse=function(){},t.prototype.querySelector=function(){},t.prototype.querySelectorAll=function(){},t.prototype.on=function(){},t.prototype.onAndCancel=function(){},t.prototype.dispatchEvent=function(){},t.prototype.createMouseEvent=function(){},t.prototype.createEvent=function(){},t.prototype.preventDefault=function(){},t.prototype.isPrevented=function(){},t.prototype.getInnerHTML=function(){},t.prototype.getTemplateContent=function(){},t.prototype.getOuterHTML=function(){},t.prototype.nodeName=function(){},t.prototype.nodeValue=function(){},t.prototype.type=function(){},t.prototype.content=function(){},t.prototype.firstChild=function(){},t.prototype.nextSibling=function(){},t.prototype.parentElement=function(){},t.prototype.childNodes=function(){},t.prototype.childNodesAsList=function(){},t.prototype.clearNodes=function(){},t.prototype.appendChild=function(){},t.prototype.removeChild=function(){},t.prototype.replaceChild=function(){},t.prototype.remove=function(){},t.prototype.insertBefore=function(){},t.prototype.insertAllBefore=function(){},t.prototype.insertAfter=function(){},t.prototype.setInnerHTML=function(){},t.prototype.getText=function(){},t.prototype.setText=function(){},t.prototype.getValue=function(){},t.prototype.setValue=function(){},t.prototype.getChecked=function(){},t.prototype.setChecked=function(){},t.prototype.createComment=function(){},t.prototype.createTemplate=function(){},t.prototype.createElement=function(){},t.prototype.createElementNS=function(){},t.prototype.createTextNode=function(){},t.prototype.createScriptTag=function(){},t.prototype.createStyleElement=function(){},t.prototype.createShadowRoot=function(){},t.prototype.getShadowRoot=function(){},t.prototype.getHost=function(){},t.prototype.getDistributedNodes=function(){},t.prototype.clone=function(){},t.prototype.getElementsByClassName=function(){},t.prototype.getElementsByTagName=function(){},t.prototype.classList=function(){},t.prototype.addClass=function(){},t.prototype.removeClass=function(){},t.prototype.hasClass=function(){},t.prototype.setStyle=function(){},t.prototype.removeStyle=function(){},t.prototype.getStyle=function(){},t.prototype.hasStyle=function(){},t.prototype.tagName=function(){},t.prototype.attributeMap=function(){},t.prototype.hasAttribute=function(){},t.prototype.hasAttributeNS=function(){},t.prototype.getAttribute=function(){},t.prototype.getAttributeNS=function(){},t.prototype.setAttribute=function(){},t.prototype.setAttributeNS=function(){},t.prototype.removeAttribute=function(){},t.prototype.removeAttributeNS=function(){},t.prototype.templateAwareRoot=function(){},t.prototype.createHtmlDocument=function(){},t.prototype.getBoundingClientRect=function(){},t.prototype.getTitle=function(){},t.prototype.setTitle=function(){},t.prototype.elementMatches=function(){},t.prototype.isTemplateElement=function(){},t.prototype.isTextNode=function(){},t.prototype.isCommentNode=function(){},t.prototype.isElementNode=function(){},t.prototype.hasShadowRoot=function(){},t.prototype.isShadowRoot=function(){},t.prototype.importIntoDoc=function(){},t.prototype.adoptNode=function(){},t.prototype.getHref=function(){},t.prototype.getEventKey=function(){},t.prototype.resolveAndSetHref=function(){},t.prototype.supportsDOMEvents=function(){},t.prototype.supportsNativeShadowDOM=function(){},t.prototype.getGlobalEventTarget=function(){},t.prototype.getHistory=function(){},t.prototype.getLocation=function(){},t.prototype.getBaseHref=function(){},t.prototype.resetBaseElement=function(){},t.prototype.getUserAgent=function(){},t.prototype.setData=function(){},t.prototype.getComputedStyle=function(){},t.prototype.getData=function(){},t.prototype.setGlobalVar=function(){},t.prototype.supportsWebAnimation=function(){},t.prototype.performanceNow=function(){},t.prototype.getAnimationPrefix=function(){},t.prototype.getTransitionEnd=function(){},t.prototype.supportsAnimation=function(){},t.prototype.supportsCookies=function(){},t.prototype.getCookie=function(){},t.prototype.setCookie=function(){},t}(),F=function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var r=e.createElement("div",document);if(null!=e.getStyle(r,"animationName"))e._animationPrefix="";else for(var n=["Webkit","Moz","O","ms"],o=0;o<n.length;o++)if(null!=e.getStyle(r,n[o]+"AnimationName")){e._animationPrefix="-"+n[o].toLowerCase()+"-";break}var i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(i).forEach(function(t){null!=e.getStyle(r,t)&&(e._transitionEnd=i[t])})}catch(s){e._animationPrefix=null,e._transitionEnd=null}return e}return j(e,t),e.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},e.prototype.resolveAndSetHref=function(t,e,r){t.href=null==r?e:e+"/../"+r},e.prototype.supportsDOMEvents=function(){return!0},e.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},e.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},e.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},e.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},e}(V),U={"class":"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},H=3,B={"\b":"Backspace","	":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},q={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"};r.ɵglobal.Node&&(D=r.ɵglobal.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var z,G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.parse=function(){throw new Error("parse not implemented")},e.makeCurrent=function(){o(new e)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,r){t[e]=r},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,r){t[e].apply(t,r)},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return U},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return D.call(t,e)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,r){t.addEventListener(e,r,!1)},e.prototype.onAndCancel=function(t,e,r){return t.addEventListener(e,r,!1),function(){t.removeEventListener(e,r,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=document.createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&t instanceof HTMLTemplateElement?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,r=new Array(e.length),n=0;n<e.length;n++)r[n]=e[n];return r},e.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},e.prototype.appendChild=function(t,e){t.appendChild(e)},e.prototype.removeChild=function(t,e){t.removeChild(e)},e.prototype.replaceChild=function(t,e,r){t.replaceChild(e,r)},e.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},e.prototype.insertBefore=function(t,e,r){t.insertBefore(r,e)},e.prototype.insertAllBefore=function(t,e,r){r.forEach(function(r){return t.insertBefore(r,e)})},e.prototype.insertAfter=function(t,e,r){t.insertBefore(r,e.nextSibling)},e.prototype.setInnerHTML=function(t,e){t.innerHTML=e},e.prototype.getText=function(t){return t.textContent},e.prototype.setText=function(t,e){t.textContent=e},e.prototype.getValue=function(t){return t.value},e.prototype.setValue=function(t,e){t.value=e},e.prototype.getChecked=function(t){return t.checked},e.prototype.setChecked=function(t,e){t.checked=e},e.prototype.createComment=function(t){return document.createComment(t)},e.prototype.createTemplate=function(t){var e=document.createElement("template");return e.innerHTML=t,e},e.prototype.createElement=function(t,e){return void 0===e&&(e=document),e.createElement(t)},e.prototype.createElementNS=function(t,e,r){return void 0===r&&(r=document),r.createElementNS(t,e)},e.prototype.createTextNode=function(t,e){return void 0===e&&(e=document),e.createTextNode(t)},e.prototype.createScriptTag=function(t,e,r){void 0===r&&(r=document);var n=r.createElement("SCRIPT");return n.setAttribute(t,e),n},e.prototype.createStyleElement=function(t,e){void 0===e&&(e=document);var r=e.createElement("style");return this.appendChild(r,this.createTextNode(t)),r},e.prototype.createShadowRoot=function(t){return t.createShadowRoot()},e.prototype.getShadowRoot=function(t){return t.shadowRoot},e.prototype.getHost=function(t){return t.host},e.prototype.clone=function(t){return t.cloneNode(!0)},e.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},e.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},e.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},e.prototype.addClass=function(t,e){t.classList.add(e)},e.prototype.removeClass=function(t,e){t.classList.remove(e)},e.prototype.hasClass=function(t,e){return t.classList.contains(e)},e.prototype.setStyle=function(t,e,r){t.style[e]=r},e.prototype.removeStyle=function(t,e){t.style[e]=""},e.prototype.getStyle=function(t,e){return t.style[e]},e.prototype.hasStyle=function(t,e,r){var n=this.getStyle(t,e)||"";return r?n==r:n.length>0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,r=t.attributes,n=0;n<r.length;n++){var o=r[n];e.set(o.name,o.value)}return e},e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},e.prototype.hasAttributeNS=function(t,e,r){return t.hasAttributeNS(e,r)},e.prototype.getAttribute=function(t,e){return t.getAttribute(e)},e.prototype.getAttributeNS=function(t,e,r){return t.getAttributeNS(e,r)},e.prototype.setAttribute=function(t,e,r){t.setAttribute(e,r)},e.prototype.setAttributeNS=function(t,e,r,n){t.setAttributeNS(e,r,n)},e.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},e.prototype.removeAttributeNS=function(t,e,r){t.removeAttributeNS(e,r)},e.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},e.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},e.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(e){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},e.prototype.getTitle=function(){return document.title},e.prototype.setTitle=function(t,e){document.title=e||""},e.prototype.elementMatches=function(t,e){return t instanceof HTMLElement?t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e):!1},e.prototype.isTemplateElement=function(t){return t instanceof HTMLElement&&"TEMPLATE"==t.nodeName},e.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},e.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},e.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},e.prototype.hasShadowRoot=function(t){return null!=t.shadowRoot&&t instanceof HTMLElement},e.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},e.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},e.prototype.adoptNode=function(t){return document.adoptNode(t)},e.prototype.getHref=function(t){return t.href},e.prototype.getEventKey=function(t){var e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),t.location===H&&q.hasOwnProperty(e)&&(e=q[e]))}return B[e]||e},e.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?document:"body"===e?document.body:null},e.prototype.getHistory=function(){return window.history},e.prototype.getLocation=function(){return window.location},e.prototype.getBaseHref=function(){var t=i();return null==t?null:s(t)},e.prototype.resetBaseElement=function(){W=null},e.prototype.getUserAgent=function(){return window.navigator.userAgent},e.prototype.setData=function(t,e,r){this.setAttribute(t,"data-"+e,r)},e.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},e.prototype.getComputedStyle=function(t){return getComputedStyle(t)},e.prototype.setGlobalVar=function(t,e){u(r.ɵglobal,t,e)},e.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},e.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},e.prototype.supportsCookies=function(){return!0},e.prototype.getCookie=function(t){return a(document.cookie,t)},e.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},e}(F),W=null,$=new r.InjectionToken("DocumentToken"),K=function(t){function e(e){var r=t.call(this)||this;return r._doc=e,r._init(),r}return j(e,t),e.prototype._init=function(){this._location=n().getLocation(),this._history=n().getHistory()},Object.defineProperty(e.prototype,"location",{get:function(){return this._location},enumerable:!0,configurable:!0}),e.prototype.getBaseHrefFromDOM=function(){return n().getBaseHref(this._doc)},e.prototype.onPopState=function(t){n().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){n().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"pathname",{get:function(){return this._location.pathname},set:function(t){this._location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this._location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this._location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,r){c()?this._history.pushState(t,e,r):this._location.hash=r},e.prototype.replaceState=function(t,e,r){c()?this._history.replaceState(t,e,r):this._location.hash=r},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e}(e.PlatformLocation);K.decorators=[{type:r.Injectable}],K.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]}]};var Q=function(){function t(t){this._doc=t,this._dom=n()}return t.prototype.addTag=function(t,e){return void 0===e&&(e=!1),t?this._getOrCreateElement(t,e):null},t.prototype.addTags=function(t,e){var r=this;return void 0===e&&(e=!1),t?t.reduce(function(t,n){return n&&t.push(r._getOrCreateElement(n,e)),t},[]):[]},t.prototype.getTag=function(t){return t?this._dom.querySelector(this._doc,"meta["+t+"]"):null},t.prototype.getTags=function(t){if(!t)return[];var e=this._dom.querySelectorAll(this._doc,"meta["+t+"]");return e?[].slice.call(e):[]},t.prototype.updateTag=function(t,e){if(!t)return null;e=e||this._parseSelector(t);var r=this.getTag(e);return r?this._setMetaElementAttributes(t,r):this._getOrCreateElement(t,!0)},t.prototype.removeTag=function(t){this.removeTagElement(this.getTag(t))},t.prototype.removeTagElement=function(t){t&&this._dom.remove(t)},t.prototype._getOrCreateElement=function(t,e){if(void 0===e&&(e=!1),!e){var r=this._parseSelector(t),n=this.getTag(r);if(n&&this._containsAttributes(t,n))return n}var o=this._dom.createElement("meta");this._setMetaElementAttributes(t,o);var i=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(i,o),o},t.prototype._setMetaElementAttributes=function(t,e){var r=this;return Object.keys(t).forEach(function(n){return r._dom.setAttribute(e,n,t[n])}),e},t.prototype._parseSelector=function(t){var e=t.name?"name":"property";return e+'="'+t[e]+'"'},t.prototype._containsAttributes=function(t,e){var r=this;return Object.keys(t).every(function(n){return r._dom.getAttribute(e,n)===t[n]})},t}();Q.decorators=[{type:r.Injectable}],Q.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]}]};var X=new r.InjectionToken("TRANSITION_ID"),Z=[{provide:r.APP_INITIALIZER,useFactory:l,deps:[X,$],multi:!0}],Y=function(){function t(){}return t.init=function(){r.setTestabilityGetter(new t)},t.prototype.addToWindow=function(t){r.ɵglobal.getAngularTestability=function(e,r){void 0===r&&(r=!0);var n=t.findTestabilityInTree(e,r);if(null==n)throw new Error("Could not find testability for element.");return n},r.ɵglobal.getAllAngularTestabilities=function(){return t.getAllTestabilities()},r.ɵglobal.getAllAngularRootElements=function(){return t.getAllRootElements()};var e=function(t){var e=r.ɵglobal.getAllAngularTestabilities(),n=e.length,o=!1,i=function(e){o=o||e,n--,0==n&&t(o)};e.forEach(function(t){t.whenStable(i)})};r.ɵglobal.frameworkStabilizers||(r.ɵglobal.frameworkStabilizers=[]),r.ɵglobal.frameworkStabilizers.push(e)},t.prototype.findTestabilityInTree=function(t,e,r){if(null==e)return null;var o=t.getTestability(e);return null!=o?o:r?n().isShadowRoot(e)?this.findTestabilityInTree(t,n().getHost(e),!0):this.findTestabilityInTree(t,n().parentElement(e),!0):null},t}(),J=function(){function t(t){this._doc=t}return t.prototype.getTitle=function(){return n().getTitle(this._doc)},t.prototype.setTitle=function(t){n().setTitle(this._doc,t)},t}();J.decorators=[{type:r.Injectable}],J.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]}]};var tt=void 0||Object.assign||function(t){for(var e,r=1,n=arguments.length;n>r;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},et={ApplicationRef:r.ApplicationRef,NgZone:r.NgZone},rt="ng.probe",nt="ng.coreTokens",ot=function(){function t(t,e){this.name=t,this.token=e}return t}(),it=[{provide:r.APP_INITIALIZER,useFactory:h,deps:[[ot,new r.Optional],[r.NgProbeToken,new r.Optional]],multi:!0}],st=new r.InjectionToken("EventManagerPlugins"),at=function(){function t(t,e){var r=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=r}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,r){var n=this._findPluginFor(e);
+},o.prototype.tick=function(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var t=o._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}finally{this._runningTick=!1,Li(t)}},o.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(o.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),o}(Ji);ts._tickScope=ji("ApplicationRef#tick()"),ts.decorators=[{type:Io}],ts.ctorParameters=function(){return[{type:Bi},{type:vi},{type:Uo},{type:Go},{type:Ti},{type:li}]};var es=function(){function t(t,e,r,n,o,i){this.id=t,this.templateUrl=e,this.slotCount=r,this.encapsulation=n,this.styles=o,this.animations=i}return t}(),rs=function(){function t(){}return t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.source=function(){},t}(),ns=function(){function t(){}return t.prototype.selectRootElement=function(){},t.prototype.createElement=function(){},t.prototype.createViewRoot=function(){},t.prototype.createTemplateAnchor=function(){},t.prototype.createText=function(){},t.prototype.projectNodes=function(){},t.prototype.attachViewAfter=function(){},t.prototype.detachView=function(){},t.prototype.destroyView=function(){},t.prototype.listen=function(){},t.prototype.listenGlobal=function(){},t.prototype.setElementProperty=function(){},t.prototype.setElementAttribute=function(){},t.prototype.setBindingDebugInfo=function(){},t.prototype.setElementClass=function(){},t.prototype.setElementStyle=function(){},t.prototype.invokeElementMethod=function(){},t.prototype.setText=function(){},t.prototype.animate=function(){},t}(),os=(new Jn("Renderer2Interceptor"),function(){function t(){}return t.prototype.renderComponent=function(){},t}()),is=function(){function t(){}return t.prototype.createRenderer=function(){},t}(),ss={};ss.Important=1,ss.DashCase=2,ss[ss.Important]="Important",ss[ss.DashCase]="DashCase";var as=function(){function t(){}return t.prototype.data=function(){},t.prototype.destroy=function(){},t.prototype.createElement=function(){},t.prototype.createComment=function(){},t.prototype.createText=function(){},t.prototype.appendChild=function(){},t.prototype.insertBefore=function(){},t.prototype.removeChild=function(){},t.prototype.selectRootElement=function(){},t.prototype.parentNode=function(){},t.prototype.nextSibling=function(){},t.prototype.setAttribute=function(){},t.prototype.removeAttribute=function(){},t.prototype.addClass=function(){},t.prototype.removeClass=function(){},t.prototype.setStyle=function(){},t.prototype.removeStyle=function(){},t.prototype.setProperty=function(){},t.prototype.setValue=function(){},t.prototype.listen=function(){},t}(),us=function(){function t(t){this.nativeElement=t}return t}(),cs=function(){function t(){}return t.prototype.load=function(){},t}(),ls=new Map,ps=function(){function t(){this._dirty=!0,this._results=[],this._emitter=new Ui}return Object.defineProperty(t.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[s()]=function(){return this._results[s()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=_t(t),this._dirty=!1},t.prototype.notifyOnChanges=function(){this._emitter.emit(this)},t.prototype.setDirty=function(){this._dirty=!0},Object.defineProperty(t.prototype,"dirty",{get:function(){return this._dirty},enumerable:!0,configurable:!0}),t}(),hs="#",fs="NgFactory",ds=function(){function t(){}return t}(),ms={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},ys=function(){function t(t,e){this._compiler=t,this._config=e||ms}return t.prototype.load=function(t){var e=this._compiler instanceof _i;return e?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=t.split(hs),n=r[0],o=r[1];return void 0===o&&(o="default"),System["import"](n).then(function(t){return t[o]}).then(function(t){return bt(t,n,o)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split(hs),r=e[0],n=e[1],o=fs;return void 0===n&&(n="default",o=""),System["import"](this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[n+o]}).then(function(t){return bt(t,r,n)})},t}();ys.decorators=[{type:Io}],ys.ctorParameters=function(){return[{type:_i},{type:ds,decorators:[{type:ko}]}]};var vs=function(){function t(){}return t.prototype.elementRef=function(){},t.prototype.createEmbeddedView=function(){},t}(),gs=function(){function t(){}return t.prototype.element=function(){},t.prototype.injector=function(){},t.prototype.parentInjector=function(){},t.prototype.clear=function(){},t.prototype.get=function(){},t.prototype.length=function(){},t.prototype.createEmbeddedView=function(){},t.prototype.createComponent=function(){},t.prototype.insert=function(){},t.prototype.move=function(){},t.prototype.indexOf=function(){},t.prototype.remove=function(){},t.prototype.detach=function(){},t}(),_s=function(){function t(){}return t.prototype.markForCheck=function(){},t.prototype.detach=function(){},t.prototype.detectChanges=function(){},t.prototype.checkNoChanges=function(){},t.prototype.reattach=function(){},t}(),bs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.destroy=function(){},e.prototype.destroyed=function(){},e.prototype.onDestroy=function(){},e}(_s),ws=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.context=function(){},e.prototype.rootNodes=function(){},e}(bs),Cs=function(){function t(t,e){this.name=t,this.callback=e}return t}(),Es=function(){function t(t,e,r){this._debugContext=r,this.nativeNode=t,e&&e instanceof Ss?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"source",{get:function(){return"Deprecated since v4"},enumerable:!0,configurable:!0}),t}(),Ss=function(t){function e(e,r,n){var o=t.call(this,e,r,n)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return Zn(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var r=this,n=this.childNodes.indexOf(t);-1!==n&&((o=this.childNodes).splice.apply(o,[n+1,0].concat(e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=r}));var o},e.prototype.insertBefore=function(t,e){var r=this.childNodes.indexOf(t);-1===r?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(r,0,e))},e.prototype.query=function(t){var e=this.queryAll(t);return e[0]||null},e.prototype.queryAll=function(t){var e=[];return Ct(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return Et(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(r){r.name==t&&r.callback(e)})},e}(Es),xs=new Map,Ts=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t}(),Ps=function(){function t(){this.hasWrappedValue=!1}return t.prototype.unwrap=function(t){return t instanceof Ts?(this.hasWrappedValue=!0,t.wrapped):t},t.prototype.reset=function(){this.hasWrappedValue=!1},t}(),As=function(){function t(t,e,r){this.previousValue=t,this.currentValue=e,this.firstChange=r}return t.prototype.isFirstChange=function(){return this.firstChange},t}(),Os=function(){function t(){}return t.prototype.supports=function(t){return At(t)},t.prototype.create=function(t,e){return new Rs(e||t)},t}(),Ms=function(t,e){return e},Rs=function(){function t(t){this._length=0,this._collection=null,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Ms}return Object.defineProperty(t.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,r=this._removalsHead,n=0,o=null;e||r;){var i=!r||e&&e.currentIndex<kt(r,n,o)?e:r,s=kt(i,n,o),a=i.currentIndex;if(i===r)n--,r=r._nextRemoved;else if(e=e._next,null==i.previousIndex)n++;else{o||(o=[]);var u=s-n,c=a-n;if(u!=c){for(var l=0;u>l;l++){var p=l<o.length?o[l]:o[l]=0,h=p+l;h>=c&&u>h&&(o[l]=p+1)}var f=i.previousIndex;o[f]=c-u}}s!==a&&t(i,s,a)}},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachMovedItem=function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.forEachIdentityChange=function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)},t.prototype.diff=function(t){if(null==t&&(t=[]),!At(t))throw new Error("Error trying to diff '"+c(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var r,n,o,i=this._itHead,s=!1;if(Array.isArray(t)){this._length=t.length;for(var a=0;a<this._length;a++)n=t[a],o=this._trackByFn(a,n),null!==i&&u(i.trackById,o)?(s&&(i=this._verifyReinsertion(i,n,o,a)),u(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,o,a),s=!0),i=i._next}else r=0,Mt(t,function(t){o=e._trackByFn(r,t),null!==i&&u(i.trackById,o)?(s&&(i=e._verifyReinsertion(i,t,o,r)),u(i.item,t)||e._addIdentityChange(i,t)):(i=e._mismatch(i,t,o,r),s=!0),i=i._next,r++}),this._length=r;return this._truncate(i),this._collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,r,n){var o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),t=null===this._linkedRecords?null:this._linkedRecords.get(r,n),null!==t?(u(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,n)):(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null),null!==t?(u(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,n)):t=this._addAfter(new ks(e,r),o,n)),t},t.prototype._verifyReinsertion=function(t,e,r,n){var o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?t=this._reinsertAfter(o,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,e,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var n=t._prevRemoved,o=t._nextRemoved;return null===n?this._removalsHead=o:n._nextRemoved=o,null===o?this._removalsTail=n:o._prevRemoved=n,this._insertAfter(t,e,r),this._addToMoves(t,r),t},t.prototype._moveAfter=function(t,e,r){return this._unlink(t),this._insertAfter(t,e,r),this._addToMoves(t,r),t},t.prototype._addAfter=function(t,e,r){return this._insertAfter(t,e,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,r){var n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ns),this._linkedRecords.put(t),t.currentIndex=r,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,r=t._next;return null===e?this._itHead=r:e._next=r,null===r?this._itTail=e:r._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ns),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,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t},t.prototype.toString=function(){var t=[];this.forEachItem(function(e){return t.push(e)});var e=[];this.forEachPreviousItem(function(t){return e.push(t)});var r=[];this.forEachAddedItem(function(t){return r.push(t)});var n=[];this.forEachMovedItem(function(t){return n.push(t)});var o=[];this.forEachRemovedItem(function(t){return o.push(t)});var i=[];return this.forEachIdentityChange(function(t){return i.push(t)}),"collection: "+t.join(", ")+"\nprevious: "+e.join(", ")+"\nadditions: "+r.join(", ")+"\nmoves: "+n.join(", ")+"\nremovals: "+o.join(", ")+"\nidentityChanges: "+i.join(", ")+"\n"},t}(),ks=function(){function t(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}return t.prototype.toString=function(){return this.previousIndex===this.currentIndex?c(this.item):c(this.item)+"["+c(this.previousIndex)+"->"+c(this.currentIndex)+"]"},t}(),Is=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var r;for(r=this._head;null!==r;r=r._nextDup)if((null===e||e<r.currentIndex)&&u(r.trackById,t))return r;return null},t.prototype.remove=function(t){var e=t._prevDup,r=t._nextDup;return null===e?this._head=r:e._nextDup=r,null===r?this._tail=e:r._prevDup=e,null===this._head},t}(),Ns=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,r=this.map.get(e);r||(r=new Is,this.map.set(e,r)),r.add(t)},t.prototype.get=function(t,e){var r=t,n=this.map.get(r);return n?n.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById,r=this.map.get(e);return r.remove(t)&&this.map["delete"](e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t.prototype.toString=function(){return"_DuplicateMap("+c(this.map)+")"},t}(),Ds=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||Rt(t)},t.prototype.create=function(){return new js},t}(),js=function(){function t(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||Rt(t)))throw new Error("Error trying to diff '"+c(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var r=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(t,n){if(r&&r.key===n)e._maybeAddToChanges(r,t),e._appendAfter=r,r=r._next;else{var o=e._getOrCreateRecordForKey(n,t);r=e._insertBeforeOrAppend(r,o)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(var n=r;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records["delete"](n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},t.prototype._insertBeforeOrAppend=function(t,e){if(t){var r=t._prev;return e._next=t,e._prev=r,t._prev=e,r&&(r._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null},t.prototype._getOrCreateRecordForKey=function(t,e){if(this._records.has(t)){var r=this._records.get(t);this._maybeAddToChanges(r,e);var n=r._prev,o=r._next;return n&&(n._next=o),o&&(o._prev=n),r._next=null,r._prev=null,r}var i=new Ls(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},t.prototype._maybeAddToChanges=function(t,e){u(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype.toString=function(){var t=[],e=[],r=[],n=[],o=[];return this.forEachItem(function(e){return t.push(c(e))}),this.forEachPreviousItem(function(t){return e.push(c(t))}),this.forEachChangedItem(function(t){return r.push(c(t))}),this.forEachAddedItem(function(t){return n.push(c(t))}),this.forEachRemovedItem(function(t){return o.push(c(t))}),"map: "+t.join(", ")+"\nprevious: "+e.join(", ")+"\nadditions: "+n.join(", ")+"\nchanges: "+r.join(", ")+"\nremovals: "+o.join(", ")+"\n"},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(r){return e(t[r],r)})},t}(),Ls=function(){function t(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}return t.prototype.toString=function(){return u(this.previousValue,this.currentValue)?c(this.key):c(this.key)+"["+c(this.previousValue)+"->"+c(this.currentValue)+"]"},t}(),Vs=function(){function t(t){this.factories=t}return t.create=function(e,r){if(null!=r){var n=r.factories.slice();return e=e.concat(n),new t(e)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(r){if(!r)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,r)},deps:[[t,new Do,new ko]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(null!=e)return e;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+It(t)+"'")},t}(),Fs=function(){function t(t){this.factories=t}return t.create=function(e,r){if(r){var n=r.factories.slice();e=e.concat(n)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(r){if(!r)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,r)},deps:[[t,new Do,new ko]]}},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}(),Us=[new Ds],Bs=[new Os],Hs=new Vs(Bs),qs=new Fs(Us),zs=[{provide:di,useValue:"unknown"},Yi,{provide:Zi,useExisting:Yi},{provide:Jo,useFactory:Nt,deps:[]},{provide:Yo,useExisting:Jo},qi,vi],Gs=pt(null,"core",zs),Ws=new Jn("LocaleId"),$s=new Jn("Translations"),Ks=new Jn("TranslationsFormat"),Qs={};Qs.Error=0,Qs.Warning=1,Qs.Ignore=2,Qs[Qs.Error]="Error",Qs[Qs.Warning]="Warning",Qs[Qs.Ignore]="Ignore";var Xs={};Xs.NONE=0,Xs.HTML=1,Xs.STYLE=2,Xs.SCRIPT=3,Xs.URL=4,Xs.RESOURCE_URL=5,Xs[Xs.NONE]="NONE",Xs[Xs.HTML]="HTML",Xs[Xs.STYLE]="STYLE",Xs[Xs.SCRIPT]="SCRIPT",Xs[Xs.URL]="URL",Xs[Xs.RESOURCE_URL]="RESOURCE_URL";var Zs=function(){function t(){}return t.prototype.sanitize=function(){},t}(),Ys=function(){function t(){}return t.prototype.view=function(){},t.prototype.nodeIndex=function(){},t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.componentRenderElement=function(){},t.prototype.renderNode=function(){},t.prototype.logError=function(){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e]},t}(),Js={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},ta=function(){},ea=new Map,ra="$$undefined",na="$$empty",oa=0,ia=new WeakMap,sa=/^:([^:]+):(.+)$/,aa=[],ua={},ca=new Object,la=function(t){function e(e,r,n,o,i,s){var a=t.call(this)||this;return a.selector=e,a.componentType=r,a._inputs=o,a._outputs=i,a.ngContentSelectors=s,a.viewDefFactory=n,a}return Zn(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var r in e){var n=e[r];t.push({propName:r,templateName:n})}return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs){var r=this._outputs[e];t.push({propName:e,templateName:r})}return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,r,n){if(!n)throw new Error("ngModule should be provided");var o=le(this.viewDefFactory),i=o.nodes[0].element.componentProvider.index,s=Js.createRootView(t,e||[],r,o,n,ca),a=Lt(s,i).instance;return s.renderer.setAttribute(jt(s,0).renderElement,"ng-version",Mo.full),new pa(s,new fa(s),a)},e}(Ei),pa=function(t){function e(e,r,n){var o=t.call(this)||this;return o._view=e,o._viewRef=r,o._component=n,o._elDef=o._view.def.nodes[0],o}return Zn(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new us(jt(this._view,this._elDef.index).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new ma(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"instance",{get:function(){return this._component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostView",{get:function(){return this._viewRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"changeDetectorRef",{get:function(){return this._viewRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(Ci),ha=function(){function t(t,e,r){this._view=t,this._elDef=e,this._data=r,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new us(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new ma(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=re(t),t=t.parent;return t?new ma(t,e):new ma(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length,e=t-1;e>=0;e--){var r=Le(this._data,e);Js.destroyView(r)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var r=new fa(e);return r.attachToViewContainerRef(this),r}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,r){var n=t.createEmbeddedView(e||{});return this.insert(n,r),n},t.prototype.createComponent=function(t,e,r,n,o){var i=r||this.parentInjector;o||t instanceof Mi||(o=i.get(Ri));var s=t.create(i,n,void 0,o);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){var r=t,n=r._view;return je(this._view,this._data,e,n),r.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){var r=this._embeddedViews.indexOf(t._view);return Ve(this._data,r,e),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Le(this._data,t);e&&Js.destroyView(e)},t.prototype.detach=function(t){var e=Le(this._data,t);return e?new fa(e):null},t}(),fa=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return pe(this._view)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!==(8&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){Jt(this._view)},t.prototype.detach=function(){this._view.state&=-3},t.prototype.detectChanges=function(){Js.checkAndUpdateView(this._view)},t.prototype.checkNoChanges=function(){Js.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=2},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)),Js.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Ue(this._view),Js.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}(),da=function(t){function e(e,r){var n=t.call(this)||this;return n._parentView=e,n._def=r,n}return Zn(e,t),e.prototype.createEmbeddedView=function(t){return new fa(Js.createEmbeddedView(this._parentView,this._def,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new us(jt(this._parentView,this._def.index).renderElement)},enumerable:!0,configurable:!0}),e}(vs),ma=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){void 0===e&&(e=Uo.THROW_IF_NOT_FOUND);var r=this.elDef?0!==(16777216&this.elDef.flags):!1;return Js.resolveDep(this.view,this.elDef,r,{flags:0,token:t,tokenKey:Wt(t)},e)},t}(),ya=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var r=ve(e),n=r[0],o=r[1],i=this.delegate.createElement(o,n);return t&&this.delegate.appendChild(t,i),i},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var r=this.delegate.createText(e);return t&&this.delegate.appendChild(t,r),r},t.prototype.projectNodes=function(t,e){
+for(var r=0;r<e.length;r++)this.delegate.appendChild(t,e[r])},t.prototype.attachViewAfter=function(t,e){for(var r=this.delegate.parentNode(t),n=this.delegate.nextSibling(t),o=0;o<e.length;o++)this.delegate.insertBefore(r,e[o],n)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var r=t[e],n=this.delegate.parentNode(r);this.delegate.removeChild(n,r)}},t.prototype.destroyView=function(t,e){for(var r=0;r<e.length;r++)this.delegate.destroyNode(e[r])},t.prototype.listen=function(t,e,r){return this.delegate.listen(t,e,r)},t.prototype.listenGlobal=function(t,e,r){return this.delegate.listen(t,e,r)},t.prototype.setElementProperty=function(t,e,r){this.delegate.setProperty(t,e,r)},t.prototype.setElementAttribute=function(t,e,r){var n=ve(e),o=n[0],i=n[1];null!=r?this.delegate.setAttribute(t,i,r,o):this.delegate.removeAttribute(t,i,o)},t.prototype.setBindingDebugInfo=function(){},t.prototype.setElementClass=function(t,e,r){r?this.delegate.addClass(t,e):this.delegate.removeClass(t,e)},t.prototype.setElementStyle=function(t,e,r){null!=r?this.delegate.setStyle(t,e,r):this.delegate.removeStyle(t,e)},t.prototype.invokeElementMethod=function(t,e,r){t[e].apply(t,r)},t.prototype.setText=function(t,e){this.delegate.setValue(t,e)},t.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},t}(),va=Wt(ns),ga=Wt(as),_a=Wt(us),ba=Wt(gs),wa=Wt(vs),Ca=Wt(_s),Ea=Wt(Uo),Sa=new Object,xa={},Ta={};Ta.CreateViewNodes=0,Ta.CheckNoChanges=1,Ta.CheckAndUpdate=2,Ta.Destroy=3,Ta[Ta.CreateViewNodes]="CreateViewNodes",Ta[Ta.CheckNoChanges]="CheckNoChanges",Ta[Ta.CheckAndUpdate]="CheckAndUpdate",Ta[Ta.Destroy]="Destroy";var Pa=!1,Aa={};Aa.create=0,Aa.detectChanges=1,Aa.checkNoChanges=2,Aa.destroy=3,Aa.handleEvent=4,Aa[Aa.create]="create",Aa[Aa.detectChanges]="detectChanges",Aa[Aa.checkNoChanges]="checkNoChanges",Aa[Aa.destroy]="destroy",Aa[Aa.handleEvent]="handleEvent";var Oa,Ma,Ra,ka=/([A-Z])/g,Ia=function(){function t(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];for(var r=this.nodeDef,n=t;r&&0===(1&r.flags);)r=r.parent;if(!r)for(;!r&&n;)r=re(n),n=n.parent;this.elDef=r,this.elView=n}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return jt(this.elView,this.elDef.index).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return Ke(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=[];if(this.elDef)for(var e=this.elDef.index+1;e<=this.elDef.index+this.elDef.childCount;e++){var r=this.elView.def.nodes[e];10112&r.flags&&t.push(r.provider.token),e+=r.childCount}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t={};if(this.elDef){An(this.elView,this.elDef,t);for(var e=this.elDef.index+1;e<=this.elDef.index+this.elDef.childCount;e++){var r=this.elView.def.nodes[e];10112&r.flags&&An(this.elView,r,t),e+=r.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=Pn(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?ne(this.view,this.nodeDef):ne(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n,o;2&this.nodeDef.flags?(n=this.view.def,o=this.nodeDef.index):(n=this.elView.def,o=this.elDef.index);var i=Tn(n,o),s=-1,a=function(){return s++,s===i?(r=t.error).bind.apply(r,[t].concat(e)):ta;var r};n.factory(a),i>s&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,e))},t}(),Na=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new Da(this.delegate.createRenderer(t,e))},t}(),Da=function(){function t(t){this.delegate=t}return Object.defineProperty(t.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),t.prototype.destroyNode=function(t){Tt(St(t)),this.delegate.destroyNode&&this.delegate.destroyNode(t)},t.prototype.destroy=function(){this.delegate.destroy()},t.prototype.createElement=function(t,e){var r=this.delegate.createElement(t,e),n=Mn();if(n){var o=new Ss(r,null,n);o.name=t,xt(o)}return r},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),r=Mn();return r&&xt(new Es(e,null,r)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),r=Mn();return r&&xt(new Es(e,null,r)),e},t.prototype.appendChild=function(t,e){var r=St(t),n=St(e);r&&n&&r instanceof Ss&&r.addChild(n),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,r){var n=St(t),o=St(e),i=St(r);n&&o&&n instanceof Ss&&n.insertBefore(i,o),this.delegate.insertBefore(t,e,r)},t.prototype.removeChild=function(t,e){var r=St(t),n=St(e);r&&n&&r instanceof Ss&&r.removeChild(n),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t){var e=this.delegate.selectRootElement(t),r=Mn();return r&&xt(new Ss(e,null,r)),e},t.prototype.setAttribute=function(t,e,r,n){var o=St(t);if(o&&o instanceof Ss){var i=n?n+":"+e:e;o.attributes[i]=r}this.delegate.setAttribute(t,e,r,n)},t.prototype.removeAttribute=function(t,e,r){var n=St(t);if(n&&n instanceof Ss){var o=r?r+":"+e:e;n.attributes[o]=null}this.delegate.removeAttribute(t,e,r)},t.prototype.addClass=function(t,e){var r=St(t);r&&r instanceof Ss&&(r.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var r=St(t);r&&r instanceof Ss&&(r.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,r,n){var o=St(t);o&&o instanceof Ss&&(o.styles[e]=r),this.delegate.setStyle(t,e,r,n)},t.prototype.removeStyle=function(t,e,r){var n=St(t);n&&n instanceof Ss&&(n.styles[e]=null),this.delegate.removeStyle(t,e,r)},t.prototype.setProperty=function(t,e,r){var n=St(t);n&&n instanceof Ss&&(n.properties[e]=r),this.delegate.setProperty(t,e,r)},t.prototype.listen=function(t,e,r){if("string"!=typeof t){var n=St(t);n&&n.listeners.push(new Cs(e,r))}return this.delegate.listen(t,e,r)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setValue=function(t,e){return this.delegate.setValue(t,e)},t}(),ja=function(){function t(){}return t}();ja.decorators=[{type:To,args:[{providers:[ts,{provide:Ji,useExisting:ts},li,_i,hi,{provide:Vs,useFactory:Rn},{provide:Fs,useFactory:kn},{provide:Ws,useFactory:In,deps:[[new Ro(Ws),new ko,new Do]]},{provide:ci,useValue:Nn,multi:!0}]}]}],ja.ctorParameters=function(){return[{type:Ji}]};var La={};La.OnInit=0,La.OnDestroy=1,La.DoCheck=2,La.OnChanges=3,La.AfterContentInit=4,La.AfterContentChecked=5,La.AfterViewInit=6,La.AfterViewChecked=7,La[La.OnInit]="OnInit",La[La.OnDestroy]="OnDestroy",La[La.DoCheck]="DoCheck",La[La.OnChanges]="OnChanges",La[La.AfterContentInit]="AfterContentInit",La[La.AfterContentChecked]="AfterContentChecked",La[La.AfterViewInit]="AfterViewInit",La[La.AfterViewChecked]="AfterViewChecked";var Va=[La.OnInit,La.OnDestroy,La.DoCheck,La.OnChanges,La.AfterContentInit,La.AfterContentChecked,La.AfterViewInit,La.AfterViewChecked],Fa="*";t.Class=h,t.createPlatform=lt,t.assertPlatform=ht,t.destroyPlatform=ft,t.getPlatform=dt,t.PlatformRef=Zi,t.ApplicationRef=Ji,t.enableProdMode=ut,t.isDevMode=ct,t.createPlatformFactory=pt,t.NgProbeToken=Xi,t.APP_ID=pi,t.PACKAGE_ROOT_URL=yi,t.PLATFORM_INITIALIZER=fi,t.PLATFORM_ID=di,t.APP_BOOTSTRAP_LISTENER=mi,t.APP_INITIALIZER=ci,t.ApplicationInitStatus=li,t.DebugElement=Ss,t.DebugNode=Es,t.asNativeElements=wt,t.getDebugNode=St,t.Testability=Hi,t.TestabilityRegistry=qi,t.setTestabilityGetter=at,t.TRANSLATIONS=$s,t.TRANSLATIONS_FORMAT=Ks,t.LOCALE_ID=Ws,t.MissingTranslationStrategy=Qs,t.ApplicationModule=ja,t.wtfCreateScope=ji,t.wtfLeave=Li,t.wtfStartTimeRange=Vi,t.wtfEndTimeRange=Fi,t.Type=Qo,t.EventEmitter=Ui,t.ErrorHandler=Go,t.Sanitizer=Zs,t.SecurityContext=Xs,t.ANALYZE_FOR_ENTRY_COMPONENTS=ao,t.Attribute=uo,t.ContentChild=po,t.ContentChildren=lo,t.Query=co,t.ViewChild=fo,t.ViewChildren=ho,t.Component=go,t.Directive=vo,t.HostBinding=Co,t.HostListener=Eo,t.Input=bo,t.Output=wo,t.Pipe=_o,t.CUSTOM_ELEMENTS_SCHEMA=So,t.NO_ERRORS_SCHEMA=xo,t.NgModule=To,t.ViewEncapsulation=Po,t.Version=Oo,t.VERSION=Mo,t.forwardRef=g,t.resolveForwardRef=_,t.Injector=Uo,t.ReflectiveInjector=si,t.ResolvedReflectiveFactory=oi,t.ReflectiveKey=Wo,t.InjectionToken=Jn,t.OpaqueToken=Yn,t.Inject=Ro,t.Optional=ko,t.Injectable=Io,t.Self=No,t.SkipSelf=Do,t.Host=jo,t.NgZone=Bi,t.RenderComponentType=es,t.Renderer=ns,t.Renderer2=as,t.RendererFactory2=is,t.RendererStyleFlags2=ss,t.RootRenderer=os,t.COMPILER_OPTIONS=bi,t.Compiler=_i,t.CompilerFactory=wi,t.ModuleWithComponentFactories=gi,t.ComponentFactory=Ei,t.ComponentRef=Ci,t.ComponentFactoryResolver=Ti,t.ElementRef=us,t.NgModuleFactory=ki,t.NgModuleRef=Ri,t.NgModuleFactoryLoader=cs,t.getModuleFactory=gt,t.QueryList=ps,t.SystemJsNgModuleLoader=ys,t.SystemJsNgModuleLoaderConfig=ds,t.TemplateRef=vs,t.ViewContainerRef=gs,t.EmbeddedViewRef=ws,t.ViewRef=bs,t.ChangeDetectionStrategy=mo,t.ChangeDetectorRef=_s,t.DefaultIterableDiffer=Rs,t.IterableDiffers=Vs,t.KeyValueDiffers=Fs,t.SimpleChange=As,t.WrappedValue=Ts,t.platformCore=Gs,t.ɵALLOW_MULTIPLE_PLATFORMS=Qi,t.ɵAPP_ID_RANDOM_PROVIDER=hi,t.ɵValueUnwrapper=Ps,t.ɵdevModeEqual=Pt,t.ɵisListLikeIterable=At,t.ɵChangeDetectorStatus=yo,t.ɵisDefaultChangeDetectionStrategy=v,t.ɵConsole=vi,t.ɵERROR_COMPONENT_TYPE=Bo,t.ɵComponentFactory=Ei,t.ɵCodegenComponentFactoryResolver=Oi,t.ɵLIFECYCLE_HOOKS_VALUES=Va,t.ɵLifecycleHooks=La,t.ɵViewMetadata=Ao,t.ɵReflector=Jo,t.ɵreflector=ti,t.ɵReflectionCapabilities=Zo,t.ɵReflectorReader=Yo,t.ɵRenderDebugInfo=rs,t.ɵglobal=no,t.ɵlooseIdentical=u,t.ɵstringify=c,t.ɵmakeDecorator=f,t.ɵisObservable=X,t.ɵisPromise=Q,t.ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR=xa,t.ɵNgModuleInjector=Ni,t.ɵregisterModuleFactory=vt,t.ɵEMPTY_ARRAY=aa,t.ɵEMPTY_MAP=ua,t.ɵand=Ce,t.ɵccf=qe,t.ɵcrt=Kt,t.ɵdid=Ze,t.ɵeld=Ee,t.ɵelementEventFullName=oe,t.ɵgetComponentViewDefinitionFactory=ze,t.ɵinlineInterpolate=be,t.ɵinterpolate=_e,t.ɵncd=Ne,t.ɵnov=Qe,t.ɵpid=Ye,t.ɵprd=Je,t.ɵpad=vr,t.ɵpod=gr,t.ɵppd=yr,t.ɵqud=Er,t.ɵted=Or,t.ɵunv=$t,t.ɵvid=Nr,t.AUTO_STYLE=Fa,t.trigger=qn,t.animate=zn,t.group=Gn,t.sequence=Wn,t.style=$n,t.state=Kn,t.keyframes=Qn,t.transition=Xn,t.ɵba=jn,t.ɵbb=Ln,t.ɵbf=Bn,t.ɵbc=Vn,t.ɵbe=Un,t.ɵbd=Fn,t.ɵbg=Hn,t.ɵz=Dn,t.ɵo=Nn,t.ɵl=Rn,t.ɵm=kn,t.ɵn=In,t.ɵf=ts,t.ɵg=Z,t.ɵh=Hs,t.ɵi=qs,t.ɵj=Os,t.ɵk=Ds,t.ɵc=ai,t.ɵd=ei,t.ɵe=B,t.ɵp=Di,t.ɵr=rt,t.ɵq=et,t.ɵu=it,t.ɵs=nt,t.ɵt=ot,t.ɵa=m,t.ɵb=y,t.ɵw=tr,t.ɵx=Ys,Object.defineProperty(t,"__esModule",{value:!0})})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"rxjs/Observable":17,"rxjs/Subject":20,"rxjs/observable/merge":37,"rxjs/operator/share":53}],9:[function(e,r,n){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/core"),e("rxjs/observable/forkJoin"),e("rxjs/observable/fromPromise"),e("rxjs/operator/map"),e("@angular/platform-browser")):"function"==typeof t&&t.amd?t(["exports","@angular/core","rxjs/observable/forkJoin","rxjs/observable/fromPromise","rxjs/operator/map","@angular/platform-browser"],i):i((o.ng=o.ng||{},o.ng.forms=o.ng.forms||{}),o.ng.core,o.Rx.Observable,o.Rx.Observable,o.Rx.Observable.prototype,o.ng.platformBrowser)}(this,function(t,e,r,n,o,i){"use strict";function s(t){return null==t||0===t.length}function a(t){return null!=t}function u(t){var r=e.ɵisPromise(t)?n.fromPromise(t):t;if(!e.ɵisObservable(r))throw new Error("Expected validator to return Promise or Observable.");return r}function c(t,e){return e.map(function(e){return e(t)})}function l(t,e){return e.map(function(e){return e(t)})}function p(t){var e=t.reduce(function(t,e){return null!=e?F({},t,e):t},{});return 0===Object.keys(e).length?null:e}function h(){var t=i.ɵgetDOM()?i.ɵgetDOM().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}function f(t){return t.validate?function(e){return t.validate(e)}:t}function d(t){return t.validate?function(e){return t.validate(e)}:t}function m(){throw new Error("unimplemented")}function y(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function v(t){return t.split(":")[0]}function g(t,e){return null==t?""+e:("string"==typeof e&&(e="'"+e+"'"),e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function _(t){return t.split(":")[0]}function b(t,e){return e.path.concat([t])}function w(t,e){t||x(e,"Cannot find control with"),e.valueAccessor||x(e,"No value accessor for form control with"),t.validator=q.compose([t.validator,e.validator]),t.asyncValidator=q.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),e.valueAccessor.registerOnChange(function(r){e.viewToModelUpdate(r),t.markAsDirty(),t.setValue(r,{emitModelToViewChange:!1})}),e.valueAccessor.registerOnTouched(function(){return t.markAsTouched()}),t.registerOnChange(function(t,r){e.valueAccessor.writeValue(t),r&&e.viewToModelUpdate(t)}),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function C(t,e){e.valueAccessor.registerOnChange(function(){return S(e)}),e.valueAccessor.registerOnTouched(function(){return S(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}function E(t,e){null==t&&x(e,"Cannot find control with"),t.validator=q.compose([t.validator,e.validator]),t.asyncValidator=q.composeAsync([t.asyncValidator,e.asyncValidator])}function S(t){return x(t,"There is no FormControl instance attached to form control element with")}function x(t,e){var r;throw r=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+r)}function T(t){return null!=t?q.compose(t.map(f)):null}function P(t){return null!=t?q.composeAsync(t.map(d)):null}function A(t,r){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return n.isFirstChange()?!0:!e.ɵlooseIdentical(r,n.currentValue)}function O(t){return lt.some(function(e){return t.constructor===e})}function M(t,e){if(!e)return null;var r=void 0,n=void 0,o=void 0;return e.forEach(function(e){e.constructor===Q?r=e:O(e)?(n&&x(t,"More than one built-in value accessor matches form control with"),n=e):(o&&x(t,"More than one custom value accessor matches form control with"),o=e)}),o?o:n?n:r?r:(x(t,"No valid value accessor for form control with"),null)}function R(t,e,r){return null==e?null:(e instanceof Array||(e=e.split(r)),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof Ct?t.controls[e]||null:t instanceof Et?t.at(e)||null:null},t))}function k(t){return Array.isArray(t)?T(t):t||null}function I(t){return Array.isArray(t)?P(t):t||null}function N(t,e){var r=t.indexOf(e);r>-1&&t.splice(r,1)}function D(t){return!(t instanceof Ut||t instanceof Vt||t instanceof Ht)}var j=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},L=function(){function t(){}return t.prototype.control=function(){},Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return this.control?this.control.hasError(t,e):!1},t.prototype.getError=function(t,e){return this.control?this.control.getError(t,e):null},t}(),V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e}(L),F=void 0||Object.assign||function(t){for(var e,r=1,n=arguments.length;n>r;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},U=new e.InjectionToken("NgValidators"),B=new e.InjectionToken("NgAsyncValidators"),H=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,q=function(){function t(){}return t.required=function(t){return s(t.value)?{required:!0}:null},t.requiredTrue=function(t){return t.value===!0?null:{required:!0}},t.email=function(t){return H.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(s(e.value))return null;var r=e.value?e.value.length:0;return t>r?{minlength:{requiredLength:t,actualLength:r}}:null}},t.maxLength=function(t){return function(e){var r=e.value?e.value.length:0;return r>t?{maxlength:{requiredLength:t,actualLength:r}}:null}},t.pattern=function(e){if(!e)return t.nullValidator;var r,n;return"string"==typeof e?(n="^"+e+"$",r=new RegExp(n)):(n=e.toString(),r=e),function(t){if(s(t.value))return null;var e=t.value;return r.test(e)?null:{pattern:{requiredPattern:n,actualValue:e}}}},t.nullValidator=function(){return null},t.compose=function(t){if(!t)return null;var e=t.filter(a);return 0==e.length?null:function(t){return p(c(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(a);return 0==e.length?null:function(t){var n=l(t,e).map(u);return o.map.call(r.forkJoin(n),p)}},t}(),z=new e.InjectionToken("NgValueAccessor"),G={provide:z,useExisting:e.forwardRef(function(){return W}),multi:!0},W=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();W.decorators=[{type:e.Directive,args:[{selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[G]}]}],W.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]};var $={provide:z,useExisting:e.forwardRef(function(){return Q}),multi:!0},K=new e.InjectionToken("CompositionEventMode"),Q=function(){function t(t,e,r){this._renderer=t,this._elementRef=e,this._compositionMode=r,this.onChange=function(){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!h())}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t}();Q.decorators=[{type:e.Directive,args:[{selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"_handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"_compositionStart()","(compositionend)":"_compositionEnd($event.target.value)"},providers:[$]}]}],Q.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[K]}]}]};var X={provide:z,useExisting:e.forwardRef(function(){return Z}),multi:!0},Z=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();Z.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:[X]}]}],Z.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]};var Y=function(t){function e(){var e=t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return j(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return m()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return m()},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(){},e}(L),J={provide:z,useExisting:e.forwardRef(function(){return et}),multi:!0},tt=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(r){e._isSameGroup(r,t)&&r[1]!==t&&r[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return t[0].control?t[0]._parent===e._control._parent&&t[1].name===e.name:!1},t}();tt.decorators=[{type:e.Injectable}],tt.ctorParameters=function(){return[]};var et=function(){function t(t,e,r,n){this._renderer=t,this._elementRef=e,this._registry=r,this._injector=n,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(Y),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n      If you define both a name and a formControlName attribute on your radio button, their values\n      must match. Ex: <input type="radio" formControlName="food" name="food">\n    ')},t}();et.decorators=[{type:e.Directive,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[J]}]}],et.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef},{type:tt},{type:e.Injector}]},et.propDecorators={name:[{type:e.Input}],formControlName:[{type:e.Input}],value:[{type:e.Input}]};var rt={provide:z,useExisting:e.forwardRef(function(){return nt}),multi:!0},nt=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();nt.decorators=[{type:e.Directive,args:[{selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[rt]}]}],nt.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]};var ot={provide:z,useExisting:e.forwardRef(function(){return it}),multi:!0},it=function(){function t(t,r){this._renderer=t,this._elementRef=r,this._optionMap=new Map,this._idCounter=0,this.onChange=function(){},this.onTouched=function(){},this._compareWith=e.ɵlooseIdentical}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setElementProperty(this._elementRef.nativeElement,"selectedIndex",-1);var r=y(e,t);this._renderer.setElementProperty(this._elementRef.nativeElement,"value",r)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(r){e.value=r,t(e._getOptionValue(r))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){for(var e=0,r=Array.from(this._optionMap.keys());e<r.length;e++){var n=r[e];if(this._compareWith(this._optionMap.get(n),t))return n}return null},t.prototype._getOptionValue=function(t){var e=v(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}();it.decorators=[{type:e.Directive,args:[{selector:"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]",host:{"(change)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[ot]}]}],it.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]},it.propDecorators={compareWith:[{type:e.Input}]};var st=function(){function t(t,e,r){this._element=t,this._renderer=e,this._select=r,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(y(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setElementProperty(this._element.nativeElement,"value",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap["delete"](this.id),this._select.writeValue(this._select.value))},t}();st.decorators=[{type:e.Directive,args:[{selector:"option"}]}],st.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer},{type:it,decorators:[{type:e.Optional},{type:e.Host}]}]},st.propDecorators={ngValue:[{type:e.Input,args:["ngValue"]}],value:[{type:e.Input,args:["value"]}]};var at={provide:z,useExisting:e.forwardRef(function(){return ut}),multi:!0},ut=function(){function t(t,r){this._renderer=t,this._elementRef=r,this._optionMap=new Map,this._idCounter=0,this.onChange=function(){},this.onTouched=function(){},this._compareWith=e.ɵlooseIdentical}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e=this;this.value=t;var r;if(Array.isArray(t)){var n=t.map(function(t){return e._getOptionId(t)});r=function(t,e){t._setSelected(n.indexOf(e.toString())>-1)}}else r=function(t){t._setSelected(!1)};this._optionMap.forEach(r)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(r){var n=[];if(r.hasOwnProperty("selectedOptions"))for(var o=r.selectedOptions,i=0;i<o.length;i++){var s=o.item(i),a=e._getOptionValue(s.value);n.push(a)}else for(var o=r.options,i=0;i<o.length;i++){var s=o.item(i);if(s.selected){var a=e._getOptionValue(s.value);n.push(a)}}e.value=n,t(n)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(t){var e=(this._idCounter++).toString();return this._optionMap.set(e,t),e},t.prototype._getOptionId=function(t){for(var e=0,r=Array.from(this._optionMap.keys());e<r.length;e++){var n=r[e];if(this._compareWith(this._optionMap.get(n)._value,t))return n}return null},t.prototype._getOptionValue=function(t){var e=_(t);
 
-return n.addEventListener(t,e,r)},t.prototype.addGlobalEventListener=function(t,e,r){var n=this._findPluginFor(e);return n.addGlobalEventListener(t,e,r)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var r=this._plugins,n=0;n<r.length;n++){var o=r[n];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error("No event manager plugin found for event "+t)},t}();at.decorators=[{type:r.Injectable}],at.ctorParameters=function(){return[{type:Array,decorators:[{type:r.Inject,args:[st]}]},{type:r.NgZone}]};var ut=function(){function t(t){this._doc=t}return t.prototype.supports=function(){},t.prototype.addEventListener=function(){},t.prototype.addGlobalEventListener=function(t,e,r){var o=n().getGlobalEventTarget(this._doc,t);if(!o)throw new Error("Unsupported event target "+o+" for event "+e);return this.addEventListener(o,e,r)},t}(),ct=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,r=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),r.add(t))}),this.onStylesAdded(r)},t.prototype.onStylesAdded=function(){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t}();ct.decorators=[{type:r.Injectable}],ct.ctorParameters=function(){return[]};var lt=function(t){function e(e){var r=t.call(this)||this;return r._doc=e,r._hostNodes=new Set,r._styleNodes=new Set,r._hostNodes.add(e.head),r}return j(e,t),e.prototype._addStylesToHost=function(t,e){var r=this;t.forEach(function(t){var n=r._doc.createElement("style");n.textContent=t,r._styleNodes.add(e.appendChild(n))})},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes["delete"](t)},e.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach(function(r){return e._addStylesToHost(t,r)})},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return n().remove(t)})},e}(ct);lt.decorators=[{type:r.Injectable}],lt.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]}]};var pt={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/"},ht=/%COMP%/g,ft="%COMP%",dt="_nghost-"+ft,mt="_ngcontent-"+ft,yt=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new vt(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case r.ViewEncapsulation.Emulated:var n=this.rendererByCompId.get(e.id);return n||(n=new _t(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n;case r.ViewEncapsulation.Native:return new bt(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var o=y(e.id,e.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t}();yt.decorators=[{type:r.Injectable}],yt.ctorParameters=function(){return[{type:at},{type:lt}]};var vt=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(pt[e],t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,r){t&&t.insertBefore(e,r)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t){var e="string"==typeof t?document.querySelector(t):t;if(!e)throw new Error('The selector "'+t+'" did not match any elements');return e.textContent="",e},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,r,n){if(n){e=n+":"+e;var o=pt[n];o?t.setAttributeNS(o,e,r):t.setAttribute(e,r)}else t.setAttribute(e,r)},t.prototype.removeAttribute=function(t,e,r){if(r){var n=pt[r];n?t.removeAttributeNS(n,e):t.removeAttribute(r+":"+e)}else t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,n,o){o&r.RendererStyleFlags2.DashCase?t.style.setProperty(e,n,o&r.RendererStyleFlags2.Important?"important":""):t.style[e]=n},t.prototype.removeStyle=function(t,e,n){n&r.RendererStyleFlags2.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,r){g(e,"property"),t[e]=r},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,r){return g(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,v(r)):this.eventManager.addEventListener(t,e,v(r))},t}(),gt="@".charCodeAt(0),_t=function(t){function e(e,r,n){var o=t.call(this,e)||this;o.component=n;var i=y(n.id,n.styles,[]);return r.addStyles(i),o.contentAttr=d(n.id),o.hostAttr=m(n.id),o}return j(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,r){var n=t.prototype.createElement.call(this,e,r);return t.prototype.setAttribute.call(this,n,this.contentAttr,""),n},e}(vt),bt=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;i.sharedStylesHost=r,i.hostEl=n,i.component=o,i.shadowRoot=n.createShadowRoot(),i.sharedStylesHost.addHost(i.shadowRoot);for(var s=y(o.id,o.styles,[]),a=0;a<s.length;a++){var u=document.createElement("style");u.textContent=s[a],i.shadowRoot.appendChild(u)}return i}return j(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,r){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),r)},e.prototype.insertBefore=function(e,r,n){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),r,n)},e.prototype.removeChild=function(e,r){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),r)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(vt),wt=function(t){function e(e){return t.call(this,e)||this}return j(e,t),e.prototype.supports=function(){return!0},e.prototype.addEventListener=function(t,e,r){return t.addEventListener(e,r,!1),function(){return t.removeEventListener(e,r,!1)}},e}(ut);wt.decorators=[{type:r.Injectable}],wt.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]}]};var Ct={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},Et=new r.InjectionToken("HammerGestureConfig"),St=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(var r in this.overrides)e.get(r).set(this.overrides[r]);return e},t}();St.decorators=[{type:r.Injectable}],St.ctorParameters=function(){return[]};var xt=function(t){function e(e,r){var n=t.call(this,e)||this;return n._config=r,n}return j(e,t),e.prototype.supports=function(t){if(!Ct.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t))return!1;if(!window.Hammer)throw new Error("Hammer.js is not loaded, can not bind "+t+" event");return!0},e.prototype.addEventListener=function(t,e,r){var n=this,o=this.manager.getZone();return e=e.toLowerCase(),o.runOutsideAngular(function(){var i=n._config.buildHammer(t),s=function(t){o.runGuarded(function(){r(t)})};return i.on(e,s),function(){return i.off(e,s)}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e}(ut);xt.decorators=[{type:r.Injectable}],xt.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]},{type:St,decorators:[{type:r.Inject,args:[Et]}]}]};var Tt=["alt","control","meta","shift"],Pt={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},At=function(t){function e(e){return t.call(this,e)||this}return j(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,r,o){var i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return n().onAndCancel(t,i.domEventName,s)})},e.parseEventName=function(t){var r=t.toLowerCase().split("."),n=r.shift();if(0===r.length||"keydown"!==n&&"keyup"!==n)return null;var o=e._normalizeKey(r.pop()),i="";if(Tt.forEach(function(t){var e=r.indexOf(t);e>-1&&(r.splice(e,1),i+=t+".")}),i+=o,0!=r.length||0===o.length)return null;var s={};return s.domEventName=n,s.fullKey=i,s},e.getEventFullKey=function(t){var e="",r=n().getEventKey(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Tt.forEach(function(n){if(n!=r){var o=Pt[n];o(t)&&(e+=n+".")}}),e+=r},e.eventCallback=function(t,r,n){return function(o){e.getEventFullKey(o)===t&&n.runGuarded(function(){return r(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(ut);At.decorators=[{type:r.Injectable}],At.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]}]};var Ot=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,Mt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,Rt=null,kt=null,It=C("area,br,col,hr,img,wbr"),Nt=C("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Dt=C("rp,rt"),jt=E(Dt,Nt),Lt=E(Nt,C("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Vt=E(Dt,C("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ft=E(It,Lt,Vt,jt),Ut=C("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ht=C("srcset"),Bt=C("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),qt=E(Ut,Ht,Bt),zt=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(kt.isElementNode(e)?this.startElement(e):kt.isTextNode(e)?this.chars(kt.nodeValue(e)):this.sanitizedSomething=!0,kt.firstChild(e))e=kt.firstChild(e);else for(;e;){kt.isElementNode(e)&&this.endElement(e);var r=S(e,kt.nextSibling(e));if(r){e=r;break}e=S(e,kt.parentElement(e))}return this.buf.join("")},t.prototype.startElement=function(t){var e=this,r=kt.nodeName(t).toLowerCase();return Ft.hasOwnProperty(r)?(this.buf.push("<"),this.buf.push(r),kt.attributeMap(t).forEach(function(t,r){var n=r.toLowerCase();return qt.hasOwnProperty(n)?(Ut[n]&&(t=_(t)),Ht[n]&&(t=b(t)),e.buf.push(" "),e.buf.push(r),e.buf.push('="'),e.buf.push(x(t)),void e.buf.push('"')):void(e.sanitizedSomething=!0)}),void this.buf.push(">")):void(this.sanitizedSomething=!0)},t.prototype.endElement=function(t){var e=kt.nodeName(t).toLowerCase();Ft.hasOwnProperty(e)&&!It.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(x(t))},t}(),Gt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Wt=/([^\#-~ |!])/g,$t="[-,.\"'%_!# a-zA-Z0-9]+",Kt="(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?",Qt="(?:rgb|hsl)a?",Xt="(?:repeating-)?(?:linear|radial)-gradient",Zt="(?:calc|attr)",Yt="\\([-0-9.%, #a-zA-Z]+\\)",Jt=new RegExp("^("+$t+"|"+("(?:"+Kt+"|"+Qt+"|"+Xt+"|"+Zt+")")+(Yt+")$"),"g"),te=/^url\(([^)]+)\)$/,ee=function(){function t(){}return t.prototype.sanitize=function(){},t.prototype.bypassSecurityTrustHtml=function(){},t.prototype.bypassSecurityTrustStyle=function(){},t.prototype.bypassSecurityTrustScript=function(){},t.prototype.bypassSecurityTrustUrl=function(){},t.prototype.bypassSecurityTrustResourceUrl=function(){},t}(),re=function(t){function e(e){var r=t.call(this)||this;return r._doc=e,r}return j(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case r.SecurityContext.NONE:return e;case r.SecurityContext.HTML:return e instanceof oe?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),P(this._doc,String(e)));case r.SecurityContext.STYLE:return e instanceof ie?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),O(e));case r.SecurityContext.SCRIPT:if(e instanceof se)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case r.SecurityContext.URL:return e instanceof ue||e instanceof ae?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),_(String(e)));case r.SecurityContext.RESOURCE_URL:if(e instanceof ue)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 ne)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 oe(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new ie(t)},e.prototype.bypassSecurityTrustScript=function(t){return new se(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new ae(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new ue(t)},e}(ee);re.decorators=[{type:r.Injectable}],re.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]}]};var ne=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.getTypeName=function(){},t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),oe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(ne),ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"Style"},e}(ne),se=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"Script"},e}(ne),ae=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"URL"},e}(ne),ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(ne),ce=[{provide:r.PLATFORM_ID,useValue:e.ɵPLATFORM_BROWSER_ID},{provide:r.PLATFORM_INITIALIZER,useValue:M,multi:!0},{provide:e.PlatformLocation,useClass:K},{provide:$,useFactory:k,deps:[]}],le=[{provide:r.Sanitizer,useExisting:ee},{provide:ee,useClass:re}],pe=r.createPlatformFactory(r.platformCore,"browser",ce),he=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:r.APP_ID,useValue:e.appId},{provide:X,useExisting:r.APP_ID},Z]}},t}();he.decorators=[{type:r.NgModule,args:[{providers:[le,{provide:r.ErrorHandler,useFactory:R,deps:[]},{provide:st,useClass:wt,multi:!0},{provide:st,useClass:At,multi:!0},{provide:st,useClass:xt,multi:!0},{provide:Et,useClass:St},yt,{provide:r.RendererFactory2,useExisting:yt},{provide:ct,useExisting:lt},lt,r.Testability,at,it,Q,J],exports:[e.CommonModule,r.ApplicationModule]}]}],he.ctorParameters=function(){return[{type:he,decorators:[{type:r.Optional},{type:r.SkipSelf}]}]};var fe="undefined"!=typeof window&&window||{},de=function(){function t(t,e){this.msPerTick=t,this.numTicks=e}return t}(),me=function(){function t(t){this.appRef=t.injector.get(r.ApplicationRef)}return t.prototype.timeChangeDetection=function(t){var e=t&&t.record,r="Change Detection",o=null!=fe.console.profile;e&&o&&fe.console.profile(r);for(var i=n().performanceNow(),s=0;5>s||n().performanceNow()-i<500;)this.appRef.tick(),s++;var a=n().performanceNow();e&&o&&fe.console.profileEnd(r);var u=(a-i)/s;return fe.console.log("ran "+s+" change detection cycles"),fe.console.log(u.toFixed(2)+" ms per check"),new de(u,s)},t}(),ye="ng.profiler",ve=function(){function t(){}return t.all=function(){return function(){return!0}},t.css=function(t){return function(e){return null!=e.nativeElement?n().elementMatches(e.nativeElement,t):!1}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}},t}(),ge=new r.Version("4.1.0");t.BrowserModule=he,t.platformBrowser=pe,t.Meta=Q,t.Title=J,t.disableDebugTools=N,t.enableDebugTools=I,t.By=ve,t.NgProbeToken=ot,t.DOCUMENT=$,t.EVENT_MANAGER_PLUGINS=st,t.EventManager=at,t.HAMMER_GESTURE_CONFIG=Et,t.HammerGestureConfig=St,t.DomSanitizer=ee,t.VERSION=ge,t.ɵBROWSER_SANITIZATION_PROVIDERS=le,t.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS=ce,t.ɵinitDomAdapter=M,t.ɵBrowserDomAdapter=G,t.ɵsetValueOnPath=u,t.ɵBrowserPlatformLocation=K,t.ɵTRANSITION_ID=X,t.ɵBrowserGetTestability=Y,t.ɵELEMENT_PROBE_PROVIDERS=it,t.ɵDomAdapter=V,t.ɵgetDOM=n,t.ɵsetRootDomAdapter=o,t.ɵDomRendererFactory2=yt,t.ɵNAMESPACE_URIS=pt,t.ɵflattenStyles=y,t.ɵshimContentAttribute=d,t.ɵshimHostAttribute=m,t.ɵDomEventsPlugin=wt,t.ɵHammerGesturesPlugin=xt,t.ɵKeyEventsPlugin=At,t.ɵDomSharedStylesHost=lt,t.ɵSharedStylesHost=ct,t.ɵb=k,t.ɵa=R,t.ɵh=F,t.ɵg=Z,t.ɵf=l,t.ɵc=h,t.ɵd=ut,t.ɵe=re,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":6,"@angular/core":8}],13:[function(e,r,n){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/common"),e("@angular/core"),e("rxjs/BehaviorSubject"),e("rxjs/Subject"),e("rxjs/observable/from"),e("rxjs/observable/of"),e("rxjs/operator/concatMap"),e("rxjs/operator/every"),e("rxjs/operator/first"),e("rxjs/operator/map"),e("rxjs/operator/mergeMap"),e("rxjs/operator/reduce"),e("rxjs/Observable"),e("rxjs/operator/catch"),e("rxjs/operator/concatAll"),e("rxjs/util/EmptyError"),e("rxjs/observable/fromPromise"),e("rxjs/operator/last"),e("rxjs/operator/mergeAll"),e("@angular/platform-browser"),e("rxjs/operator/filter")):"function"==typeof t&&t.amd?t(["exports","@angular/common","@angular/core","rxjs/BehaviorSubject","rxjs/Subject","rxjs/observable/from","rxjs/observable/of","rxjs/operator/concatMap","rxjs/operator/every","rxjs/operator/first","rxjs/operator/map","rxjs/operator/mergeMap","rxjs/operator/reduce","rxjs/Observable","rxjs/operator/catch","rxjs/operator/concatAll","rxjs/util/EmptyError","rxjs/observable/fromPromise","rxjs/operator/last","rxjs/operator/mergeAll","@angular/platform-browser","rxjs/operator/filter"],i):i((o.ng=o.ng||{},o.ng.router=o.ng.router||{}),o.ng.common,o.ng.core,o.Rx,o.Rx,o.Rx.Observable,o.Rx.Observable,o.Rx.Observable.prototype,o.Rx.Observable.prototype,o.Rx.Observable.prototype,o.Rx.Observable.prototype,o.Rx.Observable.prototype,o.Rx.Observable.prototype,o.Rx,o.Rx.Observable.prototype,o.Rx.Observable.prototype,o.Rx,o.Rx.Observable,o.Rx.Observable.prototype,o.Rx.Observable.prototype,o.ng.platformBrowser,o.Rx.Observable.prototype)}(this,function(t,e,r,n,o,i,s,a,u,c,l,p,h,f,d,m,y,v,g,_,b,w){"use strict";function C(t){return new Le(t)}function E(t){var e=Error("NavigationCancelingError: "+t);return e[Ve]=!0,e}function S(t){return t[Ve]}function x(t,e,r){var n=r.path.split("/");if(n.length>t.length)return null;if("full"===r.pathMatch&&(e.hasChildren()||n.length<t.length))return null;for(var o={},i=0;i<n.length;i++){var s=n[i],a=t[i],u=s.startsWith(":");if(u)o[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,n.length),posParams:o}}function T(t,e){void 0===e&&(e="");for(var r=0;r<t.length;r++){var n=t[r],o=A(e,n);P(n,o)}}function P(t,e){if(!t)throw new Error("\n      Invalid configuration of route '"+e+"': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    ");if(Array.isArray(t))throw new Error("Invalid configuration of route '"+e+"': Array cannot be specified");if(!t.component&&t.outlet&&t.outlet!==je)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){var r="The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.";throw new Error("Invalid configuration of route '{path: \""+e+'", redirectTo: "'+t.redirectTo+"\"}': please provide 'pathMatch'. "+r)}if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '"+e+"': pathMatch can only be set to 'prefix' or 'full'");t.children&&T(t.children,e)}function A(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function O(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r)if(!M(t[r],e[r]))return!1;return!0}function M(t,e){var r=Object.keys(t),n=Object.keys(e);if(r.length!=n.length)return!1;for(var o,i=0;i<r.length;i++)if(o=r[i],t[o]!==e[o])return!1;return!0}function R(t){return Array.prototype.concat.apply([],t)}function k(t){return t.length>0?t[t.length-1]:null}function I(t,e){for(var r in t)t.hasOwnProperty(r)&&e(t[r],r)}function N(t,e){if(0===Object.keys(t).length)return s.of({});var r=[],n=[],o={};I(t,function(t,i){var s=l.map.call(e(i,t),function(t){return o[i]=t});i===je?r.push(s):n.push(s)});var i=m.concatAll.call(s.of.apply(void 0,r.concat(n))),a=g.last.call(i);return l.map.call(a,function(){return o})}function D(t){var e=_.mergeAll.call(t);return u.every.call(e,function(t){return t===!0})}function j(t){return r.ɵisObservable(t)?t:r.ɵisPromise(t)?v.fromPromise(t):s.of(t)}function L(){return new Ue(new He([],{}),{},null)}function V(t,e,r){return r?F(t.queryParams,e.queryParams)&&U(t.root,e.root):H(t.queryParams,e.queryParams)&&B(t.root,e.root)}function F(t,e){return M(t,e)}function U(t,e){if(!G(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(var r in e.children){if(!t.children[r])return!1;if(!U(t.children[r],e.children[r]))return!1}return!0}function H(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(r){return e[r]===t[r]})}function B(t,e){return q(t,e,e.segments)}function q(t,e,r){if(t.segments.length>r.length){var n=t.segments.slice(0,r.length);return G(n,r)?e.hasChildren()?!1:!0:!1}if(t.segments.length===r.length){if(!G(t.segments,r))return!1;for(var o in e.children){if(!t.children[o])return!1;if(!B(t.children[o],e.children[o]))return!1}return!0}var n=r.slice(0,t.segments.length),i=r.slice(t.segments.length);return G(t.segments,n)&&t.children[je]?q(t.children[je],e,i):!1}function z(t,e){return G(t,e)&&t.every(function(t,r){return M(t.parameters,e[r].parameters)})}function G(t,e){return t.length!==e.length?!1:t.every(function(t,r){return t.path===e[r].path})}function W(t,e){var r=[];return I(t.children,function(t,n){n===je&&(r=r.concat(e(t,n)))}),I(t.children,function(t,n){n!==je&&(r=r.concat(e(t,n)))}),r}function $(t){return t.segments.map(function(t){return Z(t)}).join("/")}function K(t,e){if(!t.hasChildren())return $(t);if(e){var r=t.children[je]?K(t.children[je],!1):"",n=[];return I(t.children,function(t,e){e!==je&&n.push(e+":"+K(t,!1))}),n.length>0?r+"("+n.join("//")+")":r}var o=W(t,function(e,r){return r===je?[K(t.children[je],!1)]:[r+":"+K(e,!1)]});return $(t)+"/("+o.join("//")+")"}function Q(t){return encodeURIComponent(t)}function X(t){return decodeURIComponent(t)}function Z(t){return""+Q(t.path)+Y(t.parameters)}function Y(t){return Object.keys(t).map(function(e){return";"+Q(e)+"="+Q(t[e])}).join("")}function J(t){var e=Object.keys(t).map(function(e){var r=t[e];return Array.isArray(r)?r.map(function(t){return Q(e)+"="+Q(t)}).join("&"):Q(e)+"="+Q(r)});return e.length?"?"+e.join("&"):""}function tt(t){var e=t.match(We);return e?e[0]:""}function et(t){var e=t.match($e);return e?e[0]:""}function rt(t){var e=t.match(Ke);return e?e[0]:""}function nt(t){return new f.Observable(function(e){return e.error(new Ze(t))})}function ot(t){return new f.Observable(function(e){return e.error(new Ye(t))})}function it(t){return new f.Observable(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}function st(t){return new f.Observable(function(e){return e.error(E("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}function at(t,e,r,n,o){return new Je(t,e,r,n,o).apply()}function ut(t,e){var r=e.canLoad;if(!r||0===r.length)return s.of(!0);var n=l.map.call(i.from(r),function(r){var n=t.get(r);return j(n.canLoad?n.canLoad(e):n(e))});return D(n)}function ct(t,e,r){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||r.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var n=e.matcher||x,o=n(r,t,e);return o?{matched:!0,consumedSegments:o.consumed,lastChild:o.consumed.length,positionalParamSegments:o.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function lt(t,e,r,n){if(r.length>0&&dt(t,r,n)){var o=new He(e,ft(n,new He(r,t.children)));return{segmentGroup:pt(o),slicedSegments:[]}}if(0===r.length&&mt(t,r,n)){var o=new He(t.segments,ht(t,r,n,t.children));return{segmentGroup:pt(o),slicedSegments:r}}return{segmentGroup:t,slicedSegments:r}}function pt(t){if(1===t.numberOfChildren&&t.children[je]){var e=t.children[je];return new He(t.segments.concat(e.segments),e.children)}return t}function ht(t,e,r,n){for(var o={},i=0,s=r;i<s.length;i++){var a=s[i];yt(t,e,a)&&!n[vt(a)]&&(o[vt(a)]=new He([],{}))}return Xe({},n,o)}function ft(t,e){var r={};r[je]=e;for(var n=0,o=t;n<o.length;n++){var i=o[n];""===i.path&&vt(i)!==je&&(r[vt(i)]=new He([],{}))}return r}function dt(t,e,r){return r.some(function(r){return yt(t,e,r)&&vt(r)!==je})}function mt(t,e,r){return r.some(function(r){return yt(t,e,r)})}function yt(t,e,r){return(t.hasChildren()||e.length>0)&&"full"===r.pathMatch?!1:""===r.path&&void 0!==r.redirectTo}function vt(t){return t.outlet||je}function gt(t,e){if(t===e.value)return e;for(var r=0,n=e.children;r<n.length;r++){var o=n[r],i=gt(t,o);if(i)return i}return null}function _t(t,e,r){if(r.push(e),t===e.value)return r;for(var n=0,o=e.children;n<o.length;n++){var i=o[n],s=r.slice(0),a=_t(t,i,s);if(a.length>0)return a}return[]}function bt(t,e){var r=wt(t,e),o=new n.BehaviorSubject([new Be("",{})]),i=new n.BehaviorSubject({}),s=new n.BehaviorSubject({}),a=new n.BehaviorSubject({}),u=new n.BehaviorSubject(""),c=new or(o,i,a,u,s,je,e,r.root);return c.snapshot=r.root,new nr(new er(c,[]),r)}function wt(t,e){var r={},n={},o={},i="",s=new ir([],r,o,i,n,je,e,null,t.root,-1,{});return new sr("",new er(s,[]))}function Ct(t){for(var e=t.pathFromRoot,r=e.length-1;r>=1;){var n=e[r],o=e[r-1];if(n.routeConfig&&""===n.routeConfig.path)r--;else{if(o.component)break;r--}}return e.slice(r).reduce(function(t,e){var r=rr({},t.params,e.params),n=rr({},t.data,e.data),o=rr({},t.resolve,e._resolvedData);return{params:r,data:n,resolve:o}},{params:{},data:{},resolve:{}})}function Et(t,e){e.value._routerState=t,e.children.forEach(function(e){return Et(t,e)})}function St(t){var e=t.children.length>0?" { "+t.children.map(St).join(", ")+" } ":"";return""+t.value+e}function xt(t){if(t.snapshot){var e=t.snapshot;t.snapshot=t._futureSnapshot,M(e.queryParams,t._futureSnapshot.queryParams)||t.queryParams.next(t._futureSnapshot.queryParams),e.fragment!==t._futureSnapshot.fragment&&t.fragment.next(t._futureSnapshot.fragment),M(e.params,t._futureSnapshot.params)||t.params.next(t._futureSnapshot.params),O(e.url,t._futureSnapshot.url)||t.url.next(t._futureSnapshot.url),M(e.data,t._futureSnapshot.data)||t.data.next(t._futureSnapshot.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Tt(t,e){var r=M(t.params,e.params)&&z(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||Tt(t.parent,e.parent))}function Pt(t,e,r){var n=At(t,e._root,r?r._root:void 0);return new nr(n,e)}function At(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){var n=r.value;n._futureSnapshot=e.value;var o=Mt(t,e,r);return new er(n,o)}if(t.retrieve(e.value)){var i=t.retrieve(e.value).route;return Ot(e,i),i}var n=Rt(e.value),o=e.children.map(function(e){return At(t,e)});return new er(n,o)}function Ot(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(var r=0;r<t.children.length;++r)Ot(t.children[r],e.children[r])}function Mt(t,e,r){return e.children.map(function(e){for(var n=0,o=r.children;n<o.length;n++){var i=o[n];if(t.shouldReuseRoute(i.value.snapshot,e.value))return At(t,e,i)}return At(t,e)})}function Rt(t){return new or(new n.BehaviorSubject(t.url),new n.BehaviorSubject(t.params),new n.BehaviorSubject(t.queryParams),new n.BehaviorSubject(t.fragment),new n.BehaviorSubject(t.data),t.outlet,t.component,t)}function kt(t,e,r,n,o){if(0===r.length)return Nt(e.root,e.root,e,n,o);var i=jt(r);if(i.toRoot())return Nt(e.root,new He([],{}),e,n,o);
+return this._optionMap.has(e)?this._optionMap.get(e)._value:t},t}();ut.decorators=[{type:e.Directive,args:[{selector:"select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]",host:{"(change)":"onChange($event.target)","(blur)":"onTouched()"},providers:[at]}]}],ut.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]},ut.propDecorators={compareWith:[{type:e.Input}]};var ct=function(){function t(t,e,r){this._element=t,this._renderer=e,this._select=r,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._value=t,this._setElementValue(g(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._select?(this._value=t,this._setElementValue(g(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setElementProperty(this._element.nativeElement,"value",t)},t.prototype._setSelected=function(t){this._renderer.setElementProperty(this._element.nativeElement,"selected",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap["delete"](this.id),this._select.writeValue(this._select.value))},t}();ct.decorators=[{type:e.Directive,args:[{selector:"option"}]}],ct.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer},{type:ut,decorators:[{type:e.Optional},{type:e.Host}]}]},ct.propDecorators={ngValue:[{type:e.Input,args:["ngValue"]}],value:[{type:e.Input,args:["value"]}]};var lt=[W,nt,Z,it,ut,et],pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return b(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return T(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return P(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(V),ht=function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return this._cd.control?this._cd.control.untouched:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return this._cd.control?this._cd.control.touched:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return this._cd.control?this._cd.control.pristine:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return this._cd.control?this._cd.control.dirty:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return this._cd.control?this._cd.control.valid:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return this._cd.control?this._cd.control.invalid:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return this._cd.control?this._cd.control.pending:!1},enumerable:!0,configurable:!0}),t}(),ft={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},dt=function(t){function e(e){return t.call(this,e)||this}return j(e,t),e}(ht);dt.decorators=[{type:e.Directive,args:[{selector:"[formControlName],[ngModel],[formControl]",host:ft}]}],dt.ctorParameters=function(){return[{type:Y,decorators:[{type:e.Self}]}]};var mt=function(t){function e(e){return t.call(this,e)||this}return j(e,t),e}(ht);mt.decorators=[{type:e.Directive,args:[{selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:ft}]}],mt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Self}]}]};var yt="VALID",vt="INVALID",gt="PENDING",_t="DISABLED",bt=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this._pristine=!0,this._touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this._status===yt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this._status===vt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this._status==gt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._status===_t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this._status!==_t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this._errors},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this._pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this._valueChanges},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this._statusChanges},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=k(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=I(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){var e=(void 0===t?{}:t).onlySelf;this._touched=!0,this._parent&&!e&&this._parent.markAsTouched({onlySelf:e})},t.prototype.markAsUntouched=function(t){var e=(void 0===t?{}:t).onlySelf;this._touched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!e&&this._parent._updateTouched({onlySelf:e})},t.prototype.markAsDirty=function(t){var e=(void 0===t?{}:t).onlySelf;this._pristine=!1,this._parent&&!e&&this._parent.markAsDirty({onlySelf:e})},t.prototype.markAsPristine=function(t){var e=(void 0===t?{}:t).onlySelf;this._pristine=!0,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!e&&this._parent._updatePristine({onlySelf:e})},t.prototype.markAsPending=function(t){var e=(void 0===t?{}:t).onlySelf;this._status=gt,this._parent&&!e&&this._parent.markAsPending({onlySelf:e})},t.prototype.disable=function(t){var e=void 0===t?{}:t,r=e.onlySelf,n=e.emitEvent;this._status=_t,this._errors=null,this._forEachChild(function(t){t.disable({onlySelf:!0})}),this._updateValue(),n!==!1&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._updateAncestors(!!r),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){var e=void 0===t?{}:t,r=e.onlySelf,n=e.emitEvent;this._status=yt,this._forEachChild(function(t){t.enable({onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n}),this._updateAncestors(!!r),this._onDisabledChange.forEach(function(t){return t(!1)})},t.prototype._updateAncestors=function(t){this._parent&&!t&&(this._parent.updateValueAndValidity(),this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.setValue=function(){},t.prototype.patchValue=function(){},t.prototype.reset=function(){},t.prototype.updateValueAndValidity=function(t){var e=void 0===t?{}:t,r=e.onlySelf,n=e.emitEvent;this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this._errors=this._runValidator(),this._status=this._calculateStatus(),(this._status===yt||this._status===gt)&&this._runAsyncValidator(n)),n!==!1&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._parent&&!r&&this._parent.updateValueAndValidity({onlySelf:r,emitEvent:n})},t.prototype._updateTreeValidity=function(t){var e=(void 0===t?{emitEvent:!0}:t).emitEvent;this._forEachChild(function(t){return t._updateTreeValidity({emitEvent:e})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e})},t.prototype._setInitialStatus=function(){this._status=this._allControlsDisabled()?_t:yt},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this._status=gt;var r=u(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(function(r){return e.setErrors(r,{emitEvent:t})})}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){var r=(void 0===e?{}:e).emitEvent;this._errors=t,this._updateControlsErrors(r!==!1)},t.prototype.get=function(t){return R(this,t,".")},t.prototype.getError=function(t,e){var r=e?this.get(e):this;return r&&r._errors?r._errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this._status=this._calculateStatus(),t&&this._statusChanges.emit(this._status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this._valueChanges=new e.EventEmitter,this._statusChanges=new e.EventEmitter},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?_t:this._errors?vt:this._anyControlsHaveStatus(gt)?gt:this._anyControlsHaveStatus(vt)?vt:yt},t.prototype._updateValue=function(){},t.prototype._forEachChild=function(){},t.prototype._anyControls=function(){},t.prototype._allControlsDisabled=function(){},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls(function(e){return e.status===t})},t.prototype._anyControlsDirty=function(){return this._anyControls(function(t){return t.dirty})},t.prototype._anyControlsTouched=function(){return this._anyControls(function(t){return t.touched})},t.prototype._updatePristine=function(t){var e=(void 0===t?{}:t).onlySelf;this._pristine=!this._anyControlsDirty(),this._parent&&!e&&this._parent._updatePristine({onlySelf:e})},t.prototype._updateTouched=function(t){var e=(void 0===t?{}:t).onlySelf;this._touched=this._anyControlsTouched(),this._parent&&!e&&this._parent._updateTouched({onlySelf:e})},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t}(),wt=function(t){function e(e,r,n){void 0===e&&(e=null);var o=t.call(this,k(r),I(n))||this;return o._onChange=[],o._applyFormState(e),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o._initObservables(),o}return j(e,t),e.prototype.setValue=function(t,e){var r=this,n=void 0===e?{}:e,o=n.onlySelf,i=n.emitEvent,s=n.emitModelToViewChange,a=n.emitViewToModelChange;this._value=t,this._onChange.length&&s!==!1&&this._onChange.forEach(function(t){return t(r._value,a!==!1)}),this.updateValueAndValidity({onlySelf:o,emitEvent:i})},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);var r=void 0===e?{}:e,n=r.onlySelf,o=r.emitEvent;this._applyFormState(t),this.markAsPristine({onlySelf:n}),this.markAsUntouched({onlySelf:n}),this.setValue(this._value,{onlySelf:n,emitEvent:o})},e.prototype._updateValue=function(){},e.prototype._anyControls=function(){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(){},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this._value=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this._value=t},e}(bt),Ct=function(t){function e(e,r,n){var o=t.call(this,r||null,n||null)||this;return o.controls=e,o._initObservables(),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return j(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var r=this,n=void 0===e?{}:e,o=n.onlySelf,i=n.emitEvent;this._checkAllValuesPresent(t),Object.keys(t).forEach(function(e){r._throwIfControlMissing(e),r.controls[e].setValue(t[e],{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:o,emitEvent:i})},e.prototype.patchValue=function(t,e){var r=this,n=void 0===e?{}:e,o=n.onlySelf,i=n.emitEvent;Object.keys(t).forEach(function(e){r.controls[e]&&r.controls[e].patchValue(t[e],{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:o,emitEvent:i})},e.prototype.reset=function(t,e){void 0===t&&(t={});var r=void 0===e?{}:e,n=r.onlySelf,o=r.emitEvent;this._forEachChild(function(e,r){e.reset(t[r],{onlySelf:!0,emitEvent:o})}),this.updateValueAndValidity({onlySelf:n,emitEvent:o}),this._updatePristine({onlySelf:n}),this._updateTouched({onlySelf:n})},e.prototype.getRawValue=function(){return this._reduceChildren({},function(t,e,r){return t[r]=e instanceof wt?e.value:e.getRawValue(),t})},e.prototype._throwIfControlMissing=function(t){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[t])throw new Error("Cannot find form control with name: "+t+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach(function(r){return t(e.controls[r],r)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})},e.prototype._updateValue=function(){this._value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,r=!1;return this._forEachChild(function(n,o){r=r||e.contains(o)&&t(n)}),r},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},function(e,r,n){return(r.enabled||t.disabled)&&(e[n]=r.value),e})},e.prototype._reduceChildren=function(t,e){var r=t;return this._forEachChild(function(t,n){r=e(r,t,n)}),r},e.prototype._allControlsDisabled=function(){for(var t=0,e=Object.keys(this.controls);t<e.length;t++){var r=e[t];if(this.controls[r].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,r){if(void 0===t[r])throw new Error("Must supply a value for form control with name: '"+r+"'.")})},e}(bt),Et=function(t){function e(e,r,n){var o=t.call(this,r||null,n||null)||this;return o.controls=e,o._initObservables(),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return j(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var r=this,n=void 0===e?{}:e,o=n.onlySelf,i=n.emitEvent;this._checkAllValuesPresent(t),t.forEach(function(t,e){r._throwIfControlMissing(e),r.at(e).setValue(t,{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:o,emitEvent:i})},e.prototype.patchValue=function(t,e){var r=this,n=void 0===e?{}:e,o=n.onlySelf,i=n.emitEvent;t.forEach(function(t,e){r.at(e)&&r.at(e).patchValue(t,{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:o,emitEvent:i})},e.prototype.reset=function(t,e){void 0===t&&(t=[]);var r=void 0===e?{}:e,n=r.onlySelf,o=r.emitEvent;this._forEachChild(function(e,r){e.reset(t[r],{onlySelf:!0,emitEvent:o})}),this.updateValueAndValidity({onlySelf:n,emitEvent:o}),this._updatePristine({onlySelf:n}),this._updateTouched({onlySelf:n})},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof wt?t.value:t.getRawValue()})},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,r){t(e,r)})},e.prototype._updateValue=function(){var t=this;this._value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,r){if(void 0===t[r])throw new Error("Must supply a value for form control at index: "+r+".")})},e.prototype._allControlsDisabled=function(){for(var t=0,e=this.controls;t<e.length;t++){var r=e[t];if(r.enabled)return!1}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(bt),St={provide:V,useExisting:e.forwardRef(function(){return Tt})},xt=Promise.resolve(null),Tt=function(t){function r(r,n){var o=t.call(this)||this;return o._submitted=!1,o.ngSubmit=new e.EventEmitter,o.form=new Ct({},T(r),P(n)),o}return j(r,t),Object.defineProperty(r.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),r.prototype.addControl=function(t){var e=this;xt.then(function(){var r=e._findContainer(t.path);t._control=r.registerControl(t.name,t.control),w(t.control,t),t.control.updateValueAndValidity({emitEvent:!1})})},r.prototype.getControl=function(t){return this.form.get(t.path)},r.prototype.removeControl=function(t){var e=this;xt.then(function(){var r=e._findContainer(t.path);r&&r.removeControl(t.name)})},r.prototype.addFormGroup=function(t){var e=this;xt.then(function(){var r=e._findContainer(t.path),n=new Ct({});E(n,t),r.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})},r.prototype.removeFormGroup=function(t){var e=this;xt.then(function(){var r=e._findContainer(t.path);r&&r.removeControl(t.name)})},r.prototype.getFormGroup=function(t){return this.form.get(t.path)},r.prototype.updateModel=function(t,e){var r=this;xt.then(function(){var n=r.form.get(t.path);n.setValue(e)})},r.prototype.setValue=function(t){this.control.setValue(t)},r.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},r.prototype.onReset=function(){this.resetForm()},r.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},r.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},r}(V);Tt.decorators=[{type:e.Directive,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]",providers:[St],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],Tt.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]}]};var Pt={formControlName:'\n    <div [formGroup]="myGroup">\n      <input formControlName="firstName">\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });',formGroupName:'\n    <div [formGroup]="myGroup">\n       <div formGroupName="person">\n          <input formControlName="firstName">\n       </div>\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });',formArrayName:'\n    <div [formGroup]="myGroup">\n      <div formArrayName="cities">\n        <div *ngFor="let city of cityArray.controls; index as i">\n          <input [formControlName]="i">\n        </div>\n      </div>\n    </div>\n\n    In your class:\n\n    this.cityArray = new FormArray([new FormControl(\'SF\')]);\n    this.myGroup = new FormGroup({\n      cities: this.cityArray\n    });',ngModelGroup:'\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>',ngModelWithFormGroup:'\n    <div [formGroup]="myGroup">\n       <input formControlName="firstName">\n       <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n    </div>\n  '},At=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      '+Pt.formControlName+"\n\n      Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n      Example:\n\n      "+Pt.ngModelWithFormGroup)},t.formGroupNameException=function(){throw new Error("\n      ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n      Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n      "+Pt.formGroupName+"\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      "+Pt.ngModelGroup)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n      control must be defined as \'standalone\' in ngModelOptions.\n\n      Example 1: <input [(ngModel)]="person.firstName" name="first">\n      Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},t.modelGroupParentException=function(){throw new Error("\n      ngModelGroup cannot be used with a parent formGroup directive.\n\n      Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n      "+Pt.formGroupName+"\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      "+Pt.ngModelGroup)},t}(),Ot={provide:V,useExisting:e.forwardRef(function(){return Mt})},Mt=function(t){function e(e,r,n){var o=t.call(this)||this;return o._parent=e,o._validators=r,o._asyncValidators=n,o}return j(e,t),e.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof Tt||At.modelGroupParentException()},e}(pt);Mt.decorators=[{type:e.Directive,args:[{selector:"[ngModelGroup]",providers:[Ot],exportAs:"ngModelGroup"}]}],Mt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]}]},Mt.propDecorators={name:[{type:e.Input,args:["ngModelGroup"]}]};var Rt={provide:Y,useExisting:e.forwardRef(function(){return It})},kt=Promise.resolve(null),It=function(t){function r(r,n,o,i){var s=t.call(this)||this;return s._control=new wt,s._registered=!1,s.update=new e.EventEmitter,s._parent=r,s._rawValidators=n||[],s._rawAsyncValidators=o||[],s.valueAccessor=M(s,i),s}return j(r,t),r.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),A(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},r.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(r.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"path",{get:function(){return this._parent?b(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"validator",{get:function(){return T(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"asyncValidator",{get:function(){return P(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),r.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},r.prototype._setUpControl=function(){this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},r.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},r.prototype._setUpStandalone=function(){w(this._control,this),this._control.updateValueAndValidity({emitEvent:!1})},r.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},r.prototype._checkParentType=function(){!(this._parent instanceof Mt)&&this._parent instanceof pt?At.formGroupNameException():this._parent instanceof Mt||this._parent instanceof Tt||At.modelParentException()},r.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||At.missingNameException()},r.prototype._updateValue=function(t){var e=this;kt.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},r.prototype._updateDisabled=function(t){var e=this,r=t.isDisabled.currentValue,n=""===r||r&&"false"!==r;kt.then(function(){n&&!e.control.disabled?e.control.disable():!n&&e.control.disabled&&e.control.enable()})},r}(Y);It.decorators=[{type:e.Directive,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[Rt],exportAs:"ngModel"}]}],It.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[z]}]}]},It.propDecorators={name:[{type:e.Input}],isDisabled:[{type:e.Input,args:["disabled"]}],model:[{type:e.Input,args:["ngModel"]}],options:[{type:e.Input,args:["ngModelOptions"]}],update:[{type:e.Output,args:["ngModelChange"]}]};var Nt=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      "+Pt.formControlName)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n       that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n       Option 1:  Update the parent to be formGroupName (reactive form strategy)\n\n        '+Pt.formGroupName+"\n\n        Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n        "+Pt.ngModelGroup)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n       Example:\n\n       "+Pt.formControlName)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive.  You'll want to add a formGroup\n      directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      "+Pt.formGroupName)},t.arrayParentException=function(){throw new Error("formArrayName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n        Example:\n\n        "+Pt.formArrayName)},t.disabledAttrWarning=function(){console.warn("\n      It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n      when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n      you. We recommend using this approach to avoid 'changed after checked' errors.\n       \n      Example: \n      form = new FormGroup({\n        first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n        last: new FormControl('Drew', Validators.required)\n      });\n    ")},t}(),Dt={provide:Y,useExisting:e.forwardRef(function(){return jt})},jt=function(t){function r(r,n,o){var i=t.call(this)||this;return i.update=new e.EventEmitter,i._rawValidators=r||[],i._rawAsyncValidators=n||[],i.valueAccessor=M(i,o),i}
+return j(r,t),Object.defineProperty(r.prototype,"isDisabled",{set:function(){Nt.disabledAttrWarning()},enumerable:!0,configurable:!0}),r.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&(w(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),A(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(r.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"validator",{get:function(){return T(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"asyncValidator",{get:function(){return P(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),r.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},r.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},r}(Y);jt.decorators=[{type:e.Directive,args:[{selector:"[formControl]",providers:[Dt],exportAs:"ngForm"}]}],jt.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[z]}]}]},jt.propDecorators={form:[{type:e.Input,args:["formControl"]}],model:[{type:e.Input,args:["ngModel"]}],update:[{type:e.Output,args:["ngModelChange"]}],isDisabled:[{type:e.Input,args:["disabled"]}]};var Lt={provide:V,useExisting:e.forwardRef(function(){return Vt})},Vt=function(t){function r(r,n){var o=t.call(this)||this;return o._validators=r,o._asyncValidators=n,o._submitted=!1,o.directives=[],o.form=null,o.ngSubmit=new e.EventEmitter,o}return j(r,t),r.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(r.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),r.prototype.addControl=function(t){var e=this.form.get(t.path);return w(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},r.prototype.getControl=function(t){return this.form.get(t.path)},r.prototype.removeControl=function(t){N(this.directives,t)},r.prototype.addFormGroup=function(t){var e=this.form.get(t.path);E(e,t),e.updateValueAndValidity({emitEvent:!1})},r.prototype.removeFormGroup=function(){},r.prototype.getFormGroup=function(t){return this.form.get(t.path)},r.prototype.addFormArray=function(t){var e=this.form.get(t.path);E(e,t),e.updateValueAndValidity({emitEvent:!1})},r.prototype.removeFormArray=function(){},r.prototype.getFormArray=function(t){return this.form.get(t.path)},r.prototype.updateModel=function(t,e){var r=this.form.get(t.path);r.setValue(e)},r.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},r.prototype.onReset=function(){this.resetForm()},r.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},r.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var r=t.form.get(e.path);e._control!==r&&(C(e._control,e),r&&w(r,e),e._control=r)}),this.form._updateTreeValidity({emitEvent:!1})},r.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},r.prototype._updateValidators=function(){var t=T(this._validators);this.form.validator=q.compose([this.form.validator,t]);var e=P(this._asyncValidators);this.form.asyncValidator=q.composeAsync([this.form.asyncValidator,e])},r.prototype._checkFormPresent=function(){this.form||Nt.missingFormException()},r}(V);Vt.decorators=[{type:e.Directive,args:[{selector:"[formGroup]",providers:[Lt],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],Vt.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]}]},Vt.propDecorators={form:[{type:e.Input,args:["formGroup"]}],ngSubmit:[{type:e.Output}]};var Ft={provide:V,useExisting:e.forwardRef(function(){return Ut})},Ut=function(t){function e(e,r,n){var o=t.call(this)||this;return o._parent=e,o._validators=r,o._asyncValidators=n,o}return j(e,t),e.prototype._checkParentType=function(){D(this._parent)&&Nt.groupParentException()},e}(pt);Ut.decorators=[{type:e.Directive,args:[{selector:"[formGroupName]",providers:[Ft]}]}],Ut.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]}]},Ut.propDecorators={name:[{type:e.Input,args:["formGroupName"]}]};var Bt={provide:V,useExisting:e.forwardRef(function(){return Ht})},Ht=function(t){function e(e,r,n){var o=t.call(this)||this;return o._parent=e,o._validators=r,o._asyncValidators=n,o}return j(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return b(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return T(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return P(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){D(this._parent)&&Nt.arrayParentException()},e}(V);Ht.decorators=[{type:e.Directive,args:[{selector:"[formArrayName]",providers:[Bt]}]}],Ht.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]}]},Ht.propDecorators={name:[{type:e.Input,args:["formArrayName"]}]};var qt={provide:Y,useExisting:e.forwardRef(function(){return zt})},zt=function(t){function r(r,n,o,i){var s=t.call(this)||this;return s._added=!1,s.update=new e.EventEmitter,s._parent=r,s._rawValidators=n||[],s._rawAsyncValidators=o||[],s.valueAccessor=M(s,i),s}return j(r,t),Object.defineProperty(r.prototype,"isDisabled",{set:function(){Nt.disabledAttrWarning()},enumerable:!0,configurable:!0}),r.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),A(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},r.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},r.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(r.prototype,"path",{get:function(){return b(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"validator",{get:function(){return T(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"asyncValidator",{get:function(){return P(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),r.prototype._checkParentType=function(){!(this._parent instanceof Ut)&&this._parent instanceof pt?Nt.ngModelGroupException():this._parent instanceof Ut||this._parent instanceof Vt||this._parent instanceof Ht||Nt.controlParentException()},r.prototype._setUpControl=function(){this._checkParentType(),this._control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},r}(Y);zt.decorators=[{type:e.Directive,args:[{selector:"[formControlName]",providers:[qt]}]}],zt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[z]}]}]},zt.propDecorators={name:[{type:e.Input,args:["formControlName"]}],model:[{type:e.Input,args:["ngModel"]}],update:[{type:e.Output,args:["ngModelChange"]}],isDisabled:[{type:e.Input,args:["disabled"]}]};var Gt={provide:U,useExisting:e.forwardRef(function(){return $t}),multi:!0},Wt={provide:U,useExisting:e.forwardRef(function(){return Kt}),multi:!0},$t=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&t!==!1&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?q.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();$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}]};var Kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.validate=function(t){return this.required?q.requiredTrue(t):null},e}($t);Kt.decorators=[{type:e.Directive,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[Wt],host:{"[attr.required]":'required ? "" : null'}}]}],Kt.ctorParameters=function(){return[]};var Qt={provide:U,useExisting:e.forwardRef(function(){return Xt}),multi:!0},Xt=function(){function t(){}return Object.defineProperty(t.prototype,"email",{set:function(t){this._enabled=""===t||t===!0||"true"===t,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this._enabled?q.email(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();Xt.decorators=[{type:e.Directive,args:[{selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[Qt]}]}],Xt.ctorParameters=function(){return[]},Xt.propDecorators={email:[{type:e.Input}]};var Zt={provide:U,useExisting:e.forwardRef(function(){return Yt}),multi:!0},Yt=function(){function t(){}return t.prototype.ngOnChanges=function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null==this.minlength?null:this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=q.minLength(parseInt(this.minlength,10))},t}();Yt.decorators=[{type:e.Directive,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[Zt],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],Yt.ctorParameters=function(){return[]},Yt.propDecorators={minlength:[{type:e.Input}]};var Jt={provide:U,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=q.maxLength(parseInt(this.maxlength,10))},t}();te.decorators=[{type:e.Directive,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[Jt],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],te.ctorParameters=function(){return[]},te.propDecorators={maxlength:[{type:e.Input}]};var ee={provide:U,useExisting:e.forwardRef(function(){return re}),multi:!0},re=function(){function t(){}return t.prototype.ngOnChanges=function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=q.pattern(this.pattern)},t}();re.decorators=[{type:e.Directive,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[ee],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],re.ctorParameters=function(){return[]},re.propDecorators={pattern:[{type:e.Input}]};var ne=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var r=this._reduceControls(t),n=null!=e?e.validator:null,o=null!=e?e.asyncValidator:null;return new Ct(r,n,o)},t.prototype.control=function(t,e,r){return new wt(t,e,r)},t.prototype.array=function(t,e,r){var n=this,o=t.map(function(t){return n._createControl(t)});return new Et(o,e,r)},t.prototype._reduceControls=function(t){var e=this,r={};return Object.keys(t).forEach(function(n){r[n]=e._createControl(t[n])}),r},t.prototype._createControl=function(t){if(t instanceof wt||t instanceof Ct||t instanceof Et)return t;if(Array.isArray(t)){var e=t[0],r=t.length>1?t[1]:null,n=t.length>2?t[2]:null;return this.control(e,r,n)}return this.control(t)},t}();ne.decorators=[{type:e.Injectable}],ne.ctorParameters=function(){return[]};var oe=new e.Version("4.1.0"),ie=function(){function t(){}return t}();ie.decorators=[{type:e.Directive,args:[{selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}}]}],ie.ctorParameters=function(){return[]};var se=[ie,st,ct,Q,Z,nt,W,it,ut,et,dt,mt,$t,Yt,te,re,Kt,Xt],ae=[It,Mt,Tt],ue=[jt,Vt,zt,Ut,Ht],ce=function(){function t(){}return t}();ce.decorators=[{type:e.NgModule,args:[{declarations:se,exports:se}]}],ce.ctorParameters=function(){return[]};var le=function(){function t(){}return t}();le.decorators=[{type:e.NgModule,args:[{declarations:ae,providers:[tt],exports:[ce,ae]}]}],le.ctorParameters=function(){return[]};var pe=function(){function t(){}return t}();pe.decorators=[{type:e.NgModule,args:[{declarations:[ue],providers:[ne,tt],exports:[ce,ue]}]}],pe.ctorParameters=function(){return[]},t.AbstractControlDirective=L,t.AbstractFormGroupDirective=pt,t.CheckboxControlValueAccessor=W,t.ControlContainer=V,t.NG_VALUE_ACCESSOR=z,t.COMPOSITION_BUFFER_MODE=K,t.DefaultValueAccessor=Q,t.NgControl=Y,t.NgControlStatus=dt,t.NgControlStatusGroup=mt,t.NgForm=Tt,t.NgModel=It,t.NgModelGroup=Mt,t.RadioControlValueAccessor=et,t.FormControlDirective=jt,t.FormControlName=zt,t.FormGroupDirective=Vt,t.FormArrayName=Ht,t.FormGroupName=Ut,t.NgSelectOption=st,t.SelectControlValueAccessor=it,t.SelectMultipleControlValueAccessor=ut,t.CheckboxRequiredValidator=Kt,t.EmailValidator=Xt,t.MaxLengthValidator=te,t.MinLengthValidator=Yt,t.PatternValidator=re,t.RequiredValidator=$t,t.FormBuilder=ne,t.AbstractControl=bt,t.FormArray=Et,t.FormControl=wt,t.FormGroup=Ct,t.NG_ASYNC_VALIDATORS=B,t.NG_VALIDATORS=U,t.Validators=q,t.VERSION=oe,t.FormsModule=le,t.ReactiveFormsModule=pe,t.ɵba=ce,t.ɵz=ue,t.ɵx=se,t.ɵy=ae,t.ɵa=G,t.ɵb=$,t.ɵc=ht,t.ɵd=ft,t.ɵe=St,t.ɵf=Rt,t.ɵg=Ot,t.ɵbf=ie,t.ɵbb=X,t.ɵbc=Z,t.ɵh=J,t.ɵi=tt,t.ɵbd=rt,t.ɵbe=nt,t.ɵj=Dt,t.ɵk=qt,t.ɵl=Lt,t.ɵn=Bt,t.ɵm=Ft,t.ɵo=ot,t.ɵq=ct,t.ɵp=at,t.ɵs=Wt,t.ɵt=Qt,t.ɵv=Jt,t.ɵu=Zt,t.ɵw=ee,t.ɵr=Gt,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":8,"@angular/platform-browser":12,"rxjs/observable/forkJoin":34,"rxjs/observable/fromPromise":36,"rxjs/operator/map":46}],10:[function(e,r,n){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/core"),e("rxjs/Observable"),e("@angular/platform-browser")):"function"==typeof t&&t.amd?t(["exports","@angular/core","rxjs/Observable","@angular/platform-browser"],i):i((o.ng=o.ng||{},o.ng.http=o.ng.http||{}),o.ng.core,o.Rx,o.ng.platformBrowser)}(this,function(t,e,r,n){"use strict";function o(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return v.Get;case"POST":return v.Post;case"PUT":return v.Put;case"DELETE":return v.Delete;case"OPTIONS":return v.Options;case"HEAD":return v.Head;case"PATCH":return v.Patch}throw new Error('Invalid request method. The method "'+t+'" is not supported.')}function i(t){return"responseURL"in t?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}function s(t){for(var e=new Uint16Array(t.length),r=0,n=t.length;n>r;r++)e[r]=t.charCodeAt(r);return e.buffer}function a(t){void 0===t&&(t="");var e=new Map;if(t.length>0){var r=t.split("&");r.forEach(function(t){var r=t.indexOf("="),n=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)],o=n[0],i=n[1],s=e.get(o)||[];s.push(i),e.set(o,s)})}return e}function u(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function c(){var t="object"==typeof window?window:{};return null===D&&(D=t[N]={}),D}function l(t,e){return t.createConnection(e).response}function p(t,e,r,n){var o=t;return o.merge(e?new $({method:e.method||r,url:e.url||n,search:e.search,params:e.params,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType}):new $({method:r,url:n}))}function h(){return new G}function f(t,e){return new et(t,e)}function d(t,e){return new rt(t,e)}var m=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},y=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}();y.decorators=[{type:e.Injectable}],y.ctorParameters=function(){return[]};var v={};v.Get=0,v.Post=1,v.Put=2,v.Delete=3,v.Options=4,v.Head=5,v.Patch=6,v[v.Get]="Get",v[v.Post]="Post",v[v.Put]="Put",v[v.Delete]="Delete",v[v.Options]="Options",v[v.Head]="Head",v[v.Patch]="Patch";var g={};g.Unsent=0,g.Open=1,g.HeadersReceived=2,g.Loading=3,g.Done=4,g.Cancelled=5,g[g.Unsent]="Unsent",g[g.Open]="Open",g[g.HeadersReceived]="HeadersReceived",g[g.Loading]="Loading",g[g.Done]="Done",g[g.Cancelled]="Cancelled";var _={};_.Basic=0,_.Cors=1,_.Default=2,_.Error=3,_.Opaque=4,_[_.Basic]="Basic",_[_.Cors]="Cors",_[_.Default]="Default",_[_.Error]="Error",_[_.Opaque]="Opaque";var b={};b.NONE=0,b.JSON=1,b.FORM=2,b.FORM_DATA=3,b.TEXT=4,b.BLOB=5,b.ARRAY_BUFFER=6,b[b.NONE]="NONE",b[b.JSON]="JSON",b[b.FORM]="FORM",b[b.FORM_DATA]="FORM_DATA",b[b.TEXT]="TEXT",b[b.BLOB]="BLOB",b[b.ARRAY_BUFFER]="ARRAY_BUFFER";var w={};w.Text=0,w.Json=1,w.ArrayBuffer=2,w.Blob=3,w[w.Text]="Text",w[w.Json]="Json",w[w.ArrayBuffer]="ArrayBuffer",w[w.Blob]="Blob";var C=function(){function t(e){var r=this;return this._headers=new Map,this._normalizedNames=new Map,e?e instanceof t?void e.forEach(function(t,e){t.forEach(function(t){return r.append(e,t)})}):void Object.keys(e).forEach(function(t){var n=Array.isArray(e[t])?e[t]:[e[t]];r["delete"](t),n.forEach(function(e){return r.append(t,e)})}):void 0}return t.fromResponseHeaderString=function(e){var r=new t;return e.split("\n").forEach(function(t){var e=t.indexOf(":");if(e>0){var n=t.slice(0,e),o=t.slice(e+1).trim();r.set(n,o)}}),r},t.prototype.append=function(t,e){var r=this.getAll(t);null===r?this.set(t,e):r.push(e)},t.prototype["delete"]=function(t){var e=t.toLowerCase();this._normalizedNames["delete"](e),this._headers["delete"](e)},t.prototype.forEach=function(t){var e=this;this._headers.forEach(function(r,n){return t(r,e._normalizedNames.get(n),e._headers)})},t.prototype.get=function(t){var e=this.getAll(t);return null===e?null:e.length>0?e[0]:null},t.prototype.has=function(t){return this._headers.has(t.toLowerCase())},t.prototype.keys=function(){return Array.from(this._normalizedNames.values())},t.prototype.set=function(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)},t.prototype.values=function(){return Array.from(this._headers.values())},t.prototype.toJSON=function(){var t=this,e={};return this._headers.forEach(function(r,n){var o=[];r.forEach(function(t){return o.push.apply(o,t.split(","))}),e[t._normalizedNames.get(n)]=o}),e},t.prototype.getAll=function(t){return this.has(t)?this._headers.get(t.toLowerCase())||null:null},t.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},t.prototype.mayBeSetNormalizedName=function(t){var e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)},t}(),E=function(){function t(t){var e=void 0===t?{}:t,r=e.body,n=e.status,o=e.headers,i=e.statusText,s=e.type,a=e.url;this.body=null!=r?r:null,this.status=null!=n?n:null,this.headers=null!=o?o:null,this.statusText=null!=i?i:null,this.type=null!=s?s:null,this.url=null!=a?a:null}return t.prototype.merge=function(e){return new t({body:e&&null!=e.body?e.body:this.body,status:e&&null!=e.status?e.status:this.status,headers:e&&null!=e.headers?e.headers:this.headers,statusText:e&&null!=e.statusText?e.statusText:this.statusText,type:e&&null!=e.type?e.type:this.type,url:e&&null!=e.url?e.url:this.url})},t}(),S=function(t){function e(){return t.call(this,{status:200,statusText:"Ok",type:_.Default,headers:new C})||this}return m(e,t),e}(E);S.decorators=[{type:e.Injectable}],S.ctorParameters=function(){return[]};var x=function(){function t(){}return t.prototype.createConnection=function(){},t}(),T=function(){function t(){}return t}(),P=function(){function t(){}return t.prototype.configureRequest=function(){},t}(),A=function(t){return t>=200&&300>t},O=function(){function t(){}return t.prototype.encodeKey=function(t){return u(t)},t.prototype.encodeValue=function(t){return u(t)},t}(),M=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=new O),this.rawParams=t,this.queryEncoder=e,this.paramsMap=a(t)}return t.prototype.clone=function(){var e=new t("",this.queryEncoder);return e.appendAll(this),e},t.prototype.has=function(t){return this.paramsMap.has(t)},t.prototype.get=function(t){var e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null},t.prototype.getAll=function(t){return this.paramsMap.get(t)||[]},t.prototype.set=function(t,e){if(void 0===e||null===e)return void this["delete"](t);var r=this.paramsMap.get(t)||[];r.length=0,r.push(e),this.paramsMap.set(t,r)},t.prototype.setAll=function(t){var e=this;t.paramsMap.forEach(function(t,r){var n=e.paramsMap.get(r)||[];n.length=0,n.push(t[0]),e.paramsMap.set(r,n)})},t.prototype.append=function(t,e){if(void 0!==e&&null!==e){var r=this.paramsMap.get(t)||[];r.push(e),this.paramsMap.set(t,r)}},t.prototype.appendAll=function(t){var e=this;t.paramsMap.forEach(function(t,r){for(var n=e.paramsMap.get(r)||[],o=0;o<t.length;++o)n.push(t[o]);e.paramsMap.set(r,n)})},t.prototype.replaceAll=function(t){var e=this;t.paramsMap.forEach(function(t,r){var n=e.paramsMap.get(r)||[];n.length=0;for(var o=0;o<t.length;++o)n.push(t[o]);e.paramsMap.set(r,n)})},t.prototype.toString=function(){var t=this,e=[];return this.paramsMap.forEach(function(r,n){r.forEach(function(r){return e.push(t.queryEncoder.encodeKey(n)+"="+t.queryEncoder.encodeValue(r))})}),e.join("&")},t.prototype["delete"]=function(t){this.paramsMap["delete"](t)},t}(),R=function(){function t(){}return t.prototype.json=function(){return"string"==typeof this._body?JSON.parse(this._body):this._body instanceof ArrayBuffer?JSON.parse(this.text()):this._body},t.prototype.text=function(){return this._body instanceof M?this._body.toString():this._body instanceof ArrayBuffer?String.fromCharCode.apply(null,new Uint16Array(this._body)):null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()},t.prototype.arrayBuffer=function(){return this._body instanceof ArrayBuffer?this._body:s(this.text())},t.prototype.blob=function(){if(this._body instanceof Blob)return this._body;if(this._body instanceof ArrayBuffer)return new Blob([this._body]);throw new Error("The request body isn't either a blob or an array buffer")},t}(),k=function(t){function e(e){var r=t.call(this)||this;return r._body=e.body,r.status=e.status,r.ok=r.status>=200&&r.status<=299,r.statusText=e.statusText,r.headers=e.headers,r.type=e.type,r.url=e.url,r}return m(e,t),e.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},e}(R),I=0,N="__ng_jsonp__",D=null,j=function(){function t(){}return t.prototype.build=function(t){var e=document.createElement("script");return e.src=t,e},t.prototype.nextRequestID=function(){return"__req"+I++},t.prototype.requestCallback=function(t){return N+"."+t+".finished"},t.prototype.exposeConnection=function(t,e){var r=c();r[t]=e},t.prototype.removeConnection=function(t){var e=c();e[t]=null},t.prototype.send=function(t){document.body.appendChild(t)},t.prototype.cleanup=function(t){t.parentNode&&t.parentNode.removeChild(t)},t}();j.decorators=[{type:e.Injectable}],j.ctorParameters=function(){return[]};var L="JSONP injected script did not invoke callback.",V="JSONP requests must use GET request method.",F=function(){function t(){}return t.prototype.finished=function(){},t}(),U=function(t){function e(e,n,o){var i=t.call(this)||this;if(i._dom=n,i.baseResponseOptions=o,i._finished=!1,e.method!==v.Get)throw new TypeError(V);return i.request=e,i.response=new r.Observable(function(t){i.readyState=g.Loading;var r=i._id=n.nextRequestID();n.exposeConnection(r,i);var s=n.requestCallback(i._id),a=e.url;a.indexOf("=JSONP_CALLBACK&")>-1?a=a.replace("=JSONP_CALLBACK&","="+s+"&"):a.lastIndexOf("=JSONP_CALLBACK")===a.length-"=JSONP_CALLBACK".length&&(a=a.substring(0,a.length-"=JSONP_CALLBACK".length)+("="+s));var u=i._script=n.build(a),c=function(){if(i.readyState!==g.Cancelled){if(i.readyState=g.Done,n.cleanup(u),!i._finished){var e=new E({body:L,type:_.Error,url:a});return o&&(e=o.merge(e)),void t.error(new k(e))}var r=new E({body:i._responseData,url:a});i.baseResponseOptions&&(r=i.baseResponseOptions.merge(r)),t.next(new k(r)),t.complete()}},l=function(e){if(i.readyState!==g.Cancelled){i.readyState=g.Done,n.cleanup(u);var r=new E({body:e.message,type:_.Error});o&&(r=o.merge(r)),t.error(new k(r))}};return u.addEventListener("load",c),u.addEventListener("error",l),n.send(u),function(){i.readyState=g.Cancelled,u.removeEventListener("load",c),u.removeEventListener("error",l),i._dom.cleanup(u)}}),i}return m(e,t),e.prototype.finished=function(t){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==g.Cancelled&&(this._responseData=t)},e}(F),B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e}(x),H=function(t){function e(e,r){var n=t.call(this)||this;return n._browserJSONP=e,n._baseResponseOptions=r,n}return m(e,t),e.prototype.createConnection=function(t){return new U(t,this._browserJSONP,this._baseResponseOptions)},e}(B);H.decorators=[{type:e.Injectable}],H.ctorParameters=function(){return[{type:j},{type:E}]};var q=/^\)\]\}',?\n/,z=function(){function t(t,e,n){var o=this;this.request=t,this.response=new r.Observable(function(r){var s=e.build();s.open(v[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(s.withCredentials=t.withCredentials);var a=function(){var e=1223===s.status?204:s.status,o=null;204!==e&&(o="undefined"==typeof s.response?s.responseText:s.response,"string"==typeof o&&(o=o.replace(q,""))),0===e&&(e=o?200:0);var a=C.fromResponseHeaderString(s.getAllResponseHeaders()),u=i(s)||t.url,c=s.statusText||"OK",l=new E({body:o,status:e,headers:a,statusText:c,url:u});null!=n&&(l=n.merge(l));var p=new k(l);return p.ok=A(e),p.ok?(r.next(p),void r.complete()):void r.error(p)},u=function(t){var e=new E({body:t,type:_.Error,status:s.status,statusText:s.statusText});null!=n&&(e=n.merge(e)),r.error(new k(e))};if(o.setDetectedContentType(t,s),null==t.headers&&(t.headers=new C),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach(function(t,e){return s.setRequestHeader(e,t.join(","))}),null!=t.responseType&&null!=s.responseType)switch(t.responseType){case w.ArrayBuffer:s.responseType="arraybuffer";break;case w.Json:s.responseType="json";break;case w.Text:s.responseType="text";break;case w.Blob:s.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return s.addEventListener("load",a),s.addEventListener("error",u),s.send(o.request.getBody()),function(){s.removeEventListener("load",a),s.removeEventListener("error",u),s.abort()}})}return t.prototype.setDetectedContentType=function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case b.NONE:break;case b.JSON:e.setRequestHeader("content-type","application/json");break;case b.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case b.TEXT:e.setRequestHeader("content-type","text/plain");break;case b.BLOB:var r=t.blob();r.type&&e.setRequestHeader("content-type",r.type)}},t}(),G=function(){function t(t,e){void 0===t&&(t="XSRF-TOKEN"),void 0===e&&(e="X-XSRF-TOKEN"),this._cookieName=t,this._headerName=e}return t.prototype.configureRequest=function(t){var e=n.ɵgetDOM().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)},t}(),W=function(){function t(t,e,r){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=r}return t.prototype.createConnection=function(t){return this._xsrfStrategy.configureRequest(t),new z(t,this._browserXHR,this._baseResponseOptions)},t}();W.decorators=[{type:e.Injectable}],W.ctorParameters=function(){return[{type:y},{type:E},{type:P}]};var $=function(){function t(t){var e=void 0===t?{}:t,r=e.method,n=e.headers,i=e.body,s=e.url,a=e.search,u=e.params,c=e.withCredentials,l=e.responseType;this.method=null!=r?o(r):null,this.headers=null!=n?n:null,this.body=null!=i?i:null,this.url=null!=s?s:null,this.params=this._mergeSearchParams(u||a),this.withCredentials=null!=c?c:null,this.responseType=null!=l?l:null}return Object.defineProperty(t.prototype,"search",{get:function(){return this.params},set:function(t){this.params=t},enumerable:!0,configurable:!0}),t.prototype.merge=function(e){return new t({method:e&&null!=e.method?e.method:this.method,headers:e&&null!=e.headers?e.headers:new C(this.headers),body:e&&null!=e.body?e.body:this.body,url:e&&null!=e.url?e.url:this.url,params:e&&this._mergeSearchParams(e.params||e.search),withCredentials:e&&null!=e.withCredentials?e.withCredentials:this.withCredentials,responseType:e&&null!=e.responseType?e.responseType:this.responseType})},t.prototype._mergeSearchParams=function(t){return t?t instanceof M?t.clone():"string"==typeof t?new M(t):this._parseParams(t):this.params},t.prototype._parseParams=function(t){var e=this;
+void 0===t&&(t={});var r=new M;return Object.keys(t).forEach(function(n){var o=t[n];Array.isArray(o)?o.forEach(function(t){return e._appendParam(n,t,r)}):e._appendParam(n,o,r)}),r},t.prototype._appendParam=function(t,e,r){"string"!=typeof e&&(e=JSON.stringify(e)),r.append(t,e)},t}(),K=function(t){function e(){return t.call(this,{method:v.Get,headers:new C})||this}return m(e,t),e}($);K.decorators=[{type:e.Injectable}],K.ctorParameters=function(){return[]};var Q=function(t){function e(e){var r=t.call(this)||this,n=e.url;if(r.url=e.url,e.params){var i=e.params.toString();if(i.length>0){var s="?";-1!=r.url.indexOf("?")&&(s="&"==r.url[r.url.length-1]?"":"&"),r.url=n+s+i}}return r._body=e.body,r.method=o(e.method),r.headers=new C(e.headers),r.contentType=r.detectContentType(),r.withCredentials=e.withCredentials,r.responseType=e.responseType,r}return m(e,t),e.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return b.JSON;case"application/x-www-form-urlencoded":return b.FORM;case"multipart/form-data":return b.FORM_DATA;case"text/plain":case"text/html":return b.TEXT;case"application/octet-stream":return this._body instanceof tt?b.ARRAY_BUFFER:b.BLOB;default:return this.detectContentTypeFromBody()}},e.prototype.detectContentTypeFromBody=function(){return null==this._body?b.NONE:this._body instanceof M?b.FORM:this._body instanceof Y?b.FORM_DATA:this._body instanceof J?b.BLOB:this._body instanceof tt?b.ARRAY_BUFFER:this._body&&"object"==typeof this._body?b.JSON:b.TEXT},e.prototype.getBody=function(){switch(this.contentType){case b.JSON:return this.text();case b.FORM:return this.text();case b.FORM_DATA:return this._body;case b.TEXT:return this.text();case b.BLOB:return this.blob();case b.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},e}(R),X=function(){},Z="object"==typeof window?window:X,Y=Z.FormData||X,J=Z.Blob||X,tt=Z.ArrayBuffer||X,et=function(){function t(t,e){this._backend=t,this._defaultOptions=e}return t.prototype.request=function(t,e){var r;if("string"==typeof t)r=l(this._backend,new Q(p(this._defaultOptions,e,v.Get,t)));else{if(!(t instanceof Q))throw new Error("First argument must be a url string or Request instance.");r=l(this._backend,t)}return r},t.prototype.get=function(t,e){return this.request(new Q(p(this._defaultOptions,e,v.Get,t)))},t.prototype.post=function(t,e,r){return this.request(new Q(p(this._defaultOptions.merge(new $({body:e})),r,v.Post,t)))},t.prototype.put=function(t,e,r){return this.request(new Q(p(this._defaultOptions.merge(new $({body:e})),r,v.Put,t)))},t.prototype["delete"]=function(t,e){return this.request(new Q(p(this._defaultOptions,e,v.Delete,t)))},t.prototype.patch=function(t,e,r){return this.request(new Q(p(this._defaultOptions.merge(new $({body:e})),r,v.Patch,t)))},t.prototype.head=function(t,e){return this.request(new Q(p(this._defaultOptions,e,v.Head,t)))},t.prototype.options=function(t,e){return this.request(new Q(p(this._defaultOptions,e,v.Options,t)))},t}();et.decorators=[{type:e.Injectable}],et.ctorParameters=function(){return[{type:x},{type:$}]};var rt=function(t){function e(e,r){return t.call(this,e,r)||this}return m(e,t),e.prototype.request=function(t,e){var r;if("string"==typeof t&&(t=new Q(p(this._defaultOptions,e,v.Get,t))),!(t instanceof Q))throw new Error("First argument must be a url string or Request instance.");if(t.method!==v.Get)throw new Error("JSONP requests must use GET request method.");return r=l(this._backend,t)},e}(et);rt.decorators=[{type:e.Injectable}],rt.ctorParameters=function(){return[{type:x},{type:$}]};var nt=function(){function t(){}return t}();nt.decorators=[{type:e.NgModule,args:[{providers:[{provide:et,useFactory:f,deps:[W,$]},y,{provide:$,useClass:K},{provide:E,useClass:S},W,{provide:P,useFactory:h}]}]}],nt.ctorParameters=function(){return[]};var ot=function(){function t(){}return t}();ot.decorators=[{type:e.NgModule,args:[{providers:[{provide:rt,useFactory:d,deps:[B,$]},j,{provide:$,useClass:K},{provide:E,useClass:S},{provide:B,useClass:H}]}]}],ot.ctorParameters=function(){return[]};var it=new e.Version("4.1.0");t.BrowserXhr=y,t.JSONPBackend=B,t.JSONPConnection=F,t.CookieXSRFStrategy=G,t.XHRBackend=W,t.XHRConnection=z,t.BaseRequestOptions=K,t.RequestOptions=$,t.BaseResponseOptions=S,t.ResponseOptions=E,t.ReadyState=g,t.RequestMethod=v,t.ResponseContentType=w,t.ResponseType=_,t.Headers=C,t.Http=et,t.Jsonp=rt,t.HttpModule=nt,t.JsonpModule=ot,t.Connection=T,t.ConnectionBackend=x,t.XSRFStrategy=P,t.Request=Q,t.Response=k,t.QueryEncoder=O,t.URLSearchParams=M,t.VERSION=it,t.ɵg=j,t.ɵa=H,t.ɵf=R,t.ɵb=h,t.ɵc=f,t.ɵd=d,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":8,"@angular/platform-browser":12,"rxjs/Observable":17}],11:[function(e,r,n){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/compiler"),e("@angular/core"),e("@angular/common"),e("@angular/platform-browser")):"function"==typeof t&&t.amd?t(["exports","@angular/compiler","@angular/core","@angular/common","@angular/platform-browser"],i):i((o.ng=o.ng||{},o.ng.platformBrowserDynamic=o.ng.platformBrowserDynamic||{}),o.ng.compiler,o.ng.core,o.ng.common,o.ng.platformBrowser)}(this,function(t,e,r,n,o){"use strict";var i=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.get=function(t){var e,r,n=new Promise(function(t,n){e=t,r=n}),o=new XMLHttpRequest;return o.open("GET",t,!0),o.responseType="text",o.onload=function(){var n=o.response||o.responseText,i=1223===o.status?204:o.status;0===i&&(i=n?200:0),i>=200&&300>=i?e(n):r("Failed to load "+t)},o.onerror=function(){r("Failed to load "+t)},o.send(),n},e}(e.ResourceLoader);s.decorators=[{type:r.Injectable}],s.ctorParameters=function(){return[]};var a=[o.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS,{provide:r.COMPILER_OPTIONS,useValue:{providers:[{provide:e.ResourceLoader,useClass:s}]},multi:!0},{provide:r.PLATFORM_ID,useValue:n.ɵPLATFORM_BROWSER_ID}],u=function(t){function e(){var e=t.call(this)||this;if(e._cache=r.ɵglobal.$templateCache,null==e._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.");return e}return i(e,t),e.prototype.get=function(t){return this._cache.hasOwnProperty(t)?Promise.resolve(this._cache[t]):Promise.reject("CachedResourceLoader: Did not find cached template for "+t)},e}(e.ResourceLoader),c=new r.Version("4.1.0"),l=[{provide:e.ResourceLoader,useClass:u}],p=r.createPlatformFactory(e.platformCoreDynamic,"browserDynamic",a);t.RESOURCE_CACHE_PROVIDER=l,t.platformBrowserDynamic=p,t.VERSION=c,t.ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS=a,t.ɵResourceLoaderImpl=s,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":6,"@angular/compiler":7,"@angular/core":8,"@angular/platform-browser":12}],12:[function(e,r,n){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/common"),e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/common","@angular/core"],i):i((o.ng=o.ng||{},o.ng.platformBrowser=o.ng.platformBrowser||{}),o.ng.common,o.ng.core)}(this,function(t,e,r){"use strict";function n(){return L}function o(t){L||(L=t)}function i(){return W||(W=document.querySelector("base"))?W.getAttribute("href"):null}function s(t){return z||(z=document.createElement("a")),z.setAttribute("href",t),"/"===z.pathname.charAt(0)?z.pathname:"/"+z.pathname}function a(t,e){e=encodeURIComponent(e);for(var r=0,n=t.split(";");r<n.length;r++){var o=n[r],i=o.indexOf("="),s=-1==i?[o,""]:[o.slice(0,i),o.slice(i+1)],a=s[0],u=s[1];if(a.trim()===e)return decodeURIComponent(u)}return null}function u(t,e,r){for(var n=e.split("."),o=t;n.length>1;){var i=n.shift();o=o.hasOwnProperty(i)&&null!=o[i]?o[i]:o[i]={}}(void 0===o||null===o)&&(o={}),o[n.shift()]=r}function c(){return!!window.history.pushState}function l(t,e){var r=function(){var r=n(),o=Array.prototype.slice.apply(r.querySelectorAll(e,"style[ng-transition]"));o.filter(function(e){return r.getAttribute(e,"ng-transition")===t}).forEach(function(t){return r.remove(t)})};return r}function p(t){return r.getDebugNode(t)}function h(t,e){var r=(t||[]).concat(e||[]);return n().setGlobalVar(rt,p),n().setGlobalVar(nt,tt({},et,f(r||[]))),function(){return p}}function f(t){return t.reduce(function(t,e){return t[e.name]=e.token,t},{})}function d(t){return mt.replace(ht,t)}function m(t){return dt.replace(ht,t)}function y(t,e,r){for(var n=0;n<e.length;n++){var o=e[n];Array.isArray(o)?y(t,o,r):(o=o.replace(ht,t),r.push(o))}return r}function v(t){return function(e){var r=t(e);r===!1&&(e.preventDefault(),e.returnValue=!1)}}function g(t,e){if(t.charCodeAt(0)===gt)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}function _(t){return t=String(t),t.match(Ot)||t.match(Mt)?t:(r.isDevMode()&&n().log("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function b(t){return t=String(t),t.split(",").map(function(t){return _(t.trim())}).join(", ")}function w(){if(Rt)return Rt;kt=n();var t=kt.createElement("template");if("content"in t)return t;var e=kt.createHtmlDocument();if(Rt=kt.querySelector(e,"body"),null==Rt){var r=kt.createElement("html",e);Rt=kt.createElement("body",e),kt.appendChild(r,Rt),kt.appendChild(e,r)}return Rt}function C(t){for(var e={},r=0,n=t.split(",");r<n.length;r++){var o=n[r];e[o]=!0}return e}function E(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r={},n=0,o=t;n<o.length;n++){var i=o[n];for(var s in i)i.hasOwnProperty(s)&&(r[s]=!0)}return r}function S(t,e){if(e&&kt.contains(t,e))throw new Error("Failed to sanitize html because the element is clobbered: "+kt.getOuterHTML(t));return e}function x(t){return t.replace(/&/g,"&amp;").replace(Gt,function(t){var e=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+(1024*(e-55296)+(r-56320)+65536)+";"}).replace(Wt,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function T(t){kt.attributeMap(t).forEach(function(e,r){("xmlns:ns1"===r||0===r.indexOf("ns1:"))&&kt.removeAttribute(t,r)});for(var e=0,r=kt.childNodesAsList(t);e<r.length;e++){var n=r[e];kt.isElementNode(n)&&T(n)}}function P(t,e){try{var n=w(),o=e?String(e):"",i=5,s=o;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,o=s,kt.setInnerHTML(n,o),t.documentMode&&T(n),s=kt.getInnerHTML(n)}while(o!==s);for(var a=new zt,u=a.sanitizeChildren(kt.getTemplateContent(n)||n),c=kt.getTemplateContent(n)||n,l=0,p=kt.childNodesAsList(c);l<p.length;l++){var h=p[l];kt.removeChild(c,h)}return r.isDevMode()&&a.sanitizedSomething&&kt.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),u}catch(f){throw Rt=null,f}}function A(t){for(var e=!0,r=!0,n=0;n<t.length;n++){var o=t.charAt(n);"'"===o&&r?e=!e:'"'===o&&e&&(r=!r)}return e&&r}function O(t){if(t=String(t).trim(),!t)return"";var e=t.match(te);return e&&_(e[1])===e[1]||t.match(Jt)&&A(t)?t:(r.isDevMode()&&n().log("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}function M(){G.makeCurrent(),Y.init()}function R(){return new r.ErrorHandler}function k(){return document}function I(t){return n().setGlobalVar(ye,new me(t)),t}function N(){n().setGlobalVar(ye,null)}var D,j=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},L=null,V=function(){function t(){this.resourceLoaderType=null}return t.prototype.hasProperty=function(){},t.prototype.setProperty=function(){},t.prototype.getProperty=function(){},t.prototype.invoke=function(){},t.prototype.logError=function(){},t.prototype.log=function(){},t.prototype.logGroup=function(){},t.prototype.logGroupEnd=function(){},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t.prototype.contains=function(){},t.prototype.parse=function(){},t.prototype.querySelector=function(){},t.prototype.querySelectorAll=function(){},t.prototype.on=function(){},t.prototype.onAndCancel=function(){},t.prototype.dispatchEvent=function(){},t.prototype.createMouseEvent=function(){},t.prototype.createEvent=function(){},t.prototype.preventDefault=function(){},t.prototype.isPrevented=function(){},t.prototype.getInnerHTML=function(){},t.prototype.getTemplateContent=function(){},t.prototype.getOuterHTML=function(){},t.prototype.nodeName=function(){},t.prototype.nodeValue=function(){},t.prototype.type=function(){},t.prototype.content=function(){},t.prototype.firstChild=function(){},t.prototype.nextSibling=function(){},t.prototype.parentElement=function(){},t.prototype.childNodes=function(){},t.prototype.childNodesAsList=function(){},t.prototype.clearNodes=function(){},t.prototype.appendChild=function(){},t.prototype.removeChild=function(){},t.prototype.replaceChild=function(){},t.prototype.remove=function(){},t.prototype.insertBefore=function(){},t.prototype.insertAllBefore=function(){},t.prototype.insertAfter=function(){},t.prototype.setInnerHTML=function(){},t.prototype.getText=function(){},t.prototype.setText=function(){},t.prototype.getValue=function(){},t.prototype.setValue=function(){},t.prototype.getChecked=function(){},t.prototype.setChecked=function(){},t.prototype.createComment=function(){},t.prototype.createTemplate=function(){},t.prototype.createElement=function(){},t.prototype.createElementNS=function(){},t.prototype.createTextNode=function(){},t.prototype.createScriptTag=function(){},t.prototype.createStyleElement=function(){},t.prototype.createShadowRoot=function(){},t.prototype.getShadowRoot=function(){},t.prototype.getHost=function(){},t.prototype.getDistributedNodes=function(){},t.prototype.clone=function(){},t.prototype.getElementsByClassName=function(){},t.prototype.getElementsByTagName=function(){},t.prototype.classList=function(){},t.prototype.addClass=function(){},t.prototype.removeClass=function(){},t.prototype.hasClass=function(){},t.prototype.setStyle=function(){},t.prototype.removeStyle=function(){},t.prototype.getStyle=function(){},t.prototype.hasStyle=function(){},t.prototype.tagName=function(){},t.prototype.attributeMap=function(){},t.prototype.hasAttribute=function(){},t.prototype.hasAttributeNS=function(){},t.prototype.getAttribute=function(){},t.prototype.getAttributeNS=function(){},t.prototype.setAttribute=function(){},t.prototype.setAttributeNS=function(){},t.prototype.removeAttribute=function(){},t.prototype.removeAttributeNS=function(){},t.prototype.templateAwareRoot=function(){},t.prototype.createHtmlDocument=function(){},t.prototype.getBoundingClientRect=function(){},t.prototype.getTitle=function(){},t.prototype.setTitle=function(){},t.prototype.elementMatches=function(){},t.prototype.isTemplateElement=function(){},t.prototype.isTextNode=function(){},t.prototype.isCommentNode=function(){},t.prototype.isElementNode=function(){},t.prototype.hasShadowRoot=function(){},t.prototype.isShadowRoot=function(){},t.prototype.importIntoDoc=function(){},t.prototype.adoptNode=function(){},t.prototype.getHref=function(){},t.prototype.getEventKey=function(){},t.prototype.resolveAndSetHref=function(){},t.prototype.supportsDOMEvents=function(){},t.prototype.supportsNativeShadowDOM=function(){},t.prototype.getGlobalEventTarget=function(){},t.prototype.getHistory=function(){},t.prototype.getLocation=function(){},t.prototype.getBaseHref=function(){},t.prototype.resetBaseElement=function(){},t.prototype.getUserAgent=function(){},t.prototype.setData=function(){},t.prototype.getComputedStyle=function(){},t.prototype.getData=function(){},t.prototype.setGlobalVar=function(){},t.prototype.supportsWebAnimation=function(){},t.prototype.performanceNow=function(){},t.prototype.getAnimationPrefix=function(){},t.prototype.getTransitionEnd=function(){},t.prototype.supportsAnimation=function(){},t.prototype.supportsCookies=function(){},t.prototype.getCookie=function(){},t.prototype.setCookie=function(){},t}(),F=function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var r=e.createElement("div",document);if(null!=e.getStyle(r,"animationName"))e._animationPrefix="";else for(var n=["Webkit","Moz","O","ms"],o=0;o<n.length;o++)if(null!=e.getStyle(r,n[o]+"AnimationName")){e._animationPrefix="-"+n[o].toLowerCase()+"-";break}var i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(i).forEach(function(t){null!=e.getStyle(r,t)&&(e._transitionEnd=i[t])})}catch(s){e._animationPrefix=null,e._transitionEnd=null}return e}return j(e,t),e.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},e.prototype.resolveAndSetHref=function(t,e,r){t.href=null==r?e:e+"/../"+r},e.prototype.supportsDOMEvents=function(){return!0},e.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},e.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},e.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},e.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},e}(V),U={"class":"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},B=3,H={"\b":"Backspace","	":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},q={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"};r.ɵglobal.Node&&(D=r.ɵglobal.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var z,G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.parse=function(){throw new Error("parse not implemented")},e.makeCurrent=function(){o(new e)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,r){t[e]=r},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,r){t[e].apply(t,r)},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return U},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return D.call(t,e)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,r){t.addEventListener(e,r,!1)},e.prototype.onAndCancel=function(t,e,r){return t.addEventListener(e,r,!1),function(){t.removeEventListener(e,r,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=document.createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&t instanceof HTMLTemplateElement?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,r=new Array(e.length),n=0;n<e.length;n++)r[n]=e[n];return r},e.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},e.prototype.appendChild=function(t,e){t.appendChild(e)},e.prototype.removeChild=function(t,e){t.removeChild(e)},e.prototype.replaceChild=function(t,e,r){t.replaceChild(e,r)},e.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},e.prototype.insertBefore=function(t,e,r){t.insertBefore(r,e)},e.prototype.insertAllBefore=function(t,e,r){r.forEach(function(r){return t.insertBefore(r,e)})},e.prototype.insertAfter=function(t,e,r){t.insertBefore(r,e.nextSibling)},e.prototype.setInnerHTML=function(t,e){t.innerHTML=e},e.prototype.getText=function(t){return t.textContent},e.prototype.setText=function(t,e){t.textContent=e},e.prototype.getValue=function(t){return t.value},e.prototype.setValue=function(t,e){t.value=e},e.prototype.getChecked=function(t){return t.checked},e.prototype.setChecked=function(t,e){t.checked=e},e.prototype.createComment=function(t){return document.createComment(t)},e.prototype.createTemplate=function(t){var e=document.createElement("template");return e.innerHTML=t,e},e.prototype.createElement=function(t,e){return void 0===e&&(e=document),e.createElement(t)},e.prototype.createElementNS=function(t,e,r){return void 0===r&&(r=document),r.createElementNS(t,e)},e.prototype.createTextNode=function(t,e){return void 0===e&&(e=document),e.createTextNode(t)},e.prototype.createScriptTag=function(t,e,r){void 0===r&&(r=document);var n=r.createElement("SCRIPT");return n.setAttribute(t,e),n},e.prototype.createStyleElement=function(t,e){void 0===e&&(e=document);var r=e.createElement("style");return this.appendChild(r,this.createTextNode(t)),r},e.prototype.createShadowRoot=function(t){return t.createShadowRoot()},e.prototype.getShadowRoot=function(t){return t.shadowRoot},e.prototype.getHost=function(t){return t.host},e.prototype.clone=function(t){return t.cloneNode(!0)},e.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},e.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},e.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},e.prototype.addClass=function(t,e){t.classList.add(e)},e.prototype.removeClass=function(t,e){t.classList.remove(e)},e.prototype.hasClass=function(t,e){return t.classList.contains(e)},e.prototype.setStyle=function(t,e,r){t.style[e]=r},e.prototype.removeStyle=function(t,e){t.style[e]=""},e.prototype.getStyle=function(t,e){return t.style[e]},e.prototype.hasStyle=function(t,e,r){var n=this.getStyle(t,e)||"";return r?n==r:n.length>0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,r=t.attributes,n=0;n<r.length;n++){var o=r[n];e.set(o.name,o.value)}return e},e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},e.prototype.hasAttributeNS=function(t,e,r){return t.hasAttributeNS(e,r)},e.prototype.getAttribute=function(t,e){return t.getAttribute(e)},e.prototype.getAttributeNS=function(t,e,r){return t.getAttributeNS(e,r)},e.prototype.setAttribute=function(t,e,r){t.setAttribute(e,r)},e.prototype.setAttributeNS=function(t,e,r,n){t.setAttributeNS(e,r,n)},e.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},e.prototype.removeAttributeNS=function(t,e,r){t.removeAttributeNS(e,r)},e.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},e.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},e.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(e){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},e.prototype.getTitle=function(){return document.title},e.prototype.setTitle=function(t,e){document.title=e||""},e.prototype.elementMatches=function(t,e){return t instanceof HTMLElement?t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e):!1},e.prototype.isTemplateElement=function(t){return t instanceof HTMLElement&&"TEMPLATE"==t.nodeName},e.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},e.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},e.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},e.prototype.hasShadowRoot=function(t){return null!=t.shadowRoot&&t instanceof HTMLElement},e.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},e.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},e.prototype.adoptNode=function(t){return document.adoptNode(t)},e.prototype.getHref=function(t){return t.href},e.prototype.getEventKey=function(t){var e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),t.location===B&&q.hasOwnProperty(e)&&(e=q[e]))}return H[e]||e},e.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?document:"body"===e?document.body:null},e.prototype.getHistory=function(){return window.history},e.prototype.getLocation=function(){return window.location},e.prototype.getBaseHref=function(){var t=i();return null==t?null:s(t)},e.prototype.resetBaseElement=function(){W=null},e.prototype.getUserAgent=function(){return window.navigator.userAgent},e.prototype.setData=function(t,e,r){this.setAttribute(t,"data-"+e,r)},e.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},e.prototype.getComputedStyle=function(t){return getComputedStyle(t)},e.prototype.setGlobalVar=function(t,e){u(r.ɵglobal,t,e)},e.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},e.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},e.prototype.supportsCookies=function(){return!0},e.prototype.getCookie=function(t){return a(document.cookie,t)},e.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},e}(F),W=null,$=new r.InjectionToken("DocumentToken"),K=function(t){function e(e){var r=t.call(this)||this;return r._doc=e,r._init(),r}return j(e,t),e.prototype._init=function(){this._location=n().getLocation(),this._history=n().getHistory()},Object.defineProperty(e.prototype,"location",{get:function(){return this._location},enumerable:!0,configurable:!0}),e.prototype.getBaseHrefFromDOM=function(){return n().getBaseHref(this._doc)},e.prototype.onPopState=function(t){n().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){n().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"pathname",{get:function(){return this._location.pathname},set:function(t){this._location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this._location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this._location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,r){c()?this._history.pushState(t,e,r):this._location.hash=r},e.prototype.replaceState=function(t,e,r){c()?this._history.replaceState(t,e,r):this._location.hash=r},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e}(e.PlatformLocation);K.decorators=[{type:r.Injectable}],K.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]}]};var Q=function(){function t(t){this._doc=t,this._dom=n()}return t.prototype.addTag=function(t,e){return void 0===e&&(e=!1),t?this._getOrCreateElement(t,e):null},t.prototype.addTags=function(t,e){var r=this;return void 0===e&&(e=!1),t?t.reduce(function(t,n){return n&&t.push(r._getOrCreateElement(n,e)),t},[]):[]},t.prototype.getTag=function(t){return t?this._dom.querySelector(this._doc,"meta["+t+"]"):null},t.prototype.getTags=function(t){if(!t)return[];var e=this._dom.querySelectorAll(this._doc,"meta["+t+"]");return e?[].slice.call(e):[]},t.prototype.updateTag=function(t,e){if(!t)return null;e=e||this._parseSelector(t);var r=this.getTag(e);return r?this._setMetaElementAttributes(t,r):this._getOrCreateElement(t,!0)},t.prototype.removeTag=function(t){this.removeTagElement(this.getTag(t))},t.prototype.removeTagElement=function(t){t&&this._dom.remove(t)},t.prototype._getOrCreateElement=function(t,e){if(void 0===e&&(e=!1),!e){var r=this._parseSelector(t),n=this.getTag(r);if(n&&this._containsAttributes(t,n))return n}var o=this._dom.createElement("meta");this._setMetaElementAttributes(t,o);var i=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(i,o),o},t.prototype._setMetaElementAttributes=function(t,e){var r=this;return Object.keys(t).forEach(function(n){return r._dom.setAttribute(e,n,t[n])}),e},t.prototype._parseSelector=function(t){var e=t.name?"name":"property";return e+'="'+t[e]+'"'},t.prototype._containsAttributes=function(t,e){var r=this;return Object.keys(t).every(function(n){return r._dom.getAttribute(e,n)===t[n]})},t}();Q.decorators=[{type:r.Injectable}],Q.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]}]};var X=new r.InjectionToken("TRANSITION_ID"),Z=[{provide:r.APP_INITIALIZER,useFactory:l,deps:[X,$],multi:!0}],Y=function(){function t(){}return t.init=function(){r.setTestabilityGetter(new t)},t.prototype.addToWindow=function(t){r.ɵglobal.getAngularTestability=function(e,r){void 0===r&&(r=!0);var n=t.findTestabilityInTree(e,r);if(null==n)throw new Error("Could not find testability for element.");return n},r.ɵglobal.getAllAngularTestabilities=function(){return t.getAllTestabilities()},r.ɵglobal.getAllAngularRootElements=function(){return t.getAllRootElements()};var e=function(t){var e=r.ɵglobal.getAllAngularTestabilities(),n=e.length,o=!1,i=function(e){o=o||e,n--,0==n&&t(o)};e.forEach(function(t){t.whenStable(i)})};r.ɵglobal.frameworkStabilizers||(r.ɵglobal.frameworkStabilizers=[]),r.ɵglobal.frameworkStabilizers.push(e)},t.prototype.findTestabilityInTree=function(t,e,r){if(null==e)return null;var o=t.getTestability(e);return null!=o?o:r?n().isShadowRoot(e)?this.findTestabilityInTree(t,n().getHost(e),!0):this.findTestabilityInTree(t,n().parentElement(e),!0):null},t}(),J=function(){function t(t){this._doc=t}return t.prototype.getTitle=function(){return n().getTitle(this._doc)},t.prototype.setTitle=function(t){n().setTitle(this._doc,t)},t}();J.decorators=[{type:r.Injectable}],J.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]}]};var tt=void 0||Object.assign||function(t){for(var e,r=1,n=arguments.length;n>r;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},et={ApplicationRef:r.ApplicationRef,NgZone:r.NgZone},rt="ng.probe",nt="ng.coreTokens",ot=function(){function t(t,e){this.name=t,this.token=e}return t}(),it=[{provide:r.APP_INITIALIZER,useFactory:h,deps:[[ot,new r.Optional],[r.NgProbeToken,new r.Optional]],multi:!0}],st=new r.InjectionToken("EventManagerPlugins"),at=function(){function t(t,e){var r=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=r}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,r){var n=this._findPluginFor(e);
 
-var s=Lt(i,e,t),a=s.processChildren?Bt(s.segmentGroup,s.index,i.commands):Ht(s.segmentGroup,s.index,i.commands);return Nt(s.segmentGroup,a,e,n,o)}function It(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Nt(t,e,r,n,o){var i={};return n&&I(n,function(t,e){i[e]=Array.isArray(t)?t.map(function(t){return""+t}):""+t}),r.root===t?new Ue(e,i,o):new Ue(Dt(r.root,t,e),i,o)}function Dt(t,e,r){var n={};return I(t.children,function(t,o){n[o]=t===e?r:Dt(t,e,r)}),new He(t.segments,n)}function jt(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ar(!0,0,t);var e=0,r=!1,n=t.reduce(function(t,n,o){if("object"==typeof n&&null!=n){if(n.outlets){var i={};return I(n.outlets,function(t,e){i[e]="string"==typeof t?t.split("/"):t}),t.concat([{outlets:i}])}if(n.segmentPath)return t.concat([n.segmentPath])}return"string"!=typeof n?t.concat([n]):0===o?(n.split("/").forEach(function(n,o){0==o&&"."===n||(0==o&&""===n?r=!0:".."===n?e++:""!=n&&t.push(n))}),t):t.concat([n])},[]);return new ar(r,e,n)}function Lt(t,e,r){if(t.isAbsolute)return new ur(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new ur(r.snapshot._urlSegment,!0,0);var n=It(t.commands[0])?0:1,o=r.snapshot._lastPathIndex+n;return Vt(r.snapshot._urlSegment,o,t.numberOfDoubleDots)}function Vt(t,e,r){for(var n=t,o=e,i=r;i>o;){if(i-=o,n=n.parent,!n)throw new Error("Invalid number of '../'");o=n.segments.length}return new ur(n,!1,o-i)}function Ft(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[je]:""+t}function Ut(t){return"object"!=typeof t[0]?(e={},e[je]=t,e):void 0===t[0].outlets?(r={},r[je]=t,r):t[0].outlets;var e,r}function Ht(t,e,r){if(t||(t=new He([],{})),0===t.segments.length&&t.hasChildren())return Bt(t,e,r);var n=qt(t,e,r),o=r.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){var i=new He(t.segments.slice(0,n.pathIndex),{});return i.children[je]=new He(t.segments.slice(n.pathIndex),t.children),Bt(i,0,o)}return n.match&&0===o.length?new He(t.segments,{}):n.match&&!t.hasChildren()?zt(t,e,r):n.match?Bt(t,0,o):zt(t,e,r)}function Bt(t,e,r){if(0===r.length)return new He(t.segments,{});var n=Ut(r),o={};return I(n,function(r,n){null!==r&&(o[n]=Ht(t.children[n],e,r))}),I(t.children,function(t,e){void 0===n[e]&&(o[e]=t)}),new He(t.segments,o)}function qt(t,e,r){for(var n=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o<t.segments.length;){if(n>=r.length)return i;var s=t.segments[o],a=Ft(r[n]),u=n<r.length-1?r[n+1]:null;if(o>0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!$t(a,u,s))return i;n+=2}else{if(!$t(a,{},s))return i;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function zt(t,e,r){for(var n=t.segments.slice(0,e),o=0;o<r.length;){if("object"==typeof r[o]&&void 0!==r[o].outlets){var i=Gt(r[o].outlets);return new He(n,i)}if(0===o&&It(r[0])){var s=t.segments[e];n.push(new Be(s.path,r[0])),o++}else{var a=Ft(r[o]),u=o<r.length-1?r[o+1]:null;a&&u&&It(u)?(n.push(new Be(a,Wt(u))),o+=2):(n.push(new Be(a,{})),o++)}}return new He(n,{})}function Gt(t){var e={};return I(t,function(t,r){null!==t&&(e[r]=zt(new He([],{}),0,t))}),e}function Wt(t){var e={};return I(t,function(t,r){return e[r]=""+t}),e}function $t(t,e,r){return t==r.path&&M(e,r.parameters)}function Kt(t,e,r,n){return new pr(t,e,r,n).recognize()}function Qt(t){t.sort(function(t,e){return t.value.outlet===je?-1:e.value.outlet===je?1:t.value.outlet.localeCompare(e.value.outlet)})}function Xt(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}function Zt(t,e,r){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||r.length>0))throw new lr;return{consumedSegments:[],lastChild:0,parameters:{}}}var n=e.matcher||x,o=n(r,t,e);if(!o)throw new lr;var i={};I(o.posParams,function(t,e){i[e]=t.path});var s=cr({},i,o.consumed[o.consumed.length-1].parameters);return{consumedSegments:o.consumed,lastChild:o.consumed.length,parameters:s}}function Yt(t){var e={};t.forEach(function(t){var r=e[t.value.outlet];if(r){var n=r.url.map(function(t){return t.toString()}).join("/"),o=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+n+"' and '"+o+"'.")}e[t.value.outlet]=t.value})}function Jt(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function te(t){for(var e=t,r=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)e=e._sourceSegment,r+=e._segmentIndexShift?e._segmentIndexShift:0;return r-1}function ee(t,e,r,n){if(r.length>0&&oe(t,r,n)){var o=new He(e,ne(t,e,n,new He(r,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===r.length&&ie(t,r,n)){var i=new He(t.segments,re(t,r,n,t.children));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:r}}var s=new He(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:r}}function re(t,e,r,n){for(var o={},i=0,s=r;i<s.length;i++){var a=s[i];if(se(t,e,a)&&!n[ae(a)]){var u=new He([],{});u._sourceSegment=t,u._segmentIndexShift=t.segments.length,o[ae(a)]=u}}return cr({},n,o)}function ne(t,e,r,n){var o={};o[je]=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(var i=0,s=r;i<s.length;i++){var a=s[i];if(""===a.path&&ae(a)!==je){var u=new He([],{});u._sourceSegment=t,u._segmentIndexShift=e.length,o[ae(a)]=u}}return o}function oe(t,e,r){return r.some(function(r){return se(t,e,r)&&ae(r)!==je})}function ie(t,e,r){return r.some(function(r){return se(t,e,r)})}function se(t,e,r){return(t.hasChildren()||e.length>0)&&"full"===r.pathMatch?!1:""===r.path&&void 0===r.redirectTo}function ae(t){return t.outlet||je}function ue(t){return t.data||{}}function ce(t){return t.resolve||{}}function le(t){throw t}function pe(){return s.of(null)}function he(t){xt(t.value),t.children.forEach(he)}function fe(t){for(var e=t.parent;e;e=e.parent){var r=e._routeConfig;if(r&&r._loadedConfig)return r._loadedConfig;if(r&&r.component)return null}return null}function de(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var r=e._routeConfig;if(r&&r._loadedConfig)return r._loadedConfig}return null}function me(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}function ye(t,e){var r=t._outlets[e.outlet];if(!r){var n=e.component.name;throw new Error(e.outlet===je?"Cannot find primary outlet to load '"+n+"'":"Cannot find the outlet "+e.outlet+" to load '"+n+"'")}return r}function ve(t){for(var e=0;e<t.length;e++){var r=t[e];if(null==r)throw new Error("The requested path contains "+r+" segment at index "+e)}}function ge(t){return""===t||!!t}function _e(){return new r.NgProbeToken("Router",_r)}function be(t,r,n){return void 0===n&&(n={}),n.useHash?new e.HashLocationStrategy(t,r):new e.PathLocationStrategy(t,r)}function we(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Ce(t){return[{provide:r.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:t},{provide:hr,multi:!0,useValue:t}]}function Ee(t,e,r,n,o,i,s,a,u,c,l){void 0===u&&(u={});var p=new _r(null,e,r,n,o,i,s,R(a));if(c&&(p.urlHandlingStrategy=c),l&&(p.routeReuseStrategy=l),u.errorHandler&&(p.errorHandler=u.errorHandler),u.enableTracing){var h=b.ɵgetDOM();p.events.subscribe(function(t){h.logGroup("Router Event: "+t.constructor.name),h.log(t.toString()),h.log(t),h.logGroupEnd()})}return p}function Se(t){return t.routerState.root}function xe(t){return t.appInitializer.bind(t)}function Te(t){return t.bootstrapListener.bind(t)}function Pe(){return[Fr,{provide:r.APP_INITIALIZER,multi:!0,useFactory:xe,deps:[Fr]},{provide:Ur,useFactory:Te,deps:[Fr]},{provide:r.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:Ur}]}var Ae=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Oe=function(){function t(t,e){this.id=t,this.url=e}return t.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},t}(),Me=function(){function t(t,e,r){this.id=t,this.url=e,this.urlAfterRedirects=r}return t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(),Re=function(){function t(t,e,r){this.id=t,this.url=e,this.reason=r}return t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(),ke=function(){function t(t,e,r){this.id=t,this.url=e,this.error=r}return t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(),Ie=function(){function t(t,e,r,n){this.id=t,this.url=e,this.urlAfterRedirects=r,this.state=n}return t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),Ne=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),De=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),je="primary",Le=function(){function t(t){this.params=t||{}}return t.prototype.has=function(t){return this.params.hasOwnProperty(t)},t.prototype.get=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null},t.prototype.getAll=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}(),Ve="ngNavigationCancelingError",Fe=function(){function t(t,e){this.routes=t,this.module=e}return t}(),Ue=function(){function t(t,e,r){this.root=t,this.queryParams=e,this.fragment=r}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=C(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Ge.serialize(this)},t}(),He=function(){function t(t,e){var r=this;this.segments=t,this.children=e,this.parent=null,I(e,function(t){return t.parent=r})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return $(this)},t}(),Be=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=C(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Z(this)},t}(),qe=function(){function t(){}return t.prototype.parse=function(){},t.prototype.serialize=function(){},t}(),ze=function(){function t(){}return t.prototype.parse=function(t){var e=new Qe(t);return new Ue(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e="/"+K(t.root,!0),r=J(t.queryParams),n="string"==typeof t.fragment?"#"+encodeURI(t.fragment):"";return""+e+r+n},t}(),Ge=new ze,We=/^[^\/()?;=&#]+/,$e=/^[^=?&#]+/,Ke=/^[^?&#]+/,Qe=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new He([],{}):new He([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURI(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(r[je]=new He(t,e)),r},t.prototype.parseSegment=function(){var t=tt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new Be(X(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=tt(this.remaining);if(e){this.capture(e);var r="";if(this.consumeOptional("=")){var n=tt(this.remaining);n&&(r=n,this.capture(r))}t[X(e)]=X(r)}},t.prototype.parseQueryParam=function(t){var e=et(this.remaining);if(e){this.capture(e);var r="";if(this.consumeOptional("=")){var n=rt(this.remaining);n&&(r=n,this.capture(r))}var o=X(e),i=X(r);if(t.hasOwnProperty(o)){var s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var r=tt(this.remaining),n=this.remaining[r.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;r.indexOf(":")>-1?(o=r.substr(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=je);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[je]:new He([],i),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),Xe=void 0||Object.assign||function(t){for(var e,r=1,n=arguments.length;n>r;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Ze=function(){function t(t){this.segmentGroup=t||null}return t}(),Ye=function(){function t(t){this.urlTree=t}return t}(),Je=function(){function t(t,e,n,o,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=o,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(r.NgModuleRef)}return t.prototype.apply=function(){var t=this,e=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,je),r=l.map.call(e,function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)});return d._catch.call(r,function(e){if(e instanceof Ye)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof Ze)throw t.noMatchError(e);throw e})},t.prototype.match=function(t){var e=this,r=this.expandSegmentGroup(this.ngModule,this.config,t.root,je),n=l.map.call(r,function(r){return e.createUrlTree(r,t.queryParams,t.fragment)});return d._catch.call(n,function(t){if(t instanceof Ze)throw e.noMatchError(t);throw t})},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,r){var n=t.segments.length>0?new He([],(o={},o[je]=t,o)):t;return new Ue(n,e,r);var o},t.prototype.expandSegmentGroup=function(t,e,r,n){return 0===r.segments.length&&r.hasChildren()?l.map.call(this.expandChildren(t,e,r),function(t){return new He([],t)}):this.expandSegment(t,r,e,r.segments,n,!0)},t.prototype.expandChildren=function(t,e,r){var n=this;return N(r.children,function(r,o){return n.expandSegmentGroup(t,e,o,r)})},t.prototype.expandSegment=function(t,e,r,n,o,i){var a=this,u=s.of.apply(void 0,r),p=l.map.call(u,function(u){var c=a.expandSegmentAgainstRoute(t,e,r,u,n,o,i);return d._catch.call(c,function(t){if(t instanceof Ze)return s.of(null);throw t})}),h=m.concatAll.call(p),f=c.first.call(h,function(t){return!!t});return d._catch.call(f,function(t){if(t instanceof y.EmptyError){if(a.noLeftoversInUrl(e,n,o))return s.of(new He([],{}));throw new Ze(e)}throw t})},t.prototype.noLeftoversInUrl=function(t,e,r){return 0===e.length&&!t.children[r]},t.prototype.expandSegmentAgainstRoute=function(t,e,r,n,o,i,s){return vt(n)!==i?nt(e):void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,o):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,r,n,o,i):nt(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,r,n,o,i){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,n,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,r,n,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,r,n){var o=this,i=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?ot(i):p.mergeMap.call(this.lineralizeSegments(r,i),function(r){var i=new He(r,{});return o.expandSegment(t,i,e,r,n,!1)})},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,r,n,o,i){var s=this,a=ct(e,n,o),u=a.matched,c=a.consumedSegments,l=a.lastChild,h=a.positionalParamSegments;if(!u)return nt(e);var f=this.applyRedirectCommands(c,n.redirectTo,h);return n.redirectTo.startsWith("/")?ot(f):p.mergeMap.call(this.lineralizeSegments(n,f),function(n){return s.expandSegment(t,e,r,n.concat(o.slice(l)),i,!1)})},t.prototype.matchSegmentAgainstRoute=function(t,e,r,n){var o=this;if("**"===r.path)return r.loadChildren?l.map.call(this.configLoader.load(t.injector,r),function(t){return r._loadedConfig=t,new He(n,{})}):s.of(new He(n,{}));var i=ct(e,r,n),a=i.matched,u=i.consumedSegments,c=i.lastChild;if(!a)return nt(e);var h=n.slice(c),f=this.getChildConfig(t,r);return p.mergeMap.call(f,function(t){var r=t.module,n=t.routes,i=lt(e,u,h,n),a=i.segmentGroup,c=i.slicedSegments;if(0===c.length&&a.hasChildren()){var p=o.expandChildren(r,n,a);return l.map.call(p,function(t){return new He(u,t)})}if(0===n.length&&0===c.length)return s.of(new He(u,{}));var f=o.expandSegment(r,a,n,c,je,!0);return l.map.call(f,function(t){return new He(u.concat(t.segments),t.children)})})},t.prototype.getChildConfig=function(t,e){var r=this;return e.children?s.of(new Fe(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?s.of(e._loadedConfig):p.mergeMap.call(ut(t.injector,e),function(n){return n?l.map.call(r.configLoader.load(t.injector,e),function(t){return e._loadedConfig=t,t}):st(e)}):s.of(new Fe([],t))},t.prototype.lineralizeSegments=function(t,e){for(var r=[],n=e.root;;){if(r=r.concat(n.segments),0===n.numberOfChildren)return s.of(r);if(n.numberOfChildren>1||!n.children[je])return it(t.redirectTo);n=n.children[je]}},t.prototype.applyRedirectCommands=function(t,e,r){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,r)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,r,n){var o=this.createSegmentGroup(t,e.root,r,n);return new Ue(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var r={};return I(t,function(t,n){r[n]=t.startsWith(":")?e[t.substring(1)]:t}),r},t.prototype.createSegmentGroup=function(t,e,r,n){var o=this,i=this.createSegments(t,e.segments,r,n),s={};return I(e.children,function(e,i){s[i]=o.createSegmentGroup(t,e,r,n)}),new He(i,s)},t.prototype.createSegments=function(t,e,r,n){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,n):o.findOrReturn(e,r)})},t.prototype.findPosParam=function(t,e,r){var n=r[e.path.substring(1)];if(!n)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return n},t.prototype.findOrReturn=function(t,e){for(var r=0,n=0,o=e;n<o.length;n++){var i=o[n];if(i.path===t.path)return e.splice(r),i;r++}return t},t}(),tr=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=gt(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=gt(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=_t(t,this._root,[]);if(e.length<2)return[];var r=e[e.length-2].children.map(function(t){return t.value});return r.filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return _t(t,this._root,[]).map(function(t){return t.value})},t}(),er=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}(),rr=void 0||Object.assign||function(t){for(var e,r=1,n=arguments.length;n>r;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},nr=function(t){function e(e,r){var n=t.call(this,e)||this;return n.snapshot=r,Et(n,e),n}return Ae(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(tr),or=function(){function t(t,e,r,n,o,i,s,a){this.url=t,this.params=e,this.queryParams=r,this.fragment=n,this.data=o,this.outlet=i,this.component=s,this._futureSnapshot=a}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=l.map.call(this.params,function(t){return C(t)})),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=l.map.call(this.queryParams,function(t){return C(t)})),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}(),ir=function(){function t(t,e,r,n,o,i,s,a,u,c,l){this.url=t,this.params=e,this.queryParams=r,this.fragment=n,this.data=o,this.outlet=i,this.component=s,this._routeConfig=a,this._urlSegment=u,this._lastPathIndex=c,this._resolve=l}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=C(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=C(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){var t=this.url.map(function(t){return t.toString()}).join("/"),e=this._routeConfig?this._routeConfig.path:"";return"Route(url:'"+t+"', path:'"+e+"')"},t}(),sr=function(t){function e(e,r){var n=t.call(this,r)||this;return n.url=e,Et(n,r),n}return Ae(e,t),e.prototype.toString=function(){return St(this._root)},e}(tr),ar=function(){function t(t,e,r){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=r,t&&r.length>0&&It(r[0]))throw new Error("Root segment cannot have matrix parameters");var n=r.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(n&&n!==k(r))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),ur=function(){function t(t,e,r){this.segmentGroup=t,this.processChildren=e,this.index=r}return t}(),cr=void 0||Object.assign||function(t){for(var e,r=1,n=arguments.length;n>r;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},lr=function(){function t(){}return t}(),pr=function(){function t(t,e,r,n){this.rootComponentType=t,this.config=e,this.urlTree=r,this.url=n}return t.prototype.recognize=function(){try{var t=ee(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,je),r=new ir([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},je,this.rootComponentType,null,this.urlTree.root,-1,{}),n=new er(r,e),o=new sr(this.url,n);return this.inheriteParamsAndData(o._root),s.of(o)}catch(i){return new f.Observable(function(t){return t.error(i)})}},t.prototype.inheriteParamsAndData=function(t){var e=this,r=t.value,n=Ct(r);r.params=Object.freeze(n.params),r.data=Object.freeze(n.data),t.children.forEach(function(t){return e.inheriteParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,r){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,r)},t.prototype.processChildren=function(t,e){var r=this,n=W(e,function(e,n){return r.processSegmentGroup(t,e,n)});return Yt(n),Qt(n),n},t.prototype.processSegment=function(t,e,r,n){for(var o=0,i=t;o<i.length;o++){var s=i[o];try{return this.processSegmentAgainstRoute(s,e,r,n)}catch(a){if(!(a instanceof lr))throw a}}if(this.noLeftoversInUrl(e,r,n))return[];throw new lr},t.prototype.noLeftoversInUrl=function(t,e,r){return 0===e.length&&!t.children[r]},t.prototype.processSegmentAgainstRoute=function(t,e,r,n){if(t.redirectTo)throw new lr;if((t.outlet||je)!==n)throw new lr;if("**"===t.path){var o=r.length>0?k(r).parameters:{},i=new ir(r,o,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ue(t),n,t.component,t,Jt(e),te(e)+r.length,ce(t));return[new er(i,[])]}var s=Zt(e,t,r),a=s.consumedSegments,u=s.parameters,c=s.lastChild,l=r.slice(c),p=Xt(t),h=ee(e,a,l,p),f=h.segmentGroup,d=h.slicedSegments,m=new ir(a,u,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ue(t),n,t.component,t,Jt(e),te(e)+a.length,ce(t));if(0===d.length&&f.hasChildren()){var y=this.processChildren(p,f);return[new er(m,y)]}if(0===p.length&&0===d.length)return[new er(m,[])];var v=this.processSegment(p,f,d,je);return[new er(m,v)]},t}(),hr=new r.InjectionToken("ROUTES"),fr=function(){function t(t,e,r,n){this.loader=t,this.compiler=e,this.onLoadStartListener=r,this.onLoadEndListener=n}return t.prototype.load=function(t,e){var r=this;this.onLoadStartListener&&this.onLoadStartListener(e);var n=this.loadModuleFactory(e.loadChildren);return l.map.call(n,function(n){r.onLoadEndListener&&r.onLoadEndListener(e);var o=n.create(t);return new Fe(R(o.injector.get(hr)),o)})},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?v.fromPromise(this.loader.load(t)):p.mergeMap.call(j(t()),function(t){return t instanceof r.NgModuleFactory?s.of(t):v.fromPromise(e.compiler.compileModuleAsync(t))})},t}(),dr=function(){function t(){this._outlets={}}return t.prototype.registerOutlet=function(t,e){this._outlets[t]=e},t.prototype.removeOutlet=function(t){this._outlets[t]=void 0},t}(),mr=function(){function t(){}return t.prototype.shouldProcessUrl=function(){},t.prototype.extract=function(){},t.prototype.merge=function(){},t}(),yr=function(){function t(){}return t.prototype.shouldProcessUrl=function(){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t){return t},t}(),vr=void 0||Object.assign||function(t){for(var e,r=1,n=arguments.length;n>r;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},gr=function(){function t(){}return t.prototype.shouldDetach=function(){return!1},t.prototype.store=function(){},t.prototype.shouldAttach=function(){return!1},t.prototype.retrieve=function(){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),_r=function(){function t(t,e,i,s,a,u,c,l){var p=this;this.rootComponentType=t,this.urlSerializer=e,this.outletMap=i,this.location=s,this.config=l,this.navigations=new n.BehaviorSubject(null),this.routerEvents=new o.Subject,this.navigationId=0,this.errorHandler=le,this.navigated=!1,this.hooks={beforePreactivation:pe,afterPreactivation:pe},this.urlHandlingStrategy=new yr,this.routeReuseStrategy=new gr;var h=function(t){return p.triggerEvent(new Ne(t))},f=function(t){return p.triggerEvent(new De(t))};this.ngModule=a.get(r.NgModuleRef),this.resetConfig(l),this.currentUrlTree=L(),this.rawUrlTree=this.currentUrlTree,this.configLoader=new fr(u,c,h,f),this.currentRouterState=bt(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.currentRouterState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(Zone.current.wrap(function(e){var r=t.urlSerializer.parse(e.url),n="popstate"===e.type?"popstate":"hashchange";setTimeout(function(){t.scheduleNavigation(r,n,{replaceUrl:!0})},0)})))},Object.defineProperty(t.prototype,"routerState",{get:function(){return this.currentRouterState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){return this.routerEvents},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.routerEvents.next(t)},t.prototype.resetConfig=function(t){T(t),this.config=t},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){var n=void 0===e?{}:e,o=n.relativeTo,i=n.queryParams,s=n.fragment,a=n.preserveQueryParams,u=n.queryParamsHandling,c=n.preserveFragment;r.isDevMode()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=o||this.routerState.root,p=c?this.currentUrlTree.fragment:s,h=null;if(u)switch(u){case"merge":h=vr({},this.currentUrlTree.queryParams,i);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=i||null}else h=a?this.currentUrlTree.queryParams:i||null;return kt(l,this.currentUrlTree,t,h,p)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var r=t instanceof Ue?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(n,"imperative",e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),ve(t),"object"==typeof e.queryParams&&null!==e.queryParams&&(e.queryParams=this.removeEmptyProps(e.queryParams)),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){
-return this.urlSerializer.parse(t)},t.prototype.isActive=function(t,e){if(t instanceof Ue)return V(this.currentUrlTree,t,e);var r=this.urlSerializer.parse(t);return V(this.currentUrlTree,r,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce(function(e,r){var n=t[r];return null!==n&&void 0!==n&&(e[r]=n),e},{})},t.prototype.processNavigations=function(){var t=this;a.concatMap.call(this.navigations,function(e){return e?(t.executeScheduledNavigation(e),e.promise["catch"](function(){})):s.of(null)}).subscribe(function(){})},t.prototype.scheduleNavigation=function(t,e,r){var n=this.navigations.value;if(n&&"imperative"!==e&&"imperative"===n.source&&n.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(n&&"hashchange"==e&&"popstate"===n.source&&n.rawUrl.toString()===t.toString())return Promise.resolve(!0);var o=null,i=null,s=new Promise(function(t,e){o=t,i=e}),a=++this.navigationId;return this.navigations.next({id:a,source:e,rawUrl:t,extras:r,resolve:o,reject:i,promise:s}),s["catch"](function(t){return Promise.reject(t)})},t.prototype.executeScheduledNavigation=function(t){var e=this,r=t.id,n=t.rawUrl,o=t.extras,i=t.resolve,s=t.reject,a=this.urlHandlingStrategy.extract(n),u=!this.navigated||a.toString()!==this.currentUrlTree.toString();u&&this.urlHandlingStrategy.shouldProcessUrl(n)?(this.routerEvents.next(new Oe(r,this.serializeUrl(a))),Promise.resolve().then(function(){return e.runNavigate(a,n,!!o.skipLocationChange,!!o.replaceUrl,r,null)}).then(i,s)):u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)?(this.routerEvents.next(new Oe(r,this.serializeUrl(a))),Promise.resolve().then(function(){return e.runNavigate(a,n,!1,!1,r,bt(a,e.rootComponentType).snapshot)}).then(i,s)):(this.rawUrlTree=n,i(null))},t.prototype.runNavigate=function(t,e,r,n,o,i){var a=this;return o!==this.navigationId?(this.location.go(this.urlSerializer.serialize(this.currentUrlTree)),this.routerEvents.next(new Re(o,this.serializeUrl(t),"Navigation ID "+o+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(u,c){var h;if(i)h=s.of({appliedUrl:t,snapshot:i});else{var f=a.ngModule.injector,d=at(f,a.configLoader,a.urlSerializer,t,a.config);h=p.mergeMap.call(d,function(e){return l.map.call(Kt(a.rootComponentType,a.config,e,a.serializeUrl(e)),function(r){return a.routerEvents.next(new Ie(o,a.serializeUrl(t),a.serializeUrl(e),r)),{appliedUrl:e,snapshot:r}})})}var m,y,v=p.mergeMap.call(h,function(t){return l.map.call(a.hooks.beforePreactivation(t.snapshot),function(){return t})}),g=l.map.call(v,function(t){var e=t.appliedUrl,r=t.snapshot,n=a.ngModule.injector;return m=new Cr(r,a.currentRouterState.snapshot,n),m.traverse(a.outletMap),{appliedUrl:e,snapshot:r}}),_=p.mergeMap.call(g,function(t){var e=t.appliedUrl,r=t.snapshot;return a.navigationId!==o?s.of(!1):l.map.call(m.checkGuards(),function(t){return{appliedUrl:e,snapshot:r,shouldActivate:t}})}),b=p.mergeMap.call(_,function(t){return a.navigationId!==o?s.of(!1):t.shouldActivate?l.map.call(m.resolveData(),function(){return t}):s.of(t)}),w=p.mergeMap.call(b,function(t){return l.map.call(a.hooks.afterPreactivation(t.snapshot),function(){return t})}),C=l.map.call(w,function(t){var e=t.appliedUrl,r=t.snapshot,n=t.shouldActivate;if(n){var o=Pt(a.routeReuseStrategy,r,a.currentRouterState);return{appliedUrl:e,state:o,shouldActivate:n}}return{appliedUrl:e,state:null,shouldActivate:n}}),E=a.currentRouterState,x=a.currentUrlTree;C.forEach(function(t){var i=t.appliedUrl,s=t.state,u=t.shouldActivate;if(!u||o!==a.navigationId)return void(y=!1);if(a.currentUrlTree=i,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.currentRouterState=s,!r){var c=a.urlSerializer.serialize(a.rawUrlTree);a.location.isCurrentPathEqualTo(c)||n?a.location.replaceState(c):a.location.go(c)}new Er(a.routeReuseStrategy,s,E).activate(a.outletMap),y=!0}).then(function(){y?(a.navigated=!0,a.routerEvents.next(new Me(o,a.serializeUrl(t),a.serializeUrl(a.currentUrlTree))),u(!0)):(a.resetUrlToCurrentUrlTree(),a.routerEvents.next(new Re(o,a.serializeUrl(t),"")),u(!1))},function(r){if(S(r))a.resetUrlToCurrentUrlTree(),a.navigated=!0,a.routerEvents.next(new Re(o,a.serializeUrl(t),r.message)),u(!1);else{a.routerEvents.next(new ke(o,a.serializeUrl(t),r));try{u(a.errorHandler(r))}catch(n){c(n)}}a.currentRouterState=E,a.currentUrlTree=x,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.location.replaceState(a.serializeUrl(a.rawUrlTree))})})},t.prototype.resetUrlToCurrentUrlTree=function(){var t=this.urlSerializer.serialize(this.rawUrlTree);this.location.replaceState(t)},t}(),br=function(){function t(t){this.path=t}return Object.defineProperty(t.prototype,"route",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t}(),wr=function(){function t(t,e){this.component=t,this.route=e}return t}(),Cr=function(){function t(t,e,r){this.future=t,this.curr=e,this.moduleInjector=r,this.canActivateChecks=[],this.canDeactivateChecks=[]}return t.prototype.traverse=function(t){var e=this.future._root,r=this.curr?this.curr._root:null;this.traverseChildRoutes(e,r,t,[e.value])},t.prototype.checkGuards=function(){var t=this;if(0===this.canDeactivateChecks.length&&0===this.canActivateChecks.length)return s.of(!0);var e=this.runCanDeactivateChecks();return p.mergeMap.call(e,function(e){return e?t.runCanActivateChecks():s.of(!1)})},t.prototype.resolveData=function(){var t=this;if(0===this.canActivateChecks.length)return s.of(null);var e=i.from(this.canActivateChecks),r=a.concatMap.call(e,function(e){return t.runResolve(e.route)});return h.reduce.call(r,function(t){return t})},t.prototype.traverseChildRoutes=function(t,e,r,n){var o=this,i=me(e);t.children.forEach(function(t){o.traverseRoutes(t,i[t.value.outlet],r,n.concat([t.value])),delete i[t.value.outlet]}),I(i,function(t,e){return o.deactiveRouteAndItsChildren(t,r._outlets[e])})},t.prototype.traverseRoutes=function(t,e,r,n){var o=t.value,i=e?e.value:null,s=r?r._outlets[t.value.outlet]:null;i&&o._routeConfig===i._routeConfig?(this.shouldRunGuardsAndResolvers(i,o,o._routeConfig.runGuardsAndResolvers)?(this.canActivateChecks.push(new br(n)),this.canDeactivateChecks.push(new wr(s.component,i))):(o.data=i.data,o._resolvedData=i._resolvedData),o.component?this.traverseChildRoutes(t,e,s?s.outletMap:null,n):this.traverseChildRoutes(t,e,r,n)):(i&&this.deactiveRouteAndItsChildren(e,s),this.canActivateChecks.push(new br(n)),o.component?this.traverseChildRoutes(t,null,s?s.outletMap:null,n):this.traverseChildRoutes(t,null,r,n))},t.prototype.shouldRunGuardsAndResolvers=function(t,e,r){switch(r){case"always":return!0;case"paramsOrQueryParamsChange":return!Tt(t,e)||!M(t.queryParams,e.queryParams);case"paramsChange":default:return!Tt(t,e)}},t.prototype.deactiveRouteAndItsChildren=function(t,e){var r=this,n=me(t),o=t.value;I(n,function(t,n){o.component?e?r.deactiveRouteAndItsChildren(t,e.outletMap._outlets[n]):r.deactiveRouteAndItsChildren(t,null):r.deactiveRouteAndItsChildren(t,e)}),this.canDeactivateChecks.push(o.component?e&&e.isActivated?new wr(e.component,o):new wr(null,o):new wr(null,o))},t.prototype.runCanDeactivateChecks=function(){var t=this,e=i.from(this.canDeactivateChecks),r=p.mergeMap.call(e,function(e){return t.runCanDeactivate(e.component,e.route)});return u.every.call(r,function(t){return t===!0})},t.prototype.runCanActivateChecks=function(){var t=this,e=i.from(this.canActivateChecks),r=p.mergeMap.call(e,function(e){return D(i.from([t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))});return u.every.call(r,function(t){return t===!0})},t.prototype.runCanActivate=function(t){var e=this,r=t._routeConfig?t._routeConfig.canActivate:null;if(!r||0===r.length)return s.of(!0);var n=l.map.call(i.from(r),function(r){var n,o=e.getToken(r,t);return n=j(o.canActivate?o.canActivate(t,e.future):o(t,e.future)),c.first.call(n)});return D(n)},t.prototype.runCanActivateChild=function(t){var e=this,r=t[t.length-1],n=t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t});return D(l.map.call(i.from(n),function(t){var n=l.map.call(i.from(t.guards),function(n){var o,i=e.getToken(n,t.node);return o=j(i.canActivateChild?i.canActivateChild(r,e.future):i(r,e.future)),c.first.call(o)});return D(n)}))},t.prototype.extractCanActivateChild=function(t){var e=t._routeConfig?t._routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var r=this,n=e&&e._routeConfig?e._routeConfig.canDeactivate:null;if(!n||0===n.length)return s.of(!0);var o=p.mergeMap.call(i.from(n),function(n){var o,i=r.getToken(n,e);return o=j(i.canDeactivate?i.canDeactivate(t,e,r.curr,r.future):i(t,e,r.curr,r.future)),c.first.call(o)});return u.every.call(o,function(t){return t===!0})},t.prototype.runResolve=function(t){var e=t._resolve;return l.map.call(this.resolveNode(e,t),function(e){return t._resolvedData=e,t.data=vr({},t.data,Ct(t).resolve),null})},t.prototype.resolveNode=function(t,e){var r=this;return N(t,function(t,n){var o=r.getToken(n,e);return j(o.resolve?o.resolve(e,r.future):o(e,r.future))})},t.prototype.getToken=function(t,e){var r=de(e),n=r?r.module.injector:this.moduleInjector;return n.get(t)},t}(),Er=function(){function t(t,e,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=r}return t.prototype.activate=function(t){var e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,t),xt(this.futureState.root),this.activateChildRoutes(e,r,t)},t.prototype.deactivateChildRoutes=function(t,e,r){var n=this,o=me(e);t.children.forEach(function(t){n.deactivateRoutes(t,o[t.value.outlet],r),delete o[t.value.outlet]}),I(o,function(t){return n.deactiveRouteAndItsChildren(t,r)})},t.prototype.activateChildRoutes=function(t,e,r){var n=this,o=me(e);t.children.forEach(function(t){n.activateRoutes(t,o[t.value.outlet],r)})},t.prototype.deactivateRoutes=function(t,e,r){var n=t.value,o=e?e.value:null;if(n===o)if(n.component){var i=ye(r,n);this.deactivateChildRoutes(t,e,i.outletMap)}else this.deactivateChildRoutes(t,e,r);else o&&this.deactiveRouteAndItsChildren(e,r)},t.prototype.activateRoutes=function(t,e,r){var n=t.value,o=e?e.value:null;if(n===o)if(xt(n),n.component){var i=ye(r,n);this.activateChildRoutes(t,e,i.outletMap)}else this.activateChildRoutes(t,e,r);else if(n.component){xt(n);var i=ye(r,t.value);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){var s=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),i.attach(s.componentRef,s.route.value),he(s.route)}else{var a=new dr;this.placeComponentIntoOutlet(a,n,i),this.activateChildRoutes(t,null,a)}}else xt(n),this.activateChildRoutes(t,null,r)},t.prototype.placeComponentIntoOutlet=function(t,e,r){var n=fe(e.snapshot),o=n?n.module.componentFactoryResolver:null;r.activateWith(e,o,t)},t.prototype.deactiveRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactiveRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var r=ye(e,t.value),n=r.detach();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:n,route:t})},t.prototype.deactiveRouteAndOutlet=function(t,e){var r=this,n=me(t),o=null;try{o=ye(e,t.value)}catch(i){return}var s=o.outletMap;I(n,function(n){t.value.component?r.deactiveRouteAndItsChildren(n,s):r.deactiveRouteAndItsChildren(n,e)}),o&&o.isActivated&&o.deactivate()},t}(),Sr=function(){function t(t,e,r,n,o){this.router=t,this.route=e,this.commands=[],null==r&&n.setElementAttribute(o.nativeElement,"tabindex","0")}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){r.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){var t={skipLocationChange:ge(this.skipLocationChange),replaceUrl:ge(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ge(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ge(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();Sr.decorators=[{type:r.Directive,args:[{selector:":not(a)[routerLink]"}]}],Sr.ctorParameters=function(){return[{type:_r},{type:or},{type:void 0,decorators:[{type:r.Attribute,args:["tabindex"]}]},{type:r.Renderer},{type:r.ElementRef}]},Sr.propDecorators={queryParams:[{type:r.Input}],fragment:[{type:r.Input}],queryParamsHandling:[{type:r.Input}],preserveFragment:[{type:r.Input}],skipLocationChange:[{type:r.Input}],replaceUrl:[{type:r.Input}],routerLink:[{type:r.Input}],preserveQueryParams:[{type:r.Input}],onClick:[{type:r.HostListener,args:["click"]}]};var xr=function(){function t(t,e,r){var n=this;this.router=t,this.route=e,this.locationStrategy=r,this.commands=[],this.subscription=t.events.subscribe(function(t){t instanceof Me&&n.updateTargetUrlAndHref()})}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){r.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onClick=function(t,e,r){if(0!==t||e||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var n={skipLocationChange:ge(this.skipLocationChange),replaceUrl:ge(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,n),!1},t.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ge(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ge(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();xr.decorators=[{type:r.Directive,args:[{selector:"a[routerLink]"}]}],xr.ctorParameters=function(){return[{type:_r},{type:or},{type:e.LocationStrategy}]},xr.propDecorators={target:[{type:r.HostBinding,args:["attr.target"]},{type:r.Input}],queryParams:[{type:r.Input}],fragment:[{type:r.Input}],queryParamsHandling:[{type:r.Input}],preserveFragment:[{type:r.Input}],skipLocationChange:[{type:r.Input}],replaceUrl:[{type:r.Input}],href:[{type:r.HostBinding}],routerLink:[{type:r.Input}],preserveQueryParams:[{type:r.Input}],onClick:[{type:r.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey"]]}]};var Tr=function(){function t(t,e,r,n){var o=this;this.router=t,this.element=e,this.renderer=r,this.cdr=n,this.classes=[],this.active=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(function(t){t instanceof Me&&o.update()})}return Object.defineProperty(t.prototype,"isActive",{get:function(){return this.active},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this.links.changes.subscribe(function(){return t.update()}),this.linksWithHrefs.changes.subscribe(function(){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(){this.update()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.update=function(){var t=this;if(this.links&&this.linksWithHrefs&&this.router.navigated){var e=this.hasActiveLinks();this.active!==e&&(this.classes.forEach(function(r){return t.renderer.setElementClass(t.element.nativeElement,r,e)}),Promise.resolve(e).then(function(e){return t.active=e}))}},t.prototype.isLinkActive=function(t){var e=this;return function(r){return t.isActive(r.urlTree,e.routerLinkActiveOptions.exact)}},t.prototype.hasActiveLinks=function(){return this.links.some(this.isLinkActive(this.router))||this.linksWithHrefs.some(this.isLinkActive(this.router))},t}();Tr.decorators=[{type:r.Directive,args:[{selector:"[routerLinkActive]",exportAs:"routerLinkActive"}]}],Tr.ctorParameters=function(){return[{type:_r},{type:r.ElementRef},{type:r.Renderer},{type:r.ChangeDetectorRef}]},Tr.propDecorators={links:[{type:r.ContentChildren,args:[Sr,{descendants:!0}]}],linksWithHrefs:[{type:r.ContentChildren,args:[xr,{descendants:!0}]}],routerLinkActiveOptions:[{type:r.Input}],routerLinkActive:[{type:r.Input}]};var Pr=function(){function t(t,e,n,o){this.parentOutletMap=t,this.location=e,this.resolver=n,this.name=o,this.activateEvents=new r.EventEmitter,this.deactivateEvents=new r.EventEmitter,t.registerOutlet(o?o:je,this)}return t.prototype.ngOnDestroy=function(){this.parentOutletMap.removeOutlet(this.name?this.name:je)},Object.defineProperty(t.prototype,"locationInjector",{get:function(){return this.location.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locationFactoryResolver",{get:function(){return this.resolver},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),t.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t},t.prototype.attach=function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)},t.prototype.deactivate=function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}},t.prototype.activate=function(t,e,n,o,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this.outletMap=i,this._activatedRoute=t;var s=t._futureSnapshot,a=s._routeConfig.component,u=e.resolveComponentFactory(a),c=r.ReflectiveInjector.fromResolvedProviders(o,n);this.activated=this.location.createComponent(u,this.location.length,c,[]),this.activated.changeDetectorRef.detectChanges(),this.activateEvents.emit(this.activated.instance)},t.prototype.activateWith=function(t,e,r){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this.outletMap=r,this._activatedRoute=t;var n=t._futureSnapshot,o=n._routeConfig.component;e=e||this.resolver;var i=e.resolveComponentFactory(o),s=new Ar(t,r,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s,[]),this.activated.changeDetectorRef.detectChanges(),this.activateEvents.emit(this.activated.instance)},t}();Pr.decorators=[{type:r.Directive,args:[{selector:"router-outlet"}]}],Pr.ctorParameters=function(){return[{type:dr},{type:r.ViewContainerRef},{type:r.ComponentFactoryResolver},{type:void 0,decorators:[{type:r.Attribute,args:["name"]}]}]},Pr.propDecorators={activateEvents:[{type:r.Output,args:["activate"]}],deactivateEvents:[{type:r.Output,args:["deactivate"]}]};var Ar=function(){function t(t,e,r){this.route=t,this.map=e,this.parent=r}return t.prototype.get=function(t,e){return t===or?this.route:t===dr?this.map:this.parent.get(t,e)},t}(),Or=function(){function t(){}return t.prototype.shouldDetach=function(){},t.prototype.store=function(){},t.prototype.shouldAttach=function(){},t.prototype.retrieve=function(){},t.prototype.shouldReuseRoute=function(){},t}(),Mr=function(){function t(){}return t.prototype.preload=function(){},t}(),Rr=function(){function t(){}return t.prototype.preload=function(t,e){return d._catch.call(e(),function(){return s.of(null)})},t}(),kr=function(){function t(){}return t.prototype.preload=function(){return s.of(null)},t}(),Ir=function(){function t(t,e,r,n,o){this.router=t,this.injector=n,this.preloadingStrategy=o;var i=function(e){return t.triggerEvent(new Ne(e))},s=function(e){return t.triggerEvent(new De(e))};this.loader=new fr(e,r,i,s)}return t.prototype.setUpPreloading=function(){var t=this,e=w.filter.call(this.router.events,function(t){return t instanceof Me});this.subscription=a.concatMap.call(e,function(){return t.preload()}).subscribe(function(){})},t.prototype.preload=function(){var t=this.injector.get(r.NgModuleRef);return this.processRoutes(t,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){for(var r=[],n=0,o=e;n<o.length;n++){var s=o[n];if(s.loadChildren&&!s.canLoad&&s._loadedConfig){var a=s._loadedConfig;r.push(this.processRoutes(a.module,a.routes))}else s.loadChildren&&!s.canLoad?r.push(this.preloadConfig(t,s)):s.children&&r.push(this.processRoutes(t,s.children))}return _.mergeAll.call(i.from(r))},t.prototype.preloadConfig=function(t,e){var r=this;return this.preloadingStrategy.preload(e,function(){var n=r.loader.load(t.injector,e);return p.mergeMap.call(n,function(t){return e._loadedConfig=t,r.processRoutes(t.module,t.routes)})})},t}();Ir.decorators=[{type:r.Injectable}],Ir.ctorParameters=function(){return[{type:_r},{type:r.NgModuleFactoryLoader},{type:r.Compiler},{type:r.Injector},{type:Mr}]};var Nr=[Pr,Sr,xr,Tr],Dr=new r.InjectionToken("ROUTER_CONFIGURATION"),jr=new r.InjectionToken("ROUTER_FORROOT_GUARD"),Lr=[e.Location,{provide:qe,useClass:ze},{provide:_r,useFactory:Ee,deps:[r.ApplicationRef,qe,dr,e.Location,r.Injector,r.NgModuleFactoryLoader,r.Compiler,hr,Dr,[mr,new r.Optional],[Or,new r.Optional]]},dr,{provide:or,useFactory:Se,deps:[_r]},{provide:r.NgModuleFactoryLoader,useClass:r.SystemJsNgModuleLoader},Ir,kr,Rr,{provide:Dr,useValue:{enableTracing:!1}}],Vr=function(){function t(){}return t.forRoot=function(n,o){return{ngModule:t,providers:[Lr,Ce(n),{provide:jr,useFactory:we,deps:[[_r,new r.Optional,new r.SkipSelf]]},{provide:Dr,useValue:o?o:{}},{provide:e.LocationStrategy,useFactory:be,deps:[e.PlatformLocation,[new r.Inject(e.APP_BASE_HREF),new r.Optional],Dr]},{provide:Mr,useExisting:o&&o.preloadingStrategy?o.preloadingStrategy:kr},{provide:r.NgProbeToken,multi:!0,useFactory:_e},Pe()]}},t.forChild=function(e){return{ngModule:t,providers:[Ce(e)]}},t}();Vr.decorators=[{type:r.NgModule,args:[{declarations:Nr,exports:Nr}]}],Vr.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Optional},{type:r.Inject,args:[jr]}]},{type:_r,decorators:[{type:r.Optional}]}]};var Fr=function(){function t(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new o.Subject}return t.prototype.appInitializer=function(){var t=this,r=this.injector.get(e.LOCATION_INITIALIZED,Promise.resolve(null));return r.then(function(){var e=null,r=new Promise(function(t){return e=t}),n=t.injector.get(_r),o=t.injector.get(Dr);if(t.isLegacyDisabled(o)||t.isLegacyEnabled(o))e(!0);else if("disabled"===o.initialNavigation)n.setUpLocationChangeListener(),e(!0);else{if("enabled"!==o.initialNavigation)throw new Error("Invalid initialNavigation options: '"+o.initialNavigation+"'");n.hooks.afterPreactivation=function(){return t.initNavigation?s.of(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},n.initialNavigation()}return r})},t.prototype.bootstrapListener=function(t){var e=this.injector.get(Dr),n=this.injector.get(Ir),o=this.injector.get(_r),i=this.injector.get(r.ApplicationRef);t===i.components[0]&&(this.isLegacyEnabled(e)?o.initialNavigation():this.isLegacyDisabled(e)&&o.setUpLocationChangeListener(),n.setUpPreloading(),o.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},t.prototype.isLegacyEnabled=function(t){return"legacy_enabled"===t.initialNavigation||t.initialNavigation===!0||void 0===t.initialNavigation},t.prototype.isLegacyDisabled=function(t){return"legacy_disabled"===t.initialNavigation||t.initialNavigation===!1},t}();Fr.decorators=[{type:r.Injectable}],Fr.ctorParameters=function(){return[{type:r.Injector}]};var Ur=new r.InjectionToken("Router Initializer"),Hr=new r.Version("4.1.0");t.RouterLink=Sr,t.RouterLinkWithHref=xr,t.RouterLinkActive=Tr,t.RouterOutlet=Pr,t.NavigationCancel=Re,t.NavigationEnd=Me,t.NavigationError=ke,t.NavigationStart=Oe,t.RouteConfigLoadEnd=De,t.RouteConfigLoadStart=Ne,t.RoutesRecognized=Ie,t.RouteReuseStrategy=Or,t.Router=_r,t.ROUTES=hr,t.ROUTER_CONFIGURATION=Dr,t.ROUTER_INITIALIZER=Ur,t.RouterModule=Vr,t.provideRoutes=Ce,t.RouterOutletMap=dr,t.NoPreloading=kr,t.PreloadAllModules=Rr,t.PreloadingStrategy=Mr,t.RouterPreloader=Ir,t.ActivatedRoute=or,t.ActivatedRouteSnapshot=ir,t.RouterState=nr,t.RouterStateSnapshot=sr,t.PRIMARY_OUTLET=je,t.convertToParamMap=C,t.UrlHandlingStrategy=mr,t.DefaultUrlSerializer=ze,t.UrlSegment=Be,t.UrlSegmentGroup=He,t.UrlSerializer=qe,t.UrlTree=Ue,t.VERSION=Hr,t.ɵROUTER_PROVIDERS=Lr,t.ɵflatten=R,t.ɵa=jr,t.ɵg=Fr,t.ɵh=xe,t.ɵi=Te,t.ɵd=we,t.ɵc=be,t.ɵj=Pe,t.ɵf=Se,t.ɵb=_e,t.ɵe=Ee,t.ɵk=tr,t.ɵl=er,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":6,"@angular/core":8,"@angular/platform-browser":12,"rxjs/BehaviorSubject":14,"rxjs/Observable":17,"rxjs/Subject":20,"rxjs/observable/from":35,"rxjs/observable/fromPromise":36,"rxjs/observable/of":38,"rxjs/operator/catch":39,"rxjs/operator/concatAll":40,"rxjs/operator/concatMap":41,"rxjs/operator/every":42,"rxjs/operator/filter":43,"rxjs/operator/first":44,"rxjs/operator/last":45,"rxjs/operator/map":46,"rxjs/operator/mergeAll":48,"rxjs/operator/mergeMap":49,"rxjs/operator/reduce":52,"rxjs/util/EmptyError":57}],14:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("./Subject"),i=t("./util/ObjectUnsubscribedError"),s=function(t){function e(e){t.call(this),this._value=e}return n(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var r=t.prototype._subscribe.call(this,e);return r&&!r.closed&&e.next(this._value),r},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.ObjectUnsubscribedError;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(o.Subject);r.BehaviorSubject=s},{"./Subject":20,"./util/ObjectUnsubscribedError":58}],15:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("./Subscriber"),i=function(t){function e(e,r,n){t.call(this),this.parent=e,this.outerValue=r,this.outerIndex=n,this.index=0}return n(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(o.Subscriber);r.InnerSubscriber=i},{"./Subscriber":22}],16:[function(t,e,r){"use strict";var n=t("./Observable"),o=function(){function t(t,e,r){this.kind=t,this.value=e,this.error=r,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype["do"]=function(t,e,r){var n=this.kind;switch(n){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return r&&r()}},t.prototype.accept=function(t,e,r){return t&&"function"==typeof t.next?this.observe(t):this["do"](t,e,r)},t.prototype.toObservable=function(){var t=this.kind;switch(t){case"N":return n.Observable.of(this.value);case"E":return n.Observable["throw"](this.error);case"C":return n.Observable.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return"undefined"!=typeof e?new t("N",e):this.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return this.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();r.Notification=o},{"./Observable":17}],17:[function(t,e,r){"use strict";var n=t("./util/root"),o=t("./util/toSubscriber"),i=t("./symbol/observable"),s=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,i=o.toSubscriber(t,e,r);if(n?n.call(i,this.source):i.add(this._trySubscribe(i)),i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var r=this;if(e||(n.root.Rx&&n.root.Rx.config&&n.root.Rx.config.Promise?e=n.root.Rx.config.Promise:n.root.Promise&&(e=n.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,n){var o=r.subscribe(function(e){if(o)try{t(e)}catch(r){n(r),o.unsubscribe()}else t(e)},n,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[i.$$observable]=function(){return this},t.create=function(e){return new t(e)},t}();r.Observable=s},{"./symbol/observable":55,"./util/root":67,"./util/toSubscriber":69}],18:[function(t,e,r){"use strict";r.empty={closed:!0,next:function(){},error:function(t){throw t},complete:function(){}}},{}],19:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("./Subscriber"),i=function(t){function e(){t.apply(this,arguments)}return n(e,t),e.prototype.notifyNext=function(t,e){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(o.Subscriber);r.OuterSubscriber=i},{"./Subscriber":22}],20:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("./Observable"),i=t("./Subscriber"),s=t("./Subscription"),a=t("./util/ObjectUnsubscribedError"),u=t("./SubjectSubscription"),c=t("./symbol/rxSubscriber"),l=function(t){function e(e){t.call(this,e),this.destination=e}return n(e,t),e}(i.Subscriber);r.SubjectSubscriber=l;var p=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return n(e,t),e.prototype[c.$$rxSubscriber]=function(){return new l(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,r=e.length,n=e.slice(),o=0;r>o;o++)n[o].next(t);
+return n.addEventListener(t,e,r)},t.prototype.addGlobalEventListener=function(t,e,r){var n=this._findPluginFor(e);return n.addGlobalEventListener(t,e,r)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var r=this._plugins,n=0;n<r.length;n++){var o=r[n];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error("No event manager plugin found for event "+t)},t}();at.decorators=[{type:r.Injectable}],at.ctorParameters=function(){return[{type:Array,decorators:[{type:r.Inject,args:[st]}]},{type:r.NgZone}]};var ut=function(){function t(t){this._doc=t}return t.prototype.supports=function(){},t.prototype.addEventListener=function(){},t.prototype.addGlobalEventListener=function(t,e,r){var o=n().getGlobalEventTarget(this._doc,t);if(!o)throw new Error("Unsupported event target "+o+" for event "+e);return this.addEventListener(o,e,r)},t}(),ct=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,r=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),r.add(t))}),this.onStylesAdded(r)},t.prototype.onStylesAdded=function(){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t}();ct.decorators=[{type:r.Injectable}],ct.ctorParameters=function(){return[]};var lt=function(t){function e(e){var r=t.call(this)||this;return r._doc=e,r._hostNodes=new Set,r._styleNodes=new Set,r._hostNodes.add(e.head),r}return j(e,t),e.prototype._addStylesToHost=function(t,e){var r=this;t.forEach(function(t){var n=r._doc.createElement("style");n.textContent=t,r._styleNodes.add(e.appendChild(n))})},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes["delete"](t)},e.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach(function(r){return e._addStylesToHost(t,r)})},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return n().remove(t)})},e}(ct);lt.decorators=[{type:r.Injectable}],lt.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]}]};var pt={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/"},ht=/%COMP%/g,ft="%COMP%",dt="_nghost-"+ft,mt="_ngcontent-"+ft,yt=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new vt(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case r.ViewEncapsulation.Emulated:var n=this.rendererByCompId.get(e.id);return n||(n=new _t(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n;case r.ViewEncapsulation.Native:return new bt(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var o=y(e.id,e.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t}();yt.decorators=[{type:r.Injectable}],yt.ctorParameters=function(){return[{type:at},{type:lt}]};var vt=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(pt[e],t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,r){t&&t.insertBefore(e,r)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t){var e="string"==typeof t?document.querySelector(t):t;if(!e)throw new Error('The selector "'+t+'" did not match any elements');return e.textContent="",e},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,r,n){if(n){e=n+":"+e;var o=pt[n];o?t.setAttributeNS(o,e,r):t.setAttribute(e,r)}else t.setAttribute(e,r)},t.prototype.removeAttribute=function(t,e,r){if(r){var n=pt[r];n?t.removeAttributeNS(n,e):t.removeAttribute(r+":"+e)}else t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,n,o){o&r.RendererStyleFlags2.DashCase?t.style.setProperty(e,n,o&r.RendererStyleFlags2.Important?"important":""):t.style[e]=n},t.prototype.removeStyle=function(t,e,n){n&r.RendererStyleFlags2.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,r){g(e,"property"),t[e]=r},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,r){return g(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,v(r)):this.eventManager.addEventListener(t,e,v(r))},t}(),gt="@".charCodeAt(0),_t=function(t){function e(e,r,n){var o=t.call(this,e)||this;o.component=n;var i=y(n.id,n.styles,[]);return r.addStyles(i),o.contentAttr=d(n.id),o.hostAttr=m(n.id),o}return j(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,r){var n=t.prototype.createElement.call(this,e,r);return t.prototype.setAttribute.call(this,n,this.contentAttr,""),n},e}(vt),bt=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;i.sharedStylesHost=r,i.hostEl=n,i.component=o,i.shadowRoot=n.createShadowRoot(),i.sharedStylesHost.addHost(i.shadowRoot);for(var s=y(o.id,o.styles,[]),a=0;a<s.length;a++){var u=document.createElement("style");u.textContent=s[a],i.shadowRoot.appendChild(u)}return i}return j(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,r){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),r)},e.prototype.insertBefore=function(e,r,n){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),r,n)},e.prototype.removeChild=function(e,r){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),r)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(vt),wt=function(t){function e(e){return t.call(this,e)||this}return j(e,t),e.prototype.supports=function(){return!0},e.prototype.addEventListener=function(t,e,r){return t.addEventListener(e,r,!1),function(){return t.removeEventListener(e,r,!1)}},e}(ut);wt.decorators=[{type:r.Injectable}],wt.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]}]};var Ct={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},Et=new r.InjectionToken("HammerGestureConfig"),St=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(var r in this.overrides)e.get(r).set(this.overrides[r]);return e},t}();St.decorators=[{type:r.Injectable}],St.ctorParameters=function(){return[]};var xt=function(t){function e(e,r){var n=t.call(this,e)||this;return n._config=r,n}return j(e,t),e.prototype.supports=function(t){if(!Ct.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t))return!1;if(!window.Hammer)throw new Error("Hammer.js is not loaded, can not bind "+t+" event");return!0},e.prototype.addEventListener=function(t,e,r){var n=this,o=this.manager.getZone();return e=e.toLowerCase(),o.runOutsideAngular(function(){var i=n._config.buildHammer(t),s=function(t){o.runGuarded(function(){r(t)})};return i.on(e,s),function(){return i.off(e,s)}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e}(ut);xt.decorators=[{type:r.Injectable}],xt.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]},{type:St,decorators:[{type:r.Inject,args:[Et]}]}]};var Tt=["alt","control","meta","shift"],Pt={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},At=function(t){function e(e){return t.call(this,e)||this}return j(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,r,o){var i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return n().onAndCancel(t,i.domEventName,s)})},e.parseEventName=function(t){var r=t.toLowerCase().split("."),n=r.shift();if(0===r.length||"keydown"!==n&&"keyup"!==n)return null;var o=e._normalizeKey(r.pop()),i="";if(Tt.forEach(function(t){var e=r.indexOf(t);e>-1&&(r.splice(e,1),i+=t+".")}),i+=o,0!=r.length||0===o.length)return null;var s={};return s.domEventName=n,s.fullKey=i,s},e.getEventFullKey=function(t){var e="",r=n().getEventKey(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Tt.forEach(function(n){if(n!=r){var o=Pt[n];o(t)&&(e+=n+".")}}),e+=r},e.eventCallback=function(t,r,n){return function(o){e.getEventFullKey(o)===t&&n.runGuarded(function(){return r(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(ut);At.decorators=[{type:r.Injectable}],At.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]}]};var Ot=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,Mt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,Rt=null,kt=null,It=C("area,br,col,hr,img,wbr"),Nt=C("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Dt=C("rp,rt"),jt=E(Dt,Nt),Lt=E(Nt,C("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Vt=E(Dt,C("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ft=E(It,Lt,Vt,jt),Ut=C("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Bt=C("srcset"),Ht=C("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),qt=E(Ut,Bt,Ht),zt=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(kt.isElementNode(e)?this.startElement(e):kt.isTextNode(e)?this.chars(kt.nodeValue(e)):this.sanitizedSomething=!0,kt.firstChild(e))e=kt.firstChild(e);else for(;e;){kt.isElementNode(e)&&this.endElement(e);var r=S(e,kt.nextSibling(e));if(r){e=r;break}e=S(e,kt.parentElement(e))}return this.buf.join("")},t.prototype.startElement=function(t){var e=this,r=kt.nodeName(t).toLowerCase();return Ft.hasOwnProperty(r)?(this.buf.push("<"),this.buf.push(r),kt.attributeMap(t).forEach(function(t,r){var n=r.toLowerCase();return qt.hasOwnProperty(n)?(Ut[n]&&(t=_(t)),Bt[n]&&(t=b(t)),e.buf.push(" "),e.buf.push(r),e.buf.push('="'),e.buf.push(x(t)),void e.buf.push('"')):void(e.sanitizedSomething=!0)}),void this.buf.push(">")):void(this.sanitizedSomething=!0)},t.prototype.endElement=function(t){var e=kt.nodeName(t).toLowerCase();Ft.hasOwnProperty(e)&&!It.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(x(t))},t}(),Gt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Wt=/([^\#-~ |!])/g,$t="[-,.\"'%_!# a-zA-Z0-9]+",Kt="(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?",Qt="(?:rgb|hsl)a?",Xt="(?:repeating-)?(?:linear|radial)-gradient",Zt="(?:calc|attr)",Yt="\\([-0-9.%, #a-zA-Z]+\\)",Jt=new RegExp("^("+$t+"|"+("(?:"+Kt+"|"+Qt+"|"+Xt+"|"+Zt+")")+(Yt+")$"),"g"),te=/^url\(([^)]+)\)$/,ee=function(){function t(){}return t.prototype.sanitize=function(){},t.prototype.bypassSecurityTrustHtml=function(){},t.prototype.bypassSecurityTrustStyle=function(){},t.prototype.bypassSecurityTrustScript=function(){},t.prototype.bypassSecurityTrustUrl=function(){},t.prototype.bypassSecurityTrustResourceUrl=function(){},t}(),re=function(t){function e(e){var r=t.call(this)||this;return r._doc=e,r}return j(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case r.SecurityContext.NONE:return e;case r.SecurityContext.HTML:return e instanceof oe?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),P(this._doc,String(e)));case r.SecurityContext.STYLE:return e instanceof ie?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),O(e));case r.SecurityContext.SCRIPT:if(e instanceof se)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case r.SecurityContext.URL:return e instanceof ue||e instanceof ae?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),_(String(e)));case r.SecurityContext.RESOURCE_URL:if(e instanceof ue)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 ne)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 oe(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new ie(t)},e.prototype.bypassSecurityTrustScript=function(t){return new se(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new ae(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new ue(t)},e}(ee);re.decorators=[{type:r.Injectable}],re.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]}]};var ne=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.getTypeName=function(){},t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),oe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(ne),ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"Style"},e}(ne),se=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"Script"},e}(ne),ae=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"URL"},e}(ne),ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(ne),ce=[{provide:r.PLATFORM_ID,useValue:e.ɵPLATFORM_BROWSER_ID},{provide:r.PLATFORM_INITIALIZER,useValue:M,multi:!0},{provide:e.PlatformLocation,useClass:K},{provide:$,useFactory:k,deps:[]}],le=[{provide:r.Sanitizer,useExisting:ee},{provide:ee,useClass:re}],pe=r.createPlatformFactory(r.platformCore,"browser",ce),he=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:r.APP_ID,useValue:e.appId},{provide:X,useExisting:r.APP_ID},Z]}},t}();he.decorators=[{type:r.NgModule,args:[{providers:[le,{provide:r.ErrorHandler,useFactory:R,deps:[]},{provide:st,useClass:wt,multi:!0},{provide:st,useClass:At,multi:!0},{provide:st,useClass:xt,multi:!0},{provide:Et,useClass:St},yt,{provide:r.RendererFactory2,useExisting:yt},{provide:ct,useExisting:lt},lt,r.Testability,at,it,Q,J],exports:[e.CommonModule,r.ApplicationModule]}]}],he.ctorParameters=function(){return[{type:he,decorators:[{type:r.Optional},{type:r.SkipSelf}]}]};var fe="undefined"!=typeof window&&window||{},de=function(){function t(t,e){this.msPerTick=t,this.numTicks=e}return t}(),me=function(){function t(t){this.appRef=t.injector.get(r.ApplicationRef)}return t.prototype.timeChangeDetection=function(t){var e=t&&t.record,r="Change Detection",o=null!=fe.console.profile;e&&o&&fe.console.profile(r);for(var i=n().performanceNow(),s=0;5>s||n().performanceNow()-i<500;)this.appRef.tick(),s++;var a=n().performanceNow();e&&o&&fe.console.profileEnd(r);var u=(a-i)/s;return fe.console.log("ran "+s+" change detection cycles"),fe.console.log(u.toFixed(2)+" ms per check"),new de(u,s)},t}(),ye="ng.profiler",ve=function(){function t(){}return t.all=function(){return function(){return!0}},t.css=function(t){return function(e){return null!=e.nativeElement?n().elementMatches(e.nativeElement,t):!1}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}},t}(),ge=new r.Version("4.1.0");t.BrowserModule=he,t.platformBrowser=pe,t.Meta=Q,t.Title=J,t.disableDebugTools=N,t.enableDebugTools=I,t.By=ve,t.NgProbeToken=ot,t.DOCUMENT=$,t.EVENT_MANAGER_PLUGINS=st,t.EventManager=at,t.HAMMER_GESTURE_CONFIG=Et,t.HammerGestureConfig=St,t.DomSanitizer=ee,t.VERSION=ge,t.ɵBROWSER_SANITIZATION_PROVIDERS=le,t.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS=ce,t.ɵinitDomAdapter=M,t.ɵBrowserDomAdapter=G,t.ɵsetValueOnPath=u,t.ɵBrowserPlatformLocation=K,t.ɵTRANSITION_ID=X,t.ɵBrowserGetTestability=Y,t.ɵELEMENT_PROBE_PROVIDERS=it,t.ɵDomAdapter=V,t.ɵgetDOM=n,t.ɵsetRootDomAdapter=o,t.ɵDomRendererFactory2=yt,t.ɵNAMESPACE_URIS=pt,t.ɵflattenStyles=y,t.ɵshimContentAttribute=d,t.ɵshimHostAttribute=m,t.ɵDomEventsPlugin=wt,t.ɵHammerGesturesPlugin=xt,t.ɵKeyEventsPlugin=At,t.ɵDomSharedStylesHost=lt,t.ɵSharedStylesHost=ct,t.ɵb=k,t.ɵa=R,t.ɵh=F,t.ɵg=Z,t.ɵf=l,t.ɵc=h,t.ɵd=ut,t.ɵe=re,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":6,"@angular/core":8}],13:[function(e,r,n){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/common"),e("@angular/core"),e("rxjs/BehaviorSubject"),e("rxjs/Subject"),e("rxjs/observable/from"),e("rxjs/observable/of"),e("rxjs/operator/concatMap"),e("rxjs/operator/every"),e("rxjs/operator/first"),e("rxjs/operator/map"),e("rxjs/operator/mergeMap"),e("rxjs/operator/reduce"),e("rxjs/Observable"),e("rxjs/operator/catch"),e("rxjs/operator/concatAll"),e("rxjs/util/EmptyError"),e("rxjs/observable/fromPromise"),e("rxjs/operator/last"),e("rxjs/operator/mergeAll"),e("@angular/platform-browser"),e("rxjs/operator/filter")):"function"==typeof t&&t.amd?t(["exports","@angular/common","@angular/core","rxjs/BehaviorSubject","rxjs/Subject","rxjs/observable/from","rxjs/observable/of","rxjs/operator/concatMap","rxjs/operator/every","rxjs/operator/first","rxjs/operator/map","rxjs/operator/mergeMap","rxjs/operator/reduce","rxjs/Observable","rxjs/operator/catch","rxjs/operator/concatAll","rxjs/util/EmptyError","rxjs/observable/fromPromise","rxjs/operator/last","rxjs/operator/mergeAll","@angular/platform-browser","rxjs/operator/filter"],i):i((o.ng=o.ng||{},o.ng.router=o.ng.router||{}),o.ng.common,o.ng.core,o.Rx,o.Rx,o.Rx.Observable,o.Rx.Observable,o.Rx.Observable.prototype,o.Rx.Observable.prototype,o.Rx.Observable.prototype,o.Rx.Observable.prototype,o.Rx.Observable.prototype,o.Rx.Observable.prototype,o.Rx,o.Rx.Observable.prototype,o.Rx.Observable.prototype,o.Rx,o.Rx.Observable,o.Rx.Observable.prototype,o.Rx.Observable.prototype,o.ng.platformBrowser,o.Rx.Observable.prototype)}(this,function(t,e,r,n,o,i,s,a,u,c,l,p,h,f,d,m,y,v,g,_,b,w){"use strict";function C(t){return new Le(t)}function E(t){var e=Error("NavigationCancelingError: "+t);return e[Ve]=!0,e}function S(t){return t[Ve]}function x(t,e,r){var n=r.path.split("/");if(n.length>t.length)return null;if("full"===r.pathMatch&&(e.hasChildren()||n.length<t.length))return null;for(var o={},i=0;i<n.length;i++){var s=n[i],a=t[i],u=s.startsWith(":");if(u)o[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,n.length),posParams:o}}function T(t,e){void 0===e&&(e="");for(var r=0;r<t.length;r++){var n=t[r],o=A(e,n);P(n,o)}}function P(t,e){if(!t)throw new Error("\n      Invalid configuration of route '"+e+"': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    ");if(Array.isArray(t))throw new Error("Invalid configuration of route '"+e+"': Array cannot be specified");if(!t.component&&t.outlet&&t.outlet!==je)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){var r="The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.";throw new Error("Invalid configuration of route '{path: \""+e+'", redirectTo: "'+t.redirectTo+"\"}': please provide 'pathMatch'. "+r)}if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '"+e+"': pathMatch can only be set to 'prefix' or 'full'");t.children&&T(t.children,e)}function A(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function O(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r)if(!M(t[r],e[r]))return!1;return!0}function M(t,e){var r=Object.keys(t),n=Object.keys(e);if(r.length!=n.length)return!1;for(var o,i=0;i<r.length;i++)if(o=r[i],t[o]!==e[o])return!1;return!0}function R(t){return Array.prototype.concat.apply([],t)}function k(t){return t.length>0?t[t.length-1]:null}function I(t,e){for(var r in t)t.hasOwnProperty(r)&&e(t[r],r)}function N(t,e){if(0===Object.keys(t).length)return s.of({});var r=[],n=[],o={};I(t,function(t,i){var s=l.map.call(e(i,t),function(t){return o[i]=t});i===je?r.push(s):n.push(s)});var i=m.concatAll.call(s.of.apply(void 0,r.concat(n))),a=g.last.call(i);return l.map.call(a,function(){return o})}function D(t){var e=_.mergeAll.call(t);return u.every.call(e,function(t){return t===!0})}function j(t){return r.ɵisObservable(t)?t:r.ɵisPromise(t)?v.fromPromise(t):s.of(t)}function L(){return new Ue(new Be([],{}),{},null)}function V(t,e,r){return r?F(t.queryParams,e.queryParams)&&U(t.root,e.root):B(t.queryParams,e.queryParams)&&H(t.root,e.root)}function F(t,e){return M(t,e)}function U(t,e){if(!G(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(var r in e.children){if(!t.children[r])return!1;if(!U(t.children[r],e.children[r]))return!1}return!0}function B(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(r){return e[r]===t[r]})}function H(t,e){return q(t,e,e.segments)}function q(t,e,r){if(t.segments.length>r.length){var n=t.segments.slice(0,r.length);return G(n,r)?e.hasChildren()?!1:!0:!1}if(t.segments.length===r.length){if(!G(t.segments,r))return!1;for(var o in e.children){if(!t.children[o])return!1;if(!H(t.children[o],e.children[o]))return!1}return!0}var n=r.slice(0,t.segments.length),i=r.slice(t.segments.length);return G(t.segments,n)&&t.children[je]?q(t.children[je],e,i):!1}function z(t,e){return G(t,e)&&t.every(function(t,r){return M(t.parameters,e[r].parameters)})}function G(t,e){return t.length!==e.length?!1:t.every(function(t,r){return t.path===e[r].path})}function W(t,e){var r=[];return I(t.children,function(t,n){n===je&&(r=r.concat(e(t,n)))}),I(t.children,function(t,n){n!==je&&(r=r.concat(e(t,n)))}),r}function $(t){return t.segments.map(function(t){return Z(t)}).join("/")}function K(t,e){if(!t.hasChildren())return $(t);if(e){var r=t.children[je]?K(t.children[je],!1):"",n=[];return I(t.children,function(t,e){e!==je&&n.push(e+":"+K(t,!1))}),n.length>0?r+"("+n.join("//")+")":r}var o=W(t,function(e,r){return r===je?[K(t.children[je],!1)]:[r+":"+K(e,!1)]});return $(t)+"/("+o.join("//")+")"}function Q(t){return encodeURIComponent(t)}function X(t){return decodeURIComponent(t)}function Z(t){return""+Q(t.path)+Y(t.parameters)}function Y(t){return Object.keys(t).map(function(e){return";"+Q(e)+"="+Q(t[e])}).join("")}function J(t){var e=Object.keys(t).map(function(e){var r=t[e];return Array.isArray(r)?r.map(function(t){return Q(e)+"="+Q(t)}).join("&"):Q(e)+"="+Q(r)});return e.length?"?"+e.join("&"):""}function tt(t){var e=t.match(We);return e?e[0]:""}function et(t){var e=t.match($e);return e?e[0]:""}function rt(t){var e=t.match(Ke);return e?e[0]:""}function nt(t){return new f.Observable(function(e){return e.error(new Ze(t))})}function ot(t){return new f.Observable(function(e){return e.error(new Ye(t))})}function it(t){return new f.Observable(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}function st(t){return new f.Observable(function(e){return e.error(E("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}function at(t,e,r,n,o){return new Je(t,e,r,n,o).apply()}function ut(t,e){var r=e.canLoad;if(!r||0===r.length)return s.of(!0);var n=l.map.call(i.from(r),function(r){var n=t.get(r);return j(n.canLoad?n.canLoad(e):n(e))});return D(n)}function ct(t,e,r){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||r.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var n=e.matcher||x,o=n(r,t,e);return o?{matched:!0,consumedSegments:o.consumed,lastChild:o.consumed.length,positionalParamSegments:o.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function lt(t,e,r,n){if(r.length>0&&dt(t,r,n)){var o=new Be(e,ft(n,new Be(r,t.children)));return{segmentGroup:pt(o),slicedSegments:[]}}if(0===r.length&&mt(t,r,n)){var o=new Be(t.segments,ht(t,r,n,t.children));return{segmentGroup:pt(o),slicedSegments:r}}return{segmentGroup:t,slicedSegments:r}}function pt(t){if(1===t.numberOfChildren&&t.children[je]){var e=t.children[je];return new Be(t.segments.concat(e.segments),e.children)}return t}function ht(t,e,r,n){for(var o={},i=0,s=r;i<s.length;i++){var a=s[i];yt(t,e,a)&&!n[vt(a)]&&(o[vt(a)]=new Be([],{}))}return Xe({},n,o)}function ft(t,e){var r={};r[je]=e;for(var n=0,o=t;n<o.length;n++){var i=o[n];""===i.path&&vt(i)!==je&&(r[vt(i)]=new Be([],{}))}return r}function dt(t,e,r){return r.some(function(r){return yt(t,e,r)&&vt(r)!==je})}function mt(t,e,r){return r.some(function(r){return yt(t,e,r)})}function yt(t,e,r){return(t.hasChildren()||e.length>0)&&"full"===r.pathMatch?!1:""===r.path&&void 0!==r.redirectTo}function vt(t){return t.outlet||je}function gt(t,e){if(t===e.value)return e;for(var r=0,n=e.children;r<n.length;r++){var o=n[r],i=gt(t,o);if(i)return i}return null}function _t(t,e,r){if(r.push(e),t===e.value)return r;for(var n=0,o=e.children;n<o.length;n++){var i=o[n],s=r.slice(0),a=_t(t,i,s);if(a.length>0)return a}return[]}function bt(t,e){var r=wt(t,e),o=new n.BehaviorSubject([new He("",{})]),i=new n.BehaviorSubject({}),s=new n.BehaviorSubject({}),a=new n.BehaviorSubject({}),u=new n.BehaviorSubject(""),c=new or(o,i,a,u,s,je,e,r.root);return c.snapshot=r.root,new nr(new er(c,[]),r)}function wt(t,e){var r={},n={},o={},i="",s=new ir([],r,o,i,n,je,e,null,t.root,-1,{});return new sr("",new er(s,[]))}function Ct(t){for(var e=t.pathFromRoot,r=e.length-1;r>=1;){var n=e[r],o=e[r-1];if(n.routeConfig&&""===n.routeConfig.path)r--;else{if(o.component)break;r--}}return e.slice(r).reduce(function(t,e){var r=rr({},t.params,e.params),n=rr({},t.data,e.data),o=rr({},t.resolve,e._resolvedData);return{params:r,data:n,resolve:o}},{params:{},data:{},resolve:{}})}function Et(t,e){e.value._routerState=t,e.children.forEach(function(e){return Et(t,e)})}function St(t){var e=t.children.length>0?" { "+t.children.map(St).join(", ")+" } ":"";return""+t.value+e}function xt(t){if(t.snapshot){var e=t.snapshot;t.snapshot=t._futureSnapshot,M(e.queryParams,t._futureSnapshot.queryParams)||t.queryParams.next(t._futureSnapshot.queryParams),e.fragment!==t._futureSnapshot.fragment&&t.fragment.next(t._futureSnapshot.fragment),M(e.params,t._futureSnapshot.params)||t.params.next(t._futureSnapshot.params),O(e.url,t._futureSnapshot.url)||t.url.next(t._futureSnapshot.url),M(e.data,t._futureSnapshot.data)||t.data.next(t._futureSnapshot.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Tt(t,e){var r=M(t.params,e.params)&&z(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||Tt(t.parent,e.parent))}function Pt(t,e,r){var n=At(t,e._root,r?r._root:void 0);return new nr(n,e)}function At(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){var n=r.value;n._futureSnapshot=e.value;var o=Mt(t,e,r);return new er(n,o)}if(t.retrieve(e.value)){var i=t.retrieve(e.value).route;return Ot(e,i),i}var n=Rt(e.value),o=e.children.map(function(e){return At(t,e)});return new er(n,o)}function Ot(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(var r=0;r<t.children.length;++r)Ot(t.children[r],e.children[r])}function Mt(t,e,r){return e.children.map(function(e){for(var n=0,o=r.children;n<o.length;n++){var i=o[n];if(t.shouldReuseRoute(i.value.snapshot,e.value))return At(t,e,i)}return At(t,e)})}function Rt(t){return new or(new n.BehaviorSubject(t.url),new n.BehaviorSubject(t.params),new n.BehaviorSubject(t.queryParams),new n.BehaviorSubject(t.fragment),new n.BehaviorSubject(t.data),t.outlet,t.component,t)}function kt(t,e,r,n,o){if(0===r.length)return Nt(e.root,e.root,e,n,o);var i=jt(r);if(i.toRoot())return Nt(e.root,new Be([],{}),e,n,o);
+
+var s=Lt(i,e,t),a=s.processChildren?Ht(s.segmentGroup,s.index,i.commands):Bt(s.segmentGroup,s.index,i.commands);return Nt(s.segmentGroup,a,e,n,o)}function It(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Nt(t,e,r,n,o){var i={};return n&&I(n,function(t,e){i[e]=Array.isArray(t)?t.map(function(t){return""+t}):""+t}),r.root===t?new Ue(e,i,o):new Ue(Dt(r.root,t,e),i,o)}function Dt(t,e,r){var n={};return I(t.children,function(t,o){n[o]=t===e?r:Dt(t,e,r)}),new Be(t.segments,n)}function jt(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ar(!0,0,t);var e=0,r=!1,n=t.reduce(function(t,n,o){if("object"==typeof n&&null!=n){if(n.outlets){var i={};return I(n.outlets,function(t,e){i[e]="string"==typeof t?t.split("/"):t}),t.concat([{outlets:i}])}if(n.segmentPath)return t.concat([n.segmentPath])}return"string"!=typeof n?t.concat([n]):0===o?(n.split("/").forEach(function(n,o){0==o&&"."===n||(0==o&&""===n?r=!0:".."===n?e++:""!=n&&t.push(n))}),t):t.concat([n])},[]);return new ar(r,e,n)}function Lt(t,e,r){if(t.isAbsolute)return new ur(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new ur(r.snapshot._urlSegment,!0,0);var n=It(t.commands[0])?0:1,o=r.snapshot._lastPathIndex+n;return Vt(r.snapshot._urlSegment,o,t.numberOfDoubleDots)}function Vt(t,e,r){for(var n=t,o=e,i=r;i>o;){if(i-=o,n=n.parent,!n)throw new Error("Invalid number of '../'");o=n.segments.length}return new ur(n,!1,o-i)}function Ft(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[je]:""+t}function Ut(t){return"object"!=typeof t[0]?(e={},e[je]=t,e):void 0===t[0].outlets?(r={},r[je]=t,r):t[0].outlets;var e,r}function Bt(t,e,r){if(t||(t=new Be([],{})),0===t.segments.length&&t.hasChildren())return Ht(t,e,r);var n=qt(t,e,r),o=r.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){var i=new Be(t.segments.slice(0,n.pathIndex),{});return i.children[je]=new Be(t.segments.slice(n.pathIndex),t.children),Ht(i,0,o)}return n.match&&0===o.length?new Be(t.segments,{}):n.match&&!t.hasChildren()?zt(t,e,r):n.match?Ht(t,0,o):zt(t,e,r)}function Ht(t,e,r){if(0===r.length)return new Be(t.segments,{});var n=Ut(r),o={};return I(n,function(r,n){null!==r&&(o[n]=Bt(t.children[n],e,r))}),I(t.children,function(t,e){void 0===n[e]&&(o[e]=t)}),new Be(t.segments,o)}function qt(t,e,r){for(var n=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o<t.segments.length;){if(n>=r.length)return i;var s=t.segments[o],a=Ft(r[n]),u=n<r.length-1?r[n+1]:null;if(o>0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!$t(a,u,s))return i;n+=2}else{if(!$t(a,{},s))return i;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function zt(t,e,r){for(var n=t.segments.slice(0,e),o=0;o<r.length;){if("object"==typeof r[o]&&void 0!==r[o].outlets){var i=Gt(r[o].outlets);return new Be(n,i)}if(0===o&&It(r[0])){var s=t.segments[e];n.push(new He(s.path,r[0])),o++}else{var a=Ft(r[o]),u=o<r.length-1?r[o+1]:null;a&&u&&It(u)?(n.push(new He(a,Wt(u))),o+=2):(n.push(new He(a,{})),o++)}}return new Be(n,{})}function Gt(t){var e={};return I(t,function(t,r){null!==t&&(e[r]=zt(new Be([],{}),0,t))}),e}function Wt(t){var e={};return I(t,function(t,r){return e[r]=""+t}),e}function $t(t,e,r){return t==r.path&&M(e,r.parameters)}function Kt(t,e,r,n){return new pr(t,e,r,n).recognize()}function Qt(t){t.sort(function(t,e){return t.value.outlet===je?-1:e.value.outlet===je?1:t.value.outlet.localeCompare(e.value.outlet)})}function Xt(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}function Zt(t,e,r){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||r.length>0))throw new lr;return{consumedSegments:[],lastChild:0,parameters:{}}}var n=e.matcher||x,o=n(r,t,e);if(!o)throw new lr;var i={};I(o.posParams,function(t,e){i[e]=t.path});var s=cr({},i,o.consumed[o.consumed.length-1].parameters);return{consumedSegments:o.consumed,lastChild:o.consumed.length,parameters:s}}function Yt(t){var e={};t.forEach(function(t){var r=e[t.value.outlet];if(r){var n=r.url.map(function(t){return t.toString()}).join("/"),o=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+n+"' and '"+o+"'.")}e[t.value.outlet]=t.value})}function Jt(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function te(t){for(var e=t,r=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)e=e._sourceSegment,r+=e._segmentIndexShift?e._segmentIndexShift:0;return r-1}function ee(t,e,r,n){if(r.length>0&&oe(t,r,n)){var o=new Be(e,ne(t,e,n,new Be(r,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===r.length&&ie(t,r,n)){var i=new Be(t.segments,re(t,r,n,t.children));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:r}}var s=new Be(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:r}}function re(t,e,r,n){for(var o={},i=0,s=r;i<s.length;i++){var a=s[i];if(se(t,e,a)&&!n[ae(a)]){var u=new Be([],{});u._sourceSegment=t,u._segmentIndexShift=t.segments.length,o[ae(a)]=u}}return cr({},n,o)}function ne(t,e,r,n){var o={};o[je]=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(var i=0,s=r;i<s.length;i++){var a=s[i];if(""===a.path&&ae(a)!==je){var u=new Be([],{});u._sourceSegment=t,u._segmentIndexShift=e.length,o[ae(a)]=u}}return o}function oe(t,e,r){return r.some(function(r){return se(t,e,r)&&ae(r)!==je})}function ie(t,e,r){return r.some(function(r){return se(t,e,r)})}function se(t,e,r){return(t.hasChildren()||e.length>0)&&"full"===r.pathMatch?!1:""===r.path&&void 0===r.redirectTo}function ae(t){return t.outlet||je}function ue(t){return t.data||{}}function ce(t){return t.resolve||{}}function le(t){throw t}function pe(){return s.of(null)}function he(t){xt(t.value),t.children.forEach(he)}function fe(t){for(var e=t.parent;e;e=e.parent){var r=e._routeConfig;if(r&&r._loadedConfig)return r._loadedConfig;if(r&&r.component)return null}return null}function de(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var r=e._routeConfig;if(r&&r._loadedConfig)return r._loadedConfig}return null}function me(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}function ye(t,e){var r=t._outlets[e.outlet];if(!r){var n=e.component.name;throw new Error(e.outlet===je?"Cannot find primary outlet to load '"+n+"'":"Cannot find the outlet "+e.outlet+" to load '"+n+"'")}return r}function ve(t){for(var e=0;e<t.length;e++){var r=t[e];if(null==r)throw new Error("The requested path contains "+r+" segment at index "+e)}}function ge(t){return""===t||!!t}function _e(){return new r.NgProbeToken("Router",_r)}function be(t,r,n){return void 0===n&&(n={}),n.useHash?new e.HashLocationStrategy(t,r):new e.PathLocationStrategy(t,r)}function we(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Ce(t){return[{provide:r.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:t},{provide:hr,multi:!0,useValue:t}]}function Ee(t,e,r,n,o,i,s,a,u,c,l){void 0===u&&(u={});var p=new _r(null,e,r,n,o,i,s,R(a));if(c&&(p.urlHandlingStrategy=c),l&&(p.routeReuseStrategy=l),u.errorHandler&&(p.errorHandler=u.errorHandler),u.enableTracing){var h=b.ɵgetDOM();p.events.subscribe(function(t){h.logGroup("Router Event: "+t.constructor.name),h.log(t.toString()),h.log(t),h.logGroupEnd()})}return p}function Se(t){return t.routerState.root}function xe(t){return t.appInitializer.bind(t)}function Te(t){return t.bootstrapListener.bind(t)}function Pe(){return[Fr,{provide:r.APP_INITIALIZER,multi:!0,useFactory:xe,deps:[Fr]},{provide:Ur,useFactory:Te,deps:[Fr]},{provide:r.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:Ur}]}var Ae=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Oe=function(){function t(t,e){this.id=t,this.url=e}return t.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},t}(),Me=function(){function t(t,e,r){this.id=t,this.url=e,this.urlAfterRedirects=r}return t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(),Re=function(){function t(t,e,r){this.id=t,this.url=e,this.reason=r}return t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(),ke=function(){function t(t,e,r){this.id=t,this.url=e,this.error=r}return t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(),Ie=function(){function t(t,e,r,n){this.id=t,this.url=e,this.urlAfterRedirects=r,this.state=n}return t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),Ne=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),De=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),je="primary",Le=function(){function t(t){this.params=t||{}}return t.prototype.has=function(t){return this.params.hasOwnProperty(t)},t.prototype.get=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null},t.prototype.getAll=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}(),Ve="ngNavigationCancelingError",Fe=function(){function t(t,e){this.routes=t,this.module=e}return t}(),Ue=function(){function t(t,e,r){this.root=t,this.queryParams=e,this.fragment=r}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=C(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Ge.serialize(this)},t}(),Be=function(){function t(t,e){var r=this;this.segments=t,this.children=e,this.parent=null,I(e,function(t){return t.parent=r})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return $(this)},t}(),He=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=C(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Z(this)},t}(),qe=function(){function t(){}return t.prototype.parse=function(){},t.prototype.serialize=function(){},t}(),ze=function(){function t(){}return t.prototype.parse=function(t){var e=new Qe(t);return new Ue(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e="/"+K(t.root,!0),r=J(t.queryParams),n="string"==typeof t.fragment?"#"+encodeURI(t.fragment):"";return""+e+r+n},t}(),Ge=new ze,We=/^[^\/()?;=&#]+/,$e=/^[^=?&#]+/,Ke=/^[^?&#]+/,Qe=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Be([],{}):new Be([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURI(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(r[je]=new Be(t,e)),r},t.prototype.parseSegment=function(){var t=tt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new He(X(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=tt(this.remaining);if(e){this.capture(e);var r="";if(this.consumeOptional("=")){var n=tt(this.remaining);n&&(r=n,this.capture(r))}t[X(e)]=X(r)}},t.prototype.parseQueryParam=function(t){var e=et(this.remaining);if(e){this.capture(e);var r="";if(this.consumeOptional("=")){var n=rt(this.remaining);n&&(r=n,this.capture(r))}var o=X(e),i=X(r);if(t.hasOwnProperty(o)){var s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var r=tt(this.remaining),n=this.remaining[r.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;r.indexOf(":")>-1?(o=r.substr(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=je);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[je]:new Be([],i),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),Xe=void 0||Object.assign||function(t){for(var e,r=1,n=arguments.length;n>r;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Ze=function(){function t(t){this.segmentGroup=t||null}return t}(),Ye=function(){function t(t){this.urlTree=t}return t}(),Je=function(){function t(t,e,n,o,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=o,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(r.NgModuleRef)}return t.prototype.apply=function(){var t=this,e=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,je),r=l.map.call(e,function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)});return d._catch.call(r,function(e){if(e instanceof Ye)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof Ze)throw t.noMatchError(e);throw e})},t.prototype.match=function(t){var e=this,r=this.expandSegmentGroup(this.ngModule,this.config,t.root,je),n=l.map.call(r,function(r){return e.createUrlTree(r,t.queryParams,t.fragment)});return d._catch.call(n,function(t){if(t instanceof Ze)throw e.noMatchError(t);throw t})},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,r){var n=t.segments.length>0?new Be([],(o={},o[je]=t,o)):t;return new Ue(n,e,r);var o},t.prototype.expandSegmentGroup=function(t,e,r,n){return 0===r.segments.length&&r.hasChildren()?l.map.call(this.expandChildren(t,e,r),function(t){return new Be([],t)}):this.expandSegment(t,r,e,r.segments,n,!0)},t.prototype.expandChildren=function(t,e,r){var n=this;return N(r.children,function(r,o){return n.expandSegmentGroup(t,e,o,r)})},t.prototype.expandSegment=function(t,e,r,n,o,i){var a=this,u=s.of.apply(void 0,r),p=l.map.call(u,function(u){var c=a.expandSegmentAgainstRoute(t,e,r,u,n,o,i);return d._catch.call(c,function(t){if(t instanceof Ze)return s.of(null);throw t})}),h=m.concatAll.call(p),f=c.first.call(h,function(t){return!!t});return d._catch.call(f,function(t){if(t instanceof y.EmptyError){if(a.noLeftoversInUrl(e,n,o))return s.of(new Be([],{}));throw new Ze(e)}throw t})},t.prototype.noLeftoversInUrl=function(t,e,r){return 0===e.length&&!t.children[r]},t.prototype.expandSegmentAgainstRoute=function(t,e,r,n,o,i,s){return vt(n)!==i?nt(e):void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,o):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,r,n,o,i):nt(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,r,n,o,i){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,n,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,r,n,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,r,n){var o=this,i=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?ot(i):p.mergeMap.call(this.lineralizeSegments(r,i),function(r){var i=new Be(r,{});return o.expandSegment(t,i,e,r,n,!1)})},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,r,n,o,i){var s=this,a=ct(e,n,o),u=a.matched,c=a.consumedSegments,l=a.lastChild,h=a.positionalParamSegments;if(!u)return nt(e);var f=this.applyRedirectCommands(c,n.redirectTo,h);return n.redirectTo.startsWith("/")?ot(f):p.mergeMap.call(this.lineralizeSegments(n,f),function(n){return s.expandSegment(t,e,r,n.concat(o.slice(l)),i,!1)})},t.prototype.matchSegmentAgainstRoute=function(t,e,r,n){var o=this;if("**"===r.path)return r.loadChildren?l.map.call(this.configLoader.load(t.injector,r),function(t){return r._loadedConfig=t,new Be(n,{})}):s.of(new Be(n,{}));var i=ct(e,r,n),a=i.matched,u=i.consumedSegments,c=i.lastChild;if(!a)return nt(e);var h=n.slice(c),f=this.getChildConfig(t,r);return p.mergeMap.call(f,function(t){var r=t.module,n=t.routes,i=lt(e,u,h,n),a=i.segmentGroup,c=i.slicedSegments;if(0===c.length&&a.hasChildren()){var p=o.expandChildren(r,n,a);return l.map.call(p,function(t){return new Be(u,t)})}if(0===n.length&&0===c.length)return s.of(new Be(u,{}));var f=o.expandSegment(r,a,n,c,je,!0);return l.map.call(f,function(t){return new Be(u.concat(t.segments),t.children)})})},t.prototype.getChildConfig=function(t,e){var r=this;return e.children?s.of(new Fe(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?s.of(e._loadedConfig):p.mergeMap.call(ut(t.injector,e),function(n){return n?l.map.call(r.configLoader.load(t.injector,e),function(t){return e._loadedConfig=t,t}):st(e)}):s.of(new Fe([],t))},t.prototype.lineralizeSegments=function(t,e){for(var r=[],n=e.root;;){if(r=r.concat(n.segments),0===n.numberOfChildren)return s.of(r);if(n.numberOfChildren>1||!n.children[je])return it(t.redirectTo);n=n.children[je]}},t.prototype.applyRedirectCommands=function(t,e,r){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,r)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,r,n){var o=this.createSegmentGroup(t,e.root,r,n);return new Ue(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var r={};return I(t,function(t,n){r[n]=t.startsWith(":")?e[t.substring(1)]:t}),r},t.prototype.createSegmentGroup=function(t,e,r,n){var o=this,i=this.createSegments(t,e.segments,r,n),s={};return I(e.children,function(e,i){s[i]=o.createSegmentGroup(t,e,r,n)}),new Be(i,s)},t.prototype.createSegments=function(t,e,r,n){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,n):o.findOrReturn(e,r)})},t.prototype.findPosParam=function(t,e,r){var n=r[e.path.substring(1)];if(!n)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return n},t.prototype.findOrReturn=function(t,e){for(var r=0,n=0,o=e;n<o.length;n++){var i=o[n];if(i.path===t.path)return e.splice(r),i;r++}return t},t}(),tr=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=gt(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=gt(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=_t(t,this._root,[]);if(e.length<2)return[];var r=e[e.length-2].children.map(function(t){return t.value});return r.filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return _t(t,this._root,[]).map(function(t){return t.value})},t}(),er=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}(),rr=void 0||Object.assign||function(t){for(var e,r=1,n=arguments.length;n>r;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},nr=function(t){function e(e,r){var n=t.call(this,e)||this;return n.snapshot=r,Et(n,e),n}return Ae(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(tr),or=function(){function t(t,e,r,n,o,i,s,a){this.url=t,this.params=e,this.queryParams=r,this.fragment=n,this.data=o,this.outlet=i,this.component=s,this._futureSnapshot=a}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=l.map.call(this.params,function(t){return C(t)})),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=l.map.call(this.queryParams,function(t){return C(t)})),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}(),ir=function(){function t(t,e,r,n,o,i,s,a,u,c,l){this.url=t,this.params=e,this.queryParams=r,this.fragment=n,this.data=o,this.outlet=i,this.component=s,this._routeConfig=a,this._urlSegment=u,this._lastPathIndex=c,this._resolve=l}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=C(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=C(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){var t=this.url.map(function(t){return t.toString()}).join("/"),e=this._routeConfig?this._routeConfig.path:"";return"Route(url:'"+t+"', path:'"+e+"')"},t}(),sr=function(t){function e(e,r){var n=t.call(this,r)||this;return n.url=e,Et(n,r),n}return Ae(e,t),e.prototype.toString=function(){return St(this._root)},e}(tr),ar=function(){function t(t,e,r){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=r,t&&r.length>0&&It(r[0]))throw new Error("Root segment cannot have matrix parameters");var n=r.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(n&&n!==k(r))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),ur=function(){function t(t,e,r){this.segmentGroup=t,this.processChildren=e,this.index=r}return t}(),cr=void 0||Object.assign||function(t){for(var e,r=1,n=arguments.length;n>r;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},lr=function(){function t(){}return t}(),pr=function(){function t(t,e,r,n){this.rootComponentType=t,this.config=e,this.urlTree=r,this.url=n}return t.prototype.recognize=function(){try{var t=ee(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,je),r=new ir([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},je,this.rootComponentType,null,this.urlTree.root,-1,{}),n=new er(r,e),o=new sr(this.url,n);return this.inheriteParamsAndData(o._root),s.of(o)}catch(i){return new f.Observable(function(t){return t.error(i)})}},t.prototype.inheriteParamsAndData=function(t){var e=this,r=t.value,n=Ct(r);r.params=Object.freeze(n.params),r.data=Object.freeze(n.data),t.children.forEach(function(t){return e.inheriteParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,r){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,r)},t.prototype.processChildren=function(t,e){var r=this,n=W(e,function(e,n){return r.processSegmentGroup(t,e,n)});return Yt(n),Qt(n),n},t.prototype.processSegment=function(t,e,r,n){for(var o=0,i=t;o<i.length;o++){var s=i[o];try{return this.processSegmentAgainstRoute(s,e,r,n)}catch(a){if(!(a instanceof lr))throw a}}if(this.noLeftoversInUrl(e,r,n))return[];throw new lr},t.prototype.noLeftoversInUrl=function(t,e,r){return 0===e.length&&!t.children[r]},t.prototype.processSegmentAgainstRoute=function(t,e,r,n){if(t.redirectTo)throw new lr;if((t.outlet||je)!==n)throw new lr;if("**"===t.path){var o=r.length>0?k(r).parameters:{},i=new ir(r,o,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ue(t),n,t.component,t,Jt(e),te(e)+r.length,ce(t));return[new er(i,[])]}var s=Zt(e,t,r),a=s.consumedSegments,u=s.parameters,c=s.lastChild,l=r.slice(c),p=Xt(t),h=ee(e,a,l,p),f=h.segmentGroup,d=h.slicedSegments,m=new ir(a,u,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ue(t),n,t.component,t,Jt(e),te(e)+a.length,ce(t));if(0===d.length&&f.hasChildren()){var y=this.processChildren(p,f);return[new er(m,y)]}if(0===p.length&&0===d.length)return[new er(m,[])];var v=this.processSegment(p,f,d,je);return[new er(m,v)]},t}(),hr=new r.InjectionToken("ROUTES"),fr=function(){function t(t,e,r,n){this.loader=t,this.compiler=e,this.onLoadStartListener=r,this.onLoadEndListener=n}return t.prototype.load=function(t,e){var r=this;this.onLoadStartListener&&this.onLoadStartListener(e);var n=this.loadModuleFactory(e.loadChildren);return l.map.call(n,function(n){r.onLoadEndListener&&r.onLoadEndListener(e);var o=n.create(t);return new Fe(R(o.injector.get(hr)),o)})},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?v.fromPromise(this.loader.load(t)):p.mergeMap.call(j(t()),function(t){return t instanceof r.NgModuleFactory?s.of(t):v.fromPromise(e.compiler.compileModuleAsync(t))})},t}(),dr=function(){function t(){this._outlets={}}return t.prototype.registerOutlet=function(t,e){this._outlets[t]=e},t.prototype.removeOutlet=function(t){this._outlets[t]=void 0},t}(),mr=function(){function t(){}return t.prototype.shouldProcessUrl=function(){},t.prototype.extract=function(){},t.prototype.merge=function(){},t}(),yr=function(){function t(){}return t.prototype.shouldProcessUrl=function(){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t){return t},t}(),vr=void 0||Object.assign||function(t){for(var e,r=1,n=arguments.length;n>r;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},gr=function(){function t(){}return t.prototype.shouldDetach=function(){return!1},t.prototype.store=function(){},t.prototype.shouldAttach=function(){return!1},t.prototype.retrieve=function(){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),_r=function(){function t(t,e,i,s,a,u,c,l){var p=this;this.rootComponentType=t,this.urlSerializer=e,this.outletMap=i,this.location=s,this.config=l,this.navigations=new n.BehaviorSubject(null),this.routerEvents=new o.Subject,this.navigationId=0,this.errorHandler=le,this.navigated=!1,this.hooks={beforePreactivation:pe,afterPreactivation:pe},this.urlHandlingStrategy=new yr,this.routeReuseStrategy=new gr;var h=function(t){return p.triggerEvent(new Ne(t))},f=function(t){return p.triggerEvent(new De(t))};this.ngModule=a.get(r.NgModuleRef),this.resetConfig(l),this.currentUrlTree=L(),this.rawUrlTree=this.currentUrlTree,this.configLoader=new fr(u,c,h,f),this.currentRouterState=bt(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.currentRouterState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(Zone.current.wrap(function(e){var r=t.urlSerializer.parse(e.url),n="popstate"===e.type?"popstate":"hashchange";setTimeout(function(){t.scheduleNavigation(r,n,{replaceUrl:!0})},0)})))},Object.defineProperty(t.prototype,"routerState",{get:function(){return this.currentRouterState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){return this.routerEvents},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.routerEvents.next(t)},t.prototype.resetConfig=function(t){T(t),this.config=t},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){var n=void 0===e?{}:e,o=n.relativeTo,i=n.queryParams,s=n.fragment,a=n.preserveQueryParams,u=n.queryParamsHandling,c=n.preserveFragment;r.isDevMode()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=o||this.routerState.root,p=c?this.currentUrlTree.fragment:s,h=null;if(u)switch(u){case"merge":h=vr({},this.currentUrlTree.queryParams,i);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=i||null}else h=a?this.currentUrlTree.queryParams:i||null;return kt(l,this.currentUrlTree,t,h,p)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var r=t instanceof Ue?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(n,"imperative",e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),ve(t),"object"==typeof e.queryParams&&null!==e.queryParams&&(e.queryParams=this.removeEmptyProps(e.queryParams)),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){
+return this.urlSerializer.parse(t)},t.prototype.isActive=function(t,e){if(t instanceof Ue)return V(this.currentUrlTree,t,e);var r=this.urlSerializer.parse(t);return V(this.currentUrlTree,r,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce(function(e,r){var n=t[r];return null!==n&&void 0!==n&&(e[r]=n),e},{})},t.prototype.processNavigations=function(){var t=this;a.concatMap.call(this.navigations,function(e){return e?(t.executeScheduledNavigation(e),e.promise["catch"](function(){})):s.of(null)}).subscribe(function(){})},t.prototype.scheduleNavigation=function(t,e,r){var n=this.navigations.value;if(n&&"imperative"!==e&&"imperative"===n.source&&n.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(n&&"hashchange"==e&&"popstate"===n.source&&n.rawUrl.toString()===t.toString())return Promise.resolve(!0);var o=null,i=null,s=new Promise(function(t,e){o=t,i=e}),a=++this.navigationId;return this.navigations.next({id:a,source:e,rawUrl:t,extras:r,resolve:o,reject:i,promise:s}),s["catch"](function(t){return Promise.reject(t)})},t.prototype.executeScheduledNavigation=function(t){var e=this,r=t.id,n=t.rawUrl,o=t.extras,i=t.resolve,s=t.reject,a=this.urlHandlingStrategy.extract(n),u=!this.navigated||a.toString()!==this.currentUrlTree.toString();u&&this.urlHandlingStrategy.shouldProcessUrl(n)?(this.routerEvents.next(new Oe(r,this.serializeUrl(a))),Promise.resolve().then(function(){return e.runNavigate(a,n,!!o.skipLocationChange,!!o.replaceUrl,r,null)}).then(i,s)):u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)?(this.routerEvents.next(new Oe(r,this.serializeUrl(a))),Promise.resolve().then(function(){return e.runNavigate(a,n,!1,!1,r,bt(a,e.rootComponentType).snapshot)}).then(i,s)):(this.rawUrlTree=n,i(null))},t.prototype.runNavigate=function(t,e,r,n,o,i){var a=this;return o!==this.navigationId?(this.location.go(this.urlSerializer.serialize(this.currentUrlTree)),this.routerEvents.next(new Re(o,this.serializeUrl(t),"Navigation ID "+o+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(u,c){var h;if(i)h=s.of({appliedUrl:t,snapshot:i});else{var f=a.ngModule.injector,d=at(f,a.configLoader,a.urlSerializer,t,a.config);h=p.mergeMap.call(d,function(e){return l.map.call(Kt(a.rootComponentType,a.config,e,a.serializeUrl(e)),function(r){return a.routerEvents.next(new Ie(o,a.serializeUrl(t),a.serializeUrl(e),r)),{appliedUrl:e,snapshot:r}})})}var m,y,v=p.mergeMap.call(h,function(t){return l.map.call(a.hooks.beforePreactivation(t.snapshot),function(){return t})}),g=l.map.call(v,function(t){var e=t.appliedUrl,r=t.snapshot,n=a.ngModule.injector;return m=new Cr(r,a.currentRouterState.snapshot,n),m.traverse(a.outletMap),{appliedUrl:e,snapshot:r}}),_=p.mergeMap.call(g,function(t){var e=t.appliedUrl,r=t.snapshot;return a.navigationId!==o?s.of(!1):l.map.call(m.checkGuards(),function(t){return{appliedUrl:e,snapshot:r,shouldActivate:t}})}),b=p.mergeMap.call(_,function(t){return a.navigationId!==o?s.of(!1):t.shouldActivate?l.map.call(m.resolveData(),function(){return t}):s.of(t)}),w=p.mergeMap.call(b,function(t){return l.map.call(a.hooks.afterPreactivation(t.snapshot),function(){return t})}),C=l.map.call(w,function(t){var e=t.appliedUrl,r=t.snapshot,n=t.shouldActivate;if(n){var o=Pt(a.routeReuseStrategy,r,a.currentRouterState);return{appliedUrl:e,state:o,shouldActivate:n}}return{appliedUrl:e,state:null,shouldActivate:n}}),E=a.currentRouterState,x=a.currentUrlTree;C.forEach(function(t){var i=t.appliedUrl,s=t.state,u=t.shouldActivate;if(!u||o!==a.navigationId)return void(y=!1);if(a.currentUrlTree=i,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.currentRouterState=s,!r){var c=a.urlSerializer.serialize(a.rawUrlTree);a.location.isCurrentPathEqualTo(c)||n?a.location.replaceState(c):a.location.go(c)}new Er(a.routeReuseStrategy,s,E).activate(a.outletMap),y=!0}).then(function(){y?(a.navigated=!0,a.routerEvents.next(new Me(o,a.serializeUrl(t),a.serializeUrl(a.currentUrlTree))),u(!0)):(a.resetUrlToCurrentUrlTree(),a.routerEvents.next(new Re(o,a.serializeUrl(t),"")),u(!1))},function(r){if(S(r))a.resetUrlToCurrentUrlTree(),a.navigated=!0,a.routerEvents.next(new Re(o,a.serializeUrl(t),r.message)),u(!1);else{a.routerEvents.next(new ke(o,a.serializeUrl(t),r));try{u(a.errorHandler(r))}catch(n){c(n)}}a.currentRouterState=E,a.currentUrlTree=x,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.location.replaceState(a.serializeUrl(a.rawUrlTree))})})},t.prototype.resetUrlToCurrentUrlTree=function(){var t=this.urlSerializer.serialize(this.rawUrlTree);this.location.replaceState(t)},t}(),br=function(){function t(t){this.path=t}return Object.defineProperty(t.prototype,"route",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t}(),wr=function(){function t(t,e){this.component=t,this.route=e}return t}(),Cr=function(){function t(t,e,r){this.future=t,this.curr=e,this.moduleInjector=r,this.canActivateChecks=[],this.canDeactivateChecks=[]}return t.prototype.traverse=function(t){var e=this.future._root,r=this.curr?this.curr._root:null;this.traverseChildRoutes(e,r,t,[e.value])},t.prototype.checkGuards=function(){var t=this;if(0===this.canDeactivateChecks.length&&0===this.canActivateChecks.length)return s.of(!0);var e=this.runCanDeactivateChecks();return p.mergeMap.call(e,function(e){return e?t.runCanActivateChecks():s.of(!1)})},t.prototype.resolveData=function(){var t=this;if(0===this.canActivateChecks.length)return s.of(null);var e=i.from(this.canActivateChecks),r=a.concatMap.call(e,function(e){return t.runResolve(e.route)});return h.reduce.call(r,function(t){return t})},t.prototype.traverseChildRoutes=function(t,e,r,n){var o=this,i=me(e);t.children.forEach(function(t){o.traverseRoutes(t,i[t.value.outlet],r,n.concat([t.value])),delete i[t.value.outlet]}),I(i,function(t,e){return o.deactiveRouteAndItsChildren(t,r._outlets[e])})},t.prototype.traverseRoutes=function(t,e,r,n){var o=t.value,i=e?e.value:null,s=r?r._outlets[t.value.outlet]:null;i&&o._routeConfig===i._routeConfig?(this.shouldRunGuardsAndResolvers(i,o,o._routeConfig.runGuardsAndResolvers)?(this.canActivateChecks.push(new br(n)),this.canDeactivateChecks.push(new wr(s.component,i))):(o.data=i.data,o._resolvedData=i._resolvedData),o.component?this.traverseChildRoutes(t,e,s?s.outletMap:null,n):this.traverseChildRoutes(t,e,r,n)):(i&&this.deactiveRouteAndItsChildren(e,s),this.canActivateChecks.push(new br(n)),o.component?this.traverseChildRoutes(t,null,s?s.outletMap:null,n):this.traverseChildRoutes(t,null,r,n))},t.prototype.shouldRunGuardsAndResolvers=function(t,e,r){switch(r){case"always":return!0;case"paramsOrQueryParamsChange":return!Tt(t,e)||!M(t.queryParams,e.queryParams);case"paramsChange":default:return!Tt(t,e)}},t.prototype.deactiveRouteAndItsChildren=function(t,e){var r=this,n=me(t),o=t.value;I(n,function(t,n){o.component?e?r.deactiveRouteAndItsChildren(t,e.outletMap._outlets[n]):r.deactiveRouteAndItsChildren(t,null):r.deactiveRouteAndItsChildren(t,e)}),this.canDeactivateChecks.push(o.component?e&&e.isActivated?new wr(e.component,o):new wr(null,o):new wr(null,o))},t.prototype.runCanDeactivateChecks=function(){var t=this,e=i.from(this.canDeactivateChecks),r=p.mergeMap.call(e,function(e){return t.runCanDeactivate(e.component,e.route)});return u.every.call(r,function(t){return t===!0})},t.prototype.runCanActivateChecks=function(){var t=this,e=i.from(this.canActivateChecks),r=p.mergeMap.call(e,function(e){return D(i.from([t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))});return u.every.call(r,function(t){return t===!0})},t.prototype.runCanActivate=function(t){var e=this,r=t._routeConfig?t._routeConfig.canActivate:null;if(!r||0===r.length)return s.of(!0);var n=l.map.call(i.from(r),function(r){var n,o=e.getToken(r,t);return n=j(o.canActivate?o.canActivate(t,e.future):o(t,e.future)),c.first.call(n)});return D(n)},t.prototype.runCanActivateChild=function(t){var e=this,r=t[t.length-1],n=t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t});return D(l.map.call(i.from(n),function(t){var n=l.map.call(i.from(t.guards),function(n){var o,i=e.getToken(n,t.node);return o=j(i.canActivateChild?i.canActivateChild(r,e.future):i(r,e.future)),c.first.call(o)});return D(n)}))},t.prototype.extractCanActivateChild=function(t){var e=t._routeConfig?t._routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var r=this,n=e&&e._routeConfig?e._routeConfig.canDeactivate:null;if(!n||0===n.length)return s.of(!0);var o=p.mergeMap.call(i.from(n),function(n){var o,i=r.getToken(n,e);return o=j(i.canDeactivate?i.canDeactivate(t,e,r.curr,r.future):i(t,e,r.curr,r.future)),c.first.call(o)});return u.every.call(o,function(t){return t===!0})},t.prototype.runResolve=function(t){var e=t._resolve;return l.map.call(this.resolveNode(e,t),function(e){return t._resolvedData=e,t.data=vr({},t.data,Ct(t).resolve),null})},t.prototype.resolveNode=function(t,e){var r=this;return N(t,function(t,n){var o=r.getToken(n,e);return j(o.resolve?o.resolve(e,r.future):o(e,r.future))})},t.prototype.getToken=function(t,e){var r=de(e),n=r?r.module.injector:this.moduleInjector;return n.get(t)},t}(),Er=function(){function t(t,e,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=r}return t.prototype.activate=function(t){var e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,t),xt(this.futureState.root),this.activateChildRoutes(e,r,t)},t.prototype.deactivateChildRoutes=function(t,e,r){var n=this,o=me(e);t.children.forEach(function(t){n.deactivateRoutes(t,o[t.value.outlet],r),delete o[t.value.outlet]}),I(o,function(t){return n.deactiveRouteAndItsChildren(t,r)})},t.prototype.activateChildRoutes=function(t,e,r){var n=this,o=me(e);t.children.forEach(function(t){n.activateRoutes(t,o[t.value.outlet],r)})},t.prototype.deactivateRoutes=function(t,e,r){var n=t.value,o=e?e.value:null;if(n===o)if(n.component){var i=ye(r,n);this.deactivateChildRoutes(t,e,i.outletMap)}else this.deactivateChildRoutes(t,e,r);else o&&this.deactiveRouteAndItsChildren(e,r)},t.prototype.activateRoutes=function(t,e,r){var n=t.value,o=e?e.value:null;if(n===o)if(xt(n),n.component){var i=ye(r,n);this.activateChildRoutes(t,e,i.outletMap)}else this.activateChildRoutes(t,e,r);else if(n.component){xt(n);var i=ye(r,t.value);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){var s=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),i.attach(s.componentRef,s.route.value),he(s.route)}else{var a=new dr;this.placeComponentIntoOutlet(a,n,i),this.activateChildRoutes(t,null,a)}}else xt(n),this.activateChildRoutes(t,null,r)},t.prototype.placeComponentIntoOutlet=function(t,e,r){var n=fe(e.snapshot),o=n?n.module.componentFactoryResolver:null;r.activateWith(e,o,t)},t.prototype.deactiveRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactiveRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var r=ye(e,t.value),n=r.detach();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:n,route:t})},t.prototype.deactiveRouteAndOutlet=function(t,e){var r=this,n=me(t),o=null;try{o=ye(e,t.value)}catch(i){return}var s=o.outletMap;I(n,function(n){t.value.component?r.deactiveRouteAndItsChildren(n,s):r.deactiveRouteAndItsChildren(n,e)}),o&&o.isActivated&&o.deactivate()},t}(),Sr=function(){function t(t,e,r,n,o){this.router=t,this.route=e,this.commands=[],null==r&&n.setElementAttribute(o.nativeElement,"tabindex","0")}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){r.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){var t={skipLocationChange:ge(this.skipLocationChange),replaceUrl:ge(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ge(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ge(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();Sr.decorators=[{type:r.Directive,args:[{selector:":not(a)[routerLink]"}]}],Sr.ctorParameters=function(){return[{type:_r},{type:or},{type:void 0,decorators:[{type:r.Attribute,args:["tabindex"]}]},{type:r.Renderer},{type:r.ElementRef}]},Sr.propDecorators={queryParams:[{type:r.Input}],fragment:[{type:r.Input}],queryParamsHandling:[{type:r.Input}],preserveFragment:[{type:r.Input}],skipLocationChange:[{type:r.Input}],replaceUrl:[{type:r.Input}],routerLink:[{type:r.Input}],preserveQueryParams:[{type:r.Input}],onClick:[{type:r.HostListener,args:["click"]}]};var xr=function(){function t(t,e,r){var n=this;this.router=t,this.route=e,this.locationStrategy=r,this.commands=[],this.subscription=t.events.subscribe(function(t){t instanceof Me&&n.updateTargetUrlAndHref()})}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){r.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onClick=function(t,e,r){if(0!==t||e||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var n={skipLocationChange:ge(this.skipLocationChange),replaceUrl:ge(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,n),!1},t.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ge(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ge(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();xr.decorators=[{type:r.Directive,args:[{selector:"a[routerLink]"}]}],xr.ctorParameters=function(){return[{type:_r},{type:or},{type:e.LocationStrategy}]},xr.propDecorators={target:[{type:r.HostBinding,args:["attr.target"]},{type:r.Input}],queryParams:[{type:r.Input}],fragment:[{type:r.Input}],queryParamsHandling:[{type:r.Input}],preserveFragment:[{type:r.Input}],skipLocationChange:[{type:r.Input}],replaceUrl:[{type:r.Input}],href:[{type:r.HostBinding}],routerLink:[{type:r.Input}],preserveQueryParams:[{type:r.Input}],onClick:[{type:r.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey"]]}]};var Tr=function(){function t(t,e,r,n){var o=this;this.router=t,this.element=e,this.renderer=r,this.cdr=n,this.classes=[],this.active=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(function(t){t instanceof Me&&o.update()})}return Object.defineProperty(t.prototype,"isActive",{get:function(){return this.active},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this.links.changes.subscribe(function(){return t.update()}),this.linksWithHrefs.changes.subscribe(function(){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(){this.update()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.update=function(){var t=this;if(this.links&&this.linksWithHrefs&&this.router.navigated){var e=this.hasActiveLinks();this.active!==e&&(this.classes.forEach(function(r){return t.renderer.setElementClass(t.element.nativeElement,r,e)}),Promise.resolve(e).then(function(e){return t.active=e}))}},t.prototype.isLinkActive=function(t){var e=this;return function(r){return t.isActive(r.urlTree,e.routerLinkActiveOptions.exact)}},t.prototype.hasActiveLinks=function(){return this.links.some(this.isLinkActive(this.router))||this.linksWithHrefs.some(this.isLinkActive(this.router))},t}();Tr.decorators=[{type:r.Directive,args:[{selector:"[routerLinkActive]",exportAs:"routerLinkActive"}]}],Tr.ctorParameters=function(){return[{type:_r},{type:r.ElementRef},{type:r.Renderer},{type:r.ChangeDetectorRef}]},Tr.propDecorators={links:[{type:r.ContentChildren,args:[Sr,{descendants:!0}]}],linksWithHrefs:[{type:r.ContentChildren,args:[xr,{descendants:!0}]}],routerLinkActiveOptions:[{type:r.Input}],routerLinkActive:[{type:r.Input}]};var Pr=function(){function t(t,e,n,o){this.parentOutletMap=t,this.location=e,this.resolver=n,this.name=o,this.activateEvents=new r.EventEmitter,this.deactivateEvents=new r.EventEmitter,t.registerOutlet(o?o:je,this)}return t.prototype.ngOnDestroy=function(){this.parentOutletMap.removeOutlet(this.name?this.name:je)},Object.defineProperty(t.prototype,"locationInjector",{get:function(){return this.location.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locationFactoryResolver",{get:function(){return this.resolver},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),t.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t},t.prototype.attach=function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)},t.prototype.deactivate=function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}},t.prototype.activate=function(t,e,n,o,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this.outletMap=i,this._activatedRoute=t;var s=t._futureSnapshot,a=s._routeConfig.component,u=e.resolveComponentFactory(a),c=r.ReflectiveInjector.fromResolvedProviders(o,n);this.activated=this.location.createComponent(u,this.location.length,c,[]),this.activated.changeDetectorRef.detectChanges(),this.activateEvents.emit(this.activated.instance)},t.prototype.activateWith=function(t,e,r){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this.outletMap=r,this._activatedRoute=t;var n=t._futureSnapshot,o=n._routeConfig.component;e=e||this.resolver;var i=e.resolveComponentFactory(o),s=new Ar(t,r,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s,[]),this.activated.changeDetectorRef.detectChanges(),this.activateEvents.emit(this.activated.instance)},t}();Pr.decorators=[{type:r.Directive,args:[{selector:"router-outlet"}]}],Pr.ctorParameters=function(){return[{type:dr},{type:r.ViewContainerRef},{type:r.ComponentFactoryResolver},{type:void 0,decorators:[{type:r.Attribute,args:["name"]}]}]},Pr.propDecorators={activateEvents:[{type:r.Output,args:["activate"]}],deactivateEvents:[{type:r.Output,args:["deactivate"]}]};var Ar=function(){function t(t,e,r){this.route=t,this.map=e,this.parent=r}return t.prototype.get=function(t,e){return t===or?this.route:t===dr?this.map:this.parent.get(t,e)},t}(),Or=function(){function t(){}return t.prototype.shouldDetach=function(){},t.prototype.store=function(){},t.prototype.shouldAttach=function(){},t.prototype.retrieve=function(){},t.prototype.shouldReuseRoute=function(){},t}(),Mr=function(){function t(){}return t.prototype.preload=function(){},t}(),Rr=function(){function t(){}return t.prototype.preload=function(t,e){return d._catch.call(e(),function(){return s.of(null)})},t}(),kr=function(){function t(){}return t.prototype.preload=function(){return s.of(null)},t}(),Ir=function(){function t(t,e,r,n,o){this.router=t,this.injector=n,this.preloadingStrategy=o;var i=function(e){return t.triggerEvent(new Ne(e))},s=function(e){return t.triggerEvent(new De(e))};this.loader=new fr(e,r,i,s)}return t.prototype.setUpPreloading=function(){var t=this,e=w.filter.call(this.router.events,function(t){return t instanceof Me});this.subscription=a.concatMap.call(e,function(){return t.preload()}).subscribe(function(){})},t.prototype.preload=function(){var t=this.injector.get(r.NgModuleRef);return this.processRoutes(t,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){for(var r=[],n=0,o=e;n<o.length;n++){var s=o[n];if(s.loadChildren&&!s.canLoad&&s._loadedConfig){var a=s._loadedConfig;r.push(this.processRoutes(a.module,a.routes))}else s.loadChildren&&!s.canLoad?r.push(this.preloadConfig(t,s)):s.children&&r.push(this.processRoutes(t,s.children))}return _.mergeAll.call(i.from(r))},t.prototype.preloadConfig=function(t,e){var r=this;return this.preloadingStrategy.preload(e,function(){var n=r.loader.load(t.injector,e);return p.mergeMap.call(n,function(t){return e._loadedConfig=t,r.processRoutes(t.module,t.routes)})})},t}();Ir.decorators=[{type:r.Injectable}],Ir.ctorParameters=function(){return[{type:_r},{type:r.NgModuleFactoryLoader},{type:r.Compiler},{type:r.Injector},{type:Mr}]};var Nr=[Pr,Sr,xr,Tr],Dr=new r.InjectionToken("ROUTER_CONFIGURATION"),jr=new r.InjectionToken("ROUTER_FORROOT_GUARD"),Lr=[e.Location,{provide:qe,useClass:ze},{provide:_r,useFactory:Ee,deps:[r.ApplicationRef,qe,dr,e.Location,r.Injector,r.NgModuleFactoryLoader,r.Compiler,hr,Dr,[mr,new r.Optional],[Or,new r.Optional]]},dr,{provide:or,useFactory:Se,deps:[_r]},{provide:r.NgModuleFactoryLoader,useClass:r.SystemJsNgModuleLoader},Ir,kr,Rr,{provide:Dr,useValue:{enableTracing:!1}}],Vr=function(){function t(){}return t.forRoot=function(n,o){return{ngModule:t,providers:[Lr,Ce(n),{provide:jr,useFactory:we,deps:[[_r,new r.Optional,new r.SkipSelf]]},{provide:Dr,useValue:o?o:{}},{provide:e.LocationStrategy,useFactory:be,deps:[e.PlatformLocation,[new r.Inject(e.APP_BASE_HREF),new r.Optional],Dr]},{provide:Mr,useExisting:o&&o.preloadingStrategy?o.preloadingStrategy:kr},{provide:r.NgProbeToken,multi:!0,useFactory:_e},Pe()]}},t.forChild=function(e){return{ngModule:t,providers:[Ce(e)]}},t}();Vr.decorators=[{type:r.NgModule,args:[{declarations:Nr,exports:Nr}]}],Vr.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Optional},{type:r.Inject,args:[jr]}]},{type:_r,decorators:[{type:r.Optional}]}]};var Fr=function(){function t(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new o.Subject}return t.prototype.appInitializer=function(){var t=this,r=this.injector.get(e.LOCATION_INITIALIZED,Promise.resolve(null));return r.then(function(){var e=null,r=new Promise(function(t){return e=t}),n=t.injector.get(_r),o=t.injector.get(Dr);if(t.isLegacyDisabled(o)||t.isLegacyEnabled(o))e(!0);else if("disabled"===o.initialNavigation)n.setUpLocationChangeListener(),e(!0);else{if("enabled"!==o.initialNavigation)throw new Error("Invalid initialNavigation options: '"+o.initialNavigation+"'");n.hooks.afterPreactivation=function(){return t.initNavigation?s.of(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},n.initialNavigation()}return r})},t.prototype.bootstrapListener=function(t){var e=this.injector.get(Dr),n=this.injector.get(Ir),o=this.injector.get(_r),i=this.injector.get(r.ApplicationRef);t===i.components[0]&&(this.isLegacyEnabled(e)?o.initialNavigation():this.isLegacyDisabled(e)&&o.setUpLocationChangeListener(),n.setUpPreloading(),o.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},t.prototype.isLegacyEnabled=function(t){return"legacy_enabled"===t.initialNavigation||t.initialNavigation===!0||void 0===t.initialNavigation},t.prototype.isLegacyDisabled=function(t){return"legacy_disabled"===t.initialNavigation||t.initialNavigation===!1},t}();Fr.decorators=[{type:r.Injectable}],Fr.ctorParameters=function(){return[{type:r.Injector}]};var Ur=new r.InjectionToken("Router Initializer"),Br=new r.Version("4.1.0");t.RouterLink=Sr,t.RouterLinkWithHref=xr,t.RouterLinkActive=Tr,t.RouterOutlet=Pr,t.NavigationCancel=Re,t.NavigationEnd=Me,t.NavigationError=ke,t.NavigationStart=Oe,t.RouteConfigLoadEnd=De,t.RouteConfigLoadStart=Ne,t.RoutesRecognized=Ie,t.RouteReuseStrategy=Or,t.Router=_r,t.ROUTES=hr,t.ROUTER_CONFIGURATION=Dr,t.ROUTER_INITIALIZER=Ur,t.RouterModule=Vr,t.provideRoutes=Ce,t.RouterOutletMap=dr,t.NoPreloading=kr,t.PreloadAllModules=Rr,t.PreloadingStrategy=Mr,t.RouterPreloader=Ir,t.ActivatedRoute=or,t.ActivatedRouteSnapshot=ir,t.RouterState=nr,t.RouterStateSnapshot=sr,t.PRIMARY_OUTLET=je,t.convertToParamMap=C,t.UrlHandlingStrategy=mr,t.DefaultUrlSerializer=ze,t.UrlSegment=He,t.UrlSegmentGroup=Be,t.UrlSerializer=qe,t.UrlTree=Ue,t.VERSION=Br,t.ɵROUTER_PROVIDERS=Lr,t.ɵflatten=R,t.ɵa=jr,t.ɵg=Fr,t.ɵh=xe,t.ɵi=Te,t.ɵd=we,t.ɵc=be,t.ɵj=Pe,t.ɵf=Se,t.ɵb=_e,t.ɵe=Ee,t.ɵk=tr,t.ɵl=er,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":6,"@angular/core":8,"@angular/platform-browser":12,"rxjs/BehaviorSubject":14,"rxjs/Observable":17,"rxjs/Subject":20,"rxjs/observable/from":35,"rxjs/observable/fromPromise":36,"rxjs/observable/of":38,"rxjs/operator/catch":39,"rxjs/operator/concatAll":40,"rxjs/operator/concatMap":41,"rxjs/operator/every":42,"rxjs/operator/filter":43,"rxjs/operator/first":44,"rxjs/operator/last":45,"rxjs/operator/map":46,"rxjs/operator/mergeAll":48,"rxjs/operator/mergeMap":49,"rxjs/operator/reduce":52,"rxjs/util/EmptyError":57}],14:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("./Subject"),i=t("./util/ObjectUnsubscribedError"),s=function(t){function e(e){t.call(this),this._value=e}return n(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var r=t.prototype._subscribe.call(this,e);return r&&!r.closed&&e.next(this._value),r},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.ObjectUnsubscribedError;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(o.Subject);r.BehaviorSubject=s},{"./Subject":20,"./util/ObjectUnsubscribedError":58}],15:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("./Subscriber"),i=function(t){function e(e,r,n){t.call(this),this.parent=e,this.outerValue=r,this.outerIndex=n,this.index=0}return n(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(o.Subscriber);r.InnerSubscriber=i},{"./Subscriber":22}],16:[function(t,e,r){"use strict";var n=t("./Observable"),o=function(){function t(t,e,r){this.kind=t,this.value=e,this.error=r,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype["do"]=function(t,e,r){var n=this.kind;switch(n){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return r&&r()}},t.prototype.accept=function(t,e,r){return t&&"function"==typeof t.next?this.observe(t):this["do"](t,e,r)},t.prototype.toObservable=function(){var t=this.kind;switch(t){case"N":return n.Observable.of(this.value);case"E":return n.Observable["throw"](this.error);case"C":return n.Observable.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return"undefined"!=typeof e?new t("N",e):this.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return this.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();r.Notification=o},{"./Observable":17}],17:[function(t,e,r){"use strict";var n=t("./util/root"),o=t("./util/toSubscriber"),i=t("./symbol/observable"),s=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,i=o.toSubscriber(t,e,r);if(n?n.call(i,this.source):i.add(this._trySubscribe(i)),i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var r=this;if(e||(n.root.Rx&&n.root.Rx.config&&n.root.Rx.config.Promise?e=n.root.Rx.config.Promise:n.root.Promise&&(e=n.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,n){var o=r.subscribe(function(e){if(o)try{t(e)}catch(r){n(r),o.unsubscribe()}else t(e)},n,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[i.$$observable]=function(){return this},t.create=function(e){return new t(e)},t}();r.Observable=s},{"./symbol/observable":55,"./util/root":67,"./util/toSubscriber":69}],18:[function(t,e,r){"use strict";r.empty={closed:!0,next:function(){},error:function(t){throw t},complete:function(){}}},{}],19:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("./Subscriber"),i=function(t){function e(){t.apply(this,arguments)}return n(e,t),e.prototype.notifyNext=function(t,e){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(o.Subscriber);r.OuterSubscriber=i},{"./Subscriber":22}],20:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("./Observable"),i=t("./Subscriber"),s=t("./Subscription"),a=t("./util/ObjectUnsubscribedError"),u=t("./SubjectSubscription"),c=t("./symbol/rxSubscriber"),l=function(t){function e(e){t.call(this,e),this.destination=e}return n(e,t),e}(i.Subscriber);r.SubjectSubscriber=l;var p=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return n(e,t),e.prototype[c.$$rxSubscriber]=function(){return new l(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,r=e.length,n=e.slice(),o=0;r>o;o++)n[o].next(t);
 
 },e.prototype.error=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,r=e.length,n=e.slice(),o=0;r>o;o++)n[o].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,r=t.slice(),n=0;e>n;n++)r[n].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new u.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new o.Observable;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(o.Observable);r.Subject=p;var h=function(t){function e(e,r){t.call(this),this.destination=e,this.source=r}return n(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){var e=this.source;return e?this.source.subscribe(t):s.Subscription.EMPTY},e}(p);r.AnonymousSubject=h},{"./Observable":17,"./SubjectSubscription":21,"./Subscriber":22,"./Subscription":23,"./symbol/rxSubscriber":56,"./util/ObjectUnsubscribedError":58}],21:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("./Subscription"),i=function(t){function e(e,r){t.call(this),this.subject=e,this.subscriber=r,this.closed=!1}return n(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var r=e.indexOf(this.subscriber);-1!==r&&e.splice(r,1)}}},e}(o.Subscription);r.SubjectSubscription=i},{"./Subscription":23}],22:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("./util/isFunction"),i=t("./Subscription"),s=t("./Observer"),a=t("./symbol/rxSubscriber"),u=function(t){function e(r,n,o){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!r){this.destination=s.empty;break}if("object"==typeof r){r instanceof e?(this.destination=r,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,r));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,r,n,o)}}return n(e,t),e.prototype[a.$$rxSubscriber]=function(){return this},e.create=function(t,r,n){var o=new e(t,r,n);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this,e=t._parent,r=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=r,this},e}(i.Subscription);r.Subscriber=u;var c=function(t){function e(e,r,n,i){t.call(this),this._parentSubscriber=e;var s,a=this;o.isFunction(r)?s=r:r&&(a=r,s=r.next,n=r.error,i=r.complete,o.isFunction(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this)),this._context=a,this._next=s,this._error=n,this._complete=i}return n(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){if(!this.isStopped){var t=this._parentSubscriber;this._complete?t.syncErrorThrowable?(this.__tryOrSetError(t,this._complete),this.unsubscribe()):(this.__tryOrUnsub(this._complete),this.unsubscribe()):this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(r){throw this.unsubscribe(),r}},e.prototype.__tryOrSetError=function(t,e,r){try{e.call(this._context,r)}catch(n){return t.syncErrorValue=n,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(u)},{"./Observer":18,"./Subscription":23,"./symbol/rxSubscriber":56,"./util/isFunction":63}],23:[function(t,e,r){"use strict";function n(t){return t.reduce(function(t,e){return t.concat(e instanceof c.UnsubscriptionError?e.errors:e)},[])}var o=t("./util/isArray"),i=t("./util/isObject"),s=t("./util/isFunction"),a=t("./util/tryCatch"),u=t("./util/errorObject"),c=t("./util/UnsubscriptionError"),l=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var r=this,l=r._parent,p=r._parents,h=r._unsubscribe,f=r._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var d=-1,m=p?p.length:0;l;)l.remove(this),l=++d<m&&p[d]||null;if(s.isFunction(h)){var y=a.tryCatch(h).call(this);y===u.errorObject&&(e=!0,t=t||(u.errorObject.e instanceof c.UnsubscriptionError?n(u.errorObject.e.errors):[u.errorObject.e]))}if(o.isArray(f))for(d=-1,m=f.length;++d<m;){var v=f[d];if(i.isObject(v)){var y=a.tryCatch(v.unsubscribe).call(v);if(y===u.errorObject){e=!0,t=t||[];var g=u.errorObject.e;g instanceof c.UnsubscriptionError?t=t.concat(n(g.errors)):t.push(g)}}}if(e)throw new c.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var r=e;switch(typeof e){case"function":r=new t(e);case"object":if(r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if("function"!=typeof r._addParent){var n=r;r=new t,r._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var o=this._subscriptions||(this._subscriptions=[]);return o.push(r),r._addParent(this),r},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},t.prototype._addParent=function(t){var e=this,r=e._parent,n=e._parents;r&&r!==t?n?-1===n.indexOf(t)&&n.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();r.Subscription=l},{"./util/UnsubscriptionError":59,"./util/errorObject":60,"./util/isArray":61,"./util/isFunction":63,"./util/isObject":64,"./util/tryCatch":70}],24:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/map");e.Observable.prototype.map=r.map},{"../../Observable":17,"../../operator/map":46}],25:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Observable"),i=t("./ScalarObservable"),s=t("./EmptyObservable"),a=function(t){function e(e,r){t.call(this),this.arrayLike=e,this.scheduler=r,r||1!==e.length||(this._isScalar=!0,this.value=e[0])}return n(e,t),e.create=function(t,r){var n=t.length;return 0===n?new s.EmptyObservable:1===n?new i.ScalarObservable(t[0],r):new e(t,r)},e.dispatch=function(t){var e=t.arrayLike,r=t.index,n=t.length,o=t.subscriber;if(!o.closed){if(r>=n)return void o.complete();o.next(e[r]),t.index=r+1,this.schedule(t)}},e.prototype._subscribe=function(t){var r=0,n=this,o=n.arrayLike,i=n.scheduler,s=o.length;if(i)return i.schedule(e.dispatch,0,{arrayLike:o,index:r,length:s,subscriber:t});for(var a=0;s>a&&!t.closed;a++)t.next(o[a]);t.complete()},e}(o.Observable);r.ArrayLikeObservable=a},{"../Observable":17,"./EmptyObservable":28,"./ScalarObservable":33}],26:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Observable"),i=t("./ScalarObservable"),s=t("./EmptyObservable"),a=t("../util/isScheduler"),u=function(t){function e(e,r){t.call(this),this.array=e,this.scheduler=r,r||1!==e.length||(this._isScalar=!0,this.value=e[0])}return n(e,t),e.create=function(t,r){return new e(t,r)},e.of=function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];var n=t[t.length-1];a.isScheduler(n)?t.pop():n=null;var o=t.length;return o>1?new e(t,n):1===o?new i.ScalarObservable(t[0],n):new s.EmptyObservable(n)},e.dispatch=function(t){var e=t.array,r=t.index,n=t.count,o=t.subscriber;return r>=n?void o.complete():(o.next(e[r]),void(o.closed||(t.index=r+1,this.schedule(t))))},e.prototype._subscribe=function(t){var r=0,n=this.array,o=n.length,i=this.scheduler;if(i)return i.schedule(e.dispatch,0,{array:n,index:r,count:o,subscriber:t});for(var s=0;o>s&&!t.closed;s++)t.next(n[s]);t.complete()},e}(o.Observable);r.ArrayObservable=u},{"../Observable":17,"../util/isScheduler":66,"./EmptyObservable":28,"./ScalarObservable":33}],27:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subject"),i=t("../Observable"),s=t("../Subscriber"),a=t("../Subscription"),u=function(t){function e(e,r){t.call(this),this.source=e,this.subjectFactory=r,this._refCount=0}return n(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(t=this._connection=new a.Subscription,t.add(this.source.subscribe(new c(this.getSubject(),this))),t.closed?(this._connection=null,t=a.Subscription.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return this.lift(new l(this))},e}(i.Observable);r.ConnectableObservable=u,r.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subscribe:{value:u.prototype._subscribe},getSubject:{value:u.prototype.getSubject},connect:{value:u.prototype.connect},refCount:{value:u.prototype.refCount}};var c=function(t){function e(e,r){t.call(this,e),this.connectable=r}return n(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(o.SubjectSubscriber),l=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var r=this.connectable;r._refCount++;var n=new p(t,r),o=e.subscribe(n);return n.closed||(n.connection=r.connect()),o},t}(),p=function(t){function e(e,r){t.call(this,e),this.connectable=r}return n(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(!t)return void(this.connection=null);this.connectable=null;var e=t._refCount;if(0>=e)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);var r=this.connection,n=t._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()},e}(s.Subscriber)},{"../Observable":17,"../Subject":20,"../Subscriber":22,"../Subscription":23}],28:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Observable"),i=function(t){function e(e){t.call(this),this.scheduler=e}return n(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){var e=t.subscriber;e.complete()},e.prototype._subscribe=function(t){var r=this.scheduler;return r?r.schedule(e.dispatch,0,{subscriber:t}):void t.complete()},e}(o.Observable);r.EmptyObservable=i},{"../Observable":17}],29:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Observable"),i=t("./EmptyObservable"),s=t("../util/isArray"),a=t("../util/subscribeToResult"),u=t("../OuterSubscriber"),c=function(t){function e(e,r){t.call(this),this.sources=e,this.resultSelector=r}return n(e,t),e.create=function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];if(null===t||0===arguments.length)return new i.EmptyObservable;var n=null;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&s.isArray(t[0])&&(t=t[0]),0===t.length?new i.EmptyObservable:new e(t,n)},e.prototype._subscribe=function(t){return new l(t,this.sources,this.resultSelector)},e}(o.Observable);r.ForkJoinObservable=c;var l=function(t){function e(e,r,n){t.call(this,e),this.sources=r,this.resultSelector=n,this.completed=0,this.haveValues=0;var o=r.length;this.total=o,this.values=new Array(o);for(var i=0;o>i;i++){var s=r[i],u=a.subscribeToResult(this,s,null,i);u&&(u.outerIndex=i,this.add(u))}}return n(e,t),e.prototype.notifyNext=function(t,e,r,n,o){this.values[r]=e,o._hasValue||(o._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,r=this,n=r.haveValues,o=r.resultSelector,i=r.values,s=i.length;if(!t._hasValue)return void e.complete();if(this.completed++,this.completed===s){if(n===s){var a=o?o.apply(this,i):i;e.next(a)}e.complete()}},e}(u.OuterSubscriber)},{"../Observable":17,"../OuterSubscriber":19,"../util/isArray":61,"../util/subscribeToResult":68,"./EmptyObservable":28}],30:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../util/isArray"),i=t("../util/isArrayLike"),s=t("../util/isPromise"),a=t("./PromiseObservable"),u=t("./IteratorObservable"),c=t("./ArrayObservable"),l=t("./ArrayLikeObservable"),p=t("../symbol/iterator"),h=t("../Observable"),f=t("../operator/observeOn"),d=t("../symbol/observable"),m=function(t){function e(e,r){t.call(this,null),this.ish=e,this.scheduler=r}return n(e,t),e.create=function(t,r){if(null!=t){if("function"==typeof t[d.$$observable])return t instanceof h.Observable&&!r?t:new e(t,r);if(o.isArray(t))return new c.ArrayObservable(t,r);if(s.isPromise(t))return new a.PromiseObservable(t,r);if("function"==typeof t[p.$$iterator]||"string"==typeof t)return new u.IteratorObservable(t,r);if(i.isArrayLike(t))return new l.ArrayLikeObservable(t,r)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")},e.prototype._subscribe=function(t){var e=this.ish,r=this.scheduler;return e[d.$$observable]().subscribe(null==r?t:new f.ObserveOnSubscriber(t,r,0))},e}(h.Observable);r.FromObservable=m},{"../Observable":17,"../operator/observeOn":51,"../symbol/iterator":54,"../symbol/observable":55,"../util/isArray":61,"../util/isArrayLike":62,"../util/isPromise":65,"./ArrayLikeObservable":25,"./ArrayObservable":26,"./IteratorObservable":31,"./PromiseObservable":32}],31:[function(t,e,r){"use strict";function n(t){var e=t[l.$$iterator];if(!e&&"string"==typeof t)return new h(t);if(!e&&void 0!==t.length)return new f(t);if(!e)throw new TypeError("object is not iterable");return t[l.$$iterator]()}function o(t){var e=+t.length;return isNaN(e)?0:0!==e&&i(e)?(e=s(e)*Math.floor(Math.abs(e)),0>=e?0:e>d?d:e):e}function i(t){return"number"==typeof t&&u.root.isFinite(t)}function s(t){var e=+t;return 0===e?e:isNaN(e)?e:0>e?-1:1}var a=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},u=t("../util/root"),c=t("../Observable"),l=t("../symbol/iterator"),p=function(t){function e(e,r){if(t.call(this),this.scheduler=r,null==e)throw new Error("iterator cannot be null.");this.iterator=n(e)}return a(e,t),e.create=function(t,r){return new e(t,r)},e.dispatch=function(t){var e=t.index,r=t.hasError,n=t.iterator,o=t.subscriber;if(r)return void o.error(t.error);var i=n.next();return i.done?void o.complete():(o.next(i.value),t.index=e+1,o.closed?void("function"==typeof n["return"]&&n["return"]()):void this.schedule(t))},e.prototype._subscribe=function(t){var r=0,n=this,o=n.iterator,i=n.scheduler;if(i)return i.schedule(e.dispatch,0,{index:r,iterator:o,subscriber:t});for(;;){var s=o.next();if(s.done){t.complete();break}if(t.next(s.value),t.closed){"function"==typeof o["return"]&&o["return"]();break}}},e}(c.Observable);r.IteratorObservable=p;var h=function(){function t(t,e,r){void 0===e&&(e=0),void 0===r&&(r=t.length),this.str=t,this.idx=e,this.len=r}return t.prototype[l.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},t}(),f=function(){function t(t,e,r){void 0===e&&(e=0),void 0===r&&(r=o(t)),this.arr=t,this.idx=e,this.len=r}return t.prototype[l.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},t}(),d=Math.pow(2,53)-1},{"../Observable":17,"../symbol/iterator":54,"../util/root":67}],32:[function(t,e,r){"use strict";function n(t){var e=t.value,r=t.subscriber;r.closed||(r.next(e),r.complete())}function o(t){var e=t.err,r=t.subscriber;r.closed||r.error(e)}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},s=t("../util/root"),a=t("../Observable"),u=function(t){function e(e,r){t.call(this),this.promise=e,this.scheduler=r}return i(e,t),e.create=function(t,r){return new e(t,r)},e.prototype._subscribe=function(t){var e=this,r=this.promise,i=this.scheduler;if(null==i)this._isScalar?t.closed||(t.next(this.value),t.complete()):r.then(function(r){e.value=r,e._isScalar=!0,t.closed||(t.next(r),t.complete())},function(e){t.closed||t.error(e)}).then(null,function(t){s.root.setTimeout(function(){throw t})});else if(this._isScalar){if(!t.closed)return i.schedule(n,0,{value:this.value,subscriber:t})}else r.then(function(r){e.value=r,e._isScalar=!0,t.closed||t.add(i.schedule(n,0,{value:r,subscriber:t}))},function(e){t.closed||t.add(i.schedule(o,0,{err:e,subscriber:t}))}).then(null,function(t){s.root.setTimeout(function(){throw t})})},e}(a.Observable);r.PromiseObservable=u},{"../Observable":17,"../util/root":67}],33:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Observable"),i=function(t){function e(e,r){t.call(this),this.value=e,this.scheduler=r,this._isScalar=!0,r&&(this._isScalar=!1)}return n(e,t),e.create=function(t,r){return new e(t,r)},e.dispatch=function(t){var e=t.done,r=t.value,n=t.subscriber;return e?void n.complete():(n.next(r),void(n.closed||(t.done=!0,this.schedule(t))))},e.prototype._subscribe=function(t){var r=this.value,n=this.scheduler;return n?n.schedule(e.dispatch,0,{done:!1,value:r,subscriber:t}):(t.next(r),void(t.closed||t.complete()))},e}(o.Observable);r.ScalarObservable=i},{"../Observable":17}],34:[function(t,e,r){"use strict";var n=t("./ForkJoinObservable");r.forkJoin=n.ForkJoinObservable.create},{"./ForkJoinObservable":29}],35:[function(t,e,r){"use strict";var n=t("./FromObservable");r.from=n.FromObservable.create},{"./FromObservable":30}],36:[function(t,e,r){"use strict";var n=t("./PromiseObservable");r.fromPromise=n.PromiseObservable.create},{"./PromiseObservable":32}],37:[function(t,e,r){"use strict";var n=t("../operator/merge");r.merge=n.mergeStatic},{"../operator/merge":47}],38:[function(t,e,r){"use strict";var n=t("./ArrayObservable");r.of=n.ArrayObservable.of},{"./ArrayObservable":26}],39:[function(t,e,r){"use strict";function n(t){var e=new a(t),r=this.lift(e);return e.caught=r}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../OuterSubscriber"),s=t("../util/subscribeToResult");r._catch=n;var a=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.selector,this.caught))},t}(),u=function(t){function e(e,r,n){t.call(this,e),this.selector=r,this.caught=n}return o(e,t),e.prototype.error=function(e){if(!this.isStopped){var r=void 0;try{r=this.selector(e,this.caught)}catch(n){return void t.prototype.error.call(this,n)}this._unsubscribeAndRecycle(),this.add(s.subscribeToResult(this,r))}},e}(i.OuterSubscriber)},{"../OuterSubscriber":19,"../util/subscribeToResult":68}],40:[function(t,e,r){"use strict";function n(){return this.lift(new o.MergeAllOperator(1))}var o=t("./mergeAll");r.concatAll=n},{"./mergeAll":48}],41:[function(t,e,r){"use strict";function n(t,e){return this.lift(new o.MergeMapOperator(t,e,1))}var o=t("./mergeMap");r.concatMap=n},{"./mergeMap":49}],42:[function(t,e,r){"use strict";function n(t,e){return this.lift(new s(t,e,this))}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");r.every=n;var s=function(){function t(t,e,r){this.predicate=t,this.thisArg=e,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg,this.source))},t}(),a=function(t){function e(e,r,n,o){t.call(this,e),this.predicate=r,this.thisArg=n,this.source=o,this.index=0,this.thisArg=n||this}return o(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(r){return void this.destination.error(r)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(i.Subscriber)},{"../Subscriber":22}],43:[function(t,e,r){"use strict";function n(t,e){return this.lift(new s(t,e))}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");r.filter=n;var s=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg))},t}(),a=function(t){function e(e,r,n){t.call(this,e),this.predicate=r,this.thisArg=n,this.count=0,this.predicate=r}return o(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(r){return void this.destination.error(r)}e&&this.destination.next(t)},e}(i.Subscriber)},{"../Subscriber":22}],44:[function(t,e,r){"use strict";function n(t,e,r){return this.lift(new a(t,e,r,this))}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),s=t("../util/EmptyError");r.first=n;var a=function(){function t(t,e,r,n){this.predicate=t,this.resultSelector=e,this.defaultValue=r,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,r,n,o,i){t.call(this,e),this.predicate=r,this.resultSelector=n,this.defaultValue=o,this.source=i,this.index=0,this.hasCompleted=!1,this._emitted=!1}return o(e,t),e.prototype._next=function(t){var e=this.index++;this.predicate?this._tryPredicate(t,e):this._emit(t,e)},e.prototype._tryPredicate=function(t,e){var r;try{r=this.predicate(t,e,this.source)}catch(n){return void this.destination.error(n)}r&&this._emit(t,e)},e.prototype._emit=function(t,e){return this.resultSelector?void this._tryResultSelector(t,e):void this._emitFinal(t)},e.prototype._tryResultSelector=function(t,e){var r;try{r=this.resultSelector(t,e)}catch(n){return void this.destination.error(n)}this._emitFinal(r)},e.prototype._emitFinal=function(t){var e=this.destination;this._emitted||(this._emitted=!0,e.next(t),e.complete(),this.hasCompleted=!0)},e.prototype._complete=function(){var t=this.destination;this.hasCompleted||"undefined"==typeof this.defaultValue?this.hasCompleted||t.error(new s.EmptyError):(t.next(this.defaultValue),t.complete())},e}(i.Subscriber)},{"../Subscriber":22,"../util/EmptyError":57}],45:[function(t,e,r){"use strict";function n(t,e,r){return this.lift(new a(t,e,r,this))}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),s=t("../util/EmptyError");r.last=n;var a=function(){function t(t,e,r,n){this.predicate=t,this.resultSelector=e,this.defaultValue=r,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,r,n,o,i){t.call(this,e),this.predicate=r,this.resultSelector=n,this.defaultValue=o,this.source=i,this.hasValue=!1,this.index=0,"undefined"!=typeof o&&(this.lastValue=o,this.hasValue=!0)}return o(e,t),e.prototype._next=function(t){var e=this.index++;if(this.predicate)this._tryPredicate(t,e);else{if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryPredicate=function(t,e){var r;try{r=this.predicate(t,e,this.source)}catch(n){return void this.destination.error(n)}if(r){if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryResultSelector=function(t,e){var r;try{r=this.resultSelector(t,e)}catch(n){return void this.destination.error(n)}this.lastValue=r,this.hasValue=!0},e.prototype._complete=function(){var t=this.destination;this.hasValue?(t.next(this.lastValue),t.complete()):t.error(new s.EmptyError)},e}(i.Subscriber)},{"../Subscriber":22,"../util/EmptyError":57}],46:[function(t,e,r){"use strict";function n(t,e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new s(t,e))}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");r.map=n;var s=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.thisArg))},t}();r.MapOperator=s;var a=function(t){function e(e,r,n){t.call(this,e),this.project=r,this.count=0,this.thisArg=n||this}return o(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(e)},e}(i.Subscriber)},{"../Subscriber":22}],47:[function(t,e,r){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return this.lift.call(o.apply(void 0,[this].concat(t)))}function o(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=Number.POSITIVE_INFINITY,n=null,o=t[t.length-1];return u.isScheduler(o)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof o&&(r=t.pop()),null===n&&1===t.length&&t[0]instanceof i.Observable?t[0]:new s.ArrayObservable(t,n).lift(new a.MergeAllOperator(r))}var i=t("../Observable"),s=t("../observable/ArrayObservable"),a=t("./mergeAll"),u=t("../util/isScheduler");r.merge=n,r.mergeStatic=o},{"../Observable":17,"../observable/ArrayObservable":26,"../util/isScheduler":66,"./mergeAll":48}],48:[function(t,e,r){"use strict";function n(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),this.lift(new a(t))}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../OuterSubscriber"),s=t("../util/subscribeToResult");r.mergeAll=n;var a=function(){function t(t){this.concurrent=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.concurrent))},t}();r.MergeAllOperator=a;var u=function(t){function e(e,r){t.call(this,e),this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0}return o(e,t),e.prototype._next=function(t){this.active<this.concurrent?(this.active++,this.add(s.subscribeToResult(this,t))):this.buffer.push(t)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(i.OuterSubscriber);r.MergeAllSubscriber=u},{"../OuterSubscriber":19,"../util/subscribeToResult":68}],49:[function(t,e,r){"use strict";function n(t,e,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"number"==typeof e&&(r=e,e=null),this.lift(new a(t,e,r))}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/subscribeToResult"),s=t("../OuterSubscriber");r.mergeMap=n;var a=function(){function t(t,e,r){void 0===r&&(r=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector,this.concurrent))},t}();r.MergeMapOperator=a;var u=function(t){function e(e,r,n,o){void 0===o&&(o=Number.POSITIVE_INFINITY),t.call(this,e),this.project=r,this.resultSelector=n,this.concurrent=o,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return o(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(n){return void this.destination.error(n)}this.active++,this._innerSub(e,t,r)},e.prototype._innerSub=function(t,e,r){this.add(i.subscribeToResult(this,t,e,r))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,r,n){this.resultSelector?this._notifyResultSelector(t,e,r,n):this.destination.next(e);
 
diff --git a/apps/maarch_entreprise/my_contacts/create_contact_iframe.php b/apps/maarch_entreprise/my_contacts/create_contact_iframe.php
index c5371879a88458df2518c400e277097711f1119d..e77176f0d70cd61ec636a26184c3859fed7668dc 100644
--- a/apps/maarch_entreprise/my_contacts/create_contact_iframe.php
+++ b/apps/maarch_entreprise/my_contacts/create_contact_iframe.php
@@ -81,7 +81,7 @@ if (isset($_GET['created']) && $_GET['created'] <> '') {
 }
 ?>
 	<br/>
-	<hr>
+	<br/>
 	<br/>
 <?php
 $contact->formcontact("add", "", false, true);
diff --git a/apps/maarch_entreprise/my_contacts/info_contact_iframe.php b/apps/maarch_entreprise/my_contacts/info_contact_iframe.php
old mode 100644
new mode 100755
index 8ffab70101d8d00b6b4c89836174abd71b875ea7..2792e8883d2b5b24b207eb6c7d7ebb6691a834ae
--- a/apps/maarch_entreprise/my_contacts/info_contact_iframe.php
+++ b/apps/maarch_entreprise/my_contacts/info_contact_iframe.php
@@ -86,17 +86,17 @@ $stmt = $db->query($query, array($_GET['contactid']));
 $line = $stmt->fetchObject();
 
 $_SESSION['m_admin']['contact'] = array();
-$_SESSION['m_admin']['contact']['ID'] = $line->contact_id;
-$_SESSION['m_admin']['contact']['TITLE'] = $request->show_string($line->title);
-$_SESSION['m_admin']['contact']['LASTNAME'] = $request->show_string($line->lastname);
-$_SESSION['m_admin']['contact']['FIRSTNAME'] = $request->show_string($line->firstname);
-$_SESSION['m_admin']['contact']['SOCIETY'] = $request->show_string($line->society);
-$_SESSION['m_admin']['contact']['SOCIETY_SHORT'] = $request->show_string($line->society_short);
-$_SESSION['m_admin']['contact']['FUNCTION'] = $request->show_string($line->function);
-$_SESSION['m_admin']['contact']['OTHER_DATA'] = $request->show_string($line->other_data);
+$_SESSION['m_admin']['contact']['ID']                  = $line->contact_id;
+$_SESSION['m_admin']['contact']['TITLE']               = $request->show_string($line->title);
+$_SESSION['m_admin']['contact']['LASTNAME']            = $request->show_string($line->lastname);
+$_SESSION['m_admin']['contact']['FIRSTNAME']           = $request->show_string($line->firstname);
+$_SESSION['m_admin']['contact']['SOCIETY']             = $request->show_string($line->society);
+$_SESSION['m_admin']['contact']['SOCIETY_SHORT']       = $request->show_string($line->society_short);
+$_SESSION['m_admin']['contact']['FUNCTION']            = $request->show_string($line->function);
+$_SESSION['m_admin']['contact']['OTHER_DATA']          = $request->show_string($line->other_data);
 $_SESSION['m_admin']['contact']['IS_CORPORATE_PERSON'] = $request->show_string($line->is_corporate_person);
-$_SESSION['m_admin']['contact']['CONTACT_TYPE'] = $line->contact_type;
-$_SESSION['m_admin']['contact']['OWNER'] = $line->user_id;
+$_SESSION['m_admin']['contact']['CONTACT_TYPE']        = $line->contact_type;
+$_SESSION['m_admin']['contact']['OWNER']               = $line->user_id;
 
 if (isset($_GET['mode']) && $_GET['mode'] <> '') {
 	$mode = $_GET['mode'];
@@ -130,35 +130,34 @@ if ($core_tools2->test_admin('update_contacts', 'apps', false) && $mode <> "view
 	$line = $stmt->fetchObject();
 
 	$_SESSION['m_admin']['address'] = array();
-	$_SESSION['m_admin']['address']['ID'] = $line->id;
-	$_SESSION['m_admin']['address']['CONTACT_ID'] = $line->contact_id;
-	$_SESSION['m_admin']['address']['TITLE'] = $request->show_string($line->title);
-	$_SESSION['m_admin']['address']['LASTNAME'] = $request->show_string($line->lastname);
-	$_SESSION['m_admin']['address']['FIRSTNAME'] = $request->show_string($line->firstname);
-	$_SESSION['m_admin']['address']['FUNCTION'] = $request->show_string($line->function);
-	$_SESSION['m_admin']['address']['OTHER_DATA'] = $request->show_string($line->other_data);
-	$_SESSION['m_admin']['address']['OWNER'] = $line->user_id;
-	$_SESSION['m_admin']['address']['DEPARTEMENT'] = $request->show_string($line->departement);
+	$_SESSION['m_admin']['address']['ID']                 = $line->id;
+	$_SESSION['m_admin']['address']['CONTACT_ID']         = $line->contact_id;
+	$_SESSION['m_admin']['address']['TITLE']              = $request->show_string($line->title);
+	$_SESSION['m_admin']['address']['LASTNAME']           = $request->show_string($line->lastname);
+	$_SESSION['m_admin']['address']['FIRSTNAME']          = $request->show_string($line->firstname);
+	$_SESSION['m_admin']['address']['FUNCTION']           = $request->show_string($line->function);
+	$_SESSION['m_admin']['address']['OTHER_DATA']         = $request->show_string($line->other_data);
+	$_SESSION['m_admin']['address']['OWNER']              = $line->user_id;
+	$_SESSION['m_admin']['address']['DEPARTEMENT']        = $request->show_string($line->departement);
 	$_SESSION['m_admin']['address']['CONTACT_PURPOSE_ID'] = $line->contact_purpose_id;
-	$_SESSION['m_admin']['address']['OCCUPANCY'] = $request->show_string($line->occupancy);
-	$_SESSION['m_admin']['address']['ADD_NUM'] = $request->show_string($line->address_num);
-	$_SESSION['m_admin']['address']['ADD_STREET'] = $request->show_string($line->address_street);
-	$_SESSION['m_admin']['address']['ADD_COMP'] = $request->show_string($line->address_complement);
-	$_SESSION['m_admin']['address']['ADD_TOWN'] = $request->show_string($line->address_town);
-	$_SESSION['m_admin']['address']['ADD_CP'] = $request->show_string($line->address_postal_code);
-	$_SESSION['m_admin']['address']['ADD_COUNTRY'] = $request->show_string($line->address_country);
-	$_SESSION['m_admin']['address']['PHONE'] = $request->show_string($line->phone);
-	$_SESSION['m_admin']['address']['MAIL'] = $request->show_string($line->email);
-	$_SESSION['m_admin']['address']['WEBSITE'] = $request->show_string($line->website);
-	$_SESSION['m_admin']['address']['IS_PRIVATE'] = $request->show_string($line->is_private);
-	$_SESSION['m_admin']['address']['SALUTATION_HEADER'] = $request->show_string($line->salutation_header);
-	$_SESSION['m_admin']['address']['SALUTATION_FOOTER'] = $request->show_string($line->salutation_footer);
+	$_SESSION['m_admin']['address']['OCCUPANCY']          = $request->show_string($line->occupancy);
+	$_SESSION['m_admin']['address']['ADD_NUM']            = $request->show_string($line->address_num);
+	$_SESSION['m_admin']['address']['ADD_STREET']         = $request->show_string($line->address_street);
+	$_SESSION['m_admin']['address']['ADD_COMP']           = $request->show_string($line->address_complement);
+	$_SESSION['m_admin']['address']['ADD_TOWN']           = $request->show_string($line->address_town);
+	$_SESSION['m_admin']['address']['ADD_CP']             = $request->show_string($line->address_postal_code);
+	$_SESSION['m_admin']['address']['ADD_COUNTRY']        = $request->show_string($line->address_country);
+	$_SESSION['m_admin']['address']['PHONE']              = $request->show_string($line->phone);
+	$_SESSION['m_admin']['address']['MAIL']               = $request->show_string($line->email);
+	$_SESSION['m_admin']['address']['WEBSITE']            = $request->show_string($line->website);
+	$_SESSION['m_admin']['address']['IS_PRIVATE']         = $request->show_string($line->is_private);
+	$_SESSION['m_admin']['address']['SALUTATION_HEADER']  = $request->show_string($line->salutation_header);
+	$_SESSION['m_admin']['address']['SALUTATION_FOOTER']  = $request->show_string($line->salutation_footer);
 
 	$core_tools2->load_js();
 	?>
 	    <div id="inner_content" class="clearfix" align="center" style="padding:0px;width:100% !important;">
 	    	<div class="block">
-	    	<!--<h2><?php echo _CONTACT_CARD;?></h2>-->
 	<?php
 		$contact->get_contact_form();
 		$contact->get_address_form();
diff --git a/apps/maarch_entreprise/my_contacts/my_contact_up.php b/apps/maarch_entreprise/my_contacts/my_contact_up.php
old mode 100644
new mode 100755
index e0c86178992c7a80c430b46a2fe256c90c574ace..a7c9a17ed90c2deabad9eff602342490f56530b0
--- a/apps/maarch_entreprise/my_contacts/my_contact_up.php
+++ b/apps/maarch_entreprise/my_contacts/my_contact_up.php
@@ -53,7 +53,7 @@ if (!isset($_REQUEST['letters'])) {
     /***********************************************************/
 }
 
-?><div id="divList" class="block" name="divList"><?php
+?><div id="divList" name="divList"><?php
 
 $contact = new contacts_v2();
 if ($from_iframe) {
@@ -71,4 +71,4 @@ if ($_SESSION['origin']=='contacts_list') {
 
 include_once 'apps/' . $_SESSION['config']['app_id'] . '/admin/contacts/contact_addresses/contact_addresses.php';
 
-?> </div>
\ No newline at end of file
+?> </div>
diff --git a/apps/maarch_entreprise/reports/get_report_by_period_val.php b/apps/maarch_entreprise/reports/get_report_by_period_val.php
index 7dac40ef16b2436a9171bc24299ee829d2e82a85..373cfd328545bc45772a8c49ace05091f8bb59bb 100644
--- a/apps/maarch_entreprise/reports/get_report_by_period_val.php
+++ b/apps/maarch_entreprise/reports/get_report_by_period_val.php
@@ -285,11 +285,11 @@ else
 				if ($nbDoc == 0) $nbDoc = 1;
 				if($report_type == 'graph')
 				{
-					array_push($val_an, (string)round($tmp / $nbDoc,0));
+					array_push($val_an, (string)round($tmp / $nbDoc, 1));
 				}
 				elseif($report_type == 'array')
 				{
-					array_push($data, array('SSCHEMISE' => $res2->doctypes_second_level_label, 'LABEL' => functions::show_string($doctypes[$i]['LABEL']), 'VALUE' => (string)round($tmp / $nbDoc,0)));
+					array_push($data, array('SSCHEMISE' => $res2->doctypes_second_level_label, 'LABEL' => functions::show_string($doctypes[$i]['LABEL']), 'VALUE' => (string)round($tmp / $nbDoc, 1)));
 				}
 			}
 			else
@@ -419,11 +419,11 @@ else
 					if ($nbDoc == 0) $nbDoc = 1;
 					if($report_type == 'graph')
 					{
-						array_push($val_an, (string)round($tmp / $nbDoc,0));
+						array_push($val_an, (string)round($tmp / $nbDoc, 1));
 					}
 					elseif($report_type == 'array')
 					{
-						array_push($data, array('LABEL' => $_SESSION['month'][$i], 'VALUE' => (string)round($tmp / $nbDoc,0)));
+						array_push($data, array('LABEL' => $_SESSION['month'][$i], 'VALUE' => (string)round($tmp / $nbDoc, 1)));
 					}
 				}
 				else
diff --git a/apps/maarch_entreprise/smartphone/.htaccess b/apps/maarch_entreprise/smartphone/.htaccess
new file mode 100644
index 0000000000000000000000000000000000000000..cc5760d447d7ff496fc42dfd40d167fbbb5b20d3
--- /dev/null
+++ b/apps/maarch_entreprise/smartphone/.htaccess
@@ -0,0 +1,4 @@
+<FilesMatch ".*">
+	Order allow,deny
+	Allow from all
+</FilesMatch>
diff --git a/apps/maarch_entreprise/template/documents_list_copies.html b/apps/maarch_entreprise/template/documents_list_copies.html
index 6ac269acd57817b72d9452e4e96e4b52d91182e4..be077dd0b9d118036aa837f5e75d815dec501e11 100644
--- a/apps/maarch_entreprise/template/documents_list_copies.html
+++ b/apps/maarch_entreprise/template/documents_list_copies.html
@@ -211,12 +211,8 @@ Mods
     <br/>
 
 <script>
-    $$('#container')[0].setAttribute('style', 'width: 90%; min-width: 1000px;');
-    $$('#content')[0].setAttribute('style', 'width: auto; min-width: 1000px;');
-    $$('#inner_content')[0].setAttribute('style', 'width: auto; min-width: 1000px;');
-    $$('table#extended_list')[0].setAttribute('style', 'width: 100%; min-width: 900px; margin: 0;');
-    /*
-    // liste condensée
-    $$('table.listing')[0].setAttribute('style', 'width: 100%; min-width: 900px;');
-    */
+    $j('#container').attr('style', 'width: 90%; min-width: 1000px;');
+    $j('#content').attr('style', 'width: auto; min-width: 1000px;');
+    $j('#inner_content').attr('style', 'width: auto; min-width: 1000px;');
+    $j('table#extended_list').attr('style', 'width: 100%; min-width: 900px; margin: 0;');
 </script>
\ No newline at end of file
diff --git a/apps/maarch_entreprise/xml/IVS/validation_rules.xml b/apps/maarch_entreprise/xml/IVS/validation_rules.xml
index 77a3f656b6be6a453bc5af478920ceb6984959e7..8360c89b2418713959baa74204193d68299c58c0 100755
--- a/apps/maarch_entreprise/xml/IVS/validation_rules.xml
+++ b/apps/maarch_entreprise/xml/IVS/validation_rules.xml
@@ -61,6 +61,7 @@
 
     <validationRule name="admin_ajax_search" extends="standardForm" mode="error">
       <parameter name="what" type="string" />
+      <parameter name="idContact" type="integer" />
     </validationRule>
 
     <validationRule name="contact_id" extends="standardForm" mode="error">
diff --git a/apps/maarch_entreprise/xml/entreprise.xml b/apps/maarch_entreprise/xml/entreprise.xml
index 98a439b831aace10b2fb4ce382ad34e2fe1a4f9e..f170689c553844ce55e88164004a35ff405d3f74 100644
--- a/apps/maarch_entreprise/xml/entreprise.xml
+++ b/apps/maarch_entreprise/xml/entreprise.xml
@@ -100,7 +100,7 @@
             <label>_SVA</label>
             <process_mode>SVA</process_mode>
         </type>
-        <type show="true" with_chrono="false" icon="VR" sign="false">
+        <type show="true" with_chrono="false" icon="VR" sign="true">
             <id>svr</id>
             <label>_SVR</label>
             <process_mode>SVR</process_mode>
diff --git a/apps/maarch_entreprise/xml/index_letterbox.xml b/apps/maarch_entreprise/xml/index_letterbox.xml
old mode 100644
new mode 100755
index 0869c49d739c0b075cd233af20198ea6fbc4f6a4..bbd2142df9165990f7d0677ccf20ed3bbe8d2b48
--- a/apps/maarch_entreprise/xml/index_letterbox.xml
+++ b/apps/maarch_entreprise/xml/index_letterbox.xml
@@ -13,6 +13,7 @@
             <where_clause>enabled = 'Y'</where_clause>
             <order>order by lastname</order>
         </table>
+        <only_detail>true</only_detail> if true, field appear only in detail page and research.  Display in all page otherwise.
         <default_value></default_value>
     </INDEX>
 -->
diff --git a/install/.htaccess b/install/.htaccess
new file mode 100644
index 0000000000000000000000000000000000000000..cc5760d447d7ff496fc42dfd40d167fbbb5b20d3
--- /dev/null
+++ b/install/.htaccess
@@ -0,0 +1,4 @@
+<FilesMatch ".*">
+	Order allow,deny
+	Allow from all
+</FilesMatch>
diff --git a/modules/avis/template/documents_list_with_avis.html b/modules/avis/template/documents_list_with_avis.html
index 1dc27c3d8ff3da3c10025562903cfef0dacf9df2..47e2830d526bda0a864bf603196f5c7f95f03b4a 100755
--- a/modules/avis/template/documents_list_with_avis.html
+++ b/modules/avis/template/documents_list_with_avis.html
@@ -205,12 +205,8 @@ Mods
     <br/>
 
 <script>
-    $$('#container')[0].setAttribute('style', 'width: 90%; min-width: 1000px;');
-    $$('#content')[0].setAttribute('style', 'width: auto; min-width: 1000px;');
-    $$('#inner_content')[0].setAttribute('style', 'width: auto; min-width: 1000px;');
-    $$('table#extended_list')[0].setAttribute('style', 'width: 100%; min-width: 900px; margin: 0;');
-    /*
-    // liste condensée
-    $$('table.listing')[0].setAttribute('style', 'width: 100%; min-width: 900px;');
-    */
+    $j('#container').attr('style', 'width: 90%; min-width: 1000px;');
+    $j('#content').attr('style', 'width: auto; min-width: 1000px;');
+    $j('#inner_content').attr('style', 'width: auto; min-width: 1000px;');
+    $j('table#extended_list').attr('style', 'width: 100%; min-width: 900px; margin: 0;');
 </script>
\ No newline at end of file
diff --git a/modules/entities/entity_vol_stat.php b/modules/entities/entity_vol_stat.php
index ad83038d287350f27b1b3f00ce5e108434d1afa1..88f78bb6ddc16a1f1a79fef767a326bc52516780 100755
--- a/modules/entities/entity_vol_stat.php
+++ b/modules/entities/entity_vol_stat.php
@@ -123,7 +123,7 @@ $content .='<div id="params">';
         $content .='</td>';
         $content .='</tr>';
         $content .='<tr>';
-        $content .='<td style="text-align:center;"><input type="button" id="validate" name="validate" value="'._VALIDATE.'" class="button" onclick="valid_report_by_period(\''.$_SESSION['config']['businessappurl'].'index.php?display=true&module=entities&page=get_entity_late_mail\');" /></td>';
+        $content .='<td style="text-align:center;"><input type="button" id="validate" name="validate" value="'._VALIDATE.'" class="button" onclick="valid_report_by_period(\''.$_SESSION['config']['businessappurl'].'index.php?display=true&module=entities&page=get_entity_vol\');" /></td>';
         $content .='</tr>';
        $content .='</table>';
   $content .='</form>';
diff --git a/modules/entities/get_entity_process_delay.php b/modules/entities/get_entity_process_delay.php
index d6bd07f4d15ebce26d81f9e63e1478ff3760594e..7ade1e4ae1f1b38f5d4b18fab247886d552ffda3 100755
--- a/modules/entities/get_entity_process_delay.php
+++ b/modules/entities/get_entity_process_delay.php
@@ -256,11 +256,11 @@ for($i=0; $i<$totalEntities;$i++)
             if ($nbDoc == 0) $nbDoc = 1;
             if($report_type == 'graph')
             {
-                array_push($val_an, (string)round($tmp / $nbDoc,0));
+                array_push($val_an, (string)round($tmp / $nbDoc, 1));
             }
             elseif($report_type == 'array')
             {
-                array_push($data, array('LABEL' => $db->show_string($entities[$i]['LABEL']), 'VALUE' => (string)round($tmp / $nbDoc,0)));
+                array_push($data, array('LABEL' => $db->show_string($entities[$i]['LABEL']), 'VALUE' => (string)round($tmp / $nbDoc, 1)));
             }
         }
         else
diff --git a/modules/entities/get_entity_response_rate_stat.php b/modules/entities/get_entity_response_rate_stat.php
index e96182a3ead65aa2dc12b4e62b76a51758082fb1..4a26046ac47aec529edc8c9e264d1a346396caf8 100755
--- a/modules/entities/get_entity_response_rate_stat.php
+++ b/modules/entities/get_entity_response_rate_stat.php
@@ -239,7 +239,7 @@ for($i=0; $i<$totalEntities; $i++)
         
 	//RESPONSE RATE
 	if($nbResIncoming > 0){
-		$responseRate = number_format(($nbResponseIncoming * 100) / $nbResIncoming,1);
+		$responseRate = (string) round(($nbResponseIncoming * 100) / $nbResIncoming, 1);
 	}else{
 		$responseRate = 0;
 	}
diff --git a/modules/folder/folders_list_search_adv.php b/modules/folder/folders_list_search_adv.php
index 00c2525637f308c59d1c004f47f8f748a172cbe3..d61a20b26e1f6aa7d98a375fb10894829cf618f4 100644
--- a/modules/folder/folders_list_search_adv.php
+++ b/modules/folder/folders_list_search_adv.php
@@ -176,7 +176,7 @@ if($_GET['order_field'] != NULL){
             }
         }
         
-        //Initialiser le tableau de paramètres
+        //Initialiser le tableau de param�tres
         $paramsTab = array();
         $paramsTab['bool_modeReturn'] = false;                                          //Desactivation du mode return (vs echo)
         $paramsTab['pageTitle'] =  _RESULTS." : ".count($tab).' '._FOUND_FOLDER;        //Titre de la page
@@ -214,14 +214,11 @@ if($_GET['order_field'] != NULL){
 ?>
 
 <script type="text/javascript">
-    $$('#container')[0].setAttribute('style', 'width: 90%; min-width: 1000px;');
-    $$('#content')[0].setAttribute('style', 'width: auto; min-width: 1000px;');
+    $j('#container').attr('style', 'width: 90%; min-width: 1000px;');
+    $j('#content').attr('style', 'width: auto; min-width: 1000px;');
 
-    if ($$('#inner_content')[0]) {
-        $$('#inner_content')[0].setAttribute('style', 'width: auto; min-width: 1000px;');
-    };
-    //$$('table#extended_list')[0].setAttribute('style', 'width: 100%; min-width: 900px; margin: 0;');
-    
-    // liste condensée
-    $$('table.listing')[0].setAttribute('style', 'width: 100%; min-width: 900px;');
+    if ($j('#inner_content')) {
+        $j('#inner_content').attr('style', 'width: auto; min-width: 1000px;');
+    }
+    $j('table.listing').attr('style', 'width: 100%; min-width: 900px;');
 </script>
\ No newline at end of file
diff --git a/modules/tags/lang/fr.php b/modules/tags/lang/fr.php
index 1134fca42e64a6492a8473d6ad9888d36b344fb1..d069ad80957cb68be48dd4fa2708a68b7267de91 100755
--- a/modules/tags/lang/fr.php
+++ b/modules/tags/lang/fr.php
@@ -106,13 +106,13 @@ if (!defined("_TAG_SEARCH"))
 if (!defined("_TAGNONE"))
     define("_TAGNONE", "Aucun");
 if (!defined("_ALL_TAG_DELETED_FOR_RES_ID"))
-    define("_ALL_TAG_DELETED_FOR_RES_ID", "Tous les ".strtolower(_TAGS_DEFAULT)." sont supprimé pour la ressource");
+    define("_ALL_TAG_DELETED_FOR_RES_ID", "Tous les ".strtolower(_TAGS_DEFAULT)." sont supprimés pour la ressource");
 if (!defined("_TAGCLICKTODEL"))
     define("_TAGCLICKTODEL", "supprimer");
 if (!defined("_NAME_TAGS"))
     define("_NAME_TAGS", "Nom du ".strtolower(_TAG_DEFAULT));
 if (!defined("_PRIVATE_TAGS"))
-    define("_PRIVATE_TAGS", "Restreindre les ".strtolower(_TAGS_DEFAULT)." à l'entité de l'utilisateur (Niveau direction)");
+    define("_PRIVATE_TAGS", "Lier les ".strtolower(_TAGS_DEFAULT)." à l'entité de l'utilisateur (Niveau direction)");
 if (!defined("_PRIVATE_TAGS_DESC"))
     define("_PRIVATE_TAGS_DESC", "L'utilisateur ne verra que les ".strtolower(_TAGS_DEFAULT)." qui ont été restreints à sa direction (l'ajout / modification associera le mot clé automatiquement à sa direction).");
 if (!defined("_ADD_TAG_CONFIRM"))
diff --git a/modules/templates/file_iframe.php b/modules/templates/file_iframe.php
index 8b2cbeee3824d15905d34167eb15dcba720687e2..d41bf2ff5375bc6e736688deec0c80cce28185a4 100644
--- a/modules/templates/file_iframe.php
+++ b/modules/templates/file_iframe.php
@@ -33,9 +33,7 @@ if (isset($_REQUEST['template_content']) && !empty($_REQUEST['template_content']
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
     <meta http-equiv="Content-Language" content="<?php echo $_SESSION['config']['lang'] ?>" />
     <link rel="stylesheet" type="text/css" href="<?php functions::xecho($_SESSION['config']['css']);?>" media="screen" />
-    <!--[if lt IE 7.0]>  <link rel="stylesheet" type="text/css" href="<?php functions::xecho($_SESSION['config']['css_IE']);?>" media="screen" />  <![endif]-->
-    <!--[if gte IE 7.0]>  <link rel="stylesheet" type="text/css" href="<?php functions::xecho($_SESSION['config']['css_IE7']);?>" media="screen" />  <![endif]-->
-    <script type="text/javascript" src="js/functions.js"></script>
+    <script type="text/javascript" src="../../node_modules/tinymce/tinymce.min.js"></script>
     <?php
     $_SESSION['mode_editor'] = false;
     include('modules/templates/load_editor.php');
diff --git a/modules/visa/Controllers/VisaController.php b/modules/visa/Controllers/VisaController.php
index 5953538f0b284d149327531f8bc80e7d3affdbb7..9efc7947e35f012cef33e0ecae0122330ae964fa 100644
--- a/modules/visa/Controllers/VisaController.php
+++ b/modules/visa/Controllers/VisaController.php
@@ -60,54 +60,6 @@ class VisaController
             $actionsData[] = ['value' => $value['VALUE'], 'label' => $value['LABEL']];
         }
 
-
-        //		$history = \HistoryModel::getByIdForActions([
-        //			'id'      => $resId,
-        //			'select'  => ['event_date', 'info', 'firstname', 'lastname'],
-        //			'orderBy' => ['event_date DESC']
-        //		]);
-
-        $resList = BasketsModel::getResListById(
-            [
-            'basketId' => $basketId,
-            'select'  => ['res_id', 'alt_identifier', 'subject', 'creation_date', 'process_limit_date', 'priority', 'contact_id', 'address_id', 'user_lastname', 'user_firstname'],
-            'order_by'  => ['order_alphanum(alt_identifier) DESC'],    
-            ]
-        );
-
-        $attachmentTypes = AttachmentsModel::getAttachmentsTypesByXML();
-
-        $resListIndex = 0;
-        foreach ($resList as $key => $value) {
-            if ($value['res_id'] == $resId){
-                $resListIndex = $key;
-            }
-            if (!empty($value['contact_id'])) {
-                $resList[$key]['sender'] = \ContactsModel::getLabelledContactWithAddress(['contactId' => $value['contact_id'], 'addressId' => $value['address_id']]);
-            } else {
-                $resList[$key]['sender'] = $value['user_firstname'] . ' ' . $value['user_lastname'];
-            }
-            $attachmentsInResList = \ResModel::getAvailableLinkedAttachmentsNotIn(
-                [
-                'resIdMaster' => $value['res_id'],
-                'notIn'       => ['incoming_mail_attachment', 'print_folder', 'converted_pdf', 'signed_response'],
-                'select'      => ['status', 'attachment_type']
-                ]
-            );
-            $allSigned = !empty($attachmentsInResList);
-            foreach ($attachmentsInResList as $value2) {
-                if ($attachmentTypes[$value2['attachment_type']]['sign'] && ($value2['status'] == 'TRA' || $value2['status'] == 'A_TRA')) {
-                    $allSigned = false;
-                }
-            }
-            $resList[$key]['creation_date'] = date(DATE_ATOM, strtotime($resList[$key]['creation_date']));
-            $resList[$key]['process_limit_date'] = date(DATE_ATOM, strtotime($resList[$key]['process_limit_date']));
-            $resList[$key]['allSigned'] = $allSigned;
-            $resList[$key]['priorityColor'] = $_SESSION['mail_priorities_color'][$value['priority']]; //TODO No Session
-            $resList[$key]['priorityLabel'] = $_SESSION['mail_priorities'][$value['priority']]; //TODO No Session
-            unset($resList[$key]['priority'], $resList[$key]['contact_id'], $resList[$key]['address_id'], $resList[$key]['user_lastname'], $resList[$key]['user_firstname']);
-        }
-
         $actionLabel = (_ID_TO_DISPLAY == 'res_id' ? $documents[0]['res_id'] : $documents[0]['alt_id']);
         $actionLabel .= " : {$documents[0]['title']}";
         $currentAction = [
@@ -121,9 +73,8 @@ class VisaController
         $datas['attachments']   = $this->getAttachmentsForSignatureBook(['resId' => $resId]);
         $datas['documents']     = $documents;
         $datas['currentAction'] = $currentAction;
-        //		$datas['histories'] 	= $history;
-        $datas['resList']       = $resList;
-        $datas['resListIndex']  = $resListIndex;
+        $datas['resList']       = [];
+//        $datas['resListIndex']  = $resListIndex;
         $datas['nbNotes']       = \NotesModel::countForCurrentUserByResId(['resId' => $resId]);
         $datas['signatures']    = UserModel::getSignaturesById(['userId' => $_SESSION['user']['UserId']]);
         $datas['consigne']      = UserModel::getCurrentConsigneById(['resId' => $resId]);
@@ -381,4 +332,48 @@ class VisaController
         return array_values($attachments);
     }
 
+    public function getResList(RequestInterface $request, ResponseInterface $response, $aArgs)
+    {
+        $basketId = $aArgs['basketId'];
+
+        $resList = BasketsModel::getResListById(
+            [
+                'basketId' => $basketId,
+                'select'  => ['res_id', 'alt_identifier', 'subject', 'creation_date', 'process_limit_date', 'priority', 'contact_id', 'address_id', 'user_lastname', 'user_firstname'],
+                'order_by'  => ['order_alphanum(alt_identifier) DESC'],
+            ]
+        );
+
+        $attachmentTypes = AttachmentsModel::getAttachmentsTypesByXML();
+
+        foreach ($resList as $key => $value) {
+            if (!empty($value['contact_id'])) {
+                $resList[$key]['sender'] = \ContactsModel::getLabelledContactWithAddress(['contactId' => $value['contact_id'], 'addressId' => $value['address_id']]);
+            } else {
+                $resList[$key]['sender'] = $value['user_firstname'] . ' ' . $value['user_lastname'];
+            }
+            $attachmentsInResList = \ResModel::getAvailableLinkedAttachmentsNotIn(
+                [
+                    'resIdMaster' => $value['res_id'],
+                    'notIn'       => ['incoming_mail_attachment', 'print_folder', 'converted_pdf', 'signed_response'],
+                    'select'      => ['status', 'attachment_type']
+                ]
+            );
+            $allSigned = !empty($attachmentsInResList);
+            foreach ($attachmentsInResList as $value2) {
+                if ($attachmentTypes[$value2['attachment_type']]['sign'] && ($value2['status'] == 'TRA' || $value2['status'] == 'A_TRA')) {
+                    $allSigned = false;
+                }
+            }
+            $resList[$key]['creation_date'] = date(DATE_ATOM, strtotime($resList[$key]['creation_date']));
+            $resList[$key]['process_limit_date'] = date(DATE_ATOM, strtotime($resList[$key]['process_limit_date']));
+            $resList[$key]['allSigned'] = $allSigned;
+            $resList[$key]['priorityColor'] = $_SESSION['mail_priorities_color'][$value['priority']]; //TODO No Session
+            $resList[$key]['priorityLabel'] = $_SESSION['mail_priorities'][$value['priority']]; //TODO No Session
+            unset($resList[$key]['priority'], $resList[$key]['contact_id'], $resList[$key]['address_id'], $resList[$key]['user_lastname'], $resList[$key]['user_firstname']);
+        }
+
+        return $response->withJson(['resList' => $resList]);
+    }
+
 }
diff --git a/modules/visa/template/documents_list_with_signatory.html b/modules/visa/template/documents_list_with_signatory.html
index 5d95f706a3e2ca68e5221e08c37d687d2fd6fbd1..d0cdcb13c3cb8b204770d8e66f06ea1700b86d83 100644
--- a/modules/visa/template/documents_list_with_signatory.html
+++ b/modules/visa/template/documents_list_with_signatory.html
@@ -191,8 +191,8 @@ Mods
     <br/>
 
 <script>
-    $$('#container')[0].setAttribute('style', 'width: 90%; min-width: 1000px;');
-    $$('#content')[0].setAttribute('style', 'width: auto; min-width: 1000px;');
-    $$('#inner_content')[0].setAttribute('style', 'width: auto; min-width: 1000px;');
-    $$('table#extended_list')[0].setAttribute('style', 'width: 100%; min-width: 900px; margin: 0;');
+    $j('#container').attr('style', 'width: 90%; min-width: 1000px;');
+    $j('#content').attr('style', 'width: auto; min-width: 1000px;');
+    $j('#inner_content').attr('style', 'width: auto; min-width: 1000px;');
+    $j('table#extended_list').attr('style', 'width: 100%; min-width: 900px; margin: 0;');
 </script>
\ No newline at end of file
diff --git a/rest/.htaccess b/rest/.htaccess
index ac170c4f165bbac421dc84dddd73ccd3a3ea9c1c..76a1217f437087fbe368e3ec518c468e4afab87d 100644
--- a/rest/.htaccess
+++ b/rest/.htaccess
@@ -7,4 +7,3 @@ RewriteEngine On
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule ^ index.php [QSA,L]
-
diff --git a/rest/index.php b/rest/index.php
index 4d069e39bd11fccde7676f4ca67e67f91ee32806..3e1f1aa33548cb5c47e3beb1626a90b7326ee00e 100644
--- a/rest/index.php
+++ b/rest/index.php
@@ -119,7 +119,8 @@ $app->get('/attachments', \Attachments\Controllers\AttachmentsController::class
 $app->get('/attachments/{id}', \Attachments\Controllers\AttachmentsController::class . ':getById');
 $app->post('/attachments', \Attachments\Controllers\AttachmentsController::class . ':create');
 
-//basket
+//visa
+$app->get('/{basketId}/signatureBook/resList', \Visa\Controllers\VisaController::class . ':getResList');
 $app->get('/{basketId}/signatureBook/{resId}', \Visa\Controllers\VisaController::class . ':getSignatureBook');
 $app->get('/signatureBook/{resId}/attachments', \Visa\Controllers\VisaController::class . ':getAttachmentsById');
 $app->get('/signatureBook/{resId}/incomingMailAttachments', \Visa\Controllers\VisaController::class . ':getIncomingMailAndAttachmentsById');
diff --git a/sql/160_to_170.sql b/sql/160_to_170.sql
index b18f3cdc41b96caf5cf22ee6681304b6be054c35..363a25f9003c48dec8422bc626338afc524e0347 100644
--- a/sql/160_to_170.sql
+++ b/sql/160_to_170.sql
@@ -276,7 +276,7 @@ INSERT INTO usergroups_services SELECT group_id, 'graphics_reports' FROM usergro
 TRUNCATE TABLE user_signatures;
 INSERT INTO user_signatures (user_id, signature_label, signature_path, signature_file_name) SELECT user_id, '', signature_path, signature_file_name FROM users WHERE signature_path is not null and signature_file_name is not null;
 
-UPDATE parameters SET param_value_int = '170' WHERE id = 'database_version';
+UPDATE parameters SET param_value_int = '1706' WHERE id = 'database_version';
 
 /** DELETES OLD TABLES **/
 DROP TABLE IF EXISTS adr_business;
diff --git a/sql/data_fr.sql b/sql/data_fr.sql
index f52134bb3b8bc9dea3e813c766ee3b6356d4c9d2..5254a369d1cb99b7317d1a37966e4939a5d13ba0 100644
--- a/sql/data_fr.sql
+++ b/sql/data_fr.sql
@@ -1,285 +1,329 @@
+SET CLIENT_ENCODING TO 'UTF8';
 -- Create USERGROUPS & USERGROUPS_SERVICES
-SELECT * FROM ACTIONS;
-TRUNCATE TABLE USERGROUPS;
-TRUNCATE TABLE USERGROUPS_SERVICES;
-INSERT INTO USERGROUPS VALUES ('COURRIER', 'Opérateur de scan', 'N', 'N', 'N', 'N', 'N', 'Y');
-INSERT INTO USERGROUPS VALUES ('AGENT', 'Utilisateur', 'N', 'N', 'N', 'N', 'N', 'Y');
-INSERT INTO USERGROUPS VALUES ('RESP_COURRIER', 'Responsable Courrier', 'N', 'N', 'N', 'N', 'N', 'Y');
-INSERT INTO USERGROUPS VALUES ('RESPONSABLE', 'Manager', 'N', 'N', 'N', 'N', 'N', 'Y');
-INSERT INTO USERGROUPS VALUES ('ADMINISTRATEUR', 'Admin. fonctionnel', 'N', 'N', 'N', 'N', 'N', 'Y');
-INSERT INTO USERGROUPS VALUES ('ELU', 'Elu', 'N', 'N', 'N', 'N', 'N', 'Y');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'admin');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'adv_search_mlb');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'index_mlb');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'search_contacts');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'my_contacts');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'my_contacts_menu');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'create_contacts');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'update_contacts');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'reopen_mail');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'view_technical_infos');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'view_doc_history');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'put_in_validation');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'add_links');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'print_details');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'print_doc_details_from_list');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'update_case');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'join_res_case');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'join_res_case_in_process');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'close_case');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'add_cases');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'view_baskets');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'view_folder_tree');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'associate_folder');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'folder_search');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'close_folder');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'modify_folder');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'folder_freeze');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'delete_folder');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'add_copy_in_process');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'add_copy_in_indexing_validation');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'update_list_diff_in_details');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'entities_print_sep_mlb');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'sendmail');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'use_mail_services');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'reports');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'edit_attachments_from_detail');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'modify_attachments');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'delete_attachments');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'add_new_version');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'print_folder_doc');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'add_tag_to_res');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'create_tag');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'delete_tag_to_res');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'tag_view');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', '_print_sep');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'physical_archive_print_sep_mlb');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'physical_archive');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'admin_fileplan');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'put_doc_in_fileplan');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'fileplan');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'manage_notes_doc');
-Insert into usergroups_services (group_id, service_id) Values ('COURRIER', 'notes_restriction');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'adv_search_mlb');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'index_mlb');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'search_contacts');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'my_contacts');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'my_contacts_menu');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'update_contacts');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'add_links');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'print_details');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'print_doc_details_from_list');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'update_case');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'join_res_case');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'join_res_case_in_process');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'close_case');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'add_cases');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'view_baskets');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'view_folder_tree');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'create_folder');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'associate_folder');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'add_copy_in_process');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'add_copy_in_indexing_validation');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'update_list_diff_in_details');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'sendmail');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'use_mail_services');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'edit_attachments_from_detail');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'modify_attachments');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'delete_attachments');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'config_visa_workflow');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'config_visa_workflow_in_detail');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'print_folder_doc');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'config_avis_workflow');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'config_avis_workflow_in_detail');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'add_tag_to_res');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'delete_tag_to_res');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'tag_view');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'put_doc_in_fileplan');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'fileplan');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'manage_notes_doc');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'notes_restriction');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'thesaurus_view');
-Insert into usergroups_services (group_id, service_id) Values ('AGENT', 'add_thesaurus_to_res');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'admin');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'adv_search_mlb');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'index_mlb');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'search_contacts');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'my_contacts');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'my_contacts_menu');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'update_contacts');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'add_links');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'print_details');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'print_doc_details_from_list');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'update_case');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'join_res_case');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'join_res_case_in_process');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'close_case');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'add_cases');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'view_baskets');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'view_folder_tree');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'create_folder');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'associate_folder');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'add_copy_in_process');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'add_copy_in_indexing_validation');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'update_list_diff_in_details');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'sendmail');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'use_mail_services');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'reports');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'print_folder_doc');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'add_tag_to_res');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'delete_tag_to_res');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'tag_view');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'put_doc_in_fileplan');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'fileplan');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'manage_notes_doc');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'notes_restriction');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'thesaurus_view');
-Insert into usergroups_services (group_id, service_id) Values ('RESP_COURRIER', 'add_thesaurus_to_res');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'adv_search_mlb');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'index_mlb');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'search_contacts');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'my_contacts');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'my_contacts_menu');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'update_contacts');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'view_doc_history');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'add_links');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'print_details');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'print_doc_details_from_list');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'update_case');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'join_res_case');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'join_res_case_in_process');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'close_case');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'add_cases');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'view_baskets');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'view_folder_tree');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'create_folder');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'associate_folder');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'add_copy_in_process');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'add_copy_in_indexing_validation');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'update_list_diff_in_details');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'sendmail');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'use_mail_services');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'reports');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'edit_attachments_from_detail');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'modify_attachments');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'delete_attachments');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'config_visa_workflow');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'config_visa_workflow_in_detail');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'sign_document');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'visa_documents');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'print_folder_doc');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'config_avis_workflow');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'config_avis_workflow_in_detail');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'avis_documents');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'add_tag_to_res');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'delete_tag_to_res');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'tag_view');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'put_doc_in_fileplan');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'fileplan');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'manage_notes_doc');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'notes_restriction');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'thesaurus_view');
-Insert into usergroups_services (group_id, service_id) Values ('RESPONSABLE', 'add_thesaurus_to_res');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'admin');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'adv_search_mlb');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'index_mlb');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'search_contacts');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'admin_users');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'admin_groups');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'admin_architecture');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'view_history');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'view_history_batch');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'admin_status');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'admin_actions');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'admin_contacts');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'my_contacts');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'my_contacts_menu');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'create_contacts');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'update_contacts');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'reopen_mail');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'admin_docservers');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'view_technical_infos');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'view_doc_history');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'put_in_validation');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'add_links');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'admin_parameters');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'admin_priorities');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'print_details');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'print_doc_details_from_list');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'update_case');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'join_res_case');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'join_res_case_in_process');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'close_case');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'add_cases');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'admin_baskets');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'view_baskets');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'view_folder_tree');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'create_folder');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'associate_folder');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'folder_search');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'close_folder');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'modify_folder');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'folder_freeze');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'delete_folder');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'admin_foldertypes');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'manage_entities');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'admin_difflist_types');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'admin_listmodels');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'add_copy_in_process');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'add_copy_in_indexing_validation');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'update_list_diff_in_details');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'entities_print_sep_mlb');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'sendmail');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'use_mail_services');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'reports');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'admin_reports');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'edit_attachments_from_detail');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'modify_attachments');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'delete_attachments');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'add_new_version');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'config_visa_workflow');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'config_visa_workflow_in_detail');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'sign_document');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'visa_documents');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'print_folder_doc');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'config_avis_workflow');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'admin_templates');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'admin_tag');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'add_tag_to_res');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'create_tag');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'delete_tag_to_res');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'tag_view');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'admin_notif');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', '_print_sep');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'physical_archive_print_sep_mlb');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'physical_archive_batch_manage');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'physical_archive_batch_read');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'physical_archive');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'physical_archive_box_read');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'physical_archive_box_manage');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'admin_fileplan');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'put_doc_in_fileplan');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'fileplan');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'manage_notes_doc');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'notes_restriction');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'admin_thesaurus');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'thesaurus_view');
-Insert into usergroups_services (group_id, service_id) Values ('ADMINISTRATEUR', 'add_thesaurus_to_res');
-Insert into usergroups_services (group_id, service_id) Values ('ELU', 'adv_search_mlb');
-Insert into usergroups_services (group_id, service_id) Values ('ELU', 'search_contacts');
-Insert into usergroups_services (group_id, service_id) Values ('ELU', 'update_contacts');
-Insert into usergroups_services (group_id, service_id) Values ('ELU', 'view_baskets');
-Insert into usergroups_services (group_id, service_id) Values ('ELU', 'view_folder_tree');
-Insert into usergroups_services (group_id, service_id) Values ('ELU', 'sendmail');
-Insert into usergroups_services (group_id, service_id) Values ('ELU', 'use_mail_services');
-Insert into usergroups_services (group_id, service_id) Values ('ELU', 'config_visa_workflow_in_detail');
-Insert into usergroups_services (group_id, service_id) Values ('ELU', 'sign_document');
-Insert into usergroups_services (group_id, service_id) Values ('ELU', 'visa_documents');
-Insert into usergroups_services (group_id, service_id) Values ('ELU', 'print_folder_doc');
-Insert into usergroups_services (group_id, service_id) Values ('ELU', 'avis_documents');
-Insert into usergroups_services (group_id, service_id) Values ('ELU', 'tag_view');
-Insert into usergroups_services (group_id, service_id) Values ('ELU', 'manage_notes_doc');
-Insert into usergroups_services (group_id, service_id) Values ('ELU', 'notes_restriction');
+TRUNCATE TABLE usergroups;
+TRUNCATE TABLE usergroups_services;
+DELETE FROM usergroups WHERE group_id = 'COURRIER';
+DELETE FROM usergroups_services WHERE group_id = 'COURRIER';
+INSERT INTO usergroups VALUES ('COURRIER', 'Opérateur de scan', 'N', 'N', 'N', 'N', 'N', 'Y');
+DELETE FROM usergroups WHERE group_id = 'AGENT';
+DELETE FROM usergroups_services WHERE group_id = 'AGENT';
+INSERT INTO usergroups VALUES ('AGENT', 'Utilisateur', 'N', 'N', 'N', 'N', 'N', 'Y');
+DELETE FROM usergroups WHERE group_id = 'RESP_COURRIER';
+DELETE FROM usergroups_services WHERE group_id = 'RESP_COURRIER';
+INSERT INTO usergroups VALUES ('RESP_COURRIER', 'Responsable Courrier', 'N', 'N', 'N', 'N', 'N', 'Y');
+DELETE FROM usergroups WHERE group_id = 'RESPONSABLE';
+DELETE FROM usergroups_services WHERE group_id = 'RESPONSABLE';
+INSERT INTO usergroups VALUES ('RESPONSABLE', 'Manager', 'N', 'N', 'N', 'N', 'N', 'Y');
+DELETE FROM usergroups WHERE group_id = 'ADMINISTRATEUR';
+DELETE FROM usergroups_services WHERE group_id = 'ADMINISTRATEUR';
+INSERT INTO usergroups VALUES ('ADMINISTRATEUR', 'Admin. fonctionnel', 'N', 'N', 'N', 'N', 'N', 'Y');
+DELETE FROM usergroups WHERE group_id = 'DIRECTEUR';
+DELETE FROM usergroups_services WHERE group_id = 'DIRECTEUR';
+INSERT INTO usergroups VALUES ('DIRECTEUR', 'Directeur', 'N', 'N', 'N', 'N', 'N', 'Y');
+DELETE FROM usergroups WHERE group_id = 'ELU';
+DELETE FROM usergroups_services WHERE group_id = 'ELU';
+INSERT INTO usergroups VALUES ('ELU', 'Elu', 'N', 'N', 'N', 'N', 'N', 'Y');
+DELETE FROM usergroups WHERE group_id = 'ARCHIVISTE';
+DELETE FROM usergroups_services WHERE group_id = 'ARCHIVISTE';
+INSERT INTO usergroups VALUES ('ARCHIVISTE', 'Archiviste', 'N', 'N', 'N', 'N', 'N', 'Y');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'admin');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'adv_search_mlb');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'index_mlb');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'search_contacts');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'my_contacts');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'my_contacts_menu');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'create_contacts');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'update_contacts');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'reopen_mail');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'view_technical_infos');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'view_doc_history');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'view_full_history');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'add_links');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'print_details');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'print_doc_details_from_list');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'update_case');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'join_res_case');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'join_res_case_in_process');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'close_case');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'add_cases');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'view_baskets');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'view_folder_tree');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'associate_folder');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'folder_search');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'close_folder');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'modify_folder');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'folder_freeze');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'delete_folder');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'add_copy_in_process');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'add_copy_in_indexing_validation');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'update_list_diff_in_details');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'entities_print_sep_mlb');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'sendmail');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'use_mail_services');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'reports');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'edit_attachments_from_detail');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'modify_attachments');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'delete_attachments');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'add_new_version');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'view_version_letterbox');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'print_folder_doc');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'add_tag_to_res');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'create_tag');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'private_tag');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'tag_view');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', '_print_sep');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'physical_archive_print_sep_mlb');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'physical_archive');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'admin_fileplan');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'put_doc_in_fileplan');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'fileplan');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('COURRIER', 'notes_restriction');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'adv_search_mlb');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'index_mlb');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'search_contacts');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'my_contacts');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'my_contacts_menu');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'update_contacts');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'view_doc_history');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'add_links');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'print_details');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'print_doc_details_from_list');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'update_case');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'join_res_case');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'join_res_case_in_process');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'close_case');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'add_cases');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'view_baskets');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'view_folder_tree');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'create_folder');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'associate_folder');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'add_copy_in_process');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'add_copy_in_indexing_validation');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'update_list_diff_in_details');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'sendmail');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'use_mail_services');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'edit_attachments_from_detail');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'modify_attachments');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'delete_attachments');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'add_new_version');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'view_version_letterbox');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'config_visa_workflow');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'config_visa_workflow_in_detail');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'print_folder_doc');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'config_avis_workflow');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'config_avis_workflow_in_detail');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'add_tag_to_res');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'private_tag');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'tag_view');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'put_doc_in_fileplan');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'fileplan');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'notes_restriction');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'thesaurus_view');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('AGENT', 'add_thesaurus_to_res');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'admin');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'adv_search_mlb');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'index_mlb');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'search_contacts');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'my_contacts');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'my_contacts_menu');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'update_contacts');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'view_doc_history');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'view_full_history');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'add_links');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'print_details');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'print_doc_details_from_list');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'update_case');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'join_res_case');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'join_res_case_in_process');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'close_case');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'add_cases');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'view_baskets');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'view_folder_tree');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'create_folder');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'associate_folder');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'add_copy_in_process');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'add_copy_in_indexing_validation');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'update_list_diff_in_details');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'sendmail');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'use_mail_services');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'reports');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'add_new_version');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'view_version_letterbox');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'print_folder_doc');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'add_tag_to_res');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'private_tag');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'tag_view');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'put_doc_in_fileplan');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'fileplan');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'notes_restriction');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'thesaurus_view');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESP_COURRIER', 'add_thesaurus_to_res');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'adv_search_mlb');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'index_mlb');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'search_contacts');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'my_contacts');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'my_contacts_menu');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'update_contacts');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'view_doc_history');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'add_links');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'print_details');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'print_doc_details_from_list');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'update_case');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'join_res_case');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'join_res_case_in_process');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'close_case');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'add_cases');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'view_baskets');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'view_folder_tree');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'create_folder');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'associate_folder');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'add_copy_in_process');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'add_copy_in_indexing_validation');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'update_list_diff_in_details');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'sendmail');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'use_mail_services');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'reports');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'edit_attachments_from_detail');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'modify_attachments');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'delete_attachments');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'add_new_version');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'view_version_letterbox');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'config_visa_workflow');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'config_visa_workflow_in_detail');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'sign_document');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'visa_documents');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'modify_visa_in_signatureBook');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'print_folder_doc');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'config_avis_workflow');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'config_avis_workflow_in_detail');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'avis_documents');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'add_tag_to_res');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'private_tag');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'tag_view');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'put_doc_in_fileplan');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'fileplan');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'notes_restriction');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'thesaurus_view');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('RESPONSABLE', 'add_thesaurus_to_res');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'admin');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'adv_search_mlb');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'index_mlb');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'search_contacts');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'admin_users');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'admin_groups');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'admin_architecture');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'view_history');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'view_history_batch');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'admin_status');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'admin_actions');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'admin_contacts');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'my_contacts');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'my_contacts_menu');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'create_contacts');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'update_contacts');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'reopen_mail');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'admin_docservers');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'view_technical_infos');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'view_doc_history');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'view_full_history');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'add_links');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'admin_parameters');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'admin_priorities');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'print_details');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'print_doc_details_from_list');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'update_case');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'join_res_case');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'join_res_case_in_process');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'close_case');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'add_cases');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'admin_baskets');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'view_baskets');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'view_folder_tree');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'create_folder');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'associate_folder');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'folder_search');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'close_folder');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'modify_folder');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'folder_freeze');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'delete_folder');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'admin_foldertypes');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'manage_entities');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'admin_difflist_types');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'admin_listmodels');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'add_copy_in_process');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'add_copy_in_indexing_validation');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'update_list_diff_in_details');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'entities_print_sep_mlb');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'sendmail');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'use_mail_services');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'reports');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'admin_reports');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'graphics_reports');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'edit_attachments_from_detail');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'modify_attachments');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'delete_attachments');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'add_new_version');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'view_version_letterbox');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'config_visa_workflow');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'config_visa_workflow_in_detail');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'sign_document');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'visa_documents');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'modify_visa_in_signatureBook');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'print_folder_doc');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'config_avis_workflow');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'admin_templates');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'admin_tag');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'add_tag_to_res');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'create_tag');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'private_tag');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'tag_view');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'admin_notif');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', '_print_sep');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'physical_archive_print_sep_mlb');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'physical_archive_batch_manage');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'physical_archive_batch_read');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'physical_archive');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'physical_archive_box_read');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'physical_archive_box_manage');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'admin_fileplan');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'put_doc_in_fileplan');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'fileplan');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'admin_life_cycle');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'notes_restriction');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'admin_thesaurus');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'thesaurus_view');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ADMINISTRATEUR', 'add_thesaurus_to_res');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('DIRECTEUR', 'view_doc_history');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ELU', 'adv_search_mlb');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ELU', 'search_contacts');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ELU', 'update_contacts');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ELU', 'view_baskets');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ELU', 'view_folder_tree');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ELU', 'sendmail');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ELU', 'use_mail_services');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ELU', 'add_new_version');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ELU', 'view_version_letterbox');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ELU', 'config_visa_workflow_in_detail');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ELU', 'sign_document');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ELU', 'visa_documents');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ELU', 'modify_visa_in_signatureBook');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ELU', 'print_folder_doc');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ELU', 'avis_documents');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ELU', 'tag_view');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ELU', 'notes_restriction');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ARCHIVISTE', 'adv_search_mlb');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ARCHIVISTE', 'create_contacts');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ARCHIVISTE', 'view_technical_infos');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ARCHIVISTE', 'view_doc_history');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ARCHIVISTE', 'view_full_history');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ARCHIVISTE', 'view_baskets');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ARCHIVISTE', 'sendmail');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ARCHIVISTE', 'avis_documents');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ARCHIVISTE', 'tag_view');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ARCHIVISTE', 'put_doc_in_fileplan');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ARCHIVISTE', 'fileplan');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ARCHIVISTE', 'export_seda_view');
+INSERT INTO usergroups_services (group_id, service_id) VALUES ('ARCHIVISTE', 'add_thesaurus_to_res');
 
 -- Create DOCTYPES
 TRUNCATE TABLE DOCTYPES_FIRST_LEVEL;
@@ -520,218 +564,415 @@ select setval('doctypes_second_level_id_seq', (select max(doctypes_second_level_
 select setval('doctypes_type_id_seq', (select max(type_id)+1 from doctypes), false);
 
 -- Create USERS
-DELETE FROM USERS WHERE USER_ID <> 'superadmin';
-TRUNCATE TABLE USERS_ENTITIES;
-Insert into USERS (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) Values ('rrenaud', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Robert', 'RENAUD', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
+DELETE FROM users WHERE user_id <> 'superadmin';
+TRUNCATE TABLE users_entities;
+DELETE FROM users WHERE user_id = 'rrenaud';
+DELETE FROM users_entities WHERE user_id = 'rrenaud';
+INSERT INTO users (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) VALUES ('rrenaud', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Robert', 'RENAUD', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
 INSERT INTO users_entities (user_id, entity_id, user_role, primary_entity) VALUES ('rrenaud', 'DGS', '', 'Y');
-Insert into USERS (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) Values ('ccordy', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Chloé', 'CORDY', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
+DELETE FROM users WHERE user_id = 'ccordy';
+DELETE FROM users_entities WHERE user_id = 'ccordy';
+INSERT INTO users (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) VALUES ('ccordy', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Chloé', 'CORDY', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
 INSERT INTO users_entities (user_id, entity_id, user_role, primary_entity) VALUES ('ccordy', 'DSI', '', 'Y');
-Insert into USERS (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) Values ('ssissoko', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Sylvain', 'SISSOKO', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
+DELETE FROM users WHERE user_id = 'ssissoko';
+DELETE FROM users_entities WHERE user_id = 'ssissoko';
+INSERT INTO users (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) VALUES ('ssissoko', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Sylvain', 'SISSOKO', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
 INSERT INTO users_entities (user_id, entity_id, user_role, primary_entity) VALUES ('ssissoko', 'DSI', '', 'Y');
-Insert into USERS (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) Values ('nnataly', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Nancy', 'NATALY', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
+DELETE FROM users WHERE user_id = 'nnataly';
+DELETE FROM users_entities WHERE user_id = 'nnataly';
+INSERT INTO users (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) VALUES ('nnataly', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Nancy', 'NATALY', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
 INSERT INTO users_entities (user_id, entity_id, user_role, primary_entity) VALUES ('nnataly', 'PSO', '', 'Y');
-Insert into USERS (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) Values ('ddur', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Dominique', 'DUR', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
+DELETE FROM users WHERE user_id = 'ddur';
+DELETE FROM users_entities WHERE user_id = 'ddur';
+INSERT INTO users (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) VALUES ('ddur', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Dominique', 'DUR', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
 INSERT INTO users_entities (user_id, entity_id, user_role, primary_entity) VALUES ('ddur', 'ELUS', '', 'Y');
-Insert into USERS (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) Values ('jjane', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Jenny', 'JANE', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
-INSERT INTO users_entities (user_id, entity_id, user_role, primary_entity) VALUES ('jjane', 'ELUS', '', 'Y');
-Insert into USERS (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) Values ('eerina', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Edith', 'ERINA', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
+DELETE FROM users WHERE user_id = 'jjane';
+DELETE FROM users_entities WHERE user_id = 'jjane';
+INSERT INTO users (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) VALUES ('jjane', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Jenny', 'JANE', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
+INSERT INTO users_entities (user_id, entity_id, user_role, primary_entity) VALUES ('jjane', 'CCAS', '', 'Y');
+DELETE FROM users WHERE user_id = 'eerina';
+DELETE FROM users_entities WHERE user_id = 'eerina';
+INSERT INTO users (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) VALUES ('eerina', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Edith', 'ERINA', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
 INSERT INTO users_entities (user_id, entity_id, user_role, primary_entity) VALUES ('eerina', 'CAB', '', 'Y');
-Insert into USERS (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) Values ('kkaar', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Katy', 'KAAR', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
+DELETE FROM users WHERE user_id = 'kkaar';
+DELETE FROM users_entities WHERE user_id = 'kkaar';
+INSERT INTO users (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) VALUES ('kkaar', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Katy', 'KAAR', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
 INSERT INTO users_entities (user_id, entity_id, user_role, primary_entity) VALUES ('kkaar', 'DGA', '', 'Y');
-Insert into USERS (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) Values ('bboule', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Bruno', 'BOULE', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
+DELETE FROM users WHERE user_id = 'bboule';
+DELETE FROM users_entities WHERE user_id = 'bboule';
+INSERT INTO users (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) VALUES ('bboule', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Bruno', 'BOULE', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
 INSERT INTO users_entities (user_id, entity_id, user_role, primary_entity) VALUES ('bboule', 'PCU', '', 'Y');
-Insert into USERS (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) Values ('ppetit', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Patricia', 'PETIT', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
+DELETE FROM users WHERE user_id = 'ppetit';
+DELETE FROM users_entities WHERE user_id = 'ppetit';
+INSERT INTO users (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) VALUES ('ppetit', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Patricia', 'PETIT', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
 INSERT INTO users_entities (user_id, entity_id, user_role, primary_entity) VALUES ('ppetit', 'VILLE', '', 'Y');
-Insert into USERS (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) Values ('aackermann', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Amanda', 'ACKERMANN', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
+DELETE FROM users WHERE user_id = 'aackermann';
+DELETE FROM users_entities WHERE user_id = 'aackermann';
+INSERT INTO users (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) VALUES ('aackermann', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Amanda', 'ACKERMANN', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
 INSERT INTO users_entities (user_id, entity_id, user_role, primary_entity) VALUES ('aackermann', 'PSF', '', 'Y');
-Insert into USERS (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) Values ('ppruvost', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Pierre', 'PRUVOST', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
+DELETE FROM users WHERE user_id = 'ppruvost';
+DELETE FROM users_entities WHERE user_id = 'ppruvost';
+INSERT INTO users (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) VALUES ('ppruvost', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Pierre', 'PRUVOST', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
 INSERT INTO users_entities (user_id, entity_id, user_role, primary_entity) VALUES ('ppruvost', 'DRH', '', 'Y');
-Insert into USERS (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) Values ('ttong', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Tony', 'TONG', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
+DELETE FROM users WHERE user_id = 'ttong';
+DELETE FROM users_entities WHERE user_id = 'ttong';
+INSERT INTO users (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) VALUES ('ttong', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Tony', 'TONG', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
 INSERT INTO users_entities (user_id, entity_id, user_role, primary_entity) VALUES ('ttong', 'SP', '', 'Y');
-Insert into USERS (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) Values ('sstar', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Suzanne', 'STAR', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
+DELETE FROM users WHERE user_id = 'sstar';
+DELETE FROM users_entities WHERE user_id = 'sstar';
+INSERT INTO users (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) VALUES ('sstar', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Suzanne', 'STAR', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
 INSERT INTO users_entities (user_id, entity_id, user_role, primary_entity) VALUES ('sstar', 'FIN', '', 'Y');
-Insert into USERS (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) Values ('ssaporta', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Sabrina', 'SAPORTA', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
+DELETE FROM users WHERE user_id = 'ssaporta';
+DELETE FROM users_entities WHERE user_id = 'ssaporta';
+INSERT INTO users (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) VALUES ('ssaporta', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Sabrina', 'SAPORTA', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
 INSERT INTO users_entities (user_id, entity_id, user_role, primary_entity) VALUES ('ssaporta', 'PE', '', 'Y');
-Insert into USERS (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) Values ('ccharles', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Charlotte', 'CHARLES', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
+DELETE FROM users WHERE user_id = 'ccharles';
+DELETE FROM users_entities WHERE user_id = 'ccharles';
+INSERT INTO users (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) VALUES ('ccharles', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Charlotte', 'CHARLES', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
 INSERT INTO users_entities (user_id, entity_id, user_role, primary_entity) VALUES ('ccharles', 'PTE', '', 'Y');
-Insert into USERS (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) Values ('mmanfred', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Martin', 'MANFRED', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
+DELETE FROM users WHERE user_id = 'mmanfred';
+DELETE FROM users_entities WHERE user_id = 'mmanfred';
+INSERT INTO users (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) VALUES ('mmanfred', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Martin', 'MANFRED', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
 INSERT INTO users_entities (user_id, entity_id, user_role, primary_entity) VALUES ('mmanfred', 'DGA', '', 'Y');
-Insert into USERS (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) Values ('ddaull', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Denis', 'DAULL', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
+DELETE FROM users WHERE user_id = 'ddaull';
+DELETE FROM users_entities WHERE user_id = 'ddaull';
+INSERT INTO users (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) VALUES ('ddaull', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Denis', 'DAULL', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
 INSERT INTO users_entities (user_id, entity_id, user_role, primary_entity) VALUES ('ddaull', 'DSG', '', 'Y');
-Insert into USERS (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) Values ('bbain', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Barbara', 'BAIN', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
+DELETE FROM users WHERE user_id = 'bbain';
+DELETE FROM users_entities WHERE user_id = 'bbain';
+INSERT INTO users (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) VALUES ('bbain', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Barbara', 'BAIN', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
 INSERT INTO users_entities (user_id, entity_id, user_role, primary_entity) VALUES ('bbain', 'PJS', '', 'Y');
-Insert into USERS (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) Values ('jjonasz', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Jean', 'JONASZ', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
+DELETE FROM users WHERE user_id = 'jjonasz';
+DELETE FROM users_entities WHERE user_id = 'jjonasz';
+INSERT INTO users (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) VALUES ('jjonasz', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Jean', 'JONASZ', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
 INSERT INTO users_entities (user_id, entity_id, user_role, primary_entity) VALUES ('jjonasz', 'PJU', '', 'Y');
-Insert into USERS (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) Values ('bblier', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Bernard', 'BLIER', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
+DELETE FROM users WHERE user_id = 'bblier';
+DELETE FROM users_entities WHERE user_id = 'bblier';
+INSERT INTO users (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) VALUES ('bblier', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Bernard', 'BLIER', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
 INSERT INTO users_entities (user_id, entity_id, user_role, primary_entity) VALUES ('bblier', 'COU', '', 'Y');
+DELETE FROM users WHERE user_id = 'ggrand';
+DELETE FROM users_entities WHERE user_id = 'ggrand';
+INSERT INTO users (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) VALUES ('ggrand', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Georges', 'GRAND', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
+INSERT INTO users_entities (user_id, entity_id, user_role, primary_entity) VALUES ('ggrand', 'COR', '', 'Y');
 
 -- Create USERGROUP_CONTENT
-TRUNCATE TABLE USERGROUP_CONTENT;
-Insert into usergroup_content (user_id, group_id, primary_group, role) Values ('rrenaud', 'RESPONSABLE', 'Y','');
-Insert into usergroup_content (user_id, group_id, primary_group, role) Values ('ccordy', 'AGENT', 'Y','');
-Insert into usergroup_content (user_id, group_id, primary_group, role) Values ('ssissoko', 'RESPONSABLE', 'Y','');
-Insert into usergroup_content (user_id, group_id, primary_group, role) Values ('nnataly', 'AGENT', 'Y','');
-Insert into usergroup_content (user_id, group_id, primary_group, role) Values ('ddur', 'ELU', 'Y','');
-Insert into usergroup_content (user_id, group_id, primary_group, role) Values ('jjane', 'ELU', 'Y','');
-Insert into usergroup_content (user_id, group_id, primary_group, role) Values ('eerina', 'AGENT', 'Y','');
-Insert into usergroup_content (user_id, group_id, primary_group, role) Values ('kkaar', 'AGENT', 'Y','');
-Insert into usergroup_content (user_id, group_id, primary_group, role) Values ('bboule', 'AGENT', 'Y','');
-Insert into usergroup_content (user_id, group_id, primary_group, role) Values ('ppetit', 'RESPONSABLE', 'Y','');
-Insert into usergroup_content (user_id, group_id, primary_group, role) Values ('aackermann', 'AGENT', 'Y','');
-Insert into usergroup_content (user_id, group_id, primary_group, role) Values ('ppruvost', 'AGENT', 'Y','');
-Insert into usergroup_content (user_id, group_id, primary_group, role) Values ('ttong', 'AGENT', 'Y','');
-Insert into usergroup_content (user_id, group_id, primary_group, role) Values ('sstar', 'RESPONSABLE', 'Y','');
-Insert into usergroup_content (user_id, group_id, primary_group, role) Values ('ssaporta', 'AGENT', 'Y','');
-Insert into usergroup_content (user_id, group_id, primary_group, role) Values ('ccharles', 'AGENT', 'Y','');
-Insert into usergroup_content (user_id, group_id, primary_group, role) Values ('mmanfred', 'RESPONSABLE', 'Y','');
-Insert into usergroup_content (user_id, group_id, primary_group, role) Values ('ddaull', 'RESP_COURRIER', 'Y','');
-Insert into usergroup_content (user_id, group_id, primary_group, role) Values ('ddaull', 'RESPONSABLE', 'N','');
-Insert into usergroup_content (user_id, group_id, primary_group, role) Values ('bbain', 'AGENT', 'Y','');
-Insert into usergroup_content (user_id, group_id, primary_group, role) Values ('jjonasz', 'AGENT', 'Y','');
-Insert into usergroup_content (user_id, group_id, primary_group, role) Values ('bblier', 'COURRIER', 'Y','');
+TRUNCATE TABLE usergroup_content;
+DELETE FROM usergroup_content WHERE user_id = 'rrenaud';
+INSERT INTO usergroup_content (user_id, group_id, primary_group, role) VALUES ('rrenaud', 'RESPONSABLE', 'Y','');
+INSERT INTO usergroup_content (user_id, group_id, primary_group, role) VALUES ('rrenaud', 'DIRECTEUR', 'N','');
+DELETE FROM usergroup_content WHERE user_id = 'ccordy';
+INSERT INTO usergroup_content (user_id, group_id, primary_group, role) VALUES ('ccordy', 'AGENT', 'Y','');
+DELETE FROM usergroup_content WHERE user_id = 'ssissoko';
+INSERT INTO usergroup_content (user_id, group_id, primary_group, role) VALUES ('ssissoko', 'RESPONSABLE', 'Y','');
+DELETE FROM usergroup_content WHERE user_id = 'nnataly';
+INSERT INTO usergroup_content (user_id, group_id, primary_group, role) VALUES ('nnataly', 'AGENT', 'Y','');
+DELETE FROM usergroup_content WHERE user_id = 'ddur';
+INSERT INTO usergroup_content (user_id, group_id, primary_group, role) VALUES ('ddur', 'ELU', 'Y','');
+DELETE FROM usergroup_content WHERE user_id = 'jjane';
+INSERT INTO usergroup_content (user_id, group_id, primary_group, role) VALUES ('jjane', 'RESPONSABLE', 'Y','');
+DELETE FROM usergroup_content WHERE user_id = 'eerina';
+INSERT INTO usergroup_content (user_id, group_id, primary_group, role) VALUES ('eerina', 'RESPONSABLE', 'Y','');
+INSERT INTO usergroup_content (user_id, group_id, primary_group, role) VALUES ('eerina', 'DIRECTEUR', 'N','');
+DELETE FROM usergroup_content WHERE user_id = 'kkaar';
+INSERT INTO usergroup_content (user_id, group_id, primary_group, role) VALUES ('kkaar', 'AGENT', 'Y','');
+DELETE FROM usergroup_content WHERE user_id = 'bboule';
+INSERT INTO usergroup_content (user_id, group_id, primary_group, role) VALUES ('bboule', 'AGENT', 'Y','');
+DELETE FROM usergroup_content WHERE user_id = 'ppetit';
+INSERT INTO usergroup_content (user_id, group_id, primary_group, role) VALUES ('ppetit', 'RESPONSABLE', 'Y','');
+DELETE FROM usergroup_content WHERE user_id = 'aackermann';
+INSERT INTO usergroup_content (user_id, group_id, primary_group, role) VALUES ('aackermann', 'AGENT', 'Y','');
+DELETE FROM usergroup_content WHERE user_id = 'ppruvost';
+INSERT INTO usergroup_content (user_id, group_id, primary_group, role) VALUES ('ppruvost', 'AGENT', 'Y','');
+DELETE FROM usergroup_content WHERE user_id = 'ttong';
+INSERT INTO usergroup_content (user_id, group_id, primary_group, role) VALUES ('ttong', 'AGENT', 'Y','');
+DELETE FROM usergroup_content WHERE user_id = 'sstar';
+INSERT INTO usergroup_content (user_id, group_id, primary_group, role) VALUES ('sstar', 'RESPONSABLE', 'Y','');
+DELETE FROM usergroup_content WHERE user_id = 'ssaporta';
+INSERT INTO usergroup_content (user_id, group_id, primary_group, role) VALUES ('ssaporta', 'AGENT', 'Y','');
+DELETE FROM usergroup_content WHERE user_id = 'ccharles';
+INSERT INTO usergroup_content (user_id, group_id, primary_group, role) VALUES ('ccharles', 'AGENT', 'Y','');
+DELETE FROM usergroup_content WHERE user_id = 'mmanfred';
+INSERT INTO usergroup_content (user_id, group_id, primary_group, role) VALUES ('mmanfred', 'RESPONSABLE', 'Y','');
+DELETE FROM usergroup_content WHERE user_id = 'ddaull';
+INSERT INTO usergroup_content (user_id, group_id, primary_group, role) VALUES ('ddaull', 'RESP_COURRIER', 'Y','');
+INSERT INTO usergroup_content (user_id, group_id, primary_group, role) VALUES ('ddaull', 'RESPONSABLE', 'N','');
+DELETE FROM usergroup_content WHERE user_id = 'bbain';
+INSERT INTO usergroup_content (user_id, group_id, primary_group, role) VALUES ('bbain', 'AGENT', 'Y','');
+DELETE FROM usergroup_content WHERE user_id = 'jjonasz';
+INSERT INTO usergroup_content (user_id, group_id, primary_group, role) VALUES ('jjonasz', 'AGENT', 'Y','');
+DELETE FROM usergroup_content WHERE user_id = 'bblier';
+INSERT INTO usergroup_content (user_id, group_id, primary_group, role) VALUES ('bblier', 'COURRIER', 'Y','');
+INSERT INTO usergroup_content (user_id, group_id, primary_group, role) VALUES ('bblier', 'ADMINISTRATEUR', 'N','');
+DELETE FROM usergroup_content WHERE user_id = 'ggrand';
+INSERT INTO usergroup_content (user_id, group_id, primary_group, role) VALUES ('ggrand', 'ARCHIVISTE', 'Y','');
 
 -- Create ENTITIES and LISTMODELS
-TRUNCATE TABLE ENTITIES;
-TRUNCATE TABLE LISTMODELS;
-Insert into entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) Values ('VILLE', 'Ville de Maarch-les-bains', 'Ville de Maarch-les-bains', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', '', 'Direction');
+TRUNCATE TABLE entities;
+TRUNCATE TABLE listmodels;
+DELETE FROM entities WHERE entity_id = 'VILLE';
+INSERT INTO entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) VALUES ('VILLE', 'Ville de Maarch-les-bains', 'Ville de Maarch-les-bains', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', '', 'Direction');
+DELETE FROM listmodels WHERE object_id = 'VILLE' AND object_type = 'entity_id';
 INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'VILLE', 'entity_id', 0, '', 'user_id', 'dest', 'DOC', 'Ville de Maarch-les-bains');
-Insert into entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) Values ('CAB', 'CAB:Cabinet du Maire', 'CAB:Cabinet du Maire', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'VILLE', 'Direction');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'CAB', 'entity_id', 0, 'eerina', 'user_id', 'dest', 'DOC', 'CAB:Cabinet du Maire');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'CAB', 'entity_id', 0, 'DSG', 'entity_id', 'cc', 'DOC', 'CAB:Cabinet du Maire');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'CAB', 'entity_id', 0, 'ppetit', 'user_id', 'cc', 'DOC', 'CAB:Cabinet du Maire');
-Insert into entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) Values ('DGS', 'DGS:Direction Générale des Services', 'DGS:Direction Générale des Services', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'VILLE', 'Direction');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'DGS', 'entity_id', 0, 'rrenaud', 'user_id', 'dest', 'DOC', 'DGS:Direction Générale des Services');
-Insert into entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) Values ('DGA', 'DGSDGA:Direction Générale Adjointe', 'DGSDGA:Direction Générale Adjointe', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'DGS', 'Bureau');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'DGA', 'entity_id', 0, 'mmanfred', 'user_id', 'dest', 'DOC', 'DGSDGA:Direction Générale Adjointe');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'DGA', 'entity_id', 0, 'DSG', 'entity_id', 'cc', 'DOC', 'DGSDGA:Direction Générale Adjointe');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'DGA', 'entity_id', 0, 'kkaar', 'user_id', 'cc', 'DOC', 'DGSDGA:Direction Générale Adjointe');
-Insert into entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) Values ('PCU', 'DGSDGAPCU:Pôle Culturel', 'DGSDGAPCU:Pôle Culturel', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'DGA', 'Service');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'PCU', 'entity_id', 0, 'bboule', 'user_id', 'dest', 'DOC', 'DGSDGAPCU:Pôle Culturel');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'PCU', 'entity_id', 0, 'DSG', 'entity_id', 'cc', 'DOC', 'DGSDGAPCU:Pôle Culturel');
-Insert into entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) Values ('PJS', 'DGSDGAPJS:Pôle Jeunesse et Sport', 'DGSDGAPJS:Pôle Jeunesse et Sport', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'DGA', 'Service');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'PJS', 'entity_id', 0, 'bbain', 'user_id', 'dest', 'DOC', 'DGSDGAPJS:Pôle Jeunesse et Sport');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'PJS', 'entity_id', 0, 'DSG', 'entity_id', 'cc', 'DOC', 'DGSDGAPJS:Pôle Jeunesse et Sport');
-Insert into entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) Values ('PE', 'DGSDGAPJSPE:Petite enfance', 'DGSDGAPJSPE:Petite enfance', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'DGA', 'Service');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'PE', 'entity_id', 0, 'ssaporta', 'user_id', 'dest', 'DOC', 'DGSDGAPJSPE:Petite enfance');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'PE', 'entity_id', 0, 'DSG', 'entity_id', 'cc', 'DOC', 'DGSDGAPJSPE:Petite enfance');
-Insert into entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) Values ('SP', 'DGSDGAPJSSP:Sport', 'DGSDGAPJSSP:Sport', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'DGA', 'Service');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'SP', 'entity_id', 0, 'ttong', 'user_id', 'dest', 'DOC', 'DGSDGAPJSSP:Sport');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'SP', 'entity_id', 0, 'DSG', 'entity_id', 'cc', 'DOC', 'DGSDGAPJSSP:Sport');
-Insert into entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) Values ('PSO', 'DGSDGAPSO:Pôle Social', 'DGSDGAPSO:Pôle Social', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'DGA', 'Service');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'PSO', 'entity_id', 0, 'nnataly', 'user_id', 'dest', 'DOC', 'DGSDGAPSO:Pôle Social');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'PSO', 'entity_id', 0, 'DSG', 'entity_id', 'cc', 'DOC', 'DGSDGAPSO:Pôle Social');
-Insert into entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) Values ('PTE', 'DGSPAAPTE:Pôle Technique', 'DGSPAAPTE:Pôle Technique', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'DGA', 'Service');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'PTE', 'entity_id', 0, 'ccharles', 'user_id', 'dest', 'DOC', 'DGSPAAPTE:Pôle Technique');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'PTE', 'entity_id', 0, 'DSG', 'entity_id', 'cc', 'DOC', 'DGSPAAPTE:Pôle Technique');
-Insert into entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) Values ('DRH', 'DGSDRH:Direction des Ressources Humaines', 'DGSDRH:Direction des Ressources Humaines', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'DGS', 'Service');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'DRH', 'entity_id', 0, 'ppruvost', 'user_id', 'dest', 'DOC', 'DGSDRH:Direction des Ressources Humaines');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'DRH', 'entity_id', 0, 'DSG', 'entity_id', 'cc', 'DOC', 'DGSDRH:Direction des Ressources Humaines');
-Insert into entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) Values ('DSG', 'DGSDSG:Secrétariat Général', 'DGSDSG:Secrétariat Général', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'DGS', 'Direction');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'DSG', 'entity_id', 0, 'ddaull', 'user_id', 'dest', 'DOC', 'DGSDSG:Secrétariat Général');
-Insert into entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) Values ('COU', 'DGSDSGCOU:Service Courrier', 'DGSDSGCOU:Service Courrier', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'DSG', 'Service');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'COU', 'entity_id', 0, 'bblier', 'user_id', 'dest', 'DOC', 'DGSDSGCOU:Service Courrier');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'COU', 'entity_id', 0, 'DSG', 'entity_id', 'cc', 'DOC', 'DGSDSGCOU:Service Courrier');
-Insert into entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) Values ('COR', 'DGSDSGCOUCOR:Correspondants Archive', 'DGSDSGCOUCOR:Correspondants Archive', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'DSG', 'Service');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'COR', 'entity_id', 0, '', 'user_id', 'dest', 'DOC', 'DGSDSGCOUCOR:Correspondants Archive');
-Insert into entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) Values ('PSF', 'DGSPSF:Pôle des Services Fonctionnels', 'DGSPSF:Services Fonctionnels', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'DSG', 'Service');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'PSF', 'entity_id', 0, 'aackermann', 'user_id', 'dest', 'DOC', 'DGSPSF:Pôle des Services Fonctionnels');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'PSF', 'entity_id', 0, 'DSG', 'entity_id', 'cc', 'DOC', 'DGSPSF:Pôle des Services Fonctionnels');
-Insert into entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) Values ('DSI', 'DGSDSI:Direction des Systèmes d''Information', 'DGSDSI:Direction des Systèmes d''Information', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'DGS', 'Service');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'DSI', 'entity_id', 0, 'ssissoko', 'user_id', 'dest', 'DOC', 'DGSDSI:Direction des Systèmes d''Information');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'DSI', 'entity_id', 0, 'DSG', 'entity_id', 'cc', 'DOC', 'DGSDSI:Direction des Systèmes d''Information');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'DSI', 'entity_id', 0, 'ccordy', 'user_id', 'cc', 'DOC', 'DGSDSI:Direction des Systèmes d''Information');
-Insert into entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) Values ('FIN', 'DGSFIN:Direction des Finances', 'DGSFIN:Direction des Finances', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'DGS', 'Service');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'FIN', 'entity_id', 0, 'sstar', 'user_id', 'dest', 'DOC', 'DGSFIN:Direction des Finances');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'FIN', 'entity_id', 0, 'DSG', 'entity_id', 'cc', 'DOC', 'DGSFIN:Direction des Finances');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'FIN', 'entity_id', 0, 'jjane', 'user_id', 'cc', 'DOC', 'DGSFIN:Direction des Finances');
-Insert into entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) Values ('PJU', 'DGSFINPJU:Pôle Juridique', 'DGSFINPJU:Pôle Juridique', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'FIN', 'Service');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'PJU', 'entity_id', 0, 'jjonasz', 'user_id', 'dest', 'DOC', 'DGSFINPJU:Pôle Juridique');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'PJU', 'entity_id', 0, 'DSG', 'entity_id', 'cc', 'DOC', 'DGSFINPJU:Pôle Juridique');
-Insert into entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) Values ('ELUS', 'ELUS:Ensemble des élus', 'ELUS:Ensemble des élus', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'VILLE', 'Direction');
-INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'ELUS', 'entity_id', 0, '', 'user_id', 'dest', 'DOC', 'ELUS:Ensemble des élus');
+DELETE FROM entities WHERE entity_id = 'CAB';
+INSERT INTO entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) VALUES ('CAB', 'Cabinet du Maire', 'Cabinet du Maire', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'VILLE', 'Direction');
+DELETE FROM listmodels WHERE object_id = 'CAB' AND object_type = 'entity_id';
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'CAB', 'entity_id', 0, 'eerina', 'user_id', 'dest', 'DOC', 'Cabinet du Maire');
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'CAB', 'entity_id', 0, 'DSG', 'entity_id', 'cc', 'DOC', 'Cabinet du Maire');
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'CAB', 'entity_id', 0, 'ppetit', 'user_id', 'cc', 'DOC', 'Cabinet du Maire');
+DELETE FROM entities WHERE entity_id = 'DGS';
+INSERT INTO entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) VALUES ('DGS', 'Direction Générale des Services', 'Direction Générale des Services', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'VILLE', 'Direction');
+DELETE FROM listmodels WHERE object_id = 'DGS' AND object_type = 'entity_id';
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'DGS', 'entity_id', 0, 'rrenaud', 'user_id', 'dest', 'DOC', 'Direction Générale des Services');
+DELETE FROM entities WHERE entity_id = 'DGA';
+INSERT INTO entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) VALUES ('DGA', 'Direction Générale Adjointe', 'Direction Générale Adjointe', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'DGS', 'Bureau');
+DELETE FROM listmodels WHERE object_id = 'DGA' AND object_type = 'entity_id';
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'DGA', 'entity_id', 0, 'mmanfred', 'user_id', 'dest', 'DOC', 'Direction Générale Adjointe');
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'DGA', 'entity_id', 0, 'DSG', 'entity_id', 'cc', 'DOC', 'Direction Générale Adjointe');
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'DGA', 'entity_id', 0, 'kkaar', 'user_id', 'cc', 'DOC', 'Direction Générale Adjointe');
+DELETE FROM entities WHERE entity_id = 'PCU';
+INSERT INTO entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) VALUES ('PCU', 'Pôle Culturel', 'Pôle Culturel', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'DGA', 'Service');
+DELETE FROM listmodels WHERE object_id = 'PCU' AND object_type = 'entity_id';
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'PCU', 'entity_id', 0, 'bboule', 'user_id', 'dest', 'DOC', 'Pôle Culturel');
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'PCU', 'entity_id', 0, 'DSG', 'entity_id', 'cc', 'DOC', 'Pôle Culturel');
+DELETE FROM entities WHERE entity_id = 'PJS';
+INSERT INTO entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) VALUES ('PJS', 'Pôle Jeunesse et Sport', 'Pôle Jeunesse et Sport', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'DGA', 'Service');
+DELETE FROM listmodels WHERE object_id = 'PJS' AND object_type = 'entity_id';
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'PJS', 'entity_id', 0, 'bbain', 'user_id', 'dest', 'DOC', 'Pôle Jeunesse et Sport');
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'PJS', 'entity_id', 0, 'DSG', 'entity_id', 'cc', 'DOC', 'Pôle Jeunesse et Sport');
+DELETE FROM entities WHERE entity_id = 'PE';
+INSERT INTO entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) VALUES ('PE', 'Petite enfance', 'Petite enfance', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'PJS', 'Service');
+DELETE FROM listmodels WHERE object_id = 'PE' AND object_type = 'entity_id';
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'PE', 'entity_id', 0, 'ssaporta', 'user_id', 'dest', 'DOC', 'Petite enfance');
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'PE', 'entity_id', 0, 'DSG', 'entity_id', 'cc', 'DOC', 'Petite enfance');
+DELETE FROM entities WHERE entity_id = 'SP';
+INSERT INTO entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) VALUES ('SP', 'Sport', 'Sport', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'PJS', 'Service');
+DELETE FROM listmodels WHERE object_id = 'SP' AND object_type = 'entity_id';
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'SP', 'entity_id', 0, 'ttong', 'user_id', 'dest', 'DOC', 'Sport');
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'SP', 'entity_id', 0, 'DSG', 'entity_id', 'cc', 'DOC', 'Sport');
+DELETE FROM entities WHERE entity_id = 'PSO';
+INSERT INTO entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) VALUES ('PSO', 'Pôle Social', 'Pôle Social', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'DGA', 'Service');
+DELETE FROM listmodels WHERE object_id = 'PSO' AND object_type = 'entity_id';
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'PSO', 'entity_id', 0, 'nnataly', 'user_id', 'dest', 'DOC', 'Pôle Social');
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'PSO', 'entity_id', 0, 'DSG', 'entity_id', 'cc', 'DOC', 'Pôle Social');
+DELETE FROM entities WHERE entity_id = 'PTE';
+INSERT INTO entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) VALUES ('PTE', 'Pôle Technique', 'Pôle Technique', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'DGA', 'Service');
+DELETE FROM listmodels WHERE object_id = 'PTE' AND object_type = 'entity_id';
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'PTE', 'entity_id', 0, 'ccharles', 'user_id', 'dest', 'DOC', 'Pôle Technique');
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'PTE', 'entity_id', 0, 'DSG', 'entity_id', 'cc', 'DOC', 'Pôle Technique');
+DELETE FROM entities WHERE entity_id = 'DRH';
+INSERT INTO entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) VALUES ('DRH', 'Direction des Ressources Humaines', 'Direction des Ressources Humaines', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'DGS', 'Service');
+DELETE FROM listmodels WHERE object_id = 'DRH' AND object_type = 'entity_id';
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'DRH', 'entity_id', 0, 'ppruvost', 'user_id', 'dest', 'DOC', 'Direction des Ressources Humaines');
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'DRH', 'entity_id', 0, 'DSG', 'entity_id', 'cc', 'DOC', 'Direction des Ressources Humaines');
+DELETE FROM entities WHERE entity_id = 'DSG';
+INSERT INTO entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) VALUES ('DSG', 'Secrétariat Général', 'Secrétariat Général', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'DGS', 'Direction');
+DELETE FROM listmodels WHERE object_id = 'DSG' AND object_type = 'entity_id';
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'DSG', 'entity_id', 0, 'ddaull', 'user_id', 'dest', 'DOC', 'Secrétariat Général');
+DELETE FROM entities WHERE entity_id = 'COU';
+INSERT INTO entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) VALUES ('COU', 'Service Courrier', 'Service Courrier', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'DSG', 'Service');
+DELETE FROM listmodels WHERE object_id = 'COU' AND object_type = 'entity_id';
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'COU', 'entity_id', 0, 'bblier', 'user_id', 'dest', 'DOC', 'Service Courrier');
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'COU', 'entity_id', 0, 'DSG', 'entity_id', 'cc', 'DOC', 'Service Courrier');
+DELETE FROM entities WHERE entity_id = 'COR';
+INSERT INTO entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) VALUES ('COR', 'Correspondants Archive', 'Correspondants Archive', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'COU', 'Service');
+DELETE FROM listmodels WHERE object_id = 'COR' AND object_type = 'entity_id';
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'COR', 'entity_id', 0, '', 'user_id', 'dest', 'DOC', 'Correspondants Archive');
+DELETE FROM entities WHERE entity_id = 'PSF';
+INSERT INTO entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) VALUES ('PSF', 'Pôle des Services Fonctionnels', 'Services Fonctionnels', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'DSG', 'Service');
+DELETE FROM listmodels WHERE object_id = 'PSF' AND object_type = 'entity_id';
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'PSF', 'entity_id', 0, 'aackermann', 'user_id', 'dest', 'DOC', 'Pôle des Services Fonctionnels');
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'PSF', 'entity_id', 0, 'DSG', 'entity_id', 'cc', 'DOC', 'Pôle des Services Fonctionnels');
+DELETE FROM entities WHERE entity_id = 'DSI';
+INSERT INTO entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) VALUES ('DSI', 'Direction des Systèmes d''Information', 'Direction des Systèmes d''Information', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'DGS', 'Service');
+DELETE FROM listmodels WHERE object_id = 'DSI' AND object_type = 'entity_id';
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'DSI', 'entity_id', 0, 'ssissoko', 'user_id', 'dest', 'DOC', 'Direction des Systèmes d''Information');
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'DSI', 'entity_id', 0, 'DSG', 'entity_id', 'cc', 'DOC', 'Direction des Systèmes d''Information');
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'DSI', 'entity_id', 0, 'ccordy', 'user_id', 'cc', 'DOC', 'Direction des Systèmes d''Information');
+DELETE FROM entities WHERE entity_id = 'FIN';
+INSERT INTO entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) VALUES ('FIN', 'Direction des Finances', 'Direction des Finances', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'DGS', 'Service');
+DELETE FROM listmodels WHERE object_id = 'FIN' AND object_type = 'entity_id';
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'FIN', 'entity_id', 0, 'sstar', 'user_id', 'dest', 'DOC', 'Direction des Finances');
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'FIN', 'entity_id', 0, 'DSG', 'entity_id', 'cc', 'DOC', 'Direction des Finances');
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'FIN', 'entity_id', 0, 'jjane', 'user_id', 'cc', 'DOC', 'Direction des Finances');
+DELETE FROM entities WHERE entity_id = 'PJU';
+INSERT INTO entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) VALUES ('PJU', 'Pôle Juridique', 'Pôle Juridique', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'FIN', 'Service');
+DELETE FROM listmodels WHERE object_id = 'PJU' AND object_type = 'entity_id';
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'PJU', 'entity_id', 0, 'jjonasz', 'user_id', 'dest', 'DOC', 'Pôle Juridique');
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'PJU', 'entity_id', 0, 'DSG', 'entity_id', 'cc', 'DOC', 'Pôle Juridique');
+DELETE FROM entities WHERE entity_id = 'ELUS';
+INSERT INTO entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) VALUES ('ELUS', 'Ensemble des élus', 'ELUS:Ensemble des élus', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', 'VILLE', 'Direction');
+DELETE FROM listmodels WHERE object_id = 'ELUS' AND object_type = 'entity_id';
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'ELUS', 'entity_id', 0, '', 'user_id', 'dest', 'DOC', 'Ensemble des élus');
+DELETE FROM entities WHERE entity_id = 'CCAS';
+INSERT INTO entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) VALUES ('CCAS', 'Centre Communal d''Action Sociale', 'Centre Communal d''Action Sociale', 'Y', '', '', '', '', '', '', 'info@maarch.org', '', '', 'Direction');
+DELETE FROM listmodels WHERE object_id = 'CCAS' AND object_type = 'entity_id';
+INSERT INTO listmodels (coll_id, object_id, object_type, "sequence", item_id, item_type, item_mode, listmodel_type, description) VALUES ('letterbox_coll', 'CCAS', 'entity_id', 0, '', 'user_id', 'dest', 'DOC', 'Centre Communal d''Action Sociale');
 
 -- Create BASKETS
-TRUNCATE TABLE BASKETS;
-INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('QualificationBasket', 'Courriers à qualifier', 'Corbeille de qualification', 'status=''ATT''', 'letterbox_coll', 'Y', 'N', 'Y',10);
+TRUNCATE TABLE baskets;
+DELETE FROM baskets WHERE basket_id = 'QualificationBasket';
+DELETE FROM actions_groupbaskets WHERE basket_id = 'QualificationBasket';
+DELETE FROM groupbasket_redirect WHERE basket_id = 'QualificationBasket';
+INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('QualificationBasket', 'Courriers à qualifier', 'Corbeille de qualification', 'status=''INIT''', 'letterbox_coll', 'Y', 'N', 'Y',10);
+DELETE FROM baskets WHERE basket_id = 'IndexingBasket';
+DELETE FROM actions_groupbaskets WHERE basket_id = 'IndexingBasket';
+DELETE FROM groupbasket_redirect WHERE basket_id = 'IndexingBasket';
 INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('IndexingBasket', 'Courriers à indexer', 'Corbeille d''indexation', ' ', 'letterbox_coll', 'Y', 'N', 'Y',20);
-INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('CopyMailBasket', 'Courriers en copie', 'Corbeille d''information', '(res_id in (select res_id from listinstance WHERE coll_id = ''letterbox_coll'' and item_type = ''user_id'' and item_id = @user and item_mode = ''cc'') or res_id in (select res_id from listinstance WHERE coll_id = ''letterbox_coll'' and item_type = ''entity_id'' and item_mode = ''cc'' and item_id in (@my_entities))) and status <> ''DEL'' and res_id not in (select res_id from res_mark_as_read WHERE user_id = @user)', 'letterbox_coll', 'Y', 'N', 'Y',30);
+DELETE FROM baskets WHERE basket_id = 'CopyMailBasket';
+DELETE FROM actions_groupbaskets WHERE basket_id = 'CopyMailBasket';
+DELETE FROM groupbasket_redirect WHERE basket_id = 'CopyMailBasket';
+INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('CopyMailBasket', 'Courriers en copie', 'Courriers en copie non clos ou sans suite', '(res_id in (select res_id from listinstance WHERE coll_id = ''letterbox_coll'' and item_type = ''user_id'' and item_id = @user and item_mode = ''cc'') or res_id in (select res_id from listinstance WHERE coll_id = ''letterbox_coll'' and item_type = ''entity_id'' and item_mode = ''cc'' and item_id in (@my_entities))) and status not in ( ''DEL'', ''END'', ''SSUITE'') and res_id not in (select res_id from res_mark_as_read WHERE user_id = @user)', 'letterbox_coll', 'Y', 'N', 'Y',30);
+DELETE FROM baskets WHERE basket_id = 'RetourCourrier';
+DELETE FROM actions_groupbaskets WHERE basket_id = 'RetourCourrier';
+DELETE FROM groupbasket_redirect WHERE basket_id = 'RetourCourrier';
 INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('RetourCourrier', 'Retours Courrier', 'Courriers retournés au service Courrier', 'STATUS=''RET''', 'letterbox_coll', 'Y', 'N', 'Y',40);
-INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('InitBasket', 'Courriers pour validation DSG', 'Courriers en attente d envoi en validation', 'STATUS=''INIT''', 'letterbox_coll', 'Y', 'N', 'Y',50);
-INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('DdeAvisBasket', 'Avis : Avis à émettre', 'Courriers nécessitant un avis', 'status = ''EAVIS'' AND res_id IN (SELECT res_id FROM listinstance WHERE coll_id = ''letterbox_coll'' AND item_type = ''user_id'' AND item_id = @user AND item_mode = ''avis'' and process_date is NULL)', 'letterbox_coll', 'Y', 'N', 'Y',60);
-INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('SupAvisBasket', 'Avis : En attente de réponse', 'Courriers en attente d''avis', 'status=''EAVIS'' and ((DEST_USER = @user) OR (DEST_USER IN (select user_id from users_entities WHERE entity_id = @my_primary_entity) or DESTINATION in (@subentities[@my_primary_entity]))) and res_id NOT IN (SELECT res_id FROM listinstance WHERE item_mode = ''avis'' and difflist_type = ''entity_id'' and process_date is not NULL and res_view_letterbox.res_id = res_id group by res_id) AND res_id IN (SELECT res_id FROM listinstance WHERE item_mode = ''avis'' and difflist_type = ''entity_id'' and process_date is NULL and res_view_letterbox.res_id = res_id group by res_id)', 'letterbox_coll', 'Y', 'N', 'Y',70);
-INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('RetAvisBasket', 'Avis : Retours partiels', 'Courriers avec avis reçus', 'status=''EAVIS'' and ((DEST_USER = @user) OR (DEST_USER IN (select user_id from users_entities WHERE entity_id = @my_primary_entity) or DESTINATION in (@subentities[@my_primary_entity]))) and res_id IN (SELECT res_id FROM listinstance WHERE item_mode = ''avis'' and difflist_type = ''entity_id'' and process_date is not NULL and res_view_letterbox.res_id = res_id group by res_id)', 'letterbox_coll', 'Y', 'N', 'Y',80);
-INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('ValidationBasket', 'Courriers à valider', 'Corbeille de validation', '(status = ''VAL'' and destination <>''COU'')', 'letterbox_coll', 'Y', 'N', 'Y',90);
+DELETE FROM baskets WHERE basket_id = 'DdeAvisBasket';
+DELETE FROM actions_groupbaskets WHERE basket_id = 'DdeAvisBasket';
+DELETE FROM groupbasket_redirect WHERE basket_id = 'DdeAvisBasket';
+INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('DdeAvisBasket', 'Avis : Avis à émettre', 'Courriers nécessitant un avis', 'status = ''EAVIS'' AND res_id IN (SELECT res_id FROM listinstance WHERE coll_id = ''letterbox_coll'' AND item_type = ''user_id'' AND item_id = @user AND item_mode = ''avis'' and process_date is NULL)', 'letterbox_coll', 'Y', 'N', 'Y',50);
+DELETE FROM baskets WHERE basket_id = 'SupAvisBasket';
+DELETE FROM actions_groupbaskets WHERE basket_id = 'SupAvisBasket';
+DELETE FROM groupbasket_redirect WHERE basket_id = 'SupAvisBasket';
+INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('SupAvisBasket', 'Avis : En attente de réponse', 'Courriers en attente d''avis', 'status=''EAVIS'' and ((DEST_USER = @user) OR (DEST_USER IN (select user_id from users_entities WHERE entity_id = @my_primary_entity) or DESTINATION in (@subentities[@my_primary_entity]))) and res_id NOT IN (SELECT res_id FROM listinstance WHERE item_mode = ''avis'' and difflist_type = ''entity_id'' and process_date is not NULL and res_view_letterbox.res_id = res_id group by res_id) AND res_id IN (SELECT res_id FROM listinstance WHERE item_mode = ''avis'' and difflist_type = ''entity_id'' and process_date is NULL and res_view_letterbox.res_id = res_id group by res_id)', 'letterbox_coll', 'Y', 'N', 'Y',60);
+DELETE FROM baskets WHERE basket_id = 'RetAvisBasket';
+DELETE FROM actions_groupbaskets WHERE basket_id = 'RetAvisBasket';
+DELETE FROM groupbasket_redirect WHERE basket_id = 'RetAvisBasket';
+INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('RetAvisBasket', 'Avis : Retours partiels', 'Courriers avec avis reçus', 'status=''EAVIS'' and ((DEST_USER = @user) OR (DEST_USER IN (select user_id from users_entities WHERE entity_id = @my_primary_entity) or DESTINATION in (@subentities[@my_primary_entity]))) and res_id IN (SELECT res_id FROM listinstance WHERE item_mode = ''avis'' and difflist_type = ''entity_id'' and process_date is not NULL and res_view_letterbox.res_id = res_id group by res_id)', 'letterbox_coll', 'Y', 'N', 'Y',70);
+DELETE FROM baskets WHERE basket_id = 'ValidationBasket';
+DELETE FROM actions_groupbaskets WHERE basket_id = 'ValidationBasket';
+DELETE FROM groupbasket_redirect WHERE basket_id = 'ValidationBasket';
+INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('ValidationBasket', 'Courriers signalés à instruire', 'Courriers signalés en attente d''instruction pour les services', 'status=''VAL''', 'letterbox_coll', 'Y', 'N', 'Y',80);
+DELETE FROM baskets WHERE basket_id = 'InValidationBasket';
+DELETE FROM actions_groupbaskets WHERE basket_id = 'InValidationBasket';
+DELETE FROM groupbasket_redirect WHERE basket_id = 'InValidationBasket';
+INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('InValidationBasket', 'Courriers signalés en attente d''instruction', 'Courriers signalés en attente d''instruction par le responsable', 'destination in (@my_entities, @subentities[@my_primary_entity]) and status=''VAL''', 'letterbox_coll', 'Y', 'N', 'Y',90);
+DELETE FROM baskets WHERE basket_id = 'MyBasket';
+DELETE FROM actions_groupbaskets WHERE basket_id = 'MyBasket';
+DELETE FROM groupbasket_redirect WHERE basket_id = 'MyBasket';
 INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('MyBasket', 'Courriers à traiter', 'Corbeille de traitement', 'status in (''NEW'', ''COU'', ''SVX'') and dest_user = @user', 'letterbox_coll', 'Y', 'N', 'Y',100);
+DELETE FROM baskets WHERE basket_id = 'LateMailBasket';
+DELETE FROM actions_groupbaskets WHERE basket_id = 'LateMailBasket';
+DELETE FROM groupbasket_redirect WHERE basket_id = 'LateMailBasket';
 INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('LateMailBasket', 'Courriers en retard', 'Courriers en retard', 'destination in (@my_entities, @subentities[@my_primary_entity]) and (status <> ''DEL'' AND status <> ''REP'') and (now() > process_limit_date)', 'letterbox_coll', 'Y', 'N', 'Y',110);
+DELETE FROM baskets WHERE basket_id = 'DepartmentBasket';
+DELETE FROM actions_groupbaskets WHERE basket_id = 'DepartmentBasket';
+DELETE FROM groupbasket_redirect WHERE basket_id = 'DepartmentBasket';
 INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('DepartmentBasket', 'Courriers de ma direction', 'Corbeille de supervision', 'destination in (@my_entities, @subentities[@my_primary_entity]) and (status <> ''DEL'' AND status <> ''REP'' and status <> ''VAL'')', 'letterbox_coll', 'Y', 'N', 'Y',120);
-INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('EmailsToQualify', 'Courriels à qualifier', 'Courriels à qualifier', 'status=''MAQUAL'' and (dest_user = '''' or dest_user is null)', 'letterbox_coll', 'Y', 'N', 'Y',130);
-INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('FoldersMyBasket', '[dossier] Mes dossiers à traiter', 'Dossiers à traiter', 'status = ''FOLDNEW'' and count_document > 0 and dest_user = @user', 'letterbox_coll', 'Y', 'Y', 'Y',140);
-INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('FoldersValidationBasket', '[dossier] Dossiers à valider', 'Corbeilles des dossiers à valider', 'status = ''FOLDVAL'' and count_document > 0', 'letterbox_coll', 'Y', 'Y', 'Y',150);
-INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('FoldersRejectedBasket', '[dossier] Dossiers rejetés', 'Corbeille des dossiers rejetés', 'status = ''FOLDREJ'' and count_document > 0', 'letterbox_coll', 'Y', 'Y', 'Y',160);
-INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('FoldersIncompleteBasket', '[dossier] Dossiers incomplets', 'Corbeille des dossiers incomplets', 'status = ''FOLDNOT'' and count_document > 0', 'letterbox_coll', 'Y', 'Y', 'Y',170);
-INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('FoldersTreatBasket', '[dossier] Dossiers traités', 'Corbeille des dossiers traités', 'status = ''FOLDTRT'' and count_document > 0', 'letterbox_coll', 'Y', 'Y', 'Y',180);
-INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('FoldersDepartmentBasket', '[dossier] Dossiers', 'Corbeille de dossiers', 'status = ''FOLDNEW'' and count_document > 0', 'letterbox_coll', 'Y', 'Y', 'Y',190);
-INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('AlloMairieBasket', 'Demandes Maarch Mairie', 'Corbeilles des demandes Maarch Mairie', 'status = ''SMART''', 'letterbox_coll', 'Y', 'N', 'Y',200);
-INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('EvisBasket', 'Courriers à e-viser', 'Courriers à e-viser', 'status=''EVIS'' and (res_id,@user) IN (SELECT res_id, item_id FROM listinstance WHERE item_mode = ''visa'' and process_date ISNULL and res_view_letterbox.res_id = res_id order by listinstance_id asc limit 1)', 'letterbox_coll', 'Y', 'N', 'Y',210);
-INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('EsigBasket', 'Courriers à e-signer', 'Courriers à e-signer', 'status=''ESIG'' and (res_id,@user) IN (SELECT res_id, item_id FROM listinstance WHERE item_mode = ''sign'' and process_date ISNULL and res_view_letterbox.res_id = res_id order by listinstance_id asc limit 1)', 'letterbox_coll', 'Y', 'N', 'Y',220);
-INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('EsigARBasket', 'AR à e-signer', 'AR à e-signer', 'status=''ESIGAR'' and (res_id,@user) IN (SELECT res_id, item_id FROM listinstance WHERE item_mode = ''sign'' and process_date ISNULL and res_view_letterbox.res_id = res_id order by listinstance_id asc limit 1)', 'letterbox_coll', 'Y', 'N', 'Y',230);
-INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('EenvBasket', 'Courriers à e-envoyer', 'Courriers à e-envoyer', 'status=''EENV'' and dest_user = @user', 'letterbox_coll', 'Y', 'N', 'Y',240);
-INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('EenvARBasket', 'AR à e-envoyer', 'AR à e-envoyer', 'status=''EENVAR'' and dest_user = @user', 'letterbox_coll', 'Y', 'N', 'Y',250);
+DELETE FROM baskets WHERE basket_id = 'EvisBasket';
+DELETE FROM actions_groupbaskets WHERE basket_id = 'EvisBasket';
+DELETE FROM groupbasket_redirect WHERE basket_id = 'EvisBasket';
+INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('EvisBasket', 'Courriers à e-viser', 'Courriers à e-viser', 'status=''EVIS'' and (res_id,@user) IN (SELECT res_id, item_id FROM listinstance WHERE item_mode = ''visa'' and process_date ISNULL and res_view_letterbox.res_id = res_id order by listinstance_id asc limit 1)', 'letterbox_coll', 'Y', 'N', 'Y',130);
+DELETE FROM baskets WHERE basket_id = 'EsigBasket';
+DELETE FROM actions_groupbaskets WHERE basket_id = 'EsigBasket';
+DELETE FROM groupbasket_redirect WHERE basket_id = 'EsigBasket';
+INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('EsigBasket', 'Courriers à e-signer', 'Courriers à e-signer', 'status=''ESIG'' and (res_id,@user) IN (SELECT res_id, item_id FROM listinstance WHERE item_mode = ''sign'' and process_date ISNULL and res_view_letterbox.res_id = res_id order by listinstance_id asc limit 1)', 'letterbox_coll', 'Y', 'N', 'Y',140);
+DELETE FROM baskets WHERE basket_id = 'EsigARBasket';
+DELETE FROM actions_groupbaskets WHERE basket_id = 'EsigARBasket';
+DELETE FROM groupbasket_redirect WHERE basket_id = 'EsigARBasket';
+INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('EsigARBasket', 'AR à e-signer', 'AR à e-signer', 'status=''ESIGAR'' and (res_id,@user) IN (SELECT res_id, item_id FROM listinstance WHERE item_mode = ''sign'' and process_date ISNULL and res_view_letterbox.res_id = res_id order by listinstance_id asc limit 1)', 'letterbox_coll', 'Y', 'N', 'Y',150);
+DELETE FROM baskets WHERE basket_id = 'EenvBasket';
+DELETE FROM actions_groupbaskets WHERE basket_id = 'EenvBasket';
+DELETE FROM groupbasket_redirect WHERE basket_id = 'EenvBasket';
+INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('EenvBasket', 'Courriers à e-envoyer', 'Courriers à e-envoyer', 'status=''EENV'' and dest_user = @user', 'letterbox_coll', 'Y', 'N', 'Y',160);
+DELETE FROM baskets WHERE basket_id = 'EenvARBasket';
+DELETE FROM actions_groupbaskets WHERE basket_id = 'EenvARBasket';
+DELETE FROM groupbasket_redirect WHERE basket_id = 'EenvARBasket';
+INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('EenvARBasket', 'AR à e-envoyer', 'AR à e-envoyer', 'status=''EENVAR'' and dest_user = @user', 'letterbox_coll', 'Y', 'N', 'Y',170);
+DELETE FROM baskets WHERE basket_id = 'ToArcBasket';
+DELETE FROM actions_groupbaskets WHERE basket_id = 'ToArcBasket';
+DELETE FROM groupbasket_redirect WHERE basket_id = 'ToArcBasket';
+INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('ToArcBasket', 'Courriers à archiver', 'Courriers arrivés en fin de DUC à envoyer en archive intermédiaire', 'status = ''EXP_SEDA'' OR status = ''END'' OR status = ''SEND_SEDA''', 'letterbox_coll', 'Y', 'N', 'Y',180);
+DELETE FROM baskets WHERE basket_id = 'SentArcBasket';
+DELETE FROM actions_groupbaskets WHERE basket_id = 'SentArcBasket';
+DELETE FROM groupbasket_redirect WHERE basket_id = 'SentArcBasket';
+INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('SentArcBasket', 'Courriers en cours d''archivage', 'Courriers envoyés au SAE, en attente de réponse de transfert', 'status=''ACK_SEDA''', 'letterbox_coll', 'Y', 'N', 'Y',190);
+DELETE FROM baskets WHERE basket_id = 'AckArcBasket';
+DELETE FROM actions_groupbaskets WHERE basket_id = 'AckArcBasket';
+DELETE FROM groupbasket_redirect WHERE basket_id = 'AckArcBasket';
+INSERT INTO baskets (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) VALUES ('AckArcBasket', 'Courriers archivés', 'Courriers archivés et acceptés dans le SAE', 'status=''REPLY_SEDA''', 'letterbox_coll', 'Y', 'N', 'Y',200);
 
 -- Create GROUPBASKET
-TRUNCATE TABLE GROUPBASKET;
+TRUNCATE TABLE groupbasket;
+DELETE FROM groupbasket WHERE basket_id = 'QualificationBasket';
 INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('COURRIER', 'QualificationBasket', 1, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
+DELETE FROM groupbasket WHERE basket_id = 'IndexingBasket';
 INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('COURRIER', 'IndexingBasket', 2, NULL, NULL, 'redirect_to_action','N', 'N', 'N', NULL, NULL);
 INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('AGENT', 'IndexingBasket', 3, NULL, NULL, 'redirect_to_action','N', 'N', 'N', NULL, NULL);
 INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESP_COURRIER', 'IndexingBasket', 4, NULL, NULL, 'redirect_to_action','N', 'N', 'N', NULL, NULL);
 INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESPONSABLE', 'IndexingBasket', 5, NULL, NULL, 'redirect_to_action','N', 'N', 'N', NULL, NULL);
 INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('ELU', 'IndexingBasket', 6, NULL, NULL, 'redirect_to_action','N', 'N', 'N', NULL, NULL);
+DELETE FROM groupbasket WHERE basket_id = 'CopyMailBasket';
 INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('AGENT', 'CopyMailBasket', 7, NULL, NULL, 'list_copies','N', 'N', 'N', NULL, NULL);
 INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESP_COURRIER', 'CopyMailBasket', 8, NULL, NULL, 'list_copies','N', 'N', 'N', NULL, NULL);
 INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESPONSABLE', 'CopyMailBasket', 9, NULL, NULL, 'list_copies','N', 'N', 'N', NULL, NULL);
 INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('ELU', 'CopyMailBasket', 10, NULL, NULL, 'list_copies','N', 'N', 'N', NULL, NULL);
+DELETE FROM groupbasket WHERE basket_id = 'RetourCourrier';
 INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('COURRIER', 'RetourCourrier', 11, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
 INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESP_COURRIER', 'RetourCourrier', 12, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('COURRIER', 'InitBasket', 13, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('AGENT', 'DdeAvisBasket', 14, NULL, NULL, 'list_with_avis','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESP_COURRIER', 'DdeAvisBasket', 15, NULL, NULL, 'list_with_avis','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESPONSABLE', 'DdeAvisBasket', 16, NULL, NULL, 'list_with_avis','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('ELU', 'DdeAvisBasket', 17, NULL, NULL, 'list_with_avis','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('AGENT', 'SupAvisBasket', 18, NULL, NULL, 'list_with_avis','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESP_COURRIER', 'SupAvisBasket', 19, NULL, NULL, 'list_with_avis','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESPONSABLE', 'SupAvisBasket', 20, NULL, NULL, 'list_with_avis','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('AGENT', 'RetAvisBasket', 21, NULL, NULL, 'list_with_avis','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESP_COURRIER', 'RetAvisBasket', 22, NULL, NULL, 'list_with_avis','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESPONSABLE', 'RetAvisBasket', 23, NULL, NULL, 'list_with_avis','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESP_COURRIER', 'ValidationBasket', 24, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('AGENT', 'MyBasket', 25, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESP_COURRIER', 'MyBasket', 26, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESPONSABLE', 'MyBasket', 27, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('ELU', 'MyBasket', 28, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('AGENT', 'LateMailBasket', 29, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESPONSABLE', 'DepartmentBasket', 30, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('COURRIER', 'EmailsToQualify', 31, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESPONSABLE', 'FoldersValidationBasket', 32, NULL, NULL, 'list_folders','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESPONSABLE', 'FoldersRejectedBasket', 33, NULL, NULL, 'list_folders','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESPONSABLE', 'FoldersIncompleteBasket', 34, NULL, NULL, 'list_folders','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESPONSABLE', 'FoldersTreatBasket', 35, NULL, NULL, 'list_folders','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESPONSABLE', 'FoldersDepartmentBasket', 36, NULL, NULL, 'list_folders','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('COURRIER', 'AlloMairieBasket', 37, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESPONSABLE', 'EvisBasket', 38, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESPONSABLE', 'EsigBasket', 39, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESPONSABLE', 'EsigARBasket', 40, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('AGENT', 'EenvBasket', 41, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
-INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('AGENT', 'EenvARBasket', 42, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
+DELETE FROM groupbasket WHERE basket_id = 'DdeAvisBasket';
+INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('AGENT', 'DdeAvisBasket', 13, NULL, NULL, 'list_with_avis','N', 'N', 'N', NULL, NULL);
+INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESP_COURRIER', 'DdeAvisBasket', 14, NULL, NULL, 'list_with_avis','N', 'N', 'N', NULL, NULL);
+INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESPONSABLE', 'DdeAvisBasket', 15, NULL, NULL, 'list_with_avis','N', 'N', 'N', NULL, NULL);
+INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('ELU', 'DdeAvisBasket', 16, NULL, NULL, 'list_with_avis','N', 'N', 'N', NULL, NULL);
+DELETE FROM groupbasket WHERE basket_id = 'SupAvisBasket';
+INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('AGENT', 'SupAvisBasket', 17, NULL, NULL, 'list_with_avis','N', 'N', 'N', NULL, NULL);
+INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESP_COURRIER', 'SupAvisBasket', 18, NULL, NULL, 'list_with_avis','N', 'N', 'N', NULL, NULL);
+INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESPONSABLE', 'SupAvisBasket', 19, NULL, NULL, 'list_with_avis','N', 'N', 'N', NULL, NULL);
+DELETE FROM groupbasket WHERE basket_id = 'RetAvisBasket';
+INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('AGENT', 'RetAvisBasket', 20, NULL, NULL, 'list_with_avis','N', 'N', 'N', NULL, NULL);
+INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESP_COURRIER', 'RetAvisBasket', 21, NULL, NULL, 'list_with_avis','N', 'N', 'N', NULL, NULL);
+INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESPONSABLE', 'RetAvisBasket', 22, NULL, NULL, 'list_with_avis','N', 'N', 'N', NULL, NULL);
+DELETE FROM groupbasket WHERE basket_id = 'ValidationBasket';
+INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESP_COURRIER', 'ValidationBasket', 23, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
+INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('DIRECTEUR', 'ValidationBasket', 24, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
+DELETE FROM groupbasket WHERE basket_id = 'InValidationBasket';
+INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('AGENT', 'InValidationBasket', 25, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
+INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESPONSABLE', 'InValidationBasket', 26, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
+DELETE FROM groupbasket WHERE basket_id = 'MyBasket';
+INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('AGENT', 'MyBasket', 27, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
+INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESP_COURRIER', 'MyBasket', 28, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
+INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESPONSABLE', 'MyBasket', 29, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
+INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('ELU', 'MyBasket', 30, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
+DELETE FROM groupbasket WHERE basket_id = 'LateMailBasket';
+INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('AGENT', 'LateMailBasket', 31, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
+DELETE FROM groupbasket WHERE basket_id = 'DepartmentBasket';
+INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESPONSABLE', 'DepartmentBasket', 32, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
+DELETE FROM groupbasket WHERE basket_id = 'EvisBasket';
+INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESPONSABLE', 'EvisBasket', 33, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
+DELETE FROM groupbasket WHERE basket_id = 'EsigBasket';
+INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESPONSABLE', 'EsigBasket', 34, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
+DELETE FROM groupbasket WHERE basket_id = 'EsigARBasket';
+INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('RESPONSABLE', 'EsigARBasket', 35, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
+DELETE FROM groupbasket WHERE basket_id = 'EenvBasket';
+INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('AGENT', 'EenvBasket', 36, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
+DELETE FROM groupbasket WHERE basket_id = 'EenvARBasket';
+INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('AGENT', 'EenvARBasket', 37, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
+DELETE FROM groupbasket WHERE basket_id = 'ToArcBasket';
+INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('ARCHIVISTE', 'ToArcBasket', 38, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
+DELETE FROM groupbasket WHERE basket_id = 'SentArcBasket';
+INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('ARCHIVISTE', 'SentArcBasket', 39, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
+DELETE FROM groupbasket WHERE basket_id = 'AckArcBasket';
+INSERT INTO groupbasket (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) VALUES ('ARCHIVISTE', 'AckArcBasket', 40, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
 
 
 -- Create Security
-TRUNCATE TABLE SECURITY;
-INSERT INTO security (group_id, coll_id, where_clause, maarch_comment, can_insert, can_update, can_delete, rights_bitmask, mr_start_date, mr_stop_date, where_target) values ('COURRIER', 'letterbox_coll', 'typist=@user', 'Les courriers que j''ai numérisé','N','N','N', 25, NULL, NULL, 'DOC');
-INSERT INTO security (group_id, coll_id, where_clause, maarch_comment, can_insert, can_update, can_delete, rights_bitmask, mr_start_date, mr_stop_date, where_target) values ('AGENT', 'letterbox_coll', 'DESTINATION = @my_primary_entity or DESTINATION in (@subentities[@my_primary_entity])', 'Les courriers de mes services et sous-services','N','N','N', 25, NULL, NULL, 'DOC');
-INSERT INTO security (group_id, coll_id, where_clause, maarch_comment, can_insert, can_update, can_delete, rights_bitmask, mr_start_date, mr_stop_date, where_target) values ('RESP_COURRIER', 'letterbox_coll', 'DESTINATION = @my_primary_entity or DESTINATION in (@subentities[@my_primary_entity])', 'Les courriers de mes services et sous-services','N','N','N', 9, NULL, NULL, 'DOC');
-INSERT INTO security (group_id, coll_id, where_clause, maarch_comment, can_insert, can_update, can_delete, rights_bitmask, mr_start_date, mr_stop_date, where_target) values ('RESPONSABLE', 'letterbox_coll', 'DESTINATION = @my_primary_entity or DESTINATION in (@subentities[@my_primary_entity])', 'Les courriers de mes services et sous-services','N','N','N', 25, NULL, NULL, 'DOC');
-INSERT INTO security (group_id, coll_id, where_clause, maarch_comment, can_insert, can_update, can_delete, rights_bitmask, mr_start_date, mr_stop_date, where_target) values ('ADMINISTRATEUR', 'letterbox_coll', '1=1', 'Tous les courriers','N','N','N', 24, NULL, NULL, 'DOC');
-INSERT INTO security (group_id, coll_id, where_clause, maarch_comment, can_insert, can_update, can_delete, rights_bitmask, mr_start_date, mr_stop_date, where_target) values ('ELU', 'letterbox_coll', 'DESTINATION = @my_primary_entity or DESTINATION in (@subentities[@my_primary_entity])', 'Les courriers de mes services et sous-services','N','N','N', 0, NULL, NULL, 'DOC');
+TRUNCATE TABLE security;
+DELETE FROM security WHERE group_id = 'COURRIER';
+INSERT INTO security (group_id, coll_id, where_clause, maarch_comment, can_insert, can_update, can_delete, rights_bitmask, mr_start_date, mr_stop_date, where_target) VALUES ('COURRIER', 'letterbox_coll', 'typist=@user', 'Les courriers que j''ai numérisé','N','N','N', 25, NULL, NULL, 'DOC');
+DELETE FROM security WHERE group_id = 'AGENT';
+INSERT INTO security (group_id, coll_id, where_clause, maarch_comment, can_insert, can_update, can_delete, rights_bitmask, mr_start_date, mr_stop_date, where_target) VALUES ('AGENT', 'letterbox_coll', 'destination in (@my_entities, @subentities[@my_primary_entity])', 'Les courriers de mes services et sous-services','N','N','N', 25, NULL, NULL, 'DOC');
+DELETE FROM security WHERE group_id = 'RESP_COURRIER';
+INSERT INTO security (group_id, coll_id, where_clause, maarch_comment, can_insert, can_update, can_delete, rights_bitmask, mr_start_date, mr_stop_date, where_target) VALUES ('RESP_COURRIER', 'letterbox_coll', '1=1', 'Tous les courriers','N','N','N', 9, NULL, NULL, 'DOC');
+DELETE FROM security WHERE group_id = 'RESPONSABLE';
+INSERT INTO security (group_id, coll_id, where_clause, maarch_comment, can_insert, can_update, can_delete, rights_bitmask, mr_start_date, mr_stop_date, where_target) VALUES ('RESPONSABLE', 'letterbox_coll', 'destination in (@my_entities, @subentities[@my_primary_entity])', 'Les courriers de mes services et sous-services','N','N','N', 25, NULL, NULL, 'DOC');
+DELETE FROM security WHERE group_id = 'ADMINISTRATEUR';
+INSERT INTO security (group_id, coll_id, where_clause, maarch_comment, can_insert, can_update, can_delete, rights_bitmask, mr_start_date, mr_stop_date, where_target) VALUES ('ADMINISTRATEUR', 'letterbox_coll', '1=1', 'Tous les courriers','N','N','N', 24, NULL, NULL, 'DOC');
+DELETE FROM security WHERE group_id = 'DIRECTEUR';
+INSERT INTO security (group_id, coll_id, where_clause, maarch_comment, can_insert, can_update, can_delete, rights_bitmask, mr_start_date, mr_stop_date, where_target) VALUES ('DIRECTEUR', 'letterbox_coll', '1=1', 'Tous les courriers','N','N','N', 25, NULL, NULL, 'DOC');
+DELETE FROM security WHERE group_id = 'ELU';
+INSERT INTO security (group_id, coll_id, where_clause, maarch_comment, can_insert, can_update, can_delete, rights_bitmask, mr_start_date, mr_stop_date, where_target) VALUES ('ELU', 'letterbox_coll', 'destination in (@my_entities, @subentities[@my_primary_entity])', 'Les courriers de mes services et sous-services','N','N','N', 0, NULL, NULL, 'DOC');
+DELETE FROM security WHERE group_id = 'ARCHIVISTE';
+INSERT INTO security (group_id, coll_id, where_clause, maarch_comment, can_insert, can_update, can_delete, rights_bitmask, mr_start_date, mr_stop_date, where_target) VALUES ('ARCHIVISTE', 'letterbox_coll', '1=1', 'Tous les courriers','N','N','N', 0, NULL, NULL, 'DOC');
 
 -- Donnees manuelles
 ------------
@@ -752,8 +993,6 @@ INSERT INTO docservers (docserver_id, docserver_type_id, device_label, is_readon
 INSERT INTO docservers (docserver_id, docserver_type_id, device_label, is_readonly, enabled, size_limit_number, actual_size_number, path_template, ext_docserver_info, chain_before, chain_after, creation_date, closing_date, coll_id, priority_number, docserver_location_id, adr_priority_number) VALUES ('TNL', 'TNL', 'Server for thumbnails of documents', 'N', 'Y', 50000000000, 0, '/opt/maarch/docservers/thumbnails_mlb/', NULL, NULL, NULL, '2015-03-16 14:47:49.197164', NULL, 'letterbox_coll', 11, 'NANTERRE', 3);
 INSERT INTO docservers (docserver_id, docserver_type_id, device_label, is_readonly, enabled, size_limit_number, actual_size_number, path_template, ext_docserver_info, chain_before, chain_after, creation_date, closing_date, coll_id, priority_number, docserver_location_id, adr_priority_number) VALUES ('TEMPLATES', 'TEMPLATES', '[system] Templates', 'N', 'Y', 50000000000, 71511, '/opt/maarch/docservers/templates/', NULL, NULL, NULL, '2012-04-01 14:49:05.095119', NULL, 'templates', 1, 'NANTERRE', 1);
 INSERT INTO docservers (docserver_id, docserver_type_id, device_label, is_readonly, enabled, size_limit_number, actual_size_number, path_template, ext_docserver_info, chain_before, chain_after, creation_date, closing_date, coll_id, priority_number, docserver_location_id, adr_priority_number) VALUES ('FASTHD_MAN', 'FASTHD', 'Fast internal disc bay for letterbox mode', 'N', 'Y', 50000000000, 1290730, '/opt/maarch/docservers/manual/', NULL, NULL, NULL, '2011-01-13 14:47:49.197164', NULL, 'letterbox_coll', 10, 'NANTERRE', 2);
-INSERT INTO docservers (docserver_id, docserver_type_id, device_label, is_readonly, enabled, size_limit_number, actual_size_number, path_template, ext_docserver_info, chain_before, chain_after, creation_date, closing_date, coll_id, priority_number, docserver_location_id, adr_priority_number) VALUES ('FASTHD_ATTACH', 'FASTHD', 'Fast internal disc bay for attachments', 'N', 'Y', 50000000000, 1, '/opt/maarch/docservers/manual_attachments/', NULL, NULL, NULL, '2011-01-13 14:47:49.197164', NULL, 'attachments_coll', 2, 'NANTERRE', 3);
-
 ------------
 --SUPERADMIN USER
 ------------
@@ -794,16 +1033,10 @@ TRUNCATE TABLE status;
 INSERT INTO status (id, label_status, is_system, is_folder_status, img_filename, maarch_module, can_be_searched, can_be_modified) VALUES ('COU', 'En cours', 'Y', 'N', 'fm-letter-status-inprogress', 'apps', 'Y', 'Y');
 INSERT INTO status (id, label_status, is_system, is_folder_status, img_filename, maarch_module, can_be_searched, can_be_modified) VALUES ('DEL', 'Supprimé', 'Y', 'N', 'fm-letter-del', 'apps', 'N', 'Y');
 INSERT INTO status (id, label_status, is_system, is_folder_status, img_filename, maarch_module, can_be_searched, can_be_modified) VALUES ('END', 'Clos / fin du workflow', 'Y', 'N', 'fm-letter-status-end', 'apps', 'Y', 'Y');
-INSERT INTO status (id, label_status, is_system, is_folder_status, img_filename, maarch_module, can_be_searched, can_be_modified) VALUES ('NEW', 'Nouveau', 'Y', 'N', 'fm-letter-status-new', 'apps', 'Y', 'Y');
+INSERT INTO status (id, label_status, is_system, is_folder_status, img_filename, maarch_module, can_be_searched, can_be_modified) VALUES ('NEW', 'Nouveau courrier pour le service', 'Y', 'N', 'fm-letter-status-new', 'apps', 'Y', 'Y');
 INSERT INTO status (id, label_status, is_system, is_folder_status, img_filename, maarch_module, can_be_searched, can_be_modified) VALUES ('RET', 'Retour courrier ou document en qualification', 'N', 'N', 'fm-letter-status-rejected', 'apps', 'Y', 'Y');
-INSERT INTO status (id, label_status, is_system, is_folder_status, img_filename, maarch_module, can_be_searched, can_be_modified) VALUES ('VAL', 'A Valider', 'Y', 'N', 'fm-letter-status-aval', 'apps', 'Y', 'Y');
+INSERT INTO status (id, label_status, is_system, is_folder_status, img_filename, maarch_module, can_be_searched, can_be_modified) VALUES ('VAL', 'Courrier signalé à instruire', 'Y', 'N', 'fm-letter-status-aval', 'apps', 'Y', 'Y');
 INSERT INTO status (id, label_status, is_system, is_folder_status, img_filename, maarch_module, can_be_searched, can_be_modified) VALUES ('INIT', 'Nouveau courrier ou document non qualifié', 'Y', 'N', 'fm-letter-status-attr', 'apps', 'Y', 'Y');
-INSERT INTO status (id, label_status, is_system, is_folder_status, img_filename, maarch_module, can_be_searched, can_be_modified) VALUES ('FOLDNEW', '[dossier] Nouveau dossier', 'N', 'Y', 'fm-classification-plan-l1', 'folder', 'N', 'Y');
-INSERT INTO status (id, label_status, is_system, is_folder_status, img_filename, maarch_module, can_be_searched, can_be_modified) VALUES ('FOLDVAL', '[dossier] Dossier validé', 'N', 'Y', 'fm-classification-plan-l1', 'folder', 'N', 'Y');
-INSERT INTO status (id, label_status, is_system, is_folder_status, img_filename, maarch_module, can_be_searched, can_be_modified) VALUES ('FOLDREJ', '[dossier] Dossier rejeté', 'N', 'Y', 'fm-classification-plan-l1', 'folder', 'N', 'Y');
-INSERT INTO status (id, label_status, is_system, is_folder_status, img_filename, maarch_module, can_be_searched, can_be_modified) VALUES ('FOLDTRT', '[dossier] Dossier traité', 'N', 'Y', 'fm-classification-plan-l1', 'folder', 'N', 'Y');
-INSERT INTO status (id, label_status, is_system, is_folder_status, img_filename, maarch_module, can_be_searched, can_be_modified) VALUES ('FOLDNOT', '[dossier] Dossier incomplet', 'N', 'Y', 'fm-classification-plan-l1', 'folder', 'N', 'Y');
-INSERT INTO status (id, label_status, is_system, is_folder_status, img_filename, maarch_module, can_be_searched, can_be_modified) VALUES ('FOLDDEL', '[dossier] Dossier supprimé', 'N', 'Y', 'fm-classification-plan-l1', 'folder', 'N', 'Y');
 INSERT INTO status (id, label_status, is_system, is_folder_status, img_filename, maarch_module, can_be_searched, can_be_modified) VALUES ('EAVIS', 'Avis demandé', 'N', 'N', 'fa-lightbulb-o', 'apps', 'Y', 'Y');
 INSERT INTO status (id, label_status, is_system, is_folder_status, img_filename, maarch_module, can_be_searched, can_be_modified) VALUES ('EENV', 'A e-envoyer', 'N', 'N', 'fm-letter-status-aenv', 'apps', 'Y', 'Y');
 INSERT INTO status (id, label_status, is_system, is_folder_status, img_filename, maarch_module, can_be_searched, can_be_modified) VALUES ('ESIG', 'A e-signer', 'N', 'N', 'fm-file-fingerprint', 'apps', 'Y', 'Y');
@@ -816,6 +1049,10 @@ INSERT INTO status (id, label_status, is_system, is_folder_status, img_filename,
 INSERT INTO status (id, label_status, is_system, is_folder_status, img_filename, maarch_module, can_be_searched, can_be_modified) VALUES ('TRA', 'PJ traitée', 'Y', 'N', 'fm-letter-end', 'apps', 'Y', 'Y');
 INSERT INTO status (id, label_status, is_system, is_folder_status, img_filename, maarch_module, can_be_searched, can_be_modified) VALUES ('OBS', 'PJ obsolète', 'Y', 'N', 'fm-letter-end', 'apps', 'Y', 'Y');
 INSERT INTO status (id, label_status, is_system, is_folder_status, img_filename, maarch_module, can_be_searched, can_be_modified) VALUES ('TMP', 'PJ brouillon', 'Y', 'N', 'fm-letter-cou', 'apps', 'N', 'N');
+INSERT INTO status (id, label_status, is_system, is_folder_status, img_filename, maarch_module, can_be_searched, can_be_modified) VALUES ('EXP_SEDA', 'A archiver', 'Y', 'N', 'fm-letter-status-acla', 'apps', 'Y', 'Y');
+INSERT INTO status (id, label_status, is_system, is_folder_status, img_filename, maarch_module, can_be_searched, can_be_modified) VALUES ('SEND_SEDA ', 'Courrier envoyé au système d''archivage', 'Y', 'N', 'fm-letter-status-inprogress', 'apps', 'Y', 'Y');
+INSERT INTO status (id, label_status, is_system, is_folder_status, img_filename, maarch_module, can_be_searched, can_be_modified) VALUES ('ACK_SEDA ', 'Accusé de reception reçu', 'Y', 'N', 'fm-letter-status-acla', 'apps', 'Y', 'Y');
+INSERT INTO status (id, label_status, is_system, is_folder_status, img_filename, maarch_module, can_be_searched, can_be_modified) VALUES ('REPLY_SEDA', 'Courrier archivé', 'Y', 'N', 'fm-letter-status-acla', 'apps', 'Y', 'Y');
 ------------
 --PARAMETERS
 ------------
@@ -825,7 +1062,7 @@ INSERT INTO parameters (id, param_value_string, param_value_int, param_value_dat
 INSERT INTO parameters (id, param_value_string, param_value_int, param_value_date) VALUES ('folder_id_increment', '', 200, NULL);
 INSERT INTO parameters (id, param_value_string, param_value_int, param_value_date) VALUES ('work_batch_autoimport_id', NULL, 1, NULL);
 INSERT INTO parameters (id, param_value_string, param_value_int, param_value_date) VALUES ('postindexing_workbatch', NULL, 1, NULL);
-INSERT INTO parameters (id, param_value_string, param_value_int, param_value_date) VALUES ('database_version', NULL, 170, NULL);
+INSERT INTO parameters (id, param_value_string, param_value_int, param_value_date) VALUES ('database_version', NULL, 1706, NULL);
 ------------
 --DIFFLIST_TYPES
 ------------
@@ -838,11 +1075,12 @@ INSERT INTO difflist_types (difflist_type_id, difflist_type_label, difflist_type
 --ACTIONS
 ------------
 TRUNCATE TABLE actions;
-INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (1, 'redirect', 'Rediriger', '_NOSTATUS_', 'Y', 'N', 'Y', 'redirect', 'Y', 'entities', 'N', NULL);
+INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (1, 'redirect', 'Affecter à un service', 'NEW', 'Y', 'N', 'Y', 'redirect', 'Y', 'entities', 'N', NULL);
 INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (2, 'to_validate', 'Valider', 'VAL', 'Y', 'N', 'N', 'confirm_status', 'N', 'apps', 'N', NULL);
-INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (3, '', 'Renvoyer en qualification', 'INIT', 'N', 'N', 'Y', 'confirm_status', 'Y', 'apps', 'N', NULL);
+INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (3, '', 'Retourner au service Courrier', 'RET', 'N', 'N', 'Y', 'confirm_status', 'Y', 'apps', 'N', NULL);
 INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (4, '', 'Enregistrer les modifications', '_NOSTATUS_', 'N', 'N', 'Y', 'process', 'N', 'apps', 'N', NULL);
 INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (5, '', 'Remettre en traitement', 'COU', 'N', 'N', 'Y', '', 'Y', 'apps', 'N', NULL);
+INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (6, '', 'Classer sans suite', 'SSUITE', 'N', 'N', 'Y', '', 'Y', 'apps', 'N', NULL);
 INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (18, 'indexing', 'Valider courrier', 'NEW', 'N', 'N', 'Y', 'validate_mail', 'Y', 'apps', 'N', NULL);
 INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (19, '', 'Traiter courrier', 'COU', 'N', 'N', 'Y', 'process', 'N', 'apps', 'N', NULL);
 INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (20, '', 'Cloturer', 'END', 'N', 'N', 'Y', 'close_mail', 'Y', 'apps', 'N', NULL);
@@ -852,54 +1090,42 @@ INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_
 INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (37, '', 'Donner un avis', '_NOSTATUS_', 'N', 'N', 'Y','avis_workflow_simple', 'Y', 'apps', 'N', NULL);
 INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (100, '', 'Voir le document', '', 'N', 'N', 'Y', 'view', 'N', 'apps', 'N', NULL);
 INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (101, '', 'Envoyer pour visa', 'VIS', 'N', 'N', 'Y', '', 'Y', 'apps', 'N', NULL);
-INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (102, '', 'Viser', 'SIG', 'N', 'N', 'Y', '', 'Y', 'apps', 'N', NULL);
-INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (103, '', 'Rejeter', 'UNS', 'N', 'N', 'Y', '', 'Y', 'apps', 'N', NULL);
 INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (112, 'indexing', 'Enregistrer', '_NOSTATUS_', 'N', 'N', 'Y', 'index_mlb', 'Y', 'apps', 'N', NULL);
 INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (113, 'redirect', 'Ajouter en copie', '', 'N', 'N', 'Y', 'put_in_copy', 'Y', 'apps', 'N', NULL);
-INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (114, '', 'Retirer le courrier de la corbeille', '', 'N', 'N', 'Y', 'mark_as_read', 'Y', 'apps', 'N', NULL);
+INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (114, '', 'Marquer comme lu', '', 'N', 'N', 'Y', 'mark_as_read', 'N', 'apps', 'N', NULL);
 INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (200, '', 'Envoyer l''AR pour e-signature', 'ESIGAR', 'N', 'N', 'Y', 'redirect_visa_sign', 'Y', 'visa', 'N', NULL);
 INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (210, '', 'Transmettre l''AR signé', 'EENVAR', 'N', 'N', 'Y', 'confirm_status', 'Y', 'visa', 'N', NULL);
-INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (300, 'redirect', '[dossier] Rediriger le dossier', '_NOSTATUS_', 'Y', 'Y', 'Y', 'redirect_folder', 'Y', 'folder', 'N', NULL);
-INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (301, '', '[dossier] Valider le dossier', 'FOLDVAL', 'N', 'Y', 'Y', 'confirm_status', 'Y', 'folder', 'N', NULL);
-INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (302, '', '[dossier] Supprimer le dossier', 'FOLDDEL', 'N', 'Y', 'Y', 'confirm_status', 'Y', 'folder', 'N', NULL);
-INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (303, '', '[dossier] Rejeter le dossier', 'FOLDREJ', 'N', 'Y', 'Y', 'confirm_status', 'Y', 'folder', 'N', NULL);
-INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (304, '', '[dossier] Completer le dossier', 'FOLDNOT', 'N', 'Y', 'Y', 'confirm_status', 'Y', 'folder', 'N', NULL);
-INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (305, '', '[dossier] Dossier traité', 'FOLDTRT', 'N', 'Y', 'Y', 'confirm_status', 'Y', 'folder', 'N', NULL);
-INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (400, '', 'Envoyer le projet de réponse', 'PVAL', 'N', 'N', 'Y', '', 'Y', 'visa', 'N', NULL);
-INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (401, '', 'Préparer le circuit de visa', '_NOSTATUS_', 'N', 'N', 'Y', 'prepare_visa', 'Y', 'visa', 'N', NULL);
-INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (402, '', 'Transmettre le circuit de visa', 'CVAL', 'N', 'N', 'Y', '', 'Y', 'visa', 'N', NULL);
-INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (403, '', 'Envoyer pour e-visa et signature papier', 'EVIS', 'N', 'N', 'Y', '', 'Y', 'visa', 'N', NULL);
-INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (404, '', 'Valider et envoyer pour impression', 'DIMP', 'N', 'N', 'Y', '', 'Y', 'visa', 'N', NULL);
 INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (405, '', 'Viser le courrier', '_NOSTATUS_', 'N', 'N', 'Y', 'visa_mail', 'Y', 'visa', 'N', NULL);
 INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (407, '', 'Renvoyer pour traitement', 'COU', 'N', 'N', 'Y', 'confirm_status', 'Y', 'visa', 'N', NULL);
 INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (410, '', 'Transmettre la réponse signée', 'EENV', 'N', 'N', 'Y', 'interrupt_visa', 'Y', 'visa', 'N', NULL);
 INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (411, '', 'Transmettre pour classement', 'CLAS', 'N', 'N', 'Y', '', 'Y', 'visa', 'N', NULL);
-INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (412, '', 'Imprimer le dossier', 'WAIT', 'N', 'N', 'Y', 'print_folder', 'Y', 'visa', 'N', NULL);
-INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (413, '', 'E-envoyer un dossier', '_NOSTATUS_', 'N', 'N', 'Y', 'send_email', 'Y', 'visa', 'N', NULL);
 INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (414, '', 'Envoyer pour e-visa et e-signature', '_NOSTATUS_', 'N', 'N', 'Y', 'send_to_visa', 'Y', 'visa', 'N', NULL);
 INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (415, '', 'Envoyer pour e-signature', 'ESIG', 'N', 'N', 'Y', 'redirect_visa_sign', 'Y', 'visa', 'N', NULL);
 INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (416, '', 'Viser et poursuivre le circuit', '_NOSTATUS_', 'N', 'N', 'Y', 'visa_workflow', 'Y', 'visa', 'N', NULL);
 INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (417, '', 'Envoyer l''AR', 'SVX', 'N', 'N', 'Y', 'send_to_contact_with_mandatory_attachment', 'Y', 'apps', 'N', NULL);
+INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (500, '', 'Transférer au système d''archivage', 'SEND_SEDA', 'N', 'N', 'Y', 'export_seda', 'Y', 'export_seda', 'N', NULL);
+INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (501, '', 'Valider la réception du courrier par le système d''archivage', 'ACK_SEDA', 'N', 'N', 'Y', 'ack_seda', 'Y', 'apps', 'N', NULL);
+INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (502, '', 'Valider l''archivage du courrier', 'REPLY_SEDA', 'N', 'N', 'Y', 'reply_seda', 'Y', 'apps', 'N', NULL);
+INSERT INTO actions (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) VALUES (503, '', 'Supprimer courrier', 'DEL', 'N', 'N', 'Y', 'del_seda', 'Y', 'apps', 'N', NULL);
 Select setval('actions_id_seq', (select max(id)+1 from actions), false);
 ------------
 -- BANNETTE SECONDAIRE POUR LE GROUPE DES SUPERVISEURS DE COURRIER
 ------------
 TRUNCATE TABLE user_baskets_secondary;
-INSERT INTO user_baskets_secondary (system_id, user_id, group_id, basket_id) VALUES (1, 'ddaull', 'RESPONSABLE', 'EvisBasket');
+INSERT INTO user_baskets_secondary (user_id, group_id, basket_id) VALUES ( 'ddaull', 'RESPONSABLE', 'EvisBasket');
+INSERT INTO user_baskets_secondary (user_id, group_id, basket_id) VALUES ( 'rrenaud', 'DIRECTEUR', 'ValidationBasket');
+INSERT INTO user_baskets_secondary (user_id, group_id, basket_id) VALUES ( 'eerina', 'DIRECTEUR', 'ValidationBasket');
 Select setval('user_baskets_secondary_seq', (select max(system_id)+1 from user_baskets_secondary), false);
 ------------
 --ACTIONS_GROUPBASKETS
 ------------
 TRUNCATE TABLE actions_groupbaskets;
-INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (21, '', 'COURRIER', 'RetourCourrier', 'N', 'N', 'Y');
+INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (112, '', 'COURRIER', 'IndexingBasket', 'N', 'N', 'Y');
+INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (22, '', 'COURRIER', 'RetourCourrier', 'N', 'N', 'Y');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (22, '', 'COURRIER', 'QualificationBasket', 'N', 'N', 'Y');
-INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (21, '', 'COURRIER', 'IndexingBasket', 'N', 'N', 'Y');
-INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (22, '', 'COURRIER', 'InitBasket', 'N', 'N', 'Y');
-INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (22, '', 'COURRIER', 'EmailsToQualify', 'N', 'N', 'Y');
-INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (20, '', 'COURRIER', 'AlloMairieBasket', 'N', 'Y', 'N');
-INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (1, '', 'COURRIER', 'AlloMairieBasket', 'Y', 'Y', 'N');
-INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (19, '', 'COURRIER', 'AlloMairieBasket', 'N', 'N', 'Y');
+
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (100, '', 'AGENT', 'CopyMailBasket', 'N', 'N', 'Y');
+INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (114, '', 'AGENT', 'CopyMailBasket', 'Y', 'N', 'N');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (1, '', 'AGENT', 'MyBasket', 'N', 'Y', 'N');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (20, '', 'AGENT', 'MyBasket', 'N', 'Y', 'N');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (414, '', 'AGENT', 'MyBasket', 'N', 'Y', 'N');
@@ -907,6 +1133,8 @@ INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id,
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (19, '', 'AGENT', 'MyBasket', 'N', 'N', 'Y');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (36, '', 'AGENT', 'MyBasket', 'N', 'Y', 'N');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (200, '', 'AGENT', 'MyBasket', 'N', 'Y', 'N');
+INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (6, '', 'AGENT', 'MyBasket', 'N', 'Y', 'N');
+INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (100, '', 'AGENT', 'InValidationBasket', 'N', 'N', 'Y');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (4, '', 'AGENT', 'RetAvisBasket', 'N', 'N', 'Y');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (5, '', 'AGENT', 'RetAvisBasket', 'Y', 'Y', 'N');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (112, '', 'AGENT', 'IndexingBasket', 'N', 'N', 'Y');
@@ -917,28 +1145,36 @@ INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id,
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (20, '', 'AGENT', 'EenvBasket', 'Y', 'N', 'N');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (4, '', 'AGENT', 'EenvARBasket', 'N', 'N', 'Y');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (417, '', 'AGENT', 'EenvARBasket', 'N', 'Y', 'N');
+
+INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (18, '', 'RESP_COURRIER', 'ValidationBasket', 'N', 'N', 'Y');
+INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (1, '', 'RESP_COURRIER', 'ValidationBasket', 'N', 'Y', 'N');
+INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (3, '', 'RESP_COURRIER', 'ValidationBasket', 'N', 'Y', 'N');
+INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (6, '', 'RESP_COURRIER', 'ValidationBasket', 'N', 'Y', 'N');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (100, '', 'RESP_COURRIER', 'CopyMailBasket', 'N', 'N', 'Y');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (114, '', 'RESP_COURRIER', 'CopyMailBasket', 'Y', 'N', 'N');
-INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (21, '', 'RESP_COURRIER', 'RetourCourrier', 'N', 'N', 'Y');
+INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (22, '', 'RESP_COURRIER', 'RetourCourrier', 'N', 'N', 'Y');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (20, '', 'RESP_COURRIER', 'MyBasket', 'N', 'Y', 'N');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (1, '', 'RESP_COURRIER', 'MyBasket', 'N', 'Y', 'N');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (3, '', 'RESP_COURRIER', 'MyBasket', 'N', 'Y', 'N');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (19, '', 'RESP_COURRIER', 'MyBasket', 'N', 'N', 'Y');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (414, '', 'RESP_COURRIER', 'MyBasket', 'N', 'Y', 'N');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (36, '', 'RESP_COURRIER', 'MyBasket', 'N', 'Y', 'N');
-INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (3, '', 'RESP_COURRIER', 'ValidationBasket', 'N', 'Y', 'N');
-INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (18, '', 'RESP_COURRIER', 'ValidationBasket', 'N', 'N', 'Y');
-INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (20, '', 'RESP_COURRIER', 'ValidationBasket', 'N', 'Y', 'N');
+INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (6, '', 'RESP_COURRIER', 'MyBasket', 'N', 'Y', 'N');
+INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (503, '', 'RESP_COURRIER', 'MyBasket', 'N', 'Y', 'N');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (112, '', 'RESP_COURRIER', 'IndexingBasket', 'N', 'N', 'Y');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (37, '', 'RESP_COURRIER', 'DdeAvisBasket', 'N', 'Y', 'N');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (4, '', 'RESP_COURRIER', 'DdeAvisBasket', 'N', 'N', 'Y');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (100, '', 'RESP_COURRIER', 'SupAvisBasket', 'N', 'N', 'Y');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (4, '', 'RESP_COURRIER', 'RetAvisBasket', 'N', 'N', 'Y');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (5, '', 'RESP_COURRIER', 'RetAvisBasket', 'Y', 'Y', 'N');
+
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (1, '', 'RESPONSABLE', 'MyBasket', 'N', 'Y', 'N');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (20, '', 'RESPONSABLE', 'MyBasket', 'N', 'Y', 'N');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (19, '', 'RESPONSABLE', 'MyBasket', 'N', 'N', 'Y');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (414, '', 'RESPONSABLE', 'MyBasket', 'N', 'Y', 'N');
+INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (6, '', 'RESPONSABLE', 'MyBasket', 'N', 'Y', 'N');
+INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (503, '', 'RESPONSABLE', 'MyBasket', 'N', 'Y', 'N');
+INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (100, '', 'RESPONSABLE', 'InValidationBasket', 'N', 'N', 'Y');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (100, '', 'RESPONSABLE', 'CopyMailBasket', 'N', 'N', 'Y');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (113, '', 'RESPONSABLE', 'CopyMailBasket', 'Y', 'N', 'N');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (114, '', 'RESPONSABLE', 'CopyMailBasket', 'Y', 'N', 'N');
@@ -947,21 +1183,15 @@ INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id,
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (3, '', 'RESPONSABLE', 'DepartmentBasket', 'Y', 'N', 'N');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (100, '', 'RESPONSABLE', 'DepartmentBasket', 'N', 'N', 'Y');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (112, '', 'RESPONSABLE', 'IndexingBasket', 'N', 'N', 'Y');
-INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (36, '', 'RESPONSABLE', 'MyBasket', 'N', 'Y', 'N');
+INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (36, '', 'RESPONSABLE', 'MyBasket', 'N', 'Y', 'Y');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (37, '', 'RESPONSABLE', 'DdeAvisBasket', 'N', 'Y', 'N');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (4, '', 'RESPONSABLE', 'DdeAvisBasket', 'N', 'N', 'Y');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (100, '', 'RESPONSABLE', 'SupAvisBasket', 'N', 'N', 'Y');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (4, '', 'RESPONSABLE', 'RetAvisBasket', 'N', 'N', 'Y');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (5, '', 'RESPONSABLE', 'RetAvisBasket', 'Y', 'Y', 'N');
-INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (300, '', 'RESPONSABLE', 'FoldersDepartmentBasket', 'Y', 'N', 'N');
-INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (301, '', 'RESPONSABLE', 'FoldersDepartmentBasket', 'Y', 'N', 'N');
-INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (302, '', 'RESPONSABLE', 'FoldersDepartmentBasket', 'Y', 'N', 'N');
-INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (303, '', 'RESPONSABLE', 'FoldersDepartmentBasket', 'Y', 'N', 'N');
-INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (304, '', 'RESPONSABLE', 'FoldersDepartmentBasket', 'Y', 'N', 'N');
-INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (305, '', 'RESPONSABLE', 'FoldersDepartmentBasket', 'Y', 'N', 'N');
+INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (405, '', 'RESPONSABLE', 'EvisBasket', 'N', 'N', 'Y');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (408, '', 'RESPONSABLE', 'EvisBasket', 'N', 'Y', 'N');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (407, '', 'RESPONSABLE', 'EvisBasket', 'N', 'Y', 'N');
-INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (405, '', 'RESPONSABLE', 'EvisBasket', 'N', 'N', 'Y');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (416, '', 'RESPONSABLE', 'EvisBasket', 'N', 'Y', 'N');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (405, '', 'RESPONSABLE', 'EsigBasket', 'N', 'N', 'Y');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (407, '', 'RESPONSABLE', 'EsigBasket', 'N', 'Y', 'N');
@@ -969,53 +1199,67 @@ INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id,
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (405, '', 'RESPONSABLE', 'EsigARBasket', 'N', 'N', 'Y');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (407, '', 'RESPONSABLE', 'EsigARBasket', 'N', 'Y', 'N');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (210, '', 'RESPONSABLE', 'EsigARBasket', 'Y', 'N', 'N');
-INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (100, '', 'ELU', 'DepartmentBasket', 'N', 'N', 'Y');
-INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (20, '', 'ELU', 'MyBasket', 'N', 'Y', 'N');
-INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (1, '', 'ELU', 'MyBasket', 'N', 'Y', 'N');
-INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (3, '', 'ELU', 'MyBasket', 'N', 'Y', 'N');
+
+INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (18, '', 'DIRECTEUR', 'ValidationBasket', 'N', 'N', 'Y');
+INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (1, '', 'DIRECTEUR', 'ValidationBasket', 'N', 'Y', 'N');
+INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (3, '', 'DIRECTEUR', 'ValidationBasket', 'N', 'Y', 'N');
+INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (6, '', 'DIRECTEUR', 'ValidationBasket', 'N', 'Y', 'N');
+
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (19, '', 'ELU', 'MyBasket', 'N', 'N', 'Y');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (112, '', 'ELU', 'IndexingBasket', 'N', 'N', 'Y');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (37, '', 'ELU', 'DdeAvisBasket', 'N', 'Y', 'N');
 INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (4, '', 'ELU', 'DdeAvisBasket', 'N', 'N', 'Y');
+
+INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (500, '', 'ARCHIVISTE', 'ToArcBasket', 'Y', 'N', 'N');
+INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (501, '', 'ARCHIVISTE', 'SentArcBasket', 'Y', 'N', 'N');
+INSERT INTO actions_groupbaskets (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) VALUES (502, '', 'ARCHIVISTE', 'AckArcBasket', 'Y', 'N', 'N');
 ------------
 --GROUPBASKET_REDIRECT
 ------------
 TRUNCATE TABLE groupbasket_redirect;
-INSERT INTO groupbasket_redirect (system_id, group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES (100, 'COURRIER', 'QualificationBasket', 21, '', 'ALL_ENTITIES', 'ENTITY');
-INSERT INTO groupbasket_redirect (system_id, group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES (101, 'COURRIER', 'QualificationBasket', 22, '', 'ALL_ENTITIES', 'ENTITY');
-INSERT INTO groupbasket_redirect (system_id, group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES (102, 'COURRIER', 'IndexingBasket', 21, '', 'ALL_ENTITIES', 'ENTITY');
-INSERT INTO groupbasket_redirect (system_id, group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES (103, 'COURRIER', 'RetourCourrier', 21, '', 'ALL_ENTITIES', 'ENTITY');
-INSERT INTO groupbasket_redirect (system_id, group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES (104, 'COURRIER', 'ValidationBasket', 21, '', 'ALL_ENTITIES', 'ENTITY');
-INSERT INTO groupbasket_redirect (system_id, group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES (105, 'COURRIER', 'EmailsToQualify', 22, '', 'ALL_ENTITIES', 'ENTITY');
-INSERT INTO groupbasket_redirect (system_id, group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES (106, 'COURRIER', 'AlloMairieBasket', 1, '', 'ALL_ENTITIES', 'ENTITY');
-INSERT INTO groupbasket_redirect (system_id, group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES (107, 'AGENT', 'LateMailBasket', 21, '', 'ENTITIES_JUST_BELOW', 'ENTITY');
-INSERT INTO groupbasket_redirect (system_id, group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES (108, 'AGENT', 'MyBasket', 1, '', 'ALL_ENTITIES', 'ENTITY');
-INSERT INTO groupbasket_redirect (system_id, group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES (109, 'AGENT', 'IndexingBasket', 112, '', 'MY_ENTITIES', 'ENTITY');
-INSERT INTO groupbasket_redirect (system_id, group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES (110, 'RESP_COURRIER', 'ValidationBasket', 18, '', 'ALL_ENTITIES', 'ENTITY');
-INSERT INTO groupbasket_redirect (system_id, group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES (111, 'RESP_COURRIER', 'RetourCourrier', 21, '', 'ALL_ENTITIES', 'ENTITY');
-INSERT INTO groupbasket_redirect (system_id, group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES (112, 'RESP_COURRIER', 'MyBasket', 1, '', 'ALL_ENTITIES', 'ENTITY');
-INSERT INTO groupbasket_redirect (system_id, group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES (113, 'RESP_COURRIER', 'RetourCourrier', 1, '', 'ALL_ENTITIES', 'ENTITY');
-INSERT INTO groupbasket_redirect (system_id, group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES (114, 'RESP_COURRIER', 'IndexingBasket', 112, '', 'ALL_ENTITIES', 'ENTITY');
-INSERT INTO groupbasket_redirect (system_id, group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES (115, 'RESPONSABLE', 'MyBasket', 1, '', 'ALL_ENTITIES', 'ENTITY');
-INSERT INTO groupbasket_redirect (system_id, group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES (116, 'RESPONSABLE', 'CopyMailBasket', 113, '', 'ALL_ENTITIES', 'USERS');
-INSERT INTO groupbasket_redirect (system_id, group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES (117, 'RESPONSABLE', 'CopyMailBasket', 113, '', 'ALL_ENTITIES', 'ENTITY');
-INSERT INTO groupbasket_redirect (system_id, group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES (118, 'RESPONSABLE', 'IndexingBasket', 21, '', 'ALL_ENTITIES', 'ENTITY');
-INSERT INTO groupbasket_redirect (system_id, group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES (119, 'RESPONSABLE', 'IndexingBasket', 112, '', 'ALL_ENTITIES', 'ENTITY');
-INSERT INTO groupbasket_redirect (system_id, group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES (120, 'RESPONSABLE', 'FoldersDepartmentBasket', 300, '', 'ALL_ENTITIES', 'ENTITY');
-INSERT INTO groupbasket_redirect (system_id, group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES (121, 'RESPONSABLE', 'FoldersDepartmentBasket', 300, '', 'ALL_ENTITIES', 'USERS');
-INSERT INTO groupbasket_redirect (system_id, group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES (122, 'ELU', 'MyBasket', 1, '', 'ALL_ENTITIES', 'ENTITY');
-INSERT INTO groupbasket_redirect (system_id, group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES (123, 'ELU', 'IndexingBasket', 112, '', 'ALL_ENTITIES', 'ENTITY');
+INSERT INTO groupbasket_redirect (group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES ('COURRIER', 'IndexingBasket', 112, '', 'ALL_ENTITIES', 'ENTITY');
+
+INSERT INTO groupbasket_redirect (group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES ('COURRIER', 'QualificationBasket', 22, '', 'ALL_ENTITIES', 'ENTITY');
+INSERT INTO groupbasket_redirect (group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES ('COURRIER', 'RetourCourrier', 22, '', 'ALL_ENTITIES', 'ENTITY');
+INSERT INTO groupbasket_redirect (group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES ('COURRIER', 'ValidationBasket', 22, '', 'ALL_ENTITIES', 'ENTITY');
+
+INSERT INTO groupbasket_redirect (group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES ('AGENT', 'LateMailBasket', 21, '', 'ENTITIES_JUST_BELOW', 'ENTITY');
+INSERT INTO groupbasket_redirect (group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES ('AGENT', 'MyBasket', 1, '', 'ALL_ENTITIES', 'ENTITY');
+INSERT INTO groupbasket_redirect (group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES ('AGENT', 'IndexingBasket', 112, '', 'MY_ENTITIES', 'ENTITY');
+INSERT INTO groupbasket_redirect (group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES ('AGENT', 'IndexingBasket', 112, '', 'ENTITIES_BELOW', 'ENTITY');
+
+INSERT INTO groupbasket_redirect (group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES ('RESP_COURRIER', 'ValidationBasket', 18, '', 'ALL_ENTITIES', 'ENTITY');
+INSERT INTO groupbasket_redirect (group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES ('RESP_COURRIER', 'ValidationBasket', 1, '', 'ALL_ENTITIES', 'ENTITY');
+INSERT INTO groupbasket_redirect (group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES ('RESP_COURRIER', 'RetourCourrier', 21, '', 'ALL_ENTITIES', 'ENTITY');
+INSERT INTO groupbasket_redirect (group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES ('RESP_COURRIER', 'MyBasket', 1, '', 'ALL_ENTITIES', 'ENTITY');
+INSERT INTO groupbasket_redirect (group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES ('RESP_COURRIER', 'RetourCourrier', 1, '', 'ALL_ENTITIES', 'ENTITY');
+INSERT INTO groupbasket_redirect (group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES ('RESP_COURRIER', 'IndexingBasket', 112, '', 'ALL_ENTITIES', 'ENTITY');
+
+INSERT INTO groupbasket_redirect (group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES ('RESPONSABLE', 'MyBasket', 1, '', 'ALL_ENTITIES', 'ENTITY');
+INSERT INTO groupbasket_redirect (group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES ('RESPONSABLE', 'CopyMailBasket', 113, '', 'ALL_ENTITIES', 'USERS');
+INSERT INTO groupbasket_redirect (group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES ('RESPONSABLE', 'CopyMailBasket', 113, '', 'ALL_ENTITIES', 'ENTITY');
+INSERT INTO groupbasket_redirect (group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES ('RESPONSABLE', 'IndexingBasket', 112, '', 'MY_ENTITIES', 'ENTITY');
+INSERT INTO groupbasket_redirect (group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES ('RESPONSABLE', 'IndexingBasket', 112, '', 'ENTITIES_BELOW', 'ENTITY');
+
+INSERT INTO groupbasket_redirect (group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES ('DIRECTEUR', 'ValidationBasket', 18, '', 'ALL_ENTITIES', 'ENTITY');
+INSERT INTO groupbasket_redirect (group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES ('DIRECTEUR', 'ValidationBasket', 1, '', 'ALL_ENTITIES', 'ENTITY');
+
+INSERT INTO groupbasket_redirect (group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES ('ELU', 'MyBasket', 1, '', 'ALL_ENTITIES', 'ENTITY');
+INSERT INTO groupbasket_redirect (group_id, basket_id, action_id, entity_id, keyword, redirect_mode) VALUES ('ELU', 'IndexingBasket', 112, '', 'ALL_ENTITIES', 'ENTITY');
 Select setval('groupbasket_redirect_system_id_seq', (select max(system_id)+1 from groupbasket_redirect), false);
 ------------
 --GROUPBASKET_STATUS
 ------------
 TRUNCATE TABLE groupbasket_status;
-INSERT INTO groupbasket_status (system_id, group_id, basket_id, action_id, status_id) VALUES (1, 'AGENT', 'IndexingBasket', 112, 'END');
-INSERT INTO groupbasket_status (system_id, group_id, basket_id, action_id, status_id) VALUES (2, 'AGENT', 'IndexingBasket', 112, 'NEW');
-INSERT INTO groupbasket_status (system_id, group_id, basket_id, action_id, status_id) VALUES (3, 'RESP_COURRIER', 'IndexingBasket', 112, 'END');
-INSERT INTO groupbasket_status (system_id, group_id, basket_id, action_id, status_id) VALUES (4, 'RESP_COURRIER', 'IndexingBasket', 112, 'NEW');
-INSERT INTO groupbasket_status (system_id, group_id, basket_id, action_id, status_id) VALUES (5, 'RESPONSABLE', 'IndexingBasket', 112, 'END');
-INSERT INTO groupbasket_status (system_id, group_id, basket_id, action_id, status_id) VALUES (6, 'RESPONSABLE', 'IndexingBasket', 112, 'NEW');
+INSERT INTO groupbasket_status (group_id, basket_id, action_id, status_id) VALUES ('COURRIER', 'IndexingBasket', 112, 'NEW');
+INSERT INTO groupbasket_status (group_id, basket_id, action_id, status_id) VALUES ('COURRIER', 'IndexingBasket', 112, 'VAL');
+
+INSERT INTO groupbasket_status (group_id, basket_id, action_id, status_id) VALUES ('AGENT', 'IndexingBasket', 112, 'END');
+INSERT INTO groupbasket_status (group_id, basket_id, action_id, status_id) VALUES ('AGENT', 'IndexingBasket', 112, 'NEW');
+INSERT INTO groupbasket_status (group_id, basket_id, action_id, status_id) VALUES ('RESP_COURRIER', 'IndexingBasket', 112, 'END');
+INSERT INTO groupbasket_status (group_id, basket_id, action_id, status_id) VALUES ('RESP_COURRIER', 'IndexingBasket', 112, 'NEW');
+INSERT INTO groupbasket_status (group_id, basket_id, action_id, status_id) VALUES ('RESPONSABLE', 'IndexingBasket', 112, 'END');
+INSERT INTO groupbasket_status (group_id, basket_id, action_id, status_id) VALUES ('RESPONSABLE', 'IndexingBasket', 112, 'NEW');
 Select setval('groupbasket_status_system_id_seq', (select max(system_id)+1 from groupbasket_status), false);
 ------------
 --FOLDERTYPES
@@ -1049,19 +1293,19 @@ INSERT INTO folders (folders_system_id, folder_id, foldertype_id, parent_id, fol
 --KEYWORDS / TAGS
 ------------
 TRUNCATE TABLE tags;
-INSERT INTO tags (tag_id, tag_label, coll_id) VALUES (1, 'SEMINAIRE', 'letterbox_coll');
-INSERT INTO tags (tag_id, tag_label, coll_id) VALUES (2, 'INNOVATION', 'letterbox_coll');
-INSERT INTO tags (tag_id, tag_label, coll_id) VALUES (3, 'MAARCH', 'letterbox_coll');
-INSERT INTO tags (tag_id, tag_label, coll_id) VALUES (4, 'ENVIRONNEMENT', 'letterbox_coll');
-INSERT INTO tags (tag_id, tag_label, coll_id) VALUES (5, 'PARTENARIAT', 'letterbox_coll');
-INSERT INTO tags (tag_id, tag_label, coll_id) VALUES (6, 'JUMELAGE', 'letterbox_coll');
-INSERT INTO tags (tag_id, tag_label, coll_id) VALUES (7, 'ECONOMIE', 'letterbox_coll');
-INSERT INTO tags (tag_id, tag_label, coll_id) VALUES (8, 'ASSOCIATIONS', 'letterbox_coll');
-INSERT INTO tags (tag_id, tag_label, coll_id) VALUES (9, 'RH', 'letterbox_coll');
-INSERT INTO tags (tag_id, tag_label, coll_id) VALUES (10, 'BUDGET', 'letterbox_coll');
-INSERT INTO tags (tag_id, tag_label, coll_id) VALUES (11, 'QUARTIERS', 'letterbox_coll');
-INSERT INTO tags (tag_id, tag_label, coll_id) VALUES (12, 'LITTORAL', 'letterbox_coll');
-INSERT INTO tags (tag_id, tag_label, coll_id) VALUES (13, 'SPORT', 'letterbox_coll');
+INSERT INTO tags (tag_label, coll_id, entity_id_owner) VALUES ('SEMINAIRE', 'letterbox_coll', NULL);
+INSERT INTO tags  (tag_label, coll_id, entity_id_owner) VALUES ('INNOVATION', 'letterbox_coll', NULL);
+INSERT INTO tags  (tag_label, coll_id, entity_id_owner) VALUES ('MAARCH', 'letterbox_coll', NULL);
+INSERT INTO tags  (tag_label, coll_id, entity_id_owner) VALUES ('ENVIRONNEMENT', 'letterbox_coll', NULL);
+INSERT INTO tags  (tag_label, coll_id, entity_id_owner) VALUES ('PARTENARIAT', 'letterbox_coll', NULL);
+INSERT INTO tags  (tag_label, coll_id, entity_id_owner) VALUES ('JUMELAGE', 'letterbox_coll', NULL);
+INSERT INTO tags  (tag_label, coll_id, entity_id_owner) VALUES ('ECONOMIE', 'letterbox_coll', NULL);
+INSERT INTO tags  (tag_label, coll_id, entity_id_owner) VALUES ('ASSOCIATIONS', 'letterbox_coll', NULL);
+INSERT INTO tags  (tag_label, coll_id, entity_id_owner) VALUES ('RH', 'letterbox_coll', NULL);
+INSERT INTO tags  (tag_label, coll_id, entity_id_owner) VALUES ('BUDGET', 'letterbox_coll', NULL);
+INSERT INTO tags  (tag_label, coll_id, entity_id_owner) VALUES ('QUARTIERS', 'letterbox_coll', NULL);
+INSERT INTO tags  (tag_label, coll_id, entity_id_owner) VALUES ('LITTORAL', 'letterbox_coll', NULL);
+INSERT INTO tags  (tag_label, coll_id, entity_id_owner) VALUES ('SPORT', 'letterbox_coll', NULL);
 ------------
 --TEMPLATES
 ------------
@@ -1330,9 +1574,6 @@ INSERT INTO templates VALUES (10, '[maarch mairie] Clôture de demande', '[maarc
 </tr>
 </tbody>
 </table>', 'HTML', NULL, NULL, 'DOCX: demo_document_msoffice', '', 'doctypes');
-INSERT INTO templates (template_id, template_label, template_comment, template_content, template_type, template_path, template_file_name, template_style, template_datasource, template_target, template_attachment_type) VALUES (11, 'Passer me voir', 'Passer me voir', 'Passer me voir à mon bureau, merci.', 'TXT', NULL, NULL, 'XLSX: demo_spreadsheet_msoffice', '', 'notes', 'all');
-INSERT INTO templates (template_id, template_label, template_comment, template_content, template_type, template_path, template_file_name, template_style, template_datasource, template_target, template_attachment_type) VALUES (12, 'Compléter', 'Compléter', 'Le projet de réponse doit être complété/révisé sur les points suivants : \n\n- ', 'TXT', NULL, NULL, 'XLSX: demo_spreadsheet_msoffice', '', 'notes', 'all');
-INSERT INTO templates (template_id, template_label, template_comment, template_content, template_type, template_path, template_file_name, template_style, template_datasource, template_target, template_attachment_type) VALUES (13, 'Demande avis', 'Demande avis', 'Merci de me fournir les éléments de langage pour répondre à ce courrier.', 'TXT', NULL, NULL, 'XLSX: demo_spreadsheet_msoffice', '', 'notes', 'all');
 INSERT INTO templates (template_id, template_label, template_comment, template_content, template_type, template_path, template_file_name, template_style, template_datasource, template_target, template_attachment_type) VALUES (20, 'Accompagnement courriel', 'Modèle de courriel d''''accompagnement', '<p>Bonjour,</p>
 <p>En r&eacute###ponse &agrave### votre courrier en date du [res_letterbox.doc_date], veuillez trouver notre r&eacute###ponse en pi&egrave###ce-jointe.</p>
 <p>Cordialement,</p>
@@ -1346,358 +1587,91 @@ INSERT INTO templates (template_id, template_label, template_comment, template_c
 INSERT INTO templates (template_id, template_label, template_comment, template_content, template_type, template_path, template_file_name, template_style, template_datasource, template_target, template_attachment_type) VALUES (27, 'Réponse avec transmission LO', 'Réponse avec transmission LO', '', 'OFFICE', '0000#', 'rep_transmission.odt', 'ODT: rep_transmission', 'letterbox_attachment', 'attachments', 'response_project');
 INSERT INTO templates (template_id, template_label, template_comment, template_content, template_type, template_path, template_file_name, template_style, template_datasource, template_target, template_attachment_type) VALUES (28, 'Transmission LO', 'Transmission LO', '', 'OFFICE', '0000#', 'transmission.odt', 'ODT: transmission', 'letterbox_attachment', 'attachments', 'transmission');
 INSERT INTO templates (template_id, template_label, template_comment, template_content, template_type, template_path, template_file_name, template_style, template_datasource, template_target, template_attachment_type) VALUES (29, 'Courrier invitation PME LO', 'Courrier invitation PME LO', '', 'OFFICE', '0000#', 'invitation.odt', 'ODT: invitation', 'letterbox_attachment', 'attachments', 'outgoing_mail');
-Select setval('templates_seq', (select max(template_id)+1 from templates), false);
--- Signature pour ppetit
-UPDATE users SET signature_path='0000#', signature_file_name='ppetit.jpeg' WHERE user_id='ppetit';
 ------------
---NOTIFICATIONS
+--TEMPLATES réponses mail SVE
+--
+INSERT INTO templates (template_id, template_label, template_comment, template_content, template_type, template_path, template_file_name, template_style, template_datasource, template_target, template_attachment_type) VALUES (900, '[TRT] Passer me voir', 'Passer me voir', 'Passer me voir à mon bureau, merci.', 'TXT', NULL, NULL, 'XLSX: demo_spreadsheet_msoffice', '', 'notes', 'all');
+INSERT INTO templates (template_id, template_label, template_comment, template_content, template_type, template_path, template_file_name, template_style, template_datasource, template_target, template_attachment_type) VALUES (901, '[TRT] Compléter', 'Compléter', 'Le projet de réponse doit être complété/révisé sur les points suivants : \n\n- ', 'TXT', NULL, NULL, 'XLSX: demo_spreadsheet_msoffice', '', 'notes', 'all');
+INSERT INTO templates (template_id, template_label, template_comment, template_content, template_type, template_path, template_file_name, template_style, template_datasource, template_target, template_attachment_type) VALUES (902, '[AVIS] Demande avis', 'Demande avis', 'Merci de me fournir les éléments de langage pour répondre à ce courrier.', 'TXT', NULL, NULL, 'XLSX: demo_spreadsheet_msoffice', '', 'notes', 'all');
+INSERT INTO templates (template_id, template_label, template_comment, template_content, template_type, template_path, template_file_name, template_style, template_datasource, template_target, template_attachment_type) VALUES (904, '[AVIS] Avis favorable', 'Avis favorable', 'Merci de répondre favorablement à la demande inscrite dans ce courrier', 'TXT', NULL, NULL, 'XLSX: demo_spreadsheet_msoffice', '', 'notes', 'all');
+INSERT INTO templates (template_id, template_label, template_comment, template_content, template_type, template_path, template_file_name, template_style, template_datasource, template_target, template_attachment_type) VALUES (905, '[CLOTURE] Clôture pour REJET', 'Clôture pour REJET', 'Clôture pour REJET', 'TXT', NULL, NULL, 'XLSX: demo_spreadsheet_msoffice', '', 'notes', 'all');
+INSERT INTO templates (template_id, template_label, template_comment, template_content, template_type, template_path, template_file_name, template_style, template_datasource, template_target, template_attachment_type) VALUES (906, '[CLOTURE] Clôture pour ABANDON', 'Clôture pour ABANDON', 'Clôture pour ABANDON', 'TXT', NULL, NULL, 'XLSX: demo_spreadsheet_msoffice', '', 'notes', 'all');
+INSERT INTO templates (template_id, template_label, template_comment, template_content, template_type, template_path, template_file_name, template_style, template_datasource, template_target, template_attachment_type) VALUES (907, '[CLOTURE] Clôture RAS', 'Clôture RAS', 'Clôture NORMALE', 'TXT', NULL, NULL, 'XLSX: demo_spreadsheet_msoffice', '', 'notes', 'all');
+INSERT INTO templates (template_id, template_label, template_comment, template_content, template_type, template_path, template_file_name, template_style, template_datasource, template_target, template_attachment_type) VALUES (908, '[CLOTURE] Clôture AUTRE', 'Clôture AUTRE', 'Clôture pour ce motif : ', 'TXT', NULL, NULL, 'XLSX: demo_spreadsheet_msoffice', '', 'notes', 'all');
+INSERT INTO templates (template_id, template_label, template_comment, template_content, template_type, template_path, template_file_name, template_style, template_datasource, template_target, template_attachment_type) VALUES (909, '[REJET] Erreur affectation', 'Erreur affectation', 'Ce courrier ne semble pas concerner mon service', 'TXT', NULL, NULL, 'XLSX: demo_spreadsheet_msoffice', '', 'notes', 'all');
+INSERT INTO templates (template_id, template_label, template_comment, template_content, template_type, template_path, template_file_name, template_style, template_datasource, template_target, template_attachment_type) VALUES (910, '[REJET] Anomalie de numérisation', 'Anomalie de numérisation', 'Le courrier présente des anomalies de numérisation', 'TXT', NULL, NULL, 'XLSX: demo_spreadsheet_msoffice', '', 'notes', 'all');
+--
+INSERT INTO templates  (template_id, template_label, template_comment, template_content, template_type, template_path, template_file_name, template_style, template_datasource, template_target, template_attachment_type) VALUES (1000, '[MAIL] AR TYPE Réorientation d’une saisine électronique vers l’autorité compétente', '[MAIL] AR TYPE Réorientation d’une saisine électronique vers l’autorité compétente', '<h2>Ville de Maarch-les-Bains</h2>
+<p><em>[entities.adrs_1]</em><br /><em>[entities.adrs_2]</em><br /><em>[entities.zipcode] [entities.city]<br /></em></p>
+<p>(Veuillez renseigner le numero de telephone de votre service)</p>
+<p>Le [res_letterbox.doc_date], vous avez transmis par voie &eacute###lectronique &agrave### la Ville une demande qui ne rel&egrave###ve pas de sa comp&eacute###tence.</p>
+<p>Votre demande concerne [res_letterbox.subject].</p>
+<p>Cette demande a &eacute###t&eacute### transmise &agrave### (veuillez renseigner le nom de l''AUTORITE COMPETENTE).</p>', 'HTML', NULL, NULL, 'ODP: open_office_presentation', 'letterbox_attachment', 'sendmail', 'all');
+--
+INSERT INTO templates  (template_id, template_label, template_comment, template_content, template_type, template_path, template_file_name, template_style, template_datasource, template_target, template_attachment_type) VALUES (1020, '[MAIL] AR TYPE dans le cas d’une décision implicite de rejet', '[MAIL] AR TYPE dans le cas d’une décision implicite de rejet', '<h2>Ville de Maarch-les-Bains</h2>
+<p><em>[entities.adrs_1]</em><br /><em>[entities.adrs_2]</em><br /><em>[entities.zipcode] [entities.city]<br /></em></p>
+<p>(Veuillez renseigner le numero de telephone de votre service)</p>
+<p>Le [res_letterbox.doc_date], vous avez transmis par voie &eacute###lectronique &agrave### la Ville une demande qui rel&egrave###ve de sa comp&eacute###tence.</p>
+<p>Votre demande concerne : [res_letterbox.subject].</p>
+<p>Le pr&eacute###sent accus&eacute### r&eacute###ception atteste la r&eacute###ception de votre demande, il ne pr&eacute###juge pas de la conformit&eacute### de son contenu qui d&eacute###pend entre autres de l''&eacute###tude des pi&egrave###ces fournies. Pour tout renseignement concernant votre dossier, vous pouvez contacter le service charg&eacute### du dossier par t&eacute###l&eacute###phone [users.phone] ou par messagerie [users.mail].</p>
+<p>Votre demande est susceptible de faire l''objet d''une d&eacute###cision implicite de rejet en l''absence de r&eacute###ponse dans les (XX) jours suivant sa r&eacute###ception, soit le [res_letterbox.process_limit_date].</p>
+<p>Si l''instruction de votre demande n&eacute###cessite des informations ou pi&egrave###ces compl&eacute###mentaires, la Ville vous contactera afin de les fournir, dans un d&eacute###lai de production qui sera fix&eacute###.</p>
+<p>Dans ce cas, le d&eacute###lai de d&eacute###cision implicite de rejet serait alors suspendu le temps de produire les pi&egrave###ces demand&eacute###es.</p>
+<p>Si vous estimez que la d&eacute###cision qui sera prise par l''administration est contestable, vous pourrez formuler :</p>
+<p>- Soit un recours gracieux devant l''auteur de la d&eacute###cision</p>
+<p>- Soit un recours hi&eacute###rarchique devant le Maire</p>
+<p>- Soit un recours contentieux devant le Tribunal Administratif territorialement comp&eacute###tent.</p>
+<p>Le recours gracieux ou le recours hi&eacute###rarchique peuvent &ecirc###tre faits sans condition de d&eacute###lais.</p>
+<p>Le recours contentieux doit intervenir dans un d&eacute###lai de deux mois &agrave### compter de la notification de la d&eacute###cision.</p>
+<p>Toutefois, si vous souhaitez en cas de rejet du recours gracieux ou du recours hi&eacute###rarchique former un recours contentieux, ce recours gracieux ou hi&eacute###rarchique devra avoir &eacute###t&eacute### introduit dans le d&eacute###lai sus-indiqu&eacute### du recours contentieux.</p>
+<p>Vous conserverez ainsi la possibilit&eacute### de former un recours contentieux, dans un d&eacute###lai de deux mois &agrave### compter de la d&eacute###cision intervenue sur ledit recours gracieux ou hi&eacute###rarchique.</p>', 'HTML', NULL, NULL, 'ODP: open_office_presentation', 'letterbox_attachment', 'sendmail', 'all');
+--
+INSERT INTO templates  (template_id, template_label, template_comment, template_content, template_type, template_path, template_file_name, template_style, template_datasource, template_target, template_attachment_type) VALUES (1010, '[MAIL] AR TYPE dans le cas d’une décision implicite d’acceptation', '[MAIL] AR TYPE dans le cas d’une décision implicite d’acceptation', '<h2>Ville de Maarch-les-Bains</h2>
+<p><em>[entities.adrs_1]</em><br /><em>[entities.adrs_2]</em><br /><em>[entities.zipcode] [entities.city]<br /></em></p>
+<p>(Veuillez renseigner le numero de telephone de votre service)</p>
+<p>Le [res_letterbox.doc_date], vous avez transmis par voie &eacute###lectronique &agrave### la Ville une demande qui rel&egrave###ve de sa comp&eacute###tence.</p>
+<p>Votre demande concerne [res_letterbox.subject].</p>
+<p>Le pr&eacute###sent accus&eacute### de r&eacute###ception atteste de la r&eacute###ception de votre demande. il ne pr&eacute###juge pas de la conformit&eacute### de son contenu qui d&eacute###pend entre autres de l''''&eacute###tude des pi&egrave###ces fournies.</p>
+<p>Pour tout renseignement concernant votre dossier, vous pouvez contacter le service charg&eacute### du dossier par t&eacute###l&eacute###phone [users.phone] ou par messagerie [users.mail].</p>
+<p>Votre demande est susceptible de faire l''objet d''''une d&eacute###cision implicite d''''acceptation en l''absence de r&eacute###ponse dans les (XX) jours suivant sa r&eacute###ception, soit le [res_letterbox.process_limit_date].</p>
+<p>Si l''instruction de votre demande n&eacute###cessite des informations ou pi&egrave###ces compl&eacute###mentaires, la Ville vous contactera afin de les fournir, dans un d&eacute###lai de production qui sera fix&eacute###.</p>
+<p>Le cas &eacute###ch&eacute###ant, le d&eacute###lai de d&eacute###cision implicite d''acceptation ne d&eacute###butera qu''''apr&egrave###s la production des pi&egrave###ces demand&eacute###es.</p>
+<p>En cas de d&eacute###cision implicite d''''acceptation vous avez la possibilit&eacute### de demander au service charg&eacute### du dossier une attestation conform&eacute###ment aux dispositions de l''article 22 de la loi n&deg### 2000-321 du 12 avril 2000 relative aux droits des citoyens dans leurs relations avec les administrations modifi&eacute###e.</p>', 'HTML', NULL, NULL, 'ODP: open_office_presentation', 'letterbox_attachment', 'sendmail', 'all');
+--
+INSERT INTO templates  (template_id, template_label, template_comment, template_content, template_type, template_path, template_file_name, template_style, template_datasource, template_target, template_attachment_type) VALUES (1030, '[MAIL] AR TYPE dans le cas d’une demande n’impliquant pas de décision implicite de l’administration', '[MAIL] AR TYPE dans le cas d’une demande n’impliquant pas de décision implicite de l’administration', '<h2>Ville de Maarch-les-Bains</h2>
+<p><em>[entities.adrs_1]</em><br /><em>[entities.adrs_2]</em><br /><em>[entities.zipcode] [entities.city]<br /></em></p>
+<p>(Veuillez renseigner le numero de telephone de votre service)</p>
+<p>Le [res_letterbox.doc_date], vous avez transmis par voie &eacute###lectronique &agrave### la Ville une demande qui rel&egrave###ve de sa comp&eacute###tence.</p>
+<p>Votre demande concerne [res_letterbox.subject].</p>
+<p>Le pr&eacute###sent accus&eacute### de r&eacute###ception atteste de la r&eacute###ception de votre demande. Il ne pr&eacute###juge pas de la conformit&eacute### de son contenu qui d&eacute###pend entre autres de l''&eacute###tude des pi&egrave###ces fournies.</p>
+<p>Si l''instruction de votre demande n&eacute###cessite des informations ou pi&egrave###ces compl&eacute###mentaires, la Ville vous contactera afin de les fournir, dans un d&eacute###lai de production qui sera fix&eacute###.</p>
+<p>Pour tout renseignement concernant votre dossier, vous pouvez contacter le service charg&eacute### du dossier par t&eacute###l&eacute###phone [users.phone] ou par messagerie [users.mail].</p>', 'HTML', NULL, NULL, 'TXT: document_texte', 'letterbox_attachment', 'sendmail', 'all');
 ------------
-TRUNCATE TABLE notifications;
-INSERT INTO notifications (notification_sid, notification_id, description, event_id, notification_mode, template_id, diffusion_type, diffusion_properties, attachfor_type, attachfor_properties, rss_url_template)
-VALUES (2, 'USERS', '[administration] Actions sur les utilisateurs de l''application', 'users%', 'EMAIL', 2, 'user', 'superadmin', '', '', 'http://localhost/maarch_entreprise');
-INSERT INTO notifications (notification_sid, notification_id, description, event_id, notification_mode, template_id, rss_url_template, diffusion_type, diffusion_properties, attachfor_type, attachfor_properties, is_enabled)
-VALUES (3, 'NCC', 'Nouveaux courriers en copie', '18', 'EMAIL', 4, '', 'copy_list', '', '', '', 'Y');
-INSERT INTO notifications (notification_sid, notification_id, description, event_id, notification_mode, template_id, rss_url_template, diffusion_type, diffusion_properties, attachfor_type, attachfor_properties, is_enabled)
-VALUES (4, 'RET2', '2ie alerte sur courriers en retard', 'alert2', 'EMAIL', 5, '', 'dest_user', '', '', '', 'Y');
-INSERT INTO notifications (notification_sid, notification_id, description, event_id, notification_mode, template_id, rss_url_template, diffusion_type, diffusion_properties, attachfor_type, attachfor_properties, is_enabled)
-VALUES (5, 'RET1', '1ère alerte sur courriers en retard', 'alert1', 'EMAIL', 6, '', 'dest_user', '', '', '', 'Y');
-INSERT INTO notifications (notification_sid, notification_id, description, event_id, notification_mode, template_id, rss_url_template, diffusion_type, diffusion_properties, attachfor_type, attachfor_properties, is_enabled)
-VALUES (6, 'NCT', 'Nouveaux courriers à traiter', '18', 'EMAIL', 7, '', 'dest_user', '', '', '', 'Y');
-INSERT INTO notifications (notification_sid, notification_id, description, event_id, notification_mode, template_id, rss_url_template, diffusion_type, diffusion_properties, attachfor_type, attachfor_properties, is_enabled)
-VALUES (7, 'ANC', 'Nouvelle annotation sur courrier en copie', 'noteadd', 'EMAIL', 8, '', 'copy_list', '', '', '', 'Y');
-INSERT INTO notifications (notification_sid, notification_id, description, event_id, notification_mode, template_id, rss_url_template, diffusion_type, diffusion_properties, attachfor_type, attachfor_properties, is_enabled)
-VALUES (8, 'AND', 'Nouvelle annotation sur courrier destinataire', 'noteadd', 'EMAIL', 8, '', 'dest_user', '', '', '', 'Y');
-INSERT INTO notifications (notification_sid, notification_id, description, event_id, notification_mode, template_id, rss_url_template, diffusion_type, diffusion_properties, attachfor_type, attachfor_properties, is_enabled)
-VALUES (9, 'RED', 'Redirection de courrier', '1', 'EMAIL', 7, '', 'dest_user', '', '', '', 'Y');
-Select setval('notifications_seq', (select max(notification_sid)+1 from notifications), false);
+Select setval('templates_seq', (select max(template_id)+1 from templates), false);
 ------------
 --TEMPLATES_ASSOCIATION
 ------------
+--Rebuild template association for OFFICE documents
+------------
 TRUNCATE TABLE templates_association;
-Select setval('templates_association_seq', 1, false);
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (3, 'destination', 'VILLE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (3, 'destination', 'CAB', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (3, 'destination', 'DGS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (3, 'destination', 'DSI', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (3, 'destination', 'FIN', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (3, 'destination', 'DGA', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (3, 'destination', 'PCU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (3, 'destination', 'PTE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (3, 'destination', 'PJS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (3, 'destination', 'PE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (3, 'destination', 'SP', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (3, 'destination', 'PSO', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (3, 'destination', 'DSG', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (3, 'destination', 'COU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (3, 'destination', 'PSF', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (3, 'destination', 'DRH', 'entities');
-
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (10, 'destination', 'VILLE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (10, 'destination', 'CAB', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (10, 'destination', 'DGS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (10, 'destination', 'DSI', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (10, 'destination', 'FIN', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (10, 'destination', 'DGA', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (10, 'destination', 'PCU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (10, 'destination', 'PTE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (10, 'destination', 'PJS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (10, 'destination', 'PE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (10, 'destination', 'SP', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (10, 'destination', 'PSO', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (10, 'destination', 'DSG', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (10, 'destination', 'COU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (10, 'destination', 'PSF', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (10, 'destination', 'DRH', 'entities');
-
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (11, 'destination', 'VILLE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (11, 'destination', 'CAB', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (11, 'destination', 'DGS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (11, 'destination', 'DSI', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (11, 'destination', 'FIN', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (11, 'destination', 'DGA', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (11, 'destination', 'PCU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (11, 'destination', 'PTE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (11, 'destination', 'PJS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (11, 'destination', 'PE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (11, 'destination', 'SP', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (11, 'destination', 'PSO', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (11, 'destination', 'DSG', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (11, 'destination', 'COU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (11, 'destination', 'PSF', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (11, 'destination', 'DRH', 'entities');
-
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (12, 'destination', 'VILLE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (12, 'destination', 'CAB', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (12, 'destination', 'DGS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (12, 'destination', 'DSI', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (12, 'destination', 'FIN', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (12, 'destination', 'DGA', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (12, 'destination', 'PCU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (12, 'destination', 'PTE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (12, 'destination', 'PJS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (12, 'destination', 'PE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (12, 'destination', 'SP', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (12, 'destination', 'PSO', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (12, 'destination', 'DSG', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (12, 'destination', 'COU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (12, 'destination', 'PSF', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (12, 'destination', 'DRH', 'entities');
-
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (13, 'destination', 'VILLE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (13, 'destination', 'CAB', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (13, 'destination', 'DGS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (13, 'destination', 'DSI', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (13, 'destination', 'FIN', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (13, 'destination', 'DGA', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (13, 'destination', 'PCU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (13, 'destination', 'PTE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (13, 'destination', 'PJS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (13, 'destination', 'PE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (13, 'destination', 'SP', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (13, 'destination', 'PSO', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (13, 'destination', 'DSG', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (13, 'destination', 'COU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (13, 'destination', 'PSF', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (13, 'destination', 'DRH', 'entities');
-
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (110, 'destination', 'VILLE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (110, 'destination', 'CAB', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (110, 'destination', 'DGS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (110, 'destination', 'DSI', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (110, 'destination', 'FIN', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (110, 'destination', 'DGA', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (110, 'destination', 'PCU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (110, 'destination', 'PTE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (110, 'destination', 'PJS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (110, 'destination', 'PE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (110, 'destination', 'SP', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (110, 'destination', 'PSO', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (110, 'destination', 'DSG', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (110, 'destination', 'COU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (110, 'destination', 'PSF', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (110, 'destination', 'DRH', 'entities');
-
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (21, 'destination', 'VILLE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (21, 'destination', 'CAB', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (21, 'destination', 'DGS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (21, 'destination', 'DSI', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (21, 'destination', 'FIN', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (21, 'destination', 'DGA', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (21, 'destination', 'PCU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (21, 'destination', 'PTE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (21, 'destination', 'PJS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (21, 'destination', 'PE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (21, 'destination', 'SP', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (21, 'destination', 'PSO', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (21, 'destination', 'DSG', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (21, 'destination', 'COU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (21, 'destination', 'PSF', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (21, 'destination', 'DRH', 'entities');
-
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (22, 'destination', 'VILLE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (22, 'destination', 'CAB', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (22, 'destination', 'DGS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (22, 'destination', 'DSI', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (22, 'destination', 'FIN', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (22, 'destination', 'DGA', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (22, 'destination', 'PCU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (22, 'destination', 'PTE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (22, 'destination', 'PJS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (22, 'destination', 'PE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (22, 'destination', 'SP', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (22, 'destination', 'PSO', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (22, 'destination', 'DSG', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (22, 'destination', 'COU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (22, 'destination', 'PSF', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (22, 'destination', 'DRH', 'entities');
-
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (23, 'destination', 'VILLE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (23, 'destination', 'CAB', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (23, 'destination', 'DGS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (23, 'destination', 'DSI', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (23, 'destination', 'FIN', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (23, 'destination', 'DGA', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (23, 'destination', 'PCU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (23, 'destination', 'PTE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (23, 'destination', 'PJS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (23, 'destination', 'PE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (23, 'destination', 'SP', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (23, 'destination', 'PSO', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (23, 'destination', 'DSG', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (23, 'destination', 'COU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (23, 'destination', 'PSF', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (23, 'destination', 'DRH', 'entities');
-
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (24, 'destination', 'VILLE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (24, 'destination', 'CAB', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (24, 'destination', 'DGS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (24, 'destination', 'DSI', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (24, 'destination', 'FIN', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (24, 'destination', 'DGA', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (24, 'destination', 'PCU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (24, 'destination', 'PTE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (24, 'destination', 'PJS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (24, 'destination', 'PE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (24, 'destination', 'SP', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (24, 'destination', 'PSO', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (24, 'destination', 'DSG', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (24, 'destination', 'COU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (24, 'destination', 'PSF', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (24, 'destination', 'DRH', 'entities');
-
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (25, 'destination', 'VILLE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (25, 'destination', 'CAB', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (25, 'destination', 'DGS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (25, 'destination', 'DSI', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (25, 'destination', 'FIN', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (25, 'destination', 'DGA', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (25, 'destination', 'PCU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (25, 'destination', 'PTE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (25, 'destination', 'PJS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (25, 'destination', 'PE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (25, 'destination', 'SP', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (25, 'destination', 'PSO', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (25, 'destination', 'DSG', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (25, 'destination', 'COU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (25, 'destination', 'PSF', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (25, 'destination', 'DRH', 'entities');
-
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (26, 'destination', 'VILLE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (26, 'destination', 'CAB', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (26, 'destination', 'DGS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (26, 'destination', 'DSI', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (26, 'destination', 'FIN', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (26, 'destination', 'DGA', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (26, 'destination', 'PCU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (26, 'destination', 'PTE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (26, 'destination', 'PJS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (26, 'destination', 'PE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (26, 'destination', 'SP', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (26, 'destination', 'PSO', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (26, 'destination', 'DSG', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (26, 'destination', 'COU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (26, 'destination', 'PSF', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (26, 'destination', 'DRH', 'entities');
-
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (27, 'destination', 'VILLE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (27, 'destination', 'CAB', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (27, 'destination', 'DGS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (27, 'destination', 'DSI', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (27, 'destination', 'FIN', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (27, 'destination', 'DGA', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (27, 'destination', 'PCU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (27, 'destination', 'PTE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (27, 'destination', 'PJS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (27, 'destination', 'PE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (27, 'destination', 'SP', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (27, 'destination', 'PSO', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (27, 'destination', 'DSG', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (27, 'destination', 'COU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (27, 'destination', 'PSF', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (27, 'destination', 'DRH', 'entities');
-
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (28, 'destination', 'VILLE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (28, 'destination', 'CAB', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (28, 'destination', 'DGS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (28, 'destination', 'DSI', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (28, 'destination', 'FIN', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (28, 'destination', 'DGA', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (28, 'destination', 'PCU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (28, 'destination', 'PTE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (28, 'destination', 'PJS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (28, 'destination', 'PE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (28, 'destination', 'SP', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (28, 'destination', 'PSO', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (28, 'destination', 'DSG', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (28, 'destination', 'COU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (28, 'destination', 'PSF', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (28, 'destination', 'DRH', 'entities');
-
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (29, 'destination', 'VILLE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (29, 'destination', 'CAB', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (29, 'destination', 'DGS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (29, 'destination', 'DSI', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (29, 'destination', 'FIN', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (29, 'destination', 'DGA', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (29, 'destination', 'PCU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (29, 'destination', 'PTE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (29, 'destination', 'PJS', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (29, 'destination', 'PE', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (29, 'destination', 'SP', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (29, 'destination', 'PSO', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (29, 'destination', 'DSG', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (29, 'destination', 'COU', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (29, 'destination', 'PSF', 'entities');
-INSERT INTO templates_association (template_id, what, value_field, maarch_module) VALUES (29, 'destination', 'DRH', 'entities');
-
+INSERT INTO templates_association
+(template_id, what, value_field, maarch_module)
+SELECT template_id, 'destination', entity_id, 'entities'
+FROM templates, entities
+WHERE template_type in ('OFFICE','TXT');
 Select setval('templates_association_seq', (select max(system_id)+1 from templates_association), false);
+-----
+-- Archive identifiers
+-----
+UPDATE entities SET business_id = 'org_987654321_Versant';
+UPDATE entities SET archival_agency = 'org_123456789_Archives';
+UPDATE entities SET archival_agreement = 'MAARCH_LES_BAINS_ACTES';
 
+UPDATE doctypes SET retention_final_disposition = 'destruction';
+UPDATE doctypes SET retention_rule = 'compta_3_03';
+UPDATE doctypes SET duration_current_use = 12;
 
---EXPORT SEDA DATAS
-DELETE FROM USERGROUPS WHERE GROUP_ID = 'ARCHIVISTE';
-INSERT INTO USERGROUPS VALUES ('ARCHIVISTE', 'Archiviste', 'N', 'N', 'N', 'N', 'N', 'Y');
-
-DELETE FROM USERGROUPS_SERVICES WHERE GROUP_ID = 'ARCHIVISTE';
-INSERT INTO USERGROUPS_SERVICES (group_id, service_id) Values ('ARCHIVISTE', 'add_thesaurus_to_res');
-INSERT INTO USERGROUPS_SERVICES (group_id, service_id) Values ('ARCHIVISTE', 'adv_search_mlb');
-INSERT INTO USERGROUPS_SERVICES (group_id, service_id) Values ('ARCHIVISTE', 'export_seda_view');
-INSERT INTO USERGROUPS_SERVICES (group_id, service_id) Values ('ARCHIVISTE', 'fileplan');
-INSERT INTO USERGROUPS_SERVICES (group_id, service_id) Values ('ARCHIVISTE', 'my_contacts_menu');
-INSERT INTO USERGROUPS_SERVICES (group_id, service_id) Values ('ARCHIVISTE', 'put_doc_in_fileplan');
-INSERT INTO USERGROUPS_SERVICES (group_id, service_id) Values ('ARCHIVISTE', 'sendmail');
-INSERT INTO USERGROUPS_SERVICES (group_id, service_id) Values ('ARCHIVISTE', 'tag_view');
-INSERT INTO USERGROUPS_SERVICES (group_id, service_id) Values ('ARCHIVISTE', 'view_baskets');
-INSERT INTO USERGROUPS_SERVICES (group_id, service_id) Values ('ARCHIVISTE', 'view_doc_history');
-INSERT INTO USERGROUPS_SERVICES (group_id, service_id) Values ('ARCHIVISTE', 'view_technical_infos');
-INSERT INTO USERGROUPS_SERVICES (group_id, service_id) Values ('ARCHIVISTE', 'avis_documents');
-
-DELETE FROM SECURITY WHERE GROUP_ID = 'ARCHIVISTE';
-INSERT INTO SECURITY (group_id, coll_id, where_clause, maarch_comment, can_insert, can_update, can_delete, rights_bitmask, mr_start_date, mr_stop_date, where_target) 
-VALUES ('ARCHIVISTE', 'letterbox_coll', '1=1', 'Tous les courriers','N','N','N', 24, NULL, NULL, 'DOC');
-
-DELETE FROM USERS WHERE USER_ID = 'aarc';
-INSERT INTO USERS (user_id, password, firstname, lastname, mail, enabled, change_password, status, loginmode) 
-VALUES ('aarc', '65d1d802c2c5e7e9035c5cef3cfc0902b6d0b591bfa85977055290736bbfcdd7e19cb7cfc9f980d0c815bbf7fe329a4efd8da880515ba520b22c0aa3a96514cc', 'Alfred', 'ARC', 'info@maarch.org', 'Y', 'N', 'OK', 'standard');
-
-DELETE FROM USERS_ENTITIES WHERE USER_ID = 'aarc';
-INSERT INTO USERS_ENTITIES (user_id, entity_id, user_role, primary_entity) 
-VALUES ('aarc', 'VILLE', '', 'Y');
-
-DELETE FROM USERGROUP_CONTENT WHERE USER_ID = 'aarc';
-INSERT INTO USERGROUP_CONTENT (user_id, group_id, primary_group, role) 
-VALUES ('aarc', 'ARCHIVISTE', 'Y','');
-
-DELETE FROM STATUS WHERE ID = 'EXP_SEDA';
-INSERT INTO STATUS (id, label_status, is_system, is_folder_status, img_filename, maarch_module, can_be_searched, can_be_modified) 
-VALUES ('EXP_SEDA', 'A exporter au format SEDA', 'Y', 'N', 'fm-letter-status-acla', 'apps', 'Y', 'Y');
-
-DELETE FROM ACTIONS WHERE id = 418;
-INSERT INTO ACTIONS (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) 
-VALUES (418, '', 'Exporter SEDA', '_NOSTATUS_', 'N', 'N', 'Y', 'export_seda', 'Y', 'export_seda', 'N', NULL);
-
-DELETE FROM ACTIONS WHERE id = 419;
-INSERT INTO ACTIONS (id, keyword, label_action, id_status, is_system, is_folder_action, enabled, action_page, history, origin, create_id, category_id) 
-VALUES (419, '', 'Proposer export SEDA', 'EXP_SEDA', 'N', 'N', 'Y', '', 'Y', 'apps', 'N', NULL);
-
-DELETE FROM BASKETS WHERE BASKET_ID = 'AExporterSeda';
-INSERT INTO BASKETS (basket_id, basket_name, basket_desc, basket_clause, coll_id, is_visible, is_folder_basket, enabled, basket_order) 
-VALUES ('AExporterSeda', 'Courriers à exporter SEDA', 'Courriers à exporter SEDA', 'status=''EXP_SEDA''', 'letterbox_coll', 'Y', 'N', 'Y',300);
-
-DELETE FROM GROUPBASKET WHERE BASKET_ID = 'AExporterSeda';
-INSERT INTO GROUPBASKET (group_id, basket_id, sequence, redirect_basketlist, redirect_grouplist, result_page, can_redirect, can_delete, can_insert, list_lock_clause, sublist_lock_clause) 
-VALUES ('ARCHIVISTE', 'AExporterSeda', 1, NULL, NULL, 'list_with_attachments','N', 'N', 'N', NULL, NULL);
-
-DELETE FROM ACTIONS_GROUPBASKETS WHERE id_action = 418;
-INSERT INTO ACTIONS_GROUPBASKETS (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) 
-VALUES (418, '', 'ARCHIVISTE', 'AExporterSeda', 'Y', 'N', 'N');
-
-DELETE FROM ACTIONS_GROUPBASKETS WHERE id_action = 419;
-INSERT INTO ACTIONS_GROUPBASKETS (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) 
-VALUES (419, '', 'RESP_COURRIER', 'MyBasket', 'N', 'Y', 'N');
-INSERT INTO ACTIONS_GROUPBASKETS (id_action, where_clause, group_id, basket_id, used_in_basketlist, used_in_action_page, default_action_list) 
-VALUES (419, '', 'RESPONSABLE', 'MyBasket', 'N', 'Y', 'N');
 
-UPDATE ENTITIES SET BUSINESS_ID = 'org_987654321_Versant';
-UPDATE ENTITIES SET ARCHIVAL_AGENCY = 'org_123456789_Archives';
-UPDATE ENTITIES SET ARCHIVAL_AGREEMENT = 'MAARCH_LES_BAINS_ACTES';
 
+--Inscrire ici les clauses de conversion spécifiques en cas de reprise
+--Update res_letterbox set status='VAL' where res_id=108;